* config/i386/i386.md (x86_shrd): Add athlon_decode and
[official-gcc/alias-decl.git] / gcc / configure
blob53f5eb8e806e095f2255844bf0536795ea6f0a1f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 LIBELFINC
606 LIBELFLIBS
607 CLOOGINC
608 CLOOGLIBS
609 PPLINC
610 PPLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefiles
666 all_lang_makefrags
667 all_gtfiles
668 all_compilers
669 srcdir
670 subdirs
671 slibdir
672 dollar
673 gcc_tooldir
674 enable_lto
675 MAINT
676 zlibinc
677 zlibdir
678 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 CXXCPP
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 STRIP
699 OBJDUMP
700 ac_ct_DUMPBIN
701 DUMPBIN
703 FGREP
705 LIBTOOL
706 collect2
707 STMP_FIXINC
708 BUILD_LDFLAGS
709 BUILD_CFLAGS
710 CC_FOR_BUILD
711 inhibit_libc
712 SYSTEM_HEADER_DIR
714 CROSS
715 CATOBJEXT
716 GENCAT
717 INSTOBJEXT
718 DATADIRNAME
719 CATALOGS
720 POSUB
721 GMSGFMT
722 XGETTEXT
723 INCINTL
724 LIBINTL_DEP
725 LIBINTL
726 USE_NLS
727 extra_opt_files
728 extra_modes_file
729 gthread_flags
730 objext
731 manext
732 LIBICONV_DEP
733 LTLIBICONV
734 LIBICONV
735 LDEXP_LIB
736 GNAT_LIBEXC
737 COLLECT2_LIBS
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
753 LN_S
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 onestep
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 enable_multilib
768 ENABLE_BUILD_WITH_CXX
769 coverage_flags
770 valgrind_command
771 valgrind_path_defines
772 valgrind_path
773 TREEBROWSER
774 nocommon_flag
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
784 OUTPUT_OPTION
785 NO_MINUS_C_MINUS_O
786 GNATMAKE
787 GNATBIND
788 ac_ct_CXX
789 CXXFLAGS
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
798 GENINSRC
799 target_subdir
800 host_subdir
801 build_subdir
802 build_libsubdir
803 target_noncanonical
804 target_os
805 target_vendor
806 target_cpu
807 target
808 host_os
809 host_vendor
810 host_cpu
811 host
812 build_os
813 build_vendor
814 build_cpu
815 build
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files='language_hooks'
855 ac_user_opts='
856 enable_option_checking
857 with_build_libsubdir
858 with_local_prefix
859 with_gxx_include_dir
860 with_cpp_install_dir
861 enable_generated_files_in_srcdir
862 with_gnu_ld
863 with_ld
864 with_demangler_in_ld
865 with_gnu_as
866 with_as
867 enable_werror_always
868 enable_checking
869 enable_coverage
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
872 with_stabs
873 enable_multilib
874 enable___cxa_atexit
875 enable_decimal_float
876 enable_fixed_point
877 enable_threads
878 enable_tls
879 enable_objc_gc
880 with_dwarf2
881 enable_shared
882 with_build_sysroot
883 with_sysroot
884 with_specs
885 enable_intermodule
886 with_pkgversion
887 with_bugurl
888 enable_languages
889 with_multilib_list
890 enable_rpath
891 with_libiconv_prefix
892 enable_initfini_array
893 enable_sjlj_exceptions
894 with_system_libunwind
895 enable_secureplt
896 enable_cld
897 enable_win32_registry
898 enable_static
899 with_pic
900 enable_fast_install
901 enable_libtool_lock
902 with_plugin_ld
903 enable_comdat
904 enable_gnu_unique_object
905 enable_linker_build_id
906 with_long_double_128
907 with_gc
908 with_system_zlib
909 enable_maintainer_mode
910 enable_version_specific_runtime_libs
911 with_slibdir
912 enable_plugin
914 ac_precious_vars='build_alias
915 host_alias
916 target_alias
918 CFLAGS
919 LDFLAGS
920 LIBS
921 CPPFLAGS
923 CXXFLAGS
926 CXXCPP
927 GMPLIBS
928 GMPINC
929 PPLLIBS
930 PPLINC
931 CLOOGLIBS
932 CLOOGINC
933 LIBELFLIBS
934 LIBELFINC'
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
985 ac_prev=
986 ac_dashdash=
987 for ac_option
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
992 ac_prev=
993 continue
996 case $ac_option in
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
999 esac
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1005 ac_dashdash=yes ;;
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1028 ac_prev=datadir ;;
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 ac_prev=sbindir ;;
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 | --sbi=* | --sb=*)
1228 sbindir=$ac_optarg ;;
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1233 | --sha | --sh)
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 | --sha=* | --sh=*)
1239 sharedstatedir=$ac_optarg ;;
1241 -site | --site | --sit)
1242 ac_prev=site ;;
1243 -site=* | --site=* | --sit=*)
1244 site=$ac_optarg ;;
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 ac_prev=srcdir ;;
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 verbose=yes ;;
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1269 -with-* | --with-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=no ;;
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1319 -*) as_fn_error "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1323 *=*)
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' | [0-9]* | *[!_$as_cr_alnum]* )
1328 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329 esac
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341 esac
1342 done
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error "missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1351 no) ;;
1352 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354 esac
1357 # Check all directory arguments for consistency.
1358 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val=\$$ac_var
1364 # Remove trailing slashes.
1365 case $ac_val in
1366 */ )
1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\$ac_val;;
1369 esac
1370 # Be sure to have absolute directory names.
1371 case $ac_val in
1372 [\\/$]* | ?:[\\/]* ) continue;;
1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374 esac
1375 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376 done
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387 if test "x$build_alias" = x; then
1388 cross_compiling=maybe
1389 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1392 cross_compiling=yes
1396 ac_tool_prefix=
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399 test "$silent" = yes && exec 6>/dev/null
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 as_fn_error "working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 as_fn_error "pwd does not report name of working directory"
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted=yes
1413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$as_myself" : 'X\(//\)[^/]' \| \
1417 X"$as_myself" : 'X\(//\)$' \| \
1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 s//\1/
1424 /^X\(\/\/\)[^/].*/{
1425 s//\1/
1428 /^X\(\/\/\)$/{
1429 s//\1/
1432 /^X\(\/\).*/{
1433 s//\1/
1436 s/.*/./; q'`
1437 srcdir=$ac_confdir
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 srcdir=..
1441 else
1442 ac_srcdir_defaulted=no
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451 pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
1476 \`configure' configures this package to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1485 Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 [PREFIX]
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1529 _ACEOF
1531 cat <<\_ACEOF
1533 Program names:
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1538 System types:
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 --target=TARGET configure for building compilers for TARGET [HOST]
1542 _ACEOF
1545 if test -n "$ac_init_help"; then
1547 cat <<\_ACEOF
1549 Optional Features:
1550 --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-generated-files-in-srcdir
1554 put copies of generated files in source dir
1555 intended for creating source tarballs for users
1556 without texinfo bison or flex.
1557 --enable-werror-always enable -Werror despite compiler version
1558 --enable-checking=LIST
1559 enable expensive run-time checks. With LIST,
1560 enable only specific categories of checks.
1561 Categories are: yes,no,all,none,release.
1562 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1563 rtlflag,rtl,runtime,tree,valgrind,types.
1564 --enable-coverage=LEVEL
1565 enable compiler's code coverage collection.
1566 Use to measure compiler performance and locate
1567 unused parts of the compiler. With LEVEL, specify
1568 optimization. Values are opt, noopt,
1569 default is noopt
1570 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1571 --enable-build-with-cxx build with C++ compiler instead of C compiler
1572 --enable-multilib enable library support for multiple ABIs
1573 --enable-__cxa_atexit enable __cxa_atexit for C++
1574 --enable-decimal-float={no,yes,bid,dpd}
1575 enable decimal float extension to C. Selecting 'bid'
1576 or 'dpd' choses which decimal floating point format
1577 to use
1578 --enable-fixed-point enable fixed-point arithmetic extension to C
1579 --enable-threads enable thread usage for target GCC
1580 --enable-threads=LIB use LIB thread package for target GCC
1581 --enable-tls enable or disable generation of tls code
1582 overriding the assembler check for tls support
1583 --enable-objc-gc enable the use of Boehm's garbage collector with
1584 the GNU Objective-C runtime
1585 --disable-shared don't provide a shared libgcc
1586 --enable-intermodule build the compiler in one step
1587 --enable-languages=LIST specify which front-ends to build
1588 --disable-rpath do not hardcode runtime library paths
1589 --enable-initfini-array use .init_array/.fini_array sections
1590 --enable-sjlj-exceptions
1591 arrange to use setjmp/longjmp exception handling
1592 --enable-secureplt enable -msecure-plt by default for PowerPC
1593 --enable-cld enable -mcld by default for 32bit x86
1594 --disable-win32-registry
1595 disable lookup of installation paths in the
1596 Registry on Windows hosts
1597 --enable-win32-registry enable registry lookup (default)
1598 --enable-win32-registry=KEY
1599 use KEY instead of GCC version as the last portion
1600 of the registry key
1601 --enable-shared[=PKGS] build shared libraries [default=yes]
1602 --enable-static[=PKGS] build static libraries [default=yes]
1603 --enable-fast-install[=PKGS]
1604 optimize for fast installation [default=yes]
1605 --disable-libtool-lock avoid locking (might break parallel builds)
1606 --enable-comdat enable COMDAT group support
1607 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1608 glibc systems
1609 --enable-linker-build-id
1610 compiler will always pass --build-id to linker
1611 --enable-maintainer-mode
1612 enable make rules and dependencies not useful
1613 (and sometimes confusing) to the casual installer
1614 --enable-version-specific-runtime-libs
1615 specify that runtime libraries should be
1616 installed in a compiler-specific directory
1617 --enable-plugin enable plugin support
1619 Optional Packages:
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-build-libsubdir=DIR Directory where to find libraries for build system
1623 --with-local-prefix=DIR specifies directory to put local include
1624 --with-gxx-include-dir=DIR
1625 specifies directory to put g++ header files
1626 --with-cpp-install-dir=DIR
1627 install the user visible C preprocessor in DIR
1628 (relative to PREFIX) as well as PREFIX/bin
1629 --with-gnu-ld arrange to work with GNU ld.
1630 --with-ld arrange to use the specified ld (full pathname)
1631 --with-demangler-in-ld try to use demangler in GNU ld.
1632 --with-gnu-as arrange to work with GNU as
1633 --with-as arrange to use the specified as (full pathname)
1634 --with-stabs arrange to use stabs instead of host debug format
1635 --with-dwarf2 force the default debug format to be DWARF 2
1636 --with-build-sysroot=sysroot
1637 use sysroot as the system root during the build
1638 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1639 --with-specs=SPECS add SPECS to driver command-line processing
1640 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1641 --with-bugurl=URL Direct users to URL to report a bug
1642 --with-multilib-list Select multilibs (SH only)
1643 --with-gnu-ld assume the C compiler uses GNU ld default=no
1644 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1645 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1646 --with-system-libunwind use installed libunwind
1647 --with-pic try to use only PIC/non-PIC objects [default=use
1648 both]
1649 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1650 --with-plugin-ld=[ARG] specify the plugin linker
1651 --with-long-double-128 Use 128-bit long double by default.
1652 --with-gc={page,zone} choose the garbage collection mechanism to use
1653 with the compiler
1654 --with-system-zlib use installed libz
1655 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1657 Some influential environment variables:
1658 CC C compiler command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
1662 LIBS libraries to pass to the linker, e.g. -l<library>
1663 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1664 you have headers in a nonstandard directory <include dir>
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
1667 CPP C preprocessor
1668 CXXCPP C++ preprocessor
1669 GMPLIBS How to link GMP
1670 GMPINC How to find GMP include files
1671 PPLLIBS How to link PPL
1672 PPLINC How to find PPL include files
1673 CLOOGLIBS How to link CLOOG
1674 CLOOGINC How to find CLOOG include files
1675 LIBELFLIBS How to link libelf
1676 LIBELFINC How to find libelf include files
1678 Use these variables to override the choices made by `configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1681 Report bugs to the package provider.
1682 _ACEOF
1683 ac_status=$?
1686 if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691 continue
1692 ac_builddir=.
1694 case "$ac_dir" in
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703 esac ;;
1704 esac
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1710 case $srcdir in
1711 .) # We are building in place.
1712 ac_srcdir=.
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1716 ac_srcdir=$srcdir$ac_dir_suffix;
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1719 *) # Relative name.
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1723 esac
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for guested configure.
1728 if test -f "$ac_srcdir/configure.gnu"; then
1729 echo &&
1730 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731 elif test -f "$ac_srcdir/configure"; then
1732 echo &&
1733 $SHELL "$ac_srcdir/configure" --help=recursive
1734 else
1735 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736 fi || ac_status=$?
1737 cd "$ac_pwd" || { ac_status=$?; break; }
1738 done
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1743 cat <<\_ACEOF
1744 configure
1745 generated by GNU Autoconf 2.64
1747 Copyright (C) 2009 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1750 _ACEOF
1751 exit
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1789 ac_retval=1
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1794 } # ac_fn_c_try_compile
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1832 } # ac_fn_cxx_try_compile
1834 # ac_fn_c_try_cpp LINENO
1835 # ----------------------
1836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_cpp ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_cpp conftest.$ac_ext"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } >/dev/null && {
1856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1869 } # ac_fn_c_try_cpp
1871 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1872 # -------------------------------------------------------
1873 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1874 # the include files in INCLUDES and setting the cache variable VAR
1875 # accordingly.
1876 ac_fn_c_check_header_mongrel ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 else
1889 # Is the header compilable?
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1891 $as_echo_n "checking $2 usability... " >&6; }
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1895 #include <$2>
1896 _ACEOF
1897 if ac_fn_c_try_compile "$LINENO"; then :
1898 ac_header_compiler=yes
1899 else
1900 ac_header_compiler=no
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1904 $as_echo "$ac_header_compiler" >&6; }
1906 # Is the header present?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1908 $as_echo_n "checking $2 presence... " >&6; }
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_cpp "$LINENO"; then :
1914 ac_header_preproc=yes
1915 else
1916 ac_header_preproc=no
1918 rm -f conftest.err conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1920 $as_echo "$ac_header_preproc" >&6; }
1922 # So? What about this header?
1923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1924 yes:no: )
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1926 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 no:yes:* )
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1932 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1934 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1936 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1938 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 esac
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 $as_echo_n "(cached) " >&6
1947 else
1948 eval "$3=\$ac_header_compiler"
1950 eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_header_mongrel
1958 # ac_fn_c_try_run LINENO
1959 # ----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1961 # that executables *can* be run.
1962 ac_fn_c_try_run ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>&5
1973 ac_status=$?
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1976 { { case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_try") 2>&5
1983 ac_status=$?
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; }; }; then :
1986 ac_retval=0
1987 else
1988 $as_echo "$as_me: program exited with status $ac_status" >&5
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=$ac_status
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 return $ac_retval
1998 } # ac_fn_c_try_run
2000 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists and can be compiled using the include files in
2003 # INCLUDES, setting the cache variable VAR accordingly.
2004 ac_fn_c_check_header_compile ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$3=yes"
2019 else
2020 eval "$3=no"
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 } # ac_fn_c_check_header_compile
2031 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2032 # --------------------------------------------
2033 # Tries to find the compile-time value of EXPR in a program that includes
2034 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2035 # computed
2036 ac_fn_c_compute_int ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if test "$cross_compiling" = yes; then
2040 # Depending upon the size, compute the lo and hi bounds.
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2045 main ()
2047 static int test_array [1 - 2 * !(($2) >= 0)];
2048 test_array [0] = 0
2051 return 0;
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_lo=0 ac_mid=0
2056 while :; do
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2061 main ()
2063 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064 test_array [0] = 0
2067 return 0;
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_hi=$ac_mid; break
2072 else
2073 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2074 if test $ac_lo -le $ac_mid; then
2075 ac_lo= ac_hi=
2076 break
2078 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2087 main ()
2089 static int test_array [1 - 2 * !(($2) < 0)];
2090 test_array [0] = 0
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_hi=-1 ac_mid=-1
2098 while :; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2103 main ()
2105 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106 test_array [0] = 0
2109 return 0;
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_lo=$ac_mid; break
2114 else
2115 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2116 if test $ac_mid -le $ac_hi; then
2117 ac_lo= ac_hi=
2118 break
2120 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 done
2124 else
2125 ac_lo= ac_hi=
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 # Binary search between lo and hi bounds.
2131 while test "x$ac_lo" != "x$ac_hi"; do
2132 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2137 main ()
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 test_array [0] = 0
2143 return 0;
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid
2148 else
2149 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 case $ac_lo in #((
2154 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2155 '') ac_retval=1 ;;
2156 esac
2157 else
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2163 #include <stdio.h>
2164 #include <stdlib.h>
2166 main ()
2169 FILE *f = fopen ("conftest.val", "w");
2170 if (! f)
2171 return 1;
2172 if (($2) < 0)
2174 long int i = longval ();
2175 if (i != ($2))
2176 return 1;
2177 fprintf (f, "%ld", i);
2179 else
2181 unsigned long int i = ulongval ();
2182 if (i != ($2))
2183 return 1;
2184 fprintf (f, "%lu", i);
2186 /* Do not output a trailing newline, as this causes \r\n confusion
2187 on some platforms. */
2188 return ferror (f) || fclose (f) != 0;
2191 return 0;
2193 _ACEOF
2194 if ac_fn_c_try_run "$LINENO"; then :
2195 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2196 else
2197 ac_retval=1
2199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2200 conftest.$ac_objext conftest.beam conftest.$ac_ext
2201 rm -f conftest.val
2204 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2205 return $ac_retval
2207 } # ac_fn_c_compute_int
2209 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2210 # -------------------------------------------
2211 # Tests whether TYPE exists after having included INCLUDES, setting cache
2212 # variable VAR accordingly.
2213 ac_fn_c_check_type ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2219 $as_echo_n "(cached) " >&6
2220 else
2221 eval "$3=no"
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2226 main ()
2228 if (sizeof ($2))
2229 return 0;
2231 return 0;
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2239 main ()
2241 if (sizeof (($2)))
2242 return 0;
2244 return 0;
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2249 else
2250 eval "$3=yes"
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 eval ac_res=\$$3
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 } # ac_fn_c_check_type
2263 # ac_fn_c_find_intX_t LINENO BITS VAR
2264 # -----------------------------------
2265 # Finds a signed integer type with width BITS, setting cache variable VAR
2266 # accordingly.
2267 ac_fn_c_find_intX_t ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2271 $as_echo_n "checking for int$2_t... " >&6; }
2272 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 eval "$3=no"
2276 for ac_type in int$2_t 'int' 'long int' \
2277 'long long int' 'short int' 'signed char'; do
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 $ac_includes_default
2282 main ()
2284 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2285 test_array [0] = 0
2288 return 0;
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2296 main ()
2298 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2299 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2300 test_array [0] = 0
2303 return 0;
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2308 else
2309 case $ac_type in #(
2310 int$2_t) :
2311 eval "$3=yes" ;; #(
2312 *) :
2313 eval "$3=\$ac_type" ;;
2314 esac
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 eval as_val=\$$3
2320 if test "x$as_val" = x""no; then :
2322 else
2323 break
2325 done
2327 eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332 } # ac_fn_c_find_intX_t
2334 # ac_fn_c_try_link LINENO
2335 # -----------------------
2336 # Try to link conftest.$ac_ext, and return whether this succeeded.
2337 ac_fn_c_try_link ()
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 rm -f conftest.$ac_objext conftest$ac_exeext
2341 if { { ac_try="$ac_link"
2342 case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345 esac
2346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347 $as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_link") 2>conftest.err
2349 ac_status=$?
2350 if test -s conftest.err; then
2351 grep -v '^ *+' conftest.err >conftest.er1
2352 cat conftest.er1 >&5
2353 mv -f conftest.er1 conftest.err
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; } && {
2357 test -z "$ac_c_werror_flag" ||
2358 test ! -s conftest.err
2359 } && test -s conftest$ac_exeext && {
2360 test "$cross_compiling" = yes ||
2361 $as_test_x conftest$ac_exeext
2362 }; then :
2363 ac_retval=0
2364 else
2365 $as_echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2368 ac_retval=1
2370 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2371 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2372 # interfere with the next link command; also delete a directory that is
2373 # left behind by Apple's compiler. We do this before executing the actions.
2374 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2375 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 return $ac_retval
2378 } # ac_fn_c_try_link
2380 # ac_fn_c_find_uintX_t LINENO BITS VAR
2381 # ------------------------------------
2382 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2383 # accordingly.
2384 ac_fn_c_find_uintX_t ()
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2388 $as_echo_n "checking for uint$2_t... " >&6; }
2389 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 eval "$3=no"
2393 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2394 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $ac_includes_default
2399 main ()
2401 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2402 test_array [0] = 0
2405 return 0;
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409 case $ac_type in #(
2410 uint$2_t) :
2411 eval "$3=yes" ;; #(
2412 *) :
2413 eval "$3=\$ac_type" ;;
2414 esac
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 eval as_val=\$$3
2418 if test "x$as_val" = x""no; then :
2420 else
2421 break
2423 done
2425 eval ac_res=\$$3
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2430 } # ac_fn_c_find_uintX_t
2432 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2433 # ----------------------------------------------
2434 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2435 ac_fn_c_check_header_preproc ()
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2442 else
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 #include <$2>
2446 _ACEOF
2447 if ac_fn_c_try_cpp "$LINENO"; then :
2448 eval "$3=yes"
2449 else
2450 eval "$3=no"
2452 rm -f conftest.err conftest.$ac_ext
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_check_header_preproc
2461 # ac_fn_c_check_func LINENO FUNC VAR
2462 # ----------------------------------
2463 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2464 ac_fn_c_check_func ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2476 #define $2 innocuous_$2
2478 /* System header to define __stub macros and hopefully few prototypes,
2479 which can conflict with char $2 (); below.
2480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2481 <limits.h> exists even on freestanding compilers. */
2483 #ifdef __STDC__
2484 # include <limits.h>
2485 #else
2486 # include <assert.h>
2487 #endif
2489 #undef $2
2491 /* Override any GCC internal prototype to avoid an error.
2492 Use char because int might match the return type of a GCC
2493 builtin and then its argument prototype would still apply. */
2494 #ifdef __cplusplus
2495 extern "C"
2496 #endif
2497 char $2 ();
2498 /* The GNU C library defines this for functions which it implements
2499 to always fail with ENOSYS. Some functions are actually named
2500 something starting with __ and the normal name is an alias. */
2501 #if defined __stub_$2 || defined __stub___$2
2502 choke me
2503 #endif
2506 main ()
2508 return $2 ();
2510 return 0;
2512 _ACEOF
2513 if ac_fn_c_try_link "$LINENO"; then :
2514 eval "$3=yes"
2515 else
2516 eval "$3=no"
2518 rm -f core conftest.err conftest.$ac_objext \
2519 conftest$ac_exeext conftest.$ac_ext
2521 eval ac_res=\$$3
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2523 $as_echo "$ac_res" >&6; }
2524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2526 } # ac_fn_c_check_func
2528 # ac_fn_cxx_try_cpp LINENO
2529 # ------------------------
2530 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2531 ac_fn_cxx_try_cpp ()
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 if { { ac_try="$ac_cpp conftest.$ac_ext"
2535 case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538 esac
2539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2540 $as_echo "$ac_try_echo"; } >&5
2541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2542 ac_status=$?
2543 if test -s conftest.err; then
2544 grep -v '^ *+' conftest.err >conftest.er1
2545 cat conftest.er1 >&5
2546 mv -f conftest.er1 conftest.err
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; } >/dev/null && {
2550 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2551 test ! -s conftest.err
2552 }; then :
2553 ac_retval=0
2554 else
2555 $as_echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2558 ac_retval=1
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2561 return $ac_retval
2563 } # ac_fn_cxx_try_cpp
2565 # ac_fn_cxx_try_link LINENO
2566 # -------------------------
2567 # Try to link conftest.$ac_ext, and return whether this succeeded.
2568 ac_fn_cxx_try_link ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 rm -f conftest.$ac_objext conftest$ac_exeext
2572 if { { ac_try="$ac_link"
2573 case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576 esac
2577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578 $as_echo "$ac_try_echo"; } >&5
2579 (eval "$ac_link") 2>conftest.err
2580 ac_status=$?
2581 if test -s conftest.err; then
2582 grep -v '^ *+' conftest.err >conftest.er1
2583 cat conftest.er1 >&5
2584 mv -f conftest.er1 conftest.err
2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587 test $ac_status = 0; } && {
2588 test -z "$ac_cxx_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest$ac_exeext && {
2591 test "$cross_compiling" = yes ||
2592 $as_test_x conftest$ac_exeext
2593 }; then :
2594 ac_retval=0
2595 else
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 ac_retval=1
2601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2603 # interfere with the next link command; also delete a directory that is
2604 # left behind by Apple's compiler. We do this before executing the actions.
2605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607 return $ac_retval
2609 } # ac_fn_cxx_try_link
2610 cat >config.log <<_ACEOF
2611 This file contains any messages produced by compilers while
2612 running configure, to aid debugging if configure makes a mistake.
2614 It was created by $as_me, which was
2615 generated by GNU Autoconf 2.64. Invocation command line was
2617 $ $0 $@
2619 _ACEOF
2620 exec 5>>config.log
2622 cat <<_ASUNAME
2623 ## --------- ##
2624 ## Platform. ##
2625 ## --------- ##
2627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2644 _ASUNAME
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 $as_echo "PATH: $as_dir"
2652 done
2653 IFS=$as_save_IFS
2655 } >&5
2657 cat >&5 <<_ACEOF
2660 ## ----------- ##
2661 ## Core tests. ##
2662 ## ----------- ##
2664 _ACEOF
2667 # Keep a trace of the command line.
2668 # Strip out --no-create and --no-recursion so they do not pile up.
2669 # Strip out --silent because we don't want to record it for future runs.
2670 # Also quote any args containing shell meta-characters.
2671 # Make two passes to allow for proper duplicate-argument suppression.
2672 ac_configure_args=
2673 ac_configure_args0=
2674 ac_configure_args1=
2675 ac_must_keep_next=false
2676 for ac_pass in 1 2
2678 for ac_arg
2680 case $ac_arg in
2681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2683 | -silent | --silent | --silen | --sile | --sil)
2684 continue ;;
2685 *\'*)
2686 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2687 esac
2688 case $ac_pass in
2689 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2691 as_fn_append ac_configure_args1 " '$ac_arg'"
2692 if test $ac_must_keep_next = true; then
2693 ac_must_keep_next=false # Got value, back to normal.
2694 else
2695 case $ac_arg in
2696 *=* | --config-cache | -C | -disable-* | --disable-* \
2697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2699 | -with-* | --with-* | -without-* | --without-* | --x)
2700 case "$ac_configure_args0 " in
2701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2702 esac
2704 -* ) ac_must_keep_next=true ;;
2705 esac
2707 as_fn_append ac_configure_args " '$ac_arg'"
2709 esac
2710 done
2711 done
2712 { ac_configure_args0=; unset ac_configure_args0;}
2713 { ac_configure_args1=; unset ac_configure_args1;}
2715 # When interrupted or exit'd, cleanup temporary files, and complete
2716 # config.log. We remove comments because anyway the quotes in there
2717 # would cause problems or look ugly.
2718 # WARNING: Use '\'' to represent an apostrophe within the trap.
2719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2720 trap 'exit_status=$?
2721 # Save into config.log some information that might help in debugging.
2723 echo
2725 cat <<\_ASBOX
2726 ## ---------------- ##
2727 ## Cache variables. ##
2728 ## ---------------- ##
2729 _ASBOX
2730 echo
2731 # The following way of writing the cache mishandles newlines in values,
2733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2734 eval ac_val=\$$ac_var
2735 case $ac_val in #(
2736 *${as_nl}*)
2737 case $ac_var in #(
2738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2740 esac
2741 case $ac_var in #(
2742 _ | IFS | as_nl) ;; #(
2743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2744 *) { eval $ac_var=; unset $ac_var;} ;;
2745 esac ;;
2746 esac
2747 done
2748 (set) 2>&1 |
2749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2750 *${as_nl}ac_space=\ *)
2751 sed -n \
2752 "s/'\''/'\''\\\\'\'''\''/g;
2753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2754 ;; #(
2756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2758 esac |
2759 sort
2761 echo
2763 cat <<\_ASBOX
2764 ## ----------------- ##
2765 ## Output variables. ##
2766 ## ----------------- ##
2767 _ASBOX
2768 echo
2769 for ac_var in $ac_subst_vars
2771 eval ac_val=\$$ac_var
2772 case $ac_val in
2773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774 esac
2775 $as_echo "$ac_var='\''$ac_val'\''"
2776 done | sort
2777 echo
2779 if test -n "$ac_subst_files"; then
2780 cat <<\_ASBOX
2781 ## ------------------- ##
2782 ## File substitutions. ##
2783 ## ------------------- ##
2784 _ASBOX
2785 echo
2786 for ac_var in $ac_subst_files
2788 eval ac_val=\$$ac_var
2789 case $ac_val in
2790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2791 esac
2792 $as_echo "$ac_var='\''$ac_val'\''"
2793 done | sort
2794 echo
2797 if test -s confdefs.h; then
2798 cat <<\_ASBOX
2799 ## ----------- ##
2800 ## confdefs.h. ##
2801 ## ----------- ##
2802 _ASBOX
2803 echo
2804 cat confdefs.h
2805 echo
2807 test "$ac_signal" != 0 &&
2808 $as_echo "$as_me: caught signal $ac_signal"
2809 $as_echo "$as_me: exit $exit_status"
2810 } >&5
2811 rm -f core *.core core.conftest.* &&
2812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2813 exit $exit_status
2815 for ac_signal in 1 2 13 15; do
2816 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2817 done
2818 ac_signal=0
2820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2821 rm -f -r conftest* confdefs.h
2823 $as_echo "/* confdefs.h */" > confdefs.h
2825 # Predefined preprocessor variables.
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_NAME "$PACKAGE_NAME"
2829 _ACEOF
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2833 _ACEOF
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2837 _ACEOF
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_STRING "$PACKAGE_STRING"
2841 _ACEOF
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2845 _ACEOF
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_URL "$PACKAGE_URL"
2849 _ACEOF
2852 # Let the site file select an alternate cache file if it wants to.
2853 # Prefer an explicitly selected file to automatically selected ones.
2854 ac_site_file1=NONE
2855 ac_site_file2=NONE
2856 if test -n "$CONFIG_SITE"; then
2857 ac_site_file1=$CONFIG_SITE
2858 elif test "x$prefix" != xNONE; then
2859 ac_site_file1=$prefix/share/config.site
2860 ac_site_file2=$prefix/etc/config.site
2861 else
2862 ac_site_file1=$ac_default_prefix/share/config.site
2863 ac_site_file2=$ac_default_prefix/etc/config.site
2865 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2867 test "x$ac_site_file" = xNONE && continue
2868 if test -r "$ac_site_file"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2870 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2871 sed 's/^/| /' "$ac_site_file" >&5
2872 . "$ac_site_file"
2874 done
2876 if test -r "$cache_file"; then
2877 # Some versions of bash will fail to source /dev/null (special
2878 # files actually), so we avoid doing that.
2879 if test -f "$cache_file"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2881 $as_echo "$as_me: loading cache $cache_file" >&6;}
2882 case $cache_file in
2883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2884 *) . "./$cache_file";;
2885 esac
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2889 $as_echo "$as_me: creating cache $cache_file" >&6;}
2890 >$cache_file
2893 # Check that the precious variables saved in the cache have kept the same
2894 # value.
2895 ac_cache_corrupted=false
2896 for ac_var in $ac_precious_vars; do
2897 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2898 eval ac_new_set=\$ac_env_${ac_var}_set
2899 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2900 eval ac_new_val=\$ac_env_${ac_var}_value
2901 case $ac_old_set,$ac_new_set in
2902 set,)
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2904 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2905 ac_cache_corrupted=: ;;
2906 ,set)
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2908 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2909 ac_cache_corrupted=: ;;
2910 ,);;
2912 if test "x$ac_old_val" != "x$ac_new_val"; then
2913 # differences in whitespace do not lead to failure.
2914 ac_old_val_w=`echo x $ac_old_val`
2915 ac_new_val_w=`echo x $ac_new_val`
2916 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2918 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2919 ac_cache_corrupted=:
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2922 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2923 eval $ac_var=\$ac_old_val
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2926 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2928 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2929 fi;;
2930 esac
2931 # Pass precious variables to config.status.
2932 if test "$ac_new_set" = set; then
2933 case $ac_new_val in
2934 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2935 *) ac_arg=$ac_var=$ac_new_val ;;
2936 esac
2937 case " $ac_configure_args " in
2938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2939 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2940 esac
2942 done
2943 if $ac_cache_corrupted; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2947 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2948 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2950 ## -------------------- ##
2951 ## Main body of script. ##
2952 ## -------------------- ##
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2968 gcc_version=`cat $srcdir/BASE-VER`
2970 # Determine the host, build, and target systems
2971 ac_aux_dir=
2972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2973 for ac_t in install-sh install.sh shtool; do
2974 if test -f "$ac_dir/$ac_t"; then
2975 ac_aux_dir=$ac_dir
2976 ac_install_sh="$ac_aux_dir/$ac_t -c"
2977 break 2
2979 done
2980 done
2981 if test -z "$ac_aux_dir"; then
2982 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2985 # These three variables are undocumented and unsupported,
2986 # and are intended to be withdrawn in a future Autoconf release.
2987 # They can cause serious problems if a builder's source tree is in a directory
2988 # whose full name contains unusual characters.
2989 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2990 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2991 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2994 # Make sure we can run config.sub.
2995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2996 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2999 $as_echo_n "checking build system type... " >&6; }
3000 if test "${ac_cv_build+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 ac_build_alias=$build_alias
3004 test "x$ac_build_alias" = x &&
3005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3006 test "x$ac_build_alias" = x &&
3007 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3008 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3009 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3013 $as_echo "$ac_cv_build" >&6; }
3014 case $ac_cv_build in
3015 *-*-*) ;;
3016 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3017 esac
3018 build=$ac_cv_build
3019 ac_save_IFS=$IFS; IFS='-'
3020 set x $ac_cv_build
3021 shift
3022 build_cpu=$1
3023 build_vendor=$2
3024 shift; shift
3025 # Remember, the first character of IFS is used to create $*,
3026 # except with old shells:
3027 build_os=$*
3028 IFS=$ac_save_IFS
3029 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3033 $as_echo_n "checking host system type... " >&6; }
3034 if test "${ac_cv_host+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test "x$host_alias" = x; then
3038 ac_cv_host=$ac_cv_build
3039 else
3040 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3041 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3046 $as_echo "$ac_cv_host" >&6; }
3047 case $ac_cv_host in
3048 *-*-*) ;;
3049 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3050 esac
3051 host=$ac_cv_host
3052 ac_save_IFS=$IFS; IFS='-'
3053 set x $ac_cv_host
3054 shift
3055 host_cpu=$1
3056 host_vendor=$2
3057 shift; shift
3058 # Remember, the first character of IFS is used to create $*,
3059 # except with old shells:
3060 host_os=$*
3061 IFS=$ac_save_IFS
3062 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3066 $as_echo_n "checking target system type... " >&6; }
3067 if test "${ac_cv_target+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test "x$target_alias" = x; then
3071 ac_cv_target=$ac_cv_host
3072 else
3073 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3074 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3079 $as_echo "$ac_cv_target" >&6; }
3080 case $ac_cv_target in
3081 *-*-*) ;;
3082 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3083 esac
3084 target=$ac_cv_target
3085 ac_save_IFS=$IFS; IFS='-'
3086 set x $ac_cv_target
3087 shift
3088 target_cpu=$1
3089 target_vendor=$2
3090 shift; shift
3091 # Remember, the first character of IFS is used to create $*,
3092 # except with old shells:
3093 target_os=$*
3094 IFS=$ac_save_IFS
3095 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3098 # The aliases save the names the user supplied, while $host etc.
3099 # will get canonicalized.
3100 test -n "$target_alias" &&
3101 test "$program_prefix$program_suffix$program_transform_name" = \
3102 NONENONEs,x,x, &&
3103 program_prefix=${target_alias}-
3105 # Determine the noncanonical target name, for directory use.
3106 case ${build_alias} in
3107 "") build_noncanonical=${build} ;;
3108 *) build_noncanonical=${build_alias} ;;
3109 esac
3111 case ${host_alias} in
3112 "") host_noncanonical=${build_noncanonical} ;;
3113 *) host_noncanonical=${host_alias} ;;
3114 esac
3116 case ${target_alias} in
3117 "") target_noncanonical=${host_noncanonical} ;;
3118 *) target_noncanonical=${target_alias} ;;
3119 esac
3124 # Determine the target- and build-specific subdirectories
3126 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3127 # have matching libraries, they should use host libraries: Makefile.tpl
3128 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3129 # However, they still use the build modules, because the corresponding
3130 # host modules (e.g. bison) are only built for the host when bootstrap
3131 # finishes. So:
3132 # - build_subdir is where we find build modules, and never changes.
3133 # - build_libsubdir is where we find build libraries, and can be overridden.
3135 # Prefix 'build-' so this never conflicts with target_subdir.
3136 build_subdir="build-${build_noncanonical}"
3138 # Check whether --with-build-libsubdir was given.
3139 if test "${with_build_libsubdir+set}" = set; then :
3140 withval=$with_build_libsubdir; build_libsubdir="$withval"
3141 else
3142 build_libsubdir="$build_subdir"
3145 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3146 if ( test $srcdir = . && test -d gcc ) \
3147 || test -d $srcdir/../host-${host_noncanonical}; then
3148 host_subdir="host-${host_noncanonical}"
3149 else
3150 host_subdir=.
3152 # No prefix.
3153 target_subdir=${target_noncanonical}
3156 # Set program_transform_name
3157 test "$program_prefix" != NONE &&
3158 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3159 # Use a double $ so make ignores it.
3160 test "$program_suffix" != NONE &&
3161 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3162 # Double any \ or $.
3163 # By default was `s,x,x', remove it if useless.
3164 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3165 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3168 # Check for bogus environment variables.
3169 # Test if LIBRARY_PATH contains the notation for the current directory
3170 # since this would lead to problems installing/building glibc.
3171 # LIBRARY_PATH contains the current directory if one of the following
3172 # is true:
3173 # - one of the terminals (":" and ";") is the first or last sign
3174 # - two terminals occur directly after each other
3175 # - the path contains an element with a dot in it
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3177 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3178 case ${LIBRARY_PATH} in
3179 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3180 library_path_setting="contains current directory"
3183 library_path_setting="ok"
3185 esac
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3187 $as_echo "$library_path_setting" >&6; }
3188 if test "$library_path_setting" != "ok"; then
3189 as_fn_error "
3190 *** LIBRARY_PATH shouldn't contain the current directory when
3191 *** building gcc. Please change the environment variable
3192 *** and run configure again." "$LINENO" 5
3195 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3196 # since this would lead to problems installing/building glibc.
3197 # GCC_EXEC_PREFIX contains the current directory if one of the following
3198 # is true:
3199 # - one of the terminals (":" and ";") is the first or last sign
3200 # - two terminals occur directly after each other
3201 # - the path contains an element with a dot in it
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3203 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3204 case ${GCC_EXEC_PREFIX} in
3205 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3206 gcc_exec_prefix_setting="contains current directory"
3209 gcc_exec_prefix_setting="ok"
3211 esac
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3213 $as_echo "$gcc_exec_prefix_setting" >&6; }
3214 if test "$gcc_exec_prefix_setting" != "ok"; then
3215 as_fn_error "
3216 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3217 *** building gcc. Please change the environment variable
3218 *** and run configure again." "$LINENO" 5
3221 # -----------
3222 # Directories
3223 # -----------
3225 # Specify the local prefix
3226 local_prefix=
3228 # Check whether --with-local-prefix was given.
3229 if test "${with_local_prefix+set}" = set; then :
3230 withval=$with_local_prefix; case "${withval}" in
3231 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3232 no) ;;
3233 *) local_prefix=$with_local_prefix ;;
3234 esac
3238 # Default local prefix if it is empty
3239 if test x$local_prefix = x; then
3240 local_prefix=/usr/local
3243 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3244 # passed in by the toplevel make and thus we'd get different behavior
3245 # depending on where we built the sources.
3246 gcc_gxx_include_dir=
3247 # Specify the g++ header file directory
3249 # Check whether --with-gxx-include-dir was given.
3250 if test "${with_gxx_include_dir+set}" = set; then :
3251 withval=$with_gxx_include_dir; case "${withval}" in
3252 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3253 no) ;;
3254 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3255 esac
3259 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3260 if test x${gcc_gxx_include_dir} = x; then
3261 if test x${enable_version_specific_runtime_libs} = xyes; then
3262 gcc_gxx_include_dir='${libsubdir}/include/c++'
3263 else
3264 libstdcxx_incdir='include/c++/$(version)'
3265 if test x$host != x$target; then
3266 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3268 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3273 # Check whether --with-cpp_install_dir was given.
3274 if test "${with_cpp_install_dir+set}" = set; then :
3275 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3276 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3277 elif test x$withval != xno; then
3278 cpp_install_dir=$withval
3283 # We would like to our source tree to be readonly. However when releases or
3284 # pre-releases are generated, the flex/bison generated files as well as the
3285 # various formats of manuals need to be included along with the rest of the
3286 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3287 # just that.
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3290 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3291 # Check whether --enable-generated-files-in-srcdir was given.
3292 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3293 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3294 else
3295 generated_files_in_srcdir=no
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3300 $as_echo "$generated_files_in_srcdir" >&6; }
3302 if test "$generated_files_in_srcdir" = "yes"; then
3303 GENINSRC=''
3304 else
3305 GENINSRC='#'
3309 # -------------------
3310 # Find default linker
3311 # -------------------
3313 # With GNU ld
3315 # Check whether --with-gnu-ld was given.
3316 if test "${with_gnu_ld+set}" = set; then :
3317 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3318 else
3319 gnu_ld_flag=no
3323 # With pre-defined ld
3325 # Check whether --with-ld was given.
3326 if test "${with_ld+set}" = set; then :
3327 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3330 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3331 if test ! -x "$DEFAULT_LINKER"; then
3332 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3333 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3334 gnu_ld_flag=yes
3337 cat >>confdefs.h <<_ACEOF
3338 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3339 _ACEOF
3343 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3345 cat >>confdefs.h <<_ACEOF
3346 #define HAVE_GNU_LD $gnu_ld
3347 _ACEOF
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3351 $as_echo_n "checking whether a default linker was specified... " >&6; }
3352 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3353 if test x"$gnu_ld_flag" = x"no"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3355 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3358 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3365 # With demangler in GNU ld
3367 # Check whether --with-demangler-in-ld was given.
3368 if test "${with_demangler_in_ld+set}" = set; then :
3369 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3370 else
3371 demangler_in_ld=no
3375 # ----------------------
3376 # Find default assembler
3377 # ----------------------
3379 # With GNU as
3381 # Check whether --with-gnu-as was given.
3382 if test "${with_gnu_as+set}" = set; then :
3383 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3384 else
3385 gas_flag=no
3390 # Check whether --with-as was given.
3391 if test "${with_as+set}" = set; then :
3392 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3395 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3396 if test ! -x "$DEFAULT_ASSEMBLER"; then
3397 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3398 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3399 gas_flag=yes
3402 cat >>confdefs.h <<_ACEOF
3403 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3404 _ACEOF
3408 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3410 cat >>confdefs.h <<_ACEOF
3411 #define HAVE_GNU_AS $gnu_as
3412 _ACEOF
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3416 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3417 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3418 if test x"$gas_flag" = x"no"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3420 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3423 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3430 # ---------------
3431 # Find C compiler
3432 # ---------------
3434 # If a non-executable a.out is present (e.g. created by GNU as above even if
3435 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3436 # file, even when creating an executable, so an execution test fails.
3437 # Remove possible default executable files to avoid this.
3439 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3440 # Autoconf includes it.
3441 rm -f a.out a.exe b.out
3443 # Find the native compiler
3444 ac_ext=c
3445 ac_cpp='$CPP $CPPFLAGS'
3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449 if test -n "$ac_tool_prefix"; then
3450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3451 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if test "${ac_cv_prog_CC+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC="$CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3471 done
3472 done
3473 IFS=$as_save_IFS
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3488 if test -z "$ac_cv_prog_CC"; then
3489 ac_ct_CC=$CC
3490 # Extract the first word of "gcc", so it can be a program name with args.
3491 set dummy gcc; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_ac_ct_CC="gcc"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3511 done
3512 done
3513 IFS=$as_save_IFS
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 $as_echo "$ac_ct_CC" >&6; }
3521 else
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3526 if test "x$ac_ct_CC" = x; then
3527 CC=""
3528 else
3529 case $cross_compiling:$ac_tool_warned in
3530 yes:)
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3533 ac_tool_warned=yes ;;
3534 esac
3535 CC=$ac_ct_CC
3537 else
3538 CC="$ac_cv_prog_CC"
3541 if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}cc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_CC="${ac_tool_prefix}cc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3564 done
3565 done
3566 IFS=$as_save_IFS
3570 CC=$ac_cv_prog_CC
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3582 if test -z "$CC"; then
3583 # Extract the first word of "cc", so it can be a program name with args.
3584 set dummy cc; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_CC+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 ac_prog_rejected=no
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3602 ac_prog_rejected=yes
3603 continue
3605 ac_cv_prog_CC="cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3609 done
3610 done
3611 IFS=$as_save_IFS
3613 if test $ac_prog_rejected = yes; then
3614 # We found a bogon in the path, so make sure we never use it.
3615 set dummy $ac_cv_prog_CC
3616 shift
3617 if test $# != 0; then
3618 # We chose a different compiler from the bogus one.
3619 # However, it has the same basename, so the bogon will be chosen
3620 # first if we set CC to just the basename; use the full file name.
3621 shift
3622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3627 CC=$ac_cv_prog_CC
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3638 if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 for ac_prog in cl.exe
3642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_CC+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3663 done
3664 done
3665 IFS=$as_save_IFS
3669 CC=$ac_cv_prog_CC
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3679 test -n "$CC" && break
3680 done
3682 if test -z "$CC"; then
3683 ac_ct_CC=$CC
3684 for ac_prog in cl.exe
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy $ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$ac_ct_CC"; then
3694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_ac_ct_CC="$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3707 done
3708 done
3709 IFS=$as_save_IFS
3713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3714 if test -n "$ac_ct_CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3716 $as_echo "$ac_ct_CC" >&6; }
3717 else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$ac_ct_CC" && break
3724 done
3726 if test "x$ac_ct_CC" = x; then
3727 CC=""
3728 else
3729 case $cross_compiling:$ac_tool_warned in
3730 yes:)
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3733 ac_tool_warned=yes ;;
3734 esac
3735 CC=$ac_ct_CC
3742 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error "no acceptable C compiler found in \$PATH
3745 See \`config.log' for more details." "$LINENO" 5; }
3747 # Provide some information about the compiler.
3748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3749 set X $ac_compile
3750 ac_compiler=$2
3751 for ac_option in --version -v -V -qversion; do
3752 { { ac_try="$ac_compiler $ac_option >&5"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3760 ac_status=$?
3761 if test -s conftest.err; then
3762 sed '10a\
3763 ... rest of stderr output deleted ...
3764 10q' conftest.err >conftest.er1
3765 cat conftest.er1 >&5
3766 rm -f conftest.er1 conftest.err
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }
3770 done
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3776 main ()
3780 return 0;
3782 _ACEOF
3783 ac_clean_files_save=$ac_clean_files
3784 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3785 # Try to create an executable without -o first, disregard a.out.
3786 # It will help us diagnose broken compilers, and finding out an intuition
3787 # of exeext.
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3789 $as_echo_n "checking for C compiler default output file name... " >&6; }
3790 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3792 # The possible output files:
3793 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3795 ac_rmfiles=
3796 for ac_file in $ac_files
3798 case $ac_file in
3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3801 esac
3802 done
3803 rm -f $ac_rmfiles
3805 if { { ac_try="$ac_link_default"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_link_default") 2>&5
3813 ac_status=$?
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }; then :
3816 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3817 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3818 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3819 # so that the user can short-circuit this test for compilers unknown to
3820 # Autoconf.
3821 for ac_file in $ac_files ''
3823 test -f "$ac_file" || continue
3824 case $ac_file in
3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3827 [ab].out )
3828 # We found the default executable, but exeext='' is most
3829 # certainly right.
3830 break;;
3831 *.* )
3832 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3833 then :; else
3834 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 # We set ac_cv_exeext here because the later test for it is not
3837 # safe: cross compilers may not add the suffix if given an `-o'
3838 # argument, so we may need to know it at that point already.
3839 # Even if this section looks crufty: it has the advantage of
3840 # actually working.
3841 break;;
3843 break;;
3844 esac
3845 done
3846 test "$ac_cv_exeext" = no && ac_cv_exeext=
3848 else
3849 ac_file=''
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3852 $as_echo "$ac_file" >&6; }
3853 if test -z "$ac_file"; then :
3854 $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 { as_fn_set_status 77
3860 as_fn_error "C compiler cannot create executables
3861 See \`config.log' for more details." "$LINENO" 5; }; }
3863 ac_exeext=$ac_cv_exeext
3865 # Check that the compiler produces executables we can run. If not, either
3866 # the compiler is broken, or we cross compile.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3868 $as_echo_n "checking whether the C compiler works... " >&6; }
3869 # If not cross compiling, check that we can run a simple program.
3870 if test "$cross_compiling" != yes; then
3871 if { ac_try='./$ac_file'
3872 { { case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875 esac
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_try") 2>&5
3879 ac_status=$?
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; }; then
3882 cross_compiling=no
3883 else
3884 if test "$cross_compiling" = maybe; then
3885 cross_compiling=yes
3886 else
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error "cannot run C compiled programs.
3890 If you meant to cross compile, use \`--host'.
3891 See \`config.log' for more details." "$LINENO" 5; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896 $as_echo "yes" >&6; }
3898 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3899 ac_clean_files=$ac_clean_files_save
3900 # Check that the compiler produces executables we can run. If not, either
3901 # the compiler is broken, or we cross compile.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3903 $as_echo_n "checking whether we are cross compiling... " >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3905 $as_echo "$cross_compiling" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3908 $as_echo_n "checking for suffix of executables... " >&6; }
3909 if { { ac_try="$ac_link"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_link") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; then :
3920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3922 # work properly (i.e., refer to `conftest.exe'), while it won't with
3923 # `rm'.
3924 for ac_file in conftest.exe conftest conftest.*; do
3925 test -f "$ac_file" || continue
3926 case $ac_file in
3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3929 break;;
3930 * ) break;;
3931 esac
3932 done
3933 else
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error "cannot compute suffix of executables: cannot compile and link
3937 See \`config.log' for more details." "$LINENO" 5; }
3939 rm -f conftest$ac_cv_exeext
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3941 $as_echo "$ac_cv_exeext" >&6; }
3943 rm -f conftest.$ac_ext
3944 EXEEXT=$ac_cv_exeext
3945 ac_exeext=$EXEEXT
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3947 $as_echo_n "checking for suffix of object files... " >&6; }
3948 if test "${ac_cv_objext+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 main ()
3959 return 0;
3961 _ACEOF
3962 rm -f conftest.o conftest.obj
3963 if { { ac_try="$ac_compile"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compile") 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 for ac_file in conftest.o conftest.obj conftest.*; do
3975 test -f "$ac_file" || continue;
3976 case $ac_file in
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3979 break;;
3980 esac
3981 done
3982 else
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error "cannot compute suffix of object files: cannot compile
3989 See \`config.log' for more details." "$LINENO" 5; }
3991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3994 $as_echo "$ac_cv_objext" >&6; }
3995 OBJEXT=$ac_cv_objext
3996 ac_objext=$OBJEXT
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3999 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4006 main ()
4008 #ifndef __GNUC__
4009 choke me
4010 #endif
4013 return 0;
4015 _ACEOF
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_compiler_gnu=yes
4018 else
4019 ac_compiler_gnu=no
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4027 if test $ac_compiler_gnu = yes; then
4028 GCC=yes
4029 else
4030 GCC=
4032 ac_test_CFLAGS=${CFLAGS+set}
4033 ac_save_CFLAGS=$CFLAGS
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4036 if test "${ac_cv_prog_cc_g+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 ac_save_c_werror_flag=$ac_c_werror_flag
4040 ac_c_werror_flag=yes
4041 ac_cv_prog_cc_g=no
4042 CFLAGS="-g"
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4047 main ()
4051 return 0;
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_g=yes
4056 else
4057 CFLAGS=""
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4062 main ()
4066 return 0;
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4071 else
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4073 CFLAGS="-g"
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4078 main ()
4082 return 0;
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_cv_prog_cc_g=yes
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_c_werror_flag=$ac_save_c_werror_flag
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096 $as_echo "$ac_cv_prog_cc_g" >&6; }
4097 if test "$ac_test_CFLAGS" = set; then
4098 CFLAGS=$ac_save_CFLAGS
4099 elif test $ac_cv_prog_cc_g = yes; then
4100 if test "$GCC" = yes; then
4101 CFLAGS="-g -O2"
4102 else
4103 CFLAGS="-g"
4105 else
4106 if test "$GCC" = yes; then
4107 CFLAGS="-O2"
4108 else
4109 CFLAGS=
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4114 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 ac_cv_prog_cc_c89=no
4118 ac_save_CC=$CC
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #include <stdarg.h>
4122 #include <stdio.h>
4123 #include <sys/types.h>
4124 #include <sys/stat.h>
4125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4126 struct buf { int x; };
4127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4128 static char *e (p, i)
4129 char **p;
4130 int i;
4132 return p[i];
4134 static char *f (char * (*g) (char **, int), char **p, ...)
4136 char *s;
4137 va_list v;
4138 va_start (v,p);
4139 s = g (p, va_arg (v,int));
4140 va_end (v);
4141 return s;
4144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4145 function prototypes and stuff, but not '\xHH' hex character constants.
4146 These don't provoke an error unfortunately, instead are silently treated
4147 as 'x'. The following induces an error, until -std is added to get
4148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4149 array size at least. It's necessary to write '\x00'==0 to get something
4150 that's true only with -std. */
4151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4154 inside strings and character constants. */
4155 #define FOO(x) 'x'
4156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158 int test (int i, double x);
4159 struct s1 {int (*f) (int a);};
4160 struct s2 {int (*f) (double a);};
4161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4162 int argc;
4163 char **argv;
4165 main ()
4167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4169 return 0;
4171 _ACEOF
4172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_c89=$ac_arg
4179 rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c89" != "xno" && break
4181 done
4182 rm -f conftest.$ac_ext
4183 CC=$ac_save_CC
4186 # AC_CACHE_VAL
4187 case "x$ac_cv_prog_cc_c89" in
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190 $as_echo "none needed" >&6; } ;;
4191 xno)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193 $as_echo "unsupported" >&6; } ;;
4195 CC="$CC $ac_cv_prog_cc_c89"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4198 esac
4199 if test "x$ac_cv_prog_cc_c89" != xno; then :
4203 ac_ext=c
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 if test "x$CC" != xcc; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4211 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4214 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4216 set dummy $CC; ac_cc=`$as_echo "$2" |
4217 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4218 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4225 main ()
4229 return 0;
4231 _ACEOF
4232 # Make sure it works both with $CC and with simple cc.
4233 # We do the test twice because some compilers refuse to overwrite an
4234 # existing .o file with -o, though they will create one.
4235 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4236 rm -f conftest2.*
4237 if { { case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242 $as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_try") 2>&5
4244 ac_status=$?
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; } &&
4247 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_try") 2>&5
4254 ac_status=$?
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; };
4257 then
4258 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4259 if test "x$CC" != xcc; then
4260 # Test first that cc exists at all.
4261 if { ac_try='cc -c conftest.$ac_ext >&5'
4262 { { case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 $as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }; }; then
4272 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4273 rm -f conftest2.*
4274 if { { case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280 (eval "$ac_try") 2>&5
4281 ac_status=$?
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; } &&
4284 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_try") 2>&5
4291 ac_status=$?
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; };
4294 then
4295 # cc works too.
4297 else
4298 # cc exists but doesn't like -o.
4299 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4303 else
4304 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4306 rm -f core conftest*
4309 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4311 $as_echo "yes" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4316 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4320 # expand $ac_aux_dir to an absolute path
4321 am_aux_dir=`cd $ac_aux_dir && pwd`
4323 # FIXME: we rely on the cache variable name because
4324 # there is no other way.
4325 set dummy $CC
4326 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4327 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4328 if test "$am_t" != yes; then
4329 # Losing compiler, so override with the script.
4330 # FIXME: It is wrong to rewrite CC.
4331 # But if we don't then we get into trouble of one sort or another.
4332 # A longer-term fix would be to have automake use am__CC in this case,
4333 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4334 CC="$am_aux_dir/compile $CC"
4338 ac_ext=cpp
4339 ac_cpp='$CXXCPP $CPPFLAGS'
4340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4343 if test -z "$CXX"; then
4344 if test -n "$CCC"; then
4345 CXX=$CCC
4346 else
4347 if test -n "$ac_tool_prefix"; then
4348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$CXX"; then
4358 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4377 CXX=$ac_cv_prog_CXX
4378 if test -n "$CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4380 $as_echo "$CXX" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$CXX" && break
4388 done
4390 if test -z "$CXX"; then
4391 ac_ct_CXX=$CXX
4392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394 # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$ac_ct_CXX"; then
4402 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_ac_ct_CXX="$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4417 IFS=$as_save_IFS
4421 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4422 if test -n "$ac_ct_CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4424 $as_echo "$ac_ct_CXX" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$ac_ct_CXX" && break
4432 done
4434 if test "x$ac_ct_CXX" = x; then
4435 CXX="g++"
4436 else
4437 case $cross_compiling:$ac_tool_warned in
4438 yes:)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned=yes ;;
4442 esac
4443 CXX=$ac_ct_CXX
4449 # Provide some information about the compiler.
4450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4451 set X $ac_compile
4452 ac_compiler=$2
4453 for ac_option in --version -v -V -qversion; do
4454 { { ac_try="$ac_compiler $ac_option >&5"
4455 case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4462 ac_status=$?
4463 if test -s conftest.err; then
4464 sed '10a\
4465 ... rest of stderr output deleted ...
4466 10q' conftest.err >conftest.er1
4467 cat conftest.er1 >&5
4468 rm -f conftest.er1 conftest.err
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }
4472 done
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4475 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4476 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4483 main ()
4485 #ifndef __GNUC__
4486 choke me
4487 #endif
4490 return 0;
4492 _ACEOF
4493 if ac_fn_cxx_try_compile "$LINENO"; then :
4494 ac_compiler_gnu=yes
4495 else
4496 ac_compiler_gnu=no
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4503 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4504 if test $ac_compiler_gnu = yes; then
4505 GXX=yes
4506 else
4507 GXX=
4509 ac_test_CXXFLAGS=${CXXFLAGS+set}
4510 ac_save_CXXFLAGS=$CXXFLAGS
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4512 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4513 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4517 ac_cxx_werror_flag=yes
4518 ac_cv_prog_cxx_g=no
4519 CXXFLAGS="-g"
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4524 main ()
4528 return 0;
4530 _ACEOF
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4532 ac_cv_prog_cxx_g=yes
4533 else
4534 CXXFLAGS=""
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 main ()
4543 return 0;
4545 _ACEOF
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4548 else
4549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4550 CXXFLAGS="-g"
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4555 main ()
4559 return 0;
4561 _ACEOF
4562 if ac_fn_cxx_try_compile "$LINENO"; then :
4563 ac_cv_prog_cxx_g=yes
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4573 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4574 if test "$ac_test_CXXFLAGS" = set; then
4575 CXXFLAGS=$ac_save_CXXFLAGS
4576 elif test $ac_cv_prog_cxx_g = yes; then
4577 if test "$GXX" = yes; then
4578 CXXFLAGS="-g -O2"
4579 else
4580 CXXFLAGS="-g"
4582 else
4583 if test "$GXX" = yes; then
4584 CXXFLAGS="-O2"
4585 else
4586 CXXFLAGS=
4589 ac_ext=c
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598 if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 if test -n "$GNATBIND"; then
4607 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4622 IFS=$as_save_IFS
4626 GNATBIND=$ac_cv_prog_GNATBIND
4627 if test -n "$GNATBIND"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4629 $as_echo "$GNATBIND" >&6; }
4630 else
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4637 if test -z "$ac_cv_prog_GNATBIND"; then
4638 ac_ct_GNATBIND=$GNATBIND
4639 # Extract the first word of "gnatbind", so it can be a program name with args.
4640 set dummy gnatbind; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$ac_ct_GNATBIND"; then
4647 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4667 if test -n "$ac_ct_GNATBIND"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4669 $as_echo "$ac_ct_GNATBIND" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4675 if test "x$ac_ct_GNATBIND" = x; then
4676 GNATBIND="no"
4677 else
4678 case $cross_compiling:$ac_tool_warned in
4679 yes:)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4683 esac
4684 GNATBIND=$ac_ct_GNATBIND
4686 else
4687 GNATBIND="$ac_cv_prog_GNATBIND"
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4692 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$GNATMAKE"; then
4699 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 GNATMAKE=$ac_cv_prog_GNATMAKE
4719 if test -n "$GNATMAKE"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4721 $as_echo "$GNATMAKE" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4729 if test -z "$ac_cv_prog_GNATMAKE"; then
4730 ac_ct_GNATMAKE=$GNATMAKE
4731 # Extract the first word of "gnatmake", so it can be a program name with args.
4732 set dummy gnatmake; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$ac_ct_GNATMAKE"; then
4739 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4759 if test -n "$ac_ct_GNATMAKE"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4761 $as_echo "$ac_ct_GNATMAKE" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4767 if test "x$ac_ct_GNATMAKE" = x; then
4768 GNATMAKE="no"
4769 else
4770 case $cross_compiling:$ac_tool_warned in
4771 yes:)
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774 ac_tool_warned=yes ;;
4775 esac
4776 GNATMAKE=$ac_ct_GNATMAKE
4778 else
4779 GNATMAKE="$ac_cv_prog_GNATMAKE"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4783 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4784 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 cat >conftest.adb <<EOF
4788 procedure conftest is begin null; end conftest;
4790 acx_cv_cc_gcc_supports_ada=no
4791 # There is a bug in old released versions of GCC which causes the
4792 # driver to exit successfully when the appropriate language module
4793 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4794 # Therefore we must check for the error message as well as an
4795 # unsuccessful exit.
4796 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4797 # given a .adb file, but produce no object file. So we must check
4798 # if an object file was really produced to guard against this.
4799 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4800 if test x"$errors" = x && test -f conftest.$ac_objext; then
4801 acx_cv_cc_gcc_supports_ada=yes
4803 rm -f conftest.*
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4806 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4808 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4809 have_gnat=yes
4810 else
4811 have_gnat=no
4815 # autoconf is lame and doesn't give us any substitution variable for this.
4816 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4817 NO_MINUS_C_MINUS_O=yes
4818 else
4819 OUTPUT_OPTION='-o $@'
4824 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4825 # optimizations to be activated explicitly by the toplevel.
4826 case "$CC" in
4827 */prev-gcc/xgcc*) ;;
4828 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4829 esac
4832 # -------------------------
4833 # Check C compiler features
4834 # -------------------------
4837 ac_ext=c
4838 ac_cpp='$CPP $CPPFLAGS'
4839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4843 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4844 # On Suns, sometimes $CPP names a directory.
4845 if test -n "$CPP" && test -d "$CPP"; then
4846 CPP=
4848 if test -z "$CPP"; then
4849 if test "${ac_cv_prog_CPP+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 # Double quotes because CPP needs to be expanded
4853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4855 ac_preproc_ok=false
4856 for ac_c_preproc_warn_flag in '' yes
4858 # Use a header file that comes with gcc, so configuring glibc
4859 # with a fresh cross-compiler works.
4860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4861 # <limits.h> exists even on freestanding compilers.
4862 # On the NeXT, cc -E runs the code through the compiler's parser,
4863 # not just through cpp. "Syntax error" is here to catch this case.
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #ifdef __STDC__
4867 # include <limits.h>
4868 #else
4869 # include <assert.h>
4870 #endif
4871 Syntax error
4872 _ACEOF
4873 if ac_fn_c_try_cpp "$LINENO"; then :
4875 else
4876 # Broken: fails on valid input.
4877 continue
4879 rm -f conftest.err conftest.$ac_ext
4881 # OK, works on sane cases. Now check whether nonexistent headers
4882 # can be detected and how.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4886 _ACEOF
4887 if ac_fn_c_try_cpp "$LINENO"; then :
4888 # Broken: success on invalid input.
4889 continue
4890 else
4891 # Passes both tests.
4892 ac_preproc_ok=:
4893 break
4895 rm -f conftest.err conftest.$ac_ext
4897 done
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.$ac_ext
4900 if $ac_preproc_ok; then :
4901 break
4904 done
4905 ac_cv_prog_CPP=$CPP
4908 CPP=$ac_cv_prog_CPP
4909 else
4910 ac_cv_prog_CPP=$CPP
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4913 $as_echo "$CPP" >&6; }
4914 ac_preproc_ok=false
4915 for ac_c_preproc_warn_flag in '' yes
4917 # Use a header file that comes with gcc, so configuring glibc
4918 # with a fresh cross-compiler works.
4919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920 # <limits.h> exists even on freestanding compilers.
4921 # On the NeXT, cc -E runs the code through the compiler's parser,
4922 # not just through cpp. "Syntax error" is here to catch this case.
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 #ifdef __STDC__
4926 # include <limits.h>
4927 #else
4928 # include <assert.h>
4929 #endif
4930 Syntax error
4931 _ACEOF
4932 if ac_fn_c_try_cpp "$LINENO"; then :
4934 else
4935 # Broken: fails on valid input.
4936 continue
4938 rm -f conftest.err conftest.$ac_ext
4940 # OK, works on sane cases. Now check whether nonexistent headers
4941 # can be detected and how.
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #include <ac_nonexistent.h>
4945 _ACEOF
4946 if ac_fn_c_try_cpp "$LINENO"; then :
4947 # Broken: success on invalid input.
4948 continue
4949 else
4950 # Passes both tests.
4951 ac_preproc_ok=:
4952 break
4954 rm -f conftest.err conftest.$ac_ext
4956 done
4957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4958 rm -f conftest.err conftest.$ac_ext
4959 if $ac_preproc_ok; then :
4961 else
4962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4964 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4965 See \`config.log' for more details." "$LINENO" 5; }
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4976 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4977 if test "${ac_cv_path_GREP+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 if test -z "$GREP"; then
4981 ac_path_GREP_found=false
4982 # Loop through the user's path and test for each of PROGNAME-LIST
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_prog in grep ggrep; do
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4991 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4992 # Check for GNU ac_path_GREP and select it if it is found.
4993 # Check for GNU $ac_path_GREP
4994 case `"$ac_path_GREP" --version 2>&1` in
4995 *GNU*)
4996 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4998 ac_count=0
4999 $as_echo_n 0123456789 >"conftest.in"
5000 while :
5002 cat "conftest.in" "conftest.in" >"conftest.tmp"
5003 mv "conftest.tmp" "conftest.in"
5004 cp "conftest.in" "conftest.nl"
5005 $as_echo 'GREP' >> "conftest.nl"
5006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5008 as_fn_arith $ac_count + 1 && ac_count=$as_val
5009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5010 # Best one so far, save it but keep looking for a better one
5011 ac_cv_path_GREP="$ac_path_GREP"
5012 ac_path_GREP_max=$ac_count
5014 # 10*(2^10) chars as input seems more than enough
5015 test $ac_count -gt 10 && break
5016 done
5017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5018 esac
5020 $ac_path_GREP_found && break 3
5021 done
5022 done
5023 done
5024 IFS=$as_save_IFS
5025 if test -z "$ac_cv_path_GREP"; then
5026 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5028 else
5029 ac_cv_path_GREP=$GREP
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5034 $as_echo "$ac_cv_path_GREP" >&6; }
5035 GREP="$ac_cv_path_GREP"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5039 $as_echo_n "checking for egrep... " >&6; }
5040 if test "${ac_cv_path_EGREP+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5044 then ac_cv_path_EGREP="$GREP -E"
5045 else
5046 if test -z "$EGREP"; then
5047 ac_path_EGREP_found=false
5048 # Loop through the user's path and test for each of PROGNAME-LIST
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_prog in egrep; do
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5057 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5058 # Check for GNU ac_path_EGREP and select it if it is found.
5059 # Check for GNU $ac_path_EGREP
5060 case `"$ac_path_EGREP" --version 2>&1` in
5061 *GNU*)
5062 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5064 ac_count=0
5065 $as_echo_n 0123456789 >"conftest.in"
5066 while :
5068 cat "conftest.in" "conftest.in" >"conftest.tmp"
5069 mv "conftest.tmp" "conftest.in"
5070 cp "conftest.in" "conftest.nl"
5071 $as_echo 'EGREP' >> "conftest.nl"
5072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5074 as_fn_arith $ac_count + 1 && ac_count=$as_val
5075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5076 # Best one so far, save it but keep looking for a better one
5077 ac_cv_path_EGREP="$ac_path_EGREP"
5078 ac_path_EGREP_max=$ac_count
5080 # 10*(2^10) chars as input seems more than enough
5081 test $ac_count -gt 10 && break
5082 done
5083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5084 esac
5086 $ac_path_EGREP_found && break 3
5087 done
5088 done
5089 done
5090 IFS=$as_save_IFS
5091 if test -z "$ac_cv_path_EGREP"; then
5092 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5094 else
5095 ac_cv_path_EGREP=$EGREP
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5101 $as_echo "$ac_cv_path_EGREP" >&6; }
5102 EGREP="$ac_cv_path_EGREP"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5106 $as_echo_n "checking for ANSI C header files... " >&6; }
5107 if test "${ac_cv_header_stdc+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 #include <stdlib.h>
5113 #include <stdarg.h>
5114 #include <string.h>
5115 #include <float.h>
5118 main ()
5122 return 0;
5124 _ACEOF
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126 ac_cv_header_stdc=yes
5127 else
5128 ac_cv_header_stdc=no
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 if test $ac_cv_header_stdc = yes; then
5133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 #include <string.h>
5138 _ACEOF
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "memchr" >/dev/null 2>&1; then :
5142 else
5143 ac_cv_header_stdc=no
5145 rm -f conftest*
5149 if test $ac_cv_header_stdc = yes; then
5150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #include <stdlib.h>
5155 _ACEOF
5156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5157 $EGREP "free" >/dev/null 2>&1; then :
5159 else
5160 ac_cv_header_stdc=no
5162 rm -f conftest*
5166 if test $ac_cv_header_stdc = yes; then
5167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5168 if test "$cross_compiling" = yes; then :
5170 else
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 #include <ctype.h>
5174 #include <stdlib.h>
5175 #if ((' ' & 0x0FF) == 0x020)
5176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5178 #else
5179 # define ISLOWER(c) \
5180 (('a' <= (c) && (c) <= 'i') \
5181 || ('j' <= (c) && (c) <= 'r') \
5182 || ('s' <= (c) && (c) <= 'z'))
5183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5184 #endif
5186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5188 main ()
5190 int i;
5191 for (i = 0; i < 256; i++)
5192 if (XOR (islower (i), ISLOWER (i))
5193 || toupper (i) != TOUPPER (i))
5194 return 2;
5195 return 0;
5197 _ACEOF
5198 if ac_fn_c_try_run "$LINENO"; then :
5200 else
5201 ac_cv_header_stdc=no
5203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5204 conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5210 $as_echo "$ac_cv_header_stdc" >&6; }
5211 if test $ac_cv_header_stdc = yes; then
5213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5219 inttypes.h stdint.h unistd.h
5220 do :
5221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5222 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5224 eval as_val=\$$as_ac_Header
5225 if test "x$as_val" = x""yes; then :
5226 cat >>confdefs.h <<_ACEOF
5227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5228 _ACEOF
5232 done
5236 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5237 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5238 MINIX=yes
5239 else
5240 MINIX=
5244 if test "$MINIX" = yes; then
5246 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5249 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5252 $as_echo "#define _MINIX 1" >>confdefs.h
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5258 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5259 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5265 # define __EXTENSIONS__ 1
5266 $ac_includes_default
5268 main ()
5272 return 0;
5274 _ACEOF
5275 if ac_fn_c_try_compile "$LINENO"; then :
5276 ac_cv_safe_to_define___extensions__=yes
5277 else
5278 ac_cv_safe_to_define___extensions__=no
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5283 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5284 test $ac_cv_safe_to_define___extensions__ = yes &&
5285 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5287 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5289 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5291 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5293 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5296 ac_ext=c
5297 ac_cpp='$CPP $CPPFLAGS'
5298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5303 # On Suns, sometimes $CPP names a directory.
5304 if test -n "$CPP" && test -d "$CPP"; then
5305 CPP=
5307 if test -z "$CPP"; then
5308 if test "${ac_cv_prog_CPP+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 # Double quotes because CPP needs to be expanded
5312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5314 ac_preproc_ok=false
5315 for ac_c_preproc_warn_flag in '' yes
5317 # Use a header file that comes with gcc, so configuring glibc
5318 # with a fresh cross-compiler works.
5319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320 # <limits.h> exists even on freestanding compilers.
5321 # On the NeXT, cc -E runs the code through the compiler's parser,
5322 # not just through cpp. "Syntax error" is here to catch this case.
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 #ifdef __STDC__
5326 # include <limits.h>
5327 #else
5328 # include <assert.h>
5329 #endif
5330 Syntax error
5331 _ACEOF
5332 if ac_fn_c_try_cpp "$LINENO"; then :
5334 else
5335 # Broken: fails on valid input.
5336 continue
5338 rm -f conftest.err conftest.$ac_ext
5340 # OK, works on sane cases. Now check whether nonexistent headers
5341 # can be detected and how.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <ac_nonexistent.h>
5345 _ACEOF
5346 if ac_fn_c_try_cpp "$LINENO"; then :
5347 # Broken: success on invalid input.
5348 continue
5349 else
5350 # Passes both tests.
5351 ac_preproc_ok=:
5352 break
5354 rm -f conftest.err conftest.$ac_ext
5356 done
5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358 rm -f conftest.err conftest.$ac_ext
5359 if $ac_preproc_ok; then :
5360 break
5363 done
5364 ac_cv_prog_CPP=$CPP
5367 CPP=$ac_cv_prog_CPP
5368 else
5369 ac_cv_prog_CPP=$CPP
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5372 $as_echo "$CPP" >&6; }
5373 ac_preproc_ok=false
5374 for ac_c_preproc_warn_flag in '' yes
5376 # Use a header file that comes with gcc, so configuring glibc
5377 # with a fresh cross-compiler works.
5378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5379 # <limits.h> exists even on freestanding compilers.
5380 # On the NeXT, cc -E runs the code through the compiler's parser,
5381 # not just through cpp. "Syntax error" is here to catch this case.
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 #ifdef __STDC__
5385 # include <limits.h>
5386 #else
5387 # include <assert.h>
5388 #endif
5389 Syntax error
5390 _ACEOF
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5393 else
5394 # Broken: fails on valid input.
5395 continue
5397 rm -f conftest.err conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <ac_nonexistent.h>
5404 _ACEOF
5405 if ac_fn_c_try_cpp "$LINENO"; then :
5406 # Broken: success on invalid input.
5407 continue
5408 else
5409 # Passes both tests.
5410 ac_preproc_ok=:
5411 break
5413 rm -f conftest.err conftest.$ac_ext
5415 done
5416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5417 rm -f conftest.err conftest.$ac_ext
5418 if $ac_preproc_ok; then :
5420 else
5421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5423 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5424 See \`config.log' for more details." "$LINENO" 5; }
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5434 $as_echo_n "checking for inline... " >&6; }
5435 if test "${ac_cv_c_inline+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 ac_cv_c_inline=no
5439 for ac_kw in inline __inline__ __inline; do
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #ifndef __cplusplus
5443 typedef int foo_t;
5444 static $ac_kw foo_t static_foo () {return 0; }
5445 $ac_kw foo_t foo () {return 0; }
5446 #endif
5448 _ACEOF
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450 ac_cv_c_inline=$ac_kw
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 test "$ac_cv_c_inline" != no && break
5454 done
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5458 $as_echo "$ac_cv_c_inline" >&6; }
5460 case $ac_cv_c_inline in
5461 inline | yes) ;;
5463 case $ac_cv_c_inline in
5464 no) ac_val=;;
5465 *) ac_val=$ac_cv_c_inline;;
5466 esac
5467 cat >>confdefs.h <<_ACEOF
5468 #ifndef __cplusplus
5469 #define inline $ac_val
5470 #endif
5471 _ACEOF
5473 esac
5476 # sizeof(char) is 1 by definition.
5477 # The cast to long int works around a bug in the HP C Compiler
5478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5480 # This bug is HP SR number 8606223364.
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5482 $as_echo_n "checking size of void *... " >&6; }
5483 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5488 else
5489 if test "$ac_cv_type_void_p" = yes; then
5490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5492 { as_fn_set_status 77
5493 as_fn_error "cannot compute sizeof (void *)
5494 See \`config.log' for more details." "$LINENO" 5; }; }
5495 else
5496 ac_cv_sizeof_void_p=0
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5502 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5506 cat >>confdefs.h <<_ACEOF
5507 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5508 _ACEOF
5511 # The cast to long int works around a bug in the HP C Compiler
5512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5514 # This bug is HP SR number 8606223364.
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5516 $as_echo_n "checking size of short... " >&6; }
5517 if test "${ac_cv_sizeof_short+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5522 else
5523 if test "$ac_cv_type_short" = yes; then
5524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526 { as_fn_set_status 77
5527 as_fn_error "cannot compute sizeof (short)
5528 See \`config.log' for more details." "$LINENO" 5; }; }
5529 else
5530 ac_cv_sizeof_short=0
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5536 $as_echo "$ac_cv_sizeof_short" >&6; }
5540 cat >>confdefs.h <<_ACEOF
5541 #define SIZEOF_SHORT $ac_cv_sizeof_short
5542 _ACEOF
5545 # The cast to long int works around a bug in the HP C Compiler
5546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5548 # This bug is HP SR number 8606223364.
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5550 $as_echo_n "checking size of int... " >&6; }
5551 if test "${ac_cv_sizeof_int+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5556 else
5557 if test "$ac_cv_type_int" = yes; then
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5560 { as_fn_set_status 77
5561 as_fn_error "cannot compute sizeof (int)
5562 See \`config.log' for more details." "$LINENO" 5; }; }
5563 else
5564 ac_cv_sizeof_int=0
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5570 $as_echo "$ac_cv_sizeof_int" >&6; }
5574 cat >>confdefs.h <<_ACEOF
5575 #define SIZEOF_INT $ac_cv_sizeof_int
5576 _ACEOF
5579 # The cast to long int works around a bug in the HP C Compiler
5580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5582 # This bug is HP SR number 8606223364.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5584 $as_echo_n "checking size of long... " >&6; }
5585 if test "${ac_cv_sizeof_long+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5590 else
5591 if test "$ac_cv_type_long" = yes; then
5592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { as_fn_set_status 77
5595 as_fn_error "cannot compute sizeof (long)
5596 See \`config.log' for more details." "$LINENO" 5; }; }
5597 else
5598 ac_cv_sizeof_long=0
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5604 $as_echo "$ac_cv_sizeof_long" >&6; }
5608 cat >>confdefs.h <<_ACEOF
5609 #define SIZEOF_LONG $ac_cv_sizeof_long
5610 _ACEOF
5613 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5614 if test "x$ac_cv_type_long_long" = x""yes; then :
5616 cat >>confdefs.h <<_ACEOF
5617 #define HAVE_LONG_LONG 1
5618 _ACEOF
5620 # The cast to long int works around a bug in the HP C Compiler
5621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5623 # This bug is HP SR number 8606223364.
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5625 $as_echo_n "checking size of long long... " >&6; }
5626 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5631 else
5632 if test "$ac_cv_type_long_long" = yes; then
5633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5635 { as_fn_set_status 77
5636 as_fn_error "cannot compute sizeof (long long)
5637 See \`config.log' for more details." "$LINENO" 5; }; }
5638 else
5639 ac_cv_sizeof_long_long=0
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5645 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5649 cat >>confdefs.h <<_ACEOF
5650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5651 _ACEOF
5656 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5657 if test "x$ac_cv_type___int64" = x""yes; then :
5659 cat >>confdefs.h <<_ACEOF
5660 #define HAVE___INT64 1
5661 _ACEOF
5663 # The cast to long int works around a bug in the HP C Compiler
5664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5666 # This bug is HP SR number 8606223364.
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5668 $as_echo_n "checking size of __int64... " >&6; }
5669 if test "${ac_cv_sizeof___int64+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5674 else
5675 if test "$ac_cv_type___int64" = yes; then
5676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5678 { as_fn_set_status 77
5679 as_fn_error "cannot compute sizeof (__int64)
5680 See \`config.log' for more details." "$LINENO" 5; }; }
5681 else
5682 ac_cv_sizeof___int64=0
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5688 $as_echo "$ac_cv_sizeof___int64" >&6; }
5692 cat >>confdefs.h <<_ACEOF
5693 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5694 _ACEOF
5699 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5700 case $ac_cv_c_int8_t in #(
5701 no|yes) ;; #(
5704 cat >>confdefs.h <<_ACEOF
5705 #define int8_t $ac_cv_c_int8_t
5706 _ACEOF
5708 esac
5710 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5711 case $ac_cv_c_int16_t in #(
5712 no|yes) ;; #(
5715 cat >>confdefs.h <<_ACEOF
5716 #define int16_t $ac_cv_c_int16_t
5717 _ACEOF
5719 esac
5721 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5722 case $ac_cv_c_int32_t in #(
5723 no|yes) ;; #(
5726 cat >>confdefs.h <<_ACEOF
5727 #define int32_t $ac_cv_c_int32_t
5728 _ACEOF
5730 esac
5732 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5733 case $ac_cv_c_int64_t in #(
5734 no|yes) ;; #(
5737 cat >>confdefs.h <<_ACEOF
5738 #define int64_t $ac_cv_c_int64_t
5739 _ACEOF
5741 esac
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5745 $as_echo_n "checking for long long int... " >&6; }
5746 if test "${ac_cv_type_long_long_int+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 /* For now, do not test the preprocessor; as of 2007 there are too many
5753 implementations with broken preprocessors. Perhaps this can
5754 be revisited in 2012. In the meantime, code should not expect
5755 #if to work with literals wider than 32 bits. */
5756 /* Test literals. */
5757 long long int ll = 9223372036854775807ll;
5758 long long int nll = -9223372036854775807LL;
5759 unsigned long long int ull = 18446744073709551615ULL;
5760 /* Test constant expressions. */
5761 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5762 ? 1 : -1)];
5763 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5764 ? 1 : -1)];
5765 int i = 63;
5767 main ()
5769 /* Test availability of runtime routines for shift and division. */
5770 long long int llmax = 9223372036854775807ll;
5771 unsigned long long int ullmax = 18446744073709551615ull;
5772 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5773 | (llmax / ll) | (llmax % ll)
5774 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5775 | (ullmax / ull) | (ullmax % ull));
5777 return 0;
5780 _ACEOF
5781 if ac_fn_c_try_link "$LINENO"; then :
5782 if test "$cross_compiling" = yes; then :
5783 ac_cv_type_long_long_int=yes
5784 else
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <limits.h>
5788 #ifndef LLONG_MAX
5789 # define HALF \
5790 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5791 # define LLONG_MAX (HALF - 1 + HALF)
5792 #endif
5794 main ()
5796 long long int n = 1;
5797 int i;
5798 for (i = 0; ; i++)
5800 long long int m = n << i;
5801 if (m >> i != n)
5802 return 1;
5803 if (LLONG_MAX / 2 < m)
5804 break;
5806 return 0;
5808 return 0;
5810 _ACEOF
5811 if ac_fn_c_try_run "$LINENO"; then :
5812 ac_cv_type_long_long_int=yes
5813 else
5814 ac_cv_type_long_long_int=no
5816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5817 conftest.$ac_objext conftest.beam conftest.$ac_ext
5820 else
5821 ac_cv_type_long_long_int=no
5823 rm -f core conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5827 $as_echo "$ac_cv_type_long_long_int" >&6; }
5828 if test $ac_cv_type_long_long_int = yes; then
5830 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5836 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5837 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5839 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5841 else
5842 test $ac_cv_type_long_long_int = yes \
5843 && ac_type='long long int' \
5844 || ac_type='long int'
5846 cat >>confdefs.h <<_ACEOF
5847 #define intmax_t $ac_type
5848 _ACEOF
5854 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5855 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5857 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5859 else
5860 for ac_type in 'int' 'long int' 'long long int'; do
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 $ac_includes_default
5865 main ()
5867 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5868 test_array [0] = 0
5871 return 0;
5873 _ACEOF
5874 if ac_fn_c_try_compile "$LINENO"; then :
5876 cat >>confdefs.h <<_ACEOF
5877 #define intptr_t $ac_type
5878 _ACEOF
5880 ac_type=
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 test -z "$ac_type" && break
5884 done
5888 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5889 case $ac_cv_c_uint8_t in #(
5890 no|yes) ;; #(
5893 $as_echo "#define _UINT8_T 1" >>confdefs.h
5896 cat >>confdefs.h <<_ACEOF
5897 #define uint8_t $ac_cv_c_uint8_t
5898 _ACEOF
5900 esac
5902 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5903 case $ac_cv_c_uint16_t in #(
5904 no|yes) ;; #(
5908 cat >>confdefs.h <<_ACEOF
5909 #define uint16_t $ac_cv_c_uint16_t
5910 _ACEOF
5912 esac
5914 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5915 case $ac_cv_c_uint32_t in #(
5916 no|yes) ;; #(
5919 $as_echo "#define _UINT32_T 1" >>confdefs.h
5922 cat >>confdefs.h <<_ACEOF
5923 #define uint32_t $ac_cv_c_uint32_t
5924 _ACEOF
5926 esac
5928 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5929 case $ac_cv_c_uint64_t in #(
5930 no|yes) ;; #(
5933 $as_echo "#define _UINT64_T 1" >>confdefs.h
5936 cat >>confdefs.h <<_ACEOF
5937 #define uint64_t $ac_cv_c_uint64_t
5938 _ACEOF
5940 esac
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5944 $as_echo_n "checking for unsigned long long int... " >&6; }
5945 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5951 /* For now, do not test the preprocessor; as of 2007 there are too many
5952 implementations with broken preprocessors. Perhaps this can
5953 be revisited in 2012. In the meantime, code should not expect
5954 #if to work with literals wider than 32 bits. */
5955 /* Test literals. */
5956 long long int ll = 9223372036854775807ll;
5957 long long int nll = -9223372036854775807LL;
5958 unsigned long long int ull = 18446744073709551615ULL;
5959 /* Test constant expressions. */
5960 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5961 ? 1 : -1)];
5962 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5963 ? 1 : -1)];
5964 int i = 63;
5966 main ()
5968 /* Test availability of runtime routines for shift and division. */
5969 long long int llmax = 9223372036854775807ll;
5970 unsigned long long int ullmax = 18446744073709551615ull;
5971 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5972 | (llmax / ll) | (llmax % ll)
5973 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5974 | (ullmax / ull) | (ullmax % ull));
5976 return 0;
5979 _ACEOF
5980 if ac_fn_c_try_link "$LINENO"; then :
5981 ac_cv_type_unsigned_long_long_int=yes
5982 else
5983 ac_cv_type_unsigned_long_long_int=no
5985 rm -f core conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5989 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5990 if test $ac_cv_type_unsigned_long_long_int = yes; then
5992 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5998 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
5999 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6001 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6003 else
6004 test $ac_cv_type_unsigned_long_long_int = yes \
6005 && ac_type='unsigned long long int' \
6006 || ac_type='unsigned long int'
6008 cat >>confdefs.h <<_ACEOF
6009 #define uintmax_t $ac_type
6010 _ACEOF
6016 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6017 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6019 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6021 else
6022 for ac_type in 'unsigned int' 'unsigned long int' \
6023 'unsigned long long int'; do
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 $ac_includes_default
6028 main ()
6030 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6031 test_array [0] = 0
6034 return 0;
6036 _ACEOF
6037 if ac_fn_c_try_compile "$LINENO"; then :
6039 cat >>confdefs.h <<_ACEOF
6040 #define uintptr_t $ac_type
6041 _ACEOF
6043 ac_type=
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 test -z "$ac_type" && break
6047 done
6064 # ---------------------
6065 # Warnings and checking
6066 # ---------------------
6068 # Check $CC warning features (if it's GCC).
6069 # We want to use -pedantic, but we don't want warnings about
6070 # * 'long long'
6071 # * variadic macros
6072 # * overlong strings
6073 # So, we only use -pedantic if we can disable those warnings.
6075 loose_warn=
6076 save_CFLAGS="$CFLAGS"
6077 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6078 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6081 $as_echo_n "checking whether $CC supports $option... " >&6; }
6082 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 CFLAGS="$option"
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6090 main ()
6094 return 0;
6096 _ACEOF
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 eval "$as_acx_Woption=yes"
6099 else
6100 eval "$as_acx_Woption=no"
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 eval ac_res=\$$as_acx_Woption
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6107 $as_echo "$ac_res" >&6; }
6108 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6109 loose_warn="$loose_warn${loose_warn:+ }$option"
6111 done
6112 CFLAGS="$save_CFLAGS"
6114 c_loose_warn=
6115 save_CFLAGS="$CFLAGS"
6116 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6117 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6120 $as_echo_n "checking whether $CC supports $option... " >&6; }
6121 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 CFLAGS="$option"
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6129 main ()
6133 return 0;
6135 _ACEOF
6136 if ac_fn_c_try_compile "$LINENO"; then :
6137 eval "$as_acx_Woption=yes"
6138 else
6139 eval "$as_acx_Woption=no"
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 eval ac_res=\$$as_acx_Woption
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6146 $as_echo "$ac_res" >&6; }
6147 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6148 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6150 done
6151 CFLAGS="$save_CFLAGS"
6153 strict_warn=
6154 save_CFLAGS="$CFLAGS"
6155 for option in -Wmissing-format-attribute; do
6156 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6159 $as_echo_n "checking whether $CC supports $option... " >&6; }
6160 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 CFLAGS="$option"
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6168 main ()
6172 return 0;
6174 _ACEOF
6175 if ac_fn_c_try_compile "$LINENO"; then :
6176 eval "$as_acx_Woption=yes"
6177 else
6178 eval "$as_acx_Woption=no"
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 eval ac_res=\$$as_acx_Woption
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6185 $as_echo "$ac_res" >&6; }
6186 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6187 strict_warn="$strict_warn${strict_warn:+ }$option"
6189 done
6190 CFLAGS="$save_CFLAGS"
6192 c_strict_warn=
6193 save_CFLAGS="$CFLAGS"
6194 for option in -Wold-style-definition -Wc++-compat; do
6195 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6198 $as_echo_n "checking whether $CC supports $option... " >&6; }
6199 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 CFLAGS="$option"
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6207 main ()
6211 return 0;
6213 _ACEOF
6214 if ac_fn_c_try_compile "$LINENO"; then :
6215 eval "$as_acx_Woption=yes"
6216 else
6217 eval "$as_acx_Woption=no"
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 eval ac_res=\$$as_acx_Woption
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6224 $as_echo "$ac_res" >&6; }
6225 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6226 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6228 done
6229 CFLAGS="$save_CFLAGS"
6231 if test "$GCC" = yes; then :
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6233 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6234 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 save_CFLAGS="$CFLAGS"
6238 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6243 main ()
6247 return 0;
6249 _ACEOF
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6252 else
6253 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 CFLAGS="$save_CFLAGS"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6259 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6260 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6261 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6266 # Check whether --enable-werror-always was given.
6267 if test "${enable_werror_always+set}" = set; then :
6268 enableval=$enable_werror_always;
6269 else
6270 enable_werror_always=no
6273 if test $enable_werror_always = yes; then :
6274 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6279 # The above macros do nothing if the compiler is not GCC. However, the
6280 # Makefile has more goo to add other flags, so these variables are used
6281 # to enable warnings only for GCC.
6282 warn_cflags=
6283 warn_cxxflags=
6284 if test "x$GCC" = "xyes"; then
6285 warn_cflags='$(GCC_WARN_CFLAGS)'
6286 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6291 # Enable expensive internal checks
6292 is_release=
6293 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6294 is_release=yes
6297 # Check whether --enable-checking was given.
6298 if test "${enable_checking+set}" = set; then :
6299 enableval=$enable_checking; ac_checking_flags="${enableval}"
6300 else
6302 # Determine the default checks.
6303 if test x$is_release = x ; then
6304 ac_checking_flags=yes
6305 else
6306 ac_checking_flags=release
6310 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6311 for check in release $ac_checking_flags
6313 case $check in
6314 # these set all the flags to specific states
6315 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6316 ac_fold_checking= ; ac_gc_checking=1 ;
6317 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6318 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6319 ac_tree_checking=1 ; ac_valgrind_checking= ;
6320 ac_types_checking=1 ;;
6321 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6322 ac_fold_checking= ; ac_gc_checking= ;
6323 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6324 ac_rtlflag_checking= ; ac_runtime_checking= ;
6325 ac_tree_checking= ; ac_valgrind_checking= ;
6326 ac_types_checking= ;;
6327 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6328 ac_fold_checking=1 ; ac_gc_checking=1 ;
6329 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6330 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6331 ac_tree_checking=1 ; ac_valgrind_checking= ;
6332 ac_types_checking=1 ;;
6333 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6334 ac_fold_checking= ; ac_gc_checking= ;
6335 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6336 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6337 ac_tree_checking= ; ac_valgrind_checking= ;
6338 ac_types_checking= ;;
6339 # these enable particular checks
6340 assert) ac_assert_checking=1 ;;
6341 df) ac_df_checking=1 ;;
6342 fold) ac_fold_checking=1 ;;
6343 gc) ac_gc_checking=1 ;;
6344 gcac) ac_gc_always_collect=1 ;;
6345 gimple) ac_gimple_checking=1 ;;
6346 misc) ac_checking=1 ;;
6347 rtl) ac_rtl_checking=1 ;;
6348 rtlflag) ac_rtlflag_checking=1 ;;
6349 runtime) ac_runtime_checking=1 ;;
6350 tree) ac_tree_checking=1 ;;
6351 types) ac_types_checking=1 ;;
6352 valgrind) ac_valgrind_checking=1 ;;
6353 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6354 esac
6355 done
6356 IFS="$ac_save_IFS"
6358 nocommon_flag=""
6359 if test x$ac_checking != x ; then
6361 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6363 nocommon_flag=-fno-common
6366 if test x$ac_df_checking != x ; then
6368 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6371 if test x$ac_assert_checking != x ; then
6373 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6376 if test x$ac_gimple_checking != x ; then
6378 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6382 if test x$ac_runtime_checking != x ; then
6384 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6387 if test x$ac_tree_checking != x ; then
6389 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6391 TREEBROWSER=tree-browser.o
6393 if test x$ac_types_checking != x ; then
6395 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6399 if test x$ac_rtl_checking != x ; then
6401 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6404 if test x$ac_rtlflag_checking != x ; then
6406 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6409 if test x$ac_gc_checking != x ; then
6411 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6414 if test x$ac_gc_always_collect != x ; then
6416 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6419 if test x$ac_fold_checking != x ; then
6421 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6424 valgrind_path_defines=
6425 valgrind_command=
6427 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6428 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6429 have_valgrind_h=yes
6430 else
6431 have_valgrind_h=no
6436 if test x$ac_valgrind_checking != x ; then
6437 # It is certainly possible that there's valgrind but no valgrind.h.
6438 # GCC relies on making annotations so we must have both.
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6440 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <valgrind/memcheck.h>
6444 #ifndef VALGRIND_DISCARD
6445 #error VALGRIND_DISCARD not defined
6446 #endif
6447 _ACEOF
6448 if ac_fn_c_try_cpp "$LINENO"; then :
6449 gcc_cv_header_valgrind_memcheck_h=yes
6450 else
6451 gcc_cv_header_valgrind_memcheck_h=no
6453 rm -f conftest.err conftest.$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6455 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6457 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <memcheck.h>
6461 #ifndef VALGRIND_DISCARD
6462 #error VALGRIND_DISCARD not defined
6463 #endif
6464 _ACEOF
6465 if ac_fn_c_try_cpp "$LINENO"; then :
6466 gcc_cv_header_memcheck_h=yes
6467 else
6468 gcc_cv_header_memcheck_h=no
6470 rm -f conftest.err conftest.$ac_ext
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6472 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6474 # Prepare PATH_SEPARATOR.
6475 # The user is always right.
6476 if test "${PATH_SEPARATOR+set}" != set; then
6477 echo "#! /bin/sh" >conf$$.sh
6478 echo "exit 0" >>conf$$.sh
6479 chmod +x conf$$.sh
6480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6481 PATH_SEPARATOR=';'
6482 else
6483 PATH_SEPARATOR=:
6485 rm -f conf$$.sh
6488 # Find out how to test for executable files. Don't use a zero-byte file,
6489 # as systems may use methods other than mode bits to determine executability.
6490 cat >conf$$.file <<_ASEOF
6491 #! /bin/sh
6492 exit 0
6493 _ASEOF
6494 chmod +x conf$$.file
6495 if test -x conf$$.file >/dev/null 2>&1; then
6496 ac_executable_p="test -x"
6497 else
6498 ac_executable_p="test -f"
6500 rm -f conf$$.file
6502 # Extract the first word of "valgrind", so it can be a program name with args.
6503 set dummy valgrind; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 case "$valgrind_path" in
6510 [\\/]* | ?:[\\/]*)
6511 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6514 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6515 for ac_dir in $PATH; do
6516 IFS="$ac_save_IFS"
6517 test -z "$ac_dir" && ac_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6520 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6521 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6522 break 2
6525 done
6526 done
6527 IFS="$ac_save_IFS"
6529 esac
6531 valgrind_path="$ac_cv_path_valgrind_path"
6532 if test -n "$valgrind_path"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6534 $as_echo "$valgrind_path" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6540 if test "x$valgrind_path" = "x" \
6541 || (test $have_valgrind_h = no \
6542 && test $gcc_cv_header_memcheck_h = no \
6543 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6544 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6546 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6547 valgrind_command="$valgrind_path -q"
6549 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6551 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6553 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6556 if test $gcc_cv_header_memcheck_h = yes; then
6558 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6565 # Enable code coverage collection
6566 # Check whether --enable-coverage was given.
6567 if test "${enable_coverage+set}" = set; then :
6568 enableval=$enable_coverage; case "${enableval}" in
6569 yes|noopt)
6570 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6572 opt)
6573 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6576 # a.k.a. --disable-coverage
6577 coverage_flags=""
6580 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6582 esac
6583 else
6584 coverage_flags=""
6589 # Check whether --enable-gather-detailed-mem-stats was given.
6590 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6591 enableval=$enable_gather_detailed_mem_stats;
6592 else
6593 enable_gather_detailed_mem_stats=no
6596 if test x$enable_gather_detailed_mem_stats = xyes ; then
6598 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6602 # -------------------------------
6603 # Miscenalleous configure options
6604 # -------------------------------
6606 # See if we are building gcc with C++.
6607 # Check whether --enable-build-with-cxx was given.
6608 if test "${enable_build_with_cxx+set}" = set; then :
6609 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6610 else
6611 ENABLE_BUILD_WITH_CXX=no
6616 # With stabs
6618 # Check whether --with-stabs was given.
6619 if test "${with_stabs+set}" = set; then :
6620 withval=$with_stabs; stabs="$with_stabs"
6621 else
6622 stabs=no
6626 # Determine whether or not multilibs are enabled.
6627 # Check whether --enable-multilib was given.
6628 if test "${enable_multilib+set}" = set; then :
6629 enableval=$enable_multilib;
6630 else
6631 enable_multilib=yes
6636 # Enable __cxa_atexit for C++.
6637 # Check whether --enable-__cxa_atexit was given.
6638 if test "${enable___cxa_atexit+set}" = set; then :
6639 enableval=$enable___cxa_atexit;
6643 # Enable C extension for decimal float if target supports it.
6644 # Check whether --enable-decimal-float was given.
6645 if test "${enable_decimal_float+set}" = set; then :
6646 enableval=$enable_decimal_float;
6647 case $enable_decimal_float in
6648 yes | no | bid | dpd) ;;
6649 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6650 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6651 esac
6653 else
6655 case $target in
6656 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6657 enable_decimal_float=yes
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6661 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6662 enable_decimal_float=no
6664 esac
6669 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6671 cat >>confdefs.h <<_ACEOF
6672 #define ENABLE_DECIMAL_FLOAT $dfp
6673 _ACEOF
6676 # x86's use BID format instead of DPD
6677 case x$enable_decimal_float in
6678 xyes)
6679 case $target in
6680 i?86*-*-linux* | x86_64*-*-linux*)
6681 enable_decimal_float=bid
6684 enable_decimal_float=dpd
6686 esac
6688 xno)
6689 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6690 # dependency on libdecnumber.
6691 enable_decimal_float=dpd
6693 esac
6696 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6698 cat >>confdefs.h <<_ACEOF
6699 #define ENABLE_DECIMAL_BID_FORMAT $bid
6700 _ACEOF
6703 # Enable C extension for fixed-point arithmetic.
6704 # Check whether --enable-fixed-point was given.
6705 if test "${enable_fixed_point+set}" = set; then :
6706 enableval=$enable_fixed_point;
6708 else
6710 case $target in
6711 mips*-*-*)
6712 case $host in
6713 mips*-sgi-irix*)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6715 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6716 enable_fixed_point=no
6719 enable_fixed_point=yes
6721 esac
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6725 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6726 enable_fixed_point=no
6728 esac
6734 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6736 cat >>confdefs.h <<_ACEOF
6737 #define ENABLE_FIXED_POINT $fixedpoint
6738 _ACEOF
6741 # Enable threads
6742 # Pass with no value to take the default
6743 # Pass with a value to specify a thread package
6744 # Check whether --enable-threads was given.
6745 if test "${enable_threads+set}" = set; then :
6746 enableval=$enable_threads;
6747 else
6748 enable_threads=''
6752 # Check whether --enable-tls was given.
6753 if test "${enable_tls+set}" = set; then :
6754 enableval=$enable_tls;
6755 case $enable_tls in
6756 yes | no) ;;
6757 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6758 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6759 esac
6761 else
6762 enable_tls=''
6766 # Check whether --enable-objc-gc was given.
6767 if test "${enable_objc_gc+set}" = set; then :
6768 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6769 objc_boehm_gc=''
6770 else
6771 objc_boehm_gc=1
6773 else
6774 objc_boehm_gc=''
6779 # Check whether --with-dwarf2 was given.
6780 if test "${with_dwarf2+set}" = set; then :
6781 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6782 else
6783 dwarf2=no
6787 # Check whether --enable-shared was given.
6788 if test "${enable_shared+set}" = set; then :
6789 enableval=$enable_shared;
6790 case $enable_shared in
6791 yes | no) ;;
6793 enable_shared=no
6794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6795 for pkg in $enableval; do
6796 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6797 enable_shared=yes
6799 done
6800 IFS="$ac_save_ifs"
6802 esac
6804 else
6805 enable_shared=yes
6811 # Check whether --with-build-sysroot was given.
6812 if test "${with_build_sysroot+set}" = set; then :
6813 withval=$with_build_sysroot;
6818 # Check whether --with-sysroot was given.
6819 if test "${with_sysroot+set}" = set; then :
6820 withval=$with_sysroot;
6821 case ${with_sysroot} in
6822 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6823 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6824 esac
6826 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6827 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6829 if test "x$prefix" = xNONE; then
6830 test_prefix=/usr/local
6831 else
6832 test_prefix=$prefix
6834 if test "x$exec_prefix" = xNONE; then
6835 test_exec_prefix=$test_prefix
6836 else
6837 test_exec_prefix=$exec_prefix
6839 case ${TARGET_SYSTEM_ROOT} in
6840 "${test_prefix}"|"${test_prefix}/"*|\
6841 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6842 '${prefix}'|'${prefix}/'*|\
6843 '${exec_prefix}'|'${exec_prefix}/'*)
6844 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6845 TARGET_SYSTEM_ROOT_DEFINE="$t"
6847 esac
6849 else
6851 TARGET_SYSTEM_ROOT=
6852 TARGET_SYSTEM_ROOT_DEFINE=
6853 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6862 # Check whether --with-specs was given.
6863 if test "${with_specs+set}" = set; then :
6864 withval=$with_specs; CONFIGURE_SPECS=$withval
6865 else
6866 CONFIGURE_SPECS=
6872 # Build with intermodule optimisations
6873 # Check whether --enable-intermodule was given.
6874 if test "${enable_intermodule+set}" = set; then :
6875 enableval=$enable_intermodule; case ${enable_intermodule} in
6876 yes) onestep="-onestep";;
6877 *) onestep="";;
6878 esac
6879 else
6880 onestep=""
6887 # Check whether --with-pkgversion was given.
6888 if test "${with_pkgversion+set}" = set; then :
6889 withval=$with_pkgversion; case "$withval" in
6890 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6891 no) PKGVERSION= ;;
6892 *) PKGVERSION="($withval) " ;;
6893 esac
6894 else
6895 PKGVERSION="(GCC) "
6903 # Check whether --with-bugurl was given.
6904 if test "${with_bugurl+set}" = set; then :
6905 withval=$with_bugurl; case "$withval" in
6906 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6907 no) BUGURL=
6909 *) BUGURL="$withval"
6911 esac
6912 else
6913 BUGURL="http://gcc.gnu.org/bugs.html"
6917 case ${BUGURL} in
6919 REPORT_BUGS_TO=
6920 REPORT_BUGS_TEXI=
6923 REPORT_BUGS_TO="<$BUGURL>"
6924 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6926 esac;
6931 # Sanity check enable_languages in case someone does not run the toplevel
6932 # configure # script.
6933 # Check whether --enable-languages was given.
6934 if test "${enable_languages+set}" = set; then :
6935 enableval=$enable_languages; case ,${enable_languages}, in
6936 ,,|,yes,)
6937 # go safe -- we cannot be much sure without the toplevel
6938 # configure's
6939 # analysis of which target libs are present and usable
6940 enable_languages=c
6942 *,all,*)
6943 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6945 *,c,*)
6948 enable_languages=c,${enable_languages}
6950 esac
6951 else
6952 enable_languages=c
6957 # Check whether --with-multilib-list was given.
6958 if test "${with_multilib_list+set}" = set; then :
6959 withval=$with_multilib_list; :
6960 else
6961 with_multilib_list=default
6965 # -------------------------
6966 # Checks for other programs
6967 # -------------------------
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6970 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6971 set x ${MAKE-make}
6972 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6973 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 cat >conftest.make <<\_ACEOF
6977 SHELL = /bin/sh
6978 all:
6979 @echo '@@@%%%=$(MAKE)=@@@%%%'
6980 _ACEOF
6981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6983 *@@@%%%=?*=@@@%%%*)
6984 eval ac_cv_prog_make_${ac_make}_set=yes;;
6986 eval ac_cv_prog_make_${ac_make}_set=no;;
6987 esac
6988 rm -f conftest.make
6990 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6992 $as_echo "yes" >&6; }
6993 SET_MAKE=
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 SET_MAKE="MAKE=${MAKE-make}"
7001 # Find some useful tools
7002 for ac_prog in gawk mawk nawk awk
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_AWK+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$AWK"; then
7012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_AWK="$ac_prog"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7025 done
7026 done
7027 IFS=$as_save_IFS
7031 AWK=$ac_cv_prog_AWK
7032 if test -n "$AWK"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7034 $as_echo "$AWK" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7041 test -n "$AWK" && break
7042 done
7044 # We need awk to create options.c and options.h.
7045 # Bail out if it's missing.
7046 case ${AWK} in
7047 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7048 esac
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7051 $as_echo_n "checking whether ln -s works... " >&6; }
7052 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 rm -f conftestdata_t
7056 echo >conftestdata_f
7057 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7058 then
7059 gcc_cv_prog_LN_S="ln -s"
7060 else
7061 if ln conftestdata_f conftestdata_t 2>/dev/null
7062 then
7063 gcc_cv_prog_LN_S=ln
7064 else
7065 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7066 then
7067 gcc_cv_prog_LN_S="cp -p"
7068 else
7069 gcc_cv_prog_LN_S=cp
7073 rm -f conftestdata_f conftestdata_t
7076 LN_S="$gcc_cv_prog_LN_S"
7077 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7079 $as_echo "yes" >&6; }
7080 else
7081 if test "$gcc_cv_prog_LN_S" = "ln"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7083 $as_echo "no, using ln" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7086 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7091 $as_echo_n "checking whether ln works... " >&6; }
7092 if test "${acx_cv_prog_LN+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 rm -f conftestdata_t
7096 echo >conftestdata_f
7097 if ln conftestdata_f conftestdata_t 2>/dev/null
7098 then
7099 acx_cv_prog_LN=ln
7100 else
7101 acx_cv_prog_LN=no
7103 rm -f conftestdata_f conftestdata_t
7106 if test $acx_cv_prog_LN = no; then
7107 LN="$LN_S"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7109 $as_echo "no, using $LN" >&6; }
7110 else
7111 LN="$acx_cv_prog_LN"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 if test -n "$RANLIB"; then
7125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7138 done
7139 done
7140 IFS=$as_save_IFS
7144 RANLIB=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7147 $as_echo "$RANLIB" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7155 if test -z "$ac_cv_prog_RANLIB"; then
7156 ac_ct_RANLIB=$RANLIB
7157 # Extract the first word of "ranlib", so it can be a program name with args.
7158 set dummy ranlib; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$ac_ct_RANLIB"; then
7165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_RANLIB="ranlib"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7178 done
7179 done
7180 IFS=$as_save_IFS
7184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7185 if test -n "$ac_ct_RANLIB"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7187 $as_echo "$ac_ct_RANLIB" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7193 if test "x$ac_ct_RANLIB" = x; then
7194 RANLIB=":"
7195 else
7196 case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned=yes ;;
7201 esac
7202 RANLIB=$ac_ct_RANLIB
7204 else
7205 RANLIB="$ac_cv_prog_RANLIB"
7208 case "${host}" in
7209 *-*-darwin*)
7210 # By default, the Darwin ranlib will not treat common symbols as
7211 # definitions when building the archive table of contents. Other
7212 # ranlibs do that; pass an option to the Darwin ranlib that makes
7213 # it behave similarly.
7214 ranlib_flags="-c"
7217 ranlib_flags=""
7218 esac
7221 # Find a good install program. We prefer a C program (faster),
7222 # so one script is as good as another. But avoid the broken or
7223 # incompatible versions:
7224 # SysV /etc/install, /usr/sbin/install
7225 # SunOS /usr/etc/install
7226 # IRIX /sbin/install
7227 # AIX /bin/install
7228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7230 # ./install, which can be erroneously created by make from ./install.sh.
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7232 $as_echo_n "checking for a BSD compatible install... " >&6; }
7233 if test -z "$INSTALL"; then
7234 if test "${ac_cv_path_install+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7238 for ac_dir in $PATH; do
7239 # Account for people who put trailing slashes in PATH elements.
7240 case "$ac_dir/" in
7241 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7243 # OSF1 and SCO ODT 3.0 have their own names for install.
7244 for ac_prog in ginstall scoinst install; do
7245 if test -f $ac_dir/$ac_prog; then
7246 if test $ac_prog = install &&
7247 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7248 # AIX install. It has an incompatible calling convention.
7249 # OSF/1 installbsd also uses dspmsg, but is usable.
7251 else
7252 ac_cv_path_install="$ac_dir/$ac_prog -c"
7253 break 2
7256 done
7258 esac
7259 done
7260 IFS="$ac_save_IFS"
7263 if test "${ac_cv_path_install+set}" = set; then
7264 INSTALL="$ac_cv_path_install"
7265 else
7266 # As a last resort, use the slow shell script. We don't cache a
7267 # path for INSTALL within a source directory, because that will
7268 # break other packages using the cache if that directory is
7269 # removed, or if the path is relative.
7270 INSTALL="$ac_install_sh"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7274 $as_echo "$INSTALL" >&6; }
7276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7277 # It thinks the first close brace ends the variable substitution.
7278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7283 # See if cmp has --ignore-initial.
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7285 $as_echo_n "checking for cmp's capabilities... " >&6; }
7286 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 echo abfoo >t1
7290 echo cdfoo >t2
7291 gcc_cv_prog_cmp_skip=slowcompare
7292 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7293 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7295 else
7296 gcc_cv_prog_cmp_skip=gnucompare
7299 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7300 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7301 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7303 else
7304 gcc_cv_prog_cmp_skip=fastcompare
7308 rm t1 t2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7312 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7313 make_compare_target=$gcc_cv_prog_cmp_skip
7317 # See if we have the mktemp command.
7318 # Extract the first word of "mktemp", so it can be a program name with args.
7319 set dummy mktemp; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$have_mktemp_command"; then
7326 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_have_mktemp_command="yes"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7339 done
7340 done
7341 IFS=$as_save_IFS
7343 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7346 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7347 if test -n "$have_mktemp_command"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7349 $as_echo "$have_mktemp_command" >&6; }
7350 else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7357 # See if makeinfo has been installed and is modern enough
7358 # that we can use it.
7360 # Extract the first word of "makeinfo", so it can be a program name with args.
7361 set dummy makeinfo; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$MAKEINFO"; then
7368 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_MAKEINFO="makeinfo"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7381 done
7382 done
7383 IFS=$as_save_IFS
7387 MAKEINFO=$ac_cv_prog_MAKEINFO
7388 if test -n "$MAKEINFO"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7390 $as_echo "$MAKEINFO" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7397 if test -n "$MAKEINFO"; then
7398 # Found it, now check the version.
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7400 $as_echo_n "checking for modern makeinfo... " >&6; }
7401 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7405 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7407 case $ac_prog_version in
7408 '') gcc_cv_prog_makeinfo_modern=no;;
7409 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7410 *) gcc_cv_prog_makeinfo_modern=no;;
7411 esac
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7415 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7416 else
7417 gcc_cv_prog_makeinfo_modern=no
7419 if test $gcc_cv_prog_makeinfo_modern = no; then
7420 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7423 if test $gcc_cv_prog_makeinfo_modern = no; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7425 *** Makeinfo is missing or too old.
7426 *** Info documentation will not be built." >&5
7427 $as_echo "$as_me: WARNING:
7428 *** Makeinfo is missing or too old.
7429 *** Info documentation will not be built." >&2;}
7430 BUILD_INFO=
7431 else
7432 BUILD_INFO=info
7436 # Is pod2man recent enough to regenerate manpages?
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7438 $as_echo_n "checking for recent Pod::Man... " >&6; }
7439 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7441 $as_echo "yes" >&6; }
7442 GENERATED_MANPAGES=generated-manpages
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 GENERATED_MANPAGES=
7450 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7452 # How about lex?
7453 for ac_prog in flex
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456 set dummy $ac_prog; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if test "${ac_cv_prog_FLEX+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$FLEX"; then
7463 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_FLEX="$ac_prog"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7476 done
7477 done
7478 IFS=$as_save_IFS
7482 FLEX=$ac_cv_prog_FLEX
7483 if test -n "$FLEX"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7485 $as_echo "$FLEX" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7492 test -n "$FLEX" && break
7493 done
7494 test -n "$FLEX" || FLEX="$MISSING flex"
7497 # Bison?
7498 for ac_prog in bison
7500 # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy $ac_prog; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_prog_BISON+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 if test -n "$BISON"; then
7508 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_BISON="$ac_prog"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7521 done
7522 done
7523 IFS=$as_save_IFS
7527 BISON=$ac_cv_prog_BISON
7528 if test -n "$BISON"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7530 $as_echo "$BISON" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7537 test -n "$BISON" && break
7538 done
7539 test -n "$BISON" || BISON="$MISSING bison"
7542 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7543 # check for build == host before using them.
7545 # NM
7546 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7547 && test -d ../binutils ; then
7548 NM='$(objdir)/../binutils/nm-new'
7549 else
7550 # Extract the first word of "nm", so it can be a program name with args.
7551 set dummy nm; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_NM+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 if test -n "$NM"; then
7558 ac_cv_prog_NM="$NM" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_NM="nm"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7571 done
7572 done
7573 IFS=$as_save_IFS
7575 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7578 NM=$ac_cv_prog_NM
7579 if test -n "$NM"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7581 $as_echo "$NM" >&6; }
7582 else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7590 # AR
7591 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7592 && test -d ../binutils ; then
7593 AR='$(objdir)/../binutils/ar'
7594 else
7595 # Extract the first word of "ar", so it can be a program name with args.
7596 set dummy ar; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_AR+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 if test -n "$AR"; then
7603 ac_cv_prog_AR="$AR" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_prog_AR="ar"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7616 done
7617 done
7618 IFS=$as_save_IFS
7620 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7623 AR=$ac_cv_prog_AR
7624 if test -n "$AR"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7626 $as_echo "$AR" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7636 # --------------------
7637 # Checks for C headers
7638 # --------------------
7640 # Need to reject headers which give warnings, so that the -Werror bootstrap
7641 # works later. *sigh* This needs to come before all header checks.
7643 ac_c_preproc_warn_flag=yes
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7646 $as_echo_n "checking for ANSI C header files... " >&6; }
7647 if test "${ac_cv_header_stdc+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 #include <stdlib.h>
7653 #include <stdarg.h>
7654 #include <string.h>
7655 #include <float.h>
7658 main ()
7662 return 0;
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 ac_cv_header_stdc=yes
7667 else
7668 ac_cv_header_stdc=no
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 if test $ac_cv_header_stdc = yes; then
7673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 #include <string.h>
7678 _ACEOF
7679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7680 $EGREP "memchr" >/dev/null 2>&1; then :
7682 else
7683 ac_cv_header_stdc=no
7685 rm -f conftest*
7689 if test $ac_cv_header_stdc = yes; then
7690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 #include <stdlib.h>
7695 _ACEOF
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697 $EGREP "free" >/dev/null 2>&1; then :
7699 else
7700 ac_cv_header_stdc=no
7702 rm -f conftest*
7706 if test $ac_cv_header_stdc = yes; then
7707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7708 if test "$cross_compiling" = yes; then :
7710 else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <ctype.h>
7714 #include <stdlib.h>
7715 #if ((' ' & 0x0FF) == 0x020)
7716 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7717 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7718 #else
7719 # define ISLOWER(c) \
7720 (('a' <= (c) && (c) <= 'i') \
7721 || ('j' <= (c) && (c) <= 'r') \
7722 || ('s' <= (c) && (c) <= 'z'))
7723 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7724 #endif
7726 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7728 main ()
7730 int i;
7731 for (i = 0; i < 256; i++)
7732 if (XOR (islower (i), ISLOWER (i))
7733 || toupper (i) != TOUPPER (i))
7734 return 2;
7735 return 0;
7737 _ACEOF
7738 if ac_fn_c_try_run "$LINENO"; then :
7740 else
7741 ac_cv_header_stdc=no
7743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7744 conftest.$ac_objext conftest.beam conftest.$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7750 $as_echo "$ac_cv_header_stdc" >&6; }
7751 if test $ac_cv_header_stdc = yes; then
7753 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7758 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7759 if test "${ac_cv_header_time+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 #include <sys/types.h>
7765 #include <sys/time.h>
7766 #include <time.h>
7769 main ()
7771 if ((struct tm *) 0)
7772 return 0;
7774 return 0;
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778 ac_cv_header_time=yes
7779 else
7780 ac_cv_header_time=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7785 $as_echo "$ac_cv_header_time" >&6; }
7786 if test $ac_cv_header_time = yes; then
7788 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7793 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7794 if test "${gcc_cv_header_string+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799 #include <string.h>
7800 #include <strings.h>
7802 main ()
7806 return 0;
7808 _ACEOF
7809 if ac_fn_c_try_compile "$LINENO"; then :
7810 gcc_cv_header_string=yes
7811 else
7812 gcc_cv_header_string=no
7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7817 $as_echo "$gcc_cv_header_string" >&6; }
7818 if test $gcc_cv_header_string = yes; then
7820 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7825 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7826 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 #include <sys/types.h>
7832 #include <sys/wait.h>
7833 #ifndef WEXITSTATUS
7834 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7835 #endif
7836 #ifndef WIFEXITED
7837 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7838 #endif
7841 main ()
7843 int s;
7844 wait (&s);
7845 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7847 return 0;
7849 _ACEOF
7850 if ac_fn_c_try_compile "$LINENO"; then :
7851 ac_cv_header_sys_wait_h=yes
7852 else
7853 ac_cv_header_sys_wait_h=no
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7858 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7859 if test $ac_cv_header_sys_wait_h = yes; then
7861 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7865 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7866 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7867 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7868 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7869 do :
7870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7871 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7872 eval as_val=\$$as_ac_Header
7873 if test "x$as_val" = x""yes; then :
7874 cat >>confdefs.h <<_ACEOF
7875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7876 _ACEOF
7879 done
7882 # Check for thread headers.
7883 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7884 if test "x$ac_cv_header_thread_h" = x""yes; then :
7885 have_thread_h=yes
7886 else
7887 have_thread_h=
7890 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7891 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7892 have_pthread_h=yes
7893 else
7894 have_pthread_h=
7898 # These tests can't be done till we know if we have limits.h.
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7900 $as_echo_n "checking for CHAR_BIT... " >&6; }
7901 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 #ifdef HAVE_LIMITS_H
7907 #include <limits.h>
7908 #endif
7909 #ifdef CHAR_BIT
7910 found
7911 #endif
7912 _ACEOF
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "found" >/dev/null 2>&1; then :
7915 gcc_cv_decl_char_bit=yes
7916 else
7917 gcc_cv_decl_char_bit=no
7919 rm -f conftest*
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7924 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7925 if test $gcc_cv_decl_char_bit = no; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7927 $as_echo_n "checking number of bits in a byte... " >&6; }
7928 if test "${gcc_cv_c_nbby+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7932 gcc_cv_c_nbby=
7933 while test $i -lt 65; do
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7938 main ()
7940 switch(0) {
7941 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7942 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7945 return 0;
7947 _ACEOF
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949 gcc_cv_c_nbby=$i; break
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 i=`expr $i + 1`
7953 done
7954 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7958 $as_echo "$gcc_cv_c_nbby" >&6; }
7959 if test $gcc_cv_c_nbby = failed; then
7960 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7961 else
7963 cat >>confdefs.h <<_ACEOF
7964 #define CHAR_BIT $gcc_cv_c_nbby
7965 _ACEOF
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7970 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7971 if test "${ac_cv_c_bigendian+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 ac_cv_c_bigendian=unknown
7975 # See if we're dealing with a universal compiler.
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #ifndef __APPLE_CC__
7979 not a universal capable compiler
7980 #endif
7981 typedef int dummy;
7983 _ACEOF
7984 if ac_fn_c_try_compile "$LINENO"; then :
7986 # Check for potential -arch flags. It is not universal unless
7987 # there are at least two -arch flags with different values.
7988 ac_arch=
7989 ac_prev=
7990 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7991 if test -n "$ac_prev"; then
7992 case $ac_word in
7993 i?86 | x86_64 | ppc | ppc64)
7994 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7995 ac_arch=$ac_word
7996 else
7997 ac_cv_c_bigendian=universal
7998 break
8001 esac
8002 ac_prev=
8003 elif test "x$ac_word" = "x-arch"; then
8004 ac_prev=arch
8006 done
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 if test $ac_cv_c_bigendian = unknown; then
8010 # See if sys/param.h defines the BYTE_ORDER macro.
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 #include <sys/types.h>
8014 #include <sys/param.h>
8017 main ()
8019 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8020 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8021 && LITTLE_ENDIAN)
8022 bogus endian macros
8023 #endif
8026 return 0;
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 # It does; now see whether it defined to BIG_ENDIAN or not.
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 #include <sys/types.h>
8034 #include <sys/param.h>
8037 main ()
8039 #if BYTE_ORDER != BIG_ENDIAN
8040 not big endian
8041 #endif
8044 return 0;
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"; then :
8048 ac_cv_c_bigendian=yes
8049 else
8050 ac_cv_c_bigendian=no
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 if test $ac_cv_c_bigendian = unknown; then
8057 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8060 #include <limits.h>
8063 main ()
8065 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8066 bogus endian macros
8067 #endif
8070 return 0;
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074 # It does; now see whether it defined to _BIG_ENDIAN or not.
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <limits.h>
8080 main ()
8082 #ifndef _BIG_ENDIAN
8083 not big endian
8084 #endif
8087 return 0;
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 ac_cv_c_bigendian=yes
8092 else
8093 ac_cv_c_bigendian=no
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 if test $ac_cv_c_bigendian = unknown; then
8100 # Compile a test program.
8101 if test "$cross_compiling" = yes; then :
8102 # Try to guess by grepping values from an object file.
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 short int ascii_mm[] =
8106 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8107 short int ascii_ii[] =
8108 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8109 int use_ascii (int i) {
8110 return ascii_mm[i] + ascii_ii[i];
8112 short int ebcdic_ii[] =
8113 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8114 short int ebcdic_mm[] =
8115 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8116 int use_ebcdic (int i) {
8117 return ebcdic_mm[i] + ebcdic_ii[i];
8119 extern int foo;
8122 main ()
8124 return use_ascii (foo) == use_ebcdic (foo);
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8131 ac_cv_c_bigendian=yes
8133 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8134 if test "$ac_cv_c_bigendian" = unknown; then
8135 ac_cv_c_bigendian=no
8136 else
8137 # finding both strings is unlikely to happen, but who knows?
8138 ac_cv_c_bigendian=unknown
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 else
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 $ac_includes_default
8148 main ()
8151 /* Are we little or big endian? From Harbison&Steele. */
8152 union
8154 long int l;
8155 char c[sizeof (long int)];
8156 } u;
8157 u.l = 1;
8158 return u.c[sizeof (long int) - 1] == 1;
8161 return 0;
8163 _ACEOF
8164 if ac_fn_c_try_run "$LINENO"; then :
8165 ac_cv_c_bigendian=no
8166 else
8167 ac_cv_c_bigendian=yes
8169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8170 conftest.$ac_objext conftest.beam conftest.$ac_ext
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8176 $as_echo "$ac_cv_c_bigendian" >&6; }
8177 case $ac_cv_c_bigendian in #(
8178 yes)
8179 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8180 ;; #(
8182 ;; #(
8183 universal)
8185 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8187 ;; #(
8189 as_fn_error "unknown endianness
8190 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8191 esac
8194 # --------
8195 # UNSORTED
8196 # --------
8199 # These libraries may be used by collect2.
8200 # We may need a special search path to get them linked.
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8202 $as_echo_n "checking for collect2 libraries... " >&6; }
8203 if test "${gcc_cv_collect2_libs+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 save_LIBS="$LIBS"
8207 for libs in '' -lld -lmld \
8208 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8209 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8211 LIBS="$libs"
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8215 /* Override any GCC internal prototype to avoid an error.
8216 Use char because int might match the return type of a GCC
8217 builtin and then its argument prototype would still apply. */
8218 #ifdef __cplusplus
8219 extern "C"
8220 #endif
8221 char ldopen ();
8223 main ()
8225 return ldopen ();
8227 return 0;
8229 _ACEOF
8230 if ac_fn_c_try_link "$LINENO"; then :
8231 gcc_cv_collect2_libs="$libs"; break
8233 rm -f core conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext conftest.$ac_ext
8235 done
8236 LIBS="$save_LIBS"
8237 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8240 $as_echo "$gcc_cv_collect2_libs" >&6; }
8241 case $gcc_cv_collect2_libs in
8242 "none required") ;;
8243 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8244 esac
8247 # When building Ada code on Alpha, we need exc_resume which is usually in
8248 # -lexc. So test for it.
8249 save_LIBS="$LIBS"
8250 LIBS=
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8252 $as_echo_n "checking for library containing exc_resume... " >&6; }
8253 if test "${ac_cv_search_exc_resume+set}" = set; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 ac_func_search_save_LIBS=$LIBS
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8260 /* Override any GCC internal prototype to avoid an error.
8261 Use char because int might match the return type of a GCC
8262 builtin and then its argument prototype would still apply. */
8263 #ifdef __cplusplus
8264 extern "C"
8265 #endif
8266 char exc_resume ();
8268 main ()
8270 return exc_resume ();
8272 return 0;
8274 _ACEOF
8275 for ac_lib in '' exc; do
8276 if test -z "$ac_lib"; then
8277 ac_res="none required"
8278 else
8279 ac_res=-l$ac_lib
8280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 ac_cv_search_exc_resume=$ac_res
8285 rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext
8287 if test "${ac_cv_search_exc_resume+set}" = set; then :
8288 break
8290 done
8291 if test "${ac_cv_search_exc_resume+set}" = set; then :
8293 else
8294 ac_cv_search_exc_resume=no
8296 rm conftest.$ac_ext
8297 LIBS=$ac_func_search_save_LIBS
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8300 $as_echo "$ac_cv_search_exc_resume" >&6; }
8301 ac_res=$ac_cv_search_exc_resume
8302 if test "$ac_res" != no; then :
8303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8307 GNAT_LIBEXC="$LIBS"
8308 LIBS="$save_LIBS"
8311 # Some systems put ldexp and frexp in libm instead of libc; assume
8312 # they're both in the same place. jcf-dump needs them.
8313 save_LIBS="$LIBS"
8314 LIBS=
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8316 $as_echo_n "checking for library containing ldexp... " >&6; }
8317 if test "${ac_cv_search_ldexp+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 ac_func_search_save_LIBS=$LIBS
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8324 /* Override any GCC internal prototype to avoid an error.
8325 Use char because int might match the return type of a GCC
8326 builtin and then its argument prototype would still apply. */
8327 #ifdef __cplusplus
8328 extern "C"
8329 #endif
8330 char ldexp ();
8332 main ()
8334 return ldexp ();
8336 return 0;
8338 _ACEOF
8339 for ac_lib in '' m; do
8340 if test -z "$ac_lib"; then
8341 ac_res="none required"
8342 else
8343 ac_res=-l$ac_lib
8344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 ac_cv_search_ldexp=$ac_res
8349 rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext
8351 if test "${ac_cv_search_ldexp+set}" = set; then :
8352 break
8354 done
8355 if test "${ac_cv_search_ldexp+set}" = set; then :
8357 else
8358 ac_cv_search_ldexp=no
8360 rm conftest.$ac_ext
8361 LIBS=$ac_func_search_save_LIBS
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8364 $as_echo "$ac_cv_search_ldexp" >&6; }
8365 ac_res=$ac_cv_search_ldexp
8366 if test "$ac_res" != no; then :
8367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8371 LDEXP_LIB="$LIBS"
8372 LIBS="$save_LIBS"
8375 # Use <inttypes.h> only if it exists,
8376 # doesn't clash with <sys/types.h>, and declares intmax_t.
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8378 $as_echo_n "checking for inttypes.h... " >&6; }
8379 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 #include <sys/types.h>
8385 #include <inttypes.h>
8387 main ()
8389 intmax_t i = -1;
8391 return 0;
8393 _ACEOF
8394 if ac_fn_c_try_compile "$LINENO"; then :
8395 gcc_cv_header_inttypes_h=yes
8396 else
8397 gcc_cv_header_inttypes_h=no
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8403 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8404 if test $gcc_cv_header_inttypes_h = yes; then
8406 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8412 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8413 sysconf strsignal getrusage nl_langinfo \
8414 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8415 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
8416 do :
8417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8419 eval as_val=\$$as_ac_var
8420 if test "x$as_val" = x""yes; then :
8421 cat >>confdefs.h <<_ACEOF
8422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8423 _ACEOF
8426 done
8429 save_CPPFLAGS="$CPPFLAGS"
8430 save_LIBS="$LIBS"
8431 LIBS="$LIBS $LIBELFLIBS"
8432 for ac_func in elf_getshdrstrndx
8433 do :
8434 ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8435 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8436 cat >>confdefs.h <<_ACEOF
8437 #define HAVE_ELF_GETSHDRSTRNDX 1
8438 _ACEOF
8440 else
8441 for ac_func in elf_getshstrndx
8442 do :
8443 ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8444 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8445 cat >>confdefs.h <<_ACEOF
8446 #define HAVE_ELF_GETSHSTRNDX 1
8447 _ACEOF
8448 if test "$cross_compiling" = yes; then :
8449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8451 as_fn_error "cannot run test program while cross compiling
8452 See \`config.log' for more details." "$LINENO" 5; }
8453 else
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 #include <stdlib.h>
8457 #include <libelf.h>
8458 int main()
8460 return elf_getshstrndx (NULL, 0) == 0;
8462 _ACEOF
8463 if ac_fn_c_try_run "$LINENO"; then :
8465 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8469 conftest.$ac_objext conftest.beam conftest.$ac_ext
8473 done
8477 done
8479 LIBS="$save_LIBS"
8480 CPPFLAGS="$save_CPPFLAGS"
8482 if test x$ac_cv_func_mbstowcs = xyes; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8484 $as_echo_n "checking whether mbstowcs works... " >&6; }
8485 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 if test "$cross_compiling" = yes; then :
8489 gcc_cv_func_mbstowcs_works=yes
8490 else
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 #include <stdlib.h>
8494 int main()
8496 mbstowcs(0, "", 0);
8497 return 0;
8499 _ACEOF
8500 if ac_fn_c_try_run "$LINENO"; then :
8501 gcc_cv_func_mbstowcs_works=yes
8502 else
8503 gcc_cv_func_mbstowcs_works=no
8505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8506 conftest.$ac_objext conftest.beam conftest.$ac_ext
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8511 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8512 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8514 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8519 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8520 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8522 else
8524 cat >>confdefs.h <<_ACEOF
8525 #define ssize_t int
8526 _ACEOF
8530 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8531 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8533 else
8535 cat >>confdefs.h <<_ACEOF
8536 #define caddr_t char *
8537 _ACEOF
8543 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8544 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8545 gcc_header_sys_mman_h=yes
8546 else
8547 gcc_header_sys_mman_h=no
8550 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8551 if test "x$ac_cv_func_mmap" = x""yes; then :
8552 gcc_func_mmap=yes
8553 else
8554 gcc_func_mmap=no
8557 if test "$gcc_header_sys_mman_h" != yes \
8558 || test "$gcc_func_mmap" != yes; then
8559 gcc_cv_func_mmap_file=no
8560 gcc_cv_func_mmap_dev_zero=no
8561 gcc_cv_func_mmap_anon=no
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8564 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8565 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 # Add a system to this blacklist if
8569 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8570 # memory area containing the same data that you'd get if you applied
8571 # read() to the same fd. The only system known to have a problem here
8572 # is VMS, where text files have record structure.
8573 case "$host_os" in
8574 vms* | ultrix*)
8575 gcc_cv_func_mmap_file=no ;;
8577 gcc_cv_func_mmap_file=yes;;
8578 esac
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8581 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8583 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8584 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 # Add a system to this blacklist if it has mmap() but /dev/zero
8588 # does not exist, or if mmapping /dev/zero does not give anonymous
8589 # zeroed pages with both the following properties:
8590 # 1. If you map N consecutive pages in with one call, and then
8591 # unmap any subset of those pages, the pages that were not
8592 # explicitly unmapped remain accessible.
8593 # 2. If you map two adjacent blocks of memory and then unmap them
8594 # both at once, they must both go away.
8595 # Systems known to be in this category are Windows (all variants),
8596 # VMS, and Darwin.
8597 case "$host_os" in
8598 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8599 gcc_cv_func_mmap_dev_zero=no ;;
8601 gcc_cv_func_mmap_dev_zero=yes;;
8602 esac
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8605 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8607 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8609 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8610 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 #include <sys/types.h>
8616 #include <sys/mman.h>
8617 #include <unistd.h>
8619 #ifndef MAP_ANONYMOUS
8620 #define MAP_ANONYMOUS MAP_ANON
8621 #endif
8624 main ()
8626 int n = MAP_ANONYMOUS;
8628 return 0;
8630 _ACEOF
8631 if ac_fn_c_try_compile "$LINENO"; then :
8632 gcc_cv_decl_map_anon=yes
8633 else
8634 gcc_cv_decl_map_anon=no
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8639 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8641 if test $gcc_cv_decl_map_anon = no; then
8642 gcc_cv_func_mmap_anon=no
8643 else
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8645 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8646 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8650 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8651 # doesn't give anonymous zeroed pages with the same properties listed
8652 # above for use of /dev/zero.
8653 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8654 case "$host_os" in
8655 vms* | cygwin* | pe | mingw* | sco* | udk* )
8656 gcc_cv_func_mmap_anon=no ;;
8658 gcc_cv_func_mmap_anon=yes;;
8659 esac
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8662 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8666 if test $gcc_cv_func_mmap_file = yes; then
8668 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8671 if test $gcc_cv_func_mmap_dev_zero = yes; then
8673 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8676 if test $gcc_cv_func_mmap_anon = yes; then
8678 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8683 case "${host}" in
8684 *-*-*vms*)
8685 # Under VMS, vfork works very differently than on Unix. The standard test
8686 # won't work, and it isn't easily adaptable. It makes more sense to
8687 # just force it.
8688 ac_cv_func_vfork_works=yes
8690 esac
8691 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8692 if test "x$ac_cv_type_pid_t" = x""yes; then :
8694 else
8696 cat >>confdefs.h <<_ACEOF
8697 #define pid_t int
8698 _ACEOF
8702 for ac_header in vfork.h
8703 do :
8704 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8705 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8706 cat >>confdefs.h <<_ACEOF
8707 #define HAVE_VFORK_H 1
8708 _ACEOF
8711 done
8713 for ac_func in fork vfork
8714 do :
8715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8716 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8717 eval as_val=\$$as_ac_var
8718 if test "x$as_val" = x""yes; then :
8719 cat >>confdefs.h <<_ACEOF
8720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8721 _ACEOF
8724 done
8726 if test "x$ac_cv_func_fork" = xyes; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8728 $as_echo_n "checking for working fork... " >&6; }
8729 if test "${ac_cv_func_fork_works+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 if test "$cross_compiling" = yes; then :
8733 ac_cv_func_fork_works=cross
8734 else
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 $ac_includes_default
8739 main ()
8742 /* By Ruediger Kuhlmann. */
8743 return fork () < 0;
8746 return 0;
8748 _ACEOF
8749 if ac_fn_c_try_run "$LINENO"; then :
8750 ac_cv_func_fork_works=yes
8751 else
8752 ac_cv_func_fork_works=no
8754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8755 conftest.$ac_objext conftest.beam conftest.$ac_ext
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8760 $as_echo "$ac_cv_func_fork_works" >&6; }
8762 else
8763 ac_cv_func_fork_works=$ac_cv_func_fork
8765 if test "x$ac_cv_func_fork_works" = xcross; then
8766 case $host in
8767 *-*-amigaos* | *-*-msdosdjgpp*)
8768 # Override, as these systems have only a dummy fork() stub
8769 ac_cv_func_fork_works=no
8772 ac_cv_func_fork_works=yes
8774 esac
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8776 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8778 ac_cv_func_vfork_works=$ac_cv_func_vfork
8779 if test "x$ac_cv_func_vfork" = xyes; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8781 $as_echo_n "checking for working vfork... " >&6; }
8782 if test "${ac_cv_func_vfork_works+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 if test "$cross_compiling" = yes; then :
8786 ac_cv_func_vfork_works=cross
8787 else
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 /* Thanks to Paul Eggert for this test. */
8791 $ac_includes_default
8792 #include <sys/wait.h>
8793 #ifdef HAVE_VFORK_H
8794 # include <vfork.h>
8795 #endif
8796 /* On some sparc systems, changes by the child to local and incoming
8797 argument registers are propagated back to the parent. The compiler
8798 is told about this with #include <vfork.h>, but some compilers
8799 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8800 static variable whose address is put into a register that is
8801 clobbered by the vfork. */
8802 static void
8803 #ifdef __cplusplus
8804 sparc_address_test (int arg)
8805 # else
8806 sparc_address_test (arg) int arg;
8807 #endif
8809 static pid_t child;
8810 if (!child) {
8811 child = vfork ();
8812 if (child < 0) {
8813 perror ("vfork");
8814 _exit(2);
8816 if (!child) {
8817 arg = getpid();
8818 write(-1, "", 0);
8819 _exit (arg);
8825 main ()
8827 pid_t parent = getpid ();
8828 pid_t child;
8830 sparc_address_test (0);
8832 child = vfork ();
8834 if (child == 0) {
8835 /* Here is another test for sparc vfork register problems. This
8836 test uses lots of local variables, at least as many local
8837 variables as main has allocated so far including compiler
8838 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8839 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8840 reuse the register of parent for one of the local variables,
8841 since it will think that parent can't possibly be used any more
8842 in this routine. Assigning to the local variable will thus
8843 munge parent in the parent process. */
8844 pid_t
8845 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8846 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8847 /* Convince the compiler that p..p7 are live; otherwise, it might
8848 use the same hardware register for all 8 local variables. */
8849 if (p != p1 || p != p2 || p != p3 || p != p4
8850 || p != p5 || p != p6 || p != p7)
8851 _exit(1);
8853 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8854 from child file descriptors. If the child closes a descriptor
8855 before it execs or exits, this munges the parent's descriptor
8856 as well. Test for this by closing stdout in the child. */
8857 _exit(close(fileno(stdout)) != 0);
8858 } else {
8859 int status;
8860 struct stat st;
8862 while (wait(&status) != child)
8864 return (
8865 /* Was there some problem with vforking? */
8866 child < 0
8868 /* Did the child fail? (This shouldn't happen.) */
8869 || status
8871 /* Did the vfork/compiler bug occur? */
8872 || parent != getpid()
8874 /* Did the file descriptor bug occur? */
8875 || fstat(fileno(stdout), &st) != 0
8879 _ACEOF
8880 if ac_fn_c_try_run "$LINENO"; then :
8881 ac_cv_func_vfork_works=yes
8882 else
8883 ac_cv_func_vfork_works=no
8885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8886 conftest.$ac_objext conftest.beam conftest.$ac_ext
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8891 $as_echo "$ac_cv_func_vfork_works" >&6; }
8894 if test "x$ac_cv_func_fork_works" = xcross; then
8895 ac_cv_func_vfork_works=$ac_cv_func_vfork
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8897 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8900 if test "x$ac_cv_func_vfork_works" = xyes; then
8902 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8904 else
8906 $as_echo "#define vfork fork" >>confdefs.h
8909 if test "x$ac_cv_func_fork_works" = xyes; then
8911 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8917 if test "X$prefix" = "XNONE"; then
8918 acl_final_prefix="$ac_default_prefix"
8919 else
8920 acl_final_prefix="$prefix"
8922 if test "X$exec_prefix" = "XNONE"; then
8923 acl_final_exec_prefix='${prefix}'
8924 else
8925 acl_final_exec_prefix="$exec_prefix"
8927 acl_save_prefix="$prefix"
8928 prefix="$acl_final_prefix"
8929 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8930 prefix="$acl_save_prefix"
8933 # Check whether --with-gnu-ld was given.
8934 if test "${with_gnu_ld+set}" = set; then :
8935 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8936 else
8937 with_gnu_ld=no
8940 # Prepare PATH_SEPARATOR.
8941 # The user is always right.
8942 if test "${PATH_SEPARATOR+set}" != set; then
8943 echo "#! /bin/sh" >conf$$.sh
8944 echo "exit 0" >>conf$$.sh
8945 chmod +x conf$$.sh
8946 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8947 PATH_SEPARATOR=';'
8948 else
8949 PATH_SEPARATOR=:
8951 rm -f conf$$.sh
8953 ac_prog=ld
8954 if test "$GCC" = yes; then
8955 # Check if gcc -print-prog-name=ld gives a path.
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8957 $as_echo_n "checking for ld used by GCC... " >&6; }
8958 case $host in
8959 *-*-mingw*)
8960 # gcc leaves a trailing carriage return which upsets mingw
8961 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8963 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8964 esac
8965 case $ac_prog in
8966 # Accept absolute paths.
8967 [\\/]* | [A-Za-z]:[\\/]*)
8968 re_direlt='/[^/][^/]*/\.\./'
8969 # Canonicalize the path of ld
8970 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8971 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8972 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8973 done
8974 test -z "$LD" && LD="$ac_prog"
8977 # If it fails, then pretend we aren't using GCC.
8978 ac_prog=ld
8981 # If it is relative, then search for the first ld in PATH.
8982 with_gnu_ld=unknown
8984 esac
8985 elif test "$with_gnu_ld" = yes; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8987 $as_echo_n "checking for GNU ld... " >&6; }
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8990 $as_echo_n "checking for non-GNU ld... " >&6; }
8992 if test "${acl_cv_path_LD+set}" = set; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 if test -z "$LD"; then
8996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8997 for ac_dir in $PATH; do
8998 test -z "$ac_dir" && ac_dir=.
8999 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9000 acl_cv_path_LD="$ac_dir/$ac_prog"
9001 # Check to see if the program is GNU ld. I'd rather use --version,
9002 # but apparently some GNU ld's only accept -v.
9003 # Break only if it was the GNU/non-GNU ld that we prefer.
9004 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9005 test "$with_gnu_ld" != no && break
9006 else
9007 test "$with_gnu_ld" != yes && break
9010 done
9011 IFS="$ac_save_ifs"
9012 else
9013 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9017 LD="$acl_cv_path_LD"
9018 if test -n "$LD"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9020 $as_echo "$LD" >&6; }
9021 else
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9025 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9027 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9028 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9029 $as_echo_n "(cached) " >&6
9030 else
9031 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9032 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9033 acl_cv_prog_gnu_ld=yes
9034 else
9035 acl_cv_prog_gnu_ld=no
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9039 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9040 with_gnu_ld=$acl_cv_prog_gnu_ld
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9045 $as_echo_n "checking for shared library run path origin... " >&6; }
9046 if test "${acl_cv_rpath+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9050 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9051 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9052 . ./conftest.sh
9053 rm -f ./conftest.sh
9054 acl_cv_rpath=done
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9058 $as_echo "$acl_cv_rpath" >&6; }
9059 wl="$acl_cv_wl"
9060 libext="$acl_cv_libext"
9061 shlibext="$acl_cv_shlibext"
9062 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9063 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9064 hardcode_direct="$acl_cv_hardcode_direct"
9065 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9066 # Check whether --enable-rpath was given.
9067 if test "${enable_rpath+set}" = set; then :
9068 enableval=$enable_rpath; :
9069 else
9070 enable_rpath=yes
9080 use_additional=yes
9082 acl_save_prefix="$prefix"
9083 prefix="$acl_final_prefix"
9084 acl_save_exec_prefix="$exec_prefix"
9085 exec_prefix="$acl_final_exec_prefix"
9087 eval additional_includedir=\"$includedir\"
9088 eval additional_libdir=\"$libdir\"
9090 exec_prefix="$acl_save_exec_prefix"
9091 prefix="$acl_save_prefix"
9094 # Check whether --with-libiconv-prefix was given.
9095 if test "${with_libiconv_prefix+set}" = set; then :
9096 withval=$with_libiconv_prefix;
9097 if test "X$withval" = "Xno"; then
9098 use_additional=no
9099 else
9100 if test "X$withval" = "X"; then
9102 acl_save_prefix="$prefix"
9103 prefix="$acl_final_prefix"
9104 acl_save_exec_prefix="$exec_prefix"
9105 exec_prefix="$acl_final_exec_prefix"
9107 eval additional_includedir=\"$includedir\"
9108 eval additional_libdir=\"$libdir\"
9110 exec_prefix="$acl_save_exec_prefix"
9111 prefix="$acl_save_prefix"
9113 else
9114 additional_includedir="$withval/include"
9115 additional_libdir="$withval/lib"
9121 LIBICONV=
9122 LTLIBICONV=
9123 INCICONV=
9124 rpathdirs=
9125 ltrpathdirs=
9126 names_already_handled=
9127 names_next_round='iconv '
9128 while test -n "$names_next_round"; do
9129 names_this_round="$names_next_round"
9130 names_next_round=
9131 for name in $names_this_round; do
9132 already_handled=
9133 for n in $names_already_handled; do
9134 if test "$n" = "$name"; then
9135 already_handled=yes
9136 break
9138 done
9139 if test -z "$already_handled"; then
9140 names_already_handled="$names_already_handled $name"
9141 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9142 eval value=\"\$HAVE_LIB$uppername\"
9143 if test -n "$value"; then
9144 if test "$value" = yes; then
9145 eval value=\"\$LIB$uppername\"
9146 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9147 eval value=\"\$LTLIB$uppername\"
9148 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9149 else
9152 else
9153 found_dir=
9154 found_la=
9155 found_so=
9156 found_a=
9157 if test $use_additional = yes; then
9158 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9159 found_dir="$additional_libdir"
9160 found_so="$additional_libdir/lib$name.$shlibext"
9161 if test -f "$additional_libdir/lib$name.la"; then
9162 found_la="$additional_libdir/lib$name.la"
9164 else
9165 if test -f "$additional_libdir/lib$name.$libext"; then
9166 found_dir="$additional_libdir"
9167 found_a="$additional_libdir/lib$name.$libext"
9168 if test -f "$additional_libdir/lib$name.la"; then
9169 found_la="$additional_libdir/lib$name.la"
9174 if test "X$found_dir" = "X"; then
9175 for x in $LDFLAGS $LTLIBICONV; do
9177 acl_save_prefix="$prefix"
9178 prefix="$acl_final_prefix"
9179 acl_save_exec_prefix="$exec_prefix"
9180 exec_prefix="$acl_final_exec_prefix"
9181 eval x=\"$x\"
9182 exec_prefix="$acl_save_exec_prefix"
9183 prefix="$acl_save_prefix"
9185 case "$x" in
9186 -L*)
9187 dir=`echo "X$x" | sed -e 's/^X-L//'`
9188 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9189 found_dir="$dir"
9190 found_so="$dir/lib$name.$shlibext"
9191 if test -f "$dir/lib$name.la"; then
9192 found_la="$dir/lib$name.la"
9194 else
9195 if test -f "$dir/lib$name.$libext"; then
9196 found_dir="$dir"
9197 found_a="$dir/lib$name.$libext"
9198 if test -f "$dir/lib$name.la"; then
9199 found_la="$dir/lib$name.la"
9204 esac
9205 if test "X$found_dir" != "X"; then
9206 break
9208 done
9210 if test "X$found_dir" != "X"; then
9211 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9212 if test "X$found_so" != "X"; then
9213 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9214 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9215 else
9216 haveit=
9217 for x in $ltrpathdirs; do
9218 if test "X$x" = "X$found_dir"; then
9219 haveit=yes
9220 break
9222 done
9223 if test -z "$haveit"; then
9224 ltrpathdirs="$ltrpathdirs $found_dir"
9226 if test "$hardcode_direct" = yes; then
9227 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9228 else
9229 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9230 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9231 haveit=
9232 for x in $rpathdirs; do
9233 if test "X$x" = "X$found_dir"; then
9234 haveit=yes
9235 break
9237 done
9238 if test -z "$haveit"; then
9239 rpathdirs="$rpathdirs $found_dir"
9241 else
9242 haveit=
9243 for x in $LDFLAGS $LIBICONV; do
9245 acl_save_prefix="$prefix"
9246 prefix="$acl_final_prefix"
9247 acl_save_exec_prefix="$exec_prefix"
9248 exec_prefix="$acl_final_exec_prefix"
9249 eval x=\"$x\"
9250 exec_prefix="$acl_save_exec_prefix"
9251 prefix="$acl_save_prefix"
9253 if test "X$x" = "X-L$found_dir"; then
9254 haveit=yes
9255 break
9257 done
9258 if test -z "$haveit"; then
9259 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9261 if test "$hardcode_minus_L" != no; then
9262 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9263 else
9264 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9269 else
9270 if test "X$found_a" != "X"; then
9271 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9272 else
9273 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9276 additional_includedir=
9277 case "$found_dir" in
9278 */lib | */lib/)
9279 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9280 additional_includedir="$basedir/include"
9282 esac
9283 if test "X$additional_includedir" != "X"; then
9284 if test "X$additional_includedir" != "X/usr/include"; then
9285 haveit=
9286 if test "X$additional_includedir" = "X/usr/local/include"; then
9287 if test -n "$GCC"; then
9288 case $host_os in
9289 linux*) haveit=yes;;
9290 esac
9293 if test -z "$haveit"; then
9294 for x in $CPPFLAGS $INCICONV; do
9296 acl_save_prefix="$prefix"
9297 prefix="$acl_final_prefix"
9298 acl_save_exec_prefix="$exec_prefix"
9299 exec_prefix="$acl_final_exec_prefix"
9300 eval x=\"$x\"
9301 exec_prefix="$acl_save_exec_prefix"
9302 prefix="$acl_save_prefix"
9304 if test "X$x" = "X-I$additional_includedir"; then
9305 haveit=yes
9306 break
9308 done
9309 if test -z "$haveit"; then
9310 if test -d "$additional_includedir"; then
9311 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9317 if test -n "$found_la"; then
9318 save_libdir="$libdir"
9319 case "$found_la" in
9320 */* | *\\*) . "$found_la" ;;
9321 *) . "./$found_la" ;;
9322 esac
9323 libdir="$save_libdir"
9324 for dep in $dependency_libs; do
9325 case "$dep" in
9326 -L*)
9327 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9328 if test "X$additional_libdir" != "X/usr/lib"; then
9329 haveit=
9330 if test "X$additional_libdir" = "X/usr/local/lib"; then
9331 if test -n "$GCC"; then
9332 case $host_os in
9333 linux*) haveit=yes;;
9334 esac
9337 if test -z "$haveit"; then
9338 haveit=
9339 for x in $LDFLAGS $LIBICONV; do
9341 acl_save_prefix="$prefix"
9342 prefix="$acl_final_prefix"
9343 acl_save_exec_prefix="$exec_prefix"
9344 exec_prefix="$acl_final_exec_prefix"
9345 eval x=\"$x\"
9346 exec_prefix="$acl_save_exec_prefix"
9347 prefix="$acl_save_prefix"
9349 if test "X$x" = "X-L$additional_libdir"; then
9350 haveit=yes
9351 break
9353 done
9354 if test -z "$haveit"; then
9355 if test -d "$additional_libdir"; then
9356 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9359 haveit=
9360 for x in $LDFLAGS $LTLIBICONV; do
9362 acl_save_prefix="$prefix"
9363 prefix="$acl_final_prefix"
9364 acl_save_exec_prefix="$exec_prefix"
9365 exec_prefix="$acl_final_exec_prefix"
9366 eval x=\"$x\"
9367 exec_prefix="$acl_save_exec_prefix"
9368 prefix="$acl_save_prefix"
9370 if test "X$x" = "X-L$additional_libdir"; then
9371 haveit=yes
9372 break
9374 done
9375 if test -z "$haveit"; then
9376 if test -d "$additional_libdir"; then
9377 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9383 -R*)
9384 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9385 if test "$enable_rpath" != no; then
9386 haveit=
9387 for x in $rpathdirs; do
9388 if test "X$x" = "X$dir"; then
9389 haveit=yes
9390 break
9392 done
9393 if test -z "$haveit"; then
9394 rpathdirs="$rpathdirs $dir"
9396 haveit=
9397 for x in $ltrpathdirs; do
9398 if test "X$x" = "X$dir"; then
9399 haveit=yes
9400 break
9402 done
9403 if test -z "$haveit"; then
9404 ltrpathdirs="$ltrpathdirs $dir"
9408 -l*)
9409 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9411 *.la)
9412 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9415 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9416 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9418 esac
9419 done
9421 else
9422 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9423 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9427 done
9428 done
9429 if test "X$rpathdirs" != "X"; then
9430 if test -n "$hardcode_libdir_separator"; then
9431 alldirs=
9432 for found_dir in $rpathdirs; do
9433 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9434 done
9435 acl_save_libdir="$libdir"
9436 libdir="$alldirs"
9437 eval flag=\"$hardcode_libdir_flag_spec\"
9438 libdir="$acl_save_libdir"
9439 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9440 else
9441 for found_dir in $rpathdirs; do
9442 acl_save_libdir="$libdir"
9443 libdir="$found_dir"
9444 eval flag=\"$hardcode_libdir_flag_spec\"
9445 libdir="$acl_save_libdir"
9446 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9447 done
9450 if test "X$ltrpathdirs" != "X"; then
9451 for found_dir in $ltrpathdirs; do
9452 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9453 done
9462 am_save_CPPFLAGS="$CPPFLAGS"
9464 for element in $INCICONV; do
9465 haveit=
9466 for x in $CPPFLAGS; do
9468 acl_save_prefix="$prefix"
9469 prefix="$acl_final_prefix"
9470 acl_save_exec_prefix="$exec_prefix"
9471 exec_prefix="$acl_final_exec_prefix"
9472 eval x=\"$x\"
9473 exec_prefix="$acl_save_exec_prefix"
9474 prefix="$acl_save_prefix"
9476 if test "X$x" = "X$element"; then
9477 haveit=yes
9478 break
9480 done
9481 if test -z "$haveit"; then
9482 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9484 done
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9488 $as_echo_n "checking for iconv... " >&6; }
9489 if test "${am_cv_func_iconv+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9493 am_cv_func_iconv="no, consider installing GNU libiconv"
9494 am_cv_lib_iconv=no
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 #include <stdlib.h>
9498 #include <iconv.h>
9500 main ()
9502 iconv_t cd = iconv_open("","");
9503 iconv(cd,NULL,NULL,NULL,NULL);
9504 iconv_close(cd);
9506 return 0;
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9510 am_cv_func_iconv=yes
9512 rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 if test "$am_cv_func_iconv" != yes; then
9515 am_save_LIBS="$LIBS"
9516 LIBS="$LIBS $LIBICONV"
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 #include <stdlib.h>
9520 #include <iconv.h>
9522 main ()
9524 iconv_t cd = iconv_open("","");
9525 iconv(cd,NULL,NULL,NULL,NULL);
9526 iconv_close(cd);
9528 return 0;
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"; then :
9532 am_cv_lib_iconv=yes
9533 am_cv_func_iconv=yes
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 LIBS="$am_save_LIBS"
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9542 $as_echo "$am_cv_func_iconv" >&6; }
9543 if test "$am_cv_func_iconv" = yes; then
9545 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9548 if test "$am_cv_lib_iconv" = yes; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9550 $as_echo_n "checking how to link with libiconv... " >&6; }
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9552 $as_echo "$LIBICONV" >&6; }
9553 else
9554 CPPFLAGS="$am_save_CPPFLAGS"
9555 LIBICONV=
9556 LTLIBICONV=
9561 if test "$am_cv_func_iconv" = yes; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9563 $as_echo_n "checking for iconv declaration... " >&6; }
9564 if test "${am_cv_proto_iconv+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9571 #include <stdlib.h>
9572 #include <iconv.h>
9573 extern
9574 #ifdef __cplusplus
9576 #endif
9577 #if defined(__STDC__) || defined(__cplusplus)
9578 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9579 #else
9580 size_t iconv();
9581 #endif
9584 main ()
9588 return 0;
9590 _ACEOF
9591 if ac_fn_c_try_compile "$LINENO"; then :
9592 am_cv_proto_iconv_arg1=""
9593 else
9594 am_cv_proto_iconv_arg1="const"
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 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);"
9600 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9602 }$am_cv_proto_iconv" >&5
9603 $as_echo "${ac_t:-
9604 }$am_cv_proto_iconv" >&6; }
9606 cat >>confdefs.h <<_ACEOF
9607 #define ICONV_CONST $am_cv_proto_iconv_arg1
9608 _ACEOF
9612 # Until we have in-tree GNU iconv:
9613 LIBICONV_DEP=
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9618 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9619 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h. */
9624 #include <locale.h>
9626 main ()
9628 return LC_MESSAGES
9630 return 0;
9632 _ACEOF
9633 if ac_fn_c_try_link "$LINENO"; then :
9634 am_cv_val_LC_MESSAGES=yes
9635 else
9636 am_cv_val_LC_MESSAGES=no
9638 rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9642 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9643 if test $am_cv_val_LC_MESSAGES = yes; then
9645 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9652 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9653 if test "${am_cv_langinfo_codeset+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 #include <langinfo.h>
9660 main ()
9662 char* cs = nl_langinfo(CODESET);
9664 return 0;
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9668 am_cv_langinfo_codeset=yes
9669 else
9670 am_cv_langinfo_codeset=no
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9677 $as_echo "$am_cv_langinfo_codeset" >&6; }
9678 if test $am_cv_langinfo_codeset = yes; then
9680 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9685 # We will need to find libiberty.h and ansidecl.h
9686 saved_CFLAGS="$CFLAGS"
9687 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9688 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9689 strsignal strstr strverscmp \
9690 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9691 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
9693 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9695 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9696 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 #undef $ac_tr_decl
9702 #define $ac_tr_decl 1
9704 #include "ansidecl.h"
9705 #include "system.h"
9708 main ()
9710 #ifndef $ac_func
9711 char *(*pfn) = (char *(*)) $ac_func ;
9712 #endif
9714 return 0;
9716 _ACEOF
9717 if ac_fn_c_try_compile "$LINENO"; then :
9718 eval "gcc_cv_have_decl_$ac_func=yes"
9719 else
9720 eval "gcc_cv_have_decl_$ac_func=no"
9722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9727 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9728 #define $ac_tr_decl 1
9729 _ACEOF
9731 else
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9734 #define $ac_tr_decl 0
9735 _ACEOF
9739 done
9742 for ac_func in getrlimit setrlimit getrusage
9744 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9746 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9747 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 #undef $ac_tr_decl
9753 #define $ac_tr_decl 1
9755 #include "ansidecl.h"
9756 #include "system.h"
9757 #ifdef HAVE_SYS_RESOURCE_H
9758 #include <sys/resource.h>
9759 #endif
9763 main ()
9765 #ifndef $ac_func
9766 char *(*pfn) = (char *(*)) $ac_func ;
9767 #endif
9769 return 0;
9771 _ACEOF
9772 if ac_fn_c_try_compile "$LINENO"; then :
9773 eval "gcc_cv_have_decl_$ac_func=yes"
9774 else
9775 eval "gcc_cv_have_decl_$ac_func=no"
9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9782 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9783 #define $ac_tr_decl 1
9784 _ACEOF
9786 else
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9789 #define $ac_tr_decl 0
9790 _ACEOF
9794 done
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9800 #include "ansidecl.h"
9801 #include "system.h"
9802 #ifdef HAVE_SYS_RESOURCE_H
9803 #include <sys/resource.h>
9804 #endif
9807 main ()
9809 rlim_t l = 0;
9811 return 0;
9813 _ACEOF
9814 if ac_fn_c_try_compile "$LINENO"; then :
9816 else
9818 $as_echo "#define rlim_t long" >>confdefs.h
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9823 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9824 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9825 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9826 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9827 for ac_func in ldgetname
9829 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9831 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9832 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9837 #undef $ac_tr_decl
9838 #define $ac_tr_decl 1
9840 #include "ansidecl.h"
9841 #include "system.h"
9842 #ifdef HAVE_LDFCN_H
9843 #undef FREAD
9844 #undef FWRITE
9845 #include <ldfcn.h>
9846 #endif
9850 main ()
9852 #ifndef $ac_func
9853 char *(*pfn) = (char *(*)) $ac_func ;
9854 #endif
9856 return 0;
9858 _ACEOF
9859 if ac_fn_c_try_compile "$LINENO"; then :
9860 eval "gcc_cv_have_decl_$ac_func=yes"
9861 else
9862 eval "gcc_cv_have_decl_$ac_func=no"
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9867 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9869 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9870 #define $ac_tr_decl 1
9871 _ACEOF
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9876 #define $ac_tr_decl 0
9877 _ACEOF
9881 done
9884 for ac_func in times
9886 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9888 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9889 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894 #undef $ac_tr_decl
9895 #define $ac_tr_decl 1
9897 #include "ansidecl.h"
9898 #include "system.h"
9899 #ifdef HAVE_SYS_TIMES_H
9900 #include <sys/times.h>
9901 #endif
9905 main ()
9907 #ifndef $ac_func
9908 char *(*pfn) = (char *(*)) $ac_func ;
9909 #endif
9911 return 0;
9913 _ACEOF
9914 if ac_fn_c_try_compile "$LINENO"; then :
9915 eval "gcc_cv_have_decl_$ac_func=yes"
9916 else
9917 eval "gcc_cv_have_decl_$ac_func=no"
9919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9925 #define $ac_tr_decl 1
9926 _ACEOF
9928 else
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9931 #define $ac_tr_decl 0
9932 _ACEOF
9936 done
9939 for ac_func in sigaltstack
9941 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9943 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9944 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9949 #undef $ac_tr_decl
9950 #define $ac_tr_decl 1
9952 #include "ansidecl.h"
9953 #include "system.h"
9954 #include <signal.h>
9958 main ()
9960 #ifndef $ac_func
9961 char *(*pfn) = (char *(*)) $ac_func ;
9962 #endif
9964 return 0;
9966 _ACEOF
9967 if ac_fn_c_try_compile "$LINENO"; then :
9968 eval "gcc_cv_have_decl_$ac_func=yes"
9969 else
9970 eval "gcc_cv_have_decl_$ac_func=no"
9972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9977 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9978 #define $ac_tr_decl 1
9979 _ACEOF
9981 else
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9984 #define $ac_tr_decl 0
9985 _ACEOF
9989 done
9992 # More time-related stuff.
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9994 $as_echo_n "checking for struct tms... " >&6; }
9995 if test "${ac_cv_struct_tms+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10002 #include "ansidecl.h"
10003 #include "system.h"
10004 #ifdef HAVE_SYS_TIMES_H
10005 #include <sys/times.h>
10006 #endif
10009 main ()
10011 struct tms tms;
10013 return 0;
10015 _ACEOF
10016 if ac_fn_c_try_compile "$LINENO"; then :
10017 ac_cv_struct_tms=yes
10018 else
10019 ac_cv_struct_tms=no
10021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10024 $as_echo "$ac_cv_struct_tms" >&6; }
10025 if test $ac_cv_struct_tms = yes; then
10027 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10031 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10032 # revisit after autoconf 2.50.
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10034 $as_echo_n "checking for clock_t... " >&6; }
10035 if test "${gcc_cv_type_clock_t+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10042 #include "ansidecl.h"
10043 #include "system.h"
10046 main ()
10048 clock_t x;
10050 return 0;
10052 _ACEOF
10053 if ac_fn_c_try_compile "$LINENO"; then :
10054 gcc_cv_type_clock_t=yes
10055 else
10056 gcc_cv_type_clock_t=no
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10061 $as_echo "$gcc_cv_type_clock_t" >&6; }
10062 if test $gcc_cv_type_clock_t = yes; then
10064 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10068 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10069 CFLAGS="$saved_CFLAGS"
10071 # Check whether --enable-initfini-array was given.
10072 if test "${enable_initfini_array+set}" = set; then :
10073 enableval=$enable_initfini_array;
10074 else
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10077 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10078 if test "${gcc_cv_initfini_array+set}" = set; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 if test "$cross_compiling" = yes; then :
10082 gcc_cv_initfini_array=no
10083 else
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10087 static int x = -1;
10088 int main (void) { return x; }
10089 int foo (void) { x = 0; }
10090 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10091 _ACEOF
10092 if ac_fn_c_try_run "$LINENO"; then :
10093 gcc_cv_initfini_array=yes
10094 else
10095 gcc_cv_initfini_array=no
10097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10098 conftest.$ac_objext conftest.beam conftest.$ac_ext
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10103 $as_echo "$gcc_cv_initfini_array" >&6; }
10104 enable_initfini_array=$gcc_cv_initfini_array
10108 if test $enable_initfini_array = yes; then
10110 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10114 # mkdir takes a single argument on some systems.
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10116 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10117 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10123 #include <sys/types.h>
10124 #ifdef HAVE_SYS_STAT_H
10125 # include <sys/stat.h>
10126 #endif
10127 #ifdef HAVE_UNISTD_H
10128 # include <unistd.h>
10129 #endif
10130 #ifdef HAVE_DIRECT_H
10131 # include <direct.h>
10132 #endif
10134 main ()
10136 mkdir ("foo", 0);
10138 return 0;
10140 _ACEOF
10141 if ac_fn_c_try_compile "$LINENO"; then :
10142 gcc_cv_mkdir_takes_one_arg=no
10143 else
10144 gcc_cv_mkdir_takes_one_arg=yes
10146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10149 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10150 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10152 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10157 # File extensions
10158 manext='.1'
10159 objext='.o'
10163 # With Setjmp/Longjmp based exception handling.
10164 # Check whether --enable-sjlj-exceptions was given.
10165 if test "${enable_sjlj_exceptions+set}" = set; then :
10166 enableval=$enable_sjlj_exceptions; case $target in
10167 *-*-hpux10*)
10168 if test $enableval != yes; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10170 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10171 enableval=yes
10174 esac
10175 force_sjlj_exceptions=yes
10176 else
10177 case $target in
10178 *-*-hpux10*)
10179 force_sjlj_exceptions=yes
10180 enableval=yes
10183 force_sjlj_exceptions=no
10185 esac
10188 if test $force_sjlj_exceptions = yes; then
10189 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10191 cat >>confdefs.h <<_ACEOF
10192 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10193 _ACEOF
10197 # For platforms with the unwind ABI which includes an unwind library,
10198 # libunwind, we can choose to use the system libunwind.
10199 # config.gcc also contains tests of with_system_libunwind.
10202 # Check whether --with-system-libunwind was given.
10203 if test "${with_system_libunwind+set}" = set; then :
10204 withval=$with_system_libunwind;
10207 # If system-libunwind was not specifically set, pick a default setting.
10208 if test x$with_system_libunwind = x; then
10209 case ${target} in
10210 ia64-*-hpux*) with_system_libunwind=yes ;;
10211 *) with_system_libunwind=no ;;
10212 esac
10214 # Based on system-libunwind and target, do we have ipinfo?
10215 if test x$with_system_libunwind = xyes; then
10216 case ${target} in
10217 ia64-*-*) have_unwind_getipinfo=no ;;
10218 *) have_unwind_getipinfo=yes ;;
10219 esac
10220 else
10221 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10223 case ${target} in
10224 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10225 *) have_unwind_getipinfo=yes ;;
10226 esac
10230 if test x$have_unwind_getipinfo = xyes; then
10232 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10237 # --------------------------------------------------------
10238 # Build, host, and target specific configuration fragments
10239 # --------------------------------------------------------
10241 # Collect build-machine-specific information.
10242 . ${srcdir}/config.build
10244 # Collect host-machine-specific information.
10245 . ${srcdir}/config.host
10247 target_gtfiles=
10249 # Collect target-machine-specific information.
10250 . ${srcdir}/config.gcc
10252 extra_objs="${host_extra_objs} ${extra_objs}"
10253 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10255 # Default the target-machine variables that were not explicitly set.
10256 if test x"$tm_file" = x
10257 then tm_file=$cpu_type/$cpu_type.h; fi
10259 if test x"$extra_headers" = x
10260 then extra_headers=; fi
10262 if test x$md_file = x
10263 then md_file=$cpu_type/$cpu_type.md; fi
10265 if test x$out_file = x
10266 then out_file=$cpu_type/$cpu_type.c; fi
10268 if test x"$tmake_file" = x
10269 then tmake_file=$cpu_type/t-$cpu_type
10272 if test x"$dwarf2" = xyes
10273 then tm_file="$tm_file tm-dwarf2.h"
10276 # Say what files are being used for the output code and MD file.
10277 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10278 echo "Using \`$srcdir/config/$md_file' as machine description file."
10280 # If any of the xm_file variables contain nonexistent files, warn
10281 # about them and drop them.
10284 for x in $build_xm_file; do
10285 if test -f $srcdir/config/$x
10286 then bx="$bx $x"
10287 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10288 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10290 done
10291 build_xm_file="$bx"
10294 for x in $host_xm_file; do
10295 if test -f $srcdir/config/$x
10296 then hx="$hx $x"
10297 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10298 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10300 done
10301 host_xm_file="$hx"
10304 for x in $xm_file; do
10305 if test -f $srcdir/config/$x
10306 then tx="$tx $x"
10307 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10308 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10310 done
10311 xm_file="$tx"
10313 count=a
10314 for f in $tm_file; do
10315 count=${count}x
10316 done
10317 if test $count = ax; then
10318 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10319 else
10320 echo "Using the following target machine macro files:"
10321 for f in $tm_file; do
10322 echo " $srcdir/config/$f"
10323 done
10326 if test x$need_64bit_hwint = xyes; then
10328 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10332 if test x$use_long_long_for_widest_fast_int = xyes; then
10334 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10338 count=a
10339 for f in $host_xm_file; do
10340 count=${count}x
10341 done
10342 if test $count = a; then
10344 elif test $count = ax; then
10345 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10346 else
10347 echo "Using the following host machine macro files:"
10348 for f in $host_xm_file; do
10349 echo " $srcdir/config/$f"
10350 done
10352 echo "Using ${out_host_hook_obj} for host machine hooks."
10354 if test "$host_xm_file" != "$build_xm_file"; then
10355 count=a
10356 for f in $build_xm_file; do
10357 count=${count}x
10358 done
10359 if test $count = a; then
10361 elif test $count = ax; then
10362 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10363 else
10364 echo "Using the following build machine macro files:"
10365 for f in $build_xm_file; do
10366 echo " $srcdir/config/$f"
10367 done
10371 case ${host} in
10372 powerpc*-*-darwin*)
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10374 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10375 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10381 #include <sys/cdefs.h>
10382 #include <sys/signal.h>
10383 #include <ucontext.h>
10384 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10386 _ACEOF
10387 if ac_fn_c_try_compile "$LINENO"; then :
10388 gcc_cv_mcontext_underscores=no
10389 else
10390 gcc_cv_mcontext_underscores=yes
10392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10395 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10396 if test $gcc_cv_mcontext_underscores = yes; then
10398 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10402 esac
10404 # ---------
10405 # Threading
10406 # ---------
10408 # Check if a valid thread package
10409 case ${enable_threads} in
10410 "" | no)
10411 # No threads
10412 target_thread_file='single'
10414 yes)
10415 # default
10416 target_thread_file='single'
10418 aix | dce | gnat | irix | posix | posix95 | rtems | \
10419 single | solaris | vxworks | win32 | mipssde)
10420 target_thread_file=${enable_threads}
10423 echo "${enable_threads} is an unknown thread package" 1>&2
10424 exit 1
10426 esac
10428 if test x${thread_file} = x; then
10429 # No thread file set by target-specific clauses in config.gcc,
10430 # so use file chosen by default logic above
10431 thread_file=${target_thread_file}
10434 # Make gthr-default.h if we have a thread file.
10435 gthread_flags=
10436 if test $thread_file != single; then
10437 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10438 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10439 rm -f gthr-default.h-t
10440 else
10441 mv -f gthr-default.h-t gthr-default.h
10443 gthread_flags=-DHAVE_GTHR_DEFAULT
10447 # --------
10448 # UNSORTED
10449 # --------
10451 use_cxa_atexit=no
10452 if test x$enable___cxa_atexit = xyes || \
10453 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10454 if test x$host = x$target; then
10455 case $host in
10456 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10457 # keyed to flag_use_cxa_atexit
10458 *-*-mingw32*)
10459 use_cxa_atexit=yes
10462 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10463 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10464 use_cxa_atexit=yes
10465 else
10466 echo "__cxa_atexit can't be enabled on this target"
10470 esac
10471 else
10472 # We can't check for __cxa_atexit when building a cross, so assume
10473 # it is available
10474 use_cxa_atexit=yes
10476 if test x$use_cxa_atexit = xyes; then
10478 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10483 # Look for a file containing extra machine modes.
10484 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10485 extra_modes_file='$(srcdir)'/config/${extra_modes}
10488 cat >>confdefs.h <<_ACEOF
10489 #define EXTRA_MODES_FILE "config/$extra_modes"
10490 _ACEOF
10494 # Convert extra_options into a form suitable for Makefile use.
10495 extra_opt_files=
10496 for f in $extra_options; do
10497 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10498 done
10501 # auto-host.h is the file containing items generated by autoconf and is
10502 # the first file included by config.h.
10503 # If host=build, it is correct to have bconfig include auto-host.h
10504 # as well. If host!=build, we are in error and need to do more
10505 # work to find out the build config parameters.
10506 if test x$host = x$build
10507 then
10508 build_auto=auto-host.h
10509 else
10510 # We create a subdir, then run autoconf in the subdir.
10511 # To prevent recursion we set host and build for the new
10512 # invocation of configure to the build for this invocation
10513 # of configure.
10514 tempdir=build.$$
10515 rm -rf $tempdir
10516 mkdir $tempdir
10517 cd $tempdir
10518 case ${srcdir} in
10519 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10520 *) realsrcdir=../${srcdir};;
10521 esac
10522 saved_CFLAGS="${CFLAGS}"
10523 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10524 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10525 ${realsrcdir}/configure \
10526 --enable-languages=${enable_languages-all} \
10527 --target=$target_alias --host=$build_alias --build=$build_alias
10528 CFLAGS="${saved_CFLAGS}"
10530 # We just finished tests for the build machine, so rename
10531 # the file auto-build.h in the gcc directory.
10532 mv auto-host.h ../auto-build.h
10533 cd ..
10534 rm -rf $tempdir
10535 build_auto=auto-build.h
10539 tm_file="${tm_file} defaults.h"
10540 tm_p_file="${tm_p_file} tm-preds.h"
10541 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10542 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10543 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10544 # put this back in temporarily.
10545 xm_file="auto-host.h ansidecl.h ${xm_file}"
10547 # --------
10548 # UNSORTED
10549 # --------
10551 # Compile in configure arguments.
10552 if test -f configargs.h ; then
10553 # Being re-configured.
10554 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10555 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10556 else
10557 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10560 # Double all backslashes and backslash all quotes to turn
10561 # gcc_config_arguments into a C string.
10562 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10563 $gcc_config_arguments
10565 gcc_config_arguments_str=`cat conftest.out`
10566 rm -f conftest.out
10568 cat > configargs.h <<EOF
10569 /* Generated automatically. */
10570 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10571 static const char thread_model[] = "$thread_file";
10573 static const struct {
10574 const char *name, *value;
10575 } configure_default_options[] = $configure_default_options;
10578 gcc_BASEVER=`cat $srcdir/BASE-VER`
10579 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10580 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10581 if test -f $srcdir/REVISION ; then
10582 gcc_REVISION=`cat $srcdir/REVISION`
10583 else
10584 gcc_REVISION=""
10586 cat > plugin-version.h <<EOF
10587 #include "configargs.h"
10589 static char basever[] = "$gcc_BASEVER";
10590 static char datestamp[] = "$gcc_DATESTAMP";
10591 static char devphase[] = "$gcc_DEVPHASE";
10592 static char revision[] = "$gcc_REVISION";
10594 /* FIXME plugins: We should make the version information more precise.
10595 One way to do is to add a checksum. */
10597 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10598 devphase, revision,
10599 configuration_arguments};
10602 # Internationalization
10603 # If we haven't got the data from the intl directory,
10604 # assume NLS is disabled.
10605 USE_NLS=no
10606 LIBINTL=
10607 LIBINTL_DEP=
10608 INCINTL=
10609 XGETTEXT=
10610 GMSGFMT=
10611 POSUB=
10613 if test -f ../intl/config.intl; then
10614 . ../intl/config.intl
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10617 $as_echo_n "checking whether NLS is requested... " >&6; }
10618 if test x"$USE_NLS" != xyes; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10623 $as_echo "yes" >&6; }
10625 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10629 $as_echo_n "checking for catalogs to be installed... " >&6; }
10630 # Look for .po and .gmo files in the source directory.
10631 CATALOGS=
10632 XLINGUAS=
10633 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10634 # If there aren't any .gmo files the shell will give us the
10635 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10636 # weeded out.
10637 case "$cat" in *\**)
10638 continue;;
10639 esac
10640 # The quadruple backslash is collapsed to a double backslash
10641 # by the backticks, then collapsed again by the double quotes,
10642 # leaving us with one backslash in the sed expression (right
10643 # before the dot that mustn't act as a wildcard).
10644 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10645 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10646 # The user is allowed to set LINGUAS to a list of languages to
10647 # install catalogs for. If it's empty that means "all of them."
10648 if test "x$LINGUAS" = x; then
10649 CATALOGS="$CATALOGS $cat"
10650 XLINGUAS="$XLINGUAS $lang"
10651 else
10652 case "$LINGUAS" in *$lang*)
10653 CATALOGS="$CATALOGS $cat"
10654 XLINGUAS="$XLINGUAS $lang"
10656 esac
10658 done
10659 LINGUAS="$XLINGUAS"
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10661 $as_echo "$LINGUAS" >&6; }
10664 DATADIRNAME=share
10666 INSTOBJEXT=.mo
10668 GENCAT=gencat
10670 CATOBJEXT=.gmo
10674 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10675 # -liconv on the link line twice.
10676 case "$LIBINTL" in *$LIBICONV*)
10677 LIBICONV= ;;
10678 esac
10680 # Check whether --enable-secureplt was given.
10681 if test "${enable_secureplt+set}" = set; then :
10682 enableval=$enable_secureplt;
10686 # Check whether --enable-cld was given.
10687 if test "${enable_cld+set}" = set; then :
10688 enableval=$enable_cld;
10689 else
10690 enable_cld=no
10694 # Windows32 Registry support for specifying GCC installation paths.
10695 # Check whether --enable-win32-registry was given.
10696 if test "${enable_win32_registry+set}" = set; then :
10697 enableval=$enable_win32_registry;
10701 case $host_os in
10702 win32 | pe | cygwin* | mingw32* | uwin*)
10703 if test "x$enable_win32_registry" != xno; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10705 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10706 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 ac_func_search_save_LIBS=$LIBS
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 char RegOpenKeyExA ();
10721 main ()
10723 return RegOpenKeyExA ();
10725 return 0;
10727 _ACEOF
10728 for ac_lib in '' advapi32; do
10729 if test -z "$ac_lib"; then
10730 ac_res="none required"
10731 else
10732 ac_res=-l$ac_lib
10733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 ac_cv_search_RegOpenKeyExA=$ac_res
10738 rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext
10740 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10741 break
10743 done
10744 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10746 else
10747 ac_cv_search_RegOpenKeyExA=no
10749 rm conftest.$ac_ext
10750 LIBS=$ac_func_search_save_LIBS
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10753 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10754 ac_res=$ac_cv_search_RegOpenKeyExA
10755 if test "$ac_res" != no; then :
10756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10758 else
10759 enable_win32_registry=no
10764 if test "x$enable_win32_registry" != xno; then
10766 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10769 if test "x$enable_win32_registry" != xyes \
10770 && test "x$enable_win32_registry" != x; then
10772 cat >>confdefs.h <<_ACEOF
10773 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10774 _ACEOF
10779 esac
10781 # Get an absolute path to the GCC top-level source directory
10782 holddir=`${PWDCMD-pwd}`
10783 cd $srcdir
10784 topdir=`${PWDCMD-pwd}`
10785 cd $holddir
10787 # Conditionalize the makefile for this host machine.
10788 xmake_file=
10789 for f in ${host_xmake_file}
10791 if test -f ${srcdir}/config/$f
10792 then
10793 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10795 done
10797 # Conditionalize the makefile for this target machine.
10798 tmake_file_=
10799 for f in ${tmake_file}
10801 if test -f ${srcdir}/config/$f
10802 then
10803 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10805 done
10806 tmake_file="${tmake_file_}"
10808 out_object_file=`basename $out_file .c`.o
10810 tm_file_list="options.h"
10811 tm_include_list="options.h"
10812 for f in $tm_file; do
10813 case $f in
10814 ./* )
10815 f=`echo $f | sed 's/^..//'`
10816 tm_file_list="${tm_file_list} $f"
10817 tm_include_list="${tm_include_list} $f"
10819 defaults.h )
10820 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10821 tm_include_list="${tm_include_list} $f"
10824 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10825 tm_include_list="${tm_include_list} config/$f"
10827 esac
10828 done
10830 tm_p_file_list=
10831 tm_p_include_list=
10832 for f in $tm_p_file; do
10833 case $f in
10834 tm-preds.h )
10835 tm_p_file_list="${tm_p_file_list} $f"
10836 tm_p_include_list="${tm_p_include_list} $f"
10839 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10840 tm_p_include_list="${tm_p_include_list} config/$f"
10841 esac
10842 done
10844 xm_file_list=
10845 xm_include_list=
10846 for f in $xm_file; do
10847 case $f in
10848 ansidecl.h )
10849 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10850 xm_include_list="${xm_include_list} $f"
10852 auto-host.h )
10853 xm_file_list="${xm_file_list} $f"
10854 xm_include_list="${xm_include_list} $f"
10857 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10858 xm_include_list="${xm_include_list} config/$f"
10860 esac
10861 done
10863 host_xm_file_list=
10864 host_xm_include_list=
10865 for f in $host_xm_file; do
10866 case $f in
10867 ansidecl.h )
10868 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10869 host_xm_include_list="${host_xm_include_list} $f"
10871 auto-host.h )
10872 host_xm_file_list="${host_xm_file_list} $f"
10873 host_xm_include_list="${host_xm_include_list} $f"
10876 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10877 host_xm_include_list="${host_xm_include_list} config/$f"
10879 esac
10880 done
10882 build_xm_file_list=
10883 for f in $build_xm_file; do
10884 case $f in
10885 ansidecl.h )
10886 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10887 build_xm_include_list="${build_xm_include_list} $f"
10889 auto-build.h | auto-host.h )
10890 build_xm_file_list="${build_xm_file_list} $f"
10891 build_xm_include_list="${build_xm_include_list} $f"
10894 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10895 build_xm_include_list="${build_xm_include_list} config/$f"
10897 esac
10898 done
10900 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10901 # cross-compiler which does not use the native headers and libraries.
10902 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10903 CROSS=
10904 ALL=all.internal
10905 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10907 if test "x$with_build_sysroot" != x; then
10908 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10909 else
10910 # This value is used, even on a native system, because
10911 # CROSS_SYSTEM_HEADER_DIR is just
10912 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10913 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10916 if test x$host != x$target
10917 then
10918 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10919 ALL=all.cross
10920 SYSTEM_HEADER_DIR=$build_system_header_dir
10921 case "$host","$target" in
10922 # Darwin crosses can use the host system's libraries and headers,
10923 # because of the fat library support. Of course, it must be the
10924 # same version of Darwin on both sides. Allow the user to
10925 # just say --target=foo-darwin without a version number to mean
10926 # "the version on this system".
10927 *-*-darwin*,*-*-darwin*)
10928 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10929 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10930 if test $hostos = $targetos -o $targetos = darwin ; then
10931 CROSS=
10932 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10933 with_headers=yes
10937 i?86-*-*,x86_64-*-* \
10938 | powerpc*-*-*,powerpc64*-*-*)
10939 CROSS="$CROSS -DNATIVE_CROSS" ;;
10940 esac
10941 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10942 SYSTEM_HEADER_DIR=$build_system_header_dir
10945 # If this is a cross-compiler that does not
10946 # have its own set of headers then define
10947 # inhibit_libc
10949 # If this is using newlib, without having the headers available now,
10950 # then define inhibit_libc in LIBGCC2_CFLAGS.
10951 # This prevents libgcc2 from containing any code which requires libc
10952 # support.
10953 : ${inhibit_libc=false}
10954 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10955 test x$with_newlib = xyes ; } &&
10956 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10957 inhibit_libc=true
10961 # When building gcc with a cross-compiler, we need to adjust things so
10962 # that the generator programs are still built with the native compiler.
10963 # Also, we cannot run fixincludes.
10965 # These are the normal (build=host) settings:
10966 CC_FOR_BUILD='$(CC)'
10967 BUILD_CFLAGS='$(ALL_CFLAGS)'
10968 BUILD_LDFLAGS='$(LDFLAGS)'
10969 STMP_FIXINC=stmp-fixinc
10971 # And these apply if build != host, or we are generating coverage data
10972 if test x$build != x$host || test "x$coverage_flags" != x
10973 then
10974 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10975 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10978 # Expand extra_headers to include complete path.
10979 # This substitutes for lots of t-* files.
10980 extra_headers_list=
10981 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10982 for file in ${extra_headers} ; do
10983 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10984 done
10986 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10987 if test x"$use_gcc_tgmath" = xyes
10988 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10991 # Define collect2 in Makefile.
10992 case $host_can_use_collect2 in
10993 no) collect2= ;;
10994 *) collect2='collect2$(exeext)' ;;
10995 esac
10998 # Add a definition of USE_COLLECT2 if system wants one.
10999 case $use_collect2 in
11000 no) use_collect2= ;;
11001 "") ;;
11003 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11004 xm_defines="${xm_defines} USE_COLLECT2"
11005 case $host_can_use_collect2 in
11007 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11009 esac
11011 esac
11013 # ---------------------------
11014 # Assembler & linker features
11015 # ---------------------------
11017 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11018 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11019 # However when ld-new is first executed from the build tree, libtool will
11020 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11021 # to the build tree. While doing this we need to use the previous-stage
11022 # linker, or we have an infinite loop. The presence of a shell script as
11023 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11024 # the gcc/collect-ld script. So we need to know how libtool works, or
11025 # exec-tool will fail.
11028 case `pwd` in
11029 *\ * | *\ *)
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11031 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11032 esac
11036 macro_version='2.2.7a'
11037 macro_revision='1.3134'
11051 ltmain="$ac_aux_dir/ltmain.sh"
11053 # Backslashify metacharacters that are still active within
11054 # double-quoted strings.
11055 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11057 # Same as above, but do not quote variable references.
11058 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11060 # Sed substitution to delay expansion of an escaped shell variable in a
11061 # double_quote_subst'ed string.
11062 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11064 # Sed substitution to delay expansion of an escaped single quote.
11065 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11067 # Sed substitution to avoid accidental globbing in evaled expressions
11068 no_glob_subst='s/\*/\\\*/g'
11070 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11071 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11072 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11075 $as_echo_n "checking how to print strings... " >&6; }
11076 # Test print first, because it will be a builtin if present.
11077 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11078 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11079 ECHO='print -r --'
11080 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11081 ECHO='printf %s\n'
11082 else
11083 # Use this function as a fallback that always works.
11084 func_fallback_echo ()
11086 eval 'cat <<_LTECHO_EOF
11088 _LTECHO_EOF'
11090 ECHO='func_fallback_echo'
11093 # func_echo_all arg...
11094 # Invoke $ECHO with all args, space-separated.
11095 func_echo_all ()
11097 $ECHO ""
11100 case "$ECHO" in
11101 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11102 $as_echo "printf" >&6; } ;;
11103 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11104 $as_echo "print -r" >&6; } ;;
11105 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11106 $as_echo "cat" >&6; } ;;
11107 esac
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11123 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11124 if test "${ac_cv_path_SED+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11128 for ac_i in 1 2 3 4 5 6 7; do
11129 ac_script="$ac_script$as_nl$ac_script"
11130 done
11131 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11132 { ac_script=; unset ac_script;}
11133 if test -z "$SED"; then
11134 ac_path_SED_found=false
11135 # Loop through the user's path and test for each of PROGNAME-LIST
11136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137 for as_dir in $PATH
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_prog in sed gsed; do
11142 for ac_exec_ext in '' $ac_executable_extensions; do
11143 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11144 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11145 # Check for GNU ac_path_SED and select it if it is found.
11146 # Check for GNU $ac_path_SED
11147 case `"$ac_path_SED" --version 2>&1` in
11148 *GNU*)
11149 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11151 ac_count=0
11152 $as_echo_n 0123456789 >"conftest.in"
11153 while :
11155 cat "conftest.in" "conftest.in" >"conftest.tmp"
11156 mv "conftest.tmp" "conftest.in"
11157 cp "conftest.in" "conftest.nl"
11158 $as_echo '' >> "conftest.nl"
11159 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11161 as_fn_arith $ac_count + 1 && ac_count=$as_val
11162 if test $ac_count -gt ${ac_path_SED_max-0}; then
11163 # Best one so far, save it but keep looking for a better one
11164 ac_cv_path_SED="$ac_path_SED"
11165 ac_path_SED_max=$ac_count
11167 # 10*(2^10) chars as input seems more than enough
11168 test $ac_count -gt 10 && break
11169 done
11170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11171 esac
11173 $ac_path_SED_found && break 3
11174 done
11175 done
11176 done
11177 IFS=$as_save_IFS
11178 if test -z "$ac_cv_path_SED"; then
11179 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11181 else
11182 ac_cv_path_SED=$SED
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11187 $as_echo "$ac_cv_path_SED" >&6; }
11188 SED="$ac_cv_path_SED"
11189 rm -f conftest.sed
11191 test -z "$SED" && SED=sed
11192 Xsed="$SED -e 1s/^X//"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11205 $as_echo_n "checking for fgrep... " >&6; }
11206 if test "${ac_cv_path_FGREP+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11210 then ac_cv_path_FGREP="$GREP -F"
11211 else
11212 if test -z "$FGREP"; then
11213 ac_path_FGREP_found=false
11214 # Loop through the user's path and test for each of PROGNAME-LIST
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_prog in fgrep; do
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11223 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11224 # Check for GNU ac_path_FGREP and select it if it is found.
11225 # Check for GNU $ac_path_FGREP
11226 case `"$ac_path_FGREP" --version 2>&1` in
11227 *GNU*)
11228 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11230 ac_count=0
11231 $as_echo_n 0123456789 >"conftest.in"
11232 while :
11234 cat "conftest.in" "conftest.in" >"conftest.tmp"
11235 mv "conftest.tmp" "conftest.in"
11236 cp "conftest.in" "conftest.nl"
11237 $as_echo 'FGREP' >> "conftest.nl"
11238 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11240 as_fn_arith $ac_count + 1 && ac_count=$as_val
11241 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11242 # Best one so far, save it but keep looking for a better one
11243 ac_cv_path_FGREP="$ac_path_FGREP"
11244 ac_path_FGREP_max=$ac_count
11246 # 10*(2^10) chars as input seems more than enough
11247 test $ac_count -gt 10 && break
11248 done
11249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11250 esac
11252 $ac_path_FGREP_found && break 3
11253 done
11254 done
11255 done
11256 IFS=$as_save_IFS
11257 if test -z "$ac_cv_path_FGREP"; then
11258 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11260 else
11261 ac_cv_path_FGREP=$FGREP
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11267 $as_echo "$ac_cv_path_FGREP" >&6; }
11268 FGREP="$ac_cv_path_FGREP"
11271 test -z "$GREP" && GREP=grep
11291 # Check whether --with-gnu-ld was given.
11292 if test "${with_gnu_ld+set}" = set; then :
11293 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11294 else
11295 with_gnu_ld=no
11298 ac_prog=ld
11299 if test "$GCC" = yes; then
11300 # Check if gcc -print-prog-name=ld gives a path.
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11302 $as_echo_n "checking for ld used by $CC... " >&6; }
11303 case $host in
11304 *-*-mingw*)
11305 # gcc leaves a trailing carriage return which upsets mingw
11306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11309 esac
11310 case $ac_prog in
11311 # Accept absolute paths.
11312 [\\/]* | ?:[\\/]*)
11313 re_direlt='/[^/][^/]*/\.\./'
11314 # Canonicalize the pathname of ld
11315 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11316 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11317 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11318 done
11319 test -z "$LD" && LD="$ac_prog"
11322 # If it fails, then pretend we aren't using GCC.
11323 ac_prog=ld
11326 # If it is relative, then search for the first ld in PATH.
11327 with_gnu_ld=unknown
11329 esac
11330 elif test "$with_gnu_ld" = yes; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11332 $as_echo_n "checking for GNU ld... " >&6; }
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11335 $as_echo_n "checking for non-GNU ld... " >&6; }
11337 if test "${lt_cv_path_LD+set}" = set; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 if test -z "$LD"; then
11341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11342 for ac_dir in $PATH; do
11343 IFS="$lt_save_ifs"
11344 test -z "$ac_dir" && ac_dir=.
11345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11346 lt_cv_path_LD="$ac_dir/$ac_prog"
11347 # Check to see if the program is GNU ld. I'd rather use --version,
11348 # but apparently some variants of GNU ld only accept -v.
11349 # Break only if it was the GNU/non-GNU ld that we prefer.
11350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11351 *GNU* | *'with BFD'*)
11352 test "$with_gnu_ld" != no && break
11355 test "$with_gnu_ld" != yes && break
11357 esac
11359 done
11360 IFS="$lt_save_ifs"
11361 else
11362 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11366 LD="$lt_cv_path_LD"
11367 if test -n "$LD"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11369 $as_echo "$LD" >&6; }
11370 else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11374 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11376 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11377 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11381 case `$LD -v 2>&1 </dev/null` in
11382 *GNU* | *'with BFD'*)
11383 lt_cv_prog_gnu_ld=yes
11386 lt_cv_prog_gnu_ld=no
11388 esac
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11391 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11392 with_gnu_ld=$lt_cv_prog_gnu_ld
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11403 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11404 if test "${lt_cv_path_NM+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 if test -n "$NM"; then
11408 # Let the user override the test.
11409 lt_cv_path_NM="$NM"
11410 else
11411 lt_nm_to_check="${ac_tool_prefix}nm"
11412 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11413 lt_nm_to_check="$lt_nm_to_check nm"
11415 for lt_tmp_nm in $lt_nm_to_check; do
11416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11417 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11418 IFS="$lt_save_ifs"
11419 test -z "$ac_dir" && ac_dir=.
11420 tmp_nm="$ac_dir/$lt_tmp_nm"
11421 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11422 # Check to see if the nm accepts a BSD-compat flag.
11423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11424 # nm: unknown option "B" ignored
11425 # Tru64's nm complains that /dev/null is an invalid object file
11426 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11427 */dev/null* | *'Invalid file or object type'*)
11428 lt_cv_path_NM="$tmp_nm -B"
11429 break
11432 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11433 */dev/null*)
11434 lt_cv_path_NM="$tmp_nm -p"
11435 break
11438 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11439 continue # so that we can try to find one that supports BSD flags
11441 esac
11443 esac
11445 done
11446 IFS="$lt_save_ifs"
11447 done
11448 : ${lt_cv_path_NM=no}
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11452 $as_echo "$lt_cv_path_NM" >&6; }
11453 if test "$lt_cv_path_NM" != "no"; then
11454 NM="$lt_cv_path_NM"
11455 else
11456 # Didn't find any BSD compatible name lister, look for dumpbin.
11457 if test -n "$DUMPBIN"; then :
11458 # Let the user override the test.
11459 else
11460 if test -n "$ac_tool_prefix"; then
11461 for ac_prog in dumpbin "link -dump"
11463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466 $as_echo_n "checking for $ac_word... " >&6; }
11467 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 if test -n "$DUMPBIN"; then
11471 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11472 else
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11480 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11484 done
11485 done
11486 IFS=$as_save_IFS
11490 DUMPBIN=$ac_cv_prog_DUMPBIN
11491 if test -n "$DUMPBIN"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11493 $as_echo "$DUMPBIN" >&6; }
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11500 test -n "$DUMPBIN" && break
11501 done
11503 if test -z "$DUMPBIN"; then
11504 ac_ct_DUMPBIN=$DUMPBIN
11505 for ac_prog in dumpbin "link -dump"
11507 # Extract the first word of "$ac_prog", so it can be a program name with args.
11508 set dummy $ac_prog; ac_word=$2
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510 $as_echo_n "checking for $ac_word... " >&6; }
11511 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 if test -n "$ac_ct_DUMPBIN"; then
11515 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11516 else
11517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11520 IFS=$as_save_IFS
11521 test -z "$as_dir" && as_dir=.
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11524 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11526 break 2
11528 done
11529 done
11530 IFS=$as_save_IFS
11534 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11535 if test -n "$ac_ct_DUMPBIN"; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11537 $as_echo "$ac_ct_DUMPBIN" >&6; }
11538 else
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540 $as_echo "no" >&6; }
11544 test -n "$ac_ct_DUMPBIN" && break
11545 done
11547 if test "x$ac_ct_DUMPBIN" = x; then
11548 DUMPBIN=":"
11549 else
11550 case $cross_compiling:$ac_tool_warned in
11551 yes:)
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11554 ac_tool_warned=yes ;;
11555 esac
11556 DUMPBIN=$ac_ct_DUMPBIN
11560 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11561 *COFF*)
11562 DUMPBIN="$DUMPBIN -symbols"
11565 DUMPBIN=:
11567 esac
11570 if test "$DUMPBIN" != ":"; then
11571 NM="$DUMPBIN"
11574 test -z "$NM" && NM=nm
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11582 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11583 if test "${lt_cv_nm_interface+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 lt_cv_nm_interface="BSD nm"
11587 echo "int some_variable = 0;" > conftest.$ac_ext
11588 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11589 (eval "$ac_compile" 2>conftest.err)
11590 cat conftest.err >&5
11591 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11592 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11593 cat conftest.err >&5
11594 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11595 cat conftest.out >&5
11596 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11597 lt_cv_nm_interface="MS dumpbin"
11599 rm -f conftest*
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11602 $as_echo "$lt_cv_nm_interface" >&6; }
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11605 $as_echo_n "checking whether ln -s works... " >&6; }
11606 LN_S=$as_ln_s
11607 if test "$LN_S" = "ln -s"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; }
11610 else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11612 $as_echo "no, using $LN_S" >&6; }
11615 # find the maximum length of command line arguments
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11617 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11618 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11622 teststring="ABCD"
11624 case $build_os in
11625 msdosdjgpp*)
11626 # On DJGPP, this test can blow up pretty badly due to problems in libc
11627 # (any single argument exceeding 2000 bytes causes a buffer overrun
11628 # during glob expansion). Even if it were fixed, the result of this
11629 # check would be larger than it should be.
11630 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11633 gnu*)
11634 # Under GNU Hurd, this test is not required because there is
11635 # no limit to the length of command line arguments.
11636 # Libtool will interpret -1 as no limit whatsoever
11637 lt_cv_sys_max_cmd_len=-1;
11640 cygwin* | mingw* | cegcc*)
11641 # On Win9x/ME, this test blows up -- it succeeds, but takes
11642 # about 5 minutes as the teststring grows exponentially.
11643 # Worse, since 9x/ME are not pre-emptively multitasking,
11644 # you end up with a "frozen" computer, even though with patience
11645 # the test eventually succeeds (with a max line length of 256k).
11646 # Instead, let's just punt: use the minimum linelength reported by
11647 # all of the supported platforms: 8192 (on NT/2K/XP).
11648 lt_cv_sys_max_cmd_len=8192;
11651 mint*)
11652 # On MiNT this can take a long time and run out of memory.
11653 lt_cv_sys_max_cmd_len=8192;
11656 amigaos*)
11657 # On AmigaOS with pdksh, this test takes hours, literally.
11658 # So we just punt and use a minimum line length of 8192.
11659 lt_cv_sys_max_cmd_len=8192;
11662 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11663 # This has been around since 386BSD, at least. Likely further.
11664 if test -x /sbin/sysctl; then
11665 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11666 elif test -x /usr/sbin/sysctl; then
11667 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11668 else
11669 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11671 # And add a safety zone
11672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11676 interix*)
11677 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11678 lt_cv_sys_max_cmd_len=196608
11681 osf*)
11682 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11683 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11684 # nice to cause kernel panics so lets avoid the loop below.
11685 # First set a reasonable default.
11686 lt_cv_sys_max_cmd_len=16384
11688 if test -x /sbin/sysconfig; then
11689 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11690 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11691 esac
11694 sco3.2v5*)
11695 lt_cv_sys_max_cmd_len=102400
11697 sysv5* | sco5v6* | sysv4.2uw2*)
11698 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11699 if test -n "$kargmax"; then
11700 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11701 else
11702 lt_cv_sys_max_cmd_len=32768
11706 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11707 if test -n "$lt_cv_sys_max_cmd_len"; then
11708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11710 else
11711 # Make teststring a little bigger before we do anything with it.
11712 # a 1K string should be a reasonable start.
11713 for i in 1 2 3 4 5 6 7 8 ; do
11714 teststring=$teststring$teststring
11715 done
11716 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11717 # If test is not a shell built-in, we'll probably end up computing a
11718 # maximum length that is only half of the actual maximum length, but
11719 # we can't tell.
11720 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11721 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11722 test $i != 17 # 1/2 MB should be enough
11724 i=`expr $i + 1`
11725 teststring=$teststring$teststring
11726 done
11727 # Only check the string length outside the loop.
11728 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11729 teststring=
11730 # Add a significant safety factor because C++ compilers can tack on
11731 # massive amounts of additional arguments before passing them to the
11732 # linker. It appears as though 1/2 is a usable value.
11733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11736 esac
11740 if test -n $lt_cv_sys_max_cmd_len ; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11742 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11745 $as_echo "none" >&6; }
11747 max_cmd_len=$lt_cv_sys_max_cmd_len
11754 : ${CP="cp -f"}
11755 : ${MV="mv -f"}
11756 : ${RM="rm -f"}
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11759 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11760 # Try some XSI features
11761 xsi_shell=no
11762 ( _lt_dummy="a/b/c"
11763 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11764 = c,a/b,, \
11765 && eval 'test $(( 1 + 1 )) -eq 2 \
11766 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11767 && xsi_shell=yes
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11769 $as_echo "$xsi_shell" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11773 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11774 lt_shell_append=no
11775 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11776 >/dev/null 2>&1 \
11777 && lt_shell_append=yes
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11779 $as_echo "$lt_shell_append" >&6; }
11782 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11783 lt_unset=unset
11784 else
11785 lt_unset=false
11792 # test EBCDIC or ASCII
11793 case `echo X|tr X '\101'` in
11794 A) # ASCII based system
11795 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11796 lt_SP2NL='tr \040 \012'
11797 lt_NL2SP='tr \015\012 \040\040'
11799 *) # EBCDIC based system
11800 lt_SP2NL='tr \100 \n'
11801 lt_NL2SP='tr \r\n \100\100'
11803 esac
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11814 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11815 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 lt_cv_ld_reload_flag='-r'
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11821 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11822 reload_flag=$lt_cv_ld_reload_flag
11823 case $reload_flag in
11824 "" | " "*) ;;
11825 *) reload_flag=" $reload_flag" ;;
11826 esac
11827 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11828 case $host_os in
11829 darwin*)
11830 if test "$GCC" = yes; then
11831 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11832 else
11833 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11836 esac
11846 if test -n "$ac_tool_prefix"; then
11847 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11848 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850 $as_echo_n "checking for $ac_word... " >&6; }
11851 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 if test -n "$OBJDUMP"; then
11855 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11856 else
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11864 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 break 2
11868 done
11869 done
11870 IFS=$as_save_IFS
11874 OBJDUMP=$ac_cv_prog_OBJDUMP
11875 if test -n "$OBJDUMP"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11877 $as_echo "$OBJDUMP" >&6; }
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11885 if test -z "$ac_cv_prog_OBJDUMP"; then
11886 ac_ct_OBJDUMP=$OBJDUMP
11887 # Extract the first word of "objdump", so it can be a program name with args.
11888 set dummy objdump; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 if test -n "$ac_ct_OBJDUMP"; then
11895 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11896 else
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11904 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11908 done
11909 done
11910 IFS=$as_save_IFS
11914 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11915 if test -n "$ac_ct_OBJDUMP"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11917 $as_echo "$ac_ct_OBJDUMP" >&6; }
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11923 if test "x$ac_ct_OBJDUMP" = x; then
11924 OBJDUMP="false"
11925 else
11926 case $cross_compiling:$ac_tool_warned in
11927 yes:)
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11930 ac_tool_warned=yes ;;
11931 esac
11932 OBJDUMP=$ac_ct_OBJDUMP
11934 else
11935 OBJDUMP="$ac_cv_prog_OBJDUMP"
11938 test -z "$OBJDUMP" && OBJDUMP=objdump
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11949 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11950 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 lt_cv_file_magic_cmd='$MAGIC_CMD'
11954 lt_cv_file_magic_test_file=
11955 lt_cv_deplibs_check_method='unknown'
11956 # Need to set the preceding variable on all platforms that support
11957 # interlibrary dependencies.
11958 # 'none' -- dependencies not supported.
11959 # `unknown' -- same as none, but documents that we really don't know.
11960 # 'pass_all' -- all dependencies passed with no checks.
11961 # 'test_compile' -- check by making test program.
11962 # 'file_magic [[regex]]' -- check by looking for files in library path
11963 # which responds to the $file_magic_cmd with a given extended regex.
11964 # If you have `file' or equivalent on your system and you're not sure
11965 # whether `pass_all' will *always* work, you probably want this one.
11967 case $host_os in
11968 aix[4-9]*)
11969 lt_cv_deplibs_check_method=pass_all
11972 beos*)
11973 lt_cv_deplibs_check_method=pass_all
11976 bsdi[45]*)
11977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11978 lt_cv_file_magic_cmd='/usr/bin/file -L'
11979 lt_cv_file_magic_test_file=/shlib/libc.so
11982 cygwin*)
11983 # func_win32_libid is a shell function defined in ltmain.sh
11984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11985 lt_cv_file_magic_cmd='func_win32_libid'
11988 mingw* | pw32*)
11989 # Base MSYS/MinGW do not provide the 'file' command needed by
11990 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11991 # unless we find 'file', for example because we are cross-compiling.
11992 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11993 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11995 lt_cv_file_magic_cmd='func_win32_libid'
11996 else
11997 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11998 lt_cv_file_magic_cmd='$OBJDUMP -f'
12002 cegcc*)
12003 # use the weaker test based on 'objdump'. See mingw*.
12004 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12005 lt_cv_file_magic_cmd='$OBJDUMP -f'
12008 darwin* | rhapsody*)
12009 lt_cv_deplibs_check_method=pass_all
12012 freebsd* | dragonfly*)
12013 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12014 case $host_cpu in
12015 i*86 )
12016 # Not sure whether the presence of OpenBSD here was a mistake.
12017 # Let's accept both of them until this is cleared up.
12018 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12019 lt_cv_file_magic_cmd=/usr/bin/file
12020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12022 esac
12023 else
12024 lt_cv_deplibs_check_method=pass_all
12028 gnu*)
12029 lt_cv_deplibs_check_method=pass_all
12032 haiku*)
12033 lt_cv_deplibs_check_method=pass_all
12036 hpux10.20* | hpux11*)
12037 lt_cv_file_magic_cmd=/usr/bin/file
12038 case $host_cpu in
12039 ia64*)
12040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12041 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12043 hppa*64*)
12044 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]'
12045 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12049 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12051 esac
12054 interix[3-9]*)
12055 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12059 irix5* | irix6* | nonstopux*)
12060 case $LD in
12061 *-32|*"-32 ") libmagic=32-bit;;
12062 *-n32|*"-n32 ") libmagic=N32;;
12063 *-64|*"-64 ") libmagic=64-bit;;
12064 *) libmagic=never-match;;
12065 esac
12066 lt_cv_deplibs_check_method=pass_all
12069 # This must be Linux ELF.
12070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12071 lt_cv_deplibs_check_method=pass_all
12074 netbsd*)
12075 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12077 else
12078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12082 newos6*)
12083 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12084 lt_cv_file_magic_cmd=/usr/bin/file
12085 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12088 *nto* | *qnx*)
12089 lt_cv_deplibs_check_method=pass_all
12092 openbsd*)
12093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12095 else
12096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12100 osf3* | osf4* | osf5*)
12101 lt_cv_deplibs_check_method=pass_all
12104 rdos*)
12105 lt_cv_deplibs_check_method=pass_all
12108 solaris*)
12109 lt_cv_deplibs_check_method=pass_all
12112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12113 lt_cv_deplibs_check_method=pass_all
12116 sysv4 | sysv4.3*)
12117 case $host_vendor in
12118 motorola)
12119 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]'
12120 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12122 ncr)
12123 lt_cv_deplibs_check_method=pass_all
12125 sequent)
12126 lt_cv_file_magic_cmd='/bin/file'
12127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12129 sni)
12130 lt_cv_file_magic_cmd='/bin/file'
12131 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12132 lt_cv_file_magic_test_file=/lib/libc.so
12134 siemens)
12135 lt_cv_deplibs_check_method=pass_all
12138 lt_cv_deplibs_check_method=pass_all
12140 esac
12143 tpf*)
12144 lt_cv_deplibs_check_method=pass_all
12146 esac
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12150 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12151 file_magic_cmd=$lt_cv_file_magic_cmd
12152 deplibs_check_method=$lt_cv_deplibs_check_method
12153 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12166 if test -n "$ac_tool_prefix"; then
12167 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12168 set dummy ${ac_tool_prefix}ar; ac_word=$2
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170 $as_echo_n "checking for $ac_word... " >&6; }
12171 if test "${ac_cv_prog_AR+set}" = set; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 if test -n "$AR"; then
12175 ac_cv_prog_AR="$AR" # Let the user override the test.
12176 else
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12184 ac_cv_prog_AR="${ac_tool_prefix}ar"
12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 break 2
12188 done
12189 done
12190 IFS=$as_save_IFS
12194 AR=$ac_cv_prog_AR
12195 if test -n "$AR"; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12197 $as_echo "$AR" >&6; }
12198 else
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12205 if test -z "$ac_cv_prog_AR"; then
12206 ac_ct_AR=$AR
12207 # Extract the first word of "ar", so it can be a program name with args.
12208 set dummy ar; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 if test -n "$ac_ct_AR"; then
12215 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12216 else
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH
12220 IFS=$as_save_IFS
12221 test -z "$as_dir" && as_dir=.
12222 for ac_exec_ext in '' $ac_executable_extensions; do
12223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12224 ac_cv_prog_ac_ct_AR="ar"
12225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12226 break 2
12228 done
12229 done
12230 IFS=$as_save_IFS
12234 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12235 if test -n "$ac_ct_AR"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12237 $as_echo "$ac_ct_AR" >&6; }
12238 else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12243 if test "x$ac_ct_AR" = x; then
12244 AR="false"
12245 else
12246 case $cross_compiling:$ac_tool_warned in
12247 yes:)
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12250 ac_tool_warned=yes ;;
12251 esac
12252 AR=$ac_ct_AR
12254 else
12255 AR="$ac_cv_prog_AR"
12258 test -z "$AR" && AR=ar
12259 test -z "$AR_FLAGS" && AR_FLAGS=cru
12271 if test -n "$ac_tool_prefix"; then
12272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12273 set dummy ${ac_tool_prefix}strip; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if test "${ac_cv_prog_STRIP+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 if test -n "$STRIP"; then
12280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12281 else
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12285 IFS=$as_save_IFS
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12289 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291 break 2
12293 done
12294 done
12295 IFS=$as_save_IFS
12299 STRIP=$ac_cv_prog_STRIP
12300 if test -n "$STRIP"; then
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12302 $as_echo "$STRIP" >&6; }
12303 else
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305 $as_echo "no" >&6; }
12310 if test -z "$ac_cv_prog_STRIP"; then
12311 ac_ct_STRIP=$STRIP
12312 # Extract the first word of "strip", so it can be a program name with args.
12313 set dummy strip; ac_word=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315 $as_echo_n "checking for $ac_word... " >&6; }
12316 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 if test -n "$ac_ct_STRIP"; then
12320 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12321 else
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12329 ac_cv_prog_ac_ct_STRIP="strip"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12333 done
12334 done
12335 IFS=$as_save_IFS
12339 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12340 if test -n "$ac_ct_STRIP"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12342 $as_echo "$ac_ct_STRIP" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12348 if test "x$ac_ct_STRIP" = x; then
12349 STRIP=":"
12350 else
12351 case $cross_compiling:$ac_tool_warned in
12352 yes:)
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12355 ac_tool_warned=yes ;;
12356 esac
12357 STRIP=$ac_ct_STRIP
12359 else
12360 STRIP="$ac_cv_prog_STRIP"
12363 test -z "$STRIP" && STRIP=:
12370 if test -n "$ac_tool_prefix"; then
12371 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12372 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 if test -n "$RANLIB"; then
12379 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12388 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 break 2
12392 done
12393 done
12394 IFS=$as_save_IFS
12398 RANLIB=$ac_cv_prog_RANLIB
12399 if test -n "$RANLIB"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12401 $as_echo "$RANLIB" >&6; }
12402 else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12409 if test -z "$ac_cv_prog_RANLIB"; then
12410 ac_ct_RANLIB=$RANLIB
12411 # Extract the first word of "ranlib", so it can be a program name with args.
12412 set dummy ranlib; ac_word=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 if test -n "$ac_ct_RANLIB"; then
12419 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12420 else
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12428 ac_cv_prog_ac_ct_RANLIB="ranlib"
12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 break 2
12432 done
12433 done
12434 IFS=$as_save_IFS
12438 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12439 if test -n "$ac_ct_RANLIB"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12441 $as_echo "$ac_ct_RANLIB" >&6; }
12442 else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12447 if test "x$ac_ct_RANLIB" = x; then
12448 RANLIB=":"
12449 else
12450 case $cross_compiling:$ac_tool_warned in
12451 yes:)
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12454 ac_tool_warned=yes ;;
12455 esac
12456 RANLIB=$ac_ct_RANLIB
12458 else
12459 RANLIB="$ac_cv_prog_RANLIB"
12462 test -z "$RANLIB" && RANLIB=:
12469 # Determine commands to create old-style static archives.
12470 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12471 old_postinstall_cmds='chmod 644 $oldlib'
12472 old_postuninstall_cmds=
12474 if test -n "$RANLIB"; then
12475 case $host_os in
12476 openbsd*)
12477 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12480 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12482 esac
12483 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12486 case $host_os in
12487 darwin*)
12488 lock_old_archive_extraction=yes ;;
12490 lock_old_archive_extraction=no ;;
12491 esac
12531 # If no C compiler was specified, use CC.
12532 LTCC=${LTCC-"$CC"}
12534 # If no C compiler flags were specified, use CFLAGS.
12535 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12537 # Allow CC to be a program name with arguments.
12538 compiler=$CC
12541 # Check for command to grab the raw symbol name followed by C symbol from nm.
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12543 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12544 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12548 # These are sane defaults that work on at least a few old systems.
12549 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12551 # Character class describing NM global symbol codes.
12552 symcode='[BCDEGRST]'
12554 # Regexp to match symbols that can be accessed directly from C.
12555 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12557 # Define system-specific variables.
12558 case $host_os in
12559 aix*)
12560 symcode='[BCDT]'
12562 cygwin* | mingw* | pw32* | cegcc*)
12563 symcode='[ABCDGISTW]'
12565 hpux*)
12566 if test "$host_cpu" = ia64; then
12567 symcode='[ABCDEGRST]'
12570 irix* | nonstopux*)
12571 symcode='[BCDEGRST]'
12573 osf*)
12574 symcode='[BCDEGQRST]'
12576 solaris*)
12577 symcode='[BDRT]'
12579 sco3.2v5*)
12580 symcode='[DT]'
12582 sysv4.2uw2*)
12583 symcode='[DT]'
12585 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12586 symcode='[ABDT]'
12588 sysv4)
12589 symcode='[DFNSTU]'
12591 esac
12593 # If we're using GNU nm, then use its standard symbol codes.
12594 case `$NM -V 2>&1` in
12595 *GNU* | *'with BFD'*)
12596 symcode='[ABCDGIRSTW]' ;;
12597 esac
12599 # Transform an extracted symbol line into a proper C declaration.
12600 # Some systems (esp. on ia64) link data and code symbols differently,
12601 # so use this general approach.
12602 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12604 # Transform an extracted symbol line into symbol name and symbol address
12605 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12606 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'"
12608 # Handle CRLF in mingw tool chain
12609 opt_cr=
12610 case $build_os in
12611 mingw*)
12612 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12614 esac
12616 # Try without a prefix underscore, then with it.
12617 for ac_symprfx in "" "_"; do
12619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12620 symxfrm="\\1 $ac_symprfx\\2 \\2"
12622 # Write the raw and C identifiers.
12623 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12624 # Fake it for dumpbin and say T for any non-static function
12625 # and D for any global variable.
12626 # Also find C++ and __fastcall symbols from MSVC++,
12627 # which start with @ or ?.
12628 lt_cv_sys_global_symbol_pipe="$AWK '"\
12629 " {last_section=section; section=\$ 3};"\
12630 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12631 " \$ 0!~/External *\|/{next};"\
12632 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12633 " {if(hide[section]) next};"\
12634 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12635 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12636 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12637 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12638 " ' prfx=^$ac_symprfx"
12639 else
12640 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12643 # Check to see that the pipe works correctly.
12644 pipe_works=no
12646 rm -f conftest*
12647 cat > conftest.$ac_ext <<_LT_EOF
12648 #ifdef __cplusplus
12649 extern "C" {
12650 #endif
12651 char nm_test_var;
12652 void nm_test_func(void);
12653 void nm_test_func(void){}
12654 #ifdef __cplusplus
12656 #endif
12657 int main(){nm_test_var='a';nm_test_func();return(0);}
12658 _LT_EOF
12660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12661 (eval $ac_compile) 2>&5
12662 ac_status=$?
12663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12664 test $ac_status = 0; }; then
12665 # Now try to grab the symbols.
12666 nlist=conftest.nm
12667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12668 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12669 ac_status=$?
12670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12671 test $ac_status = 0; } && test -s "$nlist"; then
12672 # Try sorting and uniquifying the output.
12673 if sort "$nlist" | uniq > "$nlist"T; then
12674 mv -f "$nlist"T "$nlist"
12675 else
12676 rm -f "$nlist"T
12679 # Make sure that we snagged all the symbols we need.
12680 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12681 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12682 cat <<_LT_EOF > conftest.$ac_ext
12683 #ifdef __cplusplus
12684 extern "C" {
12685 #endif
12687 _LT_EOF
12688 # Now generate the symbol file.
12689 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12691 cat <<_LT_EOF >> conftest.$ac_ext
12693 /* The mapping between symbol names and symbols. */
12694 const struct {
12695 const char *name;
12696 void *address;
12698 lt__PROGRAM__LTX_preloaded_symbols[] =
12700 { "@PROGRAM@", (void *) 0 },
12701 _LT_EOF
12702 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12703 cat <<\_LT_EOF >> conftest.$ac_ext
12704 {0, (void *) 0}
12707 /* This works around a problem in FreeBSD linker */
12708 #ifdef FREEBSD_WORKAROUND
12709 static const void *lt_preloaded_setup() {
12710 return lt__PROGRAM__LTX_preloaded_symbols;
12712 #endif
12714 #ifdef __cplusplus
12716 #endif
12717 _LT_EOF
12718 # Now try linking the two files.
12719 mv conftest.$ac_objext conftstm.$ac_objext
12720 lt_save_LIBS="$LIBS"
12721 lt_save_CFLAGS="$CFLAGS"
12722 LIBS="conftstm.$ac_objext"
12723 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12725 (eval $ac_link) 2>&5
12726 ac_status=$?
12727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12729 pipe_works=yes
12731 LIBS="$lt_save_LIBS"
12732 CFLAGS="$lt_save_CFLAGS"
12733 else
12734 echo "cannot find nm_test_func in $nlist" >&5
12736 else
12737 echo "cannot find nm_test_var in $nlist" >&5
12739 else
12740 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12742 else
12743 echo "$progname: failed program was:" >&5
12744 cat conftest.$ac_ext >&5
12746 rm -rf conftest* conftst*
12748 # Do not use the global_symbol_pipe unless it works.
12749 if test "$pipe_works" = yes; then
12750 break
12751 else
12752 lt_cv_sys_global_symbol_pipe=
12754 done
12758 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12759 lt_cv_sys_global_symbol_to_cdecl=
12761 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12763 $as_echo "failed" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12766 $as_echo "ok" >&6; }
12790 # Check whether --enable-libtool-lock was given.
12791 if test "${enable_libtool_lock+set}" = set; then :
12792 enableval=$enable_libtool_lock;
12795 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12797 # Some flags need to be propagated to the compiler or linker for good
12798 # libtool support.
12799 case $host in
12800 ia64-*-hpux*)
12801 # Find out which ABI we are using.
12802 echo 'int i;' > conftest.$ac_ext
12803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12804 (eval $ac_compile) 2>&5
12805 ac_status=$?
12806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12807 test $ac_status = 0; }; then
12808 case `/usr/bin/file conftest.$ac_objext` in
12809 *ELF-32*)
12810 HPUX_IA64_MODE="32"
12812 *ELF-64*)
12813 HPUX_IA64_MODE="64"
12815 esac
12817 rm -rf conftest*
12819 *-*-irix6*)
12820 # Find out which ABI we are using.
12821 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12823 (eval $ac_compile) 2>&5
12824 ac_status=$?
12825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12826 test $ac_status = 0; }; then
12827 if test "$lt_cv_prog_gnu_ld" = yes; then
12828 case `/usr/bin/file conftest.$ac_objext` in
12829 *32-bit*)
12830 LD="${LD-ld} -melf32bsmip"
12832 *N32*)
12833 LD="${LD-ld} -melf32bmipn32"
12835 *64-bit*)
12836 LD="${LD-ld} -melf64bmip"
12838 esac
12839 else
12840 case `/usr/bin/file conftest.$ac_objext` in
12841 *32-bit*)
12842 LD="${LD-ld} -32"
12844 *N32*)
12845 LD="${LD-ld} -n32"
12847 *64-bit*)
12848 LD="${LD-ld} -64"
12850 esac
12853 rm -rf conftest*
12856 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12857 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12858 # Find out which ABI we are using.
12859 echo 'int i;' > conftest.$ac_ext
12860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12861 (eval $ac_compile) 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; }; then
12865 case `/usr/bin/file conftest.o` in
12866 *32-bit*)
12867 case $host in
12868 x86_64-*kfreebsd*-gnu)
12869 LD="${LD-ld} -m elf_i386_fbsd"
12871 x86_64-*linux*)
12872 LD="${LD-ld} -m elf_i386"
12874 ppc64-*linux*|powerpc64-*linux*)
12875 LD="${LD-ld} -m elf32ppclinux"
12877 s390x-*linux*)
12878 LD="${LD-ld} -m elf_s390"
12880 sparc64-*linux*)
12881 LD="${LD-ld} -m elf32_sparc"
12883 esac
12885 *64-bit*)
12886 case $host in
12887 x86_64-*kfreebsd*-gnu)
12888 LD="${LD-ld} -m elf_x86_64_fbsd"
12890 x86_64-*linux*)
12891 LD="${LD-ld} -m elf_x86_64"
12893 ppc*-*linux*|powerpc*-*linux*)
12894 LD="${LD-ld} -m elf64ppc"
12896 s390*-*linux*|s390*-*tpf*)
12897 LD="${LD-ld} -m elf64_s390"
12899 sparc*-*linux*)
12900 LD="${LD-ld} -m elf64_sparc"
12902 esac
12904 esac
12906 rm -rf conftest*
12909 *-*-sco3.2v5*)
12910 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12911 SAVE_CFLAGS="$CFLAGS"
12912 CFLAGS="$CFLAGS -belf"
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12914 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12915 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 ac_ext=c
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12928 main ()
12932 return 0;
12934 _ACEOF
12935 if ac_fn_c_try_link "$LINENO"; then :
12936 lt_cv_cc_needs_belf=yes
12937 else
12938 lt_cv_cc_needs_belf=no
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
12942 ac_ext=c
12943 ac_cpp='$CPP $CPPFLAGS'
12944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12950 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12951 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12952 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12953 CFLAGS="$SAVE_CFLAGS"
12956 sparc*-*solaris*)
12957 # Find out which ABI we are using.
12958 echo 'int i;' > conftest.$ac_ext
12959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12960 (eval $ac_compile) 2>&5
12961 ac_status=$?
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; }; then
12964 case `/usr/bin/file conftest.o` in
12965 *64-bit*)
12966 case $lt_cv_prog_gnu_ld in
12967 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12969 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12970 LD="${LD-ld} -64"
12973 esac
12975 esac
12977 rm -rf conftest*
12979 esac
12981 need_locks="$enable_libtool_lock"
12984 case $host_os in
12985 rhapsody* | darwin*)
12986 if test -n "$ac_tool_prefix"; then
12987 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12988 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990 $as_echo_n "checking for $ac_word... " >&6; }
12991 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 if test -n "$DSYMUTIL"; then
12995 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12996 else
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13008 done
13009 done
13010 IFS=$as_save_IFS
13014 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13015 if test -n "$DSYMUTIL"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13017 $as_echo "$DSYMUTIL" >&6; }
13018 else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13025 if test -z "$ac_cv_prog_DSYMUTIL"; then
13026 ac_ct_DSYMUTIL=$DSYMUTIL
13027 # Extract the first word of "dsymutil", so it can be a program name with args.
13028 set dummy dsymutil; ac_word=$2
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030 $as_echo_n "checking for $ac_word... " >&6; }
13031 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13032 $as_echo_n "(cached) " >&6
13033 else
13034 if test -n "$ac_ct_DSYMUTIL"; then
13035 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13036 else
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13040 IFS=$as_save_IFS
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13044 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 break 2
13048 done
13049 done
13050 IFS=$as_save_IFS
13054 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13055 if test -n "$ac_ct_DSYMUTIL"; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13057 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13058 else
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060 $as_echo "no" >&6; }
13063 if test "x$ac_ct_DSYMUTIL" = x; then
13064 DSYMUTIL=":"
13065 else
13066 case $cross_compiling:$ac_tool_warned in
13067 yes:)
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13070 ac_tool_warned=yes ;;
13071 esac
13072 DSYMUTIL=$ac_ct_DSYMUTIL
13074 else
13075 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13078 if test -n "$ac_tool_prefix"; then
13079 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13080 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082 $as_echo_n "checking for $ac_word... " >&6; }
13083 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 if test -n "$NMEDIT"; then
13087 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13088 else
13089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in $PATH
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
13095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13096 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13100 done
13101 done
13102 IFS=$as_save_IFS
13106 NMEDIT=$ac_cv_prog_NMEDIT
13107 if test -n "$NMEDIT"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13109 $as_echo "$NMEDIT" >&6; }
13110 else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 $as_echo "no" >&6; }
13117 if test -z "$ac_cv_prog_NMEDIT"; then
13118 ac_ct_NMEDIT=$NMEDIT
13119 # Extract the first word of "nmedit", so it can be a program name with args.
13120 set dummy nmedit; ac_word=$2
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122 $as_echo_n "checking for $ac_word... " >&6; }
13123 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 if test -n "$ac_ct_NMEDIT"; then
13127 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13128 else
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13136 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13140 done
13141 done
13142 IFS=$as_save_IFS
13146 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13147 if test -n "$ac_ct_NMEDIT"; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13149 $as_echo "$ac_ct_NMEDIT" >&6; }
13150 else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13155 if test "x$ac_ct_NMEDIT" = x; then
13156 NMEDIT=":"
13157 else
13158 case $cross_compiling:$ac_tool_warned in
13159 yes:)
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13162 ac_tool_warned=yes ;;
13163 esac
13164 NMEDIT=$ac_ct_NMEDIT
13166 else
13167 NMEDIT="$ac_cv_prog_NMEDIT"
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13172 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 $as_echo_n "checking for $ac_word... " >&6; }
13175 if test "${ac_cv_prog_LIPO+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 if test -n "$LIPO"; then
13179 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13180 else
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13192 done
13193 done
13194 IFS=$as_save_IFS
13198 LIPO=$ac_cv_prog_LIPO
13199 if test -n "$LIPO"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13201 $as_echo "$LIPO" >&6; }
13202 else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204 $as_echo "no" >&6; }
13209 if test -z "$ac_cv_prog_LIPO"; then
13210 ac_ct_LIPO=$LIPO
13211 # Extract the first word of "lipo", so it can be a program name with args.
13212 set dummy lipo; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 $as_echo_n "checking for $ac_word... " >&6; }
13215 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 if test -n "$ac_ct_LIPO"; then
13219 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13220 else
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13224 IFS=$as_save_IFS
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13228 ac_cv_prog_ac_ct_LIPO="lipo"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230 break 2
13232 done
13233 done
13234 IFS=$as_save_IFS
13238 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13239 if test -n "$ac_ct_LIPO"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13241 $as_echo "$ac_ct_LIPO" >&6; }
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13247 if test "x$ac_ct_LIPO" = x; then
13248 LIPO=":"
13249 else
13250 case $cross_compiling:$ac_tool_warned in
13251 yes:)
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13254 ac_tool_warned=yes ;;
13255 esac
13256 LIPO=$ac_ct_LIPO
13258 else
13259 LIPO="$ac_cv_prog_LIPO"
13262 if test -n "$ac_tool_prefix"; then
13263 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13264 set dummy ${ac_tool_prefix}otool; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 if test -n "$OTOOL"; then
13271 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13272 else
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13280 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13284 done
13285 done
13286 IFS=$as_save_IFS
13290 OTOOL=$ac_cv_prog_OTOOL
13291 if test -n "$OTOOL"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13293 $as_echo "$OTOOL" >&6; }
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13301 if test -z "$ac_cv_prog_OTOOL"; then
13302 ac_ct_OTOOL=$OTOOL
13303 # Extract the first word of "otool", so it can be a program name with args.
13304 set dummy otool; ac_word=$2
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306 $as_echo_n "checking for $ac_word... " >&6; }
13307 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13308 $as_echo_n "(cached) " >&6
13309 else
13310 if test -n "$ac_ct_OTOOL"; then
13311 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13312 else
13313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314 for as_dir in $PATH
13316 IFS=$as_save_IFS
13317 test -z "$as_dir" && as_dir=.
13318 for ac_exec_ext in '' $ac_executable_extensions; do
13319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13320 ac_cv_prog_ac_ct_OTOOL="otool"
13321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322 break 2
13324 done
13325 done
13326 IFS=$as_save_IFS
13330 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13331 if test -n "$ac_ct_OTOOL"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13333 $as_echo "$ac_ct_OTOOL" >&6; }
13334 else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13339 if test "x$ac_ct_OTOOL" = x; then
13340 OTOOL=":"
13341 else
13342 case $cross_compiling:$ac_tool_warned in
13343 yes:)
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13346 ac_tool_warned=yes ;;
13347 esac
13348 OTOOL=$ac_ct_OTOOL
13350 else
13351 OTOOL="$ac_cv_prog_OTOOL"
13354 if test -n "$ac_tool_prefix"; then
13355 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13356 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358 $as_echo_n "checking for $ac_word... " >&6; }
13359 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 if test -n "$OTOOL64"; then
13363 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13364 else
13365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366 for as_dir in $PATH
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
13371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13372 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13376 done
13377 done
13378 IFS=$as_save_IFS
13382 OTOOL64=$ac_cv_prog_OTOOL64
13383 if test -n "$OTOOL64"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13385 $as_echo "$OTOOL64" >&6; }
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 $as_echo "no" >&6; }
13393 if test -z "$ac_cv_prog_OTOOL64"; then
13394 ac_ct_OTOOL64=$OTOOL64
13395 # Extract the first word of "otool64", so it can be a program name with args.
13396 set dummy otool64; ac_word=$2
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398 $as_echo_n "checking for $ac_word... " >&6; }
13399 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 if test -n "$ac_ct_OTOOL64"; then
13403 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13404 else
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $PATH
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13412 ac_cv_prog_ac_ct_OTOOL64="otool64"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13416 done
13417 done
13418 IFS=$as_save_IFS
13422 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13423 if test -n "$ac_ct_OTOOL64"; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13425 $as_echo "$ac_ct_OTOOL64" >&6; }
13426 else
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428 $as_echo "no" >&6; }
13431 if test "x$ac_ct_OTOOL64" = x; then
13432 OTOOL64=":"
13433 else
13434 case $cross_compiling:$ac_tool_warned in
13435 yes:)
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13438 ac_tool_warned=yes ;;
13439 esac
13440 OTOOL64=$ac_ct_OTOOL64
13442 else
13443 OTOOL64="$ac_cv_prog_OTOOL64"
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13473 $as_echo_n "checking for -single_module linker flag... " >&6; }
13474 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 lt_cv_apple_cc_single_mod=no
13478 if test -z "${LT_MULTI_MODULE}"; then
13479 # By default we will add the -single_module flag. You can override
13480 # by either setting the environment variable LT_MULTI_MODULE
13481 # non-empty at configure time, or by adding -multi_module to the
13482 # link flags.
13483 rm -rf libconftest.dylib*
13484 echo "int foo(void){return 1;}" > conftest.c
13485 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13486 -dynamiclib -Wl,-single_module conftest.c" >&5
13487 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13488 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13489 _lt_result=$?
13490 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13491 lt_cv_apple_cc_single_mod=yes
13492 else
13493 cat conftest.err >&5
13495 rm -rf libconftest.dylib*
13496 rm -f conftest.*
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13500 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13502 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13503 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 lt_cv_ld_exported_symbols_list=no
13507 save_LDFLAGS=$LDFLAGS
13508 echo "_main" > conftest.sym
13509 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13514 main ()
13518 return 0;
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"; then :
13522 lt_cv_ld_exported_symbols_list=yes
13523 else
13524 lt_cv_ld_exported_symbols_list=no
13526 rm -f core conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 LDFLAGS="$save_LDFLAGS"
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13532 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13534 $as_echo_n "checking for -force_load linker flag... " >&6; }
13535 if test "${lt_cv_ld_force_load+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13537 else
13538 lt_cv_ld_force_load=no
13539 cat > conftest.c << _LT_EOF
13540 int forced_loaded() { return 2;}
13541 _LT_EOF
13542 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13543 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13544 echo "$AR cru libconftest.a conftest.o" >&5
13545 $AR cru libconftest.a conftest.o 2>&5
13546 cat > conftest.c << _LT_EOF
13547 int main() { return 0;}
13548 _LT_EOF
13549 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13550 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13551 _lt_result=$?
13552 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13553 lt_cv_ld_force_load=yes
13554 else
13555 cat conftest.err >&5
13557 rm -f conftest.err libconftest.a conftest conftest.c
13558 rm -rf conftest.dSYM
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13562 $as_echo "$lt_cv_ld_force_load" >&6; }
13563 case $host_os in
13564 rhapsody* | darwin1.[012])
13565 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13566 darwin1.*)
13567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13568 darwin*) # darwin 5.x on
13569 # if running on 10.5 or later, the deployment target defaults
13570 # to the OS version, if on x86, and 10.4, the deployment
13571 # target defaults to 10.4. Don't you love it?
13572 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13573 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13574 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13575 10.[012]*)
13576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13577 10.*)
13578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13579 esac
13581 esac
13582 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13583 _lt_dar_single_mod='$single_module'
13585 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13586 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13587 else
13588 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13590 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13591 _lt_dsymutil='~$DSYMUTIL $lib || :'
13592 else
13593 _lt_dsymutil=
13596 esac
13598 for ac_header in dlfcn.h
13599 do :
13600 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13601 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13602 cat >>confdefs.h <<_ACEOF
13603 #define HAVE_DLFCN_H 1
13604 _ACEOF
13607 done
13614 # Set options
13618 enable_dlopen=no
13621 enable_win32_dll=no
13624 # Check whether --enable-shared was given.
13625 if test "${enable_shared+set}" = set; then :
13626 enableval=$enable_shared; p=${PACKAGE-default}
13627 case $enableval in
13628 yes) enable_shared=yes ;;
13629 no) enable_shared=no ;;
13631 enable_shared=no
13632 # Look at the argument we got. We use all the common list separators.
13633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13634 for pkg in $enableval; do
13635 IFS="$lt_save_ifs"
13636 if test "X$pkg" = "X$p"; then
13637 enable_shared=yes
13639 done
13640 IFS="$lt_save_ifs"
13642 esac
13643 else
13644 enable_shared=yes
13655 # Check whether --enable-static was given.
13656 if test "${enable_static+set}" = set; then :
13657 enableval=$enable_static; p=${PACKAGE-default}
13658 case $enableval in
13659 yes) enable_static=yes ;;
13660 no) enable_static=no ;;
13662 enable_static=no
13663 # Look at the argument we got. We use all the common list separators.
13664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13665 for pkg in $enableval; do
13666 IFS="$lt_save_ifs"
13667 if test "X$pkg" = "X$p"; then
13668 enable_static=yes
13670 done
13671 IFS="$lt_save_ifs"
13673 esac
13674 else
13675 enable_static=yes
13687 # Check whether --with-pic was given.
13688 if test "${with_pic+set}" = set; then :
13689 withval=$with_pic; pic_mode="$withval"
13690 else
13691 pic_mode=default
13695 test -z "$pic_mode" && pic_mode=default
13703 # Check whether --enable-fast-install was given.
13704 if test "${enable_fast_install+set}" = set; then :
13705 enableval=$enable_fast_install; p=${PACKAGE-default}
13706 case $enableval in
13707 yes) enable_fast_install=yes ;;
13708 no) enable_fast_install=no ;;
13710 enable_fast_install=no
13711 # Look at the argument we got. We use all the common list separators.
13712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13713 for pkg in $enableval; do
13714 IFS="$lt_save_ifs"
13715 if test "X$pkg" = "X$p"; then
13716 enable_fast_install=yes
13718 done
13719 IFS="$lt_save_ifs"
13721 esac
13722 else
13723 enable_fast_install=yes
13736 # This can be used to rebuild libtool when needed
13737 LIBTOOL_DEPS="$ltmain"
13739 # Always use our own libtool.
13740 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13767 test -z "$LN_S" && LN_S="ln -s"
13782 if test -n "${ZSH_VERSION+set}" ; then
13783 setopt NO_GLOB_SUBST
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13787 $as_echo_n "checking for objdir... " >&6; }
13788 if test "${lt_cv_objdir+set}" = set; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 rm -f .libs 2>/dev/null
13792 mkdir .libs 2>/dev/null
13793 if test -d .libs; then
13794 lt_cv_objdir=.libs
13795 else
13796 # MS-DOS does not allow filenames that begin with a dot.
13797 lt_cv_objdir=_libs
13799 rmdir .libs 2>/dev/null
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13802 $as_echo "$lt_cv_objdir" >&6; }
13803 objdir=$lt_cv_objdir
13809 cat >>confdefs.h <<_ACEOF
13810 #define LT_OBJDIR "$lt_cv_objdir/"
13811 _ACEOF
13816 case $host_os in
13817 aix3*)
13818 # AIX sometimes has problems with the GCC collect2 program. For some
13819 # reason, if we set the COLLECT_NAMES environment variable, the problems
13820 # vanish in a puff of smoke.
13821 if test "X${COLLECT_NAMES+set}" != Xset; then
13822 COLLECT_NAMES=
13823 export COLLECT_NAMES
13826 esac
13828 # Global variables:
13829 ofile=libtool
13830 can_build_shared=yes
13832 # All known linkers require a `.a' archive for static linking (except MSVC,
13833 # which needs '.lib').
13834 libext=a
13836 with_gnu_ld="$lt_cv_prog_gnu_ld"
13838 old_CC="$CC"
13839 old_CFLAGS="$CFLAGS"
13841 # Set sane defaults for various variables
13842 test -z "$CC" && CC=cc
13843 test -z "$LTCC" && LTCC=$CC
13844 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13845 test -z "$LD" && LD=ld
13846 test -z "$ac_objext" && ac_objext=o
13848 for cc_temp in $compiler""; do
13849 case $cc_temp in
13850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13852 \-*) ;;
13853 *) break;;
13854 esac
13855 done
13856 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13859 # Only perform the check for file, if the check method requires it
13860 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13861 case $deplibs_check_method in
13862 file_magic*)
13863 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13865 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13866 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 case $MAGIC_CMD in
13870 [\\/*] | ?:[\\/]*)
13871 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13874 lt_save_MAGIC_CMD="$MAGIC_CMD"
13875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13876 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13877 for ac_dir in $ac_dummy; do
13878 IFS="$lt_save_ifs"
13879 test -z "$ac_dir" && ac_dir=.
13880 if test -f $ac_dir/${ac_tool_prefix}file; then
13881 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13882 if test -n "$file_magic_test_file"; then
13883 case $deplibs_check_method in
13884 "file_magic "*)
13885 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13887 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13888 $EGREP "$file_magic_regex" > /dev/null; then
13890 else
13891 cat <<_LT_EOF 1>&2
13893 *** Warning: the command libtool uses to detect shared libraries,
13894 *** $file_magic_cmd, produces output that libtool cannot recognize.
13895 *** The result is that libtool may fail to recognize shared libraries
13896 *** as such. This will affect the creation of libtool libraries that
13897 *** depend on shared libraries, but programs linked with such libtool
13898 *** libraries will work regardless of this problem. Nevertheless, you
13899 *** may want to report the problem to your system manager and/or to
13900 *** bug-libtool@gnu.org
13902 _LT_EOF
13903 fi ;;
13904 esac
13906 break
13908 done
13909 IFS="$lt_save_ifs"
13910 MAGIC_CMD="$lt_save_MAGIC_CMD"
13912 esac
13915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13916 if test -n "$MAGIC_CMD"; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13918 $as_echo "$MAGIC_CMD" >&6; }
13919 else
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921 $as_echo "no" >&6; }
13928 if test -z "$lt_cv_path_MAGIC_CMD"; then
13929 if test -n "$ac_tool_prefix"; then
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13931 $as_echo_n "checking for file... " >&6; }
13932 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 case $MAGIC_CMD in
13936 [\\/*] | ?:[\\/]*)
13937 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13940 lt_save_MAGIC_CMD="$MAGIC_CMD"
13941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13942 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13943 for ac_dir in $ac_dummy; do
13944 IFS="$lt_save_ifs"
13945 test -z "$ac_dir" && ac_dir=.
13946 if test -f $ac_dir/file; then
13947 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13948 if test -n "$file_magic_test_file"; then
13949 case $deplibs_check_method in
13950 "file_magic "*)
13951 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13954 $EGREP "$file_magic_regex" > /dev/null; then
13956 else
13957 cat <<_LT_EOF 1>&2
13959 *** Warning: the command libtool uses to detect shared libraries,
13960 *** $file_magic_cmd, produces output that libtool cannot recognize.
13961 *** The result is that libtool may fail to recognize shared libraries
13962 *** as such. This will affect the creation of libtool libraries that
13963 *** depend on shared libraries, but programs linked with such libtool
13964 *** libraries will work regardless of this problem. Nevertheless, you
13965 *** may want to report the problem to your system manager and/or to
13966 *** bug-libtool@gnu.org
13968 _LT_EOF
13969 fi ;;
13970 esac
13972 break
13974 done
13975 IFS="$lt_save_ifs"
13976 MAGIC_CMD="$lt_save_MAGIC_CMD"
13978 esac
13981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13982 if test -n "$MAGIC_CMD"; then
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13984 $as_echo "$MAGIC_CMD" >&6; }
13985 else
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13987 $as_echo "no" >&6; }
13991 else
13992 MAGIC_CMD=:
13998 esac
14000 # Use C for the default configuration in the libtool script
14002 lt_save_CC="$CC"
14003 ac_ext=c
14004 ac_cpp='$CPP $CPPFLAGS'
14005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14010 # Source file extension for C test sources.
14011 ac_ext=c
14013 # Object file extension for compiled C test sources.
14014 objext=o
14015 objext=$objext
14017 # Code to be used in simple compile tests
14018 lt_simple_compile_test_code="int some_variable = 0;"
14020 # Code to be used in simple link tests
14021 lt_simple_link_test_code='int main(){return(0);}'
14029 # If no C compiler was specified, use CC.
14030 LTCC=${LTCC-"$CC"}
14032 # If no C compiler flags were specified, use CFLAGS.
14033 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14035 # Allow CC to be a program name with arguments.
14036 compiler=$CC
14038 # Save the default compiler, since it gets overwritten when the other
14039 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14040 compiler_DEFAULT=$CC
14042 # save warnings/boilerplate of simple test code
14043 ac_outfile=conftest.$ac_objext
14044 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14046 _lt_compiler_boilerplate=`cat conftest.err`
14047 $RM conftest*
14049 ac_outfile=conftest.$ac_objext
14050 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14051 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14052 _lt_linker_boilerplate=`cat conftest.err`
14053 $RM -r conftest*
14056 ## CAVEAT EMPTOR:
14057 ## There is no encapsulation within the following macros, do not change
14058 ## the running order or otherwise move them around unless you know exactly
14059 ## what you are doing...
14060 if test -n "$compiler"; then
14062 lt_prog_compiler_no_builtin_flag=
14064 if test "$GCC" = yes; then
14065 case $cc_basename in
14066 nvcc*)
14067 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14069 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14070 esac
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14073 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14074 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14075 $as_echo_n "(cached) " >&6
14076 else
14077 lt_cv_prog_compiler_rtti_exceptions=no
14078 ac_outfile=conftest.$ac_objext
14079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14080 lt_compiler_flag="-fno-rtti -fno-exceptions"
14081 # Insert the option either (1) after the last *FLAGS variable, or
14082 # (2) before a word containing "conftest.", or (3) at the end.
14083 # Note that $ac_compile itself does not contain backslashes and begins
14084 # with a dollar sign (not a hyphen), so the echo should work correctly.
14085 # The option is referenced via a variable to avoid confusing sed.
14086 lt_compile=`echo "$ac_compile" | $SED \
14087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14089 -e 's:$: $lt_compiler_flag:'`
14090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14091 (eval "$lt_compile" 2>conftest.err)
14092 ac_status=$?
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 if (exit $ac_status) && test -s "$ac_outfile"; then
14096 # The compiler can only warn and ignore the option if not recognized
14097 # So say no if there are warnings other than the usual output.
14098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14101 lt_cv_prog_compiler_rtti_exceptions=yes
14104 $RM conftest*
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14108 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14110 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14111 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14112 else
14123 lt_prog_compiler_wl=
14124 lt_prog_compiler_pic=
14125 lt_prog_compiler_static=
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14128 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14130 if test "$GCC" = yes; then
14131 lt_prog_compiler_wl='-Wl,'
14132 lt_prog_compiler_static='-static'
14134 case $host_os in
14135 aix*)
14136 # All AIX code is PIC.
14137 if test "$host_cpu" = ia64; then
14138 # AIX 5 now supports IA64 processor
14139 lt_prog_compiler_static='-Bstatic'
14143 amigaos*)
14144 case $host_cpu in
14145 powerpc)
14146 # see comment about AmigaOS4 .so support
14147 lt_prog_compiler_pic='-fPIC'
14149 m68k)
14150 # FIXME: we need at least 68020 code to build shared libraries, but
14151 # adding the `-m68020' flag to GCC prevents building anything better,
14152 # like `-m68040'.
14153 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14155 esac
14158 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14159 # PIC is the default for these OSes.
14162 mingw* | cygwin* | pw32* | os2* | cegcc*)
14163 # This hack is so that the source file can tell whether it is being
14164 # built for inclusion in a dll (and should export symbols for example).
14165 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14166 # (--disable-auto-import) libraries
14167 lt_prog_compiler_pic='-DDLL_EXPORT'
14170 darwin* | rhapsody*)
14171 # PIC is the default on this platform
14172 # Common symbols not allowed in MH_DYLIB files
14173 lt_prog_compiler_pic='-fno-common'
14176 haiku*)
14177 # PIC is the default for Haiku.
14178 # The "-static" flag exists, but is broken.
14179 lt_prog_compiler_static=
14182 hpux*)
14183 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14184 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14185 # sets the default TLS model and affects inlining.
14186 case $host_cpu in
14187 hppa*64*)
14188 # +Z the default
14191 lt_prog_compiler_pic='-fPIC'
14193 esac
14196 interix[3-9]*)
14197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14198 # Instead, we relocate shared libraries at runtime.
14201 msdosdjgpp*)
14202 # Just because we use GCC doesn't mean we suddenly get shared libraries
14203 # on systems that don't support them.
14204 lt_prog_compiler_can_build_shared=no
14205 enable_shared=no
14208 *nto* | *qnx*)
14209 # QNX uses GNU C++, but need to define -shared option too, otherwise
14210 # it will coredump.
14211 lt_prog_compiler_pic='-fPIC -shared'
14214 sysv4*MP*)
14215 if test -d /usr/nec; then
14216 lt_prog_compiler_pic=-Kconform_pic
14221 lt_prog_compiler_pic='-fPIC'
14223 esac
14225 case $cc_basename in
14226 nvcc*) # Cuda Compiler Driver 2.2
14227 lt_prog_compiler_wl='-Xlinker '
14228 lt_prog_compiler_pic='-Xcompiler -fPIC'
14230 esac
14231 else
14232 # PORTME Check for flag to pass linker flags through the system compiler.
14233 case $host_os in
14234 aix*)
14235 lt_prog_compiler_wl='-Wl,'
14236 if test "$host_cpu" = ia64; then
14237 # AIX 5 now supports IA64 processor
14238 lt_prog_compiler_static='-Bstatic'
14239 else
14240 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14244 mingw* | cygwin* | pw32* | os2* | cegcc*)
14245 # This hack is so that the source file can tell whether it is being
14246 # built for inclusion in a dll (and should export symbols for example).
14247 lt_prog_compiler_pic='-DDLL_EXPORT'
14250 hpux9* | hpux10* | hpux11*)
14251 lt_prog_compiler_wl='-Wl,'
14252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14253 # not for PA HP-UX.
14254 case $host_cpu in
14255 hppa*64*|ia64*)
14256 # +Z the default
14259 lt_prog_compiler_pic='+Z'
14261 esac
14262 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14263 lt_prog_compiler_static='${wl}-a ${wl}archive'
14266 irix5* | irix6* | nonstopux*)
14267 lt_prog_compiler_wl='-Wl,'
14268 # PIC (with -KPIC) is the default.
14269 lt_prog_compiler_static='-non_shared'
14272 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14273 case $cc_basename in
14274 # old Intel for x86_64 which still supported -KPIC.
14275 ecc*)
14276 lt_prog_compiler_wl='-Wl,'
14277 lt_prog_compiler_pic='-KPIC'
14278 lt_prog_compiler_static='-static'
14280 # icc used to be incompatible with GCC.
14281 # ICC 10 doesn't accept -KPIC any more.
14282 icc* | ifort*)
14283 lt_prog_compiler_wl='-Wl,'
14284 lt_prog_compiler_pic='-fPIC'
14285 lt_prog_compiler_static='-static'
14287 # Lahey Fortran 8.1.
14288 lf95*)
14289 lt_prog_compiler_wl='-Wl,'
14290 lt_prog_compiler_pic='--shared'
14291 lt_prog_compiler_static='--static'
14293 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14294 # Portland Group compilers (*not* the Pentium gcc compiler,
14295 # which looks to be a dead project)
14296 lt_prog_compiler_wl='-Wl,'
14297 lt_prog_compiler_pic='-fpic'
14298 lt_prog_compiler_static='-Bstatic'
14300 ccc*)
14301 lt_prog_compiler_wl='-Wl,'
14302 # All Alpha code is PIC.
14303 lt_prog_compiler_static='-non_shared'
14305 xl* | bgxl* | bgf* | mpixl*)
14306 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14307 lt_prog_compiler_wl='-Wl,'
14308 lt_prog_compiler_pic='-qpic'
14309 lt_prog_compiler_static='-qstaticlink'
14312 case `$CC -V 2>&1 | sed 5q` in
14313 *Sun\ F* | *Sun*Fortran*)
14314 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14315 lt_prog_compiler_pic='-KPIC'
14316 lt_prog_compiler_static='-Bstatic'
14317 lt_prog_compiler_wl=''
14319 *Sun\ C*)
14320 # Sun C 5.9
14321 lt_prog_compiler_pic='-KPIC'
14322 lt_prog_compiler_static='-Bstatic'
14323 lt_prog_compiler_wl='-Wl,'
14325 esac
14327 esac
14330 newsos6)
14331 lt_prog_compiler_pic='-KPIC'
14332 lt_prog_compiler_static='-Bstatic'
14335 *nto* | *qnx*)
14336 # QNX uses GNU C++, but need to define -shared option too, otherwise
14337 # it will coredump.
14338 lt_prog_compiler_pic='-fPIC -shared'
14341 osf3* | osf4* | osf5*)
14342 lt_prog_compiler_wl='-Wl,'
14343 # All OSF/1 code is PIC.
14344 lt_prog_compiler_static='-non_shared'
14347 rdos*)
14348 lt_prog_compiler_static='-non_shared'
14351 solaris*)
14352 lt_prog_compiler_pic='-KPIC'
14353 lt_prog_compiler_static='-Bstatic'
14354 case $cc_basename in
14355 f77* | f90* | f95*)
14356 lt_prog_compiler_wl='-Qoption ld ';;
14358 lt_prog_compiler_wl='-Wl,';;
14359 esac
14362 sunos4*)
14363 lt_prog_compiler_wl='-Qoption ld '
14364 lt_prog_compiler_pic='-PIC'
14365 lt_prog_compiler_static='-Bstatic'
14368 sysv4 | sysv4.2uw2* | sysv4.3*)
14369 lt_prog_compiler_wl='-Wl,'
14370 lt_prog_compiler_pic='-KPIC'
14371 lt_prog_compiler_static='-Bstatic'
14374 sysv4*MP*)
14375 if test -d /usr/nec ;then
14376 lt_prog_compiler_pic='-Kconform_pic'
14377 lt_prog_compiler_static='-Bstatic'
14381 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14382 lt_prog_compiler_wl='-Wl,'
14383 lt_prog_compiler_pic='-KPIC'
14384 lt_prog_compiler_static='-Bstatic'
14387 unicos*)
14388 lt_prog_compiler_wl='-Wl,'
14389 lt_prog_compiler_can_build_shared=no
14392 uts4*)
14393 lt_prog_compiler_pic='-pic'
14394 lt_prog_compiler_static='-Bstatic'
14398 lt_prog_compiler_can_build_shared=no
14400 esac
14403 case $host_os in
14404 # For platforms which do not support PIC, -DPIC is meaningless:
14405 *djgpp*)
14406 lt_prog_compiler_pic=
14409 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14411 esac
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14413 $as_echo "$lt_prog_compiler_pic" >&6; }
14421 # Check to make sure the PIC flag actually works.
14423 if test -n "$lt_prog_compiler_pic"; then
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14425 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14426 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 lt_cv_prog_compiler_pic_works=no
14430 ac_outfile=conftest.$ac_objext
14431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14432 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14433 # Insert the option either (1) after the last *FLAGS variable, or
14434 # (2) before a word containing "conftest.", or (3) at the end.
14435 # Note that $ac_compile itself does not contain backslashes and begins
14436 # with a dollar sign (not a hyphen), so the echo should work correctly.
14437 # The option is referenced via a variable to avoid confusing sed.
14438 lt_compile=`echo "$ac_compile" | $SED \
14439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14441 -e 's:$: $lt_compiler_flag:'`
14442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14443 (eval "$lt_compile" 2>conftest.err)
14444 ac_status=$?
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 if (exit $ac_status) && test -s "$ac_outfile"; then
14448 # The compiler can only warn and ignore the option if not recognized
14449 # So say no if there are warnings other than the usual output.
14450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14453 lt_cv_prog_compiler_pic_works=yes
14456 $RM conftest*
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14460 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14462 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14463 case $lt_prog_compiler_pic in
14464 "" | " "*) ;;
14465 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14466 esac
14467 else
14468 lt_prog_compiler_pic=
14469 lt_prog_compiler_can_build_shared=no
14480 # Check to make sure the static flag actually works.
14482 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14484 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14485 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 lt_cv_prog_compiler_static_works=no
14489 save_LDFLAGS="$LDFLAGS"
14490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14493 # The linker can only warn and ignore the option if not recognized
14494 # So say no if there are warnings
14495 if test -s conftest.err; then
14496 # Append any errors to the config.log.
14497 cat conftest.err 1>&5
14498 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14500 if diff conftest.exp conftest.er2 >/dev/null; then
14501 lt_cv_prog_compiler_static_works=yes
14503 else
14504 lt_cv_prog_compiler_static_works=yes
14507 $RM -r conftest*
14508 LDFLAGS="$save_LDFLAGS"
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14512 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14514 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14516 else
14517 lt_prog_compiler_static=
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14528 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14529 $as_echo_n "(cached) " >&6
14530 else
14531 lt_cv_prog_compiler_c_o=no
14532 $RM -r conftest 2>/dev/null
14533 mkdir conftest
14534 cd conftest
14535 mkdir out
14536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14538 lt_compiler_flag="-o out/conftest2.$ac_objext"
14539 # Insert the option either (1) after the last *FLAGS variable, or
14540 # (2) before a word containing "conftest.", or (3) at the end.
14541 # Note that $ac_compile itself does not contain backslashes and begins
14542 # with a dollar sign (not a hyphen), so the echo should work correctly.
14543 lt_compile=`echo "$ac_compile" | $SED \
14544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14546 -e 's:$: $lt_compiler_flag:'`
14547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14548 (eval "$lt_compile" 2>out/conftest.err)
14549 ac_status=$?
14550 cat out/conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14553 then
14554 # The compiler can only warn and ignore the option if not recognized
14555 # So say no if there are warnings
14556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14559 lt_cv_prog_compiler_c_o=yes
14562 chmod u+w . 2>&5
14563 $RM conftest*
14564 # SGI C++ compiler will create directory out/ii_files/ for
14565 # template instantiation
14566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14567 $RM out/* && rmdir out
14568 cd ..
14569 $RM -r conftest
14570 $RM conftest*
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14574 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14583 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14584 $as_echo_n "(cached) " >&6
14585 else
14586 lt_cv_prog_compiler_c_o=no
14587 $RM -r conftest 2>/dev/null
14588 mkdir conftest
14589 cd conftest
14590 mkdir out
14591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14593 lt_compiler_flag="-o out/conftest2.$ac_objext"
14594 # Insert the option either (1) after the last *FLAGS variable, or
14595 # (2) before a word containing "conftest.", or (3) at the end.
14596 # Note that $ac_compile itself does not contain backslashes and begins
14597 # with a dollar sign (not a hyphen), so the echo should work correctly.
14598 lt_compile=`echo "$ac_compile" | $SED \
14599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14601 -e 's:$: $lt_compiler_flag:'`
14602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14603 (eval "$lt_compile" 2>out/conftest.err)
14604 ac_status=$?
14605 cat out/conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14608 then
14609 # The compiler can only warn and ignore the option if not recognized
14610 # So say no if there are warnings
14611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14614 lt_cv_prog_compiler_c_o=yes
14617 chmod u+w . 2>&5
14618 $RM conftest*
14619 # SGI C++ compiler will create directory out/ii_files/ for
14620 # template instantiation
14621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14622 $RM out/* && rmdir out
14623 cd ..
14624 $RM -r conftest
14625 $RM conftest*
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14629 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14634 hard_links="nottested"
14635 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14636 # do not overwrite the value of need_locks provided by the user
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14638 $as_echo_n "checking if we can lock with hard links... " >&6; }
14639 hard_links=yes
14640 $RM conftest*
14641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14642 touch conftest.a
14643 ln conftest.a conftest.b 2>&5 || hard_links=no
14644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14646 $as_echo "$hard_links" >&6; }
14647 if test "$hard_links" = no; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14649 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14650 need_locks=warn
14652 else
14653 need_locks=no
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14662 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14664 runpath_var=
14665 allow_undefined_flag=
14666 always_export_symbols=no
14667 archive_cmds=
14668 archive_expsym_cmds=
14669 compiler_needs_object=no
14670 enable_shared_with_static_runtimes=no
14671 export_dynamic_flag_spec=
14672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14673 hardcode_automatic=no
14674 hardcode_direct=no
14675 hardcode_direct_absolute=no
14676 hardcode_libdir_flag_spec=
14677 hardcode_libdir_flag_spec_ld=
14678 hardcode_libdir_separator=
14679 hardcode_minus_L=no
14680 hardcode_shlibpath_var=unsupported
14681 inherit_rpath=no
14682 link_all_deplibs=unknown
14683 module_cmds=
14684 module_expsym_cmds=
14685 old_archive_from_new_cmds=
14686 old_archive_from_expsyms_cmds=
14687 thread_safe_flag_spec=
14688 whole_archive_flag_spec=
14689 # include_expsyms should be a list of space-separated symbols to be *always*
14690 # included in the symbol list
14691 include_expsyms=
14692 # exclude_expsyms can be an extended regexp of symbols to exclude
14693 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14694 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14695 # as well as any symbol that contains `d'.
14696 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14698 # platforms (ab)use it in PIC code, but their linkers get confused if
14699 # the symbol is explicitly referenced. Since portable code cannot
14700 # rely on this symbol name, it's probably fine to never include it in
14701 # preloaded symbol tables.
14702 # Exclude shared library initialization/finalization symbols.
14703 extract_expsyms_cmds=
14705 case $host_os in
14706 cygwin* | mingw* | pw32* | cegcc*)
14707 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14708 # When not using gcc, we currently assume that we are using
14709 # Microsoft Visual C++.
14710 if test "$GCC" != yes; then
14711 with_gnu_ld=no
14714 interix*)
14715 # we just hope/assume this is gcc and not c89 (= MSVC++)
14716 with_gnu_ld=yes
14718 openbsd*)
14719 with_gnu_ld=no
14721 esac
14723 ld_shlibs=yes
14725 # On some targets, GNU ld is compatible enough with the native linker
14726 # that we're better off using the native interface for both.
14727 lt_use_gnu_ld_interface=no
14728 if test "$with_gnu_ld" = yes; then
14729 case $host_os in
14730 aix*)
14731 # The AIX port of GNU ld has always aspired to compatibility
14732 # with the native linker. However, as the warning in the GNU ld
14733 # block says, versions before 2.19.5* couldn't really create working
14734 # shared libraries, regardless of the interface used.
14735 case `$LD -v 2>&1` in
14736 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14737 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14738 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14740 lt_use_gnu_ld_interface=yes
14742 esac
14745 lt_use_gnu_ld_interface=yes
14747 esac
14750 if test "$lt_use_gnu_ld_interface" = yes; then
14751 # If archive_cmds runs LD, not CC, wlarc should be empty
14752 wlarc='${wl}'
14754 # Set some defaults for GNU ld with shared library support. These
14755 # are reset later if shared libraries are not supported. Putting them
14756 # here allows them to be overridden if necessary.
14757 runpath_var=LD_RUN_PATH
14758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14759 export_dynamic_flag_spec='${wl}--export-dynamic'
14760 # ancient GNU ld didn't support --whole-archive et. al.
14761 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14762 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14763 else
14764 whole_archive_flag_spec=
14766 supports_anon_versioning=no
14767 case `$LD -v 2>&1` in
14768 *GNU\ gold*) supports_anon_versioning=yes ;;
14769 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14770 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14771 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14772 *\ 2.11.*) ;; # other 2.11 versions
14773 *) supports_anon_versioning=yes ;;
14774 esac
14776 # See if GNU ld supports shared libraries.
14777 case $host_os in
14778 aix[3-9]*)
14779 # On AIX/PPC, the GNU linker is very broken
14780 if test "$host_cpu" != ia64; then
14781 ld_shlibs=no
14782 cat <<_LT_EOF 1>&2
14784 *** Warning: the GNU linker, at least up to release 2.19, is reported
14785 *** to be unable to reliably create shared libraries on AIX.
14786 *** Therefore, libtool is disabling shared libraries support. If you
14787 *** really care for shared libraries, you may want to install binutils
14788 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14789 *** You will then need to restart the configuration process.
14791 _LT_EOF
14795 amigaos*)
14796 case $host_cpu in
14797 powerpc)
14798 # see comment about AmigaOS4 .so support
14799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14800 archive_expsym_cmds=''
14802 m68k)
14803 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)'
14804 hardcode_libdir_flag_spec='-L$libdir'
14805 hardcode_minus_L=yes
14807 esac
14810 beos*)
14811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14812 allow_undefined_flag=unsupported
14813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14814 # support --undefined. This deserves some investigation. FIXME
14815 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14816 else
14817 ld_shlibs=no
14821 cygwin* | mingw* | pw32* | cegcc*)
14822 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14823 # as there is no search path for DLLs.
14824 hardcode_libdir_flag_spec='-L$libdir'
14825 export_dynamic_flag_spec='${wl}--export-all-symbols'
14826 allow_undefined_flag=unsupported
14827 always_export_symbols=no
14828 enable_shared_with_static_runtimes=yes
14829 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14831 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14833 # If the export-symbols file already is a .def file (1st line
14834 # is EXPORTS), use it as is; otherwise, prepend...
14835 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14836 cp $export_symbols $output_objdir/$soname.def;
14837 else
14838 echo EXPORTS > $output_objdir/$soname.def;
14839 cat $export_symbols >> $output_objdir/$soname.def;
14841 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14842 else
14843 ld_shlibs=no
14847 haiku*)
14848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849 link_all_deplibs=yes
14852 interix[3-9]*)
14853 hardcode_direct=no
14854 hardcode_shlibpath_var=no
14855 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14856 export_dynamic_flag_spec='${wl}-E'
14857 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14858 # Instead, shared libraries are loaded at an image base (0x10000000 by
14859 # default) and relocated if they conflict, which is a slow very memory
14860 # consuming and fragmenting process. To avoid this, we pick a random,
14861 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14862 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14863 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14864 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'
14867 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14868 tmp_diet=no
14869 if test "$host_os" = linux-dietlibc; then
14870 case $cc_basename in
14871 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14872 esac
14874 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14875 && test "$tmp_diet" = no
14876 then
14877 tmp_addflag=
14878 tmp_sharedflag='-shared'
14879 case $cc_basename,$host_cpu in
14880 pgcc*) # Portland Group C compiler
14881 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'
14882 tmp_addflag=' $pic_flag'
14884 pgf77* | pgf90* | pgf95* | pgfortran*)
14885 # Portland Group f77 and f90 compilers
14886 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'
14887 tmp_addflag=' $pic_flag -Mnomain' ;;
14888 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14889 tmp_addflag=' -i_dynamic' ;;
14890 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14891 tmp_addflag=' -i_dynamic -nofor_main' ;;
14892 ifc* | ifort*) # Intel Fortran compiler
14893 tmp_addflag=' -nofor_main' ;;
14894 lf95*) # Lahey Fortran 8.1
14895 whole_archive_flag_spec=
14896 tmp_sharedflag='--shared' ;;
14897 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14898 tmp_sharedflag='-qmkshrobj'
14899 tmp_addflag= ;;
14900 nvcc*) # Cuda Compiler Driver 2.2
14901 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'
14902 compiler_needs_object=yes
14904 esac
14905 case `$CC -V 2>&1 | sed 5q` in
14906 *Sun\ C*) # Sun C 5.9
14907 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'
14908 compiler_needs_object=yes
14909 tmp_sharedflag='-G' ;;
14910 *Sun\ F*) # Sun Fortran 8.3
14911 tmp_sharedflag='-G' ;;
14912 esac
14913 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14915 if test "x$supports_anon_versioning" = xyes; then
14916 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14918 echo "local: *; };" >> $output_objdir/$libname.ver~
14919 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14922 case $cc_basename in
14923 xlf* | bgf* | bgxlf* | mpixlf*)
14924 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14925 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14926 hardcode_libdir_flag_spec=
14927 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14928 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14929 if test "x$supports_anon_versioning" = xyes; then
14930 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14931 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14932 echo "local: *; };" >> $output_objdir/$libname.ver~
14933 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14936 esac
14937 else
14938 ld_shlibs=no
14942 netbsd*)
14943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14944 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14945 wlarc=
14946 else
14947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14948 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14952 solaris*)
14953 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14954 ld_shlibs=no
14955 cat <<_LT_EOF 1>&2
14957 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14958 *** create shared libraries on Solaris systems. Therefore, libtool
14959 *** is disabling shared libraries support. We urge you to upgrade GNU
14960 *** binutils to release 2.9.1 or newer. Another option is to modify
14961 *** your PATH or compiler configuration so that the native linker is
14962 *** used, and then restart.
14964 _LT_EOF
14965 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14967 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14968 else
14969 ld_shlibs=no
14973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14974 case `$LD -v 2>&1` in
14975 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14976 ld_shlibs=no
14977 cat <<_LT_EOF 1>&2
14979 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14980 *** reliably create shared libraries on SCO systems. Therefore, libtool
14981 *** is disabling shared libraries support. We urge you to upgrade GNU
14982 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14983 *** your PATH or compiler configuration so that the native linker is
14984 *** used, and then restart.
14986 _LT_EOF
14989 # For security reasons, it is highly recommended that you always
14990 # use absolute paths for naming shared libraries, and exclude the
14991 # DT_RUNPATH tag from executables and libraries. But doing so
14992 # requires that you compile everything twice, which is a pain.
14993 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14996 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14997 else
14998 ld_shlibs=no
15001 esac
15004 sunos4*)
15005 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15006 wlarc=
15007 hardcode_direct=yes
15008 hardcode_shlibpath_var=no
15012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15014 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15015 else
15016 ld_shlibs=no
15019 esac
15021 if test "$ld_shlibs" = no; then
15022 runpath_var=
15023 hardcode_libdir_flag_spec=
15024 export_dynamic_flag_spec=
15025 whole_archive_flag_spec=
15027 else
15028 # PORTME fill in a description of your system's linker (not GNU ld)
15029 case $host_os in
15030 aix3*)
15031 allow_undefined_flag=unsupported
15032 always_export_symbols=yes
15033 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'
15034 # Note: this linker hardcodes the directories in LIBPATH if there
15035 # are no directories specified by -L.
15036 hardcode_minus_L=yes
15037 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15038 # Neither direct hardcoding nor static linking is supported with a
15039 # broken collect2.
15040 hardcode_direct=unsupported
15044 aix[4-9]*)
15045 if test "$host_cpu" = ia64; then
15046 # On IA64, the linker does run time linking by default, so we don't
15047 # have to do anything special.
15048 aix_use_runtimelinking=no
15049 exp_sym_flag='-Bexport'
15050 no_entry_flag=""
15051 else
15052 # If we're using GNU nm, then we don't want the "-C" option.
15053 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15054 # Also, AIX nm treats weak defined symbols like other global
15055 # defined symbols, whereas GNU nm marks them as "W".
15056 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15057 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'
15058 else
15059 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'
15061 aix_use_runtimelinking=no
15063 # Test if we are trying to use run time linking or normal
15064 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15065 # need to do runtime linking.
15066 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15067 for ld_flag in $LDFLAGS; do
15068 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15069 aix_use_runtimelinking=yes
15070 break
15072 done
15074 esac
15076 exp_sym_flag='-bexport'
15077 no_entry_flag='-bnoentry'
15080 # When large executables or shared objects are built, AIX ld can
15081 # have problems creating the table of contents. If linking a library
15082 # or program results in "error TOC overflow" add -mminimal-toc to
15083 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15084 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15086 archive_cmds=''
15087 hardcode_direct=yes
15088 hardcode_direct_absolute=yes
15089 hardcode_libdir_separator=':'
15090 link_all_deplibs=yes
15091 file_list_spec='${wl}-f,'
15093 if test "$GCC" = yes; then
15094 case $host_os in aix4.[012]|aix4.[012].*)
15095 # We only want to do this on AIX 4.2 and lower, the check
15096 # below for broken collect2 doesn't work under 4.3+
15097 collect2name=`${CC} -print-prog-name=collect2`
15098 if test -f "$collect2name" &&
15099 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15100 then
15101 # We have reworked collect2
15103 else
15104 # We have old collect2
15105 hardcode_direct=unsupported
15106 # It fails to find uninstalled libraries when the uninstalled
15107 # path is not listed in the libpath. Setting hardcode_minus_L
15108 # to unsupported forces relinking
15109 hardcode_minus_L=yes
15110 hardcode_libdir_flag_spec='-L$libdir'
15111 hardcode_libdir_separator=
15114 esac
15115 shared_flag='-shared'
15116 if test "$aix_use_runtimelinking" = yes; then
15117 shared_flag="$shared_flag "'${wl}-G'
15119 else
15120 # not using gcc
15121 if test "$host_cpu" = ia64; then
15122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15123 # chokes on -Wl,-G. The following line is correct:
15124 shared_flag='-G'
15125 else
15126 if test "$aix_use_runtimelinking" = yes; then
15127 shared_flag='${wl}-G'
15128 else
15129 shared_flag='${wl}-bM:SRE'
15134 export_dynamic_flag_spec='${wl}-bexpall'
15135 # It seems that -bexpall does not export symbols beginning with
15136 # underscore (_), so it is better to generate a list of symbols to export.
15137 always_export_symbols=yes
15138 if test "$aix_use_runtimelinking" = yes; then
15139 # Warning - without using the other runtime loading flags (-brtl),
15140 # -berok will link without error, but may produce a broken library.
15141 allow_undefined_flag='-berok'
15142 # Determine the default libpath from the value encoded in an
15143 # empty executable.
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15148 main ()
15152 return 0;
15154 _ACEOF
15155 if ac_fn_c_try_link "$LINENO"; then :
15157 lt_aix_libpath_sed='
15158 /Import File Strings/,/^$/ {
15159 /^0/ {
15160 s/^0 *\(.*\)$/\1/
15164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15165 # Check for a 64-bit object if we didn't find anything.
15166 if test -z "$aix_libpath"; then
15167 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15170 rm -f core conftest.err conftest.$ac_objext \
15171 conftest$ac_exeext conftest.$ac_ext
15172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15174 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15175 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"
15176 else
15177 if test "$host_cpu" = ia64; then
15178 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15179 allow_undefined_flag="-z nodefs"
15180 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"
15181 else
15182 # Determine the default libpath from the value encoded in an
15183 # empty executable.
15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15188 main ()
15192 return 0;
15194 _ACEOF
15195 if ac_fn_c_try_link "$LINENO"; then :
15197 lt_aix_libpath_sed='
15198 /Import File Strings/,/^$/ {
15199 /^0/ {
15200 s/^0 *\(.*\)$/\1/
15204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15205 # Check for a 64-bit object if we didn't find anything.
15206 if test -z "$aix_libpath"; then
15207 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15210 rm -f core conftest.err conftest.$ac_objext \
15211 conftest$ac_exeext conftest.$ac_ext
15212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15214 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15215 # Warning - without using the other run time loading flags,
15216 # -berok will link without error, but may produce a broken library.
15217 no_undefined_flag=' ${wl}-bernotok'
15218 allow_undefined_flag=' ${wl}-berok'
15219 if test "$with_gnu_ld" = yes; then
15220 # We only use this code for GNU lds that support --whole-archive.
15221 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15222 else
15223 # Exported symbols can be pulled into shared objects from archives
15224 whole_archive_flag_spec='$convenience'
15226 archive_cmds_need_lc=yes
15227 # This is similar to how AIX traditionally builds its shared libraries.
15228 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'
15233 amigaos*)
15234 case $host_cpu in
15235 powerpc)
15236 # see comment about AmigaOS4 .so support
15237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15238 archive_expsym_cmds=''
15240 m68k)
15241 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)'
15242 hardcode_libdir_flag_spec='-L$libdir'
15243 hardcode_minus_L=yes
15245 esac
15248 bsdi[45]*)
15249 export_dynamic_flag_spec=-rdynamic
15252 cygwin* | mingw* | pw32* | cegcc*)
15253 # When not using gcc, we currently assume that we are using
15254 # Microsoft Visual C++.
15255 # hardcode_libdir_flag_spec is actually meaningless, as there is
15256 # no search path for DLLs.
15257 hardcode_libdir_flag_spec=' '
15258 allow_undefined_flag=unsupported
15259 # Tell ltmain to make .lib files, not .a files.
15260 libext=lib
15261 # Tell ltmain to make .dll files, not .so files.
15262 shrext_cmds=".dll"
15263 # FIXME: Setting linknames here is a bad hack.
15264 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15265 # The linker will automatically build a .lib file if we build a DLL.
15266 old_archive_from_new_cmds='true'
15267 # FIXME: Should let the user specify the lib program.
15268 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15269 fix_srcfile_path='`cygpath -w "$srcfile"`'
15270 enable_shared_with_static_runtimes=yes
15273 darwin* | rhapsody*)
15276 archive_cmds_need_lc=no
15277 hardcode_direct=no
15278 hardcode_automatic=yes
15279 hardcode_shlibpath_var=unsupported
15280 if test "$lt_cv_ld_force_load" = "yes"; then
15281 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\"`'
15282 else
15283 whole_archive_flag_spec=''
15285 link_all_deplibs=yes
15286 allow_undefined_flag="$_lt_dar_allow_undefined"
15287 case $cc_basename in
15288 ifort*) _lt_dar_can_shared=yes ;;
15289 *) _lt_dar_can_shared=$GCC ;;
15290 esac
15291 if test "$_lt_dar_can_shared" = "yes"; then
15292 output_verbose_link_cmd=func_echo_all
15293 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15294 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15295 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}"
15296 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}"
15298 else
15299 ld_shlibs=no
15304 dgux*)
15305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15306 hardcode_libdir_flag_spec='-L$libdir'
15307 hardcode_shlibpath_var=no
15310 freebsd1*)
15311 ld_shlibs=no
15314 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15315 # support. Future versions do this automatically, but an explicit c++rt0.o
15316 # does not break anything, and helps significantly (at the cost of a little
15317 # extra space).
15318 freebsd2.2*)
15319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15320 hardcode_libdir_flag_spec='-R$libdir'
15321 hardcode_direct=yes
15322 hardcode_shlibpath_var=no
15325 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15326 freebsd2*)
15327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15328 hardcode_direct=yes
15329 hardcode_minus_L=yes
15330 hardcode_shlibpath_var=no
15333 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15334 freebsd* | dragonfly*)
15335 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15336 hardcode_libdir_flag_spec='-R$libdir'
15337 hardcode_direct=yes
15338 hardcode_shlibpath_var=no
15341 hpux9*)
15342 if test "$GCC" = yes; then
15343 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'
15344 else
15345 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'
15347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15348 hardcode_libdir_separator=:
15349 hardcode_direct=yes
15351 # hardcode_minus_L: Not really in the search PATH,
15352 # but as the default location of the library.
15353 hardcode_minus_L=yes
15354 export_dynamic_flag_spec='${wl}-E'
15357 hpux10*)
15358 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15359 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15360 else
15361 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15363 if test "$with_gnu_ld" = no; then
15364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15365 hardcode_libdir_flag_spec_ld='+b $libdir'
15366 hardcode_libdir_separator=:
15367 hardcode_direct=yes
15368 hardcode_direct_absolute=yes
15369 export_dynamic_flag_spec='${wl}-E'
15370 # hardcode_minus_L: Not really in the search PATH,
15371 # but as the default location of the library.
15372 hardcode_minus_L=yes
15376 hpux11*)
15377 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15378 case $host_cpu in
15379 hppa*64*)
15380 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15382 ia64*)
15383 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15386 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15388 esac
15389 else
15390 case $host_cpu in
15391 hppa*64*)
15392 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15394 ia64*)
15395 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15399 # Older versions of the 11.00 compiler do not understand -b yet
15400 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15402 $as_echo_n "checking if $CC understands -b... " >&6; }
15403 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15404 $as_echo_n "(cached) " >&6
15405 else
15406 lt_cv_prog_compiler__b=no
15407 save_LDFLAGS="$LDFLAGS"
15408 LDFLAGS="$LDFLAGS -b"
15409 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15410 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15411 # The linker can only warn and ignore the option if not recognized
15412 # So say no if there are warnings
15413 if test -s conftest.err; then
15414 # Append any errors to the config.log.
15415 cat conftest.err 1>&5
15416 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15418 if diff conftest.exp conftest.er2 >/dev/null; then
15419 lt_cv_prog_compiler__b=yes
15421 else
15422 lt_cv_prog_compiler__b=yes
15425 $RM -r conftest*
15426 LDFLAGS="$save_LDFLAGS"
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15430 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15432 if test x"$lt_cv_prog_compiler__b" = xyes; then
15433 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15434 else
15435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15439 esac
15441 if test "$with_gnu_ld" = no; then
15442 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15443 hardcode_libdir_separator=:
15445 case $host_cpu in
15446 hppa*64*|ia64*)
15447 hardcode_direct=no
15448 hardcode_shlibpath_var=no
15451 hardcode_direct=yes
15452 hardcode_direct_absolute=yes
15453 export_dynamic_flag_spec='${wl}-E'
15455 # hardcode_minus_L: Not really in the search PATH,
15456 # but as the default location of the library.
15457 hardcode_minus_L=yes
15459 esac
15463 irix5* | irix6* | nonstopux*)
15464 if test "$GCC" = yes; then
15465 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'
15466 # Try to use the -exported_symbol ld option, if it does not
15467 # work, assume that -exports_file does not work either and
15468 # implicitly export all symbols.
15469 save_LDFLAGS="$LDFLAGS"
15470 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15472 /* end confdefs.h. */
15473 int foo(void) {}
15474 _ACEOF
15475 if ac_fn_c_try_link "$LINENO"; then :
15476 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'
15479 rm -f core conftest.err conftest.$ac_objext \
15480 conftest$ac_exeext conftest.$ac_ext
15481 LDFLAGS="$save_LDFLAGS"
15482 else
15483 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'
15484 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'
15486 archive_cmds_need_lc='no'
15487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15488 hardcode_libdir_separator=:
15489 inherit_rpath=yes
15490 link_all_deplibs=yes
15493 netbsd*)
15494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15496 else
15497 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15499 hardcode_libdir_flag_spec='-R$libdir'
15500 hardcode_direct=yes
15501 hardcode_shlibpath_var=no
15504 newsos6)
15505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506 hardcode_direct=yes
15507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15508 hardcode_libdir_separator=:
15509 hardcode_shlibpath_var=no
15512 *nto* | *qnx*)
15515 openbsd*)
15516 if test -f /usr/libexec/ld.so; then
15517 hardcode_direct=yes
15518 hardcode_shlibpath_var=no
15519 hardcode_direct_absolute=yes
15520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15522 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15524 export_dynamic_flag_spec='${wl}-E'
15525 else
15526 case $host_os in
15527 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15529 hardcode_libdir_flag_spec='-R$libdir'
15532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15533 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15535 esac
15537 else
15538 ld_shlibs=no
15542 os2*)
15543 hardcode_libdir_flag_spec='-L$libdir'
15544 hardcode_minus_L=yes
15545 allow_undefined_flag=unsupported
15546 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'
15547 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15550 osf3*)
15551 if test "$GCC" = yes; then
15552 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15553 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'
15554 else
15555 allow_undefined_flag=' -expect_unresolved \*'
15556 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'
15558 archive_cmds_need_lc='no'
15559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15560 hardcode_libdir_separator=:
15563 osf4* | osf5*) # as osf3* with the addition of -msym flag
15564 if test "$GCC" = yes; then
15565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15566 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'
15567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15568 else
15569 allow_undefined_flag=' -expect_unresolved \*'
15570 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'
15571 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~
15572 $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'
15574 # Both c and cxx compiler support -rpath directly
15575 hardcode_libdir_flag_spec='-rpath $libdir'
15577 archive_cmds_need_lc='no'
15578 hardcode_libdir_separator=:
15581 solaris*)
15582 no_undefined_flag=' -z defs'
15583 if test "$GCC" = yes; then
15584 wlarc='${wl}'
15585 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15587 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15588 else
15589 case `$CC -V 2>&1` in
15590 *"Compilers 5.0"*)
15591 wlarc=''
15592 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15593 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15594 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15597 wlarc='${wl}'
15598 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15600 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15602 esac
15604 hardcode_libdir_flag_spec='-R$libdir'
15605 hardcode_shlibpath_var=no
15606 case $host_os in
15607 solaris2.[0-5] | solaris2.[0-5].*) ;;
15609 # The compiler driver will combine and reorder linker options,
15610 # but understands `-z linker_flag'. GCC discards it without `$wl',
15611 # but is careful enough not to reorder.
15612 # Supported since Solaris 2.6 (maybe 2.5.1?)
15613 if test "$GCC" = yes; then
15614 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15615 else
15616 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15619 esac
15620 link_all_deplibs=yes
15623 sunos4*)
15624 if test "x$host_vendor" = xsequent; then
15625 # Use $CC to link under sequent, because it throws in some extra .o
15626 # files that make .init and .fini sections work.
15627 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15628 else
15629 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15631 hardcode_libdir_flag_spec='-L$libdir'
15632 hardcode_direct=yes
15633 hardcode_minus_L=yes
15634 hardcode_shlibpath_var=no
15637 sysv4)
15638 case $host_vendor in
15639 sni)
15640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641 hardcode_direct=yes # is this really true???
15643 siemens)
15644 ## LD is ld it makes a PLAMLIB
15645 ## CC just makes a GrossModule.
15646 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15647 reload_cmds='$CC -r -o $output$reload_objs'
15648 hardcode_direct=no
15650 motorola)
15651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15652 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15654 esac
15655 runpath_var='LD_RUN_PATH'
15656 hardcode_shlibpath_var=no
15659 sysv4.3*)
15660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661 hardcode_shlibpath_var=no
15662 export_dynamic_flag_spec='-Bexport'
15665 sysv4*MP*)
15666 if test -d /usr/nec; then
15667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15668 hardcode_shlibpath_var=no
15669 runpath_var=LD_RUN_PATH
15670 hardcode_runpath_var=yes
15671 ld_shlibs=yes
15675 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15676 no_undefined_flag='${wl}-z,text'
15677 archive_cmds_need_lc=no
15678 hardcode_shlibpath_var=no
15679 runpath_var='LD_RUN_PATH'
15681 if test "$GCC" = yes; then
15682 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15683 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15684 else
15685 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15686 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15690 sysv5* | sco3.2v5* | sco5v6*)
15691 # Note: We can NOT use -z defs as we might desire, because we do not
15692 # link with -lc, and that would cause any symbols used from libc to
15693 # always be unresolved, which means just about no library would
15694 # ever link correctly. If we're not using GNU ld we use -z text
15695 # though, which does catch some bad symbols but isn't as heavy-handed
15696 # as -z defs.
15697 no_undefined_flag='${wl}-z,text'
15698 allow_undefined_flag='${wl}-z,nodefs'
15699 archive_cmds_need_lc=no
15700 hardcode_shlibpath_var=no
15701 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15702 hardcode_libdir_separator=':'
15703 link_all_deplibs=yes
15704 export_dynamic_flag_spec='${wl}-Bexport'
15705 runpath_var='LD_RUN_PATH'
15707 if test "$GCC" = yes; then
15708 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15709 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15710 else
15711 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15712 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15716 uts4*)
15717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15718 hardcode_libdir_flag_spec='-L$libdir'
15719 hardcode_shlibpath_var=no
15723 ld_shlibs=no
15725 esac
15727 if test x$host_vendor = xsni; then
15728 case $host in
15729 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15730 export_dynamic_flag_spec='${wl}-Blargedynsym'
15732 esac
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15737 $as_echo "$ld_shlibs" >&6; }
15738 test "$ld_shlibs" = no && can_build_shared=no
15740 with_gnu_ld=$with_gnu_ld
15757 # Do we need to explicitly link libc?
15759 case "x$archive_cmds_need_lc" in
15760 x|xyes)
15761 # Assume -lc should be added
15762 archive_cmds_need_lc=yes
15764 if test "$enable_shared" = yes && test "$GCC" = yes; then
15765 case $archive_cmds in
15766 *'~'*)
15767 # FIXME: we may have to deal with multi-command sequences.
15769 '$CC '*)
15770 # Test whether the compiler implicitly links with -lc since on some
15771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15772 # to ld, don't add -lc before -lgcc.
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15774 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15775 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 $RM conftest*
15779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15782 (eval $ac_compile) 2>&5
15783 ac_status=$?
15784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15785 test $ac_status = 0; } 2>conftest.err; then
15786 soname=conftest
15787 lib=conftest
15788 libobjs=conftest.$ac_objext
15789 deplibs=
15790 wl=$lt_prog_compiler_wl
15791 pic_flag=$lt_prog_compiler_pic
15792 compiler_flags=-v
15793 linker_flags=-v
15794 verstring=
15795 output_objdir=.
15796 libname=conftest
15797 lt_save_allow_undefined_flag=$allow_undefined_flag
15798 allow_undefined_flag=
15799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15800 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15801 ac_status=$?
15802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15803 test $ac_status = 0; }
15804 then
15805 lt_cv_archive_cmds_need_lc=no
15806 else
15807 lt_cv_archive_cmds_need_lc=yes
15809 allow_undefined_flag=$lt_save_allow_undefined_flag
15810 else
15811 cat conftest.err 1>&5
15813 $RM conftest*
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15817 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15818 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15820 esac
15823 esac
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15982 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15984 if test "$GCC" = yes; then
15985 case $host_os in
15986 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15987 *) lt_awk_arg="/^libraries:/" ;;
15988 esac
15989 case $host_os in
15990 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15991 *) lt_sed_strip_eq="s,=/,/,g" ;;
15992 esac
15993 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15994 case $lt_search_path_spec in
15995 *\;*)
15996 # if the path contains ";" then we assume it to be the separator
15997 # otherwise default to the standard path separator (i.e. ":") - it is
15998 # assumed that no part of a normal pathname contains ";" but that should
15999 # okay in the real world where ";" in dirpaths is itself problematic.
16000 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16003 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16005 esac
16006 # Ok, now we have the path, separated by spaces, we can step through it
16007 # and add multilib dir if necessary.
16008 lt_tmp_lt_search_path_spec=
16009 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16010 for lt_sys_path in $lt_search_path_spec; do
16011 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16012 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16013 else
16014 test -d "$lt_sys_path" && \
16015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16017 done
16018 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16019 BEGIN {RS=" "; FS="/|\n";} {
16020 lt_foo="";
16021 lt_count=0;
16022 for (lt_i = NF; lt_i > 0; lt_i--) {
16023 if ($lt_i != "" && $lt_i != ".") {
16024 if ($lt_i == "..") {
16025 lt_count++;
16026 } else {
16027 if (lt_count == 0) {
16028 lt_foo="/" $lt_i lt_foo;
16029 } else {
16030 lt_count--;
16035 if (lt_foo != "") { lt_freq[lt_foo]++; }
16036 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16038 # AWK program above erroneously prepends '/' to C:/dos/paths
16039 # for these hosts.
16040 case $host_os in
16041 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16042 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16043 esac
16044 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16045 else
16046 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16048 library_names_spec=
16049 libname_spec='lib$name'
16050 soname_spec=
16051 shrext_cmds=".so"
16052 postinstall_cmds=
16053 postuninstall_cmds=
16054 finish_cmds=
16055 finish_eval=
16056 shlibpath_var=
16057 shlibpath_overrides_runpath=unknown
16058 version_type=none
16059 dynamic_linker="$host_os ld.so"
16060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16061 need_lib_prefix=unknown
16062 hardcode_into_libs=no
16064 # when you set need_version to no, make sure it does not cause -set_version
16065 # flags to be left without arguments
16066 need_version=unknown
16068 case $host_os in
16069 aix3*)
16070 version_type=linux
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16072 shlibpath_var=LIBPATH
16074 # AIX 3 has no versioning support, so we append a major version to the name.
16075 soname_spec='${libname}${release}${shared_ext}$major'
16078 aix[4-9]*)
16079 version_type=linux
16080 need_lib_prefix=no
16081 need_version=no
16082 hardcode_into_libs=yes
16083 if test "$host_cpu" = ia64; then
16084 # AIX 5 supports IA64
16085 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 else
16088 # With GCC up to 2.95.x, collect2 would create an import file
16089 # for dependence libraries. The import file would start with
16090 # the line `#! .'. This would cause the generated library to
16091 # depend on `.', always an invalid library. This was fixed in
16092 # development snapshots of GCC prior to 3.0.
16093 case $host_os in
16094 aix4 | aix4.[01] | aix4.[01].*)
16095 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16096 echo ' yes '
16097 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16099 else
16100 can_build_shared=no
16103 esac
16104 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16105 # soname into executable. Probably we can add versioning support to
16106 # collect2, so additional links can be useful in future.
16107 if test "$aix_use_runtimelinking" = yes; then
16108 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16109 # instead of lib<name>.a to let people know that these are not
16110 # typical AIX shared libraries.
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112 else
16113 # We preserve .a as extension for shared libraries through AIX4.2
16114 # and later when we are not doing run time linking.
16115 library_names_spec='${libname}${release}.a $libname.a'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16118 shlibpath_var=LIBPATH
16122 amigaos*)
16123 case $host_cpu in
16124 powerpc)
16125 # Since July 2007 AmigaOS4 officially supports .so libraries.
16126 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129 m68k)
16130 library_names_spec='$libname.ixlibrary $libname.a'
16131 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16132 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'
16134 esac
16137 beos*)
16138 library_names_spec='${libname}${shared_ext}'
16139 dynamic_linker="$host_os ld.so"
16140 shlibpath_var=LIBRARY_PATH
16143 bsdi[45]*)
16144 version_type=linux
16145 need_version=no
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 soname_spec='${libname}${release}${shared_ext}$major'
16148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16149 shlibpath_var=LD_LIBRARY_PATH
16150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16152 # the default ld.so.conf also contains /usr/contrib/lib and
16153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16154 # libtool to hard-code these into programs
16157 cygwin* | mingw* | pw32* | cegcc*)
16158 version_type=windows
16159 shrext_cmds=".dll"
16160 need_version=no
16161 need_lib_prefix=no
16163 case $GCC,$host_os in
16164 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16165 library_names_spec='$libname.dll.a'
16166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16167 postinstall_cmds='base_file=`basename \${file}`~
16168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16169 dldir=$destdir/`dirname \$dlpath`~
16170 test -d \$dldir || mkdir -p \$dldir~
16171 $install_prog $dir/$dlname \$dldir/$dlname~
16172 chmod a+x \$dldir/$dlname~
16173 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16174 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16177 dlpath=$dir/\$dldll~
16178 $RM \$dlpath'
16179 shlibpath_overrides_runpath=yes
16181 case $host_os in
16182 cygwin*)
16183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16186 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16188 mingw* | cegcc*)
16189 # MinGW DLLs use traditional 'lib' prefix
16190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16192 pw32*)
16193 # pw32 DLLs use 'pw' prefix rather than 'lib'
16194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16196 esac
16200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16202 esac
16203 dynamic_linker='Win32 ld.exe'
16204 # FIXME: first we should search . and the directory the executable is in
16205 shlibpath_var=PATH
16208 darwin* | rhapsody*)
16209 dynamic_linker="$host_os dyld"
16210 version_type=darwin
16211 need_lib_prefix=no
16212 need_version=no
16213 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16214 soname_spec='${libname}${release}${major}$shared_ext'
16215 shlibpath_overrides_runpath=yes
16216 shlibpath_var=DYLD_LIBRARY_PATH
16217 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16219 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16220 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16223 dgux*)
16224 version_type=linux
16225 need_lib_prefix=no
16226 need_version=no
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16232 freebsd1*)
16233 dynamic_linker=no
16236 freebsd* | dragonfly*)
16237 # DragonFly does not have aout. When/if they implement a new
16238 # versioning mechanism, adjust this.
16239 if test -x /usr/bin/objformat; then
16240 objformat=`/usr/bin/objformat`
16241 else
16242 case $host_os in
16243 freebsd[123]*) objformat=aout ;;
16244 *) objformat=elf ;;
16245 esac
16247 version_type=freebsd-$objformat
16248 case $version_type in
16249 freebsd-elf*)
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16251 need_version=no
16252 need_lib_prefix=no
16254 freebsd-*)
16255 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16256 need_version=yes
16258 esac
16259 shlibpath_var=LD_LIBRARY_PATH
16260 case $host_os in
16261 freebsd2*)
16262 shlibpath_overrides_runpath=yes
16264 freebsd3.[01]* | freebsdelf3.[01]*)
16265 shlibpath_overrides_runpath=yes
16266 hardcode_into_libs=yes
16268 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16269 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16270 shlibpath_overrides_runpath=no
16271 hardcode_into_libs=yes
16273 *) # from 4.6 on, and DragonFly
16274 shlibpath_overrides_runpath=yes
16275 hardcode_into_libs=yes
16277 esac
16280 gnu*)
16281 version_type=linux
16282 need_lib_prefix=no
16283 need_version=no
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 shlibpath_var=LD_LIBRARY_PATH
16287 hardcode_into_libs=yes
16290 haiku*)
16291 version_type=linux
16292 need_lib_prefix=no
16293 need_version=no
16294 dynamic_linker="$host_os runtime_loader"
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16296 soname_spec='${libname}${release}${shared_ext}$major'
16297 shlibpath_var=LIBRARY_PATH
16298 shlibpath_overrides_runpath=yes
16299 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16300 hardcode_into_libs=yes
16303 hpux9* | hpux10* | hpux11*)
16304 # Give a soname corresponding to the major version so that dld.sl refuses to
16305 # link against other versions.
16306 version_type=sunos
16307 need_lib_prefix=no
16308 need_version=no
16309 case $host_cpu in
16310 ia64*)
16311 shrext_cmds='.so'
16312 hardcode_into_libs=yes
16313 dynamic_linker="$host_os dld.so"
16314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16317 soname_spec='${libname}${release}${shared_ext}$major'
16318 if test "X$HPUX_IA64_MODE" = X32; then
16319 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16320 else
16321 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16325 hppa*64*)
16326 shrext_cmds='.sl'
16327 hardcode_into_libs=yes
16328 dynamic_linker="$host_os dld.sl"
16329 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16337 shrext_cmds='.sl'
16338 dynamic_linker="$host_os dld.sl"
16339 shlibpath_var=SHLIB_PATH
16340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16344 esac
16345 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16346 postinstall_cmds='chmod 555 $lib'
16347 # or fails outright, so override atomically:
16348 install_override_mode=555
16351 interix[3-9]*)
16352 version_type=linux
16353 need_lib_prefix=no
16354 need_version=no
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16356 soname_spec='${libname}${release}${shared_ext}$major'
16357 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 shlibpath_overrides_runpath=no
16360 hardcode_into_libs=yes
16363 irix5* | irix6* | nonstopux*)
16364 case $host_os in
16365 nonstopux*) version_type=nonstopux ;;
16367 if test "$lt_cv_prog_gnu_ld" = yes; then
16368 version_type=linux
16369 else
16370 version_type=irix
16371 fi ;;
16372 esac
16373 need_lib_prefix=no
16374 need_version=no
16375 soname_spec='${libname}${release}${shared_ext}$major'
16376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16377 case $host_os in
16378 irix5* | nonstopux*)
16379 libsuff= shlibsuff=
16382 case $LD in # libtool.m4 will add one of these switches to LD
16383 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16384 libsuff= shlibsuff= libmagic=32-bit;;
16385 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16386 libsuff=32 shlibsuff=N32 libmagic=N32;;
16387 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16388 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16389 *) libsuff= shlibsuff= libmagic=never-match;;
16390 esac
16392 esac
16393 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16394 shlibpath_overrides_runpath=no
16395 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16396 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16397 hardcode_into_libs=yes
16400 # No shared lib support for Linux oldld, aout, or coff.
16401 linux*oldld* | linux*aout* | linux*coff*)
16402 dynamic_linker=no
16405 # This must be Linux ELF.
16406 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16407 version_type=linux
16408 need_lib_prefix=no
16409 need_version=no
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16413 shlibpath_var=LD_LIBRARY_PATH
16414 shlibpath_overrides_runpath=no
16416 # Some binutils ld are patched to set DT_RUNPATH
16417 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16418 $as_echo_n "(cached) " >&6
16419 else
16420 lt_cv_shlibpath_overrides_runpath=no
16421 save_LDFLAGS=$LDFLAGS
16422 save_libdir=$libdir
16423 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16424 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16429 main ()
16433 return 0;
16435 _ACEOF
16436 if ac_fn_c_try_link "$LINENO"; then :
16437 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16438 lt_cv_shlibpath_overrides_runpath=yes
16441 rm -f core conftest.err conftest.$ac_objext \
16442 conftest$ac_exeext conftest.$ac_ext
16443 LDFLAGS=$save_LDFLAGS
16444 libdir=$save_libdir
16448 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16450 # This implies no fast_install, which is unacceptable.
16451 # Some rework will be needed to allow for fast_install
16452 # before this can be enabled.
16453 hardcode_into_libs=yes
16455 # Append ld.so.conf contents to the search path
16456 if test -f /etc/ld.so.conf; then
16457 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' ' '`
16458 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16461 # We used to test for /lib/ld.so.1 and disable shared libraries on
16462 # powerpc, because MkLinux only supported shared libraries with the
16463 # GNU dynamic linker. Since this was broken with cross compilers,
16464 # most powerpc-linux boxes support dynamic linking these days and
16465 # people can always --disable-shared, the test was removed, and we
16466 # assume the GNU/Linux dynamic linker is in use.
16467 dynamic_linker='GNU/Linux ld.so'
16470 netbsd*)
16471 version_type=sunos
16472 need_lib_prefix=no
16473 need_version=no
16474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16477 dynamic_linker='NetBSD (a.out) ld.so'
16478 else
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16480 soname_spec='${libname}${release}${shared_ext}$major'
16481 dynamic_linker='NetBSD ld.elf_so'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 shlibpath_overrides_runpath=yes
16485 hardcode_into_libs=yes
16488 newsos6)
16489 version_type=linux
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath=yes
16495 *nto* | *qnx*)
16496 version_type=qnx
16497 need_lib_prefix=no
16498 need_version=no
16499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500 soname_spec='${libname}${release}${shared_ext}$major'
16501 shlibpath_var=LD_LIBRARY_PATH
16502 shlibpath_overrides_runpath=no
16503 hardcode_into_libs=yes
16504 dynamic_linker='ldqnx.so'
16507 openbsd*)
16508 version_type=sunos
16509 sys_lib_dlsearch_path_spec="/usr/lib"
16510 need_lib_prefix=no
16511 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16512 case $host_os in
16513 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16514 *) need_version=no ;;
16515 esac
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16518 shlibpath_var=LD_LIBRARY_PATH
16519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16520 case $host_os in
16521 openbsd2.[89] | openbsd2.[89].*)
16522 shlibpath_overrides_runpath=no
16525 shlibpath_overrides_runpath=yes
16527 esac
16528 else
16529 shlibpath_overrides_runpath=yes
16533 os2*)
16534 libname_spec='$name'
16535 shrext_cmds=".dll"
16536 need_lib_prefix=no
16537 library_names_spec='$libname${shared_ext} $libname.a'
16538 dynamic_linker='OS/2 ld.exe'
16539 shlibpath_var=LIBPATH
16542 osf3* | osf4* | osf5*)
16543 version_type=osf
16544 need_lib_prefix=no
16545 need_version=no
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16548 shlibpath_var=LD_LIBRARY_PATH
16549 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16550 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16553 rdos*)
16554 dynamic_linker=no
16557 solaris*)
16558 version_type=linux
16559 need_lib_prefix=no
16560 need_version=no
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 shlibpath_overrides_runpath=yes
16565 hardcode_into_libs=yes
16566 # ldd complains unless libraries are executable
16567 postinstall_cmds='chmod +x $lib'
16570 sunos4*)
16571 version_type=sunos
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16573 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16574 shlibpath_var=LD_LIBRARY_PATH
16575 shlibpath_overrides_runpath=yes
16576 if test "$with_gnu_ld" = yes; then
16577 need_lib_prefix=no
16579 need_version=yes
16582 sysv4 | sysv4.3*)
16583 version_type=linux
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 case $host_vendor in
16588 sni)
16589 shlibpath_overrides_runpath=no
16590 need_lib_prefix=no
16591 runpath_var=LD_RUN_PATH
16593 siemens)
16594 need_lib_prefix=no
16596 motorola)
16597 need_lib_prefix=no
16598 need_version=no
16599 shlibpath_overrides_runpath=no
16600 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16602 esac
16605 sysv4*MP*)
16606 if test -d /usr/nec ;then
16607 version_type=linux
16608 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16609 soname_spec='$libname${shared_ext}.$major'
16610 shlibpath_var=LD_LIBRARY_PATH
16614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16615 version_type=freebsd-elf
16616 need_lib_prefix=no
16617 need_version=no
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes
16622 hardcode_into_libs=yes
16623 if test "$with_gnu_ld" = yes; then
16624 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16625 else
16626 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16627 case $host_os in
16628 sco3.2v5*)
16629 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16631 esac
16633 sys_lib_dlsearch_path_spec='/usr/lib'
16636 tpf*)
16637 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16638 version_type=linux
16639 need_lib_prefix=no
16640 need_version=no
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16642 shlibpath_var=LD_LIBRARY_PATH
16643 shlibpath_overrides_runpath=no
16644 hardcode_into_libs=yes
16647 uts4*)
16648 version_type=linux
16649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650 soname_spec='${libname}${release}${shared_ext}$major'
16651 shlibpath_var=LD_LIBRARY_PATH
16655 dynamic_linker=no
16657 esac
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16659 $as_echo "$dynamic_linker" >&6; }
16660 test "$dynamic_linker" = no && can_build_shared=no
16662 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16663 if test "$GCC" = yes; then
16664 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16667 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16668 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16670 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16671 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16766 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16767 hardcode_action=
16768 if test -n "$hardcode_libdir_flag_spec" ||
16769 test -n "$runpath_var" ||
16770 test "X$hardcode_automatic" = "Xyes" ; then
16772 # We can hardcode non-existent directories.
16773 if test "$hardcode_direct" != no &&
16774 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16775 # have to relink, otherwise we might link with an installed library
16776 # when we should be linking with a yet-to-be-installed one
16777 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16778 test "$hardcode_minus_L" != no; then
16779 # Linking always hardcodes the temporary library directory.
16780 hardcode_action=relink
16781 else
16782 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16783 hardcode_action=immediate
16785 else
16786 # We cannot hardcode anything, or else we can only hardcode existing
16787 # directories.
16788 hardcode_action=unsupported
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16791 $as_echo "$hardcode_action" >&6; }
16793 if test "$hardcode_action" = relink ||
16794 test "$inherit_rpath" = yes; then
16795 # Fast installation is not supported
16796 enable_fast_install=no
16797 elif test "$shlibpath_overrides_runpath" = yes ||
16798 test "$enable_shared" = no; then
16799 # Fast installation is not necessary
16800 enable_fast_install=needless
16808 if test "x$enable_dlopen" != xyes; then
16809 enable_dlopen=unknown
16810 enable_dlopen_self=unknown
16811 enable_dlopen_self_static=unknown
16812 else
16813 lt_cv_dlopen=no
16814 lt_cv_dlopen_libs=
16816 case $host_os in
16817 beos*)
16818 lt_cv_dlopen="load_add_on"
16819 lt_cv_dlopen_libs=
16820 lt_cv_dlopen_self=yes
16823 mingw* | pw32* | cegcc*)
16824 lt_cv_dlopen="LoadLibrary"
16825 lt_cv_dlopen_libs=
16828 cygwin*)
16829 lt_cv_dlopen="dlopen"
16830 lt_cv_dlopen_libs=
16833 darwin*)
16834 # if libdl is installed we need to link against it
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16836 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16837 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16838 $as_echo_n "(cached) " >&6
16839 else
16840 ac_check_lib_save_LIBS=$LIBS
16841 LIBS="-ldl $LIBS"
16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16845 /* Override any GCC internal prototype to avoid an error.
16846 Use char because int might match the return type of a GCC
16847 builtin and then its argument prototype would still apply. */
16848 #ifdef __cplusplus
16849 extern "C"
16850 #endif
16851 char dlopen ();
16853 main ()
16855 return dlopen ();
16857 return 0;
16859 _ACEOF
16860 if ac_fn_c_try_link "$LINENO"; then :
16861 ac_cv_lib_dl_dlopen=yes
16862 else
16863 ac_cv_lib_dl_dlopen=no
16865 rm -f core conftest.err conftest.$ac_objext \
16866 conftest$ac_exeext conftest.$ac_ext
16867 LIBS=$ac_check_lib_save_LIBS
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16870 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16871 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16873 else
16875 lt_cv_dlopen="dyld"
16876 lt_cv_dlopen_libs=
16877 lt_cv_dlopen_self=yes
16884 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16885 if test "x$ac_cv_func_shl_load" = x""yes; then :
16886 lt_cv_dlopen="shl_load"
16887 else
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16889 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16890 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16891 $as_echo_n "(cached) " >&6
16892 else
16893 ac_check_lib_save_LIBS=$LIBS
16894 LIBS="-ldld $LIBS"
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h. */
16898 /* Override any GCC internal prototype to avoid an error.
16899 Use char because int might match the return type of a GCC
16900 builtin and then its argument prototype would still apply. */
16901 #ifdef __cplusplus
16902 extern "C"
16903 #endif
16904 char shl_load ();
16906 main ()
16908 return shl_load ();
16910 return 0;
16912 _ACEOF
16913 if ac_fn_c_try_link "$LINENO"; then :
16914 ac_cv_lib_dld_shl_load=yes
16915 else
16916 ac_cv_lib_dld_shl_load=no
16918 rm -f core conftest.err conftest.$ac_objext \
16919 conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16923 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16924 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16925 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16926 else
16927 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16928 if test "x$ac_cv_func_dlopen" = x""yes; then :
16929 lt_cv_dlopen="dlopen"
16930 else
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16932 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16933 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16934 $as_echo_n "(cached) " >&6
16935 else
16936 ac_check_lib_save_LIBS=$LIBS
16937 LIBS="-ldl $LIBS"
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16941 /* Override any GCC internal prototype to avoid an error.
16942 Use char because int might match the return type of a GCC
16943 builtin and then its argument prototype would still apply. */
16944 #ifdef __cplusplus
16945 extern "C"
16946 #endif
16947 char dlopen ();
16949 main ()
16951 return dlopen ();
16953 return 0;
16955 _ACEOF
16956 if ac_fn_c_try_link "$LINENO"; then :
16957 ac_cv_lib_dl_dlopen=yes
16958 else
16959 ac_cv_lib_dl_dlopen=no
16961 rm -f core conftest.err conftest.$ac_objext \
16962 conftest$ac_exeext conftest.$ac_ext
16963 LIBS=$ac_check_lib_save_LIBS
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16966 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16969 else
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16971 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16973 $as_echo_n "(cached) " >&6
16974 else
16975 ac_check_lib_save_LIBS=$LIBS
16976 LIBS="-lsvld $LIBS"
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h. */
16980 /* Override any GCC internal prototype to avoid an error.
16981 Use char because int might match the return type of a GCC
16982 builtin and then its argument prototype would still apply. */
16983 #ifdef __cplusplus
16984 extern "C"
16985 #endif
16986 char dlopen ();
16988 main ()
16990 return dlopen ();
16992 return 0;
16994 _ACEOF
16995 if ac_fn_c_try_link "$LINENO"; then :
16996 ac_cv_lib_svld_dlopen=yes
16997 else
16998 ac_cv_lib_svld_dlopen=no
17000 rm -f core conftest.err conftest.$ac_objext \
17001 conftest$ac_exeext conftest.$ac_ext
17002 LIBS=$ac_check_lib_save_LIBS
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17005 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17006 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17008 else
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17010 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17011 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17012 $as_echo_n "(cached) " >&6
17013 else
17014 ac_check_lib_save_LIBS=$LIBS
17015 LIBS="-ldld $LIBS"
17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17019 /* Override any GCC internal prototype to avoid an error.
17020 Use char because int might match the return type of a GCC
17021 builtin and then its argument prototype would still apply. */
17022 #ifdef __cplusplus
17023 extern "C"
17024 #endif
17025 char dld_link ();
17027 main ()
17029 return dld_link ();
17031 return 0;
17033 _ACEOF
17034 if ac_fn_c_try_link "$LINENO"; then :
17035 ac_cv_lib_dld_dld_link=yes
17036 else
17037 ac_cv_lib_dld_dld_link=no
17039 rm -f core conftest.err conftest.$ac_objext \
17040 conftest$ac_exeext conftest.$ac_ext
17041 LIBS=$ac_check_lib_save_LIBS
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17044 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17045 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17046 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17065 esac
17067 if test "x$lt_cv_dlopen" != xno; then
17068 enable_dlopen=yes
17069 else
17070 enable_dlopen=no
17073 case $lt_cv_dlopen in
17074 dlopen)
17075 save_CPPFLAGS="$CPPFLAGS"
17076 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17078 save_LDFLAGS="$LDFLAGS"
17079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17081 save_LIBS="$LIBS"
17082 LIBS="$lt_cv_dlopen_libs $LIBS"
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17085 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17086 if test "${lt_cv_dlopen_self+set}" = set; then :
17087 $as_echo_n "(cached) " >&6
17088 else
17089 if test "$cross_compiling" = yes; then :
17090 lt_cv_dlopen_self=cross
17091 else
17092 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17093 lt_status=$lt_dlunknown
17094 cat > conftest.$ac_ext <<_LT_EOF
17095 #line 17095 "configure"
17096 #include "confdefs.h"
17098 #if HAVE_DLFCN_H
17099 #include <dlfcn.h>
17100 #endif
17102 #include <stdio.h>
17104 #ifdef RTLD_GLOBAL
17105 # define LT_DLGLOBAL RTLD_GLOBAL
17106 #else
17107 # ifdef DL_GLOBAL
17108 # define LT_DLGLOBAL DL_GLOBAL
17109 # else
17110 # define LT_DLGLOBAL 0
17111 # endif
17112 #endif
17114 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17115 find out it does not work in some platform. */
17116 #ifndef LT_DLLAZY_OR_NOW
17117 # ifdef RTLD_LAZY
17118 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17119 # else
17120 # ifdef DL_LAZY
17121 # define LT_DLLAZY_OR_NOW DL_LAZY
17122 # else
17123 # ifdef RTLD_NOW
17124 # define LT_DLLAZY_OR_NOW RTLD_NOW
17125 # else
17126 # ifdef DL_NOW
17127 # define LT_DLLAZY_OR_NOW DL_NOW
17128 # else
17129 # define LT_DLLAZY_OR_NOW 0
17130 # endif
17131 # endif
17132 # endif
17133 # endif
17134 #endif
17136 /* When -fvisbility=hidden is used, assume the code has been annotated
17137 correspondingly for the symbols needed. */
17138 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17139 void fnord () __attribute__((visibility("default")));
17140 #endif
17142 void fnord () { int i=42; }
17143 int main ()
17145 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17146 int status = $lt_dlunknown;
17148 if (self)
17150 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17151 else
17153 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17154 else puts (dlerror ());
17156 /* dlclose (self); */
17158 else
17159 puts (dlerror ());
17161 return status;
17163 _LT_EOF
17164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17165 (eval $ac_link) 2>&5
17166 ac_status=$?
17167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17168 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17169 (./conftest; exit; ) >&5 2>/dev/null
17170 lt_status=$?
17171 case x$lt_status in
17172 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17173 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17174 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17175 esac
17176 else :
17177 # compilation failed
17178 lt_cv_dlopen_self=no
17181 rm -fr conftest*
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17186 $as_echo "$lt_cv_dlopen_self" >&6; }
17188 if test "x$lt_cv_dlopen_self" = xyes; then
17189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17191 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17192 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17193 $as_echo_n "(cached) " >&6
17194 else
17195 if test "$cross_compiling" = yes; then :
17196 lt_cv_dlopen_self_static=cross
17197 else
17198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17199 lt_status=$lt_dlunknown
17200 cat > conftest.$ac_ext <<_LT_EOF
17201 #line 17201 "configure"
17202 #include "confdefs.h"
17204 #if HAVE_DLFCN_H
17205 #include <dlfcn.h>
17206 #endif
17208 #include <stdio.h>
17210 #ifdef RTLD_GLOBAL
17211 # define LT_DLGLOBAL RTLD_GLOBAL
17212 #else
17213 # ifdef DL_GLOBAL
17214 # define LT_DLGLOBAL DL_GLOBAL
17215 # else
17216 # define LT_DLGLOBAL 0
17217 # endif
17218 #endif
17220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17221 find out it does not work in some platform. */
17222 #ifndef LT_DLLAZY_OR_NOW
17223 # ifdef RTLD_LAZY
17224 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17225 # else
17226 # ifdef DL_LAZY
17227 # define LT_DLLAZY_OR_NOW DL_LAZY
17228 # else
17229 # ifdef RTLD_NOW
17230 # define LT_DLLAZY_OR_NOW RTLD_NOW
17231 # else
17232 # ifdef DL_NOW
17233 # define LT_DLLAZY_OR_NOW DL_NOW
17234 # else
17235 # define LT_DLLAZY_OR_NOW 0
17236 # endif
17237 # endif
17238 # endif
17239 # endif
17240 #endif
17242 /* When -fvisbility=hidden is used, assume the code has been annotated
17243 correspondingly for the symbols needed. */
17244 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17245 void fnord () __attribute__((visibility("default")));
17246 #endif
17248 void fnord () { int i=42; }
17249 int main ()
17251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17252 int status = $lt_dlunknown;
17254 if (self)
17256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17257 else
17259 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17260 else puts (dlerror ());
17262 /* dlclose (self); */
17264 else
17265 puts (dlerror ());
17267 return status;
17269 _LT_EOF
17270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17271 (eval $ac_link) 2>&5
17272 ac_status=$?
17273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17274 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17275 (./conftest; exit; ) >&5 2>/dev/null
17276 lt_status=$?
17277 case x$lt_status in
17278 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17279 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17280 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17281 esac
17282 else :
17283 # compilation failed
17284 lt_cv_dlopen_self_static=no
17287 rm -fr conftest*
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17292 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17295 CPPFLAGS="$save_CPPFLAGS"
17296 LDFLAGS="$save_LDFLAGS"
17297 LIBS="$save_LIBS"
17299 esac
17301 case $lt_cv_dlopen_self in
17302 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17303 *) enable_dlopen_self=unknown ;;
17304 esac
17306 case $lt_cv_dlopen_self_static in
17307 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17308 *) enable_dlopen_self_static=unknown ;;
17309 esac
17328 striplib=
17329 old_striplib=
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17331 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17332 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17333 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17334 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17336 $as_echo "yes" >&6; }
17337 else
17338 # FIXME - insert some real tests, host_os isn't really good enough
17339 case $host_os in
17340 darwin*)
17341 if test -n "$STRIP" ; then
17342 striplib="$STRIP -x"
17343 old_striplib="$STRIP -S"
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17345 $as_echo "yes" >&6; }
17346 else
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17348 $as_echo "no" >&6; }
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17353 $as_echo "no" >&6; }
17355 esac
17369 # Report which library types will actually be built
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17371 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17373 $as_echo "$can_build_shared" >&6; }
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17376 $as_echo_n "checking whether to build shared libraries... " >&6; }
17377 test "$can_build_shared" = "no" && enable_shared=no
17379 # On AIX, shared libraries and static libraries use the same namespace, and
17380 # are all built from PIC.
17381 case $host_os in
17382 aix3*)
17383 test "$enable_shared" = yes && enable_static=no
17384 if test -n "$RANLIB"; then
17385 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17386 postinstall_cmds='$RANLIB $lib'
17390 aix[4-9]*)
17391 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17392 test "$enable_shared" = yes && enable_static=no
17395 esac
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17397 $as_echo "$enable_shared" >&6; }
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17400 $as_echo_n "checking whether to build static libraries... " >&6; }
17401 # Make sure either enable_shared or enable_static is yes.
17402 test "$enable_shared" = yes || enable_static=yes
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17404 $as_echo "$enable_static" >&6; }
17410 ac_ext=c
17411 ac_cpp='$CPP $CPPFLAGS'
17412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17416 CC="$lt_save_CC"
17418 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17419 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17420 (test "X$CXX" != "Xg++"))) ; then
17421 ac_ext=cpp
17422 ac_cpp='$CXXCPP $CPPFLAGS'
17423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17427 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17428 if test -z "$CXXCPP"; then
17429 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17430 $as_echo_n "(cached) " >&6
17431 else
17432 # Double quotes because CXXCPP needs to be expanded
17433 for CXXCPP in "$CXX -E" "/lib/cpp"
17435 ac_preproc_ok=false
17436 for ac_cxx_preproc_warn_flag in '' yes
17438 # Use a header file that comes with gcc, so configuring glibc
17439 # with a fresh cross-compiler works.
17440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17441 # <limits.h> exists even on freestanding compilers.
17442 # On the NeXT, cc -E runs the code through the compiler's parser,
17443 # not just through cpp. "Syntax error" is here to catch this case.
17444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17446 #ifdef __STDC__
17447 # include <limits.h>
17448 #else
17449 # include <assert.h>
17450 #endif
17451 Syntax error
17452 _ACEOF
17453 if ac_fn_cxx_try_cpp "$LINENO"; then :
17455 else
17456 # Broken: fails on valid input.
17457 continue
17459 rm -f conftest.err conftest.$ac_ext
17461 # OK, works on sane cases. Now check whether nonexistent headers
17462 # can be detected and how.
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465 #include <ac_nonexistent.h>
17466 _ACEOF
17467 if ac_fn_cxx_try_cpp "$LINENO"; then :
17468 # Broken: success on invalid input.
17469 continue
17470 else
17471 # Passes both tests.
17472 ac_preproc_ok=:
17473 break
17475 rm -f conftest.err conftest.$ac_ext
17477 done
17478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17479 rm -f conftest.err conftest.$ac_ext
17480 if $ac_preproc_ok; then :
17481 break
17484 done
17485 ac_cv_prog_CXXCPP=$CXXCPP
17488 CXXCPP=$ac_cv_prog_CXXCPP
17489 else
17490 ac_cv_prog_CXXCPP=$CXXCPP
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17493 $as_echo "$CXXCPP" >&6; }
17494 ac_preproc_ok=false
17495 for ac_cxx_preproc_warn_flag in '' yes
17497 # Use a header file that comes with gcc, so configuring glibc
17498 # with a fresh cross-compiler works.
17499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500 # <limits.h> exists even on freestanding compilers.
17501 # On the NeXT, cc -E runs the code through the compiler's parser,
17502 # not just through cpp. "Syntax error" is here to catch this case.
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17505 #ifdef __STDC__
17506 # include <limits.h>
17507 #else
17508 # include <assert.h>
17509 #endif
17510 Syntax error
17511 _ACEOF
17512 if ac_fn_cxx_try_cpp "$LINENO"; then :
17514 else
17515 # Broken: fails on valid input.
17516 continue
17518 rm -f conftest.err conftest.$ac_ext
17520 # OK, works on sane cases. Now check whether nonexistent headers
17521 # can be detected and how.
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17524 #include <ac_nonexistent.h>
17525 _ACEOF
17526 if ac_fn_cxx_try_cpp "$LINENO"; then :
17527 # Broken: success on invalid input.
17528 continue
17529 else
17530 # Passes both tests.
17531 ac_preproc_ok=:
17532 break
17534 rm -f conftest.err conftest.$ac_ext
17536 done
17537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17538 rm -f conftest.err conftest.$ac_ext
17539 if $ac_preproc_ok; then :
17541 else
17542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17544 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17545 See \`config.log' for more details." "$LINENO" 5; }
17548 ac_ext=c
17549 ac_cpp='$CPP $CPPFLAGS'
17550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17554 else
17555 _lt_caught_CXX_error=yes
17558 ac_ext=cpp
17559 ac_cpp='$CXXCPP $CPPFLAGS'
17560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17564 archive_cmds_need_lc_CXX=no
17565 allow_undefined_flag_CXX=
17566 always_export_symbols_CXX=no
17567 archive_expsym_cmds_CXX=
17568 compiler_needs_object_CXX=no
17569 export_dynamic_flag_spec_CXX=
17570 hardcode_direct_CXX=no
17571 hardcode_direct_absolute_CXX=no
17572 hardcode_libdir_flag_spec_CXX=
17573 hardcode_libdir_flag_spec_ld_CXX=
17574 hardcode_libdir_separator_CXX=
17575 hardcode_minus_L_CXX=no
17576 hardcode_shlibpath_var_CXX=unsupported
17577 hardcode_automatic_CXX=no
17578 inherit_rpath_CXX=no
17579 module_cmds_CXX=
17580 module_expsym_cmds_CXX=
17581 link_all_deplibs_CXX=unknown
17582 old_archive_cmds_CXX=$old_archive_cmds
17583 reload_flag_CXX=$reload_flag
17584 reload_cmds_CXX=$reload_cmds
17585 no_undefined_flag_CXX=
17586 whole_archive_flag_spec_CXX=
17587 enable_shared_with_static_runtimes_CXX=no
17589 # Source file extension for C++ test sources.
17590 ac_ext=cpp
17592 # Object file extension for compiled C++ test sources.
17593 objext=o
17594 objext_CXX=$objext
17596 # No sense in running all these tests if we already determined that
17597 # the CXX compiler isn't working. Some variables (like enable_shared)
17598 # are currently assumed to apply to all compilers on this platform,
17599 # and will be corrupted by setting them based on a non-working compiler.
17600 if test "$_lt_caught_CXX_error" != yes; then
17601 # Code to be used in simple compile tests
17602 lt_simple_compile_test_code="int some_variable = 0;"
17604 # Code to be used in simple link tests
17605 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17607 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17614 # If no C compiler was specified, use CC.
17615 LTCC=${LTCC-"$CC"}
17617 # If no C compiler flags were specified, use CFLAGS.
17618 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17620 # Allow CC to be a program name with arguments.
17621 compiler=$CC
17624 # save warnings/boilerplate of simple test code
17625 ac_outfile=conftest.$ac_objext
17626 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17628 _lt_compiler_boilerplate=`cat conftest.err`
17629 $RM conftest*
17631 ac_outfile=conftest.$ac_objext
17632 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17634 _lt_linker_boilerplate=`cat conftest.err`
17635 $RM -r conftest*
17638 # Allow CC to be a program name with arguments.
17639 lt_save_CC=$CC
17640 lt_save_LD=$LD
17641 lt_save_GCC=$GCC
17642 GCC=$GXX
17643 lt_save_with_gnu_ld=$with_gnu_ld
17644 lt_save_path_LD=$lt_cv_path_LD
17645 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17646 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17647 else
17648 $as_unset lt_cv_prog_gnu_ld
17650 if test -n "${lt_cv_path_LDCXX+set}"; then
17651 lt_cv_path_LD=$lt_cv_path_LDCXX
17652 else
17653 $as_unset lt_cv_path_LD
17655 test -z "${LDCXX+set}" || LD=$LDCXX
17656 CC=${CXX-"c++"}
17657 compiler=$CC
17658 compiler_CXX=$CC
17659 for cc_temp in $compiler""; do
17660 case $cc_temp in
17661 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17662 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17663 \-*) ;;
17664 *) break;;
17665 esac
17666 done
17667 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17670 if test -n "$compiler"; then
17671 # We don't want -fno-exception when compiling C++ code, so set the
17672 # no_builtin_flag separately
17673 if test "$GXX" = yes; then
17674 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17675 else
17676 lt_prog_compiler_no_builtin_flag_CXX=
17679 if test "$GXX" = yes; then
17680 # Set up default GNU C++ configuration
17684 # Check whether --with-gnu-ld was given.
17685 if test "${with_gnu_ld+set}" = set; then :
17686 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17687 else
17688 with_gnu_ld=no
17691 ac_prog=ld
17692 if test "$GCC" = yes; then
17693 # Check if gcc -print-prog-name=ld gives a path.
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17695 $as_echo_n "checking for ld used by $CC... " >&6; }
17696 case $host in
17697 *-*-mingw*)
17698 # gcc leaves a trailing carriage return which upsets mingw
17699 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17701 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17702 esac
17703 case $ac_prog in
17704 # Accept absolute paths.
17705 [\\/]* | ?:[\\/]*)
17706 re_direlt='/[^/][^/]*/\.\./'
17707 # Canonicalize the pathname of ld
17708 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17709 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17710 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17711 done
17712 test -z "$LD" && LD="$ac_prog"
17715 # If it fails, then pretend we aren't using GCC.
17716 ac_prog=ld
17719 # If it is relative, then search for the first ld in PATH.
17720 with_gnu_ld=unknown
17722 esac
17723 elif test "$with_gnu_ld" = yes; then
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17725 $as_echo_n "checking for GNU ld... " >&6; }
17726 else
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17728 $as_echo_n "checking for non-GNU ld... " >&6; }
17730 if test "${lt_cv_path_LD+set}" = set; then :
17731 $as_echo_n "(cached) " >&6
17732 else
17733 if test -z "$LD"; then
17734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17735 for ac_dir in $PATH; do
17736 IFS="$lt_save_ifs"
17737 test -z "$ac_dir" && ac_dir=.
17738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17739 lt_cv_path_LD="$ac_dir/$ac_prog"
17740 # Check to see if the program is GNU ld. I'd rather use --version,
17741 # but apparently some variants of GNU ld only accept -v.
17742 # Break only if it was the GNU/non-GNU ld that we prefer.
17743 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17744 *GNU* | *'with BFD'*)
17745 test "$with_gnu_ld" != no && break
17748 test "$with_gnu_ld" != yes && break
17750 esac
17752 done
17753 IFS="$lt_save_ifs"
17754 else
17755 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17759 LD="$lt_cv_path_LD"
17760 if test -n "$LD"; then
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17762 $as_echo "$LD" >&6; }
17763 else
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765 $as_echo "no" >&6; }
17767 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17769 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17770 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17771 $as_echo_n "(cached) " >&6
17772 else
17773 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17774 case `$LD -v 2>&1 </dev/null` in
17775 *GNU* | *'with BFD'*)
17776 lt_cv_prog_gnu_ld=yes
17779 lt_cv_prog_gnu_ld=no
17781 esac
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17784 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17785 with_gnu_ld=$lt_cv_prog_gnu_ld
17793 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17794 # archiving commands below assume that GNU ld is being used.
17795 if test "$with_gnu_ld" = yes; then
17796 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17797 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'
17799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17802 # If archive_cmds runs LD, not CC, wlarc should be empty
17803 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17804 # investigate it a little bit more. (MM)
17805 wlarc='${wl}'
17807 # ancient GNU ld didn't support --whole-archive et. al.
17808 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17809 $GREP 'no-whole-archive' > /dev/null; then
17810 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17811 else
17812 whole_archive_flag_spec_CXX=
17814 else
17815 with_gnu_ld=no
17816 wlarc=
17818 # A generic and very simple default shared library creation
17819 # command for GNU C++ for the case where it uses the native
17820 # linker, instead of GNU ld. If possible, this setting should
17821 # overridden to take advantage of the native linker features on
17822 # the platform it is being used on.
17823 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17826 # Commands to make compiler produce verbose output that lists
17827 # what "hidden" libraries, object files and flags are used when
17828 # linking a shared library.
17829 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17831 else
17832 GXX=no
17833 with_gnu_ld=no
17834 wlarc=
17837 # PORTME: fill in a description of your system's C++ link characteristics
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17839 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17840 ld_shlibs_CXX=yes
17841 case $host_os in
17842 aix3*)
17843 # FIXME: insert proper C++ library support
17844 ld_shlibs_CXX=no
17846 aix[4-9]*)
17847 if test "$host_cpu" = ia64; then
17848 # On IA64, the linker does run time linking by default, so we don't
17849 # have to do anything special.
17850 aix_use_runtimelinking=no
17851 exp_sym_flag='-Bexport'
17852 no_entry_flag=""
17853 else
17854 aix_use_runtimelinking=no
17856 # Test if we are trying to use run time linking or normal
17857 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17858 # need to do runtime linking.
17859 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17860 for ld_flag in $LDFLAGS; do
17861 case $ld_flag in
17862 *-brtl*)
17863 aix_use_runtimelinking=yes
17864 break
17866 esac
17867 done
17869 esac
17871 exp_sym_flag='-bexport'
17872 no_entry_flag='-bnoentry'
17875 # When large executables or shared objects are built, AIX ld can
17876 # have problems creating the table of contents. If linking a library
17877 # or program results in "error TOC overflow" add -mminimal-toc to
17878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17881 archive_cmds_CXX=''
17882 hardcode_direct_CXX=yes
17883 hardcode_direct_absolute_CXX=yes
17884 hardcode_libdir_separator_CXX=':'
17885 link_all_deplibs_CXX=yes
17886 file_list_spec_CXX='${wl}-f,'
17888 if test "$GXX" = yes; then
17889 case $host_os in aix4.[012]|aix4.[012].*)
17890 # We only want to do this on AIX 4.2 and lower, the check
17891 # below for broken collect2 doesn't work under 4.3+
17892 collect2name=`${CC} -print-prog-name=collect2`
17893 if test -f "$collect2name" &&
17894 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17895 then
17896 # We have reworked collect2
17898 else
17899 # We have old collect2
17900 hardcode_direct_CXX=unsupported
17901 # It fails to find uninstalled libraries when the uninstalled
17902 # path is not listed in the libpath. Setting hardcode_minus_L
17903 # to unsupported forces relinking
17904 hardcode_minus_L_CXX=yes
17905 hardcode_libdir_flag_spec_CXX='-L$libdir'
17906 hardcode_libdir_separator_CXX=
17908 esac
17909 shared_flag='-shared'
17910 if test "$aix_use_runtimelinking" = yes; then
17911 shared_flag="$shared_flag "'${wl}-G'
17913 else
17914 # not using gcc
17915 if test "$host_cpu" = ia64; then
17916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17917 # chokes on -Wl,-G. The following line is correct:
17918 shared_flag='-G'
17919 else
17920 if test "$aix_use_runtimelinking" = yes; then
17921 shared_flag='${wl}-G'
17922 else
17923 shared_flag='${wl}-bM:SRE'
17928 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17929 # It seems that -bexpall does not export symbols beginning with
17930 # underscore (_), so it is better to generate a list of symbols to
17931 # export.
17932 always_export_symbols_CXX=yes
17933 if test "$aix_use_runtimelinking" = yes; then
17934 # Warning - without using the other runtime loading flags (-brtl),
17935 # -berok will link without error, but may produce a broken library.
17936 allow_undefined_flag_CXX='-berok'
17937 # Determine the default libpath from the value encoded in an empty
17938 # executable.
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17943 main ()
17947 return 0;
17949 _ACEOF
17950 if ac_fn_cxx_try_link "$LINENO"; then :
17952 lt_aix_libpath_sed='
17953 /Import File Strings/,/^$/ {
17954 /^0/ {
17955 s/^0 *\(.*\)$/\1/
17959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17960 # Check for a 64-bit object if we didn't find anything.
17961 if test -z "$aix_libpath"; then
17962 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17965 rm -f core conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17969 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17971 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"
17972 else
17973 if test "$host_cpu" = ia64; then
17974 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17975 allow_undefined_flag_CXX="-z nodefs"
17976 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"
17977 else
17978 # Determine the default libpath from the value encoded in an
17979 # empty executable.
17980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17981 /* end confdefs.h. */
17984 main ()
17988 return 0;
17990 _ACEOF
17991 if ac_fn_cxx_try_link "$LINENO"; then :
17993 lt_aix_libpath_sed='
17994 /Import File Strings/,/^$/ {
17995 /^0/ {
17996 s/^0 *\(.*\)$/\1/
18000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18001 # Check for a 64-bit object if we didn't find anything.
18002 if test -z "$aix_libpath"; then
18003 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18010 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18011 # Warning - without using the other run time loading flags,
18012 # -berok will link without error, but may produce a broken library.
18013 no_undefined_flag_CXX=' ${wl}-bernotok'
18014 allow_undefined_flag_CXX=' ${wl}-berok'
18015 if test "$with_gnu_ld" = yes; then
18016 # We only use this code for GNU lds that support --whole-archive.
18017 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18018 else
18019 # Exported symbols can be pulled into shared objects from archives
18020 whole_archive_flag_spec_CXX='$convenience'
18022 archive_cmds_need_lc_CXX=yes
18023 # This is similar to how AIX traditionally builds its shared
18024 # libraries.
18025 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'
18030 beos*)
18031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18032 allow_undefined_flag_CXX=unsupported
18033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18034 # support --undefined. This deserves some investigation. FIXME
18035 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036 else
18037 ld_shlibs_CXX=no
18041 chorus*)
18042 case $cc_basename in
18044 # FIXME: insert proper C++ library support
18045 ld_shlibs_CXX=no
18047 esac
18050 cygwin* | mingw* | pw32* | cegcc*)
18051 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18052 # as there is no search path for DLLs.
18053 hardcode_libdir_flag_spec_CXX='-L$libdir'
18054 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18055 allow_undefined_flag_CXX=unsupported
18056 always_export_symbols_CXX=no
18057 enable_shared_with_static_runtimes_CXX=yes
18059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18060 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'
18061 # If the export-symbols file already is a .def file (1st line
18062 # is EXPORTS), use it as is; otherwise, prepend...
18063 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18064 cp $export_symbols $output_objdir/$soname.def;
18065 else
18066 echo EXPORTS > $output_objdir/$soname.def;
18067 cat $export_symbols >> $output_objdir/$soname.def;
18069 $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'
18070 else
18071 ld_shlibs_CXX=no
18074 darwin* | rhapsody*)
18077 archive_cmds_need_lc_CXX=no
18078 hardcode_direct_CXX=no
18079 hardcode_automatic_CXX=yes
18080 hardcode_shlibpath_var_CXX=unsupported
18081 if test "$lt_cv_ld_force_load" = "yes"; then
18082 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\"`'
18083 else
18084 whole_archive_flag_spec_CXX=''
18086 link_all_deplibs_CXX=yes
18087 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18088 case $cc_basename in
18089 ifort*) _lt_dar_can_shared=yes ;;
18090 *) _lt_dar_can_shared=$GCC ;;
18091 esac
18092 if test "$_lt_dar_can_shared" = "yes"; then
18093 output_verbose_link_cmd=func_echo_all
18094 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}"
18095 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18096 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}"
18097 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}"
18098 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18099 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}"
18100 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}"
18103 else
18104 ld_shlibs_CXX=no
18109 dgux*)
18110 case $cc_basename in
18111 ec++*)
18112 # FIXME: insert proper C++ library support
18113 ld_shlibs_CXX=no
18115 ghcx*)
18116 # Green Hills C++ Compiler
18117 # FIXME: insert proper C++ library support
18118 ld_shlibs_CXX=no
18121 # FIXME: insert proper C++ library support
18122 ld_shlibs_CXX=no
18124 esac
18127 freebsd[12]*)
18128 # C++ shared libraries reported to be fairly broken before
18129 # switch to ELF
18130 ld_shlibs_CXX=no
18133 freebsd-elf*)
18134 archive_cmds_need_lc_CXX=no
18137 freebsd* | dragonfly*)
18138 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18139 # conventions
18140 ld_shlibs_CXX=yes
18143 gnu*)
18146 haiku*)
18147 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18148 link_all_deplibs_CXX=yes
18151 hpux9*)
18152 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18153 hardcode_libdir_separator_CXX=:
18154 export_dynamic_flag_spec_CXX='${wl}-E'
18155 hardcode_direct_CXX=yes
18156 hardcode_minus_L_CXX=yes # Not in the search PATH,
18157 # but as the default
18158 # location of the library.
18160 case $cc_basename in
18161 CC*)
18162 # FIXME: insert proper C++ library support
18163 ld_shlibs_CXX=no
18165 aCC*)
18166 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'
18167 # Commands to make compiler produce verbose output that lists
18168 # what "hidden" libraries, object files and flags are used when
18169 # linking a shared library.
18171 # There doesn't appear to be a way to prevent this compiler from
18172 # explicitly linking system object files so we need to strip them
18173 # from the output so that they don't get included in the library
18174 # dependencies.
18175 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"'
18178 if test "$GXX" = yes; then
18179 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'
18180 else
18181 # FIXME: insert proper C++ library support
18182 ld_shlibs_CXX=no
18185 esac
18188 hpux10*|hpux11*)
18189 if test $with_gnu_ld = no; then
18190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18191 hardcode_libdir_separator_CXX=:
18193 case $host_cpu in
18194 hppa*64*|ia64*)
18197 export_dynamic_flag_spec_CXX='${wl}-E'
18199 esac
18201 case $host_cpu in
18202 hppa*64*|ia64*)
18203 hardcode_direct_CXX=no
18204 hardcode_shlibpath_var_CXX=no
18207 hardcode_direct_CXX=yes
18208 hardcode_direct_absolute_CXX=yes
18209 hardcode_minus_L_CXX=yes # Not in the search PATH,
18210 # but as the default
18211 # location of the library.
18213 esac
18215 case $cc_basename in
18216 CC*)
18217 # FIXME: insert proper C++ library support
18218 ld_shlibs_CXX=no
18220 aCC*)
18221 case $host_cpu in
18222 hppa*64*)
18223 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18225 ia64*)
18226 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18229 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18231 esac
18232 # Commands to make compiler produce verbose output that lists
18233 # what "hidden" libraries, object files and flags are used when
18234 # linking a shared library.
18236 # There doesn't appear to be a way to prevent this compiler from
18237 # explicitly linking system object files so we need to strip them
18238 # from the output so that they don't get included in the library
18239 # dependencies.
18240 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"'
18243 if test "$GXX" = yes; then
18244 if test $with_gnu_ld = no; then
18245 case $host_cpu in
18246 hppa*64*)
18247 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18249 ia64*)
18250 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18253 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'
18255 esac
18257 else
18258 # FIXME: insert proper C++ library support
18259 ld_shlibs_CXX=no
18262 esac
18265 interix[3-9]*)
18266 hardcode_direct_CXX=no
18267 hardcode_shlibpath_var_CXX=no
18268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18269 export_dynamic_flag_spec_CXX='${wl}-E'
18270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18271 # Instead, shared libraries are loaded at an image base (0x10000000 by
18272 # default) and relocated if they conflict, which is a slow very memory
18273 # consuming and fragmenting process. To avoid this, we pick a random,
18274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18276 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'
18277 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'
18279 irix5* | irix6*)
18280 case $cc_basename in
18281 CC*)
18282 # SGI C++
18283 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'
18285 # Archives containing C++ object files must be created using
18286 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18287 # necessary to make sure instantiated templates are included
18288 # in the archive.
18289 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18292 if test "$GXX" = yes; then
18293 if test "$with_gnu_ld" = no; then
18294 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'
18295 else
18296 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'
18299 link_all_deplibs_CXX=yes
18301 esac
18302 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18303 hardcode_libdir_separator_CXX=:
18304 inherit_rpath_CXX=yes
18307 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18308 case $cc_basename in
18309 KCC*)
18310 # Kuck and Associates, Inc. (KAI) C++ Compiler
18312 # KCC will only create a shared library if the output file
18313 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18314 # to its proper name (with version) after linking.
18315 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'
18316 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'
18317 # Commands to make compiler produce verbose output that lists
18318 # what "hidden" libraries, object files and flags are used when
18319 # linking a shared library.
18321 # There doesn't appear to be a way to prevent this compiler from
18322 # explicitly linking system object files so we need to strip them
18323 # from the output so that they don't get included in the library
18324 # dependencies.
18325 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"'
18327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18330 # Archives containing C++ object files must be created using
18331 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18332 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18334 icpc* | ecpc* )
18335 # Intel C++
18336 with_gnu_ld=yes
18337 # version 8.0 and above of icpc choke on multiply defined symbols
18338 # if we add $predep_objects and $postdep_objects, however 7.1 and
18339 # earlier do not add the objects themselves.
18340 case `$CC -V 2>&1` in
18341 *"Version 7."*)
18342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18343 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'
18345 *) # Version 8.0 or newer
18346 tmp_idyn=
18347 case $host_cpu in
18348 ia64*) tmp_idyn=' -i_dynamic';;
18349 esac
18350 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18351 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'
18353 esac
18354 archive_cmds_need_lc_CXX=no
18355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18356 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18357 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18359 pgCC* | pgcpp*)
18360 # Portland Group C++ compiler
18361 case `$CC -V` in
18362 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18363 prelink_cmds_CXX='tpldir=Template.dir~
18364 rm -rf $tpldir~
18365 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18366 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18367 old_archive_cmds_CXX='tpldir=Template.dir~
18368 rm -rf $tpldir~
18369 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18370 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18371 $RANLIB $oldlib'
18372 archive_cmds_CXX='tpldir=Template.dir~
18373 rm -rf $tpldir~
18374 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18375 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18376 archive_expsym_cmds_CXX='tpldir=Template.dir~
18377 rm -rf $tpldir~
18378 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18379 $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'
18381 *) # Version 6 and above use weak symbols
18382 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18383 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'
18385 esac
18387 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18388 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18389 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'
18391 cxx*)
18392 # Compaq C++
18393 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18394 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'
18396 runpath_var=LD_RUN_PATH
18397 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18398 hardcode_libdir_separator_CXX=:
18400 # Commands to make compiler produce verbose output that lists
18401 # what "hidden" libraries, object files and flags are used when
18402 # linking a shared library.
18404 # There doesn't appear to be a way to prevent this compiler from
18405 # explicitly linking system object files so we need to strip them
18406 # from the output so that they don't get included in the library
18407 # dependencies.
18408 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'
18410 xl* | mpixl* | bgxl*)
18411 # IBM XL 8.0 on PPC, with GNU ld
18412 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18413 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18414 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18415 if test "x$supports_anon_versioning" = xyes; then
18416 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18418 echo "local: *; };" >> $output_objdir/$libname.ver~
18419 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18423 case `$CC -V 2>&1 | sed 5q` in
18424 *Sun\ C*)
18425 # Sun C++ 5.9
18426 no_undefined_flag_CXX=' -zdefs'
18427 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18428 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'
18429 hardcode_libdir_flag_spec_CXX='-R$libdir'
18430 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'
18431 compiler_needs_object_CXX=yes
18433 # Not sure whether something based on
18434 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18435 # would be better.
18436 output_verbose_link_cmd='func_echo_all'
18438 # Archives containing C++ object files must be created using
18439 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18440 # necessary to make sure instantiated templates are included
18441 # in the archive.
18442 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18444 esac
18446 esac
18449 lynxos*)
18450 # FIXME: insert proper C++ library support
18451 ld_shlibs_CXX=no
18454 m88k*)
18455 # FIXME: insert proper C++ library support
18456 ld_shlibs_CXX=no
18459 mvs*)
18460 case $cc_basename in
18461 cxx*)
18462 # FIXME: insert proper C++ library support
18463 ld_shlibs_CXX=no
18466 # FIXME: insert proper C++ library support
18467 ld_shlibs_CXX=no
18469 esac
18472 netbsd*)
18473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18474 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18475 wlarc=
18476 hardcode_libdir_flag_spec_CXX='-R$libdir'
18477 hardcode_direct_CXX=yes
18478 hardcode_shlibpath_var_CXX=no
18480 # Workaround some broken pre-1.5 toolchains
18481 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18484 *nto* | *qnx*)
18485 ld_shlibs_CXX=yes
18488 openbsd2*)
18489 # C++ shared libraries are fairly broken
18490 ld_shlibs_CXX=no
18493 openbsd*)
18494 if test -f /usr/libexec/ld.so; then
18495 hardcode_direct_CXX=yes
18496 hardcode_shlibpath_var_CXX=no
18497 hardcode_direct_absolute_CXX=yes
18498 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18499 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18501 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18502 export_dynamic_flag_spec_CXX='${wl}-E'
18503 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18505 output_verbose_link_cmd=func_echo_all
18506 else
18507 ld_shlibs_CXX=no
18511 osf3* | osf4* | osf5*)
18512 case $cc_basename in
18513 KCC*)
18514 # Kuck and Associates, Inc. (KAI) C++ Compiler
18516 # KCC will only create a shared library if the output file
18517 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18518 # to its proper name (with version) after linking.
18519 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'
18521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18522 hardcode_libdir_separator_CXX=:
18524 # Archives containing C++ object files must be created using
18525 # the KAI C++ compiler.
18526 case $host in
18527 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18528 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18529 esac
18531 RCC*)
18532 # Rational C++ 2.4.1
18533 # FIXME: insert proper C++ library support
18534 ld_shlibs_CXX=no
18536 cxx*)
18537 case $host in
18538 osf3*)
18539 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18540 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'
18541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18544 allow_undefined_flag_CXX=' -expect_unresolved \*'
18545 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'
18546 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18547 echo "-hidden">> $lib.exp~
18548 $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~
18549 $RM $lib.exp'
18550 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18552 esac
18554 hardcode_libdir_separator_CXX=:
18556 # Commands to make compiler produce verbose output that lists
18557 # what "hidden" libraries, object files and flags are used when
18558 # linking a shared library.
18560 # There doesn't appear to be a way to prevent this compiler from
18561 # explicitly linking system object files so we need to strip them
18562 # from the output so that they don't get included in the library
18563 # dependencies.
18564 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"'
18567 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18568 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18569 case $host in
18570 osf3*)
18571 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'
18574 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'
18576 esac
18578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18579 hardcode_libdir_separator_CXX=:
18581 # Commands to make compiler produce verbose output that lists
18582 # what "hidden" libraries, object files and flags are used when
18583 # linking a shared library.
18584 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18586 else
18587 # FIXME: insert proper C++ library support
18588 ld_shlibs_CXX=no
18591 esac
18594 psos*)
18595 # FIXME: insert proper C++ library support
18596 ld_shlibs_CXX=no
18599 sunos4*)
18600 case $cc_basename in
18601 CC*)
18602 # Sun C++ 4.x
18603 # FIXME: insert proper C++ library support
18604 ld_shlibs_CXX=no
18606 lcc*)
18607 # Lucid
18608 # FIXME: insert proper C++ library support
18609 ld_shlibs_CXX=no
18612 # FIXME: insert proper C++ library support
18613 ld_shlibs_CXX=no
18615 esac
18618 solaris*)
18619 case $cc_basename in
18620 CC*)
18621 # Sun C++ 4.2, 5.x and Centerline C++
18622 archive_cmds_need_lc_CXX=yes
18623 no_undefined_flag_CXX=' -zdefs'
18624 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18625 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18626 $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'
18628 hardcode_libdir_flag_spec_CXX='-R$libdir'
18629 hardcode_shlibpath_var_CXX=no
18630 case $host_os in
18631 solaris2.[0-5] | solaris2.[0-5].*) ;;
18633 # The compiler driver will combine and reorder linker options,
18634 # but understands `-z linker_flag'.
18635 # Supported since Solaris 2.6 (maybe 2.5.1?)
18636 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18638 esac
18639 link_all_deplibs_CXX=yes
18641 output_verbose_link_cmd='func_echo_all'
18643 # Archives containing C++ object files must be created using
18644 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18645 # necessary to make sure instantiated templates are included
18646 # in the archive.
18647 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18649 gcx*)
18650 # Green Hills C++ Compiler
18651 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18653 # The C++ compiler must be used to create the archive.
18654 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18657 # GNU C++ compiler with Solaris linker
18658 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18659 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18660 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18661 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18662 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18663 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18665 # Commands to make compiler produce verbose output that lists
18666 # what "hidden" libraries, object files and flags are used when
18667 # linking a shared library.
18668 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18669 else
18670 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18671 # platform.
18672 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18673 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18674 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18676 # Commands to make compiler produce verbose output that lists
18677 # what "hidden" libraries, object files and flags are used when
18678 # linking a shared library.
18679 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18682 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18683 case $host_os in
18684 solaris2.[0-5] | solaris2.[0-5].*) ;;
18686 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18688 esac
18691 esac
18694 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18695 no_undefined_flag_CXX='${wl}-z,text'
18696 archive_cmds_need_lc_CXX=no
18697 hardcode_shlibpath_var_CXX=no
18698 runpath_var='LD_RUN_PATH'
18700 case $cc_basename in
18701 CC*)
18702 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18703 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18706 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18707 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18709 esac
18712 sysv5* | sco3.2v5* | sco5v6*)
18713 # Note: We can NOT use -z defs as we might desire, because we do not
18714 # link with -lc, and that would cause any symbols used from libc to
18715 # always be unresolved, which means just about no library would
18716 # ever link correctly. If we're not using GNU ld we use -z text
18717 # though, which does catch some bad symbols but isn't as heavy-handed
18718 # as -z defs.
18719 no_undefined_flag_CXX='${wl}-z,text'
18720 allow_undefined_flag_CXX='${wl}-z,nodefs'
18721 archive_cmds_need_lc_CXX=no
18722 hardcode_shlibpath_var_CXX=no
18723 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18724 hardcode_libdir_separator_CXX=':'
18725 link_all_deplibs_CXX=yes
18726 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18727 runpath_var='LD_RUN_PATH'
18729 case $cc_basename in
18730 CC*)
18731 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18732 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18733 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18734 '"$old_archive_cmds_CXX"
18735 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18736 '"$reload_cmds_CXX"
18739 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18740 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18742 esac
18745 tandem*)
18746 case $cc_basename in
18747 NCC*)
18748 # NonStop-UX NCC 3.20
18749 # FIXME: insert proper C++ library support
18750 ld_shlibs_CXX=no
18753 # FIXME: insert proper C++ library support
18754 ld_shlibs_CXX=no
18756 esac
18759 vxworks*)
18760 # FIXME: insert proper C++ library support
18761 ld_shlibs_CXX=no
18765 # FIXME: insert proper C++ library support
18766 ld_shlibs_CXX=no
18768 esac
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18771 $as_echo "$ld_shlibs_CXX" >&6; }
18772 test "$ld_shlibs_CXX" = no && can_build_shared=no
18774 GCC_CXX="$GXX"
18775 LD_CXX="$LD"
18777 ## CAVEAT EMPTOR:
18778 ## There is no encapsulation within the following macros, do not change
18779 ## the running order or otherwise move them around unless you know exactly
18780 ## what you are doing...
18781 # Dependencies to place before and after the object being linked:
18782 predep_objects_CXX=
18783 postdep_objects_CXX=
18784 predeps_CXX=
18785 postdeps_CXX=
18786 compiler_lib_search_path_CXX=
18788 cat > conftest.$ac_ext <<_LT_EOF
18789 class Foo
18791 public:
18792 Foo (void) { a = 0; }
18793 private:
18794 int a;
18796 _LT_EOF
18798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18799 (eval $ac_compile) 2>&5
18800 ac_status=$?
18801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802 test $ac_status = 0; }; then
18803 # Parse the compiler output and extract the necessary
18804 # objects, libraries and library flags.
18806 # Sentinel used to keep track of whether or not we are before
18807 # the conftest object file.
18808 pre_test_object_deps_done=no
18810 for p in `eval "$output_verbose_link_cmd"`; do
18811 case $p in
18813 -L* | -R* | -l*)
18814 # Some compilers place space between "-{L,R}" and the path.
18815 # Remove the space.
18816 if test $p = "-L" ||
18817 test $p = "-R"; then
18818 prev=$p
18819 continue
18820 else
18821 prev=
18824 if test "$pre_test_object_deps_done" = no; then
18825 case $p in
18826 -L* | -R*)
18827 # Internal compiler library paths should come after those
18828 # provided the user. The postdeps already come after the
18829 # user supplied libs so there is no need to process them.
18830 if test -z "$compiler_lib_search_path_CXX"; then
18831 compiler_lib_search_path_CXX="${prev}${p}"
18832 else
18833 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18836 # The "-l" case would never come before the object being
18837 # linked, so don't bother handling this case.
18838 esac
18839 else
18840 if test -z "$postdeps_CXX"; then
18841 postdeps_CXX="${prev}${p}"
18842 else
18843 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18848 *.$objext)
18849 # This assumes that the test object file only shows up
18850 # once in the compiler output.
18851 if test "$p" = "conftest.$objext"; then
18852 pre_test_object_deps_done=yes
18853 continue
18856 if test "$pre_test_object_deps_done" = no; then
18857 if test -z "$predep_objects_CXX"; then
18858 predep_objects_CXX="$p"
18859 else
18860 predep_objects_CXX="$predep_objects_CXX $p"
18862 else
18863 if test -z "$postdep_objects_CXX"; then
18864 postdep_objects_CXX="$p"
18865 else
18866 postdep_objects_CXX="$postdep_objects_CXX $p"
18871 *) ;; # Ignore the rest.
18873 esac
18874 done
18876 # Clean up.
18877 rm -f a.out a.exe
18878 else
18879 echo "libtool.m4: error: problem compiling CXX test program"
18882 $RM -f confest.$objext
18884 # PORTME: override above test on systems where it is broken
18885 case $host_os in
18886 interix[3-9]*)
18887 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18888 # hack all around it, let's just trust "g++" to DTRT.
18889 predep_objects_CXX=
18890 postdep_objects_CXX=
18891 postdeps_CXX=
18894 linux*)
18895 case `$CC -V 2>&1 | sed 5q` in
18896 *Sun\ C*)
18897 # Sun C++ 5.9
18899 # The more standards-conforming stlport4 library is
18900 # incompatible with the Cstd library. Avoid specifying
18901 # it if it's in CXXFLAGS. Ignore libCrun as
18902 # -library=stlport4 depends on it.
18903 case " $CXX $CXXFLAGS " in
18904 *" -library=stlport4 "*)
18905 solaris_use_stlport4=yes
18907 esac
18909 if test "$solaris_use_stlport4" != yes; then
18910 postdeps_CXX='-library=Cstd -library=Crun'
18913 esac
18916 solaris*)
18917 case $cc_basename in
18918 CC*)
18919 # The more standards-conforming stlport4 library is
18920 # incompatible with the Cstd library. Avoid specifying
18921 # it if it's in CXXFLAGS. Ignore libCrun as
18922 # -library=stlport4 depends on it.
18923 case " $CXX $CXXFLAGS " in
18924 *" -library=stlport4 "*)
18925 solaris_use_stlport4=yes
18927 esac
18929 # Adding this requires a known-good setup of shared libraries for
18930 # Sun compiler versions before 5.6, else PIC objects from an old
18931 # archive will be linked into the output, leading to subtle bugs.
18932 if test "$solaris_use_stlport4" != yes; then
18933 postdeps_CXX='-library=Cstd -library=Crun'
18936 esac
18938 esac
18941 case " $postdeps_CXX " in
18942 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18943 esac
18944 compiler_lib_search_dirs_CXX=
18945 if test -n "${compiler_lib_search_path_CXX}"; then
18946 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18979 lt_prog_compiler_wl_CXX=
18980 lt_prog_compiler_pic_CXX=
18981 lt_prog_compiler_static_CXX=
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18984 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18986 # C++ specific cases for pic, static, wl, etc.
18987 if test "$GXX" = yes; then
18988 lt_prog_compiler_wl_CXX='-Wl,'
18989 lt_prog_compiler_static_CXX='-static'
18991 case $host_os in
18992 aix*)
18993 # All AIX code is PIC.
18994 if test "$host_cpu" = ia64; then
18995 # AIX 5 now supports IA64 processor
18996 lt_prog_compiler_static_CXX='-Bstatic'
19000 amigaos*)
19001 case $host_cpu in
19002 powerpc)
19003 # see comment about AmigaOS4 .so support
19004 lt_prog_compiler_pic_CXX='-fPIC'
19006 m68k)
19007 # FIXME: we need at least 68020 code to build shared libraries, but
19008 # adding the `-m68020' flag to GCC prevents building anything better,
19009 # like `-m68040'.
19010 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19012 esac
19015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19016 # PIC is the default for these OSes.
19018 mingw* | cygwin* | os2* | pw32* | cegcc*)
19019 # This hack is so that the source file can tell whether it is being
19020 # built for inclusion in a dll (and should export symbols for example).
19021 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19022 # (--disable-auto-import) libraries
19023 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19025 darwin* | rhapsody*)
19026 # PIC is the default on this platform
19027 # Common symbols not allowed in MH_DYLIB files
19028 lt_prog_compiler_pic_CXX='-fno-common'
19030 *djgpp*)
19031 # DJGPP does not support shared libraries at all
19032 lt_prog_compiler_pic_CXX=
19034 haiku*)
19035 # PIC is the default for Haiku.
19036 # The "-static" flag exists, but is broken.
19037 lt_prog_compiler_static_CXX=
19039 interix[3-9]*)
19040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19041 # Instead, we relocate shared libraries at runtime.
19043 sysv4*MP*)
19044 if test -d /usr/nec; then
19045 lt_prog_compiler_pic_CXX=-Kconform_pic
19048 hpux*)
19049 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19050 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19051 # sets the default TLS model and affects inlining.
19052 case $host_cpu in
19053 hppa*64*)
19056 lt_prog_compiler_pic_CXX='-fPIC'
19058 esac
19060 *qnx* | *nto*)
19061 # QNX uses GNU C++, but need to define -shared option too, otherwise
19062 # it will coredump.
19063 lt_prog_compiler_pic_CXX='-fPIC -shared'
19066 lt_prog_compiler_pic_CXX='-fPIC'
19068 esac
19069 else
19070 case $host_os in
19071 aix[4-9]*)
19072 # All AIX code is PIC.
19073 if test "$host_cpu" = ia64; then
19074 # AIX 5 now supports IA64 processor
19075 lt_prog_compiler_static_CXX='-Bstatic'
19076 else
19077 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19080 chorus*)
19081 case $cc_basename in
19082 cxch68*)
19083 # Green Hills C++ Compiler
19084 # _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"
19086 esac
19088 dgux*)
19089 case $cc_basename in
19090 ec++*)
19091 lt_prog_compiler_pic_CXX='-KPIC'
19093 ghcx*)
19094 # Green Hills C++ Compiler
19095 lt_prog_compiler_pic_CXX='-pic'
19099 esac
19101 freebsd* | dragonfly*)
19102 # FreeBSD uses GNU C++
19104 hpux9* | hpux10* | hpux11*)
19105 case $cc_basename in
19106 CC*)
19107 lt_prog_compiler_wl_CXX='-Wl,'
19108 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19109 if test "$host_cpu" != ia64; then
19110 lt_prog_compiler_pic_CXX='+Z'
19113 aCC*)
19114 lt_prog_compiler_wl_CXX='-Wl,'
19115 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19116 case $host_cpu in
19117 hppa*64*|ia64*)
19118 # +Z the default
19121 lt_prog_compiler_pic_CXX='+Z'
19123 esac
19127 esac
19129 interix*)
19130 # This is c89, which is MS Visual C++ (no shared libs)
19131 # Anyone wants to do a port?
19133 irix5* | irix6* | nonstopux*)
19134 case $cc_basename in
19135 CC*)
19136 lt_prog_compiler_wl_CXX='-Wl,'
19137 lt_prog_compiler_static_CXX='-non_shared'
19138 # CC pic flag -KPIC is the default.
19142 esac
19144 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19145 case $cc_basename in
19146 KCC*)
19147 # KAI C++ Compiler
19148 lt_prog_compiler_wl_CXX='--backend -Wl,'
19149 lt_prog_compiler_pic_CXX='-fPIC'
19151 ecpc* )
19152 # old Intel C++ for x86_64 which still supported -KPIC.
19153 lt_prog_compiler_wl_CXX='-Wl,'
19154 lt_prog_compiler_pic_CXX='-KPIC'
19155 lt_prog_compiler_static_CXX='-static'
19157 icpc* )
19158 # Intel C++, used to be incompatible with GCC.
19159 # ICC 10 doesn't accept -KPIC any more.
19160 lt_prog_compiler_wl_CXX='-Wl,'
19161 lt_prog_compiler_pic_CXX='-fPIC'
19162 lt_prog_compiler_static_CXX='-static'
19164 pgCC* | pgcpp*)
19165 # Portland Group C++ compiler
19166 lt_prog_compiler_wl_CXX='-Wl,'
19167 lt_prog_compiler_pic_CXX='-fpic'
19168 lt_prog_compiler_static_CXX='-Bstatic'
19170 cxx*)
19171 # Compaq C++
19172 # Make sure the PIC flag is empty. It appears that all Alpha
19173 # Linux and Compaq Tru64 Unix objects are PIC.
19174 lt_prog_compiler_pic_CXX=
19175 lt_prog_compiler_static_CXX='-non_shared'
19177 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19178 # IBM XL 8.0, 9.0 on PPC and BlueGene
19179 lt_prog_compiler_wl_CXX='-Wl,'
19180 lt_prog_compiler_pic_CXX='-qpic'
19181 lt_prog_compiler_static_CXX='-qstaticlink'
19184 case `$CC -V 2>&1 | sed 5q` in
19185 *Sun\ C*)
19186 # Sun C++ 5.9
19187 lt_prog_compiler_pic_CXX='-KPIC'
19188 lt_prog_compiler_static_CXX='-Bstatic'
19189 lt_prog_compiler_wl_CXX='-Qoption ld '
19191 esac
19193 esac
19195 lynxos*)
19197 m88k*)
19199 mvs*)
19200 case $cc_basename in
19201 cxx*)
19202 lt_prog_compiler_pic_CXX='-W c,exportall'
19206 esac
19208 netbsd*)
19210 *qnx* | *nto*)
19211 # QNX uses GNU C++, but need to define -shared option too, otherwise
19212 # it will coredump.
19213 lt_prog_compiler_pic_CXX='-fPIC -shared'
19215 osf3* | osf4* | osf5*)
19216 case $cc_basename in
19217 KCC*)
19218 lt_prog_compiler_wl_CXX='--backend -Wl,'
19220 RCC*)
19221 # Rational C++ 2.4.1
19222 lt_prog_compiler_pic_CXX='-pic'
19224 cxx*)
19225 # Digital/Compaq C++
19226 lt_prog_compiler_wl_CXX='-Wl,'
19227 # Make sure the PIC flag is empty. It appears that all Alpha
19228 # Linux and Compaq Tru64 Unix objects are PIC.
19229 lt_prog_compiler_pic_CXX=
19230 lt_prog_compiler_static_CXX='-non_shared'
19234 esac
19236 psos*)
19238 solaris*)
19239 case $cc_basename in
19240 CC*)
19241 # Sun C++ 4.2, 5.x and Centerline C++
19242 lt_prog_compiler_pic_CXX='-KPIC'
19243 lt_prog_compiler_static_CXX='-Bstatic'
19244 lt_prog_compiler_wl_CXX='-Qoption ld '
19246 gcx*)
19247 # Green Hills C++ Compiler
19248 lt_prog_compiler_pic_CXX='-PIC'
19252 esac
19254 sunos4*)
19255 case $cc_basename in
19256 CC*)
19257 # Sun C++ 4.x
19258 lt_prog_compiler_pic_CXX='-pic'
19259 lt_prog_compiler_static_CXX='-Bstatic'
19261 lcc*)
19262 # Lucid
19263 lt_prog_compiler_pic_CXX='-pic'
19267 esac
19269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19270 case $cc_basename in
19271 CC*)
19272 lt_prog_compiler_wl_CXX='-Wl,'
19273 lt_prog_compiler_pic_CXX='-KPIC'
19274 lt_prog_compiler_static_CXX='-Bstatic'
19276 esac
19278 tandem*)
19279 case $cc_basename in
19280 NCC*)
19281 # NonStop-UX NCC 3.20
19282 lt_prog_compiler_pic_CXX='-KPIC'
19286 esac
19288 vxworks*)
19291 lt_prog_compiler_can_build_shared_CXX=no
19293 esac
19296 case $host_os in
19297 # For platforms which do not support PIC, -DPIC is meaningless:
19298 *djgpp*)
19299 lt_prog_compiler_pic_CXX=
19302 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19304 esac
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19306 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19311 # Check to make sure the PIC flag actually works.
19313 if test -n "$lt_prog_compiler_pic_CXX"; then
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19315 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19316 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19317 $as_echo_n "(cached) " >&6
19318 else
19319 lt_cv_prog_compiler_pic_works_CXX=no
19320 ac_outfile=conftest.$ac_objext
19321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19322 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19323 # Insert the option either (1) after the last *FLAGS variable, or
19324 # (2) before a word containing "conftest.", or (3) at the end.
19325 # Note that $ac_compile itself does not contain backslashes and begins
19326 # with a dollar sign (not a hyphen), so the echo should work correctly.
19327 # The option is referenced via a variable to avoid confusing sed.
19328 lt_compile=`echo "$ac_compile" | $SED \
19329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19331 -e 's:$: $lt_compiler_flag:'`
19332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19333 (eval "$lt_compile" 2>conftest.err)
19334 ac_status=$?
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 if (exit $ac_status) && test -s "$ac_outfile"; then
19338 # The compiler can only warn and ignore the option if not recognized
19339 # So say no if there are warnings other than the usual output.
19340 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19343 lt_cv_prog_compiler_pic_works_CXX=yes
19346 $RM conftest*
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19350 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19352 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19353 case $lt_prog_compiler_pic_CXX in
19354 "" | " "*) ;;
19355 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19356 esac
19357 else
19358 lt_prog_compiler_pic_CXX=
19359 lt_prog_compiler_can_build_shared_CXX=no
19367 # Check to make sure the static flag actually works.
19369 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19371 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19372 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19373 $as_echo_n "(cached) " >&6
19374 else
19375 lt_cv_prog_compiler_static_works_CXX=no
19376 save_LDFLAGS="$LDFLAGS"
19377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19380 # The linker can only warn and ignore the option if not recognized
19381 # So say no if there are warnings
19382 if test -s conftest.err; then
19383 # Append any errors to the config.log.
19384 cat conftest.err 1>&5
19385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19387 if diff conftest.exp conftest.er2 >/dev/null; then
19388 lt_cv_prog_compiler_static_works_CXX=yes
19390 else
19391 lt_cv_prog_compiler_static_works_CXX=yes
19394 $RM -r conftest*
19395 LDFLAGS="$save_LDFLAGS"
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19399 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19401 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19403 else
19404 lt_prog_compiler_static_CXX=
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19412 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19413 $as_echo_n "(cached) " >&6
19414 else
19415 lt_cv_prog_compiler_c_o_CXX=no
19416 $RM -r conftest 2>/dev/null
19417 mkdir conftest
19418 cd conftest
19419 mkdir out
19420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19422 lt_compiler_flag="-o out/conftest2.$ac_objext"
19423 # Insert the option either (1) after the last *FLAGS variable, or
19424 # (2) before a word containing "conftest.", or (3) at the end.
19425 # Note that $ac_compile itself does not contain backslashes and begins
19426 # with a dollar sign (not a hyphen), so the echo should work correctly.
19427 lt_compile=`echo "$ac_compile" | $SED \
19428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19430 -e 's:$: $lt_compiler_flag:'`
19431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19432 (eval "$lt_compile" 2>out/conftest.err)
19433 ac_status=$?
19434 cat out/conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19437 then
19438 # The compiler can only warn and ignore the option if not recognized
19439 # So say no if there are warnings
19440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19443 lt_cv_prog_compiler_c_o_CXX=yes
19446 chmod u+w . 2>&5
19447 $RM conftest*
19448 # SGI C++ compiler will create directory out/ii_files/ for
19449 # template instantiation
19450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19451 $RM out/* && rmdir out
19452 cd ..
19453 $RM -r conftest
19454 $RM conftest*
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19458 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19464 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19465 $as_echo_n "(cached) " >&6
19466 else
19467 lt_cv_prog_compiler_c_o_CXX=no
19468 $RM -r conftest 2>/dev/null
19469 mkdir conftest
19470 cd conftest
19471 mkdir out
19472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19474 lt_compiler_flag="-o out/conftest2.$ac_objext"
19475 # Insert the option either (1) after the last *FLAGS variable, or
19476 # (2) before a word containing "conftest.", or (3) at the end.
19477 # Note that $ac_compile itself does not contain backslashes and begins
19478 # with a dollar sign (not a hyphen), so the echo should work correctly.
19479 lt_compile=`echo "$ac_compile" | $SED \
19480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19482 -e 's:$: $lt_compiler_flag:'`
19483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19484 (eval "$lt_compile" 2>out/conftest.err)
19485 ac_status=$?
19486 cat out/conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19489 then
19490 # The compiler can only warn and ignore the option if not recognized
19491 # So say no if there are warnings
19492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19495 lt_cv_prog_compiler_c_o_CXX=yes
19498 chmod u+w . 2>&5
19499 $RM conftest*
19500 # SGI C++ compiler will create directory out/ii_files/ for
19501 # template instantiation
19502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19503 $RM out/* && rmdir out
19504 cd ..
19505 $RM -r conftest
19506 $RM conftest*
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19510 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19515 hard_links="nottested"
19516 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19517 # do not overwrite the value of need_locks provided by the user
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19519 $as_echo_n "checking if we can lock with hard links... " >&6; }
19520 hard_links=yes
19521 $RM conftest*
19522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19523 touch conftest.a
19524 ln conftest.a conftest.b 2>&5 || hard_links=no
19525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19527 $as_echo "$hard_links" >&6; }
19528 if test "$hard_links" = no; then
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19530 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19531 need_locks=warn
19533 else
19534 need_locks=no
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19540 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19542 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19543 case $host_os in
19544 aix[4-9]*)
19545 # If we're using GNU nm, then we don't want the "-C" option.
19546 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19547 # Also, AIX nm treats weak defined symbols like other global defined
19548 # symbols, whereas GNU nm marks them as "W".
19549 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19550 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'
19551 else
19552 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'
19555 pw32*)
19556 export_symbols_cmds_CXX="$ltdll_cmds"
19558 cygwin* | mingw* | cegcc*)
19559 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'
19562 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19564 esac
19565 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19568 $as_echo "$ld_shlibs_CXX" >&6; }
19569 test "$ld_shlibs_CXX" = no && can_build_shared=no
19571 with_gnu_ld_CXX=$with_gnu_ld
19579 # Do we need to explicitly link libc?
19581 case "x$archive_cmds_need_lc_CXX" in
19582 x|xyes)
19583 # Assume -lc should be added
19584 archive_cmds_need_lc_CXX=yes
19586 if test "$enable_shared" = yes && test "$GCC" = yes; then
19587 case $archive_cmds_CXX in
19588 *'~'*)
19589 # FIXME: we may have to deal with multi-command sequences.
19591 '$CC '*)
19592 # Test whether the compiler implicitly links with -lc since on some
19593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19594 # to ld, don't add -lc before -lgcc.
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19596 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19597 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19598 $as_echo_n "(cached) " >&6
19599 else
19600 $RM conftest*
19601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19604 (eval $ac_compile) 2>&5
19605 ac_status=$?
19606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19607 test $ac_status = 0; } 2>conftest.err; then
19608 soname=conftest
19609 lib=conftest
19610 libobjs=conftest.$ac_objext
19611 deplibs=
19612 wl=$lt_prog_compiler_wl_CXX
19613 pic_flag=$lt_prog_compiler_pic_CXX
19614 compiler_flags=-v
19615 linker_flags=-v
19616 verstring=
19617 output_objdir=.
19618 libname=conftest
19619 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19620 allow_undefined_flag_CXX=
19621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19622 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19623 ac_status=$?
19624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19625 test $ac_status = 0; }
19626 then
19627 lt_cv_archive_cmds_need_lc_CXX=no
19628 else
19629 lt_cv_archive_cmds_need_lc_CXX=yes
19631 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19632 else
19633 cat conftest.err 1>&5
19635 $RM conftest*
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19639 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19640 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19642 esac
19645 esac
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19711 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19713 library_names_spec=
19714 libname_spec='lib$name'
19715 soname_spec=
19716 shrext_cmds=".so"
19717 postinstall_cmds=
19718 postuninstall_cmds=
19719 finish_cmds=
19720 finish_eval=
19721 shlibpath_var=
19722 shlibpath_overrides_runpath=unknown
19723 version_type=none
19724 dynamic_linker="$host_os ld.so"
19725 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19726 need_lib_prefix=unknown
19727 hardcode_into_libs=no
19729 # when you set need_version to no, make sure it does not cause -set_version
19730 # flags to be left without arguments
19731 need_version=unknown
19733 case $host_os in
19734 aix3*)
19735 version_type=linux
19736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19737 shlibpath_var=LIBPATH
19739 # AIX 3 has no versioning support, so we append a major version to the name.
19740 soname_spec='${libname}${release}${shared_ext}$major'
19743 aix[4-9]*)
19744 version_type=linux
19745 need_lib_prefix=no
19746 need_version=no
19747 hardcode_into_libs=yes
19748 if test "$host_cpu" = ia64; then
19749 # AIX 5 supports IA64
19750 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19751 shlibpath_var=LD_LIBRARY_PATH
19752 else
19753 # With GCC up to 2.95.x, collect2 would create an import file
19754 # for dependence libraries. The import file would start with
19755 # the line `#! .'. This would cause the generated library to
19756 # depend on `.', always an invalid library. This was fixed in
19757 # development snapshots of GCC prior to 3.0.
19758 case $host_os in
19759 aix4 | aix4.[01] | aix4.[01].*)
19760 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19761 echo ' yes '
19762 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19764 else
19765 can_build_shared=no
19768 esac
19769 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19770 # soname into executable. Probably we can add versioning support to
19771 # collect2, so additional links can be useful in future.
19772 if test "$aix_use_runtimelinking" = yes; then
19773 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19774 # instead of lib<name>.a to let people know that these are not
19775 # typical AIX shared libraries.
19776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19777 else
19778 # We preserve .a as extension for shared libraries through AIX4.2
19779 # and later when we are not doing run time linking.
19780 library_names_spec='${libname}${release}.a $libname.a'
19781 soname_spec='${libname}${release}${shared_ext}$major'
19783 shlibpath_var=LIBPATH
19787 amigaos*)
19788 case $host_cpu in
19789 powerpc)
19790 # Since July 2007 AmigaOS4 officially supports .so libraries.
19791 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19794 m68k)
19795 library_names_spec='$libname.ixlibrary $libname.a'
19796 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19797 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'
19799 esac
19802 beos*)
19803 library_names_spec='${libname}${shared_ext}'
19804 dynamic_linker="$host_os ld.so"
19805 shlibpath_var=LIBRARY_PATH
19808 bsdi[45]*)
19809 version_type=linux
19810 need_version=no
19811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19812 soname_spec='${libname}${release}${shared_ext}$major'
19813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19814 shlibpath_var=LD_LIBRARY_PATH
19815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19817 # the default ld.so.conf also contains /usr/contrib/lib and
19818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19819 # libtool to hard-code these into programs
19822 cygwin* | mingw* | pw32* | cegcc*)
19823 version_type=windows
19824 shrext_cmds=".dll"
19825 need_version=no
19826 need_lib_prefix=no
19828 case $GCC,$host_os in
19829 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19830 library_names_spec='$libname.dll.a'
19831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19832 postinstall_cmds='base_file=`basename \${file}`~
19833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19834 dldir=$destdir/`dirname \$dlpath`~
19835 test -d \$dldir || mkdir -p \$dldir~
19836 $install_prog $dir/$dlname \$dldir/$dlname~
19837 chmod a+x \$dldir/$dlname~
19838 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19839 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19842 dlpath=$dir/\$dldll~
19843 $RM \$dlpath'
19844 shlibpath_overrides_runpath=yes
19846 case $host_os in
19847 cygwin*)
19848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19849 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19852 mingw* | cegcc*)
19853 # MinGW DLLs use traditional 'lib' prefix
19854 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19856 pw32*)
19857 # pw32 DLLs use 'pw' prefix rather than 'lib'
19858 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19860 esac
19864 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19866 esac
19867 dynamic_linker='Win32 ld.exe'
19868 # FIXME: first we should search . and the directory the executable is in
19869 shlibpath_var=PATH
19872 darwin* | rhapsody*)
19873 dynamic_linker="$host_os dyld"
19874 version_type=darwin
19875 need_lib_prefix=no
19876 need_version=no
19877 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19878 soname_spec='${libname}${release}${major}$shared_ext'
19879 shlibpath_overrides_runpath=yes
19880 shlibpath_var=DYLD_LIBRARY_PATH
19881 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19886 dgux*)
19887 version_type=linux
19888 need_lib_prefix=no
19889 need_version=no
19890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19891 soname_spec='${libname}${release}${shared_ext}$major'
19892 shlibpath_var=LD_LIBRARY_PATH
19895 freebsd1*)
19896 dynamic_linker=no
19899 freebsd* | dragonfly*)
19900 # DragonFly does not have aout. When/if they implement a new
19901 # versioning mechanism, adjust this.
19902 if test -x /usr/bin/objformat; then
19903 objformat=`/usr/bin/objformat`
19904 else
19905 case $host_os in
19906 freebsd[123]*) objformat=aout ;;
19907 *) objformat=elf ;;
19908 esac
19910 version_type=freebsd-$objformat
19911 case $version_type in
19912 freebsd-elf*)
19913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19914 need_version=no
19915 need_lib_prefix=no
19917 freebsd-*)
19918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19919 need_version=yes
19921 esac
19922 shlibpath_var=LD_LIBRARY_PATH
19923 case $host_os in
19924 freebsd2*)
19925 shlibpath_overrides_runpath=yes
19927 freebsd3.[01]* | freebsdelf3.[01]*)
19928 shlibpath_overrides_runpath=yes
19929 hardcode_into_libs=yes
19931 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19932 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19933 shlibpath_overrides_runpath=no
19934 hardcode_into_libs=yes
19936 *) # from 4.6 on, and DragonFly
19937 shlibpath_overrides_runpath=yes
19938 hardcode_into_libs=yes
19940 esac
19943 gnu*)
19944 version_type=linux
19945 need_lib_prefix=no
19946 need_version=no
19947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19948 soname_spec='${libname}${release}${shared_ext}$major'
19949 shlibpath_var=LD_LIBRARY_PATH
19950 hardcode_into_libs=yes
19953 haiku*)
19954 version_type=linux
19955 need_lib_prefix=no
19956 need_version=no
19957 dynamic_linker="$host_os runtime_loader"
19958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19959 soname_spec='${libname}${release}${shared_ext}$major'
19960 shlibpath_var=LIBRARY_PATH
19961 shlibpath_overrides_runpath=yes
19962 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19963 hardcode_into_libs=yes
19966 hpux9* | hpux10* | hpux11*)
19967 # Give a soname corresponding to the major version so that dld.sl refuses to
19968 # link against other versions.
19969 version_type=sunos
19970 need_lib_prefix=no
19971 need_version=no
19972 case $host_cpu in
19973 ia64*)
19974 shrext_cmds='.so'
19975 hardcode_into_libs=yes
19976 dynamic_linker="$host_os dld.so"
19977 shlibpath_var=LD_LIBRARY_PATH
19978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19980 soname_spec='${libname}${release}${shared_ext}$major'
19981 if test "X$HPUX_IA64_MODE" = X32; then
19982 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19983 else
19984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19988 hppa*64*)
19989 shrext_cmds='.sl'
19990 hardcode_into_libs=yes
19991 dynamic_linker="$host_os dld.sl"
19992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19995 soname_spec='${libname}${release}${shared_ext}$major'
19996 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20000 shrext_cmds='.sl'
20001 dynamic_linker="$host_os dld.sl"
20002 shlibpath_var=SHLIB_PATH
20003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20005 soname_spec='${libname}${release}${shared_ext}$major'
20007 esac
20008 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20009 postinstall_cmds='chmod 555 $lib'
20010 # or fails outright, so override atomically:
20011 install_override_mode=555
20014 interix[3-9]*)
20015 version_type=linux
20016 need_lib_prefix=no
20017 need_version=no
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20019 soname_spec='${libname}${release}${shared_ext}$major'
20020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20021 shlibpath_var=LD_LIBRARY_PATH
20022 shlibpath_overrides_runpath=no
20023 hardcode_into_libs=yes
20026 irix5* | irix6* | nonstopux*)
20027 case $host_os in
20028 nonstopux*) version_type=nonstopux ;;
20030 if test "$lt_cv_prog_gnu_ld" = yes; then
20031 version_type=linux
20032 else
20033 version_type=irix
20034 fi ;;
20035 esac
20036 need_lib_prefix=no
20037 need_version=no
20038 soname_spec='${libname}${release}${shared_ext}$major'
20039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20040 case $host_os in
20041 irix5* | nonstopux*)
20042 libsuff= shlibsuff=
20045 case $LD in # libtool.m4 will add one of these switches to LD
20046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20047 libsuff= shlibsuff= libmagic=32-bit;;
20048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20049 libsuff=32 shlibsuff=N32 libmagic=N32;;
20050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20051 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20052 *) libsuff= shlibsuff= libmagic=never-match;;
20053 esac
20055 esac
20056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20057 shlibpath_overrides_runpath=no
20058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20060 hardcode_into_libs=yes
20063 # No shared lib support for Linux oldld, aout, or coff.
20064 linux*oldld* | linux*aout* | linux*coff*)
20065 dynamic_linker=no
20068 # This must be Linux ELF.
20069 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20070 version_type=linux
20071 need_lib_prefix=no
20072 need_version=no
20073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20074 soname_spec='${libname}${release}${shared_ext}$major'
20075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20076 shlibpath_var=LD_LIBRARY_PATH
20077 shlibpath_overrides_runpath=no
20079 # Some binutils ld are patched to set DT_RUNPATH
20080 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20081 $as_echo_n "(cached) " >&6
20082 else
20083 lt_cv_shlibpath_overrides_runpath=no
20084 save_LDFLAGS=$LDFLAGS
20085 save_libdir=$libdir
20086 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20087 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20089 /* end confdefs.h. */
20092 main ()
20096 return 0;
20098 _ACEOF
20099 if ac_fn_cxx_try_link "$LINENO"; then :
20100 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20101 lt_cv_shlibpath_overrides_runpath=yes
20104 rm -f core conftest.err conftest.$ac_objext \
20105 conftest$ac_exeext conftest.$ac_ext
20106 LDFLAGS=$save_LDFLAGS
20107 libdir=$save_libdir
20111 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20113 # This implies no fast_install, which is unacceptable.
20114 # Some rework will be needed to allow for fast_install
20115 # before this can be enabled.
20116 hardcode_into_libs=yes
20118 # Append ld.so.conf contents to the search path
20119 if test -f /etc/ld.so.conf; then
20120 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' ' '`
20121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20124 # We used to test for /lib/ld.so.1 and disable shared libraries on
20125 # powerpc, because MkLinux only supported shared libraries with the
20126 # GNU dynamic linker. Since this was broken with cross compilers,
20127 # most powerpc-linux boxes support dynamic linking these days and
20128 # people can always --disable-shared, the test was removed, and we
20129 # assume the GNU/Linux dynamic linker is in use.
20130 dynamic_linker='GNU/Linux ld.so'
20133 netbsd*)
20134 version_type=sunos
20135 need_lib_prefix=no
20136 need_version=no
20137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20140 dynamic_linker='NetBSD (a.out) ld.so'
20141 else
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20143 soname_spec='${libname}${release}${shared_ext}$major'
20144 dynamic_linker='NetBSD ld.elf_so'
20146 shlibpath_var=LD_LIBRARY_PATH
20147 shlibpath_overrides_runpath=yes
20148 hardcode_into_libs=yes
20151 newsos6)
20152 version_type=linux
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20154 shlibpath_var=LD_LIBRARY_PATH
20155 shlibpath_overrides_runpath=yes
20158 *nto* | *qnx*)
20159 version_type=qnx
20160 need_lib_prefix=no
20161 need_version=no
20162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20163 soname_spec='${libname}${release}${shared_ext}$major'
20164 shlibpath_var=LD_LIBRARY_PATH
20165 shlibpath_overrides_runpath=no
20166 hardcode_into_libs=yes
20167 dynamic_linker='ldqnx.so'
20170 openbsd*)
20171 version_type=sunos
20172 sys_lib_dlsearch_path_spec="/usr/lib"
20173 need_lib_prefix=no
20174 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20175 case $host_os in
20176 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20177 *) need_version=no ;;
20178 esac
20179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20181 shlibpath_var=LD_LIBRARY_PATH
20182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20183 case $host_os in
20184 openbsd2.[89] | openbsd2.[89].*)
20185 shlibpath_overrides_runpath=no
20188 shlibpath_overrides_runpath=yes
20190 esac
20191 else
20192 shlibpath_overrides_runpath=yes
20196 os2*)
20197 libname_spec='$name'
20198 shrext_cmds=".dll"
20199 need_lib_prefix=no
20200 library_names_spec='$libname${shared_ext} $libname.a'
20201 dynamic_linker='OS/2 ld.exe'
20202 shlibpath_var=LIBPATH
20205 osf3* | osf4* | osf5*)
20206 version_type=osf
20207 need_lib_prefix=no
20208 need_version=no
20209 soname_spec='${libname}${release}${shared_ext}$major'
20210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20211 shlibpath_var=LD_LIBRARY_PATH
20212 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20213 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20216 rdos*)
20217 dynamic_linker=no
20220 solaris*)
20221 version_type=linux
20222 need_lib_prefix=no
20223 need_version=no
20224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20225 soname_spec='${libname}${release}${shared_ext}$major'
20226 shlibpath_var=LD_LIBRARY_PATH
20227 shlibpath_overrides_runpath=yes
20228 hardcode_into_libs=yes
20229 # ldd complains unless libraries are executable
20230 postinstall_cmds='chmod +x $lib'
20233 sunos4*)
20234 version_type=sunos
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20237 shlibpath_var=LD_LIBRARY_PATH
20238 shlibpath_overrides_runpath=yes
20239 if test "$with_gnu_ld" = yes; then
20240 need_lib_prefix=no
20242 need_version=yes
20245 sysv4 | sysv4.3*)
20246 version_type=linux
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 case $host_vendor in
20251 sni)
20252 shlibpath_overrides_runpath=no
20253 need_lib_prefix=no
20254 runpath_var=LD_RUN_PATH
20256 siemens)
20257 need_lib_prefix=no
20259 motorola)
20260 need_lib_prefix=no
20261 need_version=no
20262 shlibpath_overrides_runpath=no
20263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20265 esac
20268 sysv4*MP*)
20269 if test -d /usr/nec ;then
20270 version_type=linux
20271 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20272 soname_spec='$libname${shared_ext}.$major'
20273 shlibpath_var=LD_LIBRARY_PATH
20277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20278 version_type=freebsd-elf
20279 need_lib_prefix=no
20280 need_version=no
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20282 soname_spec='${libname}${release}${shared_ext}$major'
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=yes
20285 hardcode_into_libs=yes
20286 if test "$with_gnu_ld" = yes; then
20287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20288 else
20289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20290 case $host_os in
20291 sco3.2v5*)
20292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20294 esac
20296 sys_lib_dlsearch_path_spec='/usr/lib'
20299 tpf*)
20300 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20301 version_type=linux
20302 need_lib_prefix=no
20303 need_version=no
20304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20305 shlibpath_var=LD_LIBRARY_PATH
20306 shlibpath_overrides_runpath=no
20307 hardcode_into_libs=yes
20310 uts4*)
20311 version_type=linux
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20313 soname_spec='${libname}${release}${shared_ext}$major'
20314 shlibpath_var=LD_LIBRARY_PATH
20318 dynamic_linker=no
20320 esac
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20322 $as_echo "$dynamic_linker" >&6; }
20323 test "$dynamic_linker" = no && can_build_shared=no
20325 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20326 if test "$GCC" = yes; then
20327 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20330 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20331 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20333 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20334 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20375 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20376 hardcode_action_CXX=
20377 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20378 test -n "$runpath_var_CXX" ||
20379 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20381 # We can hardcode non-existent directories.
20382 if test "$hardcode_direct_CXX" != no &&
20383 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20384 # have to relink, otherwise we might link with an installed library
20385 # when we should be linking with a yet-to-be-installed one
20386 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20387 test "$hardcode_minus_L_CXX" != no; then
20388 # Linking always hardcodes the temporary library directory.
20389 hardcode_action_CXX=relink
20390 else
20391 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20392 hardcode_action_CXX=immediate
20394 else
20395 # We cannot hardcode anything, or else we can only hardcode existing
20396 # directories.
20397 hardcode_action_CXX=unsupported
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20400 $as_echo "$hardcode_action_CXX" >&6; }
20402 if test "$hardcode_action_CXX" = relink ||
20403 test "$inherit_rpath_CXX" = yes; then
20404 # Fast installation is not supported
20405 enable_fast_install=no
20406 elif test "$shlibpath_overrides_runpath" = yes ||
20407 test "$enable_shared" = no; then
20408 # Fast installation is not necessary
20409 enable_fast_install=needless
20418 fi # test -n "$compiler"
20420 CC=$lt_save_CC
20421 LDCXX=$LD
20422 LD=$lt_save_LD
20423 GCC=$lt_save_GCC
20424 with_gnu_ld=$lt_save_with_gnu_ld
20425 lt_cv_path_LDCXX=$lt_cv_path_LD
20426 lt_cv_path_LD=$lt_save_path_LD
20427 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20428 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20429 fi # test "$_lt_caught_CXX_error" != yes
20431 ac_ext=c
20432 ac_cpp='$CPP $CPPFLAGS'
20433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20452 # Only expand once:
20458 # Identify the assembler which will work hand-in-glove with the newly
20459 # built GCC, so that we can examine its features. This is the assembler
20460 # which will be driven by the driver program.
20462 # If build != host, and we aren't building gas in-tree, we identify a
20463 # build->target assembler and hope that it will have the same features
20464 # as the host->target assembler we'll be using.
20465 gcc_cv_gas_major_version=
20466 gcc_cv_gas_minor_version=
20467 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20469 if test "${gcc_cv_as+set}" = set; then :
20471 else
20473 if test -x "$DEFAULT_ASSEMBLER"; then
20474 gcc_cv_as="$DEFAULT_ASSEMBLER"
20475 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20476 && test -f ../gas/Makefile \
20477 && test x$build = x$host; then
20478 gcc_cv_as=../gas/as-new$build_exeext
20479 elif test -x as$build_exeext; then
20480 # Build using assembler in the current directory.
20481 gcc_cv_as=./as$build_exeext
20482 elif test -x $AS_FOR_TARGET; then
20483 gcc_cv_as="$AS_FOR_TARGET"
20484 else
20485 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20486 set dummy $AS_FOR_TARGET; ac_word=$2
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20488 $as_echo_n "checking for $ac_word... " >&6; }
20489 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20490 $as_echo_n "(cached) " >&6
20491 else
20492 case $gcc_cv_as in
20493 [\\/]* | ?:[\\/]*)
20494 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20498 for as_dir in $PATH
20500 IFS=$as_save_IFS
20501 test -z "$as_dir" && as_dir=.
20502 for ac_exec_ext in '' $ac_executable_extensions; do
20503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20504 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20506 break 2
20508 done
20509 done
20510 IFS=$as_save_IFS
20513 esac
20515 gcc_cv_as=$ac_cv_path_gcc_cv_as
20516 if test -n "$gcc_cv_as"; then
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20518 $as_echo "$gcc_cv_as" >&6; }
20519 else
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20521 $as_echo "no" >&6; }
20528 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20530 case "$ORIGINAL_AS_FOR_TARGET" in
20531 ./as | ./as$build_exeext) ;;
20532 *) ac_config_files="$ac_config_files as:exec-tool.in"
20534 esac
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20537 $as_echo_n "checking what assembler to use... " >&6; }
20538 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20539 # Single tree build which includes gas. We want to prefer it
20540 # over whatever linker top-level may have detected, since
20541 # we'll use what we're building after installation anyway.
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20543 $as_echo "newly built gas" >&6; }
20544 in_tree_gas=yes
20545 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20546 for f in $gcc_cv_as_bfd_srcdir/configure \
20547 $gcc_cv_as_gas_srcdir/configure \
20548 $gcc_cv_as_gas_srcdir/configure.in \
20549 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20550 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20551 if test x$gcc_cv_gas_version != x; then
20552 break
20554 done
20555 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20556 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20557 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20558 case $gcc_cv_gas_patch_version in
20559 "") gcc_cv_gas_patch_version="0" ;;
20560 esac
20561 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20562 + $gcc_cv_gas_minor_version \) \* 1000 \
20563 + $gcc_cv_gas_patch_version`
20565 in_tree_gas_is_elf=no
20566 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20567 || (grep 'obj_format = multi' ../gas/Makefile \
20568 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20569 then
20570 in_tree_gas_is_elf=yes
20572 else
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20574 $as_echo "$gcc_cv_as" >&6; }
20575 in_tree_gas=no
20578 # Identify the linker which will work hand-in-glove with the newly
20579 # built GCC, so that we can examine its features. This is the linker
20580 # which will be driven by the driver program.
20582 # If build != host, and we aren't building gas in-tree, we identify a
20583 # build->target linker and hope that it will have the same features
20584 # as the host->target linker we'll be using.
20585 gcc_cv_gld_major_version=
20586 gcc_cv_gld_minor_version=
20587 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20588 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20590 if test "${gcc_cv_ld+set}" = set; then :
20592 else
20594 if test -x "$DEFAULT_LINKER"; then
20595 gcc_cv_ld="$DEFAULT_LINKER"
20596 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20597 && test -f ../ld/Makefile \
20598 && test x$build = x$host; then
20599 gcc_cv_ld=../ld/ld-new$build_exeext
20600 elif test -x collect-ld$build_exeext; then
20601 # Build using linker in the current directory.
20602 gcc_cv_ld=./collect-ld$build_exeext
20603 elif test -x $LD_FOR_TARGET; then
20604 gcc_cv_ld="$LD_FOR_TARGET"
20605 else
20606 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20607 set dummy $LD_FOR_TARGET; ac_word=$2
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20609 $as_echo_n "checking for $ac_word... " >&6; }
20610 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20611 $as_echo_n "(cached) " >&6
20612 else
20613 case $gcc_cv_ld in
20614 [\\/]* | ?:[\\/]*)
20615 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20619 for as_dir in $PATH
20621 IFS=$as_save_IFS
20622 test -z "$as_dir" && as_dir=.
20623 for ac_exec_ext in '' $ac_executable_extensions; do
20624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20625 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20627 break 2
20629 done
20630 done
20631 IFS=$as_save_IFS
20634 esac
20636 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20637 if test -n "$gcc_cv_ld"; then
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20639 $as_echo "$gcc_cv_ld" >&6; }
20640 else
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20642 $as_echo "no" >&6; }
20649 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20650 PLUGIN_LD=`basename $gcc_cv_ld`
20652 # Check whether --with-plugin-ld was given.
20653 if test "${with_plugin_ld+set}" = set; then :
20654 withval=$with_plugin_ld; if test x"$withval" != x; then
20655 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20656 PLUGIN_LD="$withval"
20662 cat >>confdefs.h <<_ACEOF
20663 #define PLUGIN_LD "$PLUGIN_LD"
20664 _ACEOF
20667 # Check to see if we are using gold instead of ld
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20669 $as_echo_n "checking whether we are using gold... " >&6; }
20670 ld_is_gold=no
20671 if test x$gcc_cv_ld != x; then
20672 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20673 | grep "GNU gold" > /dev/null; then
20674 ld_is_gold=yes
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20678 $as_echo "$ld_is_gold" >&6; }
20680 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20682 case "$ORIGINAL_LD_FOR_TARGET" in
20683 ./collect-ld | ./collect-ld$build_exeext) ;;
20684 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20686 esac
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20689 $as_echo_n "checking what linker to use... " >&6; }
20690 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20691 # Single tree build which includes ld. We want to prefer it
20692 # over whatever linker top-level may have detected, since
20693 # we'll use what we're building after installation anyway.
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20695 $as_echo "newly built ld" >&6; }
20696 in_tree_ld=yes
20697 in_tree_ld_is_elf=no
20698 if (grep 'EMUL = .*elf' ../ld/Makefile \
20699 || grep 'EMUL = .*linux' ../ld/Makefile \
20700 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20701 in_tree_ld_is_elf=yes
20703 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
20705 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20706 if test x$gcc_cv_gld_version != x; then
20707 break
20709 done
20710 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20711 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20712 else
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20714 $as_echo "$gcc_cv_ld" >&6; }
20715 in_tree_ld=no
20718 # Figure out what nm we will be using.
20719 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20720 if test "${gcc_cv_nm+set}" = set; then :
20722 else
20724 if test -f $gcc_cv_binutils_srcdir/configure.in \
20725 && test -f ../binutils/Makefile \
20726 && test x$build = x$host; then
20727 gcc_cv_nm=../binutils/nm-new$build_exeext
20728 elif test -x nm$build_exeext; then
20729 gcc_cv_nm=./nm$build_exeext
20730 elif test -x $NM_FOR_TARGET; then
20731 gcc_cv_nm="$NM_FOR_TARGET"
20732 else
20733 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20734 set dummy $NM_FOR_TARGET; ac_word=$2
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20736 $as_echo_n "checking for $ac_word... " >&6; }
20737 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20738 $as_echo_n "(cached) " >&6
20739 else
20740 case $gcc_cv_nm in
20741 [\\/]* | ?:[\\/]*)
20742 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20746 for as_dir in $PATH
20748 IFS=$as_save_IFS
20749 test -z "$as_dir" && as_dir=.
20750 for ac_exec_ext in '' $ac_executable_extensions; do
20751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20752 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20754 break 2
20756 done
20757 done
20758 IFS=$as_save_IFS
20761 esac
20763 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20764 if test -n "$gcc_cv_nm"; then
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20766 $as_echo "$gcc_cv_nm" >&6; }
20767 else
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20769 $as_echo "no" >&6; }
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20777 $as_echo_n "checking what nm to use... " >&6; }
20778 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20779 # Single tree build which includes binutils.
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20781 $as_echo "newly built nm" >&6; }
20782 in_tree_nm=yes
20783 else
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20785 $as_echo "$gcc_cv_nm" >&6; }
20786 in_tree_nm=no
20789 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20791 case "$ORIGINAL_NM_FOR_TARGET" in
20792 ./nm | ./nm$build_exeext) ;;
20793 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20795 esac
20798 # Figure out what objdump we will be using.
20799 if test "${gcc_cv_objdump+set}" = set; then :
20801 else
20803 if test -f $gcc_cv_binutils_srcdir/configure.in \
20804 && test -f ../binutils/Makefile \
20805 && test x$build = x$host; then
20806 # Single tree build which includes binutils.
20807 gcc_cv_objdump=../binutils/objdump$build_exeext
20808 elif test -x objdump$build_exeext; then
20809 gcc_cv_objdump=./objdump$build_exeext
20810 elif test -x $OBJDUMP_FOR_TARGET; then
20811 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20812 else
20813 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20814 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20816 $as_echo_n "checking for $ac_word... " >&6; }
20817 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20818 $as_echo_n "(cached) " >&6
20819 else
20820 case $gcc_cv_objdump in
20821 [\\/]* | ?:[\\/]*)
20822 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20826 for as_dir in $PATH
20828 IFS=$as_save_IFS
20829 test -z "$as_dir" && as_dir=.
20830 for ac_exec_ext in '' $ac_executable_extensions; do
20831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20832 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20834 break 2
20836 done
20837 done
20838 IFS=$as_save_IFS
20841 esac
20843 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20844 if test -n "$gcc_cv_objdump"; then
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20846 $as_echo "$gcc_cv_objdump" >&6; }
20847 else
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20849 $as_echo "no" >&6; }
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20857 $as_echo_n "checking what objdump to use... " >&6; }
20858 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20859 # Single tree build which includes binutils.
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20861 $as_echo "newly built objdump" >&6; }
20862 elif test x$gcc_cv_objdump = x; then
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20864 $as_echo "not found" >&6; }
20865 else
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20867 $as_echo "$gcc_cv_objdump" >&6; }
20870 # Figure out what readelf we will be using.
20871 if test "${gcc_cv_readelf+set}" = set; then :
20873 else
20875 if test -f $gcc_cv_binutils_srcdir/configure.in \
20876 && test -f ../binutils/Makefile \
20877 && test x$build = x$host; then
20878 # Single tree build which includes binutils.
20879 gcc_cv_readelf=../binutils/readelf$build_exeext
20880 elif test -x readelf$build_exeext; then
20881 gcc_cv_readelf=./readelf$build_exeext
20882 else
20883 # Extract the first word of "readelf", so it can be a program name with args.
20884 set dummy readelf; ac_word=$2
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20886 $as_echo_n "checking for $ac_word... " >&6; }
20887 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20888 $as_echo_n "(cached) " >&6
20889 else
20890 case $gcc_cv_readelf in
20891 [\\/]* | ?:[\\/]*)
20892 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20896 for as_dir in $PATH
20898 IFS=$as_save_IFS
20899 test -z "$as_dir" && as_dir=.
20900 for ac_exec_ext in '' $ac_executable_extensions; do
20901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20902 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20904 break 2
20906 done
20907 done
20908 IFS=$as_save_IFS
20911 esac
20913 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20914 if test -n "$gcc_cv_readelf"; then
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20916 $as_echo "$gcc_cv_readelf" >&6; }
20917 else
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20919 $as_echo "no" >&6; }
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20927 $as_echo_n "checking what readelf to use... " >&6; }
20928 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20929 # Single tree build which includes binutils.
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20931 $as_echo "newly built readelf" >&6; }
20932 elif test x$gcc_cv_readelf = x; then
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20934 $as_echo "not found" >&6; }
20935 else
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20937 $as_echo "$gcc_cv_readelf" >&6; }
20940 # Figure out what assembler alignment features are present.
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20942 $as_echo_n "checking assembler flags... " >&6; }
20943 if test "${gcc_cv_as_flags+set}" = set; then :
20944 $as_echo_n "(cached) " >&6
20945 else
20946 case "$target" in
20947 i[34567]86-*-linux*)
20948 gcc_cv_as_flags="--32"
20951 gcc_cv_as_flags=" "
20953 esac
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20956 $as_echo "$gcc_cv_as_flags" >&6; }
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20959 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20960 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20961 $as_echo_n "(cached) " >&6
20962 else
20963 gcc_cv_as_balign_and_p2align=no
20964 if test $in_tree_gas = yes; then
20965 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20966 then gcc_cv_as_balign_and_p2align=yes
20968 elif test x$gcc_cv_as != x; then
20969 echo '.balign 4
20970 .p2align 2' > conftest.s
20971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20973 (eval $ac_try) 2>&5
20974 ac_status=$?
20975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20976 test $ac_status = 0; }; }
20977 then
20978 gcc_cv_as_balign_and_p2align=yes
20979 else
20980 echo "configure: failed program was" >&5
20981 cat conftest.s >&5
20983 rm -f conftest.o conftest.s
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20987 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20988 if test $gcc_cv_as_balign_and_p2align = yes; then
20990 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20995 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20996 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20997 $as_echo_n "(cached) " >&6
20998 else
20999 gcc_cv_as_max_skip_p2align=no
21000 if test $in_tree_gas = yes; then
21001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21002 then gcc_cv_as_max_skip_p2align=yes
21004 elif test x$gcc_cv_as != x; then
21005 echo '.p2align 4,,7' > conftest.s
21006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21008 (eval $ac_try) 2>&5
21009 ac_status=$?
21010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21011 test $ac_status = 0; }; }
21012 then
21013 gcc_cv_as_max_skip_p2align=yes
21014 else
21015 echo "configure: failed program was" >&5
21016 cat conftest.s >&5
21018 rm -f conftest.o conftest.s
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21022 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21023 if test $gcc_cv_as_max_skip_p2align = yes; then
21025 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21030 $as_echo_n "checking assembler for .literal16... " >&6; }
21031 if test "${gcc_cv_as_literal16+set}" = set; then :
21032 $as_echo_n "(cached) " >&6
21033 else
21034 gcc_cv_as_literal16=no
21035 if test $in_tree_gas = yes; then
21036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21037 then gcc_cv_as_literal16=yes
21039 elif test x$gcc_cv_as != x; then
21040 echo '.literal16' > conftest.s
21041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21043 (eval $ac_try) 2>&5
21044 ac_status=$?
21045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21046 test $ac_status = 0; }; }
21047 then
21048 gcc_cv_as_literal16=yes
21049 else
21050 echo "configure: failed program was" >&5
21051 cat conftest.s >&5
21053 rm -f conftest.o conftest.s
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21057 $as_echo "$gcc_cv_as_literal16" >&6; }
21058 if test $gcc_cv_as_literal16 = yes; then
21060 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21065 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21066 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21067 $as_echo_n "(cached) " >&6
21068 else
21069 gcc_cv_as_subsection_m1=no
21070 if test $in_tree_gas = yes; then
21071 if test $in_tree_gas_is_elf = yes \
21072 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21073 then gcc_cv_as_subsection_m1=yes
21075 elif test x$gcc_cv_as != x; then
21076 echo 'conftest_label1: .word 0
21077 .subsection -1
21078 conftest_label2: .word 0
21079 .previous' > conftest.s
21080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21082 (eval $ac_try) 2>&5
21083 ac_status=$?
21084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21085 test $ac_status = 0; }; }
21086 then
21087 if test x$gcc_cv_nm != x; then
21088 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21089 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21090 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21091 then :
21092 else gcc_cv_as_subsection_m1=yes
21094 rm -f conftest.nm1 conftest.nm2
21096 else
21097 echo "configure: failed program was" >&5
21098 cat conftest.s >&5
21100 rm -f conftest.o conftest.s
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21104 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21105 if test $gcc_cv_as_subsection_m1 = yes; then
21107 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21112 $as_echo_n "checking assembler for .weak... " >&6; }
21113 if test "${gcc_cv_as_weak+set}" = set; then :
21114 $as_echo_n "(cached) " >&6
21115 else
21116 gcc_cv_as_weak=no
21117 if test $in_tree_gas = yes; then
21118 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21119 then gcc_cv_as_weak=yes
21121 elif test x$gcc_cv_as != x; then
21122 echo ' .weak foobar' > conftest.s
21123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21128 test $ac_status = 0; }; }
21129 then
21130 gcc_cv_as_weak=yes
21131 else
21132 echo "configure: failed program was" >&5
21133 cat conftest.s >&5
21135 rm -f conftest.o conftest.s
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21139 $as_echo "$gcc_cv_as_weak" >&6; }
21140 if test $gcc_cv_as_weak = yes; then
21142 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21147 $as_echo_n "checking assembler for .weakref... " >&6; }
21148 if test "${gcc_cv_as_weakref+set}" = set; then :
21149 $as_echo_n "(cached) " >&6
21150 else
21151 gcc_cv_as_weakref=no
21152 if test $in_tree_gas = yes; then
21153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21154 then gcc_cv_as_weakref=yes
21156 elif test x$gcc_cv_as != x; then
21157 echo ' .weakref foobar, barfnot' > conftest.s
21158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21163 test $ac_status = 0; }; }
21164 then
21165 gcc_cv_as_weakref=yes
21166 else
21167 echo "configure: failed program was" >&5
21168 cat conftest.s >&5
21170 rm -f conftest.o conftest.s
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21174 $as_echo "$gcc_cv_as_weakref" >&6; }
21175 if test $gcc_cv_as_weakref = yes; then
21177 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21182 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21183 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21184 $as_echo_n "(cached) " >&6
21185 else
21186 gcc_cv_as_nsubspa_comdat=no
21187 if test $in_tree_gas = yes; then
21188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21189 then gcc_cv_as_nsubspa_comdat=yes
21191 elif test x$gcc_cv_as != x; then
21192 echo ' .SPACE $TEXT$
21193 .NSUBSPA $CODE$,COMDAT' > conftest.s
21194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21196 (eval $ac_try) 2>&5
21197 ac_status=$?
21198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21199 test $ac_status = 0; }; }
21200 then
21201 gcc_cv_as_nsubspa_comdat=yes
21202 else
21203 echo "configure: failed program was" >&5
21204 cat conftest.s >&5
21206 rm -f conftest.o conftest.s
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21210 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21211 if test $gcc_cv_as_nsubspa_comdat = yes; then
21213 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21217 # .hidden needs to be supported in both the assembler and the linker,
21218 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21219 # This is irritatingly difficult to feature test for; we have to check the
21220 # date string after the version number. If we've got an in-tree
21221 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21222 # to be safe.
21223 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21225 $as_echo_n "checking assembler for .hidden... " >&6; }
21226 if test "${gcc_cv_as_hidden+set}" = set; then :
21227 $as_echo_n "(cached) " >&6
21228 else
21229 gcc_cv_as_hidden=no
21230 if test $in_tree_gas = yes; then
21231 if test $in_tree_gas_is_elf = yes \
21232 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21233 then gcc_cv_as_hidden=yes
21235 elif test x$gcc_cv_as != x; then
21236 echo ' .hidden foobar
21237 foobar:' > conftest.s
21238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21243 test $ac_status = 0; }; }
21244 then
21245 gcc_cv_as_hidden=yes
21246 else
21247 echo "configure: failed program was" >&5
21248 cat conftest.s >&5
21250 rm -f conftest.o conftest.s
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21254 $as_echo "$gcc_cv_as_hidden" >&6; }
21257 if test $in_tree_ld != yes ; then
21258 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21259 if test x"$ld_is_gold" = xyes; then
21260 gcc_cv_ld_hidden=yes
21261 elif echo "$ld_ver" | grep GNU > /dev/null; then
21262 ld_vers=`echo $ld_ver | sed -n \
21263 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21264 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'`
21265 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21266 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21267 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21268 else
21269 case "${target}" in
21270 *-*-solaris2*)
21272 # Solaris 2 ld -V output looks like this for a regular version:
21274 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21276 # but test versions add stuff at the end:
21278 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21280 ld_ver=`$gcc_cv_ld -V 2>&1`
21281 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21282 ld_vers=`echo $ld_ver | sed -n \
21283 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21284 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21285 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21288 esac
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21293 $as_echo_n "checking linker for .hidden support... " >&6; }
21294 if test "${gcc_cv_ld_hidden+set}" = set; then :
21295 $as_echo_n "(cached) " >&6
21296 else
21297 if test $in_tree_ld = yes ; then
21298 gcc_cv_ld_hidden=no
21299 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 \
21300 && test $in_tree_ld_is_elf = yes; then
21301 gcc_cv_ld_hidden=yes
21303 else
21304 gcc_cv_ld_hidden=yes
21305 if echo "$ld_ver" | grep GNU > /dev/null; then
21306 if test 0"$ld_date" -lt 20020404; then
21307 if test -n "$ld_date"; then
21308 # If there was date string, but was earlier than 2002-04-04, fail
21309 gcc_cv_ld_hidden=no
21310 elif test -z "$ld_vers"; then
21311 # If there was no date string nor ld version number, something is wrong
21312 gcc_cv_ld_hidden=no
21313 else
21314 test -z "$ld_vers_patch" && ld_vers_patch=0
21315 if test "$ld_vers_major" -lt 2; then
21316 gcc_cv_ld_hidden=no
21317 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21318 gcc_cv_ld_hidden="no"
21319 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21320 gcc_cv_ld_hidden=no
21324 else
21325 case "${target}" in
21326 hppa64*-*-hpux* | ia64*-*-hpux*)
21327 gcc_cv_ld_hidden=yes
21329 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21330 gcc_cv_ld_hidden=yes
21333 gcc_cv_ld_hidden=no
21335 esac
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21340 $as_echo "$gcc_cv_ld_hidden" >&6; }
21341 libgcc_visibility=no
21344 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21345 libgcc_visibility=yes
21347 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21352 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21353 gcc_cv_ld_ro_rw_mix=unknown
21354 if test $in_tree_ld = yes ; then
21355 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 \
21356 && test $in_tree_ld_is_elf = yes; then
21357 gcc_cv_ld_ro_rw_mix=read-write
21359 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21360 echo '.section myfoosect, "a"' > conftest1.s
21361 echo '.section myfoosect, "aw"' > conftest2.s
21362 echo '.byte 1' >> conftest2.s
21363 echo '.section myfoosect, "a"' > conftest3.s
21364 echo '.byte 0' >> conftest3.s
21365 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21366 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21367 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21368 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21369 conftest2.o conftest3.o > /dev/null 2>&1; then
21370 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21371 | sed -e '/myfoosect/!d' -e N`
21372 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21373 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21374 gcc_cv_ld_ro_rw_mix=read-only
21375 else
21376 gcc_cv_ld_ro_rw_mix=read-write
21380 rm -f conftest.* conftest[123].*
21382 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21384 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21388 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21390 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21392 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21393 if test "${gcc_cv_as_leb128+set}" = set; then :
21394 $as_echo_n "(cached) " >&6
21395 else
21396 gcc_cv_as_leb128=no
21397 if test $in_tree_gas = yes; then
21398 if test $in_tree_gas_is_elf = yes \
21399 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21400 then gcc_cv_as_leb128=yes
21402 elif test x$gcc_cv_as != x; then
21403 echo ' .data
21404 .uleb128 L2 - L1
21406 .uleb128 1280
21407 .sleb128 -1010
21408 L2:' > conftest.s
21409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21411 (eval $ac_try) 2>&5
21412 ac_status=$?
21413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21414 test $ac_status = 0; }; }
21415 then
21416 # GAS versions before 2.11 do not support uleb128,
21417 # despite appearing to.
21418 # ??? There exists an elf-specific test that will crash
21419 # the assembler. Perhaps it's better to figure out whether
21420 # arbitrary sections are supported and try the test.
21421 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21422 if echo "$as_ver" | grep GNU > /dev/null; then
21423 as_vers=`echo $as_ver | sed -n \
21424 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21425 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21426 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21427 if test $as_major -eq 2 && test $as_minor -lt 11
21428 then :
21429 else gcc_cv_as_leb128=yes
21432 else
21433 echo "configure: failed program was" >&5
21434 cat conftest.s >&5
21436 rm -f conftest.o conftest.s
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21440 $as_echo "$gcc_cv_as_leb128" >&6; }
21441 if test $gcc_cv_as_leb128 = yes; then
21443 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21447 # Check if we have assembler support for unwind directives.
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21449 $as_echo_n "checking assembler for cfi directives... " >&6; }
21450 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21451 $as_echo_n "(cached) " >&6
21452 else
21453 gcc_cv_as_cfi_directive=no
21454 if test x$gcc_cv_as != x; then
21455 echo ' .text
21456 .cfi_startproc
21457 .cfi_offset 0, 0
21458 .cfi_same_value 1
21459 .cfi_def_cfa 1, 2
21460 .cfi_escape 1, 2, 3, 4, 5
21461 .cfi_endproc' > conftest.s
21462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21464 (eval $ac_try) 2>&5
21465 ac_status=$?
21466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21467 test $ac_status = 0; }; }
21468 then
21469 case "$target" in
21470 *-*-solaris*)
21471 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21472 # read-only and read-write sections, we need to make sure that the
21473 # assembler used emits read-write .eh_frame sections.
21474 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21475 if test "x$gcc_cv_objdump" != x; then
21476 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21477 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21478 gcc_cv_as_cfi_directive=no
21479 else
21480 case "$target" in
21481 i?86-*-solaris2.1[0-9]*)
21482 # On Solaris/x86, make sure that GCC and gas agree on using
21483 # read-only .eh_frame sections for 64-bit.
21484 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21485 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21486 sed -e /.eh_frame/!d -e N | \
21487 grep READONLY > /dev/null; then
21488 gcc_cv_as_cfi_directive=yes
21489 else
21490 gcc_cv_as_cfi_directive=no
21494 gcc_cv_as_cfi_directive=yes
21496 esac
21498 else
21499 # no objdump, err on the side of caution
21500 gcc_cv_as_cfi_directive=no
21502 else
21503 gcc_cv_as_cfi_directive=yes
21506 *-*-*)
21507 gcc_cv_as_cfi_directive=yes
21509 esac
21510 else
21511 echo "configure: failed program was" >&5
21512 cat conftest.s >&5
21514 rm -f conftest.o conftest.s
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21518 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21520 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21522 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21523 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21524 $as_echo_n "(cached) " >&6
21525 else
21526 gcc_cv_as_cfi_advance_working=no
21527 if test x$gcc_cv_as != x; then
21528 echo ' .text
21529 .cfi_startproc
21530 .cfi_adjust_cfa_offset 64
21531 .skip 75040, 0
21532 .cfi_adjust_cfa_offset 128
21533 .cfi_endproc' > conftest.s
21534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21539 test $ac_status = 0; }; }
21540 then
21542 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21543 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21544 gcc_cv_as_cfi_advance_working=yes
21547 else
21548 echo "configure: failed program was" >&5
21549 cat conftest.s >&5
21551 rm -f conftest.o conftest.s
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21555 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21557 else
21558 # no readelf, err on the side of caution
21559 gcc_cv_as_cfi_advance_working=no
21562 cat >>confdefs.h <<_ACEOF
21563 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21564 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21565 _ACEOF
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21569 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21570 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21571 $as_echo_n "(cached) " >&6
21572 else
21573 gcc_cv_as_cfi_personality_directive=no
21574 if test x$gcc_cv_as != x; then
21575 echo ' .text
21576 .cfi_startproc
21577 .cfi_personality 0, symbol
21578 .cfi_endproc' > conftest.s
21579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21581 (eval $ac_try) 2>&5
21582 ac_status=$?
21583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21584 test $ac_status = 0; }; }
21585 then
21586 gcc_cv_as_cfi_personality_directive=yes
21587 else
21588 echo "configure: failed program was" >&5
21589 cat conftest.s >&5
21591 rm -f conftest.o conftest.s
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21595 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21598 cat >>confdefs.h <<_ACEOF
21599 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21600 then echo 1; else echo 0; fi`
21601 _ACEOF
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21605 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21606 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21607 $as_echo_n "(cached) " >&6
21608 else
21609 gcc_cv_as_cfi_sections_directive=no
21610 if test x$gcc_cv_as != x; then
21611 echo ' .text
21612 .cfi_sections .debug_frame, .eh_frame
21613 .cfi_startproc
21614 .cfi_endproc' > conftest.s
21615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21620 test $ac_status = 0; }; }
21621 then
21622 gcc_cv_as_cfi_sections_directive=yes
21623 else
21624 echo "configure: failed program was" >&5
21625 cat conftest.s >&5
21627 rm -f conftest.o conftest.s
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21631 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21634 cat >>confdefs.h <<_ACEOF
21635 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21636 then echo 1; else echo 0; fi`
21637 _ACEOF
21640 # GAS versions up to and including 2.11.0 may mis-optimize
21641 # .eh_frame data.
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21643 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21644 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21645 $as_echo_n "(cached) " >&6
21646 else
21647 gcc_cv_as_eh_frame=no
21648 if test $in_tree_gas = yes; then
21649 if test $in_tree_gas_is_elf = yes \
21650 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21651 then gcc_cv_as_eh_frame=yes
21653 elif test x$gcc_cv_as != x; then
21654 echo ' .text
21655 .LFB1:
21656 .4byte 0
21657 .L1:
21658 .4byte 0
21659 .LFE1:
21660 .section .eh_frame,"aw",@progbits
21661 __FRAME_BEGIN__:
21662 .4byte .LECIE1-.LSCIE1
21663 .LSCIE1:
21664 .4byte 0x0
21665 .byte 0x1
21666 .ascii "z\0"
21667 .byte 0x1
21668 .byte 0x78
21669 .byte 0x1a
21670 .byte 0x0
21671 .byte 0x4
21672 .4byte 1
21673 .p2align 1
21674 .LECIE1:
21675 .LSFDE1:
21676 .4byte .LEFDE1-.LASFDE1
21677 .LASFDE1:
21678 .4byte .LASFDE1-__FRAME_BEGIN__
21679 .4byte .LFB1
21680 .4byte .LFE1-.LFB1
21681 .byte 0x4
21682 .4byte .LFE1-.LFB1
21683 .byte 0x4
21684 .4byte .L1-.LFB1
21685 .LEFDE1:' > conftest.s
21686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21691 test $ac_status = 0; }; }
21692 then
21693 cat > conftest.lit <<EOF
21694 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21695 0010 01000000 12000000 18000000 00000000 ................
21696 0020 08000000 04080000 0044 .........D
21698 cat > conftest.big <<EOF
21699 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21700 0010 00000001 00000012 00000018 00000000 ................
21701 0020 00000008 04000000 0844 .........D
21703 # If the assembler didn't choke, and we can objdump,
21704 # and we got the correct data, then succeed.
21705 # The text in the here-document typically retains its unix-style line
21706 # endings, while the output of objdump will use host line endings.
21707 # Therefore, use diff -b for the comparisons.
21708 if test x$gcc_cv_objdump != x \
21709 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21710 | tail -3 > conftest.got \
21711 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21712 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21713 then
21714 gcc_cv_as_eh_frame=yes
21715 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21720 test $ac_status = 0; }; }; then
21721 gcc_cv_as_eh_frame=buggy
21722 else
21723 # Uh oh, what do we do now?
21724 gcc_cv_as_eh_frame=no
21726 else
21727 echo "configure: failed program was" >&5
21728 cat conftest.s >&5
21730 rm -f conftest.o conftest.s
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21734 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21737 if test $gcc_cv_as_eh_frame = buggy; then
21739 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21744 $as_echo_n "checking assembler for section merging support... " >&6; }
21745 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21746 $as_echo_n "(cached) " >&6
21747 else
21748 gcc_cv_as_shf_merge=no
21749 if test $in_tree_gas = yes; then
21750 if test $in_tree_gas_is_elf = yes \
21751 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21752 then gcc_cv_as_shf_merge=yes
21754 elif test x$gcc_cv_as != x; then
21755 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21758 (eval $ac_try) 2>&5
21759 ac_status=$?
21760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21761 test $ac_status = 0; }; }
21762 then
21763 gcc_cv_as_shf_merge=yes
21764 else
21765 echo "configure: failed program was" >&5
21766 cat conftest.s >&5
21768 rm -f conftest.o conftest.s
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21772 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21774 if test $gcc_cv_as_shf_merge = no; then
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21776 $as_echo_n "checking assembler for section merging support... " >&6; }
21777 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21778 $as_echo_n "(cached) " >&6
21779 else
21780 gcc_cv_as_shf_merge=no
21781 if test $in_tree_gas = yes; then
21782 if test $in_tree_gas_is_elf = yes \
21783 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21784 then gcc_cv_as_shf_merge=yes
21786 elif test x$gcc_cv_as != x; then
21787 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21790 (eval $ac_try) 2>&5
21791 ac_status=$?
21792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21793 test $ac_status = 0; }; }
21794 then
21795 gcc_cv_as_shf_merge=yes
21796 else
21797 echo "configure: failed program was" >&5
21798 cat conftest.s >&5
21800 rm -f conftest.o conftest.s
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21804 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21808 cat >>confdefs.h <<_ACEOF
21809 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21810 _ACEOF
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21814 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21815 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21816 $as_echo_n "(cached) " >&6
21817 else
21818 gcc_cv_as_comdat_group=no
21819 if test $in_tree_gas = yes; then
21820 if test $in_tree_gas_is_elf = yes \
21821 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21822 then gcc_cv_as_comdat_group=yes
21824 elif test x$gcc_cv_as != x; then
21825 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21831 test $ac_status = 0; }; }
21832 then
21833 gcc_cv_as_comdat_group=yes
21834 else
21835 echo "configure: failed program was" >&5
21836 cat conftest.s >&5
21838 rm -f conftest.o conftest.s
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21842 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21844 if test $gcc_cv_as_comdat_group = yes; then
21845 gcc_cv_as_comdat_group_percent=no
21846 else
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21848 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21849 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21850 $as_echo_n "(cached) " >&6
21851 else
21852 gcc_cv_as_comdat_group_percent=no
21853 if test $in_tree_gas = yes; then
21854 if test $in_tree_gas_is_elf = yes \
21855 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21856 then gcc_cv_as_comdat_group_percent=yes
21858 elif test x$gcc_cv_as != x; then
21859 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21865 test $ac_status = 0; }; }
21866 then
21867 gcc_cv_as_comdat_group_percent=yes
21868 else
21869 echo "configure: failed program was" >&5
21870 cat conftest.s >&5
21872 rm -f conftest.o conftest.s
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21876 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21879 if test x"$ld_is_gold" = xyes; then
21880 comdat_group=yes
21881 elif test $in_tree_ld = yes ; then
21882 comdat_group=no
21883 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 \
21884 && test $in_tree_ld_is_elf = yes; then
21885 comdat_group=yes
21887 elif echo "$ld_ver" | grep GNU > /dev/null; then
21888 comdat_group=yes
21889 if test 0"$ld_date" -lt 20050308; then
21890 if test -n "$ld_date"; then
21891 # If there was date string, but was earlier than 2005-03-08, fail
21892 comdat_group=no
21893 elif test "$ld_vers_major" -lt 2; then
21894 comdat_group=no
21895 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21896 comdat_group=no
21899 else
21900 case "${target}" in
21901 *-*-solaris2.1[1-9]*)
21902 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21903 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21904 # version 1.688.
21906 # FIXME: Maybe need to refine later when COMDAT group support with
21907 # Sun as is implemented.
21908 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21909 comdat_group=yes
21910 else
21911 comdat_group=no
21915 # Assume linkers other than GNU ld don't support COMDAT group.
21916 comdat_group=no
21918 esac
21920 # Allow overriding the automatic COMDAT group tests above.
21921 # Check whether --enable-comdat was given.
21922 if test "${enable_comdat+set}" = set; then :
21923 enableval=$enable_comdat; comdat_group="$enable_comdat"
21926 if test $comdat_group = no; then
21927 gcc_cv_as_comdat_group=no
21928 gcc_cv_as_comdat_group_percent=no
21931 cat >>confdefs.h <<_ACEOF
21932 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21933 _ACEOF
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21937 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21938 if test "${gcc_cv_as_discriminator+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 gcc_cv_as_discriminator=no
21942 if test $in_tree_gas = yes; then
21943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21944 then gcc_cv_as_discriminator=yes
21946 elif test x$gcc_cv_as != x; then
21947 echo ' .text
21948 .file 1 "conf.c"
21949 .loc 1 1 0 discriminator 1' > conftest.s
21950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21955 test $ac_status = 0; }; }
21956 then
21957 gcc_cv_as_discriminator=yes
21958 else
21959 echo "configure: failed program was" >&5
21960 cat conftest.s >&5
21962 rm -f conftest.o conftest.s
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21966 $as_echo "$gcc_cv_as_discriminator" >&6; }
21967 if test $gcc_cv_as_discriminator = yes; then
21969 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21973 # Thread-local storage - the check is heavily parameterized.
21974 conftest_s=
21975 tls_first_major=
21976 tls_first_minor=
21977 tls_as_opt=
21978 case "$target" in
21979 alpha*-*-*)
21980 conftest_s='
21981 .section ".tdata","awT",@progbits
21982 foo: .long 25
21983 .text
21984 ldq $27,__tls_get_addr($29) !literal!1
21985 lda $16,foo($29) !tlsgd!1
21986 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21987 ldq $27,__tls_get_addr($29) !literal!2
21988 lda $16,foo($29) !tlsldm!2
21989 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21990 ldq $1,foo($29) !gotdtprel
21991 ldah $2,foo($29) !dtprelhi
21992 lda $3,foo($2) !dtprello
21993 lda $4,foo($29) !dtprel
21994 ldq $1,foo($29) !gottprel
21995 ldah $2,foo($29) !tprelhi
21996 lda $3,foo($2) !tprello
21997 lda $4,foo($29) !tprel'
21998 tls_first_major=2
21999 tls_first_minor=13
22000 tls_as_opt=--fatal-warnings
22002 cris-*-*|crisv32-*-*)
22003 conftest_s='
22004 .section ".tdata","awT",@progbits
22005 x: .long 25
22006 .text
22007 move.d x:IE,$r10
22008 nop'
22009 tls_first_major=2
22010 tls_first_minor=20
22011 tls_as_opt=--fatal-warnings
22013 frv*-*-*)
22014 conftest_s='
22015 .section ".tdata","awT",@progbits
22016 x: .long 25
22017 .text
22018 call #gettlsoff(x)'
22019 tls_first_major=2
22020 tls_first_minor=14
22022 hppa*-*-linux*)
22023 conftest_s='
22024 t1: .reg %r20
22025 t2: .reg %r21
22026 gp: .reg %r19
22027 .section ".tdata","awT",@progbits
22028 foo: .long 25
22029 .text
22030 .align 4
22031 addil LT%foo-$tls_gdidx$,gp
22032 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22033 b __tls_get_addr
22035 addil LT%foo-$tls_ldidx$,gp
22036 b __tls_get_addr
22037 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22038 addil LR%foo-$tls_dtpoff$,%ret0
22039 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22040 mfctl %cr27,%t1
22041 addil LT%foo-$tls_ieoff$,gp
22042 ldw RT%foo-$tls_ieoff$(%r1),%t2
22043 add %t1,%t2,%t3
22044 mfctl %cr27,%t1
22045 addil LR%foo-$tls_leoff$,%t1
22046 ldo RR%foo-$tls_leoff$(%r1),%t2'
22047 tls_first_major=2
22048 tls_first_minor=15
22049 tls_as_opt=--fatal-warnings
22051 arm*-*-*)
22052 conftest_s='
22053 .section ".tdata","awT",%progbits
22054 foo: .long 25
22055 .text
22056 .word foo(gottpoff)
22057 .word foo(tpoff)
22058 .word foo(tlsgd)
22059 .word foo(tlsldm)
22060 .word foo(tlsldo)'
22061 tls_first_major=2
22062 tls_first_minor=17
22064 i[34567]86-*-*)
22065 case "$target" in
22066 i[34567]86-*-solaris2.[89]*)
22067 # TLS was introduced in the Solaris 9 4/04 release but
22068 # we do not enable it by default on Solaris 9 either.
22069 if test "x$enable_tls" = xyes ; then
22070 on_solaris=yes
22071 else
22072 enable_tls=no;
22075 i[34567]86-*-solaris2.*)
22076 on_solaris=yes
22079 on_solaris=no
22081 esac
22082 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22083 conftest_s='
22084 .section .tdata,"awt",@progbits'
22085 tls_first_major=0
22086 tls_first_minor=0
22088 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22090 else
22091 conftest_s='
22092 .section ".tdata","awT",@progbits'
22093 tls_first_major=2
22094 tls_first_minor=14
22095 tls_as_opt="--fatal-warnings"
22097 conftest_s="$conftest_s
22098 foo: .long 25
22099 .text
22100 movl %gs:0, %eax
22101 leal foo@tlsgd(,%ebx,1), %eax
22102 leal foo@tlsldm(%ebx), %eax
22103 leal foo@dtpoff(%eax), %edx
22104 movl foo@gottpoff(%ebx), %eax
22105 subl foo@gottpoff(%ebx), %eax
22106 addl foo@gotntpoff(%ebx), %eax
22107 movl foo@indntpoff, %eax
22108 movl \$foo@tpoff, %eax
22109 subl \$foo@tpoff, %eax
22110 leal foo@ntpoff(%ecx), %eax"
22112 x86_64-*-*)
22113 conftest_s='
22114 .section ".tdata","awT",@progbits
22115 foo: .long 25
22116 .text
22117 movq %fs:0, %rax
22118 leaq foo@TLSGD(%rip), %rdi
22119 leaq foo@TLSLD(%rip), %rdi
22120 leaq foo@DTPOFF(%rax), %rdx
22121 movq foo@GOTTPOFF(%rip), %rax
22122 movq $foo@TPOFF, %rax'
22123 tls_first_major=2
22124 tls_first_minor=14
22125 tls_as_opt=--fatal-warnings
22127 ia64-*-*)
22128 conftest_s='
22129 .section ".tdata","awT",@progbits
22130 foo: data8 25
22131 .text
22132 addl r16 = @ltoff(@dtpmod(foo#)), gp
22133 addl r17 = @ltoff(@dtprel(foo#)), gp
22134 addl r18 = @ltoff(@tprel(foo#)), gp
22135 addl r19 = @dtprel(foo#), gp
22136 adds r21 = @dtprel(foo#), r13
22137 movl r23 = @dtprel(foo#)
22138 addl r20 = @tprel(foo#), gp
22139 adds r22 = @tprel(foo#), r13
22140 movl r24 = @tprel(foo#)'
22141 tls_first_major=2
22142 tls_first_minor=13
22143 tls_as_opt=--fatal-warnings
22145 mips*-*-*)
22146 conftest_s='
22147 .section .tdata,"awT",@progbits
22149 .word 2
22150 .text
22151 addiu $4, $28, %tlsgd(x)
22152 addiu $4, $28, %tlsldm(x)
22153 lui $4, %dtprel_hi(x)
22154 addiu $4, $4, %dtprel_lo(x)
22155 lw $4, %gottprel(x)($28)
22156 lui $4, %tprel_hi(x)
22157 addiu $4, $4, %tprel_lo(x)'
22158 tls_first_major=2
22159 tls_first_minor=16
22160 tls_as_opt='-32 --fatal-warnings'
22162 m68k-*-*)
22163 conftest_s='
22164 .section .tdata,"awT",@progbits
22166 .word 2
22167 .text
22168 foo:
22169 move.l x@TLSGD(%a5),%a0
22170 move.l x@TLSLDM(%a5),%a0
22171 move.l x@TLSLDO(%a5),%a0
22172 move.l x@TLSIE(%a5),%a0
22173 move.l x@TLSLE(%a5),%a0'
22174 tls_first_major=2
22175 tls_first_minor=19
22176 tls_as_opt='--fatal-warnings'
22178 powerpc-*-*)
22179 conftest_s='
22180 .section ".tdata","awT",@progbits
22181 .align 2
22182 ld0: .space 4
22183 ld1: .space 4
22184 x1: .space 4
22185 x2: .space 4
22186 x3: .space 4
22187 .text
22188 addi 3,31,ld0@got@tlsgd
22189 bl __tls_get_addr
22190 addi 3,31,x1@got@tlsld
22191 bl __tls_get_addr
22192 addi 9,3,x1@dtprel
22193 addis 9,3,x2@dtprel@ha
22194 addi 9,9,x2@dtprel@l
22195 lwz 9,x3@got@tprel(31)
22196 add 9,9,x@tls
22197 addi 9,2,x1@tprel
22198 addis 9,2,x2@tprel@ha
22199 addi 9,9,x2@tprel@l'
22200 tls_first_major=2
22201 tls_first_minor=14
22202 tls_as_opt="-a32 --fatal-warnings"
22204 powerpc64-*-*)
22205 conftest_s='
22206 .section ".tdata","awT",@progbits
22207 .align 3
22208 ld0: .space 8
22209 ld1: .space 8
22210 x1: .space 8
22211 x2: .space 8
22212 x3: .space 8
22213 .text
22214 addi 3,2,ld0@got@tlsgd
22215 bl .__tls_get_addr
22217 addi 3,2,ld1@toc
22218 bl .__tls_get_addr
22220 addi 3,2,x1@got@tlsld
22221 bl .__tls_get_addr
22223 addi 9,3,x1@dtprel
22224 bl .__tls_get_addr
22226 addis 9,3,x2@dtprel@ha
22227 addi 9,9,x2@dtprel@l
22228 bl .__tls_get_addr
22230 ld 9,x3@got@dtprel(2)
22231 add 9,9,3
22232 bl .__tls_get_addr
22233 nop'
22234 tls_first_major=2
22235 tls_first_minor=14
22236 tls_as_opt="-a64 --fatal-warnings"
22238 s390-*-*)
22239 conftest_s='
22240 .section ".tdata","awT",@progbits
22241 foo: .long 25
22242 .text
22243 .long foo@TLSGD
22244 .long foo@TLSLDM
22245 .long foo@DTPOFF
22246 .long foo@NTPOFF
22247 .long foo@GOTNTPOFF
22248 .long foo@INDNTPOFF
22249 l %r1,foo@GOTNTPOFF(%r12)
22250 l %r1,0(%r1):tls_load:foo
22251 bas %r14,0(%r1,%r13):tls_gdcall:foo
22252 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22253 tls_first_major=2
22254 tls_first_minor=14
22255 tls_as_opt="-m31 --fatal-warnings"
22257 s390x-*-*)
22258 conftest_s='
22259 .section ".tdata","awT",@progbits
22260 foo: .long 25
22261 .text
22262 .quad foo@TLSGD
22263 .quad foo@TLSLDM
22264 .quad foo@DTPOFF
22265 .quad foo@NTPOFF
22266 .quad foo@GOTNTPOFF
22267 lg %r1,foo@GOTNTPOFF(%r12)
22268 larl %r1,foo@INDNTPOFF
22269 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22270 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22271 tls_first_major=2
22272 tls_first_minor=14
22273 tls_as_opt="-m64 -Aesame --fatal-warnings"
22275 sh-*-* | sh[34]-*-*)
22276 conftest_s='
22277 .section ".tdata","awT",@progbits
22278 foo: .long 25
22279 .text
22280 .long foo@TLSGD
22281 .long foo@TLSLDM
22282 .long foo@DTPOFF
22283 .long foo@GOTTPOFF
22284 .long foo@TPOFF'
22285 tls_first_major=2
22286 tls_first_minor=13
22287 tls_as_opt=--fatal-warnings
22289 sparc*-*-*)
22290 case "$target" in
22291 sparc*-sun-solaris2.[89]*)
22292 # TLS was introduced in the Solaris 9 4/04 release but
22293 # we do not enable it by default on Solaris 9 either.
22294 if test "x$enable_tls" = xyes ; then
22295 on_solaris=yes
22296 else
22297 enable_tls=no;
22300 sparc*-sun-solaris2.*)
22301 on_solaris=yes
22304 on_solaris=no
22306 esac
22307 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22308 conftest_s='
22309 .section ".tdata",#alloc,#write,#tls
22310 foo: .long 25
22311 .text
22312 sethi %tgd_hi22(foo), %o0
22313 add %o0, %tgd_lo10(foo), %o1
22314 add %l7, %o1, %o0, %tgd_add(foo)
22315 call __tls_get_addr, %tgd_call(foo)
22316 sethi %tldm_hi22(foo), %l1
22317 add %l1, %tldm_lo10(foo), %l2
22318 add %l7, %l2, %o0, %tldm_add(foo)
22319 call __tls_get_addr, %tldm_call(foo)
22320 sethi %tldo_hix22(foo), %l3
22321 xor %l3, %tldo_lox10(foo), %l4
22322 add %o0, %l4, %l5, %tldo_add(foo)
22323 sethi %tie_hi22(foo), %o3
22324 add %o3, %tie_lo10(foo), %o3
22325 ld [%l7 + %o3], %o2, %tie_ld(foo)
22326 add %g7, %o2, %o4, %tie_add(foo)
22327 sethi %tle_hix22(foo), %l1
22328 xor %l1, %tle_lox10(foo), %o5
22329 ld [%g7 + %o5], %o1'
22330 tls_first_major=0
22331 tls_first_minor=0
22332 else
22333 conftest_s='
22334 .section ".tdata","awT",@progbits
22335 foo: .long 25
22336 .text
22337 sethi %tgd_hi22(foo), %o0
22338 add %o0, %tgd_lo10(foo), %o1
22339 add %l7, %o1, %o0, %tgd_add(foo)
22340 call __tls_get_addr, %tgd_call(foo)
22341 sethi %tldm_hi22(foo), %l1
22342 add %l1, %tldm_lo10(foo), %l2
22343 add %l7, %l2, %o0, %tldm_add(foo)
22344 call __tls_get_addr, %tldm_call(foo)
22345 sethi %tldo_hix22(foo), %l3
22346 xor %l3, %tldo_lox10(foo), %l4
22347 add %o0, %l4, %l5, %tldo_add(foo)
22348 sethi %tie_hi22(foo), %o3
22349 add %o3, %tie_lo10(foo), %o3
22350 ld [%l7 + %o3], %o2, %tie_ld(foo)
22351 add %g7, %o2, %o4, %tie_add(foo)
22352 sethi %tle_hix22(foo), %l1
22353 xor %l1, %tle_lox10(foo), %o5
22354 ld [%g7 + %o5], %o1'
22355 tls_first_major=2
22356 tls_first_minor=14
22357 tls_as_opt="-32 --fatal-warnings"
22360 xtensa*-*-*)
22361 conftest_s='
22362 .section ".tdata","awT",@progbits
22363 foo: .long 25
22364 .text
22365 movi a8, foo@TLSFUNC
22366 movi a10, foo@TLSARG
22367 callx8.tls a8, foo@TLSCALL'
22368 tls_first_major=2
22369 tls_first_minor=19
22371 esac
22372 set_have_as_tls=no
22373 if test "x$enable_tls" = xno ; then
22374 : # TLS explicitly disabled.
22375 elif test "x$enable_tls" = xyes ; then
22376 set_have_as_tls=yes # TLS explicitly enabled.
22377 elif test -z "$tls_first_major"; then
22378 : # If we don't have a check, assume no support.
22379 else
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22381 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22382 if test "${gcc_cv_as_tls+set}" = set; then :
22383 $as_echo_n "(cached) " >&6
22384 else
22385 gcc_cv_as_tls=no
22386 if test $in_tree_gas = yes; then
22387 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22388 then gcc_cv_as_tls=yes
22390 elif test x$gcc_cv_as != x; then
22391 echo "$conftest_s" > conftest.s
22392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22394 (eval $ac_try) 2>&5
22395 ac_status=$?
22396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22397 test $ac_status = 0; }; }
22398 then
22399 gcc_cv_as_tls=yes
22400 else
22401 echo "configure: failed program was" >&5
22402 cat conftest.s >&5
22404 rm -f conftest.o conftest.s
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22408 $as_echo "$gcc_cv_as_tls" >&6; }
22409 if test $gcc_cv_as_tls = yes; then
22410 set_have_as_tls=yes
22413 if test $set_have_as_tls = yes ; then
22415 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22419 # Target-specific assembler checks.
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22422 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22423 gcc_cv_ld_static_dynamic=no
22424 if test $in_tree_ld = yes ; then
22425 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
22426 gcc_cv_ld_static_dynamic=yes
22428 elif test x$gcc_cv_ld != x; then
22429 # Check if linker supports -Bstatic/-Bdynamic option
22430 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22431 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22432 gcc_cv_ld_static_dynamic=yes
22435 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22437 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22441 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22443 if test x"$demangler_in_ld" = xyes; then
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22445 $as_echo_n "checking linker --demangle support... " >&6; }
22446 gcc_cv_ld_demangle=no
22447 if test $in_tree_ld = yes; then
22448 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 \
22449 gcc_cv_ld_demangle=yes
22451 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22452 # Check if the GNU linker supports --demangle option
22453 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22454 gcc_cv_ld_demangle=yes
22457 if test x"$gcc_cv_ld_demangle" = xyes; then
22459 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22463 $as_echo "$gcc_cv_ld_demangle" >&6; }
22466 case "$target" in
22467 # All TARGET_ABI_OSF targets.
22468 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22470 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22471 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22472 $as_echo_n "(cached) " >&6
22473 else
22474 gcc_cv_as_alpha_explicit_relocs=no
22475 if test $in_tree_gas = yes; then
22476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22477 then gcc_cv_as_alpha_explicit_relocs=yes
22479 elif test x$gcc_cv_as != x; then
22480 echo ' .set nomacro
22481 .text
22482 extbl $3, $2, $3 !lituse_bytoff!1
22483 ldq $2, a($29) !literal!1
22484 ldq $4, b($29) !literal!2
22485 ldq_u $3, 0($2) !lituse_base!1
22486 ldq $27, f($29) !literal!5
22487 jsr $26, ($27), f !lituse_jsr!5
22488 ldah $29, 0($26) !gpdisp!3
22489 lda $0, c($29) !gprel
22490 ldah $1, d($29) !gprelhigh
22491 lda $1, d($1) !gprellow
22492 lda $29, 0($29) !gpdisp!3' > conftest.s
22493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22498 test $ac_status = 0; }; }
22499 then
22500 gcc_cv_as_alpha_explicit_relocs=yes
22501 else
22502 echo "configure: failed program was" >&5
22503 cat conftest.s >&5
22505 rm -f conftest.o conftest.s
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22509 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22510 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22512 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22516 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22517 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22518 $as_echo_n "(cached) " >&6
22519 else
22520 gcc_cv_as_alpha_jsrdirect_relocs=no
22521 if test $in_tree_gas = yes; then
22522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22523 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22525 elif test x$gcc_cv_as != x; then
22526 echo ' .set nomacro
22527 .text
22528 ldq $27, a($29) !literal!1
22529 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22532 (eval $ac_try) 2>&5
22533 ac_status=$?
22534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22535 test $ac_status = 0; }; }
22536 then
22537 gcc_cv_as_alpha_jsrdirect_relocs=yes
22538 else
22539 echo "configure: failed program was" >&5
22540 cat conftest.s >&5
22542 rm -f conftest.o conftest.s
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22546 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22547 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22549 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22554 cris-*-*)
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22556 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22557 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22558 $as_echo_n "(cached) " >&6
22559 else
22560 gcc_cv_as_cris_no_mul_bug=no
22561 if test $in_tree_gas = yes; then
22562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22563 then gcc_cv_as_cris_no_mul_bug=yes
22565 elif test x$gcc_cv_as != x; then
22566 echo '.text' > conftest.s
22567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22569 (eval $ac_try) 2>&5
22570 ac_status=$?
22571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22572 test $ac_status = 0; }; }
22573 then
22574 gcc_cv_as_cris_no_mul_bug=yes
22575 else
22576 echo "configure: failed program was" >&5
22577 cat conftest.s >&5
22579 rm -f conftest.o conftest.s
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22583 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22584 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22586 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22591 sparc*-*-*)
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22593 $as_echo_n "checking assembler for .register... " >&6; }
22594 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22595 $as_echo_n "(cached) " >&6
22596 else
22597 gcc_cv_as_sparc_register_op=no
22598 if test x$gcc_cv_as != x; then
22599 echo '.register %g2, #scratch' > conftest.s
22600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22602 (eval $ac_try) 2>&5
22603 ac_status=$?
22604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22605 test $ac_status = 0; }; }
22606 then
22607 gcc_cv_as_sparc_register_op=yes
22608 else
22609 echo "configure: failed program was" >&5
22610 cat conftest.s >&5
22612 rm -f conftest.o conftest.s
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22616 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22617 if test $gcc_cv_as_sparc_register_op = yes; then
22619 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22624 $as_echo_n "checking assembler for -relax option... " >&6; }
22625 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22626 $as_echo_n "(cached) " >&6
22627 else
22628 gcc_cv_as_sparc_relax=no
22629 if test x$gcc_cv_as != x; then
22630 echo '.text' > conftest.s
22631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22633 (eval $ac_try) 2>&5
22634 ac_status=$?
22635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22636 test $ac_status = 0; }; }
22637 then
22638 gcc_cv_as_sparc_relax=yes
22639 else
22640 echo "configure: failed program was" >&5
22641 cat conftest.s >&5
22643 rm -f conftest.o conftest.s
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22647 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22648 if test $gcc_cv_as_sparc_relax = yes; then
22650 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22655 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22656 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22657 $as_echo_n "(cached) " >&6
22658 else
22659 gcc_cv_as_sparc_gotdata_op=no
22660 if test x$gcc_cv_as != x; then
22661 echo '.text
22662 foo:
22664 bar:
22665 sethi %gdop_hix22(foo), %g1
22666 xor %g1, %gdop_lox10(foo), %g1
22667 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22670 (eval $ac_try) 2>&5
22671 ac_status=$?
22672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22673 test $ac_status = 0; }; }
22674 then
22675 if test x$gcc_cv_ld != x \
22676 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22677 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22678 if test x$gcc_cv_objdump != x; then
22679 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22680 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22681 gcc_cv_as_sparc_gotdata_op=no
22682 else
22683 gcc_cv_as_sparc_gotdata_op=yes
22686 else
22687 gcc_cv_as_sparc_gotdata_op=yes
22690 rm -f conftest
22691 else
22692 echo "configure: failed program was" >&5
22693 cat conftest.s >&5
22695 rm -f conftest.o conftest.s
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22699 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22700 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22702 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22707 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22708 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22709 $as_echo_n "(cached) " >&6
22710 else
22711 gcc_cv_as_sparc_ua_pcrel=no
22712 if test x$gcc_cv_as != x; then
22713 echo '.text
22714 foo:
22716 .data
22717 .align 4
22718 .byte 0
22719 .uaword %r_disp32(foo)' > conftest.s
22720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22722 (eval $ac_try) 2>&5
22723 ac_status=$?
22724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725 test $ac_status = 0; }; }
22726 then
22727 if test x$gcc_cv_ld != x \
22728 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22729 gcc_cv_as_sparc_ua_pcrel=yes
22731 rm -f conftest
22732 else
22733 echo "configure: failed program was" >&5
22734 cat conftest.s >&5
22736 rm -f conftest.o conftest.s
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22740 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22741 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22743 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22747 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22748 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22749 $as_echo_n "(cached) " >&6
22750 else
22751 gcc_cv_as_sparc_ua_pcrel_hidden=no
22752 if test x$gcc_cv_as != x; then
22753 echo '.data
22754 .align 4
22755 .byte 0x31
22756 .uaword %r_disp32(foo)
22757 .byte 0x32, 0x33, 0x34
22758 .global foo
22759 .hidden foo
22760 foo:
22761 .skip 4' > conftest.s
22762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22764 (eval $ac_try) 2>&5
22765 ac_status=$?
22766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22767 test $ac_status = 0; }; }
22768 then
22769 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22770 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22771 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22772 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22773 if $gcc_cv_objdump -R conftest 2> /dev/null \
22774 | grep 'DISP32' > /dev/null 2>&1; then
22776 else
22777 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22780 rm -f conftest
22781 else
22782 echo "configure: failed program was" >&5
22783 cat conftest.s >&5
22785 rm -f conftest.o conftest.s
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22789 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22790 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22792 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22796 fi # unaligned pcrel relocs
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22799 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22800 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22801 $as_echo_n "(cached) " >&6
22802 else
22803 gcc_cv_as_sparc_offsetable_lo10=no
22804 if test x$gcc_cv_as != x; then
22805 echo '.text
22806 or %g1, %lo(ab) + 12, %g1
22807 or %g1, %lo(ab + 12), %g1' > conftest.s
22808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22813 test $ac_status = 0; }; }
22814 then
22815 if test x$gcc_cv_objdump != x \
22816 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22817 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22818 gcc_cv_as_sparc_offsetable_lo10=yes
22820 else
22821 echo "configure: failed program was" >&5
22822 cat conftest.s >&5
22824 rm -f conftest.o conftest.s
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22828 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22829 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22831 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22836 i[34567]86-*-* | x86_64-*-*)
22837 case $target_os in
22838 cygwin*)
22839 # Full C++ conformance when using a shared libstdc++-v3 requires some
22840 # support from the Cygwin DLL, which in more recent versions exports
22841 # wrappers to aid in interposing and redirecting operators new, delete,
22842 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22843 # are configuring for a version of Cygwin that exports the wrappers.
22844 if test x$host = x$target; then
22845 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22846 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
22847 gcc_ac_cygwin_dll_wrappers=yes
22848 else
22849 gcc_ac_cygwin_dll_wrappers=no
22852 else
22853 # Can't check presence of libc functions during cross-compile, so
22854 # we just have to assume we're building for an up-to-date target.
22855 gcc_ac_cygwin_dll_wrappers=yes
22858 cat >>confdefs.h <<_ACEOF
22859 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22860 _ACEOF
22862 esac
22863 case $target_os in
22864 cygwin* | pe | mingw32*)
22865 # Recent binutils allows the three-operand form of ".comm" on PE. This
22866 # definition is used unconditionally to initialise the default state of
22867 # the target option variable that governs usage of the feature.
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22869 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22870 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22871 $as_echo_n "(cached) " >&6
22872 else
22873 gcc_cv_as_comm_has_align=no
22874 if test $in_tree_gas = yes; then
22875 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22876 then gcc_cv_as_comm_has_align=yes
22878 elif test x$gcc_cv_as != x; then
22879 echo '.comm foo,1,32' > conftest.s
22880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22882 (eval $ac_try) 2>&5
22883 ac_status=$?
22884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22885 test $ac_status = 0; }; }
22886 then
22887 gcc_cv_as_comm_has_align=yes
22888 else
22889 echo "configure: failed program was" >&5
22890 cat conftest.s >&5
22892 rm -f conftest.o conftest.s
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22896 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22899 cat >>confdefs.h <<_ACEOF
22900 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22901 _ACEOF
22903 # Used for DWARF 2 in PE
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22905 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22906 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22907 $as_echo_n "(cached) " >&6
22908 else
22909 gcc_cv_as_ix86_pe_secrel32=no
22910 if test $in_tree_gas = yes; then
22911 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22912 then gcc_cv_as_ix86_pe_secrel32=yes
22914 elif test x$gcc_cv_as != x; then
22915 echo '.text
22916 foo: nop
22917 .data
22918 .secrel32 foo' > conftest.s
22919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22921 (eval $ac_try) 2>&5
22922 ac_status=$?
22923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22924 test $ac_status = 0; }; }
22925 then
22926 if test x$gcc_cv_ld != x \
22927 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22928 gcc_cv_as_ix86_pe_secrel32=yes
22930 rm -f conftest
22931 else
22932 echo "configure: failed program was" >&5
22933 cat conftest.s >&5
22935 rm -f conftest.o conftest.s
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22939 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22940 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22942 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22946 esac
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22949 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22950 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22951 $as_echo_n "(cached) " >&6
22952 else
22953 gcc_cv_as_ix86_filds=no
22954 if test x$gcc_cv_as != x; then
22955 echo 'filds mem; fists mem' > conftest.s
22956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22958 (eval $ac_try) 2>&5
22959 ac_status=$?
22960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22961 test $ac_status = 0; }; }
22962 then
22963 gcc_cv_as_ix86_filds=yes
22964 else
22965 echo "configure: failed program was" >&5
22966 cat conftest.s >&5
22968 rm -f conftest.o conftest.s
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22972 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22973 if test $gcc_cv_as_ix86_filds = yes; then
22975 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22980 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22981 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22982 $as_echo_n "(cached) " >&6
22983 else
22984 gcc_cv_as_ix86_fildq=no
22985 if test x$gcc_cv_as != x; then
22986 echo 'fildq mem; fistpq mem' > conftest.s
22987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22989 (eval $ac_try) 2>&5
22990 ac_status=$?
22991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22992 test $ac_status = 0; }; }
22993 then
22994 gcc_cv_as_ix86_fildq=yes
22995 else
22996 echo "configure: failed program was" >&5
22997 cat conftest.s >&5
22999 rm -f conftest.o conftest.s
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23003 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23004 if test $gcc_cv_as_ix86_fildq = yes; then
23006 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23011 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23012 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23013 $as_echo_n "(cached) " >&6
23014 else
23015 gcc_cv_as_ix86_cmov_sun_syntax=no
23016 if test x$gcc_cv_as != x; then
23017 echo 'cmovl.l %edx, %eax' > conftest.s
23018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23020 (eval $ac_try) 2>&5
23021 ac_status=$?
23022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23023 test $ac_status = 0; }; }
23024 then
23025 gcc_cv_as_ix86_cmov_sun_syntax=yes
23026 else
23027 echo "configure: failed program was" >&5
23028 cat conftest.s >&5
23030 rm -f conftest.o conftest.s
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23034 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23035 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23037 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23042 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23043 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23044 $as_echo_n "(cached) " >&6
23045 else
23046 gcc_cv_as_ix86_ffreep=no
23047 if test x$gcc_cv_as != x; then
23048 echo 'ffreep %st(1)' > conftest.s
23049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23051 (eval $ac_try) 2>&5
23052 ac_status=$?
23053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23054 test $ac_status = 0; }; }
23055 then
23056 gcc_cv_as_ix86_ffreep=yes
23057 else
23058 echo "configure: failed program was" >&5
23059 cat conftest.s >&5
23061 rm -f conftest.o conftest.s
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23065 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23066 if test $gcc_cv_as_ix86_ffreep = yes; then
23068 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23073 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23074 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23075 $as_echo_n "(cached) " >&6
23076 else
23077 gcc_cv_as_ix86_sahf=no
23078 if test x$gcc_cv_as != x; then
23079 echo 'sahf' > conftest.s
23080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23082 (eval $ac_try) 2>&5
23083 ac_status=$?
23084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23085 test $ac_status = 0; }; }
23086 then
23087 gcc_cv_as_ix86_sahf=yes
23088 else
23089 echo "configure: failed program was" >&5
23090 cat conftest.s >&5
23092 rm -f conftest.o conftest.s
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23096 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23097 if test $gcc_cv_as_ix86_sahf = yes; then
23099 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23104 $as_echo_n "checking assembler for swap suffix... " >&6; }
23105 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23106 $as_echo_n "(cached) " >&6
23107 else
23108 gcc_cv_as_ix86_swap=no
23109 if test x$gcc_cv_as != x; then
23110 echo 'movl.s %esp, %ebp' > conftest.s
23111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; }
23117 then
23118 gcc_cv_as_ix86_swap=yes
23119 else
23120 echo "configure: failed program was" >&5
23121 cat conftest.s >&5
23123 rm -f conftest.o conftest.s
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23127 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23128 if test $gcc_cv_as_ix86_swap = yes; then
23130 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23135 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23136 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23137 $as_echo_n "(cached) " >&6
23138 else
23139 gcc_cv_as_ix86_diff_sect_delta=no
23140 if test x$gcc_cv_as != x; then
23141 echo '.section .rodata
23142 .L1:
23143 .long .L2-.L1
23144 .long .L3-.L1
23145 .text
23146 .L3: nop
23147 .L2: nop' > conftest.s
23148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23154 then
23155 gcc_cv_as_ix86_diff_sect_delta=yes
23156 else
23157 echo "configure: failed program was" >&5
23158 cat conftest.s >&5
23160 rm -f conftest.o conftest.s
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23164 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23165 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23167 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23171 # This one is used unconditionally by i386.[ch]; it is to be defined
23172 # to 1 if the feature is present, 0 otherwise.
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23174 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23175 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23176 $as_echo_n "(cached) " >&6
23177 else
23178 gcc_cv_as_ix86_gotoff_in_data=no
23179 if test $in_tree_gas = yes; then
23180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23181 then gcc_cv_as_ix86_gotoff_in_data=yes
23183 elif test x$gcc_cv_as != x; then
23184 echo ' .text
23185 .L0:
23187 .data
23188 .long .L0@GOTOFF' > conftest.s
23189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23194 test $ac_status = 0; }; }
23195 then
23196 gcc_cv_as_ix86_gotoff_in_data=yes
23197 else
23198 echo "configure: failed program was" >&5
23199 cat conftest.s >&5
23201 rm -f conftest.o conftest.s
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23205 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23208 cat >>confdefs.h <<_ACEOF
23209 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23210 _ACEOF
23214 ia64*-*-*)
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23216 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23217 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23218 $as_echo_n "(cached) " >&6
23219 else
23220 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23221 if test $in_tree_gas = yes; then
23222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23223 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23225 elif test x$gcc_cv_as != x; then
23226 echo ' .text
23227 addl r15 = @ltoffx(x#), gp
23229 ld8.mov r16 = [r15], x#' > conftest.s
23230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23235 test $ac_status = 0; }; }
23236 then
23237 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23238 else
23239 echo "configure: failed program was" >&5
23240 cat conftest.s >&5
23242 rm -f conftest.o conftest.s
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23246 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23247 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23249 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23255 powerpc*-*-*)
23256 case $target in
23257 *-*-aix*) conftest_s=' .machine "pwr5"
23258 .csect .text[PR]
23259 mfcr 3,128';;
23260 *-*-darwin*)
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23262 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23263 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23264 $as_echo_n "(cached) " >&6
23265 else
23266 gcc_cv_as_machine_directive=no
23267 if test x$gcc_cv_as != x; then
23268 echo ' .machine ppc7400' > conftest.s
23269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23271 (eval $ac_try) 2>&5
23272 ac_status=$?
23273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23274 test $ac_status = 0; }; }
23275 then
23276 gcc_cv_as_machine_directive=yes
23277 else
23278 echo "configure: failed program was" >&5
23279 cat conftest.s >&5
23281 rm -f conftest.o conftest.s
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23285 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23287 if test x$gcc_cv_as_machine_directive != xyes; then
23288 echo "*** This target requires an assembler supporting \".machine\"" >&2
23289 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23290 test x$build = x$target && exit 1
23292 conftest_s=' .text
23293 mfcr r3,128';;
23294 *) conftest_s=' .machine power4
23295 .text
23296 mfcr 3,128';;
23297 esac
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23300 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23301 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23302 $as_echo_n "(cached) " >&6
23303 else
23304 gcc_cv_as_powerpc_mfcrf=no
23305 if test $in_tree_gas = yes; then
23306 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23307 then gcc_cv_as_powerpc_mfcrf=yes
23309 elif test x$gcc_cv_as != x; then
23310 echo "$conftest_s" > conftest.s
23311 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23313 (eval $ac_try) 2>&5
23314 ac_status=$?
23315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23316 test $ac_status = 0; }; }
23317 then
23318 gcc_cv_as_powerpc_mfcrf=yes
23319 else
23320 echo "configure: failed program was" >&5
23321 cat conftest.s >&5
23323 rm -f conftest.o conftest.s
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23327 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23328 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23330 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23334 case $target in
23335 *-*-aix*) conftest_s=' .machine "pwr5"
23336 .csect .text[PR]
23337 popcntb 3,3';;
23338 *) conftest_s=' .machine power5
23339 .text
23340 popcntb 3,3';;
23341 esac
23343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23344 $as_echo_n "checking assembler for popcntb support... " >&6; }
23345 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23346 $as_echo_n "(cached) " >&6
23347 else
23348 gcc_cv_as_powerpc_popcntb=no
23349 if test $in_tree_gas = yes; then
23350 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23351 then gcc_cv_as_powerpc_popcntb=yes
23353 elif test x$gcc_cv_as != x; then
23354 echo "$conftest_s" > conftest.s
23355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23357 (eval $ac_try) 2>&5
23358 ac_status=$?
23359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23360 test $ac_status = 0; }; }
23361 then
23362 gcc_cv_as_powerpc_popcntb=yes
23363 else
23364 echo "configure: failed program was" >&5
23365 cat conftest.s >&5
23367 rm -f conftest.o conftest.s
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23371 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23372 if test $gcc_cv_as_powerpc_popcntb = yes; then
23374 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23378 case $target in
23379 *-*-aix*) conftest_s=' .machine "pwr5x"
23380 .csect .text[PR]
23381 frin 1,1';;
23382 *) conftest_s=' .machine power5
23383 .text
23384 frin 1,1';;
23385 esac
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23388 $as_echo_n "checking assembler for fp round support... " >&6; }
23389 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23390 $as_echo_n "(cached) " >&6
23391 else
23392 gcc_cv_as_powerpc_fprnd=no
23393 if test $in_tree_gas = yes; then
23394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23395 then gcc_cv_as_powerpc_fprnd=yes
23397 elif test x$gcc_cv_as != x; then
23398 echo "$conftest_s" > conftest.s
23399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23401 (eval $ac_try) 2>&5
23402 ac_status=$?
23403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23404 test $ac_status = 0; }; }
23405 then
23406 gcc_cv_as_powerpc_fprnd=yes
23407 else
23408 echo "configure: failed program was" >&5
23409 cat conftest.s >&5
23411 rm -f conftest.o conftest.s
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23415 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23416 if test $gcc_cv_as_powerpc_fprnd = yes; then
23418 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23422 case $target in
23423 *-*-aix*) conftest_s=' .machine "pwr6"
23424 .csect .text[PR]
23425 mffgpr 1,3';;
23426 *) conftest_s=' .machine power6
23427 .text
23428 mffgpr 1,3';;
23429 esac
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23432 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23433 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23434 $as_echo_n "(cached) " >&6
23435 else
23436 gcc_cv_as_powerpc_mfpgpr=no
23437 if test $in_tree_gas = yes; then
23438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23439 then gcc_cv_as_powerpc_mfpgpr=yes
23441 elif test x$gcc_cv_as != x; then
23442 echo "$conftest_s" > conftest.s
23443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23445 (eval $ac_try) 2>&5
23446 ac_status=$?
23447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23448 test $ac_status = 0; }; }
23449 then
23450 gcc_cv_as_powerpc_mfpgpr=yes
23451 else
23452 echo "configure: failed program was" >&5
23453 cat conftest.s >&5
23455 rm -f conftest.o conftest.s
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23459 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23460 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23462 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23466 case $target in
23467 *-*-aix*) conftest_s=' .csect .text[PR]
23468 LCF..0:
23469 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23470 *-*-darwin*)
23471 conftest_s=' .text
23472 LCF0:
23473 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23474 *) conftest_s=' .text
23475 .LCF0:
23476 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23477 esac
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23480 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23481 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23482 $as_echo_n "(cached) " >&6
23483 else
23484 gcc_cv_as_powerpc_rel16=no
23485 if test $in_tree_gas = yes; then
23486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23487 then gcc_cv_as_powerpc_rel16=yes
23489 elif test x$gcc_cv_as != x; then
23490 echo "$conftest_s" > conftest.s
23491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23493 (eval $ac_try) 2>&5
23494 ac_status=$?
23495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23496 test $ac_status = 0; }; }
23497 then
23498 gcc_cv_as_powerpc_rel16=yes
23499 else
23500 echo "configure: failed program was" >&5
23501 cat conftest.s >&5
23503 rm -f conftest.o conftest.s
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23507 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23508 if test $gcc_cv_as_powerpc_rel16 = yes; then
23510 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23514 case $target in
23515 *-*-aix*) conftest_s=' .machine "pwr6"
23516 .csect .text[PR]
23517 cmpb 3,4,5';;
23518 *) conftest_s=' .machine power6
23519 .text
23520 cmpb 3,4,5';;
23521 esac
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23524 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23525 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23526 $as_echo_n "(cached) " >&6
23527 else
23528 gcc_cv_as_powerpc_cmpb=no
23529 if test $in_tree_gas = yes; then
23530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23531 then gcc_cv_as_powerpc_cmpb=yes
23533 elif test x$gcc_cv_as != x; then
23534 echo "$conftest_s" > conftest.s
23535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23538 ac_status=$?
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }
23541 then
23542 gcc_cv_as_powerpc_cmpb=yes
23543 else
23544 echo "configure: failed program was" >&5
23545 cat conftest.s >&5
23547 rm -f conftest.o conftest.s
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23551 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23552 if test $gcc_cv_as_powerpc_cmpb = yes; then
23554 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23558 case $target in
23559 *-*-aix*) conftest_s=' .machine "pwr6"
23560 .csect .text[PR]
23561 dadd 1,2,3';;
23562 *) conftest_s=' .machine power6
23563 .text
23564 dadd 1,2,3';;
23565 esac
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23568 $as_echo_n "checking assembler for decimal float support... " >&6; }
23569 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23570 $as_echo_n "(cached) " >&6
23571 else
23572 gcc_cv_as_powerpc_dfp=no
23573 if test $in_tree_gas = yes; then
23574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23575 then gcc_cv_as_powerpc_dfp=yes
23577 elif test x$gcc_cv_as != x; then
23578 echo "$conftest_s" > conftest.s
23579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23581 (eval $ac_try) 2>&5
23582 ac_status=$?
23583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23584 test $ac_status = 0; }; }
23585 then
23586 gcc_cv_as_powerpc_dfp=yes
23587 else
23588 echo "configure: failed program was" >&5
23589 cat conftest.s >&5
23591 rm -f conftest.o conftest.s
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23595 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23596 if test $gcc_cv_as_powerpc_dfp = yes; then
23598 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23602 case $target in
23603 *-*-aix*) conftest_s=' .machine "pwr7"
23604 .csect .text[PR]
23605 lxvd2x 1,2,3';;
23606 *) conftest_s=' .machine power7
23607 .text
23608 lxvd2x 1,2,3';;
23609 esac
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23612 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23613 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23614 $as_echo_n "(cached) " >&6
23615 else
23616 gcc_cv_as_powerpc_vsx=no
23617 if test $in_tree_gas = yes; then
23618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23619 then gcc_cv_as_powerpc_vsx=yes
23621 elif test x$gcc_cv_as != x; then
23622 echo "$conftest_s" > conftest.s
23623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23625 (eval $ac_try) 2>&5
23626 ac_status=$?
23627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23628 test $ac_status = 0; }; }
23629 then
23630 gcc_cv_as_powerpc_vsx=yes
23631 else
23632 echo "configure: failed program was" >&5
23633 cat conftest.s >&5
23635 rm -f conftest.o conftest.s
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23639 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23640 if test $gcc_cv_as_powerpc_vsx = yes; then
23642 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23646 case $target in
23647 *-*-aix*) conftest_s=' .machine "pwr7"
23648 .csect .text[PR]
23649 popcntd 3,3';;
23650 *) conftest_s=' .machine power7
23651 .text
23652 popcntd 3,3';;
23653 esac
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23656 $as_echo_n "checking assembler for popcntd support... " >&6; }
23657 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23658 $as_echo_n "(cached) " >&6
23659 else
23660 gcc_cv_as_powerpc_popcntd=no
23661 if test $in_tree_gas = yes; then
23662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23663 then gcc_cv_as_powerpc_popcntd=yes
23665 elif test x$gcc_cv_as != x; then
23666 echo "$conftest_s" > conftest.s
23667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23669 (eval $ac_try) 2>&5
23670 ac_status=$?
23671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23672 test $ac_status = 0; }; }
23673 then
23674 gcc_cv_as_powerpc_popcntd=yes
23675 else
23676 echo "configure: failed program was" >&5
23677 cat conftest.s >&5
23679 rm -f conftest.o conftest.s
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23683 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23684 if test $gcc_cv_as_powerpc_popcntd = yes; then
23686 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23690 case $target in
23691 *-*-aix*) conftest_s=' .csect .text[PR]
23692 lwsync';;
23693 *) conftest_s=' .text
23694 lwsync';;
23695 esac
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23698 $as_echo_n "checking assembler for lwsync support... " >&6; }
23699 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23700 $as_echo_n "(cached) " >&6
23701 else
23702 gcc_cv_as_powerpc_lwsync=no
23703 if test $in_tree_gas = yes; then
23704 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23705 then gcc_cv_as_powerpc_lwsync=yes
23707 elif test x$gcc_cv_as != x; then
23708 echo "$conftest_s" > conftest.s
23709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23711 (eval $ac_try) 2>&5
23712 ac_status=$?
23713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23714 test $ac_status = 0; }; }
23715 then
23716 gcc_cv_as_powerpc_lwsync=yes
23717 else
23718 echo "configure: failed program was" >&5
23719 cat conftest.s >&5
23721 rm -f conftest.o conftest.s
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23725 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23726 if test $gcc_cv_as_powerpc_lwsync = yes; then
23728 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23732 case $target in
23733 *-*-aix*) conftest_s=' .machine "476"
23734 .csect .text[PR]
23735 dci 0';;
23736 *) conftest_s=' .machine "476"
23737 .text
23738 dci 0';;
23739 esac
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23742 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23743 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23744 $as_echo_n "(cached) " >&6
23745 else
23746 gcc_cv_as_powerpc_dci=no
23747 if test $in_tree_gas = yes; then
23748 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23749 then gcc_cv_as_powerpc_dci=yes
23751 elif test x$gcc_cv_as != x; then
23752 echo "$conftest_s" > conftest.s
23753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23755 (eval $ac_try) 2>&5
23756 ac_status=$?
23757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23758 test $ac_status = 0; }; }
23759 then
23760 gcc_cv_as_powerpc_dci=yes
23761 else
23762 echo "configure: failed program was" >&5
23763 cat conftest.s >&5
23765 rm -f conftest.o conftest.s
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23769 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23770 if test $gcc_cv_as_powerpc_dci = yes; then
23772 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23777 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23778 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23779 $as_echo_n "(cached) " >&6
23780 else
23781 gcc_cv_as_powerpc_gnu_attribute=no
23782 if test $in_tree_gas = yes; then
23783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23784 then gcc_cv_as_powerpc_gnu_attribute=yes
23786 elif test x$gcc_cv_as != x; then
23787 echo '.gnu_attribute 4,1' > conftest.s
23788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23790 (eval $ac_try) 2>&5
23791 ac_status=$?
23792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23793 test $ac_status = 0; }; }
23794 then
23795 gcc_cv_as_powerpc_gnu_attribute=yes
23796 else
23797 echo "configure: failed program was" >&5
23798 cat conftest.s >&5
23800 rm -f conftest.o conftest.s
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23804 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23805 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23807 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23812 $as_echo_n "checking assembler for tls marker support... " >&6; }
23813 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23814 $as_echo_n "(cached) " >&6
23815 else
23816 gcc_cv_as_powerpc_tls_markers=no
23817 if test $in_tree_gas = yes; then
23818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23819 then gcc_cv_as_powerpc_tls_markers=yes
23821 elif test x$gcc_cv_as != x; then
23822 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23828 test $ac_status = 0; }; }
23829 then
23830 gcc_cv_as_powerpc_tls_markers=yes
23831 else
23832 echo "configure: failed program was" >&5
23833 cat conftest.s >&5
23835 rm -f conftest.o conftest.s
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23839 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23840 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23842 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23846 case $target in
23847 *-*-aix*)
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
23849 $as_echo_n "checking assembler for .ref support... " >&6; }
23850 if test "${gcc_cv_as_aix_ref+set}" = set; then :
23851 $as_echo_n "(cached) " >&6
23852 else
23853 gcc_cv_as_aix_ref=no
23854 if test $in_tree_gas = yes; then
23855 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
23856 then :
23858 elif test x$gcc_cv_as != x; then
23859 echo ' .csect stuff[rw]
23860 stuff:
23861 .long 1
23862 .extern sym
23863 .ref sym
23864 ' > conftest.s
23865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23867 (eval $ac_try) 2>&5
23868 ac_status=$?
23869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23870 test $ac_status = 0; }; }
23871 then
23872 gcc_cv_as_aix_ref=yes
23873 else
23874 echo "configure: failed program was" >&5
23875 cat conftest.s >&5
23877 rm -f conftest.o conftest.s
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
23881 $as_echo "$gcc_cv_as_aix_ref" >&6; }
23882 if test $gcc_cv_as_aix_ref = yes; then
23884 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
23888 esac
23891 mips*-*-*)
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23893 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23894 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23895 $as_echo_n "(cached) " >&6
23896 else
23897 gcc_cv_as_mips_explicit_relocs=no
23898 if test $in_tree_gas = yes; then
23899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23900 then gcc_cv_as_mips_explicit_relocs=yes
23902 elif test x$gcc_cv_as != x; then
23903 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23909 test $ac_status = 0; }; }
23910 then
23911 gcc_cv_as_mips_explicit_relocs=yes
23912 else
23913 echo "configure: failed program was" >&5
23914 cat conftest.s >&5
23916 rm -f conftest.o conftest.s
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23920 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23921 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23922 if test x$target_cpu_default = x
23923 then target_cpu_default=MASK_EXPLICIT_RELOCS
23924 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23928 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23929 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23930 $as_echo_n "(cached) " >&6
23931 else
23932 gcc_cv_as_mips_no_shared=no
23933 if test $in_tree_gas = yes; then
23934 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23935 then gcc_cv_as_mips_no_shared=yes
23937 elif test x$gcc_cv_as != x; then
23938 echo 'nop' > conftest.s
23939 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
23940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23944 test $ac_status = 0; }; }
23945 then
23946 gcc_cv_as_mips_no_shared=yes
23947 else
23948 echo "configure: failed program was" >&5
23949 cat conftest.s >&5
23951 rm -f conftest.o conftest.s
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23955 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23956 if test $gcc_cv_as_mips_no_shared = yes; then
23958 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23963 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23964 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23965 $as_echo_n "(cached) " >&6
23966 else
23967 gcc_cv_as_mips_gnu_attribute=no
23968 if test $in_tree_gas = yes; then
23969 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23970 then gcc_cv_as_mips_gnu_attribute=yes
23972 elif test x$gcc_cv_as != x; then
23973 echo '.gnu_attribute 4,1' > conftest.s
23974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23976 (eval $ac_try) 2>&5
23977 ac_status=$?
23978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23979 test $ac_status = 0; }; }
23980 then
23981 gcc_cv_as_mips_gnu_attribute=yes
23982 else
23983 echo "configure: failed program was" >&5
23984 cat conftest.s >&5
23986 rm -f conftest.o conftest.s
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23990 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23991 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23993 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23998 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23999 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24000 $as_echo_n "(cached) " >&6
24001 else
24002 gcc_cv_as_mips_dtprelword=no
24003 if test $in_tree_gas = yes; then
24004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24005 then gcc_cv_as_mips_dtprelword=yes
24007 elif test x$gcc_cv_as != x; then
24008 echo '.section .tdata,"awT",@progbits
24010 .word 2
24011 .text
24012 .dtprelword x+0x8000' > conftest.s
24013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24015 (eval $ac_try) 2>&5
24016 ac_status=$?
24017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24018 test $ac_status = 0; }; }
24019 then
24020 gcc_cv_as_mips_dtprelword=yes
24021 else
24022 echo "configure: failed program was" >&5
24023 cat conftest.s >&5
24025 rm -f conftest.o conftest.s
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24029 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24030 if test $gcc_cv_as_mips_dtprelword = yes; then
24032 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24037 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24038 gcc_cv_as_ld_jalr_reloc=no
24039 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24040 if test $in_tree_ld = yes ; then
24041 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 \
24042 && test $in_tree_ld_is_elf = yes; then
24043 gcc_cv_as_ld_jalr_reloc=yes
24045 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24046 echo ' .ent x' > conftest.s
24047 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24048 echo ' ld $25,%call16(y)($28)' >> conftest.s
24049 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24050 echo '1: jalr $25' >> conftest.s
24051 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24052 echo '1: jalr $25' >> conftest.s
24053 echo ' .end x' >> conftest.s
24054 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24055 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24056 if $gcc_cv_objdump -d conftest.so | grep -q jalr \
24057 && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
24058 gcc_cv_as_ld_jalr_reloc=yes
24061 rm -f conftest.*
24064 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24065 if test x$target_cpu_default = x; then
24066 target_cpu_default=MASK_RELAX_PIC_CALLS
24067 else
24068 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24072 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24075 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24076 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24078 else
24079 gcc_cv_ld_mips_personality_relaxation=no
24080 if test $in_tree_ld = yes ; then
24081 if test "$gcc_cv_gld_major_version" -eq 2 \
24082 -a "$gcc_cv_gld_minor_version" -ge 21 \
24083 -o "$gcc_cv_gld_major_version" -gt 2; then
24084 gcc_cv_ld_mips_personality_relaxation=yes
24086 elif test x$gcc_cv_as != x \
24087 -a x$gcc_cv_ld != x \
24088 -a x$gcc_cv_readelf != x ; then
24089 cat > conftest.s <<EOF
24090 .cfi_startproc
24091 .cfi_personality 0x80,indirect_ptr
24092 .ent test
24093 test:
24095 .end test
24096 .cfi_endproc
24098 .section .data,"aw",@progbits
24099 indirect_ptr:
24100 .dc.a personality
24102 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24103 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24104 if $gcc_cv_readelf -d conftest 2>&1 \
24105 | grep TEXTREL > /dev/null 2>&1; then
24107 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24108 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24110 else
24111 gcc_cv_ld_mips_personality_relaxation=yes
24115 rm -f conftest.s conftest.o conftest
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24118 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24119 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24121 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24125 esac
24127 # Mips and HP-UX need the GNU assembler.
24128 # Linux on IA64 might be able to use the Intel assembler.
24130 case "$target" in
24131 mips*-*-* | *-*-hpux* )
24132 if test x$gas_flag = xyes \
24133 || test x"$host" != x"$build" \
24134 || test ! -x "$gcc_cv_as" \
24135 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24137 else
24138 echo "*** This configuration requires the GNU assembler" >&2
24139 exit 1
24142 esac
24144 # ??? Not all targets support dwarf2 debug_line, even within a version
24145 # of gas. Moreover, we need to emit a valid instruction to trigger any
24146 # info to the output file. So, as supported targets are added to gas 2.11,
24147 # add some instruction here to (also) show we expect this might work.
24148 # ??? Once 2.11 is released, probably need to add first known working
24149 # version to the per-target configury.
24150 case "$target" in
24151 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24152 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24153 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24154 | spu-*-* | fido*-*-* | m32c-*-*)
24155 insn="nop"
24157 ia64*-*-* | s390*-*-*)
24158 insn="nop 0"
24160 mmix-*-*)
24161 insn="swym 0"
24163 esac
24164 if test x"$insn" != x; then
24165 conftest_s="\
24166 .file 1 \"conftest.s\"
24167 .loc 1 3 0
24168 $insn"
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24170 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24171 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24172 $as_echo_n "(cached) " >&6
24173 else
24174 gcc_cv_as_dwarf2_debug_line=no
24175 if test $in_tree_gas = yes; then
24176 if test $in_tree_gas_is_elf = yes \
24177 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24178 then gcc_cv_as_dwarf2_debug_line=yes
24180 elif test x$gcc_cv_as != x; then
24181 echo "$conftest_s" > conftest.s
24182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24184 (eval $ac_try) 2>&5
24185 ac_status=$?
24186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24187 test $ac_status = 0; }; }
24188 then
24189 if test x$gcc_cv_objdump != x \
24190 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24191 | grep debug_line > /dev/null 2>&1; then
24192 gcc_cv_as_dwarf2_debug_line=yes
24194 else
24195 echo "configure: failed program was" >&5
24196 cat conftest.s >&5
24198 rm -f conftest.o conftest.s
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24202 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24205 # The .debug_line file table must be in the exact order that
24206 # we specified the files, since these indices are also used
24207 # by DW_AT_decl_file. Approximate this test by testing if
24208 # the assembler bitches if the same index is assigned twice.
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24210 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24211 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24212 $as_echo_n "(cached) " >&6
24213 else
24214 gcc_cv_as_dwarf2_file_buggy=no
24215 if test x$gcc_cv_as != x; then
24216 echo ' .file 1 "foo.s"
24217 .file 1 "bar.s"' > conftest.s
24218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24220 (eval $ac_try) 2>&5
24221 ac_status=$?
24222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24223 test $ac_status = 0; }; }
24224 then
24225 gcc_cv_as_dwarf2_file_buggy=yes
24226 else
24227 echo "configure: failed program was" >&5
24228 cat conftest.s >&5
24230 rm -f conftest.o conftest.s
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24234 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24237 if test $gcc_cv_as_dwarf2_debug_line = yes \
24238 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24240 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24245 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24246 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24247 $as_echo_n "(cached) " >&6
24248 else
24249 gcc_cv_as_gdwarf2_flag=no
24250 if test $in_tree_gas = yes; then
24251 if test $in_tree_gas_is_elf = yes \
24252 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24253 then gcc_cv_as_gdwarf2_flag=yes
24255 elif test x$gcc_cv_as != x; then
24256 echo "$insn" > conftest.s
24257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24263 then
24264 gcc_cv_as_gdwarf2_flag=yes
24265 else
24266 echo "configure: failed program was" >&5
24267 cat conftest.s >&5
24269 rm -f conftest.o conftest.s
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24273 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24274 if test $gcc_cv_as_gdwarf2_flag = yes; then
24276 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24281 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24282 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24283 $as_echo_n "(cached) " >&6
24284 else
24285 gcc_cv_as_gstabs_flag=no
24286 if test $in_tree_gas = yes; then
24287 if test $in_tree_gas_is_elf = yes \
24288 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24289 then gcc_cv_as_gstabs_flag=yes
24291 elif test x$gcc_cv_as != x; then
24292 echo "$insn" > conftest.s
24293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24298 test $ac_status = 0; }; }
24299 then
24300 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24301 # and warns about it, but still exits successfully. So check for
24302 # this.
24303 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24308 test $ac_status = 0; }; }
24309 then :
24310 else gcc_cv_as_gstabs_flag=yes
24312 else
24313 echo "configure: failed program was" >&5
24314 cat conftest.s >&5
24316 rm -f conftest.o conftest.s
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24320 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24321 if test $gcc_cv_as_gstabs_flag = yes; then
24323 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24328 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24329 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24330 $as_echo_n "(cached) " >&6
24331 else
24332 gcc_cv_as_debug_prefix_map_flag=no
24333 if test $in_tree_gas = yes; then
24334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24335 then gcc_cv_as_debug_prefix_map_flag=yes
24337 elif test x$gcc_cv_as != x; then
24338 echo "$insn" > conftest.s
24339 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24341 (eval $ac_try) 2>&5
24342 ac_status=$?
24343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24344 test $ac_status = 0; }; }
24345 then
24346 gcc_cv_as_debug_prefix_map_flag=yes
24347 else
24348 echo "configure: failed program was" >&5
24349 cat conftest.s >&5
24351 rm -f conftest.o conftest.s
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24355 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24356 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24358 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24364 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24365 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24366 $as_echo_n "(cached) " >&6
24367 else
24368 gcc_cv_as_lcomm_with_alignment=no
24369 if test x$gcc_cv_as != x; then
24370 echo '.lcomm bar,4,16' > conftest.s
24371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24376 test $ac_status = 0; }; }
24377 then
24378 gcc_cv_as_lcomm_with_alignment=yes
24379 else
24380 echo "configure: failed program was" >&5
24381 cat conftest.s >&5
24383 rm -f conftest.o conftest.s
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24387 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24388 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24390 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24394 # Check whether --enable-gnu-unique-object was given.
24395 if test "${enable_gnu_unique_object+set}" = set; then :
24396 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24397 yes | no) ;;
24398 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24399 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24400 esac
24401 else
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24403 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24404 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24405 $as_echo_n "(cached) " >&6
24406 else
24407 gcc_cv_as_gnu_unique_object=no
24408 if test $in_tree_gas = yes; then
24409 if test $in_tree_gas_is_elf = yes \
24410 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24411 then gcc_cv_as_gnu_unique_object=yes
24413 elif test x$gcc_cv_as != x; then
24414 echo '.type foo, @gnu_unique_object' > conftest.s
24415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24417 (eval $ac_try) 2>&5
24418 ac_status=$?
24419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24420 test $ac_status = 0; }; }
24421 then
24422 gcc_cv_as_gnu_unique_object=yes
24423 else
24424 echo "configure: failed program was" >&5
24425 cat conftest.s >&5
24427 rm -f conftest.o conftest.s
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24431 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24432 if test $gcc_cv_as_gnu_unique_object = yes; then
24433 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24434 if test x$host = x$build -a x$host = x$target &&
24435 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24436 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24437 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24438 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24439 if test "$glibcnum" -ge 2011 ; then
24440 enable_gnu_unique_object=yes
24446 if test x$enable_gnu_unique_object = xyes; then
24448 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24453 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24454 if test "${gcc_cv_as_line_zero+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24456 else
24457 gcc_cv_as_line_zero=no
24458 if test $in_tree_gas = yes; then
24459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24460 then gcc_cv_as_line_zero=yes
24462 elif test "x$gcc_cv_as" != x; then
24463 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24464 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24469 test $ac_status = 0; }; } &&
24470 test "x`cat conftest.out`" = x
24471 then
24472 gcc_cv_as_line_zero=yes
24473 else
24474 echo "configure: failed program was" >&5
24475 cat conftest.s >&5
24476 echo "configure: error output was" >&5
24477 cat conftest.out >&5
24479 rm -f conftest.o conftest.s conftest.out
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24483 $as_echo "$gcc_cv_as_line_zero" >&6; }
24484 if test "x$gcc_cv_as_line_zero" = xyes; then
24486 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24491 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24492 gcc_cv_ld_eh_frame_hdr=no
24493 if test $in_tree_ld = yes ; then
24494 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 \
24495 && test $in_tree_ld_is_elf = yes; then
24496 gcc_cv_ld_eh_frame_hdr=yes
24498 elif test x$gcc_cv_ld != x; then
24499 # Check if linker supports --eh-frame-hdr option
24500 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24501 gcc_cv_ld_eh_frame_hdr=yes
24505 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24507 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24511 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24514 $as_echo_n "checking linker position independent executable support... " >&6; }
24515 gcc_cv_ld_pie=no
24516 if test $in_tree_ld = yes ; then
24517 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 \
24518 && test $in_tree_ld_is_elf = yes; then
24519 gcc_cv_ld_pie=yes
24521 elif test x$gcc_cv_ld != x; then
24522 # Check if linker supports -pie option
24523 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24524 gcc_cv_ld_pie=yes
24527 if test x"$gcc_cv_ld_pie" = xyes; then
24529 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24533 $as_echo "$gcc_cv_ld_pie" >&6; }
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24536 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24537 gcc_cv_ld_eh_gc_sections=no
24538 if test $in_tree_ld = yes ; then
24539 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 \
24540 && test $in_tree_ld_is_elf = yes; then
24541 gcc_cv_ld_eh_gc_sections=yes
24543 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24544 cat > conftest.s <<EOF
24545 .section .text
24546 .globl _start
24547 .type _start, @function
24548 _start:
24549 .long foo
24550 .size _start, .-_start
24551 .section .text.foo,"ax",@progbits
24552 .type foo, @function
24553 foo:
24554 .long 0
24555 .size foo, .-foo
24556 .section .gcc_except_table.foo,"a",@progbits
24557 .L0:
24558 .long 0
24559 .section .eh_frame,"a",@progbits
24560 .long .L0
24562 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24563 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24564 | grep "gc-sections option ignored" > /dev/null; then
24565 gcc_cv_ld_eh_gc_sections=no
24566 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24567 gcc_cv_ld_eh_gc_sections=yes
24568 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24569 if test x$gcc_cv_as_comdat_group != xyes; then
24570 gcc_cv_ld_eh_gc_sections=no
24571 cat > conftest.s <<EOF
24572 .section .text
24573 .globl _start
24574 .type _start, @function
24575 _start:
24576 .long foo
24577 .size _start, .-_start
24578 .section .gnu.linkonce.t.foo,"ax",@progbits
24579 .type foo, @function
24580 foo:
24581 .long 0
24582 .size foo, .-foo
24583 .section .gcc_except_table.foo,"a",@progbits
24584 .L0:
24585 .long 0
24586 .section .eh_frame,"a",@progbits
24587 .long .L0
24589 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24590 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24591 | grep "gc-sections option ignored" > /dev/null; then
24592 gcc_cv_ld_eh_gc_sections=no
24593 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24594 gcc_cv_ld_eh_gc_sections=yes
24600 rm -f conftest.s conftest.o conftest
24602 case "$target" in
24603 hppa*-*-linux*)
24604 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24605 gcc_cv_ld_eh_gc_sections=no
24607 esac
24608 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24610 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24614 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24616 # --------
24617 # UNSORTED
24618 # --------
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24621 $as_echo_n "checking linker --as-needed support... " >&6; }
24622 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24623 $as_echo_n "(cached) " >&6
24624 else
24625 gcc_cv_ld_as_needed=no
24626 if test $in_tree_ld = yes ; then
24627 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 \
24628 && test $in_tree_ld_is_elf = yes; then
24629 gcc_cv_ld_as_needed=yes
24631 elif test x$gcc_cv_ld != x; then
24632 # Check if linker supports --as-needed and --no-as-needed options
24633 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24634 gcc_cv_ld_as_needed=yes
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24640 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24641 if test x"$gcc_cv_ld_as_needed" = xyes; then
24643 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24647 case "$target:$tm_file" in
24648 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24650 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24651 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24652 $as_echo_n "(cached) " >&6
24653 else
24654 gcc_cv_ld_no_dot_syms=no
24655 if test $in_tree_ld = yes ; then
24656 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
24657 gcc_cv_ld_no_dot_syms=yes
24659 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24660 cat > conftest1.s <<EOF
24661 .text
24662 bl .foo
24664 cat > conftest2.s <<EOF
24665 .section ".opd","aw"
24666 .align 3
24667 .globl foo
24668 .type foo,@function
24669 foo:
24670 .quad .LEfoo,.TOC.@tocbase,0
24671 .text
24672 .LEfoo:
24674 .size foo,.-.LEfoo
24676 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24677 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24678 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24679 gcc_cv_ld_no_dot_syms=yes
24681 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24686 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24687 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24689 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24693 esac
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24696 $as_echo_n "checking linker --build-id support... " >&6; }
24697 if test "${gcc_cv_ld_buildid+set}" = set; then :
24698 $as_echo_n "(cached) " >&6
24699 else
24700 gcc_cv_ld_buildid=no
24701 if test $in_tree_ld = yes ; then
24702 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24703 "$gcc_cv_gld_minor_version" -ge 18 -o \
24704 "$gcc_cv_gld_major_version" -gt 2 \
24705 && test $in_tree_ld_is_elf = yes; then
24706 gcc_cv_ld_buildid=yes
24708 elif test x$gcc_cv_ld != x; then
24709 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24710 gcc_cv_ld_buildid=yes
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24715 $as_echo "$gcc_cv_ld_buildid" >&6; }
24716 if test x"$gcc_cv_ld_buildid" = xyes; then
24718 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24722 # Check whether --enable-linker-build-id was given.
24723 if test "${enable_linker_build_id+set}" = set; then :
24724 enableval=$enable_linker_build_id;
24725 else
24726 enable_linker_build_id=no
24730 if test x"$enable_linker_build_id" = xyes; then
24731 if test x"$gcc_cv_ld_buildid" = xyes; then
24733 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24735 else
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24737 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24742 $as_echo_n "checking linker --sysroot support... " >&6; }
24743 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24744 $as_echo_n "(cached) " >&6
24745 else
24746 gcc_cv_ld_sysroot=no
24747 if test $in_tree_ld = yes ; then
24748 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
24749 gcc_cv_ld_sysroot=yes
24751 elif test x$gcc_cv_ld != x; then
24752 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24753 gcc_cv_ld_sysroot=yes
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24758 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24759 if test x"$gcc_cv_ld_sysroot" = xyes; then
24761 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24765 if test x$with_sysroot = x && test x$host = x$target \
24766 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24767 && test "$prefix" != "NONE"; then
24769 cat >>confdefs.h <<_ACEOF
24770 #define PREFIX_INCLUDE_DIR "$prefix/include"
24771 _ACEOF
24775 # Test for stack protector support in target C library.
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24777 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24778 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24779 $as_echo_n "(cached) " >&6
24780 else
24781 gcc_cv_libc_provides_ssp=no
24782 case "$target" in
24783 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24784 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24785 if test "x$with_headers" != x; then
24786 glibc_header_dir=$with_headers
24787 elif test "x$with_sysroot" = x; then
24788 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24789 elif test "x$with_build_sysroot" != "x"; then
24790 glibc_header_dir="${with_build_sysroot}/usr/include"
24791 elif test "x$with_sysroot" = xyes; then
24792 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24793 else
24794 glibc_header_dir="${with_sysroot}/usr/include"
24796 else
24797 glibc_header_dir=/usr/include
24799 # glibc 2.4 and later provides __stack_chk_fail and
24800 # either __stack_chk_guard, or TLS access to stack guard canary.
24801 if test -f $glibc_header_dir/features.h \
24802 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24803 $glibc_header_dir/features.h > /dev/null; then
24804 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24805 $glibc_header_dir/features.h > /dev/null; then
24806 gcc_cv_libc_provides_ssp=yes
24807 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24808 $glibc_header_dir/features.h > /dev/null \
24809 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24810 $glibc_header_dir/features.h > /dev/null; then
24811 gcc_cv_libc_provides_ssp=yes
24812 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24813 $glibc_header_dir/features.h > /dev/null && \
24814 test -f $glibc_header_dir/bits/uClibc_config.h && \
24815 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24816 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24817 gcc_cv_libc_provides_ssp=yes
24821 *-*-gnu*)
24822 # Avoid complicated tests (see
24823 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24824 # simply assert that glibc does provide this, which is true for all
24825 # realistically usable GNU/Hurd configurations.
24826 gcc_cv_libc_provides_ssp=yes;;
24827 *-*-darwin* | *-*-freebsd*)
24828 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24829 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24830 gcc_cv_libc_provides_ssp=yes
24831 else
24832 echo "no __stack_chk_fail on this target"
24836 *) gcc_cv_libc_provides_ssp=no ;;
24837 esac
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24840 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24842 if test x$gcc_cv_libc_provides_ssp = xyes; then
24844 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24848 # Check if TFmode long double should be used by default or not.
24849 # Some glibc targets used DFmode long double, but with glibc 2.4
24850 # and later they can use TFmode.
24851 case "$target" in
24852 powerpc*-*-linux* | \
24853 powerpc*-*-gnu* | \
24854 sparc*-*-linux* | \
24855 s390*-*-linux* | \
24856 alpha*-*-linux*)
24858 # Check whether --with-long-double-128 was given.
24859 if test "${with_long_double_128+set}" = set; then :
24860 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24861 else
24862 gcc_cv_target_ldbl128=no
24863 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24864 if test "x$with_sysroot" = x; then
24865 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24866 elif test "x$with_build_sysroot" != "x"; then
24867 glibc_header_dir="${with_build_sysroot}/usr/include"
24868 elif test "x$with_sysroot" = xyes; then
24869 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24870 else
24871 glibc_header_dir="${with_sysroot}/usr/include"
24873 else
24874 glibc_header_dir=/usr/include
24876 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24877 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24878 && gcc_cv_target_ldbl128=yes
24883 esac
24884 if test x$gcc_cv_target_ldbl128 = xyes; then
24886 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24890 # Find out what GC implementation we want, or may, use.
24892 # Check whether --with-gc was given.
24893 if test "${with_gc+set}" = set; then :
24894 withval=$with_gc; case "$withval" in
24895 page)
24896 GGC=ggc-$withval
24898 zone)
24899 GGC=ggc-$withval
24901 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24905 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24907 esac
24908 else
24909 GGC=ggc-page
24913 echo "Using $GGC for garbage collection."
24915 # Libraries to use on the host. This will normally be set by the top
24916 # level Makefile. Here we simply capture the value for our Makefile.
24917 if test -z "${HOST_LIBS+set}"; then
24918 HOST_LIBS=
24922 # Use the system's zlib library.
24923 zlibdir=-L../zlib
24924 zlibinc="-I\$(srcdir)/../zlib"
24926 # Check whether --with-system-zlib was given.
24927 if test "${with_system_zlib+set}" = set; then :
24928 withval=$with_system_zlib; zlibdir=
24929 zlibinc=
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24938 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24939 # Check whether --enable-maintainer-mode was given.
24940 if test "${enable_maintainer_mode+set}" = set; then :
24941 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24942 else
24943 maintainer_mode=no
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24948 $as_echo "$maintainer_mode" >&6; }
24950 if test "$maintainer_mode" = "yes"; then
24951 MAINT=''
24952 else
24953 MAINT='#'
24956 # --------------
24957 # Language hooks
24958 # --------------
24960 # Make empty files to contain the specs and options for each language.
24961 # Then add #include lines to for a compiler that has specs and/or options.
24963 subdirs=
24964 lang_opt_files=
24965 lang_specs_files=
24966 lang_tree_files=
24967 # These (without "all_") are set in each config-lang.in.
24968 # `language' must be a single word so is spelled singularly.
24969 all_languages=
24970 all_compilers=
24971 all_outputs='Makefile gccbug'
24972 # List of language makefile fragments.
24973 all_lang_makefrags=
24974 # List of language subdirectory makefiles. Deprecated.
24975 all_lang_makefiles=
24976 # Additional files for gengtype
24977 all_gtfiles="$target_gtfiles"
24979 # These are the languages that are set in --enable-languages,
24980 # and are available in the GCC tree.
24981 all_selected_languages=
24983 # Add the language fragments.
24984 # Languages are added via two mechanisms. Some information must be
24985 # recorded in makefile variables, these are defined in config-lang.in.
24986 # We accumulate them and plug them into the main Makefile.
24987 # The other mechanism is a set of hooks for each of the main targets
24988 # like `clean', `install', etc.
24990 language_hooks="Make-hooks"
24992 for lang in ${srcdir}/*/config-lang.in
24994 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24996 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24997 if test "x$lang_alias" = x
24998 then
24999 echo "$lang doesn't set \$language." 1>&2
25000 exit 1
25002 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25003 subdirs="$subdirs $subdir"
25005 # $gcc_subdir is where the gcc integration files are to be found
25006 # for a language, both for internal compiler purposes (compiler
25007 # sources implementing front-end to GCC tree converters), and for
25008 # build infrastructure purposes (Make-lang.in, etc.)
25010 # This will be <subdir> (relative to $srcdir) if a line like
25011 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25012 # is found in <langdir>/config-lang.in, and will remain <langdir>
25013 # otherwise.
25015 # Except for the language alias (fetched above), the regular
25016 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25017 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25018 # only this and the language alias.
25020 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25021 if [ "$gcc_subdir" = "" ]; then
25022 gcc_subdir="$subdir"
25025 case ",$enable_languages," in
25026 *,$lang_alias,*)
25027 all_selected_languages="$all_selected_languages $lang_alias"
25028 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25029 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25032 esac
25034 language=
25035 boot_language=
25036 compilers=
25037 outputs=
25038 gtfiles=
25039 subdir_requires=
25040 . ${srcdir}/$gcc_subdir/config-lang.in
25041 if test "x$language" = x
25042 then
25043 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25044 exit 1
25047 ok=:
25048 case ",$enable_languages," in
25049 *,$lang_alias,*) ;;
25051 for i in $subdir_requires; do
25052 test -f "${srcdir}/$i/config-lang.in" && continue
25053 ok=false
25054 break
25055 done
25057 esac
25058 $ok || continue
25060 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25061 if test -f $srcdir/$gcc_subdir/lang.opt; then
25062 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25064 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25065 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25067 if test -f ${srcdir}/$gcc_subdir/Makefile.in
25068 then all_lang_makefiles="$gcc_subdir/Makefile"
25070 all_languages="$all_languages $language"
25071 all_compilers="$all_compilers $compilers"
25072 all_outputs="$all_outputs $outputs"
25073 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25074 case ",$enable_languages," in
25075 *,lto,*)
25077 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25079 enable_lto=yes
25082 *) ;;
25083 esac
25084 done
25086 # Pick up gtfiles for c
25087 gtfiles=
25088 . ${srcdir}/c-config-lang.in
25089 all_gtfiles="$all_gtfiles [c] $gtfiles"
25091 check_languages=
25092 for language in $all_selected_languages
25094 check_languages="$check_languages check-$language"
25095 done
25097 # We link each language in with a set of hooks, reached indirectly via
25098 # lang.${target}. Only do so for selected languages.
25100 rm -f Make-hooks
25101 touch Make-hooks
25102 target_list="all.cross start.encap rest.encap tags \
25103 install-common install-man install-info install-pdf install-html dvi \
25104 pdf html uninstall info man srcextra srcman srcinfo \
25105 mostlyclean clean distclean maintainer-clean install-plugin"
25107 for t in $target_list
25110 for lang in $all_selected_languages
25112 x="$x $lang.$t"
25113 done
25114 echo "lang.$t: $x" >> Make-hooks
25115 done
25117 # --------
25118 # UNSORTED
25119 # --------
25121 # Create .gdbinit.
25123 echo "dir ." > .gdbinit
25124 echo "dir ${srcdir}" >> .gdbinit
25125 if test x$gdb_needs_out_file_path = xyes
25126 then
25127 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25129 if test "x$subdirs" != x; then
25130 for s in $subdirs
25132 echo "dir ${srcdir}/$s" >> .gdbinit
25133 done
25135 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25137 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25141 # Find a directory in which to install a shared libgcc.
25143 # Check whether --enable-version-specific-runtime-libs was given.
25144 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25145 enableval=$enable_version_specific_runtime_libs;
25150 # Check whether --with-slibdir was given.
25151 if test "${with_slibdir+set}" = set; then :
25152 withval=$with_slibdir; slibdir="$with_slibdir"
25153 else
25154 if test "${enable_version_specific_runtime_libs+set}" = set; then
25155 slibdir='$(libsubdir)'
25156 elif test "$host" != "$target"; then
25157 slibdir='$(build_tooldir)/lib'
25158 else
25159 slibdir='$(libdir)'
25165 # Substitute configuration variables
25227 # Echo link setup.
25228 if test x${build} = x${host} ; then
25229 if test x${host} = x${target} ; then
25230 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25231 else
25232 echo "Links are now set up to build a cross-compiler" 1>&2
25233 echo " from ${host} to ${target}." 1>&2
25235 else
25236 if test x${host} = x${target} ; then
25237 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25238 echo " for ${target}." 1>&2
25239 else
25240 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25241 echo " from ${host} to ${target}." 1>&2
25253 if test "x${CLOOGLIBS}" != "x" ; then
25255 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25261 if test "x${LIBELFLIBS}" != "x" ; then
25263 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25267 # Check for plugin support
25268 # Check whether --enable-plugin was given.
25269 if test "${enable_plugin+set}" = set; then :
25270 enableval=$enable_plugin; enable_plugin=$enableval
25271 else
25272 enable_plugin=yes; default_plugin=yes
25276 pluginlibs=
25277 if test x"$enable_plugin" = x"yes"; then
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25280 $as_echo_n "checking for exported symbols... " >&6; }
25281 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25282 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25283 if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
25284 : # No need to use a flag
25285 else
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25287 $as_echo_n "checking for -rdynamic... " >&6; }
25288 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25289 if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
25290 plugin_rdynamic=yes
25291 pluginlibs="-rdynamic"
25292 else
25293 plugin_rdynamic=no
25294 enable_plugin=no
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25297 $as_echo "$plugin_rdynamic" >&6; }
25300 # Check -ldl
25301 saved_LIBS="$LIBS"
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25303 $as_echo_n "checking for library containing dlopen... " >&6; }
25304 if test "${ac_cv_search_dlopen+set}" = set; then :
25305 $as_echo_n "(cached) " >&6
25306 else
25307 ac_func_search_save_LIBS=$LIBS
25308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25309 /* end confdefs.h. */
25311 /* Override any GCC internal prototype to avoid an error.
25312 Use char because int might match the return type of a GCC
25313 builtin and then its argument prototype would still apply. */
25314 #ifdef __cplusplus
25315 extern "C"
25316 #endif
25317 char dlopen ();
25319 main ()
25321 return dlopen ();
25323 return 0;
25325 _ACEOF
25326 for ac_lib in '' dl; do
25327 if test -z "$ac_lib"; then
25328 ac_res="none required"
25329 else
25330 ac_res=-l$ac_lib
25331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25333 if ac_fn_c_try_link "$LINENO"; then :
25334 ac_cv_search_dlopen=$ac_res
25336 rm -f core conftest.err conftest.$ac_objext \
25337 conftest$ac_exeext
25338 if test "${ac_cv_search_dlopen+set}" = set; then :
25339 break
25341 done
25342 if test "${ac_cv_search_dlopen+set}" = set; then :
25344 else
25345 ac_cv_search_dlopen=no
25347 rm conftest.$ac_ext
25348 LIBS=$ac_func_search_save_LIBS
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25351 $as_echo "$ac_cv_search_dlopen" >&6; }
25352 ac_res=$ac_cv_search_dlopen
25353 if test "$ac_res" != no; then :
25354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25358 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25359 pluginlibs="$pluginlibs -ldl"
25361 LIBS="$saved_LIBS"
25363 # Check that we can build shared objects with -fPIC -shared
25364 saved_LDFLAGS="$LDFLAGS"
25365 LDFLAGS="$LDFLAGS -fPIC -shared"
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25367 $as_echo_n "checking for -fPIC -shared... " >&6; }
25368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h. */
25370 extern int X;
25372 main ()
25374 return X == 0;
25376 return 0;
25378 _ACEOF
25379 if ac_fn_c_try_link "$LINENO"; then :
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25381 $as_echo "yes" >&6; }; have_pic_shared=yes
25382 else
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25384 $as_echo "no" >&6; }; have_pic_shared=no
25386 rm -f core conftest.err conftest.$ac_objext \
25387 conftest$ac_exeext conftest.$ac_ext
25388 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25389 pluginlibs=
25390 enable_plugin=no
25392 LDFLAGS="$saved_LDFLAGS"
25394 # If plugin support had been requested but not available, fail.
25395 if test x"$enable_plugin" = x"no" ; then
25396 if test x"$default_plugin" != x"yes"; then
25397 as_fn_error "
25398 Building GCC with plugin support requires a host that supports
25399 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25406 if test x"$enable_plugin" = x"yes"; then
25408 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25412 # Configure the subdirectories
25413 # AC_CONFIG_SUBDIRS($subdirs)
25415 # Create the Makefile
25416 # and configure language subdirectories
25417 ac_config_files="$ac_config_files $all_outputs"
25420 ac_config_commands="$ac_config_commands default"
25422 cat >confcache <<\_ACEOF
25423 # This file is a shell script that caches the results of configure
25424 # tests run on this system so they can be shared between configure
25425 # scripts and configure runs, see configure's option --config-cache.
25426 # It is not useful on other systems. If it contains results you don't
25427 # want to keep, you may remove or edit it.
25429 # config.status only pays attention to the cache file if you give it
25430 # the --recheck option to rerun configure.
25432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25434 # following values.
25436 _ACEOF
25438 # The following way of writing the cache mishandles newlines in values,
25439 # but we know of no workaround that is simple, portable, and efficient.
25440 # So, we kill variables containing newlines.
25441 # Ultrix sh set writes to stderr and can't be redirected directly,
25442 # and sets the high bit in the cache file unless we assign to the vars.
25444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25445 eval ac_val=\$$ac_var
25446 case $ac_val in #(
25447 *${as_nl}*)
25448 case $ac_var in #(
25449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25450 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25451 esac
25452 case $ac_var in #(
25453 _ | IFS | as_nl) ;; #(
25454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25455 *) { eval $ac_var=; unset $ac_var;} ;;
25456 esac ;;
25457 esac
25458 done
25460 (set) 2>&1 |
25461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25462 *${as_nl}ac_space=\ *)
25463 # `set' does not quote correctly, so add quotes: double-quote
25464 # substitution turns \\\\ into \\, and sed turns \\ into \.
25465 sed -n \
25466 "s/'/'\\\\''/g;
25467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25468 ;; #(
25470 # `set' quotes correctly as required by POSIX, so do not add quotes.
25471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25473 esac |
25474 sort
25476 sed '
25477 /^ac_cv_env_/b end
25478 t clear
25479 :clear
25480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25481 t end
25482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25483 :end' >>confcache
25484 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25485 if test -w "$cache_file"; then
25486 test "x$cache_file" != "x/dev/null" &&
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25488 $as_echo "$as_me: updating cache $cache_file" >&6;}
25489 cat confcache >$cache_file
25490 else
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25492 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25495 rm -f confcache
25497 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25498 # Let make expand exec_prefix.
25499 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25501 DEFS=-DHAVE_CONFIG_H
25503 ac_libobjs=
25504 ac_ltlibobjs=
25505 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25506 # 1. Remove the extension, and $U if already installed.
25507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25508 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25510 # will be set to the directory where LIBOBJS objects are built.
25511 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25512 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25513 done
25514 LIBOBJS=$ac_libobjs
25516 LTLIBOBJS=$ac_ltlibobjs
25521 : ${CONFIG_STATUS=./config.status}
25522 ac_write_fail=0
25523 ac_clean_files_save=$ac_clean_files
25524 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25526 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25527 as_write_fail=0
25528 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25529 #! $SHELL
25530 # Generated by $as_me.
25531 # Run this file to recreate the current configuration.
25532 # Compiler output produced by configure, useful for debugging
25533 # configure, is in config.log if it exists.
25535 debug=false
25536 ac_cs_recheck=false
25537 ac_cs_silent=false
25539 SHELL=\${CONFIG_SHELL-$SHELL}
25540 export SHELL
25541 _ASEOF
25542 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25543 ## -------------------- ##
25544 ## M4sh Initialization. ##
25545 ## -------------------- ##
25547 # Be more Bourne compatible
25548 DUALCASE=1; export DUALCASE # for MKS sh
25549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25550 emulate sh
25551 NULLCMD=:
25552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25553 # is contrary to our usage. Disable this feature.
25554 alias -g '${1+"$@"}'='"$@"'
25555 setopt NO_GLOB_SUBST
25556 else
25557 case `(set -o) 2>/dev/null` in #(
25558 *posix*) :
25559 set -o posix ;; #(
25560 *) :
25562 esac
25566 as_nl='
25568 export as_nl
25569 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25570 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25572 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25573 # Prefer a ksh shell builtin over an external printf program on Solaris,
25574 # but without wasting forks for bash or zsh.
25575 if test -z "$BASH_VERSION$ZSH_VERSION" \
25576 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25577 as_echo='print -r --'
25578 as_echo_n='print -rn --'
25579 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25580 as_echo='printf %s\n'
25581 as_echo_n='printf %s'
25582 else
25583 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25584 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25585 as_echo_n='/usr/ucb/echo -n'
25586 else
25587 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25588 as_echo_n_body='eval
25589 arg=$1;
25590 case $arg in #(
25591 *"$as_nl"*)
25592 expr "X$arg" : "X\\(.*\\)$as_nl";
25593 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25594 esac;
25595 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25597 export as_echo_n_body
25598 as_echo_n='sh -c $as_echo_n_body as_echo'
25600 export as_echo_body
25601 as_echo='sh -c $as_echo_body as_echo'
25604 # The user is always right.
25605 if test "${PATH_SEPARATOR+set}" != set; then
25606 PATH_SEPARATOR=:
25607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25608 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25609 PATH_SEPARATOR=';'
25614 # IFS
25615 # We need space, tab and new line, in precisely that order. Quoting is
25616 # there to prevent editors from complaining about space-tab.
25617 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25618 # splitting by setting IFS to empty value.)
25619 IFS=" "" $as_nl"
25621 # Find who we are. Look in the path if we contain no directory separator.
25622 case $0 in #((
25623 *[\\/]* ) as_myself=$0 ;;
25624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25625 for as_dir in $PATH
25627 IFS=$as_save_IFS
25628 test -z "$as_dir" && as_dir=.
25629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25630 done
25631 IFS=$as_save_IFS
25634 esac
25635 # We did not find ourselves, most probably we were run as `sh COMMAND'
25636 # in which case we are not to be found in the path.
25637 if test "x$as_myself" = x; then
25638 as_myself=$0
25640 if test ! -f "$as_myself"; then
25641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25642 exit 1
25645 # Unset variables that we do not need and which cause bugs (e.g. in
25646 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25647 # suppresses any "Segmentation fault" message there. '((' could
25648 # trigger a bug in pdksh 5.2.14.
25649 for as_var in BASH_ENV ENV MAIL MAILPATH
25650 do eval test x\${$as_var+set} = xset \
25651 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25652 done
25653 PS1='$ '
25654 PS2='> '
25655 PS4='+ '
25657 # NLS nuisances.
25658 LC_ALL=C
25659 export LC_ALL
25660 LANGUAGE=C
25661 export LANGUAGE
25663 # CDPATH.
25664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25667 # as_fn_error ERROR [LINENO LOG_FD]
25668 # ---------------------------------
25669 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25670 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25671 # script with status $?, using 1 if that was 0.
25672 as_fn_error ()
25674 as_status=$?; test $as_status -eq 0 && as_status=1
25675 if test "$3"; then
25676 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25679 $as_echo "$as_me: error: $1" >&2
25680 as_fn_exit $as_status
25681 } # as_fn_error
25684 # as_fn_set_status STATUS
25685 # -----------------------
25686 # Set $? to STATUS, without forking.
25687 as_fn_set_status ()
25689 return $1
25690 } # as_fn_set_status
25692 # as_fn_exit STATUS
25693 # -----------------
25694 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25695 as_fn_exit ()
25697 set +e
25698 as_fn_set_status $1
25699 exit $1
25700 } # as_fn_exit
25702 # as_fn_unset VAR
25703 # ---------------
25704 # Portably unset VAR.
25705 as_fn_unset ()
25707 { eval $1=; unset $1;}
25709 as_unset=as_fn_unset
25710 # as_fn_append VAR VALUE
25711 # ----------------------
25712 # Append the text in VALUE to the end of the definition contained in VAR. Take
25713 # advantage of any shell optimizations that allow amortized linear growth over
25714 # repeated appends, instead of the typical quadratic growth present in naive
25715 # implementations.
25716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25717 eval 'as_fn_append ()
25719 eval $1+=\$2
25721 else
25722 as_fn_append ()
25724 eval $1=\$$1\$2
25726 fi # as_fn_append
25728 # as_fn_arith ARG...
25729 # ------------------
25730 # Perform arithmetic evaluation on the ARGs, and store the result in the
25731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25732 # must be portable across $(()) and expr.
25733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25734 eval 'as_fn_arith ()
25736 as_val=$(( $* ))
25738 else
25739 as_fn_arith ()
25741 as_val=`expr "$@" || test $? -eq 1`
25743 fi # as_fn_arith
25746 if expr a : '\(a\)' >/dev/null 2>&1 &&
25747 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25748 as_expr=expr
25749 else
25750 as_expr=false
25753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25754 as_basename=basename
25755 else
25756 as_basename=false
25759 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25760 as_dirname=dirname
25761 else
25762 as_dirname=false
25765 as_me=`$as_basename -- "$0" ||
25766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25767 X"$0" : 'X\(//\)$' \| \
25768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25769 $as_echo X/"$0" |
25770 sed '/^.*\/\([^/][^/]*\)\/*$/{
25771 s//\1/
25774 /^X\/\(\/\/\)$/{
25775 s//\1/
25778 /^X\/\(\/\).*/{
25779 s//\1/
25782 s/.*/./; q'`
25784 # Avoid depending upon Character Ranges.
25785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25788 as_cr_digits='0123456789'
25789 as_cr_alnum=$as_cr_Letters$as_cr_digits
25791 ECHO_C= ECHO_N= ECHO_T=
25792 case `echo -n x` in #(((((
25793 -n*)
25794 case `echo 'xy\c'` in
25795 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25796 xy) ECHO_C='\c';;
25797 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25798 ECHO_T=' ';;
25799 esac;;
25801 ECHO_N='-n';;
25802 esac
25804 rm -f conf$$ conf$$.exe conf$$.file
25805 if test -d conf$$.dir; then
25806 rm -f conf$$.dir/conf$$.file
25807 else
25808 rm -f conf$$.dir
25809 mkdir conf$$.dir 2>/dev/null
25811 if (echo >conf$$.file) 2>/dev/null; then
25812 if ln -s conf$$.file conf$$ 2>/dev/null; then
25813 as_ln_s='ln -s'
25814 # ... but there are two gotchas:
25815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25817 # In both cases, we have to default to `cp -p'.
25818 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25819 as_ln_s='cp -p'
25820 elif ln conf$$.file conf$$ 2>/dev/null; then
25821 as_ln_s=ln
25822 else
25823 as_ln_s='cp -p'
25825 else
25826 as_ln_s='cp -p'
25828 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25829 rmdir conf$$.dir 2>/dev/null
25832 # as_fn_mkdir_p
25833 # -------------
25834 # Create "$as_dir" as a directory, including parents if necessary.
25835 as_fn_mkdir_p ()
25838 case $as_dir in #(
25839 -*) as_dir=./$as_dir;;
25840 esac
25841 test -d "$as_dir" || eval $as_mkdir_p || {
25842 as_dirs=
25843 while :; do
25844 case $as_dir in #(
25845 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25846 *) as_qdir=$as_dir;;
25847 esac
25848 as_dirs="'$as_qdir' $as_dirs"
25849 as_dir=`$as_dirname -- "$as_dir" ||
25850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25851 X"$as_dir" : 'X\(//\)[^/]' \| \
25852 X"$as_dir" : 'X\(//\)$' \| \
25853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25854 $as_echo X"$as_dir" |
25855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25856 s//\1/
25859 /^X\(\/\/\)[^/].*/{
25860 s//\1/
25863 /^X\(\/\/\)$/{
25864 s//\1/
25867 /^X\(\/\).*/{
25868 s//\1/
25871 s/.*/./; q'`
25872 test -d "$as_dir" && break
25873 done
25874 test -z "$as_dirs" || eval "mkdir $as_dirs"
25875 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25878 } # as_fn_mkdir_p
25879 if mkdir -p . 2>/dev/null; then
25880 as_mkdir_p='mkdir -p "$as_dir"'
25881 else
25882 test -d ./-p && rmdir ./-p
25883 as_mkdir_p=false
25886 if test -x / >/dev/null 2>&1; then
25887 as_test_x='test -x'
25888 else
25889 if ls -dL / >/dev/null 2>&1; then
25890 as_ls_L_option=L
25891 else
25892 as_ls_L_option=
25894 as_test_x='
25895 eval sh -c '\''
25896 if test -d "$1"; then
25897 test -d "$1/.";
25898 else
25899 case $1 in #(
25900 -*)set "./$1";;
25901 esac;
25902 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25903 ???[sx]*):;;*)false;;esac;fi
25904 '\'' sh
25907 as_executable_p=$as_test_x
25909 # Sed expression to map a string onto a valid CPP name.
25910 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25912 # Sed expression to map a string onto a valid variable name.
25913 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25916 exec 6>&1
25917 ## ----------------------------------- ##
25918 ## Main body of $CONFIG_STATUS script. ##
25919 ## ----------------------------------- ##
25920 _ASEOF
25921 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25924 # Save the log message, to keep $0 and so on meaningful, and to
25925 # report actual input values of CONFIG_FILES etc. instead of their
25926 # values after options handling.
25927 ac_log="
25928 This file was extended by $as_me, which was
25929 generated by GNU Autoconf 2.64. Invocation command line was
25931 CONFIG_FILES = $CONFIG_FILES
25932 CONFIG_HEADERS = $CONFIG_HEADERS
25933 CONFIG_LINKS = $CONFIG_LINKS
25934 CONFIG_COMMANDS = $CONFIG_COMMANDS
25935 $ $0 $@
25937 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25940 _ACEOF
25942 case $ac_config_files in *"
25943 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25944 esac
25946 case $ac_config_headers in *"
25947 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25948 esac
25951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25952 # Files that config.status was made for.
25953 config_files="$ac_config_files"
25954 config_headers="$ac_config_headers"
25955 config_commands="$ac_config_commands"
25957 _ACEOF
25959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25960 ac_cs_usage="\
25961 \`$as_me' instantiates files and other configuration actions
25962 from templates according to the current configuration. Unless the files
25963 and actions are specified as TAGs, all are instantiated by default.
25965 Usage: $0 [OPTION]... [TAG]...
25967 -h, --help print this help, then exit
25968 -V, --version print version number and configuration settings, then exit
25969 -q, --quiet, --silent
25970 do not print progress messages
25971 -d, --debug don't remove temporary files
25972 --recheck update $as_me by reconfiguring in the same conditions
25973 --file=FILE[:TEMPLATE]
25974 instantiate the configuration file FILE
25975 --header=FILE[:TEMPLATE]
25976 instantiate the configuration header FILE
25978 Configuration files:
25979 $config_files
25981 Configuration headers:
25982 $config_headers
25984 Configuration commands:
25985 $config_commands
25987 Report bugs to the package provider."
25989 _ACEOF
25990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25991 ac_cs_version="\\
25992 config.status
25993 configured by $0, generated by GNU Autoconf 2.64,
25994 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25996 Copyright (C) 2009 Free Software Foundation, Inc.
25997 This config.status script is free software; the Free Software Foundation
25998 gives unlimited permission to copy, distribute and modify it."
26000 ac_pwd='$ac_pwd'
26001 srcdir='$srcdir'
26002 AWK='$AWK'
26003 test -n "\$AWK" || AWK=awk
26004 _ACEOF
26006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26007 # The default lists apply if the user does not specify any file.
26008 ac_need_defaults=:
26009 while test $# != 0
26011 case $1 in
26012 --*=*)
26013 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26015 ac_shift=:
26018 ac_option=$1
26019 ac_optarg=$2
26020 ac_shift=shift
26022 esac
26024 case $ac_option in
26025 # Handling of the options.
26026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26027 ac_cs_recheck=: ;;
26028 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26029 $as_echo "$ac_cs_version"; exit ;;
26030 --debug | --debu | --deb | --de | --d | -d )
26031 debug=: ;;
26032 --file | --fil | --fi | --f )
26033 $ac_shift
26034 case $ac_optarg in
26035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26036 esac
26037 as_fn_append CONFIG_FILES " '$ac_optarg'"
26038 ac_need_defaults=false;;
26039 --header | --heade | --head | --hea )
26040 $ac_shift
26041 case $ac_optarg in
26042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26043 esac
26044 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26045 ac_need_defaults=false;;
26046 --he | --h)
26047 # Conflict between --help and --header
26048 as_fn_error "ambiguous option: \`$1'
26049 Try \`$0 --help' for more information.";;
26050 --help | --hel | -h )
26051 $as_echo "$ac_cs_usage"; exit ;;
26052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26054 ac_cs_silent=: ;;
26056 # This is an error.
26057 -*) as_fn_error "unrecognized option: \`$1'
26058 Try \`$0 --help' for more information." ;;
26060 *) as_fn_append ac_config_targets " $1"
26061 ac_need_defaults=false ;;
26063 esac
26064 shift
26065 done
26067 ac_configure_extra_args=
26069 if $ac_cs_silent; then
26070 exec 6>/dev/null
26071 ac_configure_extra_args="$ac_configure_extra_args --silent"
26074 _ACEOF
26075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26076 if \$ac_cs_recheck; then
26077 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26078 shift
26079 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26080 CONFIG_SHELL='$SHELL'
26081 export CONFIG_SHELL
26082 exec "\$@"
26085 _ACEOF
26086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26087 exec 5>>config.log
26089 echo
26090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26091 ## Running $as_me. ##
26092 _ASBOX
26093 $as_echo "$ac_log"
26094 } >&5
26096 _ACEOF
26097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26099 # INIT-COMMANDS
26101 subdirs='$subdirs'
26103 _ACEOF
26105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26107 # Handling of arguments.
26108 for ac_config_target in $ac_config_targets
26110 case $ac_config_target in
26111 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26112 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26113 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26114 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26115 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26116 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26118 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26119 esac
26120 done
26123 # If the user did not use the arguments to specify the items to instantiate,
26124 # then the envvar interface is used. Set only those that are not.
26125 # We use the long form for the default assignment because of an extremely
26126 # bizarre bug on SunOS 4.1.3.
26127 if $ac_need_defaults; then
26128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26133 # Have a temporary directory for convenience. Make it in the build tree
26134 # simply because there is no reason against having it here, and in addition,
26135 # creating and moving files from /tmp can sometimes cause problems.
26136 # Hook for its removal unless debugging.
26137 # Note that there is a small window in which the directory will not be cleaned:
26138 # after its creation but before its name has been assigned to `$tmp'.
26139 $debug ||
26141 tmp=
26142 trap 'exit_status=$?
26143 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26145 trap 'as_fn_exit 1' 1 2 13 15
26147 # Create a (secure) tmp directory for tmp files.
26150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26151 test -n "$tmp" && test -d "$tmp"
26152 } ||
26154 tmp=./conf$$-$RANDOM
26155 (umask 077 && mkdir "$tmp")
26156 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26158 # Set up the scripts for CONFIG_FILES section.
26159 # No need to generate them if there are no CONFIG_FILES.
26160 # This happens for instance with `./config.status config.h'.
26161 if test -n "$CONFIG_FILES"; then
26163 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26164 ac_cs_awk_getline=:
26165 ac_cs_awk_pipe_init=
26166 ac_cs_awk_read_file='
26167 while ((getline aline < (F[key])) > 0)
26168 print(aline)
26169 close(F[key])'
26170 ac_cs_awk_pipe_fini=
26171 else
26172 ac_cs_awk_getline=false
26173 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26174 ac_cs_awk_read_file='
26175 print "|#_!!_#|"
26176 print "cat " F[key] " &&"
26177 '$ac_cs_awk_pipe_init
26178 # The final `:' finishes the AND list.
26179 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26181 ac_cr=`echo X | tr X '\015'`
26182 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26183 # But we know of no other shell where ac_cr would be empty at this
26184 # point, so we can use a bashism as a fallback.
26185 if test "x$ac_cr" = x; then
26186 eval ac_cr=\$\'\\r\'
26188 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26189 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26190 ac_cs_awk_cr='\r'
26191 else
26192 ac_cs_awk_cr=$ac_cr
26195 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26196 _ACEOF
26198 # Create commands to substitute file output variables.
26200 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26201 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26202 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26203 echo "_ACAWK" &&
26204 echo "_ACEOF"
26205 } >conf$$files.sh &&
26206 . ./conf$$files.sh ||
26207 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26208 rm -f conf$$files.sh
26211 echo "cat >conf$$subs.awk <<_ACEOF" &&
26212 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26213 echo "_ACEOF"
26214 } >conf$$subs.sh ||
26215 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26216 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26217 ac_delim='%!_!# '
26218 for ac_last_try in false false false false false :; do
26219 . ./conf$$subs.sh ||
26220 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26222 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26223 if test $ac_delim_n = $ac_delim_num; then
26224 break
26225 elif $ac_last_try; then
26226 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26227 else
26228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26230 done
26231 rm -f conf$$subs.sh
26233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26234 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26235 _ACEOF
26236 sed -n '
26238 s/^/S["/; s/!.*/"]=/
26241 s/^[^!]*!//
26242 :repl
26243 t repl
26244 s/'"$ac_delim"'$//
26245 t delim
26248 s/\(.\{148\}\).*/\1/
26249 t more1
26250 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26253 b repl
26254 :more1
26255 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26258 s/.\{148\}//
26259 t nl
26260 :delim
26262 s/\(.\{148\}\).*/\1/
26263 t more2
26264 s/["\\]/\\&/g; s/^/"/; s/$/"/
26267 :more2
26268 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26271 s/.\{148\}//
26272 t delim
26273 ' <conf$$subs.awk | sed '
26274 /^[^""]/{
26276 s/\n//
26278 ' >>$CONFIG_STATUS || ac_write_fail=1
26279 rm -f conf$$subs.awk
26280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26281 _ACAWK
26282 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26283 for (key in S) S_is_set[key] = 1
26284 FS = "\a"
26285 \$ac_cs_awk_pipe_init
26288 line = $ 0
26289 nfields = split(line, field, "@")
26290 substed = 0
26291 len = length(field[1])
26292 for (i = 2; i < nfields; i++) {
26293 key = field[i]
26294 keylen = length(key)
26295 if (S_is_set[key]) {
26296 value = S[key]
26297 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26298 len += length(value) + length(field[++i])
26299 substed = 1
26300 } else
26301 len += 1 + keylen
26303 if (nfields == 3 && !substed) {
26304 key = field[2]
26305 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26306 \$ac_cs_awk_read_file
26307 next
26310 print line
26312 \$ac_cs_awk_pipe_fini
26313 _ACAWK
26314 _ACEOF
26315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26316 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26317 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26318 else
26320 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26321 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26322 _ACEOF
26324 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26325 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26326 # trailing colons and then remove the whole line if VPATH becomes empty
26327 # (actually we leave an empty line to preserve line numbers).
26328 if test "x$srcdir" = x.; then
26329 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26330 s/:*\$(srcdir):*/:/
26331 s/:*\${srcdir}:*/:/
26332 s/:*@srcdir@:*/:/
26333 s/^\([^=]*=[ ]*\):*/\1/
26334 s/:*$//
26335 s/^[^=]*=[ ]*$//
26339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26340 fi # test -n "$CONFIG_FILES"
26342 # Set up the scripts for CONFIG_HEADERS section.
26343 # No need to generate them if there are no CONFIG_HEADERS.
26344 # This happens for instance with `./config.status Makefile'.
26345 if test -n "$CONFIG_HEADERS"; then
26346 cat >"$tmp/defines.awk" <<\_ACAWK ||
26347 BEGIN {
26348 _ACEOF
26350 # Transform confdefs.h into an awk script `defines.awk', embedded as
26351 # here-document in config.status, that substitutes the proper values into
26352 # config.h.in to produce config.h.
26354 # Create a delimiter string that does not exist in confdefs.h, to ease
26355 # handling of long lines.
26356 ac_delim='%!_!# '
26357 for ac_last_try in false false :; do
26358 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26359 if test -z "$ac_t"; then
26360 break
26361 elif $ac_last_try; then
26362 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26363 else
26364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26366 done
26368 # For the awk script, D is an array of macro values keyed by name,
26369 # likewise P contains macro parameters if any. Preserve backslash
26370 # newline sequences.
26372 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26373 sed -n '
26374 s/.\{148\}/&'"$ac_delim"'/g
26375 t rset
26376 :rset
26377 s/^[ ]*#[ ]*define[ ][ ]*/ /
26378 t def
26380 :def
26381 s/\\$//
26382 t bsnl
26383 s/["\\]/\\&/g
26384 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26385 D["\1"]=" \3"/p
26386 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26388 :bsnl
26389 s/["\\]/\\&/g
26390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26391 D["\1"]=" \3\\\\\\n"\\/p
26392 t cont
26393 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26394 t cont
26396 :cont
26398 s/.\{148\}/&'"$ac_delim"'/g
26399 t clear
26400 :clear
26401 s/\\$//
26402 t bsnlc
26403 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26405 :bsnlc
26406 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26407 b cont
26408 ' <confdefs.h | sed '
26409 s/'"$ac_delim"'/"\\\
26410 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26413 for (key in D) D_is_set[key] = 1
26414 FS = "\a"
26416 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26417 line = \$ 0
26418 split(line, arg, " ")
26419 if (arg[1] == "#") {
26420 defundef = arg[2]
26421 mac1 = arg[3]
26422 } else {
26423 defundef = substr(arg[1], 2)
26424 mac1 = arg[2]
26426 split(mac1, mac2, "(") #)
26427 macro = mac2[1]
26428 prefix = substr(line, 1, index(line, defundef) - 1)
26429 if (D_is_set[macro]) {
26430 # Preserve the white space surrounding the "#".
26431 print prefix "define", macro P[macro] D[macro]
26432 next
26433 } else {
26434 # Replace #undef with comments. This is necessary, for example,
26435 # in the case of _POSIX_SOURCE, which is predefined and required
26436 # on some systems where configure will not decide to define it.
26437 if (defundef == "undef") {
26438 print "/*", prefix defundef, macro, "*/"
26439 next
26443 { print }
26444 _ACAWK
26445 _ACEOF
26446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26447 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26448 fi # test -n "$CONFIG_HEADERS"
26451 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26452 shift
26453 for ac_tag
26455 case $ac_tag in
26456 :[FHLC]) ac_mode=$ac_tag; continue;;
26457 esac
26458 case $ac_mode$ac_tag in
26459 :[FHL]*:*);;
26460 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26461 :[FH]-) ac_tag=-:-;;
26462 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26463 esac
26464 ac_save_IFS=$IFS
26465 IFS=:
26466 set x $ac_tag
26467 IFS=$ac_save_IFS
26468 shift
26469 ac_file=$1
26470 shift
26472 case $ac_mode in
26473 :L) ac_source=$1;;
26474 :[FH])
26475 ac_file_inputs=
26476 for ac_f
26478 case $ac_f in
26479 -) ac_f="$tmp/stdin";;
26480 *) # Look for the file first in the build tree, then in the source tree
26481 # (if the path is not absolute). The absolute path cannot be DOS-style,
26482 # because $ac_f cannot contain `:'.
26483 test -f "$ac_f" ||
26484 case $ac_f in
26485 [\\/$]*) false;;
26486 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26487 esac ||
26488 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26489 esac
26490 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26491 as_fn_append ac_file_inputs " '$ac_f'"
26492 done
26494 # Let's still pretend it is `configure' which instantiates (i.e., don't
26495 # use $as_me), people would be surprised to read:
26496 # /* config.h. Generated by config.status. */
26497 configure_input='Generated from '`
26498 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26499 `' by configure.'
26500 if test x"$ac_file" != x-; then
26501 configure_input="$ac_file. $configure_input"
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26503 $as_echo "$as_me: creating $ac_file" >&6;}
26505 # Neutralize special characters interpreted by sed in replacement strings.
26506 case $configure_input in #(
26507 *\&* | *\|* | *\\* )
26508 ac_sed_conf_input=`$as_echo "$configure_input" |
26509 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26510 *) ac_sed_conf_input=$configure_input;;
26511 esac
26513 case $ac_tag in
26514 *:-:* | *:-) cat >"$tmp/stdin" \
26515 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26516 esac
26518 esac
26520 ac_dir=`$as_dirname -- "$ac_file" ||
26521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26522 X"$ac_file" : 'X\(//\)[^/]' \| \
26523 X"$ac_file" : 'X\(//\)$' \| \
26524 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26525 $as_echo X"$ac_file" |
26526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26527 s//\1/
26530 /^X\(\/\/\)[^/].*/{
26531 s//\1/
26534 /^X\(\/\/\)$/{
26535 s//\1/
26538 /^X\(\/\).*/{
26539 s//\1/
26542 s/.*/./; q'`
26543 as_dir="$ac_dir"; as_fn_mkdir_p
26544 ac_builddir=.
26546 case "$ac_dir" in
26547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26550 # A ".." for each directory in $ac_dir_suffix.
26551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26552 case $ac_top_builddir_sub in
26553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26555 esac ;;
26556 esac
26557 ac_abs_top_builddir=$ac_pwd
26558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26559 # for backward compatibility:
26560 ac_top_builddir=$ac_top_build_prefix
26562 case $srcdir in
26563 .) # We are building in place.
26564 ac_srcdir=.
26565 ac_top_srcdir=$ac_top_builddir_sub
26566 ac_abs_top_srcdir=$ac_pwd ;;
26567 [\\/]* | ?:[\\/]* ) # Absolute name.
26568 ac_srcdir=$srcdir$ac_dir_suffix;
26569 ac_top_srcdir=$srcdir
26570 ac_abs_top_srcdir=$srcdir ;;
26571 *) # Relative name.
26572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26573 ac_top_srcdir=$ac_top_build_prefix$srcdir
26574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26575 esac
26576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26579 case $ac_mode in
26582 # CONFIG_FILE
26585 _ACEOF
26587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26588 # If the template does not know about datarootdir, expand it.
26589 # FIXME: This hack should be removed a few years after 2.60.
26590 ac_datarootdir_hack=; ac_datarootdir_seen=
26591 ac_sed_dataroot='
26592 /datarootdir/ {
26596 /@datadir@/p
26597 /@docdir@/p
26598 /@infodir@/p
26599 /@localedir@/p
26600 /@mandir@/p'
26601 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26602 *datarootdir*) ac_datarootdir_seen=yes;;
26603 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26605 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26606 _ACEOF
26607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26608 ac_datarootdir_hack='
26609 s&@datadir@&$datadir&g
26610 s&@docdir@&$docdir&g
26611 s&@infodir@&$infodir&g
26612 s&@localedir@&$localedir&g
26613 s&@mandir@&$mandir&g
26614 s&\\\${datarootdir}&$datarootdir&g' ;;
26615 esac
26616 _ACEOF
26618 # Neutralize VPATH when `$srcdir' = `.'.
26619 # Shell code in configure.ac might set extrasub.
26620 # FIXME: do we really want to maintain this feature?
26621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26622 ac_sed_extra="$ac_vpsub
26623 $extrasub
26624 _ACEOF
26625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26628 s|@configure_input@|$ac_sed_conf_input|;t t
26629 s&@top_builddir@&$ac_top_builddir_sub&;t t
26630 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26631 s&@srcdir@&$ac_srcdir&;t t
26632 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26633 s&@top_srcdir@&$ac_top_srcdir&;t t
26634 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26635 s&@builddir@&$ac_builddir&;t t
26636 s&@abs_builddir@&$ac_abs_builddir&;t t
26637 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26638 $ac_datarootdir_hack
26640 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26641 if $ac_cs_awk_getline; then
26642 $AWK -f "$tmp/subs.awk"
26643 else
26644 $AWK -f "$tmp/subs.awk" | $SHELL
26645 fi >$tmp/out \
26646 || as_fn_error "could not create $ac_file" "$LINENO" 5
26648 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26649 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26650 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26652 which seems to be undefined. Please make sure it is defined." >&5
26653 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26654 which seems to be undefined. Please make sure it is defined." >&2;}
26656 rm -f "$tmp/stdin"
26657 case $ac_file in
26658 -) cat "$tmp/out" && rm -f "$tmp/out";;
26659 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26660 esac \
26661 || as_fn_error "could not create $ac_file" "$LINENO" 5
26665 # CONFIG_HEADER
26667 if test x"$ac_file" != x-; then
26669 $as_echo "/* $configure_input */" \
26670 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26671 } >"$tmp/config.h" \
26672 || as_fn_error "could not create $ac_file" "$LINENO" 5
26673 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26675 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26676 else
26677 rm -f "$ac_file"
26678 mv "$tmp/config.h" "$ac_file" \
26679 || as_fn_error "could not create $ac_file" "$LINENO" 5
26681 else
26682 $as_echo "/* $configure_input */" \
26683 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26684 || as_fn_error "could not create -" "$LINENO" 5
26688 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26689 $as_echo "$as_me: executing $ac_file commands" >&6;}
26691 esac
26694 case $ac_file$ac_mode in
26695 "as":F) chmod +x as ;;
26696 "collect-ld":F) chmod +x collect-ld ;;
26697 "nm":F) chmod +x nm ;;
26698 "default":C)
26699 case ${CONFIG_HEADERS} in
26700 *auto-host.h:config.in*)
26701 echo > cstamp-h ;;
26702 esac
26703 # Make sure all the subdirs exist.
26704 for d in $subdirs doc build
26706 test -d $d || mkdir $d
26707 done
26710 esac
26711 done # for ac_tag
26714 as_fn_exit 0
26715 _ACEOF
26716 ac_clean_files=$ac_clean_files_save
26718 test $ac_write_fail = 0 ||
26719 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26722 # configure is writing to config.log, and then calls config.status.
26723 # config.status does its own redirection, appending to config.log.
26724 # Unfortunately, on DOS this fails, as config.log is still kept open
26725 # by configure, so config.status won't be able to write to it; its
26726 # output is simply discarded. So we exec the FD to /dev/null,
26727 # effectively closing config.log, so it can be properly (re)opened and
26728 # appended to by config.status. When coming back to configure, we
26729 # need to make the FD available again.
26730 if test "$no_create" != yes; then
26731 ac_cs_success=:
26732 ac_config_status_args=
26733 test "$silent" = yes &&
26734 ac_config_status_args="$ac_config_status_args --quiet"
26735 exec 5>/dev/null
26736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26737 exec 5>>config.log
26738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26739 # would make configure fail if this is the last instruction.
26740 $ac_cs_success || as_fn_exit $?
26742 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26744 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}