Merge from mainline (160224:163495).
[official-gcc/graphite-test-results.git] / gcc / configure
blobc7a457a1b985110cc3ee54168a1ee78879441694
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 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 slibdir
673 dollar
674 gcc_tooldir
675 LTO_USE_LIBELF
676 LTO_BINARY_READER
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 CXXCPP
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
708 LIBTOOL
709 collect2
710 STMP_FIXINC
711 BUILD_LDFLAGS
712 BUILD_CFLAGS
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 gthread_flags
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 GNAT_LIBEXC
740 COLLECT2_LIBS
743 BISON
744 FLEX
745 GENERATED_MANPAGES
746 BUILD_INFO
747 MAKEINFO
748 have_mktemp_command
749 make_compare_target
750 INSTALL_DATA
751 INSTALL_PROGRAM
752 INSTALL
753 ranlib_flags
754 RANLIB
756 LN_S
758 SET_MAKE
759 REPORT_BUGS_TEXI
760 REPORT_BUGS_TO
761 PKGVERSION
762 onestep
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
787 OUTPUT_OPTION
788 NO_MINUS_C_MINUS_O
789 GNATMAKE
790 GNATBIND
791 ac_ct_CXX
792 CXXFLAGS
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
801 GENINSRC
802 target_subdir
803 host_subdir
804 build_subdir
805 build_libsubdir
806 target_noncanonical
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files='language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_build_sysroot
886 with_sysroot
887 with_specs
888 enable_intermodule
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 with_slibdir
917 enable_plugin
919 ac_precious_vars='build_alias
920 host_alias
921 target_alias
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
928 CXXFLAGS
931 CXXCPP
932 GMPLIBS
933 GMPINC
934 PPLLIBS
935 PPLINC
936 CLOOGLIBS
937 CLOOGINC
938 LIBELFLIBS
939 LIBELFINC'
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
990 ac_prev=
991 ac_dashdash=
992 for ac_option
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
1001 case $ac_option in
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *) ac_optarg=yes ;;
1004 esac
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1010 ac_dashdash=yes ;;
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 ac_prev=bindir ;;
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1032 -datadir | --datadir | --datadi | --datad)
1033 ac_prev=datadir ;;
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1061 ac_prev=docdir ;;
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 ac_prev=dvidir ;;
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334 esac
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 esac
1347 done
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error "missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404 test "$silent" = yes && exec 6>/dev/null
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error "pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1433 /^X\(\/\/\)$/{
1434 s//\1/
1437 /^X\(\/\).*/{
1438 s//\1/
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1446 else
1447 ac_srcdir_defaulted=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481 \`configure' configures this package to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1490 Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 [PREFIX]
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1534 _ACEOF
1536 cat <<\_ACEOF
1538 Program names:
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543 System types:
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 --target=TARGET configure for building compilers for TARGET [HOST]
1547 _ACEOF
1550 if test -n "$ac_init_help"; then
1552 cat <<\_ACEOF
1554 Optional Features:
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --enable-generated-files-in-srcdir
1559 put copies of generated files in source dir
1560 intended for creating source tarballs for users
1561 without texinfo bison or flex.
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking=LIST
1564 enable expensive run-time checks. With LIST,
1565 enable only specific categories of checks.
1566 Categories are: yes,no,all,none,release.
1567 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1568 rtlflag,rtl,runtime,tree,valgrind,types.
1569 --enable-coverage=LEVEL
1570 enable compiler's code coverage collection.
1571 Use to measure compiler performance and locate
1572 unused parts of the compiler. With LEVEL, specify
1573 optimization. Values are opt, noopt,
1574 default is noopt
1575 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1576 --enable-build-with-cxx build with C++ compiler instead of C compiler
1577 --enable-multilib enable library support for multiple ABIs
1578 --enable-__cxa_atexit enable __cxa_atexit for C++
1579 --enable-decimal-float={no,yes,bid,dpd}
1580 enable decimal float extension to C. Selecting 'bid'
1581 or 'dpd' choses which decimal floating point format
1582 to use
1583 --enable-fixed-point enable fixed-point arithmetic extension to C
1584 --enable-threads enable thread usage for target GCC
1585 --enable-threads=LIB use LIB thread package for target GCC
1586 --enable-tls enable or disable generation of tls code
1587 overriding the assembler check for tls support
1588 --enable-objc-gc enable the use of Boehm's garbage collector with
1589 the GNU Objective-C runtime
1590 --disable-shared don't provide a shared libgcc
1591 --enable-intermodule build the compiler in one step
1592 --enable-languages=LIST specify which front-ends to build
1593 --disable-rpath do not hardcode runtime library paths
1594 --enable-initfini-array use .init_array/.fini_array sections
1595 --enable-sjlj-exceptions
1596 arrange to use setjmp/longjmp exception handling
1597 --enable-secureplt enable -msecure-plt by default for PowerPC
1598 --enable-leading-mingw64-underscores
1599 Enable leading underscores on 64 bit mingw targets
1600 --enable-cld enable -mcld by default for 32bit x86
1601 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1602 --disable-win32-registry
1603 disable lookup of installation paths in the
1604 Registry on Windows hosts
1605 --enable-win32-registry enable registry lookup (default)
1606 --enable-win32-registry=KEY
1607 use KEY instead of GCC version as the last portion
1608 of the registry key
1609 --enable-shared[=PKGS] build shared libraries [default=yes]
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --enable-comdat enable COMDAT group support
1615 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1616 glibc systems
1617 --enable-linker-build-id
1618 compiler will always pass --build-id to linker
1619 --enable-maintainer-mode
1620 enable make rules and dependencies not useful
1621 (and sometimes confusing) to the casual installer
1622 --enable-version-specific-runtime-libs
1623 specify that runtime libraries should be
1624 installed in a compiler-specific directory
1625 --enable-plugin enable plugin support
1627 Optional Packages:
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-build-libsubdir=DIR Directory where to find libraries for build system
1631 --with-local-prefix=DIR specifies directory to put local include
1632 --with-gxx-include-dir=DIR
1633 specifies directory to put g++ header files
1634 --with-cpp-install-dir=DIR
1635 install the user visible C preprocessor in DIR
1636 (relative to PREFIX) as well as PREFIX/bin
1637 --with-gnu-ld arrange to work with GNU ld.
1638 --with-ld arrange to use the specified ld (full pathname)
1639 --with-demangler-in-ld try to use demangler in GNU ld.
1640 --with-gnu-as arrange to work with GNU as
1641 --with-as arrange to use the specified as (full pathname)
1642 --with-stabs arrange to use stabs instead of host debug format
1643 --with-dwarf2 force the default debug format to be DWARF 2
1644 --with-build-sysroot=sysroot
1645 use sysroot as the system root during the build
1646 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1647 --with-specs=SPECS add SPECS to driver command-line processing
1648 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1649 --with-bugurl=URL Direct users to URL to report a bug
1650 --with-multilib-list Select multilibs (SH only)
1651 --with-gnu-ld assume the C compiler uses GNU ld default=no
1652 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1653 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1654 --with-system-libunwind use installed libunwind
1655 --with-pic try to use only PIC/non-PIC objects [default=use
1656 both]
1657 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1658 --with-plugin-ld=[ARG] specify the plugin linker
1659 --with-long-double-128 Use 128-bit long double by default.
1660 --with-gc={page,zone} choose the garbage collection mechanism to use
1661 with the compiler
1662 --with-system-zlib use installed libz
1663 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1665 Some influential environment variables:
1666 CC C compiler command
1667 CFLAGS C compiler flags
1668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1669 nonstandard directory <lib dir>
1670 LIBS libraries to pass to the linker, e.g. -l<library>
1671 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1672 you have headers in a nonstandard directory <include dir>
1673 CXX C++ compiler command
1674 CXXFLAGS C++ compiler flags
1675 CPP C preprocessor
1676 CXXCPP C++ preprocessor
1677 GMPLIBS How to link GMP
1678 GMPINC How to find GMP include files
1679 PPLLIBS How to link PPL
1680 PPLINC How to find PPL include files
1681 CLOOGLIBS How to link CLOOG
1682 CLOOGINC How to find CLOOG include files
1683 LIBELFLIBS How to link libelf
1684 LIBELFINC How to find libelf include files
1686 Use these variables to override the choices made by `configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1689 Report bugs to the package provider.
1690 _ACEOF
1691 ac_status=$?
1694 if test "$ac_init_help" = "recursive"; then
1695 # If there are subdirs, report their specific --help.
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697 test -d "$ac_dir" ||
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699 continue
1700 ac_builddir=.
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706 # A ".." for each directory in $ac_dir_suffix.
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708 case $ac_top_builddir_sub in
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711 esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1718 case $srcdir in
1719 .) # We are building in place.
1720 ac_srcdir=.
1721 ac_top_srcdir=$ac_top_builddir_sub
1722 ac_abs_top_srcdir=$ac_pwd ;;
1723 [\\/]* | ?:[\\/]* ) # Absolute name.
1724 ac_srcdir=$srcdir$ac_dir_suffix;
1725 ac_top_srcdir=$srcdir
1726 ac_abs_top_srcdir=$srcdir ;;
1727 *) # Relative name.
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734 cd "$ac_dir" || { ac_status=$?; continue; }
1735 # Check for guested configure.
1736 if test -f "$ac_srcdir/configure.gnu"; then
1737 echo &&
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739 elif test -f "$ac_srcdir/configure"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure" --help=recursive
1742 else
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744 fi || ac_status=$?
1745 cd "$ac_pwd" || { ac_status=$?; break; }
1746 done
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751 cat <<\_ACEOF
1752 configure
1753 generated by GNU Autoconf 2.64
1755 Copyright (C) 2009 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1758 _ACEOF
1759 exit
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.$ac_objext; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1797 ac_retval=1
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 return $ac_retval
1802 } # ac_fn_c_try_compile
1804 # ac_fn_cxx_try_compile LINENO
1805 # ----------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_compile ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext
1811 if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_cxx_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 ac_retval=1
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 return $ac_retval
1840 } # ac_fn_cxx_try_compile
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_cpp ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } >/dev/null && {
1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 ac_retval=1
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 return $ac_retval
1877 } # ac_fn_c_try_cpp
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1883 # accordingly.
1884 ac_fn_c_check_header_mongrel ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 else
1897 # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_header_compiler=yes
1907 else
1908 ac_header_compiler=no
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_cpp "$LINENO"; then :
1922 ac_header_preproc=yes
1923 else
1924 ac_header_preproc=no
1926 rm -f conftest.err conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1930 # So? What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932 yes:no: )
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938 no:yes:* )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 esac
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=\$ac_header_compiler"
1958 eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 } # ac_fn_c_check_header_mongrel
1966 # ac_fn_c_try_run LINENO
1967 # ----------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969 # that executables *can* be run.
1970 ac_fn_c_try_run ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if { { ac_try="$ac_link"
1974 case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_link") 2>&5
1981 ac_status=$?
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984 { { case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_try") 2>&5
1991 ac_status=$?
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; }; }; then :
1994 ac_retval=0
1995 else
1996 $as_echo "$as_me: program exited with status $ac_status" >&5
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2000 ac_retval=$ac_status
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 return $ac_retval
2006 } # ac_fn_c_try_run
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$3=yes"
2027 else
2028 eval "$3=no"
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 } # ac_fn_c_check_header_compile
2039 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040 # --------------------------------------------
2041 # Tries to find the compile-time value of EXPR in a program that includes
2042 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2043 # computed
2044 ac_fn_c_compute_int ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if test "$cross_compiling" = yes; then
2048 # Depending upon the size, compute the lo and hi bounds.
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2053 main ()
2055 static int test_array [1 - 2 * !(($2) >= 0)];
2056 test_array [0] = 0
2059 return 0;
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_lo=0 ac_mid=0
2064 while :; do
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072 test_array [0] = 0
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_hi=$ac_mid; break
2080 else
2081 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082 if test $ac_lo -le $ac_mid; then
2083 ac_lo= ac_hi=
2084 break
2086 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 done
2090 else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2095 main ()
2097 static int test_array [1 - 2 * !(($2) < 0)];
2098 test_array [0] = 0
2101 return 0;
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=-1 ac_mid=-1
2106 while :; do
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2111 main ()
2113 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2114 test_array [0] = 0
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=$ac_mid; break
2122 else
2123 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2124 if test $ac_mid -le $ac_hi; then
2125 ac_lo= ac_hi=
2126 break
2128 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 done
2132 else
2133 ac_lo= ac_hi=
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 # Binary search between lo and hi bounds.
2139 while test "x$ac_lo" != "x$ac_hi"; do
2140 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2145 main ()
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2148 test_array [0] = 0
2151 return 0;
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155 ac_hi=$ac_mid
2156 else
2157 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 case $ac_lo in #((
2162 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2163 '') ac_retval=1 ;;
2164 esac
2165 else
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2169 static long int longval () { return $2; }
2170 static unsigned long int ulongval () { return $2; }
2171 #include <stdio.h>
2172 #include <stdlib.h>
2174 main ()
2177 FILE *f = fopen ("conftest.val", "w");
2178 if (! f)
2179 return 1;
2180 if (($2) < 0)
2182 long int i = longval ();
2183 if (i != ($2))
2184 return 1;
2185 fprintf (f, "%ld", i);
2187 else
2189 unsigned long int i = ulongval ();
2190 if (i != ($2))
2191 return 1;
2192 fprintf (f, "%lu", i);
2194 /* Do not output a trailing newline, as this causes \r\n confusion
2195 on some platforms. */
2196 return ferror (f) || fclose (f) != 0;
2199 return 0;
2201 _ACEOF
2202 if ac_fn_c_try_run "$LINENO"; then :
2203 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2204 else
2205 ac_retval=1
2207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2208 conftest.$ac_objext conftest.beam conftest.$ac_ext
2209 rm -f conftest.val
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213 return $ac_retval
2215 } # ac_fn_c_compute_int
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2228 else
2229 eval "$3=no"
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2234 main ()
2236 if (sizeof ($2))
2237 return 0;
2239 return 0;
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2247 main ()
2249 if (sizeof (($2)))
2250 return 0;
2252 return 0;
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2257 else
2258 eval "$3=yes"
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2269 } # ac_fn_c_check_type
2271 # ac_fn_c_find_intX_t LINENO BITS VAR
2272 # -----------------------------------
2273 # Finds a signed integer type with width BITS, setting cache variable VAR
2274 # accordingly.
2275 ac_fn_c_find_intX_t ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2279 $as_echo_n "checking for int$2_t... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 eval "$3=no"
2284 for ac_type in int$2_t 'int' 'long int' \
2285 'long long int' 'short int' 'signed char'; do
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 $ac_includes_default
2290 main ()
2292 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2293 test_array [0] = 0
2296 return 0;
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 $ac_includes_default
2304 main ()
2306 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2307 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2308 test_array [0] = 0
2311 return 0;
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2316 else
2317 case $ac_type in #(
2318 int$2_t) :
2319 eval "$3=yes" ;; #(
2320 *) :
2321 eval "$3=\$ac_type" ;;
2322 esac
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 eval as_val=\$$3
2328 if test "x$as_val" = x""no; then :
2330 else
2331 break
2333 done
2335 eval ac_res=\$$3
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2340 } # ac_fn_c_find_intX_t
2342 # ac_fn_c_try_link LINENO
2343 # -----------------------
2344 # Try to link conftest.$ac_ext, and return whether this succeeded.
2345 ac_fn_c_try_link ()
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 rm -f conftest.$ac_objext conftest$ac_exeext
2349 if { { ac_try="$ac_link"
2350 case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356 (eval "$ac_link") 2>conftest.err
2357 ac_status=$?
2358 if test -s conftest.err; then
2359 grep -v '^ *+' conftest.err >conftest.er1
2360 cat conftest.er1 >&5
2361 mv -f conftest.er1 conftest.err
2363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364 test $ac_status = 0; } && {
2365 test -z "$ac_c_werror_flag" ||
2366 test ! -s conftest.err
2367 } && test -s conftest$ac_exeext && {
2368 test "$cross_compiling" = yes ||
2369 $as_test_x conftest$ac_exeext
2370 }; then :
2371 ac_retval=0
2372 else
2373 $as_echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 ac_retval=1
2378 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2379 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2380 # interfere with the next link command; also delete a directory that is
2381 # left behind by Apple's compiler. We do this before executing the actions.
2382 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384 return $ac_retval
2386 } # ac_fn_c_try_link
2388 # ac_fn_c_find_uintX_t LINENO BITS VAR
2389 # ------------------------------------
2390 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2391 # accordingly.
2392 ac_fn_c_find_uintX_t ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2396 $as_echo_n "checking for uint$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 eval "$3=no"
2401 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2402 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2407 main ()
2409 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2410 test_array [0] = 0
2413 return 0;
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417 case $ac_type in #(
2418 uint$2_t) :
2419 eval "$3=yes" ;; #(
2420 *) :
2421 eval "$3=\$ac_type" ;;
2422 esac
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 eval as_val=\$$3
2426 if test "x$as_val" = x""no; then :
2428 else
2429 break
2431 done
2433 eval ac_res=\$$3
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438 } # ac_fn_c_find_uintX_t
2440 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2441 # ----------------------------------------------
2442 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2443 ac_fn_c_check_header_preproc ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2453 #include <$2>
2454 _ACEOF
2455 if ac_fn_c_try_cpp "$LINENO"; then :
2456 eval "$3=yes"
2457 else
2458 eval "$3=no"
2460 rm -f conftest.err conftest.$ac_ext
2462 eval ac_res=\$$3
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 } # ac_fn_c_check_header_preproc
2469 # ac_fn_c_check_func LINENO FUNC VAR
2470 # ----------------------------------
2471 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2472 ac_fn_c_check_func ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2484 #define $2 innocuous_$2
2486 /* System header to define __stub macros and hopefully few prototypes,
2487 which can conflict with char $2 (); below.
2488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2489 <limits.h> exists even on freestanding compilers. */
2491 #ifdef __STDC__
2492 # include <limits.h>
2493 #else
2494 # include <assert.h>
2495 #endif
2497 #undef $2
2499 /* Override any GCC internal prototype to avoid an error.
2500 Use char because int might match the return type of a GCC
2501 builtin and then its argument prototype would still apply. */
2502 #ifdef __cplusplus
2503 extern "C"
2504 #endif
2505 char $2 ();
2506 /* The GNU C library defines this for functions which it implements
2507 to always fail with ENOSYS. Some functions are actually named
2508 something starting with __ and the normal name is an alias. */
2509 #if defined __stub_$2 || defined __stub___$2
2510 choke me
2511 #endif
2514 main ()
2516 return $2 ();
2518 return 0;
2520 _ACEOF
2521 if ac_fn_c_try_link "$LINENO"; then :
2522 eval "$3=yes"
2523 else
2524 eval "$3=no"
2526 rm -f core conftest.err conftest.$ac_objext \
2527 conftest$ac_exeext conftest.$ac_ext
2529 eval ac_res=\$$3
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2534 } # ac_fn_c_check_func
2536 # ac_fn_cxx_try_cpp LINENO
2537 # ------------------------
2538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2539 ac_fn_cxx_try_cpp ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 if { { ac_try="$ac_cpp conftest.$ac_ext"
2543 case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2546 esac
2547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2550 ac_status=$?
2551 if test -s conftest.err; then
2552 grep -v '^ *+' conftest.err >conftest.er1
2553 cat conftest.er1 >&5
2554 mv -f conftest.er1 conftest.err
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } >/dev/null && {
2558 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2559 test ! -s conftest.err
2560 }; then :
2561 ac_retval=0
2562 else
2563 $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 ac_retval=1
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 return $ac_retval
2571 } # ac_fn_cxx_try_cpp
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { { ac_try="$ac_link"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link") 2>conftest.err
2588 ac_status=$?
2589 if test -s conftest.err; then
2590 grep -v '^ *+' conftest.err >conftest.er1
2591 cat conftest.er1 >&5
2592 mv -f conftest.er1 conftest.err
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; } && {
2596 test -z "$ac_cxx_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest$ac_exeext && {
2599 test "$cross_compiling" = yes ||
2600 $as_test_x conftest$ac_exeext
2601 }; then :
2602 ac_retval=0
2603 else
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2607 ac_retval=1
2609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611 # interfere with the next link command; also delete a directory that is
2612 # left behind by Apple's compiler. We do this before executing the actions.
2613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615 return $ac_retval
2617 } # ac_fn_cxx_try_link
2618 cat >config.log <<_ACEOF
2619 This file contains any messages produced by compilers while
2620 running configure, to aid debugging if configure makes a mistake.
2622 It was created by $as_me, which was
2623 generated by GNU Autoconf 2.64. Invocation command line was
2625 $ $0 $@
2627 _ACEOF
2628 exec 5>>config.log
2630 cat <<_ASUNAME
2631 ## --------- ##
2632 ## Platform. ##
2633 ## --------- ##
2635 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2636 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2637 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2638 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2639 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2641 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2642 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2644 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2645 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2646 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2647 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2648 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2649 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2650 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2652 _ASUNAME
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 $as_echo "PATH: $as_dir"
2660 done
2661 IFS=$as_save_IFS
2663 } >&5
2665 cat >&5 <<_ACEOF
2668 ## ----------- ##
2669 ## Core tests. ##
2670 ## ----------- ##
2672 _ACEOF
2675 # Keep a trace of the command line.
2676 # Strip out --no-create and --no-recursion so they do not pile up.
2677 # Strip out --silent because we don't want to record it for future runs.
2678 # Also quote any args containing shell meta-characters.
2679 # Make two passes to allow for proper duplicate-argument suppression.
2680 ac_configure_args=
2681 ac_configure_args0=
2682 ac_configure_args1=
2683 ac_must_keep_next=false
2684 for ac_pass in 1 2
2686 for ac_arg
2688 case $ac_arg in
2689 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691 | -silent | --silent | --silen | --sile | --sil)
2692 continue ;;
2693 *\'*)
2694 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2695 esac
2696 case $ac_pass in
2697 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2699 as_fn_append ac_configure_args1 " '$ac_arg'"
2700 if test $ac_must_keep_next = true; then
2701 ac_must_keep_next=false # Got value, back to normal.
2702 else
2703 case $ac_arg in
2704 *=* | --config-cache | -C | -disable-* | --disable-* \
2705 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707 | -with-* | --with-* | -without-* | --without-* | --x)
2708 case "$ac_configure_args0 " in
2709 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2710 esac
2712 -* ) ac_must_keep_next=true ;;
2713 esac
2715 as_fn_append ac_configure_args " '$ac_arg'"
2717 esac
2718 done
2719 done
2720 { ac_configure_args0=; unset ac_configure_args0;}
2721 { ac_configure_args1=; unset ac_configure_args1;}
2723 # When interrupted or exit'd, cleanup temporary files, and complete
2724 # config.log. We remove comments because anyway the quotes in there
2725 # would cause problems or look ugly.
2726 # WARNING: Use '\'' to represent an apostrophe within the trap.
2727 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 trap 'exit_status=$?
2729 # Save into config.log some information that might help in debugging.
2731 echo
2733 cat <<\_ASBOX
2734 ## ---------------- ##
2735 ## Cache variables. ##
2736 ## ---------------- ##
2737 _ASBOX
2738 echo
2739 # The following way of writing the cache mishandles newlines in values,
2741 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2742 eval ac_val=\$$ac_var
2743 case $ac_val in #(
2744 *${as_nl}*)
2745 case $ac_var in #(
2746 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2747 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2748 esac
2749 case $ac_var in #(
2750 _ | IFS | as_nl) ;; #(
2751 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2752 *) { eval $ac_var=; unset $ac_var;} ;;
2753 esac ;;
2754 esac
2755 done
2756 (set) 2>&1 |
2757 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2758 *${as_nl}ac_space=\ *)
2759 sed -n \
2760 "s/'\''/'\''\\\\'\'''\''/g;
2761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2762 ;; #(
2764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2766 esac |
2767 sort
2769 echo
2771 cat <<\_ASBOX
2772 ## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##
2775 _ASBOX
2776 echo
2777 for ac_var in $ac_subst_vars
2779 eval ac_val=\$$ac_var
2780 case $ac_val in
2781 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2782 esac
2783 $as_echo "$ac_var='\''$ac_val'\''"
2784 done | sort
2785 echo
2787 if test -n "$ac_subst_files"; then
2788 cat <<\_ASBOX
2789 ## ------------------- ##
2790 ## File substitutions. ##
2791 ## ------------------- ##
2792 _ASBOX
2793 echo
2794 for ac_var in $ac_subst_files
2796 eval ac_val=\$$ac_var
2797 case $ac_val in
2798 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2799 esac
2800 $as_echo "$ac_var='\''$ac_val'\''"
2801 done | sort
2802 echo
2805 if test -s confdefs.h; then
2806 cat <<\_ASBOX
2807 ## ----------- ##
2808 ## confdefs.h. ##
2809 ## ----------- ##
2810 _ASBOX
2811 echo
2812 cat confdefs.h
2813 echo
2815 test "$ac_signal" != 0 &&
2816 $as_echo "$as_me: caught signal $ac_signal"
2817 $as_echo "$as_me: exit $exit_status"
2818 } >&5
2819 rm -f core *.core core.conftest.* &&
2820 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2821 exit $exit_status
2823 for ac_signal in 1 2 13 15; do
2824 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2825 done
2826 ac_signal=0
2828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2829 rm -f -r conftest* confdefs.h
2831 $as_echo "/* confdefs.h */" > confdefs.h
2833 # Predefined preprocessor variables.
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_NAME "$PACKAGE_NAME"
2837 _ACEOF
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2841 _ACEOF
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2845 _ACEOF
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_STRING "$PACKAGE_STRING"
2849 _ACEOF
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2853 _ACEOF
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_URL "$PACKAGE_URL"
2857 _ACEOF
2860 # Let the site file select an alternate cache file if it wants to.
2861 # Prefer an explicitly selected file to automatically selected ones.
2862 ac_site_file1=NONE
2863 ac_site_file2=NONE
2864 if test -n "$CONFIG_SITE"; then
2865 ac_site_file1=$CONFIG_SITE
2866 elif test "x$prefix" != xNONE; then
2867 ac_site_file1=$prefix/share/config.site
2868 ac_site_file2=$prefix/etc/config.site
2869 else
2870 ac_site_file1=$ac_default_prefix/share/config.site
2871 ac_site_file2=$ac_default_prefix/etc/config.site
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2875 test "x$ac_site_file" = xNONE && continue
2876 if test -r "$ac_site_file"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879 sed 's/^/| /' "$ac_site_file" >&5
2880 . "$ac_site_file"
2882 done
2884 if test -r "$cache_file"; then
2885 # Some versions of bash will fail to source /dev/null (special
2886 # files actually), so we avoid doing that.
2887 if test -f "$cache_file"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2889 $as_echo "$as_me: loading cache $cache_file" >&6;}
2890 case $cache_file in
2891 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2892 *) . "./$cache_file";;
2893 esac
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2897 $as_echo "$as_me: creating cache $cache_file" >&6;}
2898 >$cache_file
2901 # Check that the precious variables saved in the cache have kept the same
2902 # value.
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906 eval ac_new_set=\$ac_env_${ac_var}_set
2907 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908 eval ac_new_val=\$ac_env_${ac_var}_value
2909 case $ac_old_set,$ac_new_set in
2910 set,)
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2914 ,set)
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2917 ac_cache_corrupted=: ;;
2918 ,);;
2920 if test "x$ac_old_val" != "x$ac_new_val"; then
2921 # differences in whitespace do not lead to failure.
2922 ac_old_val_w=`echo x $ac_old_val`
2923 ac_new_val_w=`echo x $ac_new_val`
2924 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2927 ac_cache_corrupted=:
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931 eval $ac_var=\$ac_old_val
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2934 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2937 fi;;
2938 esac
2939 # Pass precious variables to config.status.
2940 if test "$ac_new_set" = set; then
2941 case $ac_new_val in
2942 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943 *) ac_arg=$ac_var=$ac_new_val ;;
2944 esac
2945 case " $ac_configure_args " in
2946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2947 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948 esac
2950 done
2951 if $ac_cache_corrupted; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2976 gcc_version=`cat $srcdir/BASE-VER`
2978 # Determine the host, build, and target systems
2979 ac_aux_dir=
2980 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2981 for ac_t in install-sh install.sh shtool; do
2982 if test -f "$ac_dir/$ac_t"; then
2983 ac_aux_dir=$ac_dir
2984 ac_install_sh="$ac_aux_dir/$ac_t -c"
2985 break 2
2987 done
2988 done
2989 if test -z "$ac_aux_dir"; then
2990 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2993 # These three variables are undocumented and unsupported,
2994 # and are intended to be withdrawn in a future Autoconf release.
2995 # They can cause serious problems if a builder's source tree is in a directory
2996 # whose full name contains unusual characters.
2997 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2998 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2999 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3002 # Make sure we can run config.sub.
3003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3004 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3007 $as_echo_n "checking build system type... " >&6; }
3008 if test "${ac_cv_build+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 ac_build_alias=$build_alias
3012 test "x$ac_build_alias" = x &&
3013 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3014 test "x$ac_build_alias" = x &&
3015 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3017 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3021 $as_echo "$ac_cv_build" >&6; }
3022 case $ac_cv_build in
3023 *-*-*) ;;
3024 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3025 esac
3026 build=$ac_cv_build
3027 ac_save_IFS=$IFS; IFS='-'
3028 set x $ac_cv_build
3029 shift
3030 build_cpu=$1
3031 build_vendor=$2
3032 shift; shift
3033 # Remember, the first character of IFS is used to create $*,
3034 # except with old shells:
3035 build_os=$*
3036 IFS=$ac_save_IFS
3037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3041 $as_echo_n "checking host system type... " >&6; }
3042 if test "${ac_cv_host+set}" = set; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test "x$host_alias" = x; then
3046 ac_cv_host=$ac_cv_build
3047 else
3048 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3049 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3054 $as_echo "$ac_cv_host" >&6; }
3055 case $ac_cv_host in
3056 *-*-*) ;;
3057 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3058 esac
3059 host=$ac_cv_host
3060 ac_save_IFS=$IFS; IFS='-'
3061 set x $ac_cv_host
3062 shift
3063 host_cpu=$1
3064 host_vendor=$2
3065 shift; shift
3066 # Remember, the first character of IFS is used to create $*,
3067 # except with old shells:
3068 host_os=$*
3069 IFS=$ac_save_IFS
3070 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3074 $as_echo_n "checking target system type... " >&6; }
3075 if test "${ac_cv_target+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test "x$target_alias" = x; then
3079 ac_cv_target=$ac_cv_host
3080 else
3081 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3082 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3087 $as_echo "$ac_cv_target" >&6; }
3088 case $ac_cv_target in
3089 *-*-*) ;;
3090 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3091 esac
3092 target=$ac_cv_target
3093 ac_save_IFS=$IFS; IFS='-'
3094 set x $ac_cv_target
3095 shift
3096 target_cpu=$1
3097 target_vendor=$2
3098 shift; shift
3099 # Remember, the first character of IFS is used to create $*,
3100 # except with old shells:
3101 target_os=$*
3102 IFS=$ac_save_IFS
3103 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3106 # The aliases save the names the user supplied, while $host etc.
3107 # will get canonicalized.
3108 test -n "$target_alias" &&
3109 test "$program_prefix$program_suffix$program_transform_name" = \
3110 NONENONEs,x,x, &&
3111 program_prefix=${target_alias}-
3113 # Determine the noncanonical target name, for directory use.
3114 case ${build_alias} in
3115 "") build_noncanonical=${build} ;;
3116 *) build_noncanonical=${build_alias} ;;
3117 esac
3119 case ${host_alias} in
3120 "") host_noncanonical=${build_noncanonical} ;;
3121 *) host_noncanonical=${host_alias} ;;
3122 esac
3124 case ${target_alias} in
3125 "") target_noncanonical=${host_noncanonical} ;;
3126 *) target_noncanonical=${target_alias} ;;
3127 esac
3132 # Determine the target- and build-specific subdirectories
3134 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3135 # have matching libraries, they should use host libraries: Makefile.tpl
3136 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3137 # However, they still use the build modules, because the corresponding
3138 # host modules (e.g. bison) are only built for the host when bootstrap
3139 # finishes. So:
3140 # - build_subdir is where we find build modules, and never changes.
3141 # - build_libsubdir is where we find build libraries, and can be overridden.
3143 # Prefix 'build-' so this never conflicts with target_subdir.
3144 build_subdir="build-${build_noncanonical}"
3146 # Check whether --with-build-libsubdir was given.
3147 if test "${with_build_libsubdir+set}" = set; then :
3148 withval=$with_build_libsubdir; build_libsubdir="$withval"
3149 else
3150 build_libsubdir="$build_subdir"
3153 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3154 if ( test $srcdir = . && test -d gcc ) \
3155 || test -d $srcdir/../host-${host_noncanonical}; then
3156 host_subdir="host-${host_noncanonical}"
3157 else
3158 host_subdir=.
3160 # No prefix.
3161 target_subdir=${target_noncanonical}
3164 # Set program_transform_name
3165 test "$program_prefix" != NONE &&
3166 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3170 # Double any \ or $.
3171 # By default was `s,x,x', remove it if useless.
3172 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3176 # Check for bogus environment variables.
3177 # Test if LIBRARY_PATH contains the notation for the current directory
3178 # since this would lead to problems installing/building glibc.
3179 # LIBRARY_PATH contains the current directory if one of the following
3180 # is true:
3181 # - one of the terminals (":" and ";") is the first or last sign
3182 # - two terminals occur directly after each other
3183 # - the path contains an element with a dot in it
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3185 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3186 case ${LIBRARY_PATH} in
3187 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3188 library_path_setting="contains current directory"
3191 library_path_setting="ok"
3193 esac
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3195 $as_echo "$library_path_setting" >&6; }
3196 if test "$library_path_setting" != "ok"; then
3197 as_fn_error "
3198 *** LIBRARY_PATH shouldn't contain the current directory when
3199 *** building gcc. Please change the environment variable
3200 *** and run configure again." "$LINENO" 5
3203 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3204 # since this would lead to problems installing/building glibc.
3205 # GCC_EXEC_PREFIX contains the current directory if one of the following
3206 # is true:
3207 # - one of the terminals (":" and ";") is the first or last sign
3208 # - two terminals occur directly after each other
3209 # - the path contains an element with a dot in it
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3211 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3212 case ${GCC_EXEC_PREFIX} in
3213 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3214 gcc_exec_prefix_setting="contains current directory"
3217 gcc_exec_prefix_setting="ok"
3219 esac
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3221 $as_echo "$gcc_exec_prefix_setting" >&6; }
3222 if test "$gcc_exec_prefix_setting" != "ok"; then
3223 as_fn_error "
3224 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3225 *** building gcc. Please change the environment variable
3226 *** and run configure again." "$LINENO" 5
3229 # -----------
3230 # Directories
3231 # -----------
3233 # Specify the local prefix
3234 local_prefix=
3236 # Check whether --with-local-prefix was given.
3237 if test "${with_local_prefix+set}" = set; then :
3238 withval=$with_local_prefix; case "${withval}" in
3239 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3240 no) ;;
3241 *) local_prefix=$with_local_prefix ;;
3242 esac
3246 # Default local prefix if it is empty
3247 if test x$local_prefix = x; then
3248 local_prefix=/usr/local
3251 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3252 # passed in by the toplevel make and thus we'd get different behavior
3253 # depending on where we built the sources.
3254 gcc_gxx_include_dir=
3255 # Specify the g++ header file directory
3257 # Check whether --with-gxx-include-dir was given.
3258 if test "${with_gxx_include_dir+set}" = set; then :
3259 withval=$with_gxx_include_dir; case "${withval}" in
3260 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3261 no) ;;
3262 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3263 esac
3267 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3268 if test x${gcc_gxx_include_dir} = x; then
3269 if test x${enable_version_specific_runtime_libs} = xyes; then
3270 gcc_gxx_include_dir='${libsubdir}/include/c++'
3271 else
3272 libstdcxx_incdir='include/c++/$(version)'
3273 if test x$host != x$target; then
3274 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3276 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3281 # Check whether --with-cpp_install_dir was given.
3282 if test "${with_cpp_install_dir+set}" = set; then :
3283 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3284 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3285 elif test x$withval != xno; then
3286 cpp_install_dir=$withval
3291 # We would like to our source tree to be readonly. However when releases or
3292 # pre-releases are generated, the flex/bison generated files as well as the
3293 # various formats of manuals need to be included along with the rest of the
3294 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3295 # just that.
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3298 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3299 # Check whether --enable-generated-files-in-srcdir was given.
3300 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3301 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3302 else
3303 generated_files_in_srcdir=no
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3308 $as_echo "$generated_files_in_srcdir" >&6; }
3310 if test "$generated_files_in_srcdir" = "yes"; then
3311 GENINSRC=''
3312 else
3313 GENINSRC='#'
3317 # -------------------
3318 # Find default linker
3319 # -------------------
3321 # With GNU ld
3323 # Check whether --with-gnu-ld was given.
3324 if test "${with_gnu_ld+set}" = set; then :
3325 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3326 else
3327 gnu_ld_flag=no
3331 # With pre-defined ld
3333 # Check whether --with-ld was given.
3334 if test "${with_ld+set}" = set; then :
3335 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3338 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3339 if test ! -x "$DEFAULT_LINKER"; then
3340 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3341 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3342 gnu_ld_flag=yes
3345 cat >>confdefs.h <<_ACEOF
3346 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3347 _ACEOF
3351 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3353 cat >>confdefs.h <<_ACEOF
3354 #define HAVE_GNU_LD $gnu_ld
3355 _ACEOF
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3359 $as_echo_n "checking whether a default linker was specified... " >&6; }
3360 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3361 if test x"$gnu_ld_flag" = x"no"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3363 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3364 else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3366 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3368 else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3373 # With demangler in GNU ld
3375 # Check whether --with-demangler-in-ld was given.
3376 if test "${with_demangler_in_ld+set}" = set; then :
3377 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3378 else
3379 demangler_in_ld=no
3383 # ----------------------
3384 # Find default assembler
3385 # ----------------------
3387 # With GNU as
3389 # Check whether --with-gnu-as was given.
3390 if test "${with_gnu_as+set}" = set; then :
3391 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3392 else
3393 gas_flag=no
3398 # Check whether --with-as was given.
3399 if test "${with_as+set}" = set; then :
3400 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3403 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3404 if test ! -x "$DEFAULT_ASSEMBLER"; then
3405 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3406 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3407 gas_flag=yes
3410 cat >>confdefs.h <<_ACEOF
3411 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3412 _ACEOF
3416 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3418 cat >>confdefs.h <<_ACEOF
3419 #define HAVE_GNU_AS $gnu_as
3420 _ACEOF
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3424 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3425 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3426 if test x"$gas_flag" = x"no"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3428 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3431 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3438 # ---------------
3439 # Find C compiler
3440 # ---------------
3442 # If a non-executable a.out is present (e.g. created by GNU as above even if
3443 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3444 # file, even when creating an executable, so an execution test fails.
3445 # Remove possible default executable files to avoid this.
3447 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3448 # Autoconf includes it.
3449 rm -f a.out a.exe b.out
3451 # Find the native compiler
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3479 done
3480 done
3481 IFS=$as_save_IFS
3485 CC=$ac_cv_prog_CC
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3496 if test -z "$ac_cv_prog_CC"; then
3497 ac_ct_CC=$CC
3498 # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if test -n "$ac_ct_CC"; then
3506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_ac_ct_CC="gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3519 done
3520 done
3521 IFS=$as_save_IFS
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3534 if test "x$ac_ct_CC" = x; then
3535 CC=""
3536 else
3537 case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543 CC=$ac_ct_CC
3545 else
3546 CC="$ac_cv_prog_CC"
3549 if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}cc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC="${ac_tool_prefix}cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3590 if test -z "$CC"; then
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 ac_prog_rejected=no
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610 ac_prog_rejected=yes
3611 continue
3613 ac_cv_prog_CC="cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy $ac_cv_prog_CC
3624 shift
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3629 shift
3630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog in cl.exe
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3673 IFS=$as_save_IFS
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$CC" && break
3688 done
3690 if test -z "$CC"; then
3691 ac_ct_CC=$CC
3692 for ac_prog in cl.exe
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_ac_ct_CC="$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3717 IFS=$as_save_IFS
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$ac_ct_CC" && break
3732 done
3734 if test "x$ac_ct_CC" = x; then
3735 CC=""
3736 else
3737 case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743 CC=$ac_ct_CC
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3757 set X $ac_compile
3758 ac_compiler=$2
3759 for ac_option in --version -v -V -qversion; do
3760 { { ac_try="$ac_compiler $ac_option >&5"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3768 ac_status=$?
3769 if test -s conftest.err; then
3770 sed '10a\
3771 ... rest of stderr output deleted ...
3772 10q' conftest.err >conftest.er1
3773 cat conftest.er1 >&5
3774 rm -f conftest.er1 conftest.err
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3778 done
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3784 main ()
3788 return 0;
3790 _ACEOF
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3795 # of exeext.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797 $as_echo_n "checking for C compiler default output file name... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3803 ac_rmfiles=
3804 for ac_file in $ac_files
3806 case $ac_file in
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3809 esac
3810 done
3811 rm -f $ac_rmfiles
3813 if { { ac_try="$ac_link_default"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link_default") 2>&5
3821 ac_status=$?
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3828 # Autoconf.
3829 for ac_file in $ac_files ''
3831 test -f "$ac_file" || continue
3832 case $ac_file in
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3835 [ab].out )
3836 # We found the default executable, but exeext='' is most
3837 # certainly right.
3838 break;;
3839 *.* )
3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3841 then :; else
3842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an `-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3848 # actually working.
3849 break;;
3851 break;;
3852 esac
3853 done
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3856 else
3857 ac_file=''
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 if test -z "$ac_file"; then :
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status 77
3868 as_fn_error "C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3871 ac_exeext=$ac_cv_exeext
3873 # Check that the compiler produces executables we can run. If not, either
3874 # the compiler is broken, or we cross compile.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 # If not cross compiling, check that we can run a simple program.
3878 if test "$cross_compiling" != yes; then
3879 if { ac_try='./$ac_file'
3880 { { case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883 esac
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886 (eval "$ac_try") 2>&5
3887 ac_status=$?
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; }; then
3890 cross_compiling=no
3891 else
3892 if test "$cross_compiling" = maybe; then
3893 cross_compiling=yes
3894 else
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error "cannot run C compiled programs.
3898 If you meant to cross compile, use \`--host'.
3899 See \`config.log' for more details." "$LINENO" 5; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3907 ac_clean_files=$ac_clean_files_save
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916 $as_echo_n "checking for suffix of executables... " >&6; }
3917 if { { ac_try="$ac_link"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; then :
3928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3929 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3930 # work properly (i.e., refer to `conftest.exe'), while it won't with
3931 # `rm'.
3932 for ac_file in conftest.exe conftest conftest.*; do
3933 test -f "$ac_file" || continue
3934 case $ac_file in
3935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937 break;;
3938 * ) break;;
3939 esac
3940 done
3941 else
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error "cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3947 rm -f conftest$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949 $as_echo "$ac_cv_exeext" >&6; }
3951 rm -f conftest.$ac_ext
3952 EXEEXT=$ac_cv_exeext
3953 ac_exeext=$EXEEXT
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3963 main ()
3967 return 0;
3969 _ACEOF
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_compile") 2>&5
3979 ac_status=$?
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 for ac_file in conftest.o conftest.obj conftest.*; do
3983 test -f "$ac_file" || continue;
3984 case $ac_file in
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3987 break;;
3988 esac
3989 done
3990 else
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error "cannot compute suffix of object files: cannot compile
3997 See \`config.log' for more details." "$LINENO" 5; }
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4004 ac_objext=$OBJEXT
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4014 main ()
4016 #ifndef __GNUC__
4017 choke me
4018 #endif
4021 return 0;
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_compiler_gnu=yes
4026 else
4027 ac_compiler_gnu=no
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4036 GCC=yes
4037 else
4038 GCC=
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 ac_save_c_werror_flag=$ac_c_werror_flag
4048 ac_c_werror_flag=yes
4049 ac_cv_prog_cc_g=no
4050 CFLAGS="-g"
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4055 main ()
4059 return 0;
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_prog_cc_g=yes
4064 else
4065 CFLAGS=""
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4070 main ()
4074 return 0;
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4079 else
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4081 CFLAGS="-g"
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_prog_cc_g=yes
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_c_werror_flag=$ac_save_c_werror_flag
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106 CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108 if test "$GCC" = yes; then
4109 CFLAGS="-g -O2"
4110 else
4111 CFLAGS="-g"
4113 else
4114 if test "$GCC" = yes; then
4115 CFLAGS="-O2"
4116 else
4117 CFLAGS=
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 ac_cv_prog_cc_c89=no
4126 ac_save_CC=$CC
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129 #include <stdarg.h>
4130 #include <stdio.h>
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4137 char **p;
4138 int i;
4140 return p[i];
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4144 char *s;
4145 va_list v;
4146 va_start (v,p);
4147 s = g (p, va_arg (v,int));
4148 va_end (v);
4149 return s;
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4153 function prototypes and stuff, but not '\xHH' hex character constants.
4154 These don't provoke an error unfortunately, instead are silently treated
4155 as 'x'. The following induces an error, until -std is added to get
4156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4157 array size at least. It's necessary to write '\x00'==0 to get something
4158 that's true only with -std. */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162 inside strings and character constants. */
4163 #define FOO(x) 'x'
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170 int argc;
4171 char **argv;
4173 main ()
4175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4177 return 0;
4179 _ACEOF
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183 CC="$ac_save_CC $ac_arg"
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_c89=$ac_arg
4187 rm -f core conftest.err conftest.$ac_objext
4188 test "x$ac_cv_prog_cc_c89" != "xno" && break
4189 done
4190 rm -f conftest.$ac_ext
4191 CC=$ac_save_CC
4194 # AC_CACHE_VAL
4195 case "x$ac_cv_prog_cc_c89" in
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4199 xno)
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4203 CC="$CC $ac_cv_prog_cc_c89"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206 esac
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 if test "x$CC" != xcc; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4219 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4222 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4224 set dummy $CC; ac_cc=`$as_echo "$2" |
4225 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4233 main ()
4237 return 0;
4239 _ACEOF
4240 # Make sure it works both with $CC and with simple cc.
4241 # We do the test twice because some compilers refuse to overwrite an
4242 # existing .o file with -o, though they will create one.
4243 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4244 rm -f conftest2.*
4245 if { { case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; } &&
4255 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_try") 2>&5
4262 ac_status=$?
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; };
4265 then
4266 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4267 if test "x$CC" != xcc; then
4268 # Test first that cc exists at all.
4269 if { ac_try='cc -c conftest.$ac_ext >&5'
4270 { { case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276 (eval "$ac_try") 2>&5
4277 ac_status=$?
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }; }; then
4280 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 rm -f conftest2.*
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4302 then
4303 # cc works too.
4305 else
4306 # cc exists but doesn't like -o.
4307 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4311 else
4312 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4314 rm -f core conftest*
4317 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4324 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4328 # expand $ac_aux_dir to an absolute path
4329 am_aux_dir=`cd $ac_aux_dir && pwd`
4331 # FIXME: we rely on the cache variable name because
4332 # there is no other way.
4333 set dummy $CC
4334 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4336 if test "$am_t" != yes; then
4337 # Losing compiler, so override with the script.
4338 # FIXME: It is wrong to rewrite CC.
4339 # But if we don't then we get into trouble of one sort or another.
4340 # A longer-term fix would be to have automake use am__CC in this case,
4341 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4342 CC="$am_aux_dir/compile $CC"
4346 ac_ext=cpp
4347 ac_cpp='$CXXCPP $CPPFLAGS'
4348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352 if test -n "$CCC"; then
4353 CXX=$CCC
4354 else
4355 if test -n "$ac_tool_prefix"; then
4356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CXX+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -n "$CXX"; then
4366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4379 done
4380 done
4381 IFS=$as_save_IFS
4385 CXX=$ac_cv_prog_CXX
4386 if test -n "$CXX"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4389 else
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4395 test -n "$CXX" && break
4396 done
4398 if test -z "$CXX"; then
4399 ac_ct_CXX=$CXX
4400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4402 # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -n "$ac_ct_CXX"; then
4410 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_ac_ct_CXX="$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4423 done
4424 done
4425 IFS=$as_save_IFS
4429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4439 test -n "$ac_ct_CXX" && break
4440 done
4442 if test "x$ac_ct_CXX" = x; then
4443 CXX="g++"
4444 else
4445 case $cross_compiling:$ac_tool_warned in
4446 yes:)
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4450 esac
4451 CXX=$ac_ct_CXX
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4459 set X $ac_compile
4460 ac_compiler=$2
4461 for ac_option in --version -v -V -qversion; do
4462 { { ac_try="$ac_compiler $ac_option >&5"
4463 case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4470 ac_status=$?
4471 if test -s conftest.err; then
4472 sed '10a\
4473 ... rest of stderr output deleted ...
4474 10q' conftest.err >conftest.er1
4475 cat conftest.er1 >&5
4476 rm -f conftest.er1 conftest.err
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }
4480 done
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4491 main ()
4493 #ifndef __GNUC__
4494 choke me
4495 #endif
4498 return 0;
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 ac_compiler_gnu=yes
4503 else
4504 ac_compiler_gnu=no
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4513 GXX=yes
4514 else
4515 GXX=
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525 ac_cxx_werror_flag=yes
4526 ac_cv_prog_cxx_g=no
4527 CXXFLAGS="-g"
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4532 main ()
4536 return 0;
4538 _ACEOF
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540 ac_cv_prog_cxx_g=yes
4541 else
4542 CXXFLAGS=""
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4547 main ()
4551 return 0;
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4556 else
4557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4558 CXXFLAGS="-g"
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4563 main ()
4567 return 0;
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 ac_cv_prog_cxx_g=yes
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583 CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585 if test "$GXX" = yes; then
4586 CXXFLAGS="-g -O2"
4587 else
4588 CXXFLAGS="-g"
4590 else
4591 if test "$GXX" = yes; then
4592 CXXFLAGS="-O2"
4593 else
4594 CXXFLAGS=
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -n "$GNATBIND"; then
4615 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4628 done
4629 done
4630 IFS=$as_save_IFS
4634 GNATBIND=$ac_cv_prog_GNATBIND
4635 if test -n "$GNATBIND"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4637 $as_echo "$GNATBIND" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4645 if test -z "$ac_cv_prog_GNATBIND"; then
4646 ac_ct_GNATBIND=$GNATBIND
4647 # Extract the first word of "gnatbind", so it can be a program name with args.
4648 set dummy gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$ac_ct_GNATBIND"; then
4655 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4675 if test -n "$ac_ct_GNATBIND"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4677 $as_echo "$ac_ct_GNATBIND" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4683 if test "x$ac_ct_GNATBIND" = x; then
4684 GNATBIND="no"
4685 else
4686 case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4691 esac
4692 GNATBIND=$ac_ct_GNATBIND
4694 else
4695 GNATBIND="$ac_cv_prog_GNATBIND"
4698 if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$GNATMAKE"; then
4707 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4720 done
4721 done
4722 IFS=$as_save_IFS
4726 GNATMAKE=$ac_cv_prog_GNATMAKE
4727 if test -n "$GNATMAKE"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4729 $as_echo "$GNATMAKE" >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4737 if test -z "$ac_cv_prog_GNATMAKE"; then
4738 ac_ct_GNATMAKE=$GNATMAKE
4739 # Extract the first word of "gnatmake", so it can be a program name with args.
4740 set dummy gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$ac_ct_GNATMAKE"; then
4747 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4762 IFS=$as_save_IFS
4766 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4767 if test -n "$ac_ct_GNATMAKE"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4769 $as_echo "$ac_ct_GNATMAKE" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4775 if test "x$ac_ct_GNATMAKE" = x; then
4776 GNATMAKE="no"
4777 else
4778 case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784 GNATMAKE=$ac_ct_GNATMAKE
4786 else
4787 GNATMAKE="$ac_cv_prog_GNATMAKE"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4791 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4792 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 cat >conftest.adb <<EOF
4796 procedure conftest is begin null; end conftest;
4798 acx_cv_cc_gcc_supports_ada=no
4799 # There is a bug in old released versions of GCC which causes the
4800 # driver to exit successfully when the appropriate language module
4801 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4802 # Therefore we must check for the error message as well as an
4803 # unsuccessful exit.
4804 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4805 # given a .adb file, but produce no object file. So we must check
4806 # if an object file was really produced to guard against this.
4807 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4808 if test x"$errors" = x && test -f conftest.$ac_objext; then
4809 acx_cv_cc_gcc_supports_ada=yes
4811 rm -f conftest.*
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4814 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4816 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4817 have_gnat=yes
4818 else
4819 have_gnat=no
4823 # autoconf is lame and doesn't give us any substitution variable for this.
4824 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4825 NO_MINUS_C_MINUS_O=yes
4826 else
4827 OUTPUT_OPTION='-o $@'
4832 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4833 # optimizations to be activated explicitly by the toplevel.
4834 case "$CC" in
4835 */prev-gcc/xgcc*) ;;
4836 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4837 esac
4840 # -------------------------
4841 # Check C compiler features
4842 # -------------------------
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4851 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4852 # On Suns, sometimes $CPP names a directory.
4853 if test -n "$CPP" && test -d "$CPP"; then
4854 CPP=
4856 if test -z "$CPP"; then
4857 if test "${ac_cv_prog_CPP+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 # Double quotes because CPP needs to be expanded
4861 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4863 ac_preproc_ok=false
4864 for ac_c_preproc_warn_flag in '' yes
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869 # <limits.h> exists even on freestanding compilers.
4870 # On the NeXT, cc -E runs the code through the compiler's parser,
4871 # not just through cpp. "Syntax error" is here to catch this case.
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879 Syntax error
4880 _ACEOF
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4883 else
4884 # Broken: fails on valid input.
4885 continue
4887 rm -f conftest.err conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896 # Broken: success on invalid input.
4897 continue
4898 else
4899 # Passes both tests.
4900 ac_preproc_ok=:
4901 break
4903 rm -f conftest.err conftest.$ac_ext
4905 done
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4909 break
4912 done
4913 ac_cv_prog_CPP=$CPP
4916 CPP=$ac_cv_prog_CPP
4917 else
4918 ac_cv_prog_CPP=$CPP
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4921 $as_echo "$CPP" >&6; }
4922 ac_preproc_ok=false
4923 for ac_c_preproc_warn_flag in '' yes
4925 # Use a header file that comes with gcc, so configuring glibc
4926 # with a fresh cross-compiler works.
4927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928 # <limits.h> exists even on freestanding compilers.
4929 # On the NeXT, cc -E runs the code through the compiler's parser,
4930 # not just through cpp. "Syntax error" is here to catch this case.
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938 Syntax error
4939 _ACEOF
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4942 else
4943 # Broken: fails on valid input.
4944 continue
4946 rm -f conftest.err conftest.$ac_ext
4948 # OK, works on sane cases. Now check whether nonexistent headers
4949 # can be detected and how.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4953 _ACEOF
4954 if ac_fn_c_try_cpp "$LINENO"; then :
4955 # Broken: success on invalid input.
4956 continue
4957 else
4958 # Passes both tests.
4959 ac_preproc_ok=:
4960 break
4962 rm -f conftest.err conftest.$ac_ext
4964 done
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.$ac_ext
4967 if $ac_preproc_ok; then :
4969 else
4970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." "$LINENO" 5; }
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4985 if test "${ac_cv_path_GREP+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -z "$GREP"; then
4989 ac_path_GREP_found=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_prog in grep ggrep; do
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4999 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5000 # Check for GNU ac_path_GREP and select it if it is found.
5001 # Check for GNU $ac_path_GREP
5002 case `"$ac_path_GREP" --version 2>&1` in
5003 *GNU*)
5004 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5006 ac_count=0
5007 $as_echo_n 0123456789 >"conftest.in"
5008 while :
5010 cat "conftest.in" "conftest.in" >"conftest.tmp"
5011 mv "conftest.tmp" "conftest.in"
5012 cp "conftest.in" "conftest.nl"
5013 $as_echo 'GREP' >> "conftest.nl"
5014 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016 as_fn_arith $ac_count + 1 && ac_count=$as_val
5017 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5018 # Best one so far, save it but keep looking for a better one
5019 ac_cv_path_GREP="$ac_path_GREP"
5020 ac_path_GREP_max=$ac_count
5022 # 10*(2^10) chars as input seems more than enough
5023 test $ac_count -gt 10 && break
5024 done
5025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5026 esac
5028 $ac_path_GREP_found && break 3
5029 done
5030 done
5031 done
5032 IFS=$as_save_IFS
5033 if test -z "$ac_cv_path_GREP"; then
5034 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5036 else
5037 ac_cv_path_GREP=$GREP
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5042 $as_echo "$ac_cv_path_GREP" >&6; }
5043 GREP="$ac_cv_path_GREP"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5047 $as_echo_n "checking for egrep... " >&6; }
5048 if test "${ac_cv_path_EGREP+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5052 then ac_cv_path_EGREP="$GREP -E"
5053 else
5054 if test -z "$EGREP"; then
5055 ac_path_EGREP_found=false
5056 # Loop through the user's path and test for each of PROGNAME-LIST
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_prog in egrep; do
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5065 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5066 # Check for GNU ac_path_EGREP and select it if it is found.
5067 # Check for GNU $ac_path_EGREP
5068 case `"$ac_path_EGREP" --version 2>&1` in
5069 *GNU*)
5070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5072 ac_count=0
5073 $as_echo_n 0123456789 >"conftest.in"
5074 while :
5076 cat "conftest.in" "conftest.in" >"conftest.tmp"
5077 mv "conftest.tmp" "conftest.in"
5078 cp "conftest.in" "conftest.nl"
5079 $as_echo 'EGREP' >> "conftest.nl"
5080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5082 as_fn_arith $ac_count + 1 && ac_count=$as_val
5083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5084 # Best one so far, save it but keep looking for a better one
5085 ac_cv_path_EGREP="$ac_path_EGREP"
5086 ac_path_EGREP_max=$ac_count
5088 # 10*(2^10) chars as input seems more than enough
5089 test $ac_count -gt 10 && break
5090 done
5091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5092 esac
5094 $ac_path_EGREP_found && break 3
5095 done
5096 done
5097 done
5098 IFS=$as_save_IFS
5099 if test -z "$ac_cv_path_EGREP"; then
5100 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5102 else
5103 ac_cv_path_EGREP=$EGREP
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5109 $as_echo "$ac_cv_path_EGREP" >&6; }
5110 EGREP="$ac_cv_path_EGREP"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5114 $as_echo_n "checking for ANSI C header files... " >&6; }
5115 if test "${ac_cv_header_stdc+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120 #include <stdlib.h>
5121 #include <stdarg.h>
5122 #include <string.h>
5123 #include <float.h>
5126 main ()
5130 return 0;
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_header_stdc=yes
5135 else
5136 ac_cv_header_stdc=no
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 if test $ac_cv_header_stdc = yes; then
5141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <string.h>
5146 _ACEOF
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148 $EGREP "memchr" >/dev/null 2>&1; then :
5150 else
5151 ac_cv_header_stdc=no
5153 rm -f conftest*
5157 if test $ac_cv_header_stdc = yes; then
5158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #include <stdlib.h>
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "free" >/dev/null 2>&1; then :
5167 else
5168 ac_cv_header_stdc=no
5170 rm -f conftest*
5174 if test $ac_cv_header_stdc = yes; then
5175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5176 if test "$cross_compiling" = yes; then :
5178 else
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 #include <ctype.h>
5182 #include <stdlib.h>
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5186 #else
5187 # define ISLOWER(c) \
5188 (('a' <= (c) && (c) <= 'i') \
5189 || ('j' <= (c) && (c) <= 'r') \
5190 || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5192 #endif
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5196 main ()
5198 int i;
5199 for (i = 0; i < 256; i++)
5200 if (XOR (islower (i), ISLOWER (i))
5201 || toupper (i) != TOUPPER (i))
5202 return 2;
5203 return 0;
5205 _ACEOF
5206 if ac_fn_c_try_run "$LINENO"; then :
5208 else
5209 ac_cv_header_stdc=no
5211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5212 conftest.$ac_objext conftest.beam conftest.$ac_ext
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5218 $as_echo "$ac_cv_header_stdc" >&6; }
5219 if test $ac_cv_header_stdc = yes; then
5221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5227 inttypes.h stdint.h unistd.h
5228 do :
5229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5232 eval as_val=\$$as_ac_Header
5233 if test "x$as_val" = x""yes; then :
5234 cat >>confdefs.h <<_ACEOF
5235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 _ACEOF
5240 done
5244 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5246 MINIX=yes
5247 else
5248 MINIX=
5252 if test "$MINIX" = yes; then
5254 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5257 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5260 $as_echo "#define _MINIX 1" >>confdefs.h
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5266 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5267 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5273 # define __EXTENSIONS__ 1
5274 $ac_includes_default
5276 main ()
5280 return 0;
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 ac_cv_safe_to_define___extensions__=yes
5285 else
5286 ac_cv_safe_to_define___extensions__=no
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5291 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5292 test $ac_cv_safe_to_define___extensions__ = yes &&
5293 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5295 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5297 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5299 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5301 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5313 CPP=
5315 if test -z "$CPP"; then
5316 if test "${ac_cv_prog_CPP+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 # Double quotes because CPP needs to be expanded
5320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5322 ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #ifdef __STDC__
5334 # include <limits.h>
5335 #else
5336 # include <assert.h>
5337 #endif
5338 Syntax error
5339 _ACEOF
5340 if ac_fn_c_try_cpp "$LINENO"; then :
5342 else
5343 # Broken: fails on valid input.
5344 continue
5346 rm -f conftest.err conftest.$ac_ext
5348 # OK, works on sane cases. Now check whether nonexistent headers
5349 # can be detected and how.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <ac_nonexistent.h>
5353 _ACEOF
5354 if ac_fn_c_try_cpp "$LINENO"; then :
5355 # Broken: success on invalid input.
5356 continue
5357 else
5358 # Passes both tests.
5359 ac_preproc_ok=:
5360 break
5362 rm -f conftest.err conftest.$ac_ext
5364 done
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.$ac_ext
5367 if $ac_preproc_ok; then :
5368 break
5371 done
5372 ac_cv_prog_CPP=$CPP
5375 CPP=$ac_cv_prog_CPP
5376 else
5377 ac_cv_prog_CPP=$CPP
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5380 $as_echo "$CPP" >&6; }
5381 ac_preproc_ok=false
5382 for ac_c_preproc_warn_flag in '' yes
5384 # Use a header file that comes with gcc, so configuring glibc
5385 # with a fresh cross-compiler works.
5386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387 # <limits.h> exists even on freestanding compilers.
5388 # On the NeXT, cc -E runs the code through the compiler's parser,
5389 # not just through cpp. "Syntax error" is here to catch this case.
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 #ifdef __STDC__
5393 # include <limits.h>
5394 #else
5395 # include <assert.h>
5396 #endif
5397 Syntax error
5398 _ACEOF
5399 if ac_fn_c_try_cpp "$LINENO"; then :
5401 else
5402 # Broken: fails on valid input.
5403 continue
5405 rm -f conftest.err conftest.$ac_ext
5407 # OK, works on sane cases. Now check whether nonexistent headers
5408 # can be detected and how.
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #include <ac_nonexistent.h>
5412 _ACEOF
5413 if ac_fn_c_try_cpp "$LINENO"; then :
5414 # Broken: success on invalid input.
5415 continue
5416 else
5417 # Passes both tests.
5418 ac_preproc_ok=:
5419 break
5421 rm -f conftest.err conftest.$ac_ext
5423 done
5424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5425 rm -f conftest.err conftest.$ac_ext
5426 if $ac_preproc_ok; then :
5428 else
5429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5431 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." "$LINENO" 5; }
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5442 $as_echo_n "checking for inline... " >&6; }
5443 if test "${ac_cv_c_inline+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 ac_cv_c_inline=no
5447 for ac_kw in inline __inline__ __inline; do
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #ifndef __cplusplus
5451 typedef int foo_t;
5452 static $ac_kw foo_t static_foo () {return 0; }
5453 $ac_kw foo_t foo () {return 0; }
5454 #endif
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 ac_cv_c_inline=$ac_kw
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 test "$ac_cv_c_inline" != no && break
5462 done
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5466 $as_echo "$ac_cv_c_inline" >&6; }
5468 case $ac_cv_c_inline in
5469 inline | yes) ;;
5471 case $ac_cv_c_inline in
5472 no) ac_val=;;
5473 *) ac_val=$ac_cv_c_inline;;
5474 esac
5475 cat >>confdefs.h <<_ACEOF
5476 #ifndef __cplusplus
5477 #define inline $ac_val
5478 #endif
5479 _ACEOF
5481 esac
5484 # sizeof(char) is 1 by definition.
5485 # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5490 $as_echo_n "checking size of void *... " >&6; }
5491 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5496 else
5497 if test "$ac_cv_type_void_p" = yes; then
5498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 { as_fn_set_status 77
5501 as_fn_error "cannot compute sizeof (void *)
5502 See \`config.log' for more details." "$LINENO" 5; }; }
5503 else
5504 ac_cv_sizeof_void_p=0
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5514 cat >>confdefs.h <<_ACEOF
5515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5516 _ACEOF
5519 # The cast to long int works around a bug in the HP C Compiler
5520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5522 # This bug is HP SR number 8606223364.
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5524 $as_echo_n "checking size of short... " >&6; }
5525 if test "${ac_cv_sizeof_short+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5530 else
5531 if test "$ac_cv_type_short" = yes; then
5532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 { as_fn_set_status 77
5535 as_fn_error "cannot compute sizeof (short)
5536 See \`config.log' for more details." "$LINENO" 5; }; }
5537 else
5538 ac_cv_sizeof_short=0
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5544 $as_echo "$ac_cv_sizeof_short" >&6; }
5548 cat >>confdefs.h <<_ACEOF
5549 #define SIZEOF_SHORT $ac_cv_sizeof_short
5550 _ACEOF
5553 # The cast to long int works around a bug in the HP C Compiler
5554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5556 # This bug is HP SR number 8606223364.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5558 $as_echo_n "checking size of int... " >&6; }
5559 if test "${ac_cv_sizeof_int+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5564 else
5565 if test "$ac_cv_type_int" = yes; then
5566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 { as_fn_set_status 77
5569 as_fn_error "cannot compute sizeof (int)
5570 See \`config.log' for more details." "$LINENO" 5; }; }
5571 else
5572 ac_cv_sizeof_int=0
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5578 $as_echo "$ac_cv_sizeof_int" >&6; }
5582 cat >>confdefs.h <<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5584 _ACEOF
5587 # The cast to long int works around a bug in the HP C Compiler
5588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5590 # This bug is HP SR number 8606223364.
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5592 $as_echo_n "checking size of long... " >&6; }
5593 if test "${ac_cv_sizeof_long+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5598 else
5599 if test "$ac_cv_type_long" = yes; then
5600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602 { as_fn_set_status 77
5603 as_fn_error "cannot compute sizeof (long)
5604 See \`config.log' for more details." "$LINENO" 5; }; }
5605 else
5606 ac_cv_sizeof_long=0
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5612 $as_echo "$ac_cv_sizeof_long" >&6; }
5616 cat >>confdefs.h <<_ACEOF
5617 #define SIZEOF_LONG $ac_cv_sizeof_long
5618 _ACEOF
5621 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5622 if test "x$ac_cv_type_long_long" = x""yes; then :
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_LONG_LONG 1
5626 _ACEOF
5628 # The cast to long int works around a bug in the HP C Compiler
5629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5631 # This bug is HP SR number 8606223364.
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5633 $as_echo_n "checking size of long long... " >&6; }
5634 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5639 else
5640 if test "$ac_cv_type_long_long" = yes; then
5641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 { as_fn_set_status 77
5644 as_fn_error "cannot compute sizeof (long long)
5645 See \`config.log' for more details." "$LINENO" 5; }; }
5646 else
5647 ac_cv_sizeof_long_long=0
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5653 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5657 cat >>confdefs.h <<_ACEOF
5658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5659 _ACEOF
5664 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5665 if test "x$ac_cv_type___int64" = x""yes; then :
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE___INT64 1
5669 _ACEOF
5671 # The cast to long int works around a bug in the HP C Compiler
5672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5674 # This bug is HP SR number 8606223364.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5676 $as_echo_n "checking size of __int64... " >&6; }
5677 if test "${ac_cv_sizeof___int64+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5682 else
5683 if test "$ac_cv_type___int64" = yes; then
5684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686 { as_fn_set_status 77
5687 as_fn_error "cannot compute sizeof (__int64)
5688 See \`config.log' for more details." "$LINENO" 5; }; }
5689 else
5690 ac_cv_sizeof___int64=0
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5696 $as_echo "$ac_cv_sizeof___int64" >&6; }
5700 cat >>confdefs.h <<_ACEOF
5701 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5702 _ACEOF
5707 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5708 case $ac_cv_c_int8_t in #(
5709 no|yes) ;; #(
5712 cat >>confdefs.h <<_ACEOF
5713 #define int8_t $ac_cv_c_int8_t
5714 _ACEOF
5716 esac
5718 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5719 case $ac_cv_c_int16_t in #(
5720 no|yes) ;; #(
5723 cat >>confdefs.h <<_ACEOF
5724 #define int16_t $ac_cv_c_int16_t
5725 _ACEOF
5727 esac
5729 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5730 case $ac_cv_c_int32_t in #(
5731 no|yes) ;; #(
5734 cat >>confdefs.h <<_ACEOF
5735 #define int32_t $ac_cv_c_int32_t
5736 _ACEOF
5738 esac
5740 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5741 case $ac_cv_c_int64_t in #(
5742 no|yes) ;; #(
5745 cat >>confdefs.h <<_ACEOF
5746 #define int64_t $ac_cv_c_int64_t
5747 _ACEOF
5749 esac
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5753 $as_echo_n "checking for long long int... " >&6; }
5754 if test "${ac_cv_type_long_long_int+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5760 /* For now, do not test the preprocessor; as of 2007 there are too many
5761 implementations with broken preprocessors. Perhaps this can
5762 be revisited in 2012. In the meantime, code should not expect
5763 #if to work with literals wider than 32 bits. */
5764 /* Test literals. */
5765 long long int ll = 9223372036854775807ll;
5766 long long int nll = -9223372036854775807LL;
5767 unsigned long long int ull = 18446744073709551615ULL;
5768 /* Test constant expressions. */
5769 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5770 ? 1 : -1)];
5771 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5772 ? 1 : -1)];
5773 int i = 63;
5775 main ()
5777 /* Test availability of runtime routines for shift and division. */
5778 long long int llmax = 9223372036854775807ll;
5779 unsigned long long int ullmax = 18446744073709551615ull;
5780 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5781 | (llmax / ll) | (llmax % ll)
5782 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5783 | (ullmax / ull) | (ullmax % ull));
5785 return 0;
5788 _ACEOF
5789 if ac_fn_c_try_link "$LINENO"; then :
5790 if test "$cross_compiling" = yes; then :
5791 ac_cv_type_long_long_int=yes
5792 else
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 #include <limits.h>
5796 #ifndef LLONG_MAX
5797 # define HALF \
5798 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5799 # define LLONG_MAX (HALF - 1 + HALF)
5800 #endif
5802 main ()
5804 long long int n = 1;
5805 int i;
5806 for (i = 0; ; i++)
5808 long long int m = n << i;
5809 if (m >> i != n)
5810 return 1;
5811 if (LLONG_MAX / 2 < m)
5812 break;
5814 return 0;
5816 return 0;
5818 _ACEOF
5819 if ac_fn_c_try_run "$LINENO"; then :
5820 ac_cv_type_long_long_int=yes
5821 else
5822 ac_cv_type_long_long_int=no
5824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5825 conftest.$ac_objext conftest.beam conftest.$ac_ext
5828 else
5829 ac_cv_type_long_long_int=no
5831 rm -f core conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5835 $as_echo "$ac_cv_type_long_long_int" >&6; }
5836 if test $ac_cv_type_long_long_int = yes; then
5838 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5844 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5845 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5847 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5849 else
5850 test $ac_cv_type_long_long_int = yes \
5851 && ac_type='long long int' \
5852 || ac_type='long int'
5854 cat >>confdefs.h <<_ACEOF
5855 #define intmax_t $ac_type
5856 _ACEOF
5862 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5863 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5865 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5867 else
5868 for ac_type in 'int' 'long int' 'long long int'; do
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 $ac_includes_default
5873 main ()
5875 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5876 test_array [0] = 0
5879 return 0;
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5884 cat >>confdefs.h <<_ACEOF
5885 #define intptr_t $ac_type
5886 _ACEOF
5888 ac_type=
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 test -z "$ac_type" && break
5892 done
5896 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5897 case $ac_cv_c_uint8_t in #(
5898 no|yes) ;; #(
5901 $as_echo "#define _UINT8_T 1" >>confdefs.h
5904 cat >>confdefs.h <<_ACEOF
5905 #define uint8_t $ac_cv_c_uint8_t
5906 _ACEOF
5908 esac
5910 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5911 case $ac_cv_c_uint16_t in #(
5912 no|yes) ;; #(
5916 cat >>confdefs.h <<_ACEOF
5917 #define uint16_t $ac_cv_c_uint16_t
5918 _ACEOF
5920 esac
5922 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5923 case $ac_cv_c_uint32_t in #(
5924 no|yes) ;; #(
5927 $as_echo "#define _UINT32_T 1" >>confdefs.h
5930 cat >>confdefs.h <<_ACEOF
5931 #define uint32_t $ac_cv_c_uint32_t
5932 _ACEOF
5934 esac
5936 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5937 case $ac_cv_c_uint64_t in #(
5938 no|yes) ;; #(
5941 $as_echo "#define _UINT64_T 1" >>confdefs.h
5944 cat >>confdefs.h <<_ACEOF
5945 #define uint64_t $ac_cv_c_uint64_t
5946 _ACEOF
5948 esac
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5952 $as_echo_n "checking for unsigned long long int... " >&6; }
5953 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5959 /* For now, do not test the preprocessor; as of 2007 there are too many
5960 implementations with broken preprocessors. Perhaps this can
5961 be revisited in 2012. In the meantime, code should not expect
5962 #if to work with literals wider than 32 bits. */
5963 /* Test literals. */
5964 long long int ll = 9223372036854775807ll;
5965 long long int nll = -9223372036854775807LL;
5966 unsigned long long int ull = 18446744073709551615ULL;
5967 /* Test constant expressions. */
5968 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5969 ? 1 : -1)];
5970 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5971 ? 1 : -1)];
5972 int i = 63;
5974 main ()
5976 /* Test availability of runtime routines for shift and division. */
5977 long long int llmax = 9223372036854775807ll;
5978 unsigned long long int ullmax = 18446744073709551615ull;
5979 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5980 | (llmax / ll) | (llmax % ll)
5981 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5982 | (ullmax / ull) | (ullmax % ull));
5984 return 0;
5987 _ACEOF
5988 if ac_fn_c_try_link "$LINENO"; then :
5989 ac_cv_type_unsigned_long_long_int=yes
5990 else
5991 ac_cv_type_unsigned_long_long_int=no
5993 rm -f core conftest.err conftest.$ac_objext \
5994 conftest$ac_exeext conftest.$ac_ext
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5997 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5998 if test $ac_cv_type_unsigned_long_long_int = yes; then
6000 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6006 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6007 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6009 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6011 else
6012 test $ac_cv_type_unsigned_long_long_int = yes \
6013 && ac_type='unsigned long long int' \
6014 || ac_type='unsigned long int'
6016 cat >>confdefs.h <<_ACEOF
6017 #define uintmax_t $ac_type
6018 _ACEOF
6024 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6025 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6027 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6029 else
6030 for ac_type in 'unsigned int' 'unsigned long int' \
6031 'unsigned long long int'; do
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 $ac_includes_default
6036 main ()
6038 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6039 test_array [0] = 0
6042 return 0;
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6047 cat >>confdefs.h <<_ACEOF
6048 #define uintptr_t $ac_type
6049 _ACEOF
6051 ac_type=
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 test -z "$ac_type" && break
6055 done
6072 # ---------------------
6073 # Warnings and checking
6074 # ---------------------
6076 # Check $CC warning features (if it's GCC).
6077 # We want to use -pedantic, but we don't want warnings about
6078 # * 'long long'
6079 # * variadic macros
6080 # * overlong strings
6081 # So, we only use -pedantic if we can disable those warnings.
6083 loose_warn=
6084 save_CFLAGS="$CFLAGS"
6085 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6086 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6089 $as_echo_n "checking whether $CC supports $option... " >&6; }
6090 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 CFLAGS="$option"
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6098 main ()
6102 return 0;
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"; then :
6106 eval "$as_acx_Woption=yes"
6107 else
6108 eval "$as_acx_Woption=no"
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 eval ac_res=\$$as_acx_Woption
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6115 $as_echo "$ac_res" >&6; }
6116 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6117 loose_warn="$loose_warn${loose_warn:+ }$option"
6119 done
6120 CFLAGS="$save_CFLAGS"
6122 c_loose_warn=
6123 save_CFLAGS="$CFLAGS"
6124 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6125 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6128 $as_echo_n "checking whether $CC supports $option... " >&6; }
6129 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 CFLAGS="$option"
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6137 main ()
6141 return 0;
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145 eval "$as_acx_Woption=yes"
6146 else
6147 eval "$as_acx_Woption=no"
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 eval ac_res=\$$as_acx_Woption
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6154 $as_echo "$ac_res" >&6; }
6155 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6156 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6158 done
6159 CFLAGS="$save_CFLAGS"
6161 strict_warn=
6162 save_CFLAGS="$CFLAGS"
6163 for option in -Wmissing-format-attribute; do
6164 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6167 $as_echo_n "checking whether $CC supports $option... " >&6; }
6168 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 CFLAGS="$option"
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6176 main ()
6180 return 0;
6182 _ACEOF
6183 if ac_fn_c_try_compile "$LINENO"; then :
6184 eval "$as_acx_Woption=yes"
6185 else
6186 eval "$as_acx_Woption=no"
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 eval ac_res=\$$as_acx_Woption
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6193 $as_echo "$ac_res" >&6; }
6194 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6195 strict_warn="$strict_warn${strict_warn:+ }$option"
6197 done
6198 CFLAGS="$save_CFLAGS"
6200 c_strict_warn=
6201 save_CFLAGS="$CFLAGS"
6202 for option in -Wold-style-definition -Wc++-compat; do
6203 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6206 $as_echo_n "checking whether $CC supports $option... " >&6; }
6207 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 CFLAGS="$option"
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6215 main ()
6219 return 0;
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223 eval "$as_acx_Woption=yes"
6224 else
6225 eval "$as_acx_Woption=no"
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 eval ac_res=\$$as_acx_Woption
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6232 $as_echo "$ac_res" >&6; }
6233 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6234 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6236 done
6237 CFLAGS="$save_CFLAGS"
6239 if test "$GCC" = yes; then :
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6241 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6242 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 save_CFLAGS="$CFLAGS"
6246 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6251 main ()
6255 return 0;
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"; then :
6259 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6260 else
6261 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 CFLAGS="$save_CFLAGS"
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6267 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6268 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6269 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6274 # Check whether --enable-werror-always was given.
6275 if test "${enable_werror_always+set}" = set; then :
6276 enableval=$enable_werror_always;
6277 else
6278 enable_werror_always=no
6281 if test $enable_werror_always = yes; then :
6282 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6287 # The above macros do nothing if the compiler is not GCC. However, the
6288 # Makefile has more goo to add other flags, so these variables are used
6289 # to enable warnings only for GCC.
6290 warn_cflags=
6291 warn_cxxflags=
6292 if test "x$GCC" = "xyes"; then
6293 warn_cflags='$(GCC_WARN_CFLAGS)'
6294 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6299 # Enable expensive internal checks
6300 is_release=
6301 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6302 is_release=yes
6305 # Check whether --enable-checking was given.
6306 if test "${enable_checking+set}" = set; then :
6307 enableval=$enable_checking; ac_checking_flags="${enableval}"
6308 else
6310 # Determine the default checks.
6311 if test x$is_release = x ; then
6312 ac_checking_flags=yes
6313 else
6314 ac_checking_flags=release
6318 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6319 for check in release $ac_checking_flags
6321 case $check in
6322 # these set all the flags to specific states
6323 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6324 ac_fold_checking= ; ac_gc_checking=1 ;
6325 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6326 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6327 ac_tree_checking=1 ; ac_valgrind_checking= ;
6328 ac_types_checking=1 ;;
6329 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6330 ac_fold_checking= ; ac_gc_checking= ;
6331 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6332 ac_rtlflag_checking= ; ac_runtime_checking= ;
6333 ac_tree_checking= ; ac_valgrind_checking= ;
6334 ac_types_checking= ;;
6335 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6336 ac_fold_checking=1 ; ac_gc_checking=1 ;
6337 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6338 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6339 ac_tree_checking=1 ; ac_valgrind_checking= ;
6340 ac_types_checking=1 ;;
6341 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6342 ac_fold_checking= ; ac_gc_checking= ;
6343 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6344 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6345 ac_tree_checking= ; ac_valgrind_checking= ;
6346 ac_types_checking= ;;
6347 # these enable particular checks
6348 assert) ac_assert_checking=1 ;;
6349 df) ac_df_checking=1 ;;
6350 fold) ac_fold_checking=1 ;;
6351 gc) ac_gc_checking=1 ;;
6352 gcac) ac_gc_always_collect=1 ;;
6353 gimple) ac_gimple_checking=1 ;;
6354 misc) ac_checking=1 ;;
6355 rtl) ac_rtl_checking=1 ;;
6356 rtlflag) ac_rtlflag_checking=1 ;;
6357 runtime) ac_runtime_checking=1 ;;
6358 tree) ac_tree_checking=1 ;;
6359 types) ac_types_checking=1 ;;
6360 valgrind) ac_valgrind_checking=1 ;;
6361 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6362 esac
6363 done
6364 IFS="$ac_save_IFS"
6366 nocommon_flag=""
6367 if test x$ac_checking != x ; then
6369 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6371 nocommon_flag=-fno-common
6374 if test x$ac_df_checking != x ; then
6376 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6379 if test x$ac_assert_checking != x ; then
6381 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6384 if test x$ac_gimple_checking != x ; then
6386 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6390 if test x$ac_runtime_checking != x ; then
6392 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6395 if test x$ac_tree_checking != x ; then
6397 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6399 TREEBROWSER=tree-browser.o
6401 if test x$ac_types_checking != x ; then
6403 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6407 if test x$ac_rtl_checking != x ; then
6409 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6412 if test x$ac_rtlflag_checking != x ; then
6414 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6417 if test x$ac_gc_checking != x ; then
6419 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6422 if test x$ac_gc_always_collect != x ; then
6424 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6427 if test x$ac_fold_checking != x ; then
6429 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6432 valgrind_path_defines=
6433 valgrind_command=
6435 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6436 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6437 have_valgrind_h=yes
6438 else
6439 have_valgrind_h=no
6444 if test x$ac_valgrind_checking != x ; then
6445 # It is certainly possible that there's valgrind but no valgrind.h.
6446 # GCC relies on making annotations so we must have both.
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6448 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 #include <valgrind/memcheck.h>
6452 #ifndef VALGRIND_DISCARD
6453 #error VALGRIND_DISCARD not defined
6454 #endif
6455 _ACEOF
6456 if ac_fn_c_try_cpp "$LINENO"; then :
6457 gcc_cv_header_valgrind_memcheck_h=yes
6458 else
6459 gcc_cv_header_valgrind_memcheck_h=no
6461 rm -f conftest.err conftest.$ac_ext
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6463 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6465 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <memcheck.h>
6469 #ifndef VALGRIND_DISCARD
6470 #error VALGRIND_DISCARD not defined
6471 #endif
6472 _ACEOF
6473 if ac_fn_c_try_cpp "$LINENO"; then :
6474 gcc_cv_header_memcheck_h=yes
6475 else
6476 gcc_cv_header_memcheck_h=no
6478 rm -f conftest.err conftest.$ac_ext
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6480 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6482 # Prepare PATH_SEPARATOR.
6483 # The user is always right.
6484 if test "${PATH_SEPARATOR+set}" != set; then
6485 echo "#! /bin/sh" >conf$$.sh
6486 echo "exit 0" >>conf$$.sh
6487 chmod +x conf$$.sh
6488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6489 PATH_SEPARATOR=';'
6490 else
6491 PATH_SEPARATOR=:
6493 rm -f conf$$.sh
6496 # Find out how to test for executable files. Don't use a zero-byte file,
6497 # as systems may use methods other than mode bits to determine executability.
6498 cat >conf$$.file <<_ASEOF
6499 #! /bin/sh
6500 exit 0
6501 _ASEOF
6502 chmod +x conf$$.file
6503 if test -x conf$$.file >/dev/null 2>&1; then
6504 ac_executable_p="test -x"
6505 else
6506 ac_executable_p="test -f"
6508 rm -f conf$$.file
6510 # Extract the first word of "valgrind", so it can be a program name with args.
6511 set dummy valgrind; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 case "$valgrind_path" in
6518 [\\/]* | ?:[\\/]*)
6519 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6522 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6523 for ac_dir in $PATH; do
6524 IFS="$ac_save_IFS"
6525 test -z "$ac_dir" && ac_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6528 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6529 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6530 break 2
6533 done
6534 done
6535 IFS="$ac_save_IFS"
6537 esac
6539 valgrind_path="$ac_cv_path_valgrind_path"
6540 if test -n "$valgrind_path"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6542 $as_echo "$valgrind_path" >&6; }
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6548 if test "x$valgrind_path" = "x" \
6549 || (test $have_valgrind_h = no \
6550 && test $gcc_cv_header_memcheck_h = no \
6551 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6552 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6554 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6555 valgrind_command="$valgrind_path -q"
6557 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6559 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6561 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6564 if test $gcc_cv_header_memcheck_h = yes; then
6566 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6573 # Enable code coverage collection
6574 # Check whether --enable-coverage was given.
6575 if test "${enable_coverage+set}" = set; then :
6576 enableval=$enable_coverage; case "${enableval}" in
6577 yes|noopt)
6578 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6580 opt)
6581 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6584 # a.k.a. --disable-coverage
6585 coverage_flags=""
6588 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6590 esac
6591 else
6592 coverage_flags=""
6597 # Check whether --enable-gather-detailed-mem-stats was given.
6598 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6599 enableval=$enable_gather_detailed_mem_stats;
6600 else
6601 enable_gather_detailed_mem_stats=no
6604 if test x$enable_gather_detailed_mem_stats = xyes ; then
6606 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6610 # -------------------------------
6611 # Miscenalleous configure options
6612 # -------------------------------
6614 # See if we are building gcc with C++.
6615 # Check whether --enable-build-with-cxx was given.
6616 if test "${enable_build_with_cxx+set}" = set; then :
6617 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6618 else
6619 ENABLE_BUILD_WITH_CXX=no
6624 # With stabs
6626 # Check whether --with-stabs was given.
6627 if test "${with_stabs+set}" = set; then :
6628 withval=$with_stabs; stabs="$with_stabs"
6629 else
6630 stabs=no
6634 # Determine whether or not multilibs are enabled.
6635 # Check whether --enable-multilib was given.
6636 if test "${enable_multilib+set}" = set; then :
6637 enableval=$enable_multilib;
6638 else
6639 enable_multilib=yes
6644 # Enable __cxa_atexit for C++.
6645 # Check whether --enable-__cxa_atexit was given.
6646 if test "${enable___cxa_atexit+set}" = set; then :
6647 enableval=$enable___cxa_atexit;
6651 # Enable C extension for decimal float if target supports it.
6652 # Check whether --enable-decimal-float was given.
6653 if test "${enable_decimal_float+set}" = set; then :
6654 enableval=$enable_decimal_float;
6655 case $enable_decimal_float in
6656 yes | no | bid | dpd) ;;
6657 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6658 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6659 esac
6661 else
6663 case $target in
6664 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6665 enable_decimal_float=yes
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6669 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6670 enable_decimal_float=no
6672 esac
6677 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6679 cat >>confdefs.h <<_ACEOF
6680 #define ENABLE_DECIMAL_FLOAT $dfp
6681 _ACEOF
6684 # x86's use BID format instead of DPD
6685 case x$enable_decimal_float in
6686 xyes)
6687 case $target in
6688 i?86*-*-linux* | x86_64*-*-linux*)
6689 enable_decimal_float=bid
6692 enable_decimal_float=dpd
6694 esac
6696 xno)
6697 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6698 # dependency on libdecnumber.
6699 enable_decimal_float=dpd
6701 esac
6704 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6706 cat >>confdefs.h <<_ACEOF
6707 #define ENABLE_DECIMAL_BID_FORMAT $bid
6708 _ACEOF
6711 # Enable C extension for fixed-point arithmetic.
6712 # Check whether --enable-fixed-point was given.
6713 if test "${enable_fixed_point+set}" = set; then :
6714 enableval=$enable_fixed_point;
6716 else
6718 case $target in
6719 mips*-*-*)
6720 case $host in
6721 mips*-sgi-irix*)
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6723 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6724 enable_fixed_point=no
6727 enable_fixed_point=yes
6729 esac
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6733 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6734 enable_fixed_point=no
6736 esac
6742 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6744 cat >>confdefs.h <<_ACEOF
6745 #define ENABLE_FIXED_POINT $fixedpoint
6746 _ACEOF
6749 # Enable threads
6750 # Pass with no value to take the default
6751 # Pass with a value to specify a thread package
6752 # Check whether --enable-threads was given.
6753 if test "${enable_threads+set}" = set; then :
6754 enableval=$enable_threads;
6755 else
6756 enable_threads=''
6760 # Check whether --enable-tls was given.
6761 if test "${enable_tls+set}" = set; then :
6762 enableval=$enable_tls;
6763 case $enable_tls in
6764 yes | no) ;;
6765 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6766 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6767 esac
6769 else
6770 enable_tls=''
6774 # Check whether --enable-objc-gc was given.
6775 if test "${enable_objc_gc+set}" = set; then :
6776 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6777 objc_boehm_gc=''
6778 else
6779 objc_boehm_gc=1
6781 else
6782 objc_boehm_gc=''
6787 # Check whether --with-dwarf2 was given.
6788 if test "${with_dwarf2+set}" = set; then :
6789 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6790 else
6791 dwarf2=no
6795 # Check whether --enable-shared was given.
6796 if test "${enable_shared+set}" = set; then :
6797 enableval=$enable_shared;
6798 case $enable_shared in
6799 yes | no) ;;
6801 enable_shared=no
6802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6803 for pkg in $enableval; do
6804 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6805 enable_shared=yes
6807 done
6808 IFS="$ac_save_ifs"
6810 esac
6812 else
6813 enable_shared=yes
6819 # Check whether --with-build-sysroot was given.
6820 if test "${with_build_sysroot+set}" = set; then :
6821 withval=$with_build_sysroot;
6826 # Check whether --with-sysroot was given.
6827 if test "${with_sysroot+set}" = set; then :
6828 withval=$with_sysroot;
6829 case ${with_sysroot} in
6830 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6831 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6832 esac
6834 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6835 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6837 if test "x$prefix" = xNONE; then
6838 test_prefix=/usr/local
6839 else
6840 test_prefix=$prefix
6842 if test "x$exec_prefix" = xNONE; then
6843 test_exec_prefix=$test_prefix
6844 else
6845 test_exec_prefix=$exec_prefix
6847 case ${TARGET_SYSTEM_ROOT} in
6848 "${test_prefix}"|"${test_prefix}/"*|\
6849 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6850 '${prefix}'|'${prefix}/'*|\
6851 '${exec_prefix}'|'${exec_prefix}/'*)
6852 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6853 TARGET_SYSTEM_ROOT_DEFINE="$t"
6855 esac
6857 else
6859 TARGET_SYSTEM_ROOT=
6860 TARGET_SYSTEM_ROOT_DEFINE=
6861 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6870 # Check whether --with-specs was given.
6871 if test "${with_specs+set}" = set; then :
6872 withval=$with_specs; CONFIGURE_SPECS=$withval
6873 else
6874 CONFIGURE_SPECS=
6880 # Build with intermodule optimisations
6881 # Check whether --enable-intermodule was given.
6882 if test "${enable_intermodule+set}" = set; then :
6883 enableval=$enable_intermodule; case ${enable_intermodule} in
6884 yes) onestep="-onestep";;
6885 *) onestep="";;
6886 esac
6887 else
6888 onestep=""
6895 # Check whether --with-pkgversion was given.
6896 if test "${with_pkgversion+set}" = set; then :
6897 withval=$with_pkgversion; case "$withval" in
6898 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6899 no) PKGVERSION= ;;
6900 *) PKGVERSION="($withval) " ;;
6901 esac
6902 else
6903 PKGVERSION="(GCC) "
6911 # Check whether --with-bugurl was given.
6912 if test "${with_bugurl+set}" = set; then :
6913 withval=$with_bugurl; case "$withval" in
6914 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6915 no) BUGURL=
6917 *) BUGURL="$withval"
6919 esac
6920 else
6921 BUGURL="http://gcc.gnu.org/bugs.html"
6925 case ${BUGURL} in
6927 REPORT_BUGS_TO=
6928 REPORT_BUGS_TEXI=
6931 REPORT_BUGS_TO="<$BUGURL>"
6932 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6934 esac;
6939 # Sanity check enable_languages in case someone does not run the toplevel
6940 # configure # script.
6941 # Check whether --enable-languages was given.
6942 if test "${enable_languages+set}" = set; then :
6943 enableval=$enable_languages; case ,${enable_languages}, in
6944 ,,|,yes,)
6945 # go safe -- we cannot be much sure without the toplevel
6946 # configure's
6947 # analysis of which target libs are present and usable
6948 enable_languages=c
6950 *,all,*)
6951 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6953 *,c,*)
6956 enable_languages=c,${enable_languages}
6958 esac
6959 else
6960 enable_languages=c
6965 # Check whether --with-multilib-list was given.
6966 if test "${with_multilib_list+set}" = set; then :
6967 withval=$with_multilib_list; :
6968 else
6969 with_multilib_list=default
6973 # -------------------------
6974 # Checks for other programs
6975 # -------------------------
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6978 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6979 set x ${MAKE-make}
6980 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6981 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 cat >conftest.make <<\_ACEOF
6985 SHELL = /bin/sh
6986 all:
6987 @echo '@@@%%%=$(MAKE)=@@@%%%'
6988 _ACEOF
6989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6991 *@@@%%%=?*=@@@%%%*)
6992 eval ac_cv_prog_make_${ac_make}_set=yes;;
6994 eval ac_cv_prog_make_${ac_make}_set=no;;
6995 esac
6996 rm -f conftest.make
6998 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7000 $as_echo "yes" >&6; }
7001 SET_MAKE=
7002 else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 SET_MAKE="MAKE=${MAKE-make}"
7009 # Find some useful tools
7010 for ac_prog in gawk mawk nawk awk
7012 # Extract the first word of "$ac_prog", so it can be a program name with args.
7013 set dummy $ac_prog; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if test "${ac_cv_prog_AWK+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 if test -n "$AWK"; then
7020 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_AWK="$ac_prog"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7033 done
7034 done
7035 IFS=$as_save_IFS
7039 AWK=$ac_cv_prog_AWK
7040 if test -n "$AWK"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7042 $as_echo "$AWK" >&6; }
7043 else
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7049 test -n "$AWK" && break
7050 done
7052 # We need awk to create options.c and options.h.
7053 # Bail out if it's missing.
7054 case ${AWK} in
7055 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7056 esac
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7059 $as_echo_n "checking whether ln -s works... " >&6; }
7060 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 rm -f conftestdata_t
7064 echo >conftestdata_f
7065 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7066 then
7067 gcc_cv_prog_LN_S="ln -s"
7068 else
7069 if ln conftestdata_f conftestdata_t 2>/dev/null
7070 then
7071 gcc_cv_prog_LN_S=ln
7072 else
7073 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7074 then
7075 gcc_cv_prog_LN_S="cp -p"
7076 else
7077 gcc_cv_prog_LN_S=cp
7081 rm -f conftestdata_f conftestdata_t
7084 LN_S="$gcc_cv_prog_LN_S"
7085 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7087 $as_echo "yes" >&6; }
7088 else
7089 if test "$gcc_cv_prog_LN_S" = "ln"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7091 $as_echo "no, using ln" >&6; }
7092 else
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7094 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7099 $as_echo_n "checking whether ln works... " >&6; }
7100 if test "${acx_cv_prog_LN+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 rm -f conftestdata_t
7104 echo >conftestdata_f
7105 if ln conftestdata_f conftestdata_t 2>/dev/null
7106 then
7107 acx_cv_prog_LN=ln
7108 else
7109 acx_cv_prog_LN=no
7111 rm -f conftestdata_f conftestdata_t
7114 if test $acx_cv_prog_LN = no; then
7115 LN="$LN_S"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7117 $as_echo "no, using $LN" >&6; }
7118 else
7119 LN="$acx_cv_prog_LN"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7121 $as_echo "yes" >&6; }
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 if test -n "$RANLIB"; then
7133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7146 done
7147 done
7148 IFS=$as_save_IFS
7152 RANLIB=$ac_cv_prog_RANLIB
7153 if test -n "$RANLIB"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7155 $as_echo "$RANLIB" >&6; }
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7163 if test -z "$ac_cv_prog_RANLIB"; then
7164 ac_ct_RANLIB=$RANLIB
7165 # Extract the first word of "ranlib", so it can be a program name with args.
7166 set dummy ranlib; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 if test -n "$ac_ct_RANLIB"; then
7173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_ac_ct_RANLIB="ranlib"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7186 done
7187 done
7188 IFS=$as_save_IFS
7192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7193 if test -n "$ac_ct_RANLIB"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7195 $as_echo "$ac_ct_RANLIB" >&6; }
7196 else
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7201 if test "x$ac_ct_RANLIB" = x; then
7202 RANLIB=":"
7203 else
7204 case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned=yes ;;
7209 esac
7210 RANLIB=$ac_ct_RANLIB
7212 else
7213 RANLIB="$ac_cv_prog_RANLIB"
7216 case "${host}" in
7217 *-*-darwin*)
7218 # By default, the Darwin ranlib will not treat common symbols as
7219 # definitions when building the archive table of contents. Other
7220 # ranlibs do that; pass an option to the Darwin ranlib that makes
7221 # it behave similarly.
7222 ranlib_flags="-c"
7225 ranlib_flags=""
7226 esac
7229 # Find a good install program. We prefer a C program (faster),
7230 # so one script is as good as another. But avoid the broken or
7231 # incompatible versions:
7232 # SysV /etc/install, /usr/sbin/install
7233 # SunOS /usr/etc/install
7234 # IRIX /sbin/install
7235 # AIX /bin/install
7236 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7237 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7238 # ./install, which can be erroneously created by make from ./install.sh.
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7240 $as_echo_n "checking for a BSD compatible install... " >&6; }
7241 if test -z "$INSTALL"; then
7242 if test "${ac_cv_path_install+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7246 for ac_dir in $PATH; do
7247 # Account for people who put trailing slashes in PATH elements.
7248 case "$ac_dir/" in
7249 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7251 # OSF1 and SCO ODT 3.0 have their own names for install.
7252 for ac_prog in ginstall scoinst install; do
7253 if test -f $ac_dir/$ac_prog; then
7254 if test $ac_prog = install &&
7255 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7256 # AIX install. It has an incompatible calling convention.
7257 # OSF/1 installbsd also uses dspmsg, but is usable.
7259 else
7260 ac_cv_path_install="$ac_dir/$ac_prog -c"
7261 break 2
7264 done
7266 esac
7267 done
7268 IFS="$ac_save_IFS"
7271 if test "${ac_cv_path_install+set}" = set; then
7272 INSTALL="$ac_cv_path_install"
7273 else
7274 # As a last resort, use the slow shell script. We don't cache a
7275 # path for INSTALL within a source directory, because that will
7276 # break other packages using the cache if that directory is
7277 # removed, or if the path is relative.
7278 INSTALL="$ac_install_sh"
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7282 $as_echo "$INSTALL" >&6; }
7284 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7285 # It thinks the first close brace ends the variable substitution.
7286 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7291 # See if cmp has --ignore-initial.
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7293 $as_echo_n "checking for cmp's capabilities... " >&6; }
7294 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 echo abfoo >t1
7298 echo cdfoo >t2
7299 gcc_cv_prog_cmp_skip=slowcompare
7300 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7301 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7303 else
7304 gcc_cv_prog_cmp_skip=gnucompare
7307 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7308 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7309 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7311 else
7312 gcc_cv_prog_cmp_skip=fastcompare
7316 rm t1 t2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7320 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7321 make_compare_target=$gcc_cv_prog_cmp_skip
7325 # See if we have the mktemp command.
7326 # Extract the first word of "mktemp", so it can be a program name with args.
7327 set dummy mktemp; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 if test -n "$have_mktemp_command"; then
7334 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_have_mktemp_command="yes"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7347 done
7348 done
7349 IFS=$as_save_IFS
7351 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7354 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7355 if test -n "$have_mktemp_command"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7357 $as_echo "$have_mktemp_command" >&6; }
7358 else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7365 # See if makeinfo has been installed and is modern enough
7366 # that we can use it.
7368 # Extract the first word of "makeinfo", so it can be a program name with args.
7369 set dummy makeinfo; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 if test -n "$MAKEINFO"; then
7376 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_MAKEINFO="makeinfo"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7389 done
7390 done
7391 IFS=$as_save_IFS
7395 MAKEINFO=$ac_cv_prog_MAKEINFO
7396 if test -n "$MAKEINFO"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7398 $as_echo "$MAKEINFO" >&6; }
7399 else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7405 if test -n "$MAKEINFO"; then
7406 # Found it, now check the version.
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7408 $as_echo_n "checking for modern makeinfo... " >&6; }
7409 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7413 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7415 case $ac_prog_version in
7416 '') gcc_cv_prog_makeinfo_modern=no;;
7417 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7418 *) gcc_cv_prog_makeinfo_modern=no;;
7419 esac
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7423 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7424 else
7425 gcc_cv_prog_makeinfo_modern=no
7427 if test $gcc_cv_prog_makeinfo_modern = no; then
7428 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7431 if test $gcc_cv_prog_makeinfo_modern = no; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7433 *** Makeinfo is missing or too old.
7434 *** Info documentation will not be built." >&5
7435 $as_echo "$as_me: WARNING:
7436 *** Makeinfo is missing or too old.
7437 *** Info documentation will not be built." >&2;}
7438 BUILD_INFO=
7439 else
7440 BUILD_INFO=info
7444 # Is pod2man recent enough to regenerate manpages?
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7446 $as_echo_n "checking for recent Pod::Man... " >&6; }
7447 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449 $as_echo "yes" >&6; }
7450 GENERATED_MANPAGES=generated-manpages
7451 else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454 GENERATED_MANPAGES=
7458 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7460 # How about lex?
7461 for ac_prog in flex
7463 # Extract the first word of "$ac_prog", so it can be a program name with args.
7464 set dummy $ac_prog; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if test "${ac_cv_prog_FLEX+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 if test -n "$FLEX"; then
7471 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_prog_FLEX="$ac_prog"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7484 done
7485 done
7486 IFS=$as_save_IFS
7490 FLEX=$ac_cv_prog_FLEX
7491 if test -n "$FLEX"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7493 $as_echo "$FLEX" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7500 test -n "$FLEX" && break
7501 done
7502 test -n "$FLEX" || FLEX="$MISSING flex"
7505 # Bison?
7506 for ac_prog in bison
7508 # Extract the first word of "$ac_prog", so it can be a program name with args.
7509 set dummy $ac_prog; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if test "${ac_cv_prog_BISON+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 if test -n "$BISON"; then
7516 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_prog_BISON="$ac_prog"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 break 2
7529 done
7530 done
7531 IFS=$as_save_IFS
7535 BISON=$ac_cv_prog_BISON
7536 if test -n "$BISON"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7538 $as_echo "$BISON" >&6; }
7539 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7545 test -n "$BISON" && break
7546 done
7547 test -n "$BISON" || BISON="$MISSING bison"
7550 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7551 # check for build == host before using them.
7553 # NM
7554 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7555 && test -d ../binutils ; then
7556 NM='${objdir}/../binutils/nm-new'
7557 else
7558 # Extract the first word of "nm", so it can be a program name with args.
7559 set dummy nm; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_NM+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 if test -n "$NM"; then
7566 ac_cv_prog_NM="$NM" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_NM="nm"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7579 done
7580 done
7581 IFS=$as_save_IFS
7583 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7586 NM=$ac_cv_prog_NM
7587 if test -n "$NM"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7589 $as_echo "$NM" >&6; }
7590 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7598 # AR
7599 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7600 && test -d ../binutils ; then
7601 AR='${objdir}/../binutils/ar'
7602 else
7603 # Extract the first word of "ar", so it can be a program name with args.
7604 set dummy ar; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if test "${ac_cv_prog_AR+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 if test -n "$AR"; then
7611 ac_cv_prog_AR="$AR" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_prog_AR="ar"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7624 done
7625 done
7626 IFS=$as_save_IFS
7628 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7631 AR=$ac_cv_prog_AR
7632 if test -n "$AR"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7634 $as_echo "$AR" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7644 # --------------------
7645 # Checks for C headers
7646 # --------------------
7648 # Need to reject headers which give warnings, so that the -Werror bootstrap
7649 # works later. *sigh* This needs to come before all header checks.
7651 ac_c_preproc_warn_flag=yes
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7654 $as_echo_n "checking for ANSI C header files... " >&6; }
7655 if test "${ac_cv_header_stdc+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7660 #include <stdlib.h>
7661 #include <stdarg.h>
7662 #include <string.h>
7663 #include <float.h>
7666 main ()
7670 return 0;
7672 _ACEOF
7673 if ac_fn_c_try_compile "$LINENO"; then :
7674 ac_cv_header_stdc=yes
7675 else
7676 ac_cv_header_stdc=no
7678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680 if test $ac_cv_header_stdc = yes; then
7681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684 #include <string.h>
7686 _ACEOF
7687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7688 $EGREP "memchr" >/dev/null 2>&1; then :
7690 else
7691 ac_cv_header_stdc=no
7693 rm -f conftest*
7697 if test $ac_cv_header_stdc = yes; then
7698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 #include <stdlib.h>
7703 _ACEOF
7704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7705 $EGREP "free" >/dev/null 2>&1; then :
7707 else
7708 ac_cv_header_stdc=no
7710 rm -f conftest*
7714 if test $ac_cv_header_stdc = yes; then
7715 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7716 if test "$cross_compiling" = yes; then :
7718 else
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 #include <ctype.h>
7722 #include <stdlib.h>
7723 #if ((' ' & 0x0FF) == 0x020)
7724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7726 #else
7727 # define ISLOWER(c) \
7728 (('a' <= (c) && (c) <= 'i') \
7729 || ('j' <= (c) && (c) <= 'r') \
7730 || ('s' <= (c) && (c) <= 'z'))
7731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7732 #endif
7734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7736 main ()
7738 int i;
7739 for (i = 0; i < 256; i++)
7740 if (XOR (islower (i), ISLOWER (i))
7741 || toupper (i) != TOUPPER (i))
7742 return 2;
7743 return 0;
7745 _ACEOF
7746 if ac_fn_c_try_run "$LINENO"; then :
7748 else
7749 ac_cv_header_stdc=no
7751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7752 conftest.$ac_objext conftest.beam conftest.$ac_ext
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7758 $as_echo "$ac_cv_header_stdc" >&6; }
7759 if test $ac_cv_header_stdc = yes; then
7761 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7766 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7767 if test "${ac_cv_header_time+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772 #include <sys/types.h>
7773 #include <sys/time.h>
7774 #include <time.h>
7777 main ()
7779 if ((struct tm *) 0)
7780 return 0;
7782 return 0;
7784 _ACEOF
7785 if ac_fn_c_try_compile "$LINENO"; then :
7786 ac_cv_header_time=yes
7787 else
7788 ac_cv_header_time=no
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7793 $as_echo "$ac_cv_header_time" >&6; }
7794 if test $ac_cv_header_time = yes; then
7796 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7801 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7802 if test "${gcc_cv_header_string+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 #include <string.h>
7808 #include <strings.h>
7810 main ()
7814 return 0;
7816 _ACEOF
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818 gcc_cv_header_string=yes
7819 else
7820 gcc_cv_header_string=no
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7825 $as_echo "$gcc_cv_header_string" >&6; }
7826 if test $gcc_cv_header_string = yes; then
7828 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7833 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7834 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 #include <sys/types.h>
7840 #include <sys/wait.h>
7841 #ifndef WEXITSTATUS
7842 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7843 #endif
7844 #ifndef WIFEXITED
7845 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7846 #endif
7849 main ()
7851 int s;
7852 wait (&s);
7853 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7855 return 0;
7857 _ACEOF
7858 if ac_fn_c_try_compile "$LINENO"; then :
7859 ac_cv_header_sys_wait_h=yes
7860 else
7861 ac_cv_header_sys_wait_h=no
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7866 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7867 if test $ac_cv_header_sys_wait_h = yes; then
7869 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7873 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7874 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7875 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7876 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7877 do :
7878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7879 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7880 eval as_val=\$$as_ac_Header
7881 if test "x$as_val" = x""yes; then :
7882 cat >>confdefs.h <<_ACEOF
7883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7884 _ACEOF
7887 done
7890 # Check for thread headers.
7891 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7892 if test "x$ac_cv_header_thread_h" = x""yes; then :
7893 have_thread_h=yes
7894 else
7895 have_thread_h=
7898 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7899 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7900 have_pthread_h=yes
7901 else
7902 have_pthread_h=
7906 # These tests can't be done till we know if we have limits.h.
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7908 $as_echo_n "checking for CHAR_BIT... " >&6; }
7909 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #ifdef HAVE_LIMITS_H
7915 #include <limits.h>
7916 #endif
7917 #ifdef CHAR_BIT
7918 found
7919 #endif
7920 _ACEOF
7921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7922 $EGREP "found" >/dev/null 2>&1; then :
7923 gcc_cv_decl_char_bit=yes
7924 else
7925 gcc_cv_decl_char_bit=no
7927 rm -f conftest*
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7932 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7933 if test $gcc_cv_decl_char_bit = no; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7935 $as_echo_n "checking number of bits in a byte... " >&6; }
7936 if test "${gcc_cv_c_nbby+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7940 gcc_cv_c_nbby=
7941 while test $i -lt 65; do
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7946 main ()
7948 switch(0) {
7949 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7950 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7953 return 0;
7955 _ACEOF
7956 if ac_fn_c_try_compile "$LINENO"; then :
7957 gcc_cv_c_nbby=$i; break
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 i=`expr $i + 1`
7961 done
7962 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7966 $as_echo "$gcc_cv_c_nbby" >&6; }
7967 if test $gcc_cv_c_nbby = failed; then
7968 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7969 else
7971 cat >>confdefs.h <<_ACEOF
7972 #define CHAR_BIT $gcc_cv_c_nbby
7973 _ACEOF
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7978 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7979 if test "${ac_cv_c_bigendian+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 ac_cv_c_bigendian=unknown
7983 # See if we're dealing with a universal compiler.
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #ifndef __APPLE_CC__
7987 not a universal capable compiler
7988 #endif
7989 typedef int dummy;
7991 _ACEOF
7992 if ac_fn_c_try_compile "$LINENO"; then :
7994 # Check for potential -arch flags. It is not universal unless
7995 # there are at least two -arch flags with different values.
7996 ac_arch=
7997 ac_prev=
7998 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7999 if test -n "$ac_prev"; then
8000 case $ac_word in
8001 i?86 | x86_64 | ppc | ppc64)
8002 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8003 ac_arch=$ac_word
8004 else
8005 ac_cv_c_bigendian=universal
8006 break
8009 esac
8010 ac_prev=
8011 elif test "x$ac_word" = "x-arch"; then
8012 ac_prev=arch
8014 done
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 if test $ac_cv_c_bigendian = unknown; then
8018 # See if sys/param.h defines the BYTE_ORDER macro.
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021 #include <sys/types.h>
8022 #include <sys/param.h>
8025 main ()
8027 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8028 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8029 && LITTLE_ENDIAN)
8030 bogus endian macros
8031 #endif
8034 return 0;
8036 _ACEOF
8037 if ac_fn_c_try_compile "$LINENO"; then :
8038 # It does; now see whether it defined to BIG_ENDIAN or not.
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8041 #include <sys/types.h>
8042 #include <sys/param.h>
8045 main ()
8047 #if BYTE_ORDER != BIG_ENDIAN
8048 not big endian
8049 #endif
8052 return 0;
8054 _ACEOF
8055 if ac_fn_c_try_compile "$LINENO"; then :
8056 ac_cv_c_bigendian=yes
8057 else
8058 ac_cv_c_bigendian=no
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 if test $ac_cv_c_bigendian = unknown; then
8065 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 #include <limits.h>
8071 main ()
8073 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8074 bogus endian macros
8075 #endif
8078 return 0;
8080 _ACEOF
8081 if ac_fn_c_try_compile "$LINENO"; then :
8082 # It does; now see whether it defined to _BIG_ENDIAN or not.
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8085 #include <limits.h>
8088 main ()
8090 #ifndef _BIG_ENDIAN
8091 not big endian
8092 #endif
8095 return 0;
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099 ac_cv_c_bigendian=yes
8100 else
8101 ac_cv_c_bigendian=no
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 if test $ac_cv_c_bigendian = unknown; then
8108 # Compile a test program.
8109 if test "$cross_compiling" = yes; then :
8110 # Try to guess by grepping values from an object file.
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 short int ascii_mm[] =
8114 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8115 short int ascii_ii[] =
8116 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8117 int use_ascii (int i) {
8118 return ascii_mm[i] + ascii_ii[i];
8120 short int ebcdic_ii[] =
8121 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8122 short int ebcdic_mm[] =
8123 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8124 int use_ebcdic (int i) {
8125 return ebcdic_mm[i] + ebcdic_ii[i];
8127 extern int foo;
8130 main ()
8132 return use_ascii (foo) == use_ebcdic (foo);
8134 return 0;
8136 _ACEOF
8137 if ac_fn_c_try_compile "$LINENO"; then :
8138 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8139 ac_cv_c_bigendian=yes
8141 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8142 if test "$ac_cv_c_bigendian" = unknown; then
8143 ac_cv_c_bigendian=no
8144 else
8145 # finding both strings is unlikely to happen, but who knows?
8146 ac_cv_c_bigendian=unknown
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 else
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 $ac_includes_default
8156 main ()
8159 /* Are we little or big endian? From Harbison&Steele. */
8160 union
8162 long int l;
8163 char c[sizeof (long int)];
8164 } u;
8165 u.l = 1;
8166 return u.c[sizeof (long int) - 1] == 1;
8169 return 0;
8171 _ACEOF
8172 if ac_fn_c_try_run "$LINENO"; then :
8173 ac_cv_c_bigendian=no
8174 else
8175 ac_cv_c_bigendian=yes
8177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8178 conftest.$ac_objext conftest.beam conftest.$ac_ext
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8184 $as_echo "$ac_cv_c_bigendian" >&6; }
8185 case $ac_cv_c_bigendian in #(
8186 yes)
8187 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8188 ;; #(
8190 ;; #(
8191 universal)
8193 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8195 ;; #(
8197 as_fn_error "unknown endianness
8198 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8199 esac
8202 # --------
8203 # UNSORTED
8204 # --------
8207 # These libraries may be used by collect2.
8208 # We may need a special search path to get them linked.
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8210 $as_echo_n "checking for collect2 libraries... " >&6; }
8211 if test "${gcc_cv_collect2_libs+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 save_LIBS="$LIBS"
8215 for libs in '' -lld -lmld \
8216 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8217 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8219 LIBS="$libs"
8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8223 /* Override any GCC internal prototype to avoid an error.
8224 Use char because int might match the return type of a GCC
8225 builtin and then its argument prototype would still apply. */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 char ldopen ();
8231 main ()
8233 return ldopen ();
8235 return 0;
8237 _ACEOF
8238 if ac_fn_c_try_link "$LINENO"; then :
8239 gcc_cv_collect2_libs="$libs"; break
8241 rm -f core conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 done
8244 LIBS="$save_LIBS"
8245 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8248 $as_echo "$gcc_cv_collect2_libs" >&6; }
8249 case $gcc_cv_collect2_libs in
8250 "none required") ;;
8251 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8252 esac
8255 # When building Ada code on Alpha, we need exc_resume which is usually in
8256 # -lexc. So test for it.
8257 save_LIBS="$LIBS"
8258 LIBS=
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8260 $as_echo_n "checking for library containing exc_resume... " >&6; }
8261 if test "${ac_cv_search_exc_resume+set}" = set; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 ac_func_search_save_LIBS=$LIBS
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8268 /* Override any GCC internal prototype to avoid an error.
8269 Use char because int might match the return type of a GCC
8270 builtin and then its argument prototype would still apply. */
8271 #ifdef __cplusplus
8272 extern "C"
8273 #endif
8274 char exc_resume ();
8276 main ()
8278 return exc_resume ();
8280 return 0;
8282 _ACEOF
8283 for ac_lib in '' exc; do
8284 if test -z "$ac_lib"; then
8285 ac_res="none required"
8286 else
8287 ac_res=-l$ac_lib
8288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8290 if ac_fn_c_try_link "$LINENO"; then :
8291 ac_cv_search_exc_resume=$ac_res
8293 rm -f core conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext
8295 if test "${ac_cv_search_exc_resume+set}" = set; then :
8296 break
8298 done
8299 if test "${ac_cv_search_exc_resume+set}" = set; then :
8301 else
8302 ac_cv_search_exc_resume=no
8304 rm conftest.$ac_ext
8305 LIBS=$ac_func_search_save_LIBS
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8308 $as_echo "$ac_cv_search_exc_resume" >&6; }
8309 ac_res=$ac_cv_search_exc_resume
8310 if test "$ac_res" != no; then :
8311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8315 GNAT_LIBEXC="$LIBS"
8316 LIBS="$save_LIBS"
8319 # Some systems put ldexp and frexp in libm instead of libc; assume
8320 # they're both in the same place. jcf-dump needs them.
8321 save_LIBS="$LIBS"
8322 LIBS=
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8324 $as_echo_n "checking for library containing ldexp... " >&6; }
8325 if test "${ac_cv_search_ldexp+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 ac_func_search_save_LIBS=$LIBS
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8332 /* Override any GCC internal prototype to avoid an error.
8333 Use char because int might match the return type of a GCC
8334 builtin and then its argument prototype would still apply. */
8335 #ifdef __cplusplus
8336 extern "C"
8337 #endif
8338 char ldexp ();
8340 main ()
8342 return ldexp ();
8344 return 0;
8346 _ACEOF
8347 for ac_lib in '' m; do
8348 if test -z "$ac_lib"; then
8349 ac_res="none required"
8350 else
8351 ac_res=-l$ac_lib
8352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8354 if ac_fn_c_try_link "$LINENO"; then :
8355 ac_cv_search_ldexp=$ac_res
8357 rm -f core conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext
8359 if test "${ac_cv_search_ldexp+set}" = set; then :
8360 break
8362 done
8363 if test "${ac_cv_search_ldexp+set}" = set; then :
8365 else
8366 ac_cv_search_ldexp=no
8368 rm conftest.$ac_ext
8369 LIBS=$ac_func_search_save_LIBS
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8372 $as_echo "$ac_cv_search_ldexp" >&6; }
8373 ac_res=$ac_cv_search_ldexp
8374 if test "$ac_res" != no; then :
8375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8379 LDEXP_LIB="$LIBS"
8380 LIBS="$save_LIBS"
8383 # Use <inttypes.h> only if it exists,
8384 # doesn't clash with <sys/types.h>, and declares intmax_t.
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8386 $as_echo_n "checking for inttypes.h... " >&6; }
8387 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 #include <sys/types.h>
8393 #include <inttypes.h>
8395 main ()
8397 intmax_t i = -1;
8399 return 0;
8401 _ACEOF
8402 if ac_fn_c_try_compile "$LINENO"; then :
8403 gcc_cv_header_inttypes_h=yes
8404 else
8405 gcc_cv_header_inttypes_h=no
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8411 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8412 if test $gcc_cv_header_inttypes_h = yes; then
8414 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8420 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8421 sysconf strsignal getrusage nl_langinfo \
8422 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8423 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
8424 do :
8425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8427 eval as_val=\$$as_ac_var
8428 if test "x$as_val" = x""yes; then :
8429 cat >>confdefs.h <<_ACEOF
8430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8431 _ACEOF
8434 done
8437 save_CPPFLAGS="$CPPFLAGS"
8438 save_LIBS="$LIBS"
8439 LIBS="$LIBS $LIBELFLIBS"
8440 for ac_func in elf_getshdrstrndx
8441 do :
8442 ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8443 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8444 cat >>confdefs.h <<_ACEOF
8445 #define HAVE_ELF_GETSHDRSTRNDX 1
8446 _ACEOF
8448 else
8449 for ac_func in elf_getshstrndx
8450 do :
8451 ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8452 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8453 cat >>confdefs.h <<_ACEOF
8454 #define HAVE_ELF_GETSHSTRNDX 1
8455 _ACEOF
8456 if test "$cross_compiling" = yes; then :
8457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8459 as_fn_error "cannot run test program while cross compiling
8460 See \`config.log' for more details." "$LINENO" 5; }
8461 else
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #include <stdlib.h>
8465 #include <libelf.h>
8466 int main()
8468 return elf_getshstrndx (NULL, 0) == 0;
8470 _ACEOF
8471 if ac_fn_c_try_run "$LINENO"; then :
8473 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8477 conftest.$ac_objext conftest.beam conftest.$ac_ext
8481 done
8485 done
8487 LIBS="$save_LIBS"
8488 CPPFLAGS="$save_CPPFLAGS"
8490 if test x$ac_cv_func_mbstowcs = xyes; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8492 $as_echo_n "checking whether mbstowcs works... " >&6; }
8493 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 if test "$cross_compiling" = yes; then :
8497 gcc_cv_func_mbstowcs_works=yes
8498 else
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <stdlib.h>
8502 int main()
8504 mbstowcs(0, "", 0);
8505 return 0;
8507 _ACEOF
8508 if ac_fn_c_try_run "$LINENO"; then :
8509 gcc_cv_func_mbstowcs_works=yes
8510 else
8511 gcc_cv_func_mbstowcs_works=no
8513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8514 conftest.$ac_objext conftest.beam conftest.$ac_ext
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8519 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8520 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8522 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8527 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8528 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8530 else
8532 cat >>confdefs.h <<_ACEOF
8533 #define ssize_t int
8534 _ACEOF
8538 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8539 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8541 else
8543 cat >>confdefs.h <<_ACEOF
8544 #define caddr_t char *
8545 _ACEOF
8551 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8552 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8553 gcc_header_sys_mman_h=yes
8554 else
8555 gcc_header_sys_mman_h=no
8558 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8559 if test "x$ac_cv_func_mmap" = x""yes; then :
8560 gcc_func_mmap=yes
8561 else
8562 gcc_func_mmap=no
8565 if test "$gcc_header_sys_mman_h" != yes \
8566 || test "$gcc_func_mmap" != yes; then
8567 gcc_cv_func_mmap_file=no
8568 gcc_cv_func_mmap_dev_zero=no
8569 gcc_cv_func_mmap_anon=no
8570 else
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8572 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8573 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 # Add a system to this blacklist if
8577 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8578 # memory area containing the same data that you'd get if you applied
8579 # read() to the same fd. The only system known to have a problem here
8580 # is VMS, where text files have record structure.
8581 case "$host_os" in
8582 vms* | ultrix*)
8583 gcc_cv_func_mmap_file=no ;;
8585 gcc_cv_func_mmap_file=yes;;
8586 esac
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8589 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8591 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8592 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 # Add a system to this blacklist if it has mmap() but /dev/zero
8596 # does not exist, or if mmapping /dev/zero does not give anonymous
8597 # zeroed pages with both the following properties:
8598 # 1. If you map N consecutive pages in with one call, and then
8599 # unmap any subset of those pages, the pages that were not
8600 # explicitly unmapped remain accessible.
8601 # 2. If you map two adjacent blocks of memory and then unmap them
8602 # both at once, they must both go away.
8603 # Systems known to be in this category are Windows (all variants),
8604 # VMS, and Darwin.
8605 case "$host_os" in
8606 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8607 gcc_cv_func_mmap_dev_zero=no ;;
8609 gcc_cv_func_mmap_dev_zero=yes;;
8610 esac
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8613 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8615 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8617 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8618 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623 #include <sys/types.h>
8624 #include <sys/mman.h>
8625 #include <unistd.h>
8627 #ifndef MAP_ANONYMOUS
8628 #define MAP_ANONYMOUS MAP_ANON
8629 #endif
8632 main ()
8634 int n = MAP_ANONYMOUS;
8636 return 0;
8638 _ACEOF
8639 if ac_fn_c_try_compile "$LINENO"; then :
8640 gcc_cv_decl_map_anon=yes
8641 else
8642 gcc_cv_decl_map_anon=no
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8647 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8649 if test $gcc_cv_decl_map_anon = no; then
8650 gcc_cv_func_mmap_anon=no
8651 else
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8653 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8654 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8658 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8659 # doesn't give anonymous zeroed pages with the same properties listed
8660 # above for use of /dev/zero.
8661 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8662 case "$host_os" in
8663 vms* | cygwin* | pe | mingw* | sco* | udk* )
8664 gcc_cv_func_mmap_anon=no ;;
8666 gcc_cv_func_mmap_anon=yes;;
8667 esac
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8670 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8674 if test $gcc_cv_func_mmap_file = yes; then
8676 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8679 if test $gcc_cv_func_mmap_dev_zero = yes; then
8681 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8684 if test $gcc_cv_func_mmap_anon = yes; then
8686 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8691 case "${host}" in
8692 *-*-*vms*)
8693 # Under VMS, vfork works very differently than on Unix. The standard test
8694 # won't work, and it isn't easily adaptable. It makes more sense to
8695 # just force it.
8696 ac_cv_func_vfork_works=yes
8698 esac
8699 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8700 if test "x$ac_cv_type_pid_t" = x""yes; then :
8702 else
8704 cat >>confdefs.h <<_ACEOF
8705 #define pid_t int
8706 _ACEOF
8710 for ac_header in vfork.h
8711 do :
8712 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8713 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8714 cat >>confdefs.h <<_ACEOF
8715 #define HAVE_VFORK_H 1
8716 _ACEOF
8719 done
8721 for ac_func in fork vfork
8722 do :
8723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8725 eval as_val=\$$as_ac_var
8726 if test "x$as_val" = x""yes; then :
8727 cat >>confdefs.h <<_ACEOF
8728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8729 _ACEOF
8732 done
8734 if test "x$ac_cv_func_fork" = xyes; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8736 $as_echo_n "checking for working fork... " >&6; }
8737 if test "${ac_cv_func_fork_works+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 if test "$cross_compiling" = yes; then :
8741 ac_cv_func_fork_works=cross
8742 else
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 $ac_includes_default
8747 main ()
8750 /* By Ruediger Kuhlmann. */
8751 return fork () < 0;
8754 return 0;
8756 _ACEOF
8757 if ac_fn_c_try_run "$LINENO"; then :
8758 ac_cv_func_fork_works=yes
8759 else
8760 ac_cv_func_fork_works=no
8762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8763 conftest.$ac_objext conftest.beam conftest.$ac_ext
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8768 $as_echo "$ac_cv_func_fork_works" >&6; }
8770 else
8771 ac_cv_func_fork_works=$ac_cv_func_fork
8773 if test "x$ac_cv_func_fork_works" = xcross; then
8774 case $host in
8775 *-*-amigaos* | *-*-msdosdjgpp*)
8776 # Override, as these systems have only a dummy fork() stub
8777 ac_cv_func_fork_works=no
8780 ac_cv_func_fork_works=yes
8782 esac
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8784 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8786 ac_cv_func_vfork_works=$ac_cv_func_vfork
8787 if test "x$ac_cv_func_vfork" = xyes; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8789 $as_echo_n "checking for working vfork... " >&6; }
8790 if test "${ac_cv_func_vfork_works+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793 if test "$cross_compiling" = yes; then :
8794 ac_cv_func_vfork_works=cross
8795 else
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 /* Thanks to Paul Eggert for this test. */
8799 $ac_includes_default
8800 #include <sys/wait.h>
8801 #ifdef HAVE_VFORK_H
8802 # include <vfork.h>
8803 #endif
8804 /* On some sparc systems, changes by the child to local and incoming
8805 argument registers are propagated back to the parent. The compiler
8806 is told about this with #include <vfork.h>, but some compilers
8807 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8808 static variable whose address is put into a register that is
8809 clobbered by the vfork. */
8810 static void
8811 #ifdef __cplusplus
8812 sparc_address_test (int arg)
8813 # else
8814 sparc_address_test (arg) int arg;
8815 #endif
8817 static pid_t child;
8818 if (!child) {
8819 child = vfork ();
8820 if (child < 0) {
8821 perror ("vfork");
8822 _exit(2);
8824 if (!child) {
8825 arg = getpid();
8826 write(-1, "", 0);
8827 _exit (arg);
8833 main ()
8835 pid_t parent = getpid ();
8836 pid_t child;
8838 sparc_address_test (0);
8840 child = vfork ();
8842 if (child == 0) {
8843 /* Here is another test for sparc vfork register problems. This
8844 test uses lots of local variables, at least as many local
8845 variables as main has allocated so far including compiler
8846 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8847 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8848 reuse the register of parent for one of the local variables,
8849 since it will think that parent can't possibly be used any more
8850 in this routine. Assigning to the local variable will thus
8851 munge parent in the parent process. */
8852 pid_t
8853 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8854 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8855 /* Convince the compiler that p..p7 are live; otherwise, it might
8856 use the same hardware register for all 8 local variables. */
8857 if (p != p1 || p != p2 || p != p3 || p != p4
8858 || p != p5 || p != p6 || p != p7)
8859 _exit(1);
8861 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8862 from child file descriptors. If the child closes a descriptor
8863 before it execs or exits, this munges the parent's descriptor
8864 as well. Test for this by closing stdout in the child. */
8865 _exit(close(fileno(stdout)) != 0);
8866 } else {
8867 int status;
8868 struct stat st;
8870 while (wait(&status) != child)
8872 return (
8873 /* Was there some problem with vforking? */
8874 child < 0
8876 /* Did the child fail? (This shouldn't happen.) */
8877 || status
8879 /* Did the vfork/compiler bug occur? */
8880 || parent != getpid()
8882 /* Did the file descriptor bug occur? */
8883 || fstat(fileno(stdout), &st) != 0
8887 _ACEOF
8888 if ac_fn_c_try_run "$LINENO"; then :
8889 ac_cv_func_vfork_works=yes
8890 else
8891 ac_cv_func_vfork_works=no
8893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8894 conftest.$ac_objext conftest.beam conftest.$ac_ext
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8899 $as_echo "$ac_cv_func_vfork_works" >&6; }
8902 if test "x$ac_cv_func_fork_works" = xcross; then
8903 ac_cv_func_vfork_works=$ac_cv_func_vfork
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8905 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8908 if test "x$ac_cv_func_vfork_works" = xyes; then
8910 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8912 else
8914 $as_echo "#define vfork fork" >>confdefs.h
8917 if test "x$ac_cv_func_fork_works" = xyes; then
8919 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8925 if test "X$prefix" = "XNONE"; then
8926 acl_final_prefix="$ac_default_prefix"
8927 else
8928 acl_final_prefix="$prefix"
8930 if test "X$exec_prefix" = "XNONE"; then
8931 acl_final_exec_prefix='${prefix}'
8932 else
8933 acl_final_exec_prefix="$exec_prefix"
8935 acl_save_prefix="$prefix"
8936 prefix="$acl_final_prefix"
8937 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8938 prefix="$acl_save_prefix"
8941 # Check whether --with-gnu-ld was given.
8942 if test "${with_gnu_ld+set}" = set; then :
8943 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8944 else
8945 with_gnu_ld=no
8948 # Prepare PATH_SEPARATOR.
8949 # The user is always right.
8950 if test "${PATH_SEPARATOR+set}" != set; then
8951 echo "#! /bin/sh" >conf$$.sh
8952 echo "exit 0" >>conf$$.sh
8953 chmod +x conf$$.sh
8954 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8955 PATH_SEPARATOR=';'
8956 else
8957 PATH_SEPARATOR=:
8959 rm -f conf$$.sh
8961 ac_prog=ld
8962 if test "$GCC" = yes; then
8963 # Check if gcc -print-prog-name=ld gives a path.
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8965 $as_echo_n "checking for ld used by GCC... " >&6; }
8966 case $host in
8967 *-*-mingw*)
8968 # gcc leaves a trailing carriage return which upsets mingw
8969 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8971 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8972 esac
8973 case $ac_prog in
8974 # Accept absolute paths.
8975 [\\/]* | [A-Za-z]:[\\/]*)
8976 re_direlt='/[^/][^/]*/\.\./'
8977 # Canonicalize the path of ld
8978 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8979 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8980 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8981 done
8982 test -z "$LD" && LD="$ac_prog"
8985 # If it fails, then pretend we aren't using GCC.
8986 ac_prog=ld
8989 # If it is relative, then search for the first ld in PATH.
8990 with_gnu_ld=unknown
8992 esac
8993 elif test "$with_gnu_ld" = yes; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8995 $as_echo_n "checking for GNU ld... " >&6; }
8996 else
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8998 $as_echo_n "checking for non-GNU ld... " >&6; }
9000 if test "${acl_cv_path_LD+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 if test -z "$LD"; then
9004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9005 for ac_dir in $PATH; do
9006 test -z "$ac_dir" && ac_dir=.
9007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9008 acl_cv_path_LD="$ac_dir/$ac_prog"
9009 # Check to see if the program is GNU ld. I'd rather use --version,
9010 # but apparently some GNU ld's only accept -v.
9011 # Break only if it was the GNU/non-GNU ld that we prefer.
9012 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9013 test "$with_gnu_ld" != no && break
9014 else
9015 test "$with_gnu_ld" != yes && break
9018 done
9019 IFS="$ac_save_ifs"
9020 else
9021 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9025 LD="$acl_cv_path_LD"
9026 if test -n "$LD"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9028 $as_echo "$LD" >&6; }
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9033 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9035 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9036 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9040 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9041 acl_cv_prog_gnu_ld=yes
9042 else
9043 acl_cv_prog_gnu_ld=no
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9047 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9048 with_gnu_ld=$acl_cv_prog_gnu_ld
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9053 $as_echo_n "checking for shared library run path origin... " >&6; }
9054 if test "${acl_cv_rpath+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9058 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9059 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9060 . ./conftest.sh
9061 rm -f ./conftest.sh
9062 acl_cv_rpath=done
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9066 $as_echo "$acl_cv_rpath" >&6; }
9067 wl="$acl_cv_wl"
9068 libext="$acl_cv_libext"
9069 shlibext="$acl_cv_shlibext"
9070 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9071 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9072 hardcode_direct="$acl_cv_hardcode_direct"
9073 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9074 # Check whether --enable-rpath was given.
9075 if test "${enable_rpath+set}" = set; then :
9076 enableval=$enable_rpath; :
9077 else
9078 enable_rpath=yes
9088 use_additional=yes
9090 acl_save_prefix="$prefix"
9091 prefix="$acl_final_prefix"
9092 acl_save_exec_prefix="$exec_prefix"
9093 exec_prefix="$acl_final_exec_prefix"
9095 eval additional_includedir=\"$includedir\"
9096 eval additional_libdir=\"$libdir\"
9098 exec_prefix="$acl_save_exec_prefix"
9099 prefix="$acl_save_prefix"
9102 # Check whether --with-libiconv-prefix was given.
9103 if test "${with_libiconv_prefix+set}" = set; then :
9104 withval=$with_libiconv_prefix;
9105 if test "X$withval" = "Xno"; then
9106 use_additional=no
9107 else
9108 if test "X$withval" = "X"; then
9110 acl_save_prefix="$prefix"
9111 prefix="$acl_final_prefix"
9112 acl_save_exec_prefix="$exec_prefix"
9113 exec_prefix="$acl_final_exec_prefix"
9115 eval additional_includedir=\"$includedir\"
9116 eval additional_libdir=\"$libdir\"
9118 exec_prefix="$acl_save_exec_prefix"
9119 prefix="$acl_save_prefix"
9121 else
9122 additional_includedir="$withval/include"
9123 additional_libdir="$withval/lib"
9129 LIBICONV=
9130 LTLIBICONV=
9131 INCICONV=
9132 rpathdirs=
9133 ltrpathdirs=
9134 names_already_handled=
9135 names_next_round='iconv '
9136 while test -n "$names_next_round"; do
9137 names_this_round="$names_next_round"
9138 names_next_round=
9139 for name in $names_this_round; do
9140 already_handled=
9141 for n in $names_already_handled; do
9142 if test "$n" = "$name"; then
9143 already_handled=yes
9144 break
9146 done
9147 if test -z "$already_handled"; then
9148 names_already_handled="$names_already_handled $name"
9149 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9150 eval value=\"\$HAVE_LIB$uppername\"
9151 if test -n "$value"; then
9152 if test "$value" = yes; then
9153 eval value=\"\$LIB$uppername\"
9154 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9155 eval value=\"\$LTLIB$uppername\"
9156 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9157 else
9160 else
9161 found_dir=
9162 found_la=
9163 found_so=
9164 found_a=
9165 if test $use_additional = yes; then
9166 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9167 found_dir="$additional_libdir"
9168 found_so="$additional_libdir/lib$name.$shlibext"
9169 if test -f "$additional_libdir/lib$name.la"; then
9170 found_la="$additional_libdir/lib$name.la"
9172 else
9173 if test -f "$additional_libdir/lib$name.$libext"; then
9174 found_dir="$additional_libdir"
9175 found_a="$additional_libdir/lib$name.$libext"
9176 if test -f "$additional_libdir/lib$name.la"; then
9177 found_la="$additional_libdir/lib$name.la"
9182 if test "X$found_dir" = "X"; then
9183 for x in $LDFLAGS $LTLIBICONV; do
9185 acl_save_prefix="$prefix"
9186 prefix="$acl_final_prefix"
9187 acl_save_exec_prefix="$exec_prefix"
9188 exec_prefix="$acl_final_exec_prefix"
9189 eval x=\"$x\"
9190 exec_prefix="$acl_save_exec_prefix"
9191 prefix="$acl_save_prefix"
9193 case "$x" in
9194 -L*)
9195 dir=`echo "X$x" | sed -e 's/^X-L//'`
9196 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9197 found_dir="$dir"
9198 found_so="$dir/lib$name.$shlibext"
9199 if test -f "$dir/lib$name.la"; then
9200 found_la="$dir/lib$name.la"
9202 else
9203 if test -f "$dir/lib$name.$libext"; then
9204 found_dir="$dir"
9205 found_a="$dir/lib$name.$libext"
9206 if test -f "$dir/lib$name.la"; then
9207 found_la="$dir/lib$name.la"
9212 esac
9213 if test "X$found_dir" != "X"; then
9214 break
9216 done
9218 if test "X$found_dir" != "X"; then
9219 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9220 if test "X$found_so" != "X"; then
9221 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9222 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9223 else
9224 haveit=
9225 for x in $ltrpathdirs; do
9226 if test "X$x" = "X$found_dir"; then
9227 haveit=yes
9228 break
9230 done
9231 if test -z "$haveit"; then
9232 ltrpathdirs="$ltrpathdirs $found_dir"
9234 if test "$hardcode_direct" = yes; then
9235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9236 else
9237 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9238 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9239 haveit=
9240 for x in $rpathdirs; do
9241 if test "X$x" = "X$found_dir"; then
9242 haveit=yes
9243 break
9245 done
9246 if test -z "$haveit"; then
9247 rpathdirs="$rpathdirs $found_dir"
9249 else
9250 haveit=
9251 for x in $LDFLAGS $LIBICONV; do
9253 acl_save_prefix="$prefix"
9254 prefix="$acl_final_prefix"
9255 acl_save_exec_prefix="$exec_prefix"
9256 exec_prefix="$acl_final_exec_prefix"
9257 eval x=\"$x\"
9258 exec_prefix="$acl_save_exec_prefix"
9259 prefix="$acl_save_prefix"
9261 if test "X$x" = "X-L$found_dir"; then
9262 haveit=yes
9263 break
9265 done
9266 if test -z "$haveit"; then
9267 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9269 if test "$hardcode_minus_L" != no; then
9270 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9271 else
9272 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9277 else
9278 if test "X$found_a" != "X"; then
9279 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9280 else
9281 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9284 additional_includedir=
9285 case "$found_dir" in
9286 */lib | */lib/)
9287 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9288 additional_includedir="$basedir/include"
9290 esac
9291 if test "X$additional_includedir" != "X"; then
9292 if test "X$additional_includedir" != "X/usr/include"; then
9293 haveit=
9294 if test "X$additional_includedir" = "X/usr/local/include"; then
9295 if test -n "$GCC"; then
9296 case $host_os in
9297 linux*) haveit=yes;;
9298 esac
9301 if test -z "$haveit"; then
9302 for x in $CPPFLAGS $INCICONV; do
9304 acl_save_prefix="$prefix"
9305 prefix="$acl_final_prefix"
9306 acl_save_exec_prefix="$exec_prefix"
9307 exec_prefix="$acl_final_exec_prefix"
9308 eval x=\"$x\"
9309 exec_prefix="$acl_save_exec_prefix"
9310 prefix="$acl_save_prefix"
9312 if test "X$x" = "X-I$additional_includedir"; then
9313 haveit=yes
9314 break
9316 done
9317 if test -z "$haveit"; then
9318 if test -d "$additional_includedir"; then
9319 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9325 if test -n "$found_la"; then
9326 save_libdir="$libdir"
9327 case "$found_la" in
9328 */* | *\\*) . "$found_la" ;;
9329 *) . "./$found_la" ;;
9330 esac
9331 libdir="$save_libdir"
9332 for dep in $dependency_libs; do
9333 case "$dep" in
9334 -L*)
9335 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9336 if test "X$additional_libdir" != "X/usr/lib"; then
9337 haveit=
9338 if test "X$additional_libdir" = "X/usr/local/lib"; then
9339 if test -n "$GCC"; then
9340 case $host_os in
9341 linux*) haveit=yes;;
9342 esac
9345 if test -z "$haveit"; then
9346 haveit=
9347 for x in $LDFLAGS $LIBICONV; do
9349 acl_save_prefix="$prefix"
9350 prefix="$acl_final_prefix"
9351 acl_save_exec_prefix="$exec_prefix"
9352 exec_prefix="$acl_final_exec_prefix"
9353 eval x=\"$x\"
9354 exec_prefix="$acl_save_exec_prefix"
9355 prefix="$acl_save_prefix"
9357 if test "X$x" = "X-L$additional_libdir"; then
9358 haveit=yes
9359 break
9361 done
9362 if test -z "$haveit"; then
9363 if test -d "$additional_libdir"; then
9364 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9367 haveit=
9368 for x in $LDFLAGS $LTLIBICONV; do
9370 acl_save_prefix="$prefix"
9371 prefix="$acl_final_prefix"
9372 acl_save_exec_prefix="$exec_prefix"
9373 exec_prefix="$acl_final_exec_prefix"
9374 eval x=\"$x\"
9375 exec_prefix="$acl_save_exec_prefix"
9376 prefix="$acl_save_prefix"
9378 if test "X$x" = "X-L$additional_libdir"; then
9379 haveit=yes
9380 break
9382 done
9383 if test -z "$haveit"; then
9384 if test -d "$additional_libdir"; then
9385 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9391 -R*)
9392 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9393 if test "$enable_rpath" != no; then
9394 haveit=
9395 for x in $rpathdirs; do
9396 if test "X$x" = "X$dir"; then
9397 haveit=yes
9398 break
9400 done
9401 if test -z "$haveit"; then
9402 rpathdirs="$rpathdirs $dir"
9404 haveit=
9405 for x in $ltrpathdirs; do
9406 if test "X$x" = "X$dir"; then
9407 haveit=yes
9408 break
9410 done
9411 if test -z "$haveit"; then
9412 ltrpathdirs="$ltrpathdirs $dir"
9416 -l*)
9417 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9419 *.la)
9420 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9423 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9424 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9426 esac
9427 done
9429 else
9430 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9431 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9435 done
9436 done
9437 if test "X$rpathdirs" != "X"; then
9438 if test -n "$hardcode_libdir_separator"; then
9439 alldirs=
9440 for found_dir in $rpathdirs; do
9441 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9442 done
9443 acl_save_libdir="$libdir"
9444 libdir="$alldirs"
9445 eval flag=\"$hardcode_libdir_flag_spec\"
9446 libdir="$acl_save_libdir"
9447 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9448 else
9449 for found_dir in $rpathdirs; do
9450 acl_save_libdir="$libdir"
9451 libdir="$found_dir"
9452 eval flag=\"$hardcode_libdir_flag_spec\"
9453 libdir="$acl_save_libdir"
9454 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9455 done
9458 if test "X$ltrpathdirs" != "X"; then
9459 for found_dir in $ltrpathdirs; do
9460 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9461 done
9470 am_save_CPPFLAGS="$CPPFLAGS"
9472 for element in $INCICONV; do
9473 haveit=
9474 for x in $CPPFLAGS; do
9476 acl_save_prefix="$prefix"
9477 prefix="$acl_final_prefix"
9478 acl_save_exec_prefix="$exec_prefix"
9479 exec_prefix="$acl_final_exec_prefix"
9480 eval x=\"$x\"
9481 exec_prefix="$acl_save_exec_prefix"
9482 prefix="$acl_save_prefix"
9484 if test "X$x" = "X$element"; then
9485 haveit=yes
9486 break
9488 done
9489 if test -z "$haveit"; then
9490 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9492 done
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9496 $as_echo_n "checking for iconv... " >&6; }
9497 if test "${am_cv_func_iconv+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9501 am_cv_func_iconv="no, consider installing GNU libiconv"
9502 am_cv_lib_iconv=no
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505 #include <stdlib.h>
9506 #include <iconv.h>
9508 main ()
9510 iconv_t cd = iconv_open("","");
9511 iconv(cd,NULL,NULL,NULL,NULL);
9512 iconv_close(cd);
9514 return 0;
9516 _ACEOF
9517 if ac_fn_c_try_link "$LINENO"; then :
9518 am_cv_func_iconv=yes
9520 rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522 if test "$am_cv_func_iconv" != yes; then
9523 am_save_LIBS="$LIBS"
9524 LIBS="$LIBS $LIBICONV"
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 #include <stdlib.h>
9528 #include <iconv.h>
9530 main ()
9532 iconv_t cd = iconv_open("","");
9533 iconv(cd,NULL,NULL,NULL,NULL);
9534 iconv_close(cd);
9536 return 0;
9538 _ACEOF
9539 if ac_fn_c_try_link "$LINENO"; then :
9540 am_cv_lib_iconv=yes
9541 am_cv_func_iconv=yes
9543 rm -f core conftest.err conftest.$ac_objext \
9544 conftest$ac_exeext conftest.$ac_ext
9545 LIBS="$am_save_LIBS"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9550 $as_echo "$am_cv_func_iconv" >&6; }
9551 if test "$am_cv_func_iconv" = yes; then
9553 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9556 if test "$am_cv_lib_iconv" = yes; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9558 $as_echo_n "checking how to link with libiconv... " >&6; }
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9560 $as_echo "$LIBICONV" >&6; }
9561 else
9562 CPPFLAGS="$am_save_CPPFLAGS"
9563 LIBICONV=
9564 LTLIBICONV=
9569 if test "$am_cv_func_iconv" = yes; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9571 $as_echo_n "checking for iconv declaration... " >&6; }
9572 if test "${am_cv_proto_iconv+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9579 #include <stdlib.h>
9580 #include <iconv.h>
9581 extern
9582 #ifdef __cplusplus
9584 #endif
9585 #if defined(__STDC__) || defined(__cplusplus)
9586 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9587 #else
9588 size_t iconv();
9589 #endif
9592 main ()
9596 return 0;
9598 _ACEOF
9599 if ac_fn_c_try_compile "$LINENO"; then :
9600 am_cv_proto_iconv_arg1=""
9601 else
9602 am_cv_proto_iconv_arg1="const"
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 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);"
9608 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9610 }$am_cv_proto_iconv" >&5
9611 $as_echo "${ac_t:-
9612 }$am_cv_proto_iconv" >&6; }
9614 cat >>confdefs.h <<_ACEOF
9615 #define ICONV_CONST $am_cv_proto_iconv_arg1
9616 _ACEOF
9620 # Until we have in-tree GNU iconv:
9621 LIBICONV_DEP=
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9626 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9627 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 #include <locale.h>
9634 main ()
9636 return LC_MESSAGES
9638 return 0;
9640 _ACEOF
9641 if ac_fn_c_try_link "$LINENO"; then :
9642 am_cv_val_LC_MESSAGES=yes
9643 else
9644 am_cv_val_LC_MESSAGES=no
9646 rm -f core conftest.err conftest.$ac_objext \
9647 conftest$ac_exeext conftest.$ac_ext
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9650 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9651 if test $am_cv_val_LC_MESSAGES = yes; then
9653 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9660 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9661 if test "${am_cv_langinfo_codeset+set}" = set; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 #include <langinfo.h>
9668 main ()
9670 char* cs = nl_langinfo(CODESET);
9672 return 0;
9674 _ACEOF
9675 if ac_fn_c_try_link "$LINENO"; then :
9676 am_cv_langinfo_codeset=yes
9677 else
9678 am_cv_langinfo_codeset=no
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9685 $as_echo "$am_cv_langinfo_codeset" >&6; }
9686 if test $am_cv_langinfo_codeset = yes; then
9688 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9693 # We will need to find libiberty.h and ansidecl.h
9694 saved_CFLAGS="$CFLAGS"
9695 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9696 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9697 strsignal strstr strverscmp \
9698 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9699 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
9701 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9703 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9704 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709 #undef $ac_tr_decl
9710 #define $ac_tr_decl 1
9712 #include "ansidecl.h"
9713 #include "system.h"
9716 main ()
9718 #ifndef $ac_func
9719 char *(*pfn) = (char *(*)) $ac_func ;
9720 #endif
9722 return 0;
9724 _ACEOF
9725 if ac_fn_c_try_compile "$LINENO"; then :
9726 eval "gcc_cv_have_decl_$ac_func=yes"
9727 else
9728 eval "gcc_cv_have_decl_$ac_func=no"
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9733 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9735 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9736 #define $ac_tr_decl 1
9737 _ACEOF
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9742 #define $ac_tr_decl 0
9743 _ACEOF
9747 done
9750 for ac_func in getrlimit setrlimit getrusage
9752 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9754 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9755 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760 #undef $ac_tr_decl
9761 #define $ac_tr_decl 1
9763 #include "ansidecl.h"
9764 #include "system.h"
9765 #ifdef HAVE_SYS_RESOURCE_H
9766 #include <sys/resource.h>
9767 #endif
9771 main ()
9773 #ifndef $ac_func
9774 char *(*pfn) = (char *(*)) $ac_func ;
9775 #endif
9777 return 0;
9779 _ACEOF
9780 if ac_fn_c_try_compile "$LINENO"; then :
9781 eval "gcc_cv_have_decl_$ac_func=yes"
9782 else
9783 eval "gcc_cv_have_decl_$ac_func=no"
9785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9790 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9791 #define $ac_tr_decl 1
9792 _ACEOF
9794 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9797 #define $ac_tr_decl 0
9798 _ACEOF
9802 done
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9808 #include "ansidecl.h"
9809 #include "system.h"
9810 #ifdef HAVE_SYS_RESOURCE_H
9811 #include <sys/resource.h>
9812 #endif
9815 main ()
9817 rlim_t l = 0;
9819 return 0;
9821 _ACEOF
9822 if ac_fn_c_try_compile "$LINENO"; then :
9824 else
9826 $as_echo "#define rlim_t long" >>confdefs.h
9829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9832 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9833 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9834 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9835 for ac_func in ldgetname
9837 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9839 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9840 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9845 #undef $ac_tr_decl
9846 #define $ac_tr_decl 1
9848 #include "ansidecl.h"
9849 #include "system.h"
9850 #ifdef HAVE_LDFCN_H
9851 #undef FREAD
9852 #undef FWRITE
9853 #include <ldfcn.h>
9854 #endif
9858 main ()
9860 #ifndef $ac_func
9861 char *(*pfn) = (char *(*)) $ac_func ;
9862 #endif
9864 return 0;
9866 _ACEOF
9867 if ac_fn_c_try_compile "$LINENO"; then :
9868 eval "gcc_cv_have_decl_$ac_func=yes"
9869 else
9870 eval "gcc_cv_have_decl_$ac_func=no"
9872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9877 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9878 #define $ac_tr_decl 1
9879 _ACEOF
9881 else
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9884 #define $ac_tr_decl 0
9885 _ACEOF
9889 done
9892 for ac_func in times
9894 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9896 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9897 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 #undef $ac_tr_decl
9903 #define $ac_tr_decl 1
9905 #include "ansidecl.h"
9906 #include "system.h"
9907 #ifdef HAVE_SYS_TIMES_H
9908 #include <sys/times.h>
9909 #endif
9913 main ()
9915 #ifndef $ac_func
9916 char *(*pfn) = (char *(*)) $ac_func ;
9917 #endif
9919 return 0;
9921 _ACEOF
9922 if ac_fn_c_try_compile "$LINENO"; then :
9923 eval "gcc_cv_have_decl_$ac_func=yes"
9924 else
9925 eval "gcc_cv_have_decl_$ac_func=no"
9927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9932 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9933 #define $ac_tr_decl 1
9934 _ACEOF
9936 else
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9939 #define $ac_tr_decl 0
9940 _ACEOF
9944 done
9947 for ac_func in sigaltstack
9949 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9951 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9952 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957 #undef $ac_tr_decl
9958 #define $ac_tr_decl 1
9960 #include "ansidecl.h"
9961 #include "system.h"
9962 #include <signal.h>
9966 main ()
9968 #ifndef $ac_func
9969 char *(*pfn) = (char *(*)) $ac_func ;
9970 #endif
9972 return 0;
9974 _ACEOF
9975 if ac_fn_c_try_compile "$LINENO"; then :
9976 eval "gcc_cv_have_decl_$ac_func=yes"
9977 else
9978 eval "gcc_cv_have_decl_$ac_func=no"
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9983 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9985 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9986 #define $ac_tr_decl 1
9987 _ACEOF
9989 else
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9992 #define $ac_tr_decl 0
9993 _ACEOF
9997 done
10000 # More time-related stuff.
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10002 $as_echo_n "checking for struct tms... " >&6; }
10003 if test "${ac_cv_struct_tms+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10010 #include "ansidecl.h"
10011 #include "system.h"
10012 #ifdef HAVE_SYS_TIMES_H
10013 #include <sys/times.h>
10014 #endif
10017 main ()
10019 struct tms tms;
10021 return 0;
10023 _ACEOF
10024 if ac_fn_c_try_compile "$LINENO"; then :
10025 ac_cv_struct_tms=yes
10026 else
10027 ac_cv_struct_tms=no
10029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10032 $as_echo "$ac_cv_struct_tms" >&6; }
10033 if test $ac_cv_struct_tms = yes; then
10035 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10039 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10040 # revisit after autoconf 2.50.
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10042 $as_echo_n "checking for clock_t... " >&6; }
10043 if test "${gcc_cv_type_clock_t+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10050 #include "ansidecl.h"
10051 #include "system.h"
10054 main ()
10056 clock_t x;
10058 return 0;
10060 _ACEOF
10061 if ac_fn_c_try_compile "$LINENO"; then :
10062 gcc_cv_type_clock_t=yes
10063 else
10064 gcc_cv_type_clock_t=no
10066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10069 $as_echo "$gcc_cv_type_clock_t" >&6; }
10070 if test $gcc_cv_type_clock_t = yes; then
10072 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10076 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10077 CFLAGS="$saved_CFLAGS"
10079 # Check whether --enable-initfini-array was given.
10080 if test "${enable_initfini_array+set}" = set; then :
10081 enableval=$enable_initfini_array;
10082 else
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10085 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10086 if test "${gcc_cv_initfini_array+set}" = set; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 if test "$cross_compiling" = yes; then :
10090 gcc_cv_initfini_array=no
10091 else
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10095 static int x = -1;
10096 int main (void) { return x; }
10097 int foo (void) { x = 0; }
10098 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10099 _ACEOF
10100 if ac_fn_c_try_run "$LINENO"; then :
10101 gcc_cv_initfini_array=yes
10102 else
10103 gcc_cv_initfini_array=no
10105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10106 conftest.$ac_objext conftest.beam conftest.$ac_ext
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10111 $as_echo "$gcc_cv_initfini_array" >&6; }
10112 enable_initfini_array=$gcc_cv_initfini_array
10116 if test $enable_initfini_array = yes; then
10118 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10122 # mkdir takes a single argument on some systems.
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10124 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10125 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10131 #include <sys/types.h>
10132 #ifdef HAVE_SYS_STAT_H
10133 # include <sys/stat.h>
10134 #endif
10135 #ifdef HAVE_UNISTD_H
10136 # include <unistd.h>
10137 #endif
10138 #ifdef HAVE_DIRECT_H
10139 # include <direct.h>
10140 #endif
10142 main ()
10144 mkdir ("foo", 0);
10146 return 0;
10148 _ACEOF
10149 if ac_fn_c_try_compile "$LINENO"; then :
10150 gcc_cv_mkdir_takes_one_arg=no
10151 else
10152 gcc_cv_mkdir_takes_one_arg=yes
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10157 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10158 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10160 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10165 # File extensions
10166 manext='.1'
10167 objext='.o'
10171 # With Setjmp/Longjmp based exception handling.
10172 # Check whether --enable-sjlj-exceptions was given.
10173 if test "${enable_sjlj_exceptions+set}" = set; then :
10174 enableval=$enable_sjlj_exceptions; case $target in
10175 *-*-hpux10*)
10176 if test $enableval != yes; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10178 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10179 enableval=yes
10182 esac
10183 force_sjlj_exceptions=yes
10184 else
10185 case $target in
10186 *-*-hpux10*)
10187 force_sjlj_exceptions=yes
10188 enableval=yes
10191 force_sjlj_exceptions=no
10193 esac
10196 if test $force_sjlj_exceptions = yes; then
10197 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10199 cat >>confdefs.h <<_ACEOF
10200 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10201 _ACEOF
10205 # For platforms with the unwind ABI which includes an unwind library,
10206 # libunwind, we can choose to use the system libunwind.
10207 # config.gcc also contains tests of with_system_libunwind.
10210 # Check whether --with-system-libunwind was given.
10211 if test "${with_system_libunwind+set}" = set; then :
10212 withval=$with_system_libunwind;
10215 # If system-libunwind was not specifically set, pick a default setting.
10216 if test x$with_system_libunwind = x; then
10217 case ${target} in
10218 ia64-*-hpux*) with_system_libunwind=yes ;;
10219 *) with_system_libunwind=no ;;
10220 esac
10222 # Based on system-libunwind and target, do we have ipinfo?
10223 if test x$with_system_libunwind = xyes; then
10224 case ${target} in
10225 ia64-*-*) have_unwind_getipinfo=no ;;
10226 *) have_unwind_getipinfo=yes ;;
10227 esac
10228 else
10229 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10231 case ${target} in
10232 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10233 *) have_unwind_getipinfo=yes ;;
10234 esac
10238 if test x$have_unwind_getipinfo = xyes; then
10240 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10245 # --------------------------------------------------------
10246 # Build, host, and target specific configuration fragments
10247 # --------------------------------------------------------
10249 # Collect build-machine-specific information.
10250 . ${srcdir}/config.build
10252 # Collect host-machine-specific information.
10253 . ${srcdir}/config.host
10255 target_gtfiles=
10257 # Collect target-machine-specific information.
10258 . ${srcdir}/config.gcc
10260 extra_objs="${host_extra_objs} ${extra_objs}"
10261 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10263 # Default the target-machine variables that were not explicitly set.
10264 if test x"$tm_file" = x
10265 then tm_file=$cpu_type/$cpu_type.h; fi
10267 if test x"$extra_headers" = x
10268 then extra_headers=; fi
10270 if test x$md_file = x
10271 then md_file=$cpu_type/$cpu_type.md; fi
10273 if test x$out_file = x
10274 then out_file=$cpu_type/$cpu_type.c; fi
10276 if test x"$tmake_file" = x
10277 then tmake_file=$cpu_type/t-$cpu_type
10280 if test x"$dwarf2" = xyes
10281 then tm_file="$tm_file tm-dwarf2.h"
10284 # Say what files are being used for the output code and MD file.
10285 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10286 echo "Using \`$srcdir/config/$md_file' as machine description file."
10288 # If any of the xm_file variables contain nonexistent files, warn
10289 # about them and drop them.
10292 for x in $build_xm_file; do
10293 if test -f $srcdir/config/$x
10294 then bx="$bx $x"
10295 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10296 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10298 done
10299 build_xm_file="$bx"
10302 for x in $host_xm_file; do
10303 if test -f $srcdir/config/$x
10304 then hx="$hx $x"
10305 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10306 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10308 done
10309 host_xm_file="$hx"
10312 for x in $xm_file; do
10313 if test -f $srcdir/config/$x
10314 then tx="$tx $x"
10315 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10316 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10318 done
10319 xm_file="$tx"
10321 count=a
10322 for f in $tm_file; do
10323 count=${count}x
10324 done
10325 if test $count = ax; then
10326 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10327 else
10328 echo "Using the following target machine macro files:"
10329 for f in $tm_file; do
10330 echo " $srcdir/config/$f"
10331 done
10334 if test x$need_64bit_hwint = xyes; then
10336 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10340 if test x$use_long_long_for_widest_fast_int = xyes; then
10342 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10346 count=a
10347 for f in $host_xm_file; do
10348 count=${count}x
10349 done
10350 if test $count = a; then
10352 elif test $count = ax; then
10353 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10354 else
10355 echo "Using the following host machine macro files:"
10356 for f in $host_xm_file; do
10357 echo " $srcdir/config/$f"
10358 done
10360 echo "Using ${out_host_hook_obj} for host machine hooks."
10362 if test "$host_xm_file" != "$build_xm_file"; then
10363 count=a
10364 for f in $build_xm_file; do
10365 count=${count}x
10366 done
10367 if test $count = a; then
10369 elif test $count = ax; then
10370 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10371 else
10372 echo "Using the following build machine macro files:"
10373 for f in $build_xm_file; do
10374 echo " $srcdir/config/$f"
10375 done
10379 case ${host} in
10380 powerpc*-*-darwin*)
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10382 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10383 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10389 #include <sys/cdefs.h>
10390 #include <sys/signal.h>
10391 #include <ucontext.h>
10392 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10394 _ACEOF
10395 if ac_fn_c_try_compile "$LINENO"; then :
10396 gcc_cv_mcontext_underscores=no
10397 else
10398 gcc_cv_mcontext_underscores=yes
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10403 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10404 if test $gcc_cv_mcontext_underscores = yes; then
10406 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10410 esac
10412 # ---------
10413 # Threading
10414 # ---------
10416 # Check if a valid thread package
10417 case ${enable_threads} in
10418 "" | no)
10419 # No threads
10420 target_thread_file='single'
10422 yes)
10423 # default
10424 target_thread_file='single'
10426 aix | dce | gnat | irix | posix | posix95 | rtems | \
10427 single | solaris | vxworks | win32 | mipssde)
10428 target_thread_file=${enable_threads}
10431 echo "${enable_threads} is an unknown thread package" 1>&2
10432 exit 1
10434 esac
10436 if test x${thread_file} = x; then
10437 # No thread file set by target-specific clauses in config.gcc,
10438 # so use file chosen by default logic above
10439 thread_file=${target_thread_file}
10442 # Make gthr-default.h if we have a thread file.
10443 gthread_flags=
10444 if test $thread_file != single; then
10445 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10446 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10447 rm -f gthr-default.h-t
10448 else
10449 mv -f gthr-default.h-t gthr-default.h
10451 gthread_flags=-DHAVE_GTHR_DEFAULT
10455 # --------
10456 # UNSORTED
10457 # --------
10459 use_cxa_atexit=no
10460 if test x$enable___cxa_atexit = xyes || \
10461 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10462 if test x$host = x$target; then
10463 case $host in
10464 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10465 # keyed to flag_use_cxa_atexit
10466 *-*-mingw32*)
10467 use_cxa_atexit=yes
10470 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10471 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10472 use_cxa_atexit=yes
10473 else
10474 echo "__cxa_atexit can't be enabled on this target"
10478 esac
10479 else
10480 # We can't check for __cxa_atexit when building a cross, so assume
10481 # it is available
10482 use_cxa_atexit=yes
10484 if test x$use_cxa_atexit = xyes; then
10486 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10491 # Look for a file containing extra machine modes.
10492 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10493 extra_modes_file='$(srcdir)'/config/${extra_modes}
10496 cat >>confdefs.h <<_ACEOF
10497 #define EXTRA_MODES_FILE "config/$extra_modes"
10498 _ACEOF
10502 # Convert extra_options into a form suitable for Makefile use.
10503 extra_opt_files=
10504 for f in $extra_options; do
10505 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10506 done
10509 # auto-host.h is the file containing items generated by autoconf and is
10510 # the first file included by config.h.
10511 # If host=build, it is correct to have bconfig include auto-host.h
10512 # as well. If host!=build, we are in error and need to do more
10513 # work to find out the build config parameters.
10514 if test x$host = x$build
10515 then
10516 build_auto=auto-host.h
10517 else
10518 # We create a subdir, then run autoconf in the subdir.
10519 # To prevent recursion we set host and build for the new
10520 # invocation of configure to the build for this invocation
10521 # of configure.
10522 tempdir=build.$$
10523 rm -rf $tempdir
10524 mkdir $tempdir
10525 cd $tempdir
10526 case ${srcdir} in
10527 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10528 *) realsrcdir=../${srcdir};;
10529 esac
10530 saved_CFLAGS="${CFLAGS}"
10531 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10532 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10533 ${realsrcdir}/configure \
10534 --enable-languages=${enable_languages-all} \
10535 --target=$target_alias --host=$build_alias --build=$build_alias
10536 CFLAGS="${saved_CFLAGS}"
10538 # We just finished tests for the build machine, so rename
10539 # the file auto-build.h in the gcc directory.
10540 mv auto-host.h ../auto-build.h
10541 cd ..
10542 rm -rf $tempdir
10543 build_auto=auto-build.h
10547 tm_file="${tm_file} defaults.h"
10548 tm_p_file="${tm_p_file} tm-preds.h"
10549 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10550 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10551 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10552 # put this back in temporarily.
10553 xm_file="auto-host.h ansidecl.h ${xm_file}"
10555 # --------
10556 # UNSORTED
10557 # --------
10559 # Compile in configure arguments.
10560 if test -f configargs.h ; then
10561 # Being re-configured.
10562 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10563 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10564 else
10565 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10568 # Double all backslashes and backslash all quotes to turn
10569 # gcc_config_arguments into a C string.
10570 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10571 $gcc_config_arguments
10573 gcc_config_arguments_str=`cat conftest.out`
10574 rm -f conftest.out
10576 cat > configargs.h <<EOF
10577 /* Generated automatically. */
10578 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10579 static const char thread_model[] = "$thread_file";
10581 static const struct {
10582 const char *name, *value;
10583 } configure_default_options[] = $configure_default_options;
10586 gcc_BASEVER=`cat $srcdir/BASE-VER`
10587 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10588 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10589 if test -f $srcdir/REVISION ; then
10590 gcc_REVISION=`cat $srcdir/REVISION`
10591 else
10592 gcc_REVISION=""
10594 cat > plugin-version.h <<EOF
10595 #include "configargs.h"
10597 static char basever[] = "$gcc_BASEVER";
10598 static char datestamp[] = "$gcc_DATESTAMP";
10599 static char devphase[] = "$gcc_DEVPHASE";
10600 static char revision[] = "$gcc_REVISION";
10602 /* FIXME plugins: We should make the version information more precise.
10603 One way to do is to add a checksum. */
10605 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10606 devphase, revision,
10607 configuration_arguments};
10610 # Internationalization
10611 # If we haven't got the data from the intl directory,
10612 # assume NLS is disabled.
10613 USE_NLS=no
10614 LIBINTL=
10615 LIBINTL_DEP=
10616 INCINTL=
10617 XGETTEXT=
10618 GMSGFMT=
10619 POSUB=
10621 if test -f ../intl/config.intl; then
10622 . ../intl/config.intl
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10625 $as_echo_n "checking whether NLS is requested... " >&6; }
10626 if test x"$USE_NLS" != xyes; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628 $as_echo "no" >&6; }
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10631 $as_echo "yes" >&6; }
10633 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10637 $as_echo_n "checking for catalogs to be installed... " >&6; }
10638 # Look for .po and .gmo files in the source directory.
10639 CATALOGS=
10640 XLINGUAS=
10641 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10642 # If there aren't any .gmo files the shell will give us the
10643 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10644 # weeded out.
10645 case "$cat" in *\**)
10646 continue;;
10647 esac
10648 # The quadruple backslash is collapsed to a double backslash
10649 # by the backticks, then collapsed again by the double quotes,
10650 # leaving us with one backslash in the sed expression (right
10651 # before the dot that mustn't act as a wildcard).
10652 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10653 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10654 # The user is allowed to set LINGUAS to a list of languages to
10655 # install catalogs for. If it's empty that means "all of them."
10656 if test "x$LINGUAS" = x; then
10657 CATALOGS="$CATALOGS $cat"
10658 XLINGUAS="$XLINGUAS $lang"
10659 else
10660 case "$LINGUAS" in *$lang*)
10661 CATALOGS="$CATALOGS $cat"
10662 XLINGUAS="$XLINGUAS $lang"
10664 esac
10666 done
10667 LINGUAS="$XLINGUAS"
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10669 $as_echo "$LINGUAS" >&6; }
10672 DATADIRNAME=share
10674 INSTOBJEXT=.mo
10676 GENCAT=gencat
10678 CATOBJEXT=.gmo
10682 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10683 # -liconv on the link line twice.
10684 case "$LIBINTL" in *$LIBICONV*)
10685 LIBICONV= ;;
10686 esac
10688 # Check whether --enable-secureplt was given.
10689 if test "${enable_secureplt+set}" = set; then :
10690 enableval=$enable_secureplt;
10694 # Check whether --enable-leading-mingw64-underscores was given.
10695 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10696 enableval=$enable_leading_mingw64_underscores;
10699 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
10701 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10705 # Check whether --enable-cld was given.
10706 if test "${enable_cld+set}" = set; then :
10707 enableval=$enable_cld;
10708 else
10709 enable_cld=no
10713 # Check whether --enable-frame-pointer was given.
10714 if test "${enable_frame_pointer+set}" = set; then :
10715 enableval=$enable_frame_pointer;
10716 else
10718 case $target_os in
10719 linux* | darwin[8912]*)
10720 # Enable -fomit-frame-pointer by default for Linux and Darwin with
10721 # DWARF2.
10722 enable_frame_pointer=no
10725 enable_frame_pointer=yes
10727 esac
10732 # Windows32 Registry support for specifying GCC installation paths.
10733 # Check whether --enable-win32-registry was given.
10734 if test "${enable_win32_registry+set}" = set; then :
10735 enableval=$enable_win32_registry;
10739 case $host_os in
10740 win32 | pe | cygwin* | mingw32* | uwin*)
10741 if test "x$enable_win32_registry" != xno; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10743 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10744 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10747 ac_func_search_save_LIBS=$LIBS
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 char RegOpenKeyExA ();
10759 main ()
10761 return RegOpenKeyExA ();
10763 return 0;
10765 _ACEOF
10766 for ac_lib in '' advapi32; do
10767 if test -z "$ac_lib"; then
10768 ac_res="none required"
10769 else
10770 ac_res=-l$ac_lib
10771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10773 if ac_fn_c_try_link "$LINENO"; then :
10774 ac_cv_search_RegOpenKeyExA=$ac_res
10776 rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext
10778 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10779 break
10781 done
10782 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10784 else
10785 ac_cv_search_RegOpenKeyExA=no
10787 rm conftest.$ac_ext
10788 LIBS=$ac_func_search_save_LIBS
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10791 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10792 ac_res=$ac_cv_search_RegOpenKeyExA
10793 if test "$ac_res" != no; then :
10794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10796 else
10797 enable_win32_registry=no
10802 if test "x$enable_win32_registry" != xno; then
10804 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10807 if test "x$enable_win32_registry" != xyes \
10808 && test "x$enable_win32_registry" != x; then
10810 cat >>confdefs.h <<_ACEOF
10811 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10812 _ACEOF
10817 esac
10819 # Get an absolute path to the GCC top-level source directory
10820 holddir=`${PWDCMD-pwd}`
10821 cd $srcdir
10822 topdir=`${PWDCMD-pwd}`
10823 cd $holddir
10825 # Conditionalize the makefile for this host machine.
10826 xmake_file=
10827 for f in ${host_xmake_file}
10829 if test -f ${srcdir}/config/$f
10830 then
10831 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10833 done
10835 # Conditionalize the makefile for this target machine.
10836 tmake_file_=
10837 for f in ${tmake_file}
10839 if test -f ${srcdir}/config/$f
10840 then
10841 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10843 done
10844 tmake_file="${tmake_file_}"
10846 out_object_file=`basename $out_file .c`.o
10848 tm_file_list="options.h"
10849 tm_include_list="options.h insn-constants.h"
10850 for f in $tm_file; do
10851 case $f in
10852 ./* )
10853 f=`echo $f | sed 's/^..//'`
10854 tm_file_list="${tm_file_list} $f"
10855 tm_include_list="${tm_include_list} $f"
10857 defaults.h )
10858 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10859 tm_include_list="${tm_include_list} $f"
10862 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10863 tm_include_list="${tm_include_list} config/$f"
10865 esac
10866 done
10868 tm_p_file_list=
10869 tm_p_include_list=
10870 for f in $tm_p_file; do
10871 case $f in
10872 tm-preds.h )
10873 tm_p_file_list="${tm_p_file_list} $f"
10874 tm_p_include_list="${tm_p_include_list} $f"
10877 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10878 tm_p_include_list="${tm_p_include_list} config/$f"
10879 esac
10880 done
10882 xm_file_list=
10883 xm_include_list=
10884 for f in $xm_file; do
10885 case $f in
10886 ansidecl.h )
10887 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10888 xm_include_list="${xm_include_list} $f"
10890 auto-host.h )
10891 xm_file_list="${xm_file_list} $f"
10892 xm_include_list="${xm_include_list} $f"
10895 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10896 xm_include_list="${xm_include_list} config/$f"
10898 esac
10899 done
10901 host_xm_file_list=
10902 host_xm_include_list=
10903 for f in $host_xm_file; do
10904 case $f in
10905 ansidecl.h )
10906 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10907 host_xm_include_list="${host_xm_include_list} $f"
10909 auto-host.h )
10910 host_xm_file_list="${host_xm_file_list} $f"
10911 host_xm_include_list="${host_xm_include_list} $f"
10914 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10915 host_xm_include_list="${host_xm_include_list} config/$f"
10917 esac
10918 done
10920 build_xm_file_list=
10921 for f in $build_xm_file; do
10922 case $f in
10923 ansidecl.h )
10924 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10925 build_xm_include_list="${build_xm_include_list} $f"
10927 auto-build.h | auto-host.h )
10928 build_xm_file_list="${build_xm_file_list} $f"
10929 build_xm_include_list="${build_xm_include_list} $f"
10932 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10933 build_xm_include_list="${build_xm_include_list} config/$f"
10935 esac
10936 done
10938 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10939 # cross-compiler which does not use the native headers and libraries.
10940 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10941 CROSS=
10942 ALL=all.internal
10943 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10945 if test "x$with_build_sysroot" != x; then
10946 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10947 else
10948 # This value is used, even on a native system, because
10949 # CROSS_SYSTEM_HEADER_DIR is just
10950 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10951 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10954 if test x$host != x$target
10955 then
10956 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10957 ALL=all.cross
10958 SYSTEM_HEADER_DIR=$build_system_header_dir
10959 case "$host","$target" in
10960 # Darwin crosses can use the host system's libraries and headers,
10961 # because of the fat library support. Of course, it must be the
10962 # same version of Darwin on both sides. Allow the user to
10963 # just say --target=foo-darwin without a version number to mean
10964 # "the version on this system".
10965 *-*-darwin*,*-*-darwin*)
10966 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10967 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10968 if test $hostos = $targetos -o $targetos = darwin ; then
10969 CROSS=
10970 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10971 with_headers=yes
10975 i?86-*-*,x86_64-*-* \
10976 | powerpc*-*-*,powerpc64*-*-*)
10977 CROSS="$CROSS -DNATIVE_CROSS" ;;
10978 esac
10979 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10980 SYSTEM_HEADER_DIR=$build_system_header_dir
10983 # If this is a cross-compiler that does not
10984 # have its own set of headers then define
10985 # inhibit_libc
10987 # If this is using newlib, without having the headers available now,
10988 # then define inhibit_libc in LIBGCC2_CFLAGS.
10989 # This prevents libgcc2 from containing any code which requires libc
10990 # support.
10991 : ${inhibit_libc=false}
10992 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10993 test x$with_newlib = xyes ; } &&
10994 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10995 inhibit_libc=true
10999 # When building gcc with a cross-compiler, we need to adjust things so
11000 # that the generator programs are still built with the native compiler.
11001 # Also, we cannot run fixincludes.
11003 # These are the normal (build=host) settings:
11004 CC_FOR_BUILD='$(CC)'
11005 BUILD_CFLAGS='$(ALL_CFLAGS)'
11006 BUILD_LDFLAGS='$(LDFLAGS)'
11007 STMP_FIXINC=stmp-fixinc
11009 # And these apply if build != host, or we are generating coverage data
11010 if test x$build != x$host || test "x$coverage_flags" != x
11011 then
11012 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11013 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11016 # Expand extra_headers to include complete path.
11017 # This substitutes for lots of t-* files.
11018 extra_headers_list=
11019 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11020 for file in ${extra_headers} ; do
11021 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11022 done
11024 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11025 if test x"$use_gcc_tgmath" = xyes
11026 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11029 # Define collect2 in Makefile.
11030 case $host_can_use_collect2 in
11031 no) collect2= ;;
11032 *) collect2='collect2$(exeext)' ;;
11033 esac
11036 # Add a definition of USE_COLLECT2 if system wants one.
11037 case $use_collect2 in
11038 no) use_collect2= ;;
11039 "") ;;
11041 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11042 xm_defines="${xm_defines} USE_COLLECT2"
11043 case $host_can_use_collect2 in
11045 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11047 esac
11049 esac
11051 # ---------------------------
11052 # Assembler & linker features
11053 # ---------------------------
11055 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11056 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11057 # However when ld-new is first executed from the build tree, libtool will
11058 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11059 # to the build tree. While doing this we need to use the previous-stage
11060 # linker, or we have an infinite loop. The presence of a shell script as
11061 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11062 # the gcc/collect-ld script. So we need to know how libtool works, or
11063 # exec-tool will fail.
11066 case `pwd` in
11067 *\ * | *\ *)
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11069 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11070 esac
11074 macro_version='2.2.7a'
11075 macro_revision='1.3134'
11089 ltmain="$ac_aux_dir/ltmain.sh"
11091 # Backslashify metacharacters that are still active within
11092 # double-quoted strings.
11093 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11095 # Same as above, but do not quote variable references.
11096 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11098 # Sed substitution to delay expansion of an escaped shell variable in a
11099 # double_quote_subst'ed string.
11100 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11102 # Sed substitution to delay expansion of an escaped single quote.
11103 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11105 # Sed substitution to avoid accidental globbing in evaled expressions
11106 no_glob_subst='s/\*/\\\*/g'
11108 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11109 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11110 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11113 $as_echo_n "checking how to print strings... " >&6; }
11114 # Test print first, because it will be a builtin if present.
11115 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11116 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11117 ECHO='print -r --'
11118 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11119 ECHO='printf %s\n'
11120 else
11121 # Use this function as a fallback that always works.
11122 func_fallback_echo ()
11124 eval 'cat <<_LTECHO_EOF
11126 _LTECHO_EOF'
11128 ECHO='func_fallback_echo'
11131 # func_echo_all arg...
11132 # Invoke $ECHO with all args, space-separated.
11133 func_echo_all ()
11135 $ECHO ""
11138 case "$ECHO" in
11139 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11140 $as_echo "printf" >&6; } ;;
11141 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11142 $as_echo "print -r" >&6; } ;;
11143 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11144 $as_echo "cat" >&6; } ;;
11145 esac
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11161 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11162 if test "${ac_cv_path_SED+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
11164 else
11165 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11166 for ac_i in 1 2 3 4 5 6 7; do
11167 ac_script="$ac_script$as_nl$ac_script"
11168 done
11169 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11170 { ac_script=; unset ac_script;}
11171 if test -z "$SED"; then
11172 ac_path_SED_found=false
11173 # Loop through the user's path and test for each of PROGNAME-LIST
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_prog in sed gsed; do
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11182 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11183 # Check for GNU ac_path_SED and select it if it is found.
11184 # Check for GNU $ac_path_SED
11185 case `"$ac_path_SED" --version 2>&1` in
11186 *GNU*)
11187 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11189 ac_count=0
11190 $as_echo_n 0123456789 >"conftest.in"
11191 while :
11193 cat "conftest.in" "conftest.in" >"conftest.tmp"
11194 mv "conftest.tmp" "conftest.in"
11195 cp "conftest.in" "conftest.nl"
11196 $as_echo '' >> "conftest.nl"
11197 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11199 as_fn_arith $ac_count + 1 && ac_count=$as_val
11200 if test $ac_count -gt ${ac_path_SED_max-0}; then
11201 # Best one so far, save it but keep looking for a better one
11202 ac_cv_path_SED="$ac_path_SED"
11203 ac_path_SED_max=$ac_count
11205 # 10*(2^10) chars as input seems more than enough
11206 test $ac_count -gt 10 && break
11207 done
11208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11209 esac
11211 $ac_path_SED_found && break 3
11212 done
11213 done
11214 done
11215 IFS=$as_save_IFS
11216 if test -z "$ac_cv_path_SED"; then
11217 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11219 else
11220 ac_cv_path_SED=$SED
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11225 $as_echo "$ac_cv_path_SED" >&6; }
11226 SED="$ac_cv_path_SED"
11227 rm -f conftest.sed
11229 test -z "$SED" && SED=sed
11230 Xsed="$SED -e 1s/^X//"
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11243 $as_echo_n "checking for fgrep... " >&6; }
11244 if test "${ac_cv_path_FGREP+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11246 else
11247 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11248 then ac_cv_path_FGREP="$GREP -F"
11249 else
11250 if test -z "$FGREP"; then
11251 ac_path_FGREP_found=false
11252 # Loop through the user's path and test for each of PROGNAME-LIST
11253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11256 IFS=$as_save_IFS
11257 test -z "$as_dir" && as_dir=.
11258 for ac_prog in fgrep; do
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11261 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11262 # Check for GNU ac_path_FGREP and select it if it is found.
11263 # Check for GNU $ac_path_FGREP
11264 case `"$ac_path_FGREP" --version 2>&1` in
11265 *GNU*)
11266 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11268 ac_count=0
11269 $as_echo_n 0123456789 >"conftest.in"
11270 while :
11272 cat "conftest.in" "conftest.in" >"conftest.tmp"
11273 mv "conftest.tmp" "conftest.in"
11274 cp "conftest.in" "conftest.nl"
11275 $as_echo 'FGREP' >> "conftest.nl"
11276 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11278 as_fn_arith $ac_count + 1 && ac_count=$as_val
11279 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11280 # Best one so far, save it but keep looking for a better one
11281 ac_cv_path_FGREP="$ac_path_FGREP"
11282 ac_path_FGREP_max=$ac_count
11284 # 10*(2^10) chars as input seems more than enough
11285 test $ac_count -gt 10 && break
11286 done
11287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11288 esac
11290 $ac_path_FGREP_found && break 3
11291 done
11292 done
11293 done
11294 IFS=$as_save_IFS
11295 if test -z "$ac_cv_path_FGREP"; then
11296 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11298 else
11299 ac_cv_path_FGREP=$FGREP
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11305 $as_echo "$ac_cv_path_FGREP" >&6; }
11306 FGREP="$ac_cv_path_FGREP"
11309 test -z "$GREP" && GREP=grep
11329 # Check whether --with-gnu-ld was given.
11330 if test "${with_gnu_ld+set}" = set; then :
11331 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11332 else
11333 with_gnu_ld=no
11336 ac_prog=ld
11337 if test "$GCC" = yes; then
11338 # Check if gcc -print-prog-name=ld gives a path.
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11340 $as_echo_n "checking for ld used by $CC... " >&6; }
11341 case $host in
11342 *-*-mingw*)
11343 # gcc leaves a trailing carriage return which upsets mingw
11344 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11346 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11347 esac
11348 case $ac_prog in
11349 # Accept absolute paths.
11350 [\\/]* | ?:[\\/]*)
11351 re_direlt='/[^/][^/]*/\.\./'
11352 # Canonicalize the pathname of ld
11353 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11354 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11355 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11356 done
11357 test -z "$LD" && LD="$ac_prog"
11360 # If it fails, then pretend we aren't using GCC.
11361 ac_prog=ld
11364 # If it is relative, then search for the first ld in PATH.
11365 with_gnu_ld=unknown
11367 esac
11368 elif test "$with_gnu_ld" = yes; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11370 $as_echo_n "checking for GNU ld... " >&6; }
11371 else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11373 $as_echo_n "checking for non-GNU ld... " >&6; }
11375 if test "${lt_cv_path_LD+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 if test -z "$LD"; then
11379 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11380 for ac_dir in $PATH; do
11381 IFS="$lt_save_ifs"
11382 test -z "$ac_dir" && ac_dir=.
11383 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11384 lt_cv_path_LD="$ac_dir/$ac_prog"
11385 # Check to see if the program is GNU ld. I'd rather use --version,
11386 # but apparently some variants of GNU ld only accept -v.
11387 # Break only if it was the GNU/non-GNU ld that we prefer.
11388 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11389 *GNU* | *'with BFD'*)
11390 test "$with_gnu_ld" != no && break
11393 test "$with_gnu_ld" != yes && break
11395 esac
11397 done
11398 IFS="$lt_save_ifs"
11399 else
11400 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11404 LD="$lt_cv_path_LD"
11405 if test -n "$LD"; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11407 $as_echo "$LD" >&6; }
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11412 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11414 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11415 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11419 case `$LD -v 2>&1 </dev/null` in
11420 *GNU* | *'with BFD'*)
11421 lt_cv_prog_gnu_ld=yes
11424 lt_cv_prog_gnu_ld=no
11426 esac
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11429 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11430 with_gnu_ld=$lt_cv_prog_gnu_ld
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11441 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11442 if test "${lt_cv_path_NM+set}" = set; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 if test -n "$NM"; then
11446 # Let the user override the test.
11447 lt_cv_path_NM="$NM"
11448 else
11449 lt_nm_to_check="${ac_tool_prefix}nm"
11450 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11451 lt_nm_to_check="$lt_nm_to_check nm"
11453 for lt_tmp_nm in $lt_nm_to_check; do
11454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11455 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11456 IFS="$lt_save_ifs"
11457 test -z "$ac_dir" && ac_dir=.
11458 tmp_nm="$ac_dir/$lt_tmp_nm"
11459 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11460 # Check to see if the nm accepts a BSD-compat flag.
11461 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11462 # nm: unknown option "B" ignored
11463 # Tru64's nm complains that /dev/null is an invalid object file
11464 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11465 */dev/null* | *'Invalid file or object type'*)
11466 lt_cv_path_NM="$tmp_nm -B"
11467 break
11470 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11471 */dev/null*)
11472 lt_cv_path_NM="$tmp_nm -p"
11473 break
11476 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11477 continue # so that we can try to find one that supports BSD flags
11479 esac
11481 esac
11483 done
11484 IFS="$lt_save_ifs"
11485 done
11486 : ${lt_cv_path_NM=no}
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11490 $as_echo "$lt_cv_path_NM" >&6; }
11491 if test "$lt_cv_path_NM" != "no"; then
11492 NM="$lt_cv_path_NM"
11493 else
11494 # Didn't find any BSD compatible name lister, look for dumpbin.
11495 if test -n "$DUMPBIN"; then :
11496 # Let the user override the test.
11497 else
11498 if test -n "$ac_tool_prefix"; then
11499 for ac_prog in dumpbin "link -dump"
11501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504 $as_echo_n "checking for $ac_word... " >&6; }
11505 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 if test -n "$DUMPBIN"; then
11509 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11510 else
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
11517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11518 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520 break 2
11522 done
11523 done
11524 IFS=$as_save_IFS
11528 DUMPBIN=$ac_cv_prog_DUMPBIN
11529 if test -n "$DUMPBIN"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11531 $as_echo "$DUMPBIN" >&6; }
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11538 test -n "$DUMPBIN" && break
11539 done
11541 if test -z "$DUMPBIN"; then
11542 ac_ct_DUMPBIN=$DUMPBIN
11543 for ac_prog in dumpbin "link -dump"
11545 # Extract the first word of "$ac_prog", so it can be a program name with args.
11546 set dummy $ac_prog; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 if test -n "$ac_ct_DUMPBIN"; then
11553 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11554 else
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11566 done
11567 done
11568 IFS=$as_save_IFS
11572 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11573 if test -n "$ac_ct_DUMPBIN"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11575 $as_echo "$ac_ct_DUMPBIN" >&6; }
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11582 test -n "$ac_ct_DUMPBIN" && break
11583 done
11585 if test "x$ac_ct_DUMPBIN" = x; then
11586 DUMPBIN=":"
11587 else
11588 case $cross_compiling:$ac_tool_warned in
11589 yes:)
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11592 ac_tool_warned=yes ;;
11593 esac
11594 DUMPBIN=$ac_ct_DUMPBIN
11598 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11599 *COFF*)
11600 DUMPBIN="$DUMPBIN -symbols"
11603 DUMPBIN=:
11605 esac
11608 if test "$DUMPBIN" != ":"; then
11609 NM="$DUMPBIN"
11612 test -z "$NM" && NM=nm
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11620 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11621 if test "${lt_cv_nm_interface+set}" = set; then :
11622 $as_echo_n "(cached) " >&6
11623 else
11624 lt_cv_nm_interface="BSD nm"
11625 echo "int some_variable = 0;" > conftest.$ac_ext
11626 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11627 (eval "$ac_compile" 2>conftest.err)
11628 cat conftest.err >&5
11629 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11630 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11631 cat conftest.err >&5
11632 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11633 cat conftest.out >&5
11634 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11635 lt_cv_nm_interface="MS dumpbin"
11637 rm -f conftest*
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11640 $as_echo "$lt_cv_nm_interface" >&6; }
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11643 $as_echo_n "checking whether ln -s works... " >&6; }
11644 LN_S=$as_ln_s
11645 if test "$LN_S" = "ln -s"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647 $as_echo "yes" >&6; }
11648 else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11650 $as_echo "no, using $LN_S" >&6; }
11653 # find the maximum length of command line arguments
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11655 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11656 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11660 teststring="ABCD"
11662 case $build_os in
11663 msdosdjgpp*)
11664 # On DJGPP, this test can blow up pretty badly due to problems in libc
11665 # (any single argument exceeding 2000 bytes causes a buffer overrun
11666 # during glob expansion). Even if it were fixed, the result of this
11667 # check would be larger than it should be.
11668 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11671 gnu*)
11672 # Under GNU Hurd, this test is not required because there is
11673 # no limit to the length of command line arguments.
11674 # Libtool will interpret -1 as no limit whatsoever
11675 lt_cv_sys_max_cmd_len=-1;
11678 cygwin* | mingw* | cegcc*)
11679 # On Win9x/ME, this test blows up -- it succeeds, but takes
11680 # about 5 minutes as the teststring grows exponentially.
11681 # Worse, since 9x/ME are not pre-emptively multitasking,
11682 # you end up with a "frozen" computer, even though with patience
11683 # the test eventually succeeds (with a max line length of 256k).
11684 # Instead, let's just punt: use the minimum linelength reported by
11685 # all of the supported platforms: 8192 (on NT/2K/XP).
11686 lt_cv_sys_max_cmd_len=8192;
11689 mint*)
11690 # On MiNT this can take a long time and run out of memory.
11691 lt_cv_sys_max_cmd_len=8192;
11694 amigaos*)
11695 # On AmigaOS with pdksh, this test takes hours, literally.
11696 # So we just punt and use a minimum line length of 8192.
11697 lt_cv_sys_max_cmd_len=8192;
11700 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11701 # This has been around since 386BSD, at least. Likely further.
11702 if test -x /sbin/sysctl; then
11703 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11704 elif test -x /usr/sbin/sysctl; then
11705 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11706 else
11707 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11709 # And add a safety zone
11710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11714 interix*)
11715 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11716 lt_cv_sys_max_cmd_len=196608
11719 osf*)
11720 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11721 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11722 # nice to cause kernel panics so lets avoid the loop below.
11723 # First set a reasonable default.
11724 lt_cv_sys_max_cmd_len=16384
11726 if test -x /sbin/sysconfig; then
11727 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11728 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11729 esac
11732 sco3.2v5*)
11733 lt_cv_sys_max_cmd_len=102400
11735 sysv5* | sco5v6* | sysv4.2uw2*)
11736 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11737 if test -n "$kargmax"; then
11738 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11739 else
11740 lt_cv_sys_max_cmd_len=32768
11744 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11745 if test -n "$lt_cv_sys_max_cmd_len"; then
11746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11748 else
11749 # Make teststring a little bigger before we do anything with it.
11750 # a 1K string should be a reasonable start.
11751 for i in 1 2 3 4 5 6 7 8 ; do
11752 teststring=$teststring$teststring
11753 done
11754 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11755 # If test is not a shell built-in, we'll probably end up computing a
11756 # maximum length that is only half of the actual maximum length, but
11757 # we can't tell.
11758 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11759 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11760 test $i != 17 # 1/2 MB should be enough
11762 i=`expr $i + 1`
11763 teststring=$teststring$teststring
11764 done
11765 # Only check the string length outside the loop.
11766 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11767 teststring=
11768 # Add a significant safety factor because C++ compilers can tack on
11769 # massive amounts of additional arguments before passing them to the
11770 # linker. It appears as though 1/2 is a usable value.
11771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11774 esac
11778 if test -n $lt_cv_sys_max_cmd_len ; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11780 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11781 else
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11783 $as_echo "none" >&6; }
11785 max_cmd_len=$lt_cv_sys_max_cmd_len
11792 : ${CP="cp -f"}
11793 : ${MV="mv -f"}
11794 : ${RM="rm -f"}
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11797 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11798 # Try some XSI features
11799 xsi_shell=no
11800 ( _lt_dummy="a/b/c"
11801 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11802 = c,a/b,, \
11803 && eval 'test $(( 1 + 1 )) -eq 2 \
11804 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11805 && xsi_shell=yes
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11807 $as_echo "$xsi_shell" >&6; }
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11811 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11812 lt_shell_append=no
11813 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11814 >/dev/null 2>&1 \
11815 && lt_shell_append=yes
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11817 $as_echo "$lt_shell_append" >&6; }
11820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11821 lt_unset=unset
11822 else
11823 lt_unset=false
11830 # test EBCDIC or ASCII
11831 case `echo X|tr X '\101'` in
11832 A) # ASCII based system
11833 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11834 lt_SP2NL='tr \040 \012'
11835 lt_NL2SP='tr \015\012 \040\040'
11837 *) # EBCDIC based system
11838 lt_SP2NL='tr \100 \n'
11839 lt_NL2SP='tr \r\n \100\100'
11841 esac
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11852 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11853 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11854 $as_echo_n "(cached) " >&6
11855 else
11856 lt_cv_ld_reload_flag='-r'
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11859 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11860 reload_flag=$lt_cv_ld_reload_flag
11861 case $reload_flag in
11862 "" | " "*) ;;
11863 *) reload_flag=" $reload_flag" ;;
11864 esac
11865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11866 case $host_os in
11867 darwin*)
11868 if test "$GCC" = yes; then
11869 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11870 else
11871 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11874 esac
11884 if test -n "$ac_tool_prefix"; then
11885 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11886 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 if test -n "$OBJDUMP"; then
11893 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11894 else
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11898 IFS=$as_save_IFS
11899 test -z "$as_dir" && as_dir=.
11900 for ac_exec_ext in '' $ac_executable_extensions; do
11901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11902 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904 break 2
11906 done
11907 done
11908 IFS=$as_save_IFS
11912 OBJDUMP=$ac_cv_prog_OBJDUMP
11913 if test -n "$OBJDUMP"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11915 $as_echo "$OBJDUMP" >&6; }
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11923 if test -z "$ac_cv_prog_OBJDUMP"; then
11924 ac_ct_OBJDUMP=$OBJDUMP
11925 # Extract the first word of "objdump", so it can be a program name with args.
11926 set dummy objdump; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928 $as_echo_n "checking for $ac_word... " >&6; }
11929 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 if test -n "$ac_ct_OBJDUMP"; then
11933 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11934 else
11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936 for as_dir in $PATH
11938 IFS=$as_save_IFS
11939 test -z "$as_dir" && as_dir=.
11940 for ac_exec_ext in '' $ac_executable_extensions; do
11941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11942 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11944 break 2
11946 done
11947 done
11948 IFS=$as_save_IFS
11952 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11953 if test -n "$ac_ct_OBJDUMP"; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11955 $as_echo "$ac_ct_OBJDUMP" >&6; }
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11961 if test "x$ac_ct_OBJDUMP" = x; then
11962 OBJDUMP="false"
11963 else
11964 case $cross_compiling:$ac_tool_warned in
11965 yes:)
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11968 ac_tool_warned=yes ;;
11969 esac
11970 OBJDUMP=$ac_ct_OBJDUMP
11972 else
11973 OBJDUMP="$ac_cv_prog_OBJDUMP"
11976 test -z "$OBJDUMP" && OBJDUMP=objdump
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11987 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11988 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 lt_cv_file_magic_cmd='$MAGIC_CMD'
11992 lt_cv_file_magic_test_file=
11993 lt_cv_deplibs_check_method='unknown'
11994 # Need to set the preceding variable on all platforms that support
11995 # interlibrary dependencies.
11996 # 'none' -- dependencies not supported.
11997 # `unknown' -- same as none, but documents that we really don't know.
11998 # 'pass_all' -- all dependencies passed with no checks.
11999 # 'test_compile' -- check by making test program.
12000 # 'file_magic [[regex]]' -- check by looking for files in library path
12001 # which responds to the $file_magic_cmd with a given extended regex.
12002 # If you have `file' or equivalent on your system and you're not sure
12003 # whether `pass_all' will *always* work, you probably want this one.
12005 case $host_os in
12006 aix[4-9]*)
12007 lt_cv_deplibs_check_method=pass_all
12010 beos*)
12011 lt_cv_deplibs_check_method=pass_all
12014 bsdi[45]*)
12015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12016 lt_cv_file_magic_cmd='/usr/bin/file -L'
12017 lt_cv_file_magic_test_file=/shlib/libc.so
12020 cygwin*)
12021 # func_win32_libid is a shell function defined in ltmain.sh
12022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12023 lt_cv_file_magic_cmd='func_win32_libid'
12026 mingw* | pw32*)
12027 # Base MSYS/MinGW do not provide the 'file' command needed by
12028 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12029 # unless we find 'file', for example because we are cross-compiling.
12030 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12031 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12033 lt_cv_file_magic_cmd='func_win32_libid'
12034 else
12035 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12036 lt_cv_file_magic_cmd='$OBJDUMP -f'
12040 cegcc*)
12041 # use the weaker test based on 'objdump'. See mingw*.
12042 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12043 lt_cv_file_magic_cmd='$OBJDUMP -f'
12046 darwin* | rhapsody*)
12047 lt_cv_deplibs_check_method=pass_all
12050 freebsd* | dragonfly*)
12051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12052 case $host_cpu in
12053 i*86 )
12054 # Not sure whether the presence of OpenBSD here was a mistake.
12055 # Let's accept both of them until this is cleared up.
12056 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12057 lt_cv_file_magic_cmd=/usr/bin/file
12058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12060 esac
12061 else
12062 lt_cv_deplibs_check_method=pass_all
12066 gnu*)
12067 lt_cv_deplibs_check_method=pass_all
12070 haiku*)
12071 lt_cv_deplibs_check_method=pass_all
12074 hpux10.20* | hpux11*)
12075 lt_cv_file_magic_cmd=/usr/bin/file
12076 case $host_cpu in
12077 ia64*)
12078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12079 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12081 hppa*64*)
12082 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]'
12083 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12087 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12089 esac
12092 interix[3-9]*)
12093 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12097 irix5* | irix6* | nonstopux*)
12098 case $LD in
12099 *-32|*"-32 ") libmagic=32-bit;;
12100 *-n32|*"-n32 ") libmagic=N32;;
12101 *-64|*"-64 ") libmagic=64-bit;;
12102 *) libmagic=never-match;;
12103 esac
12104 lt_cv_deplibs_check_method=pass_all
12107 # This must be Linux ELF.
12108 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12109 lt_cv_deplibs_check_method=pass_all
12112 netbsd*)
12113 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12115 else
12116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12120 newos6*)
12121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12122 lt_cv_file_magic_cmd=/usr/bin/file
12123 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12126 *nto* | *qnx*)
12127 lt_cv_deplibs_check_method=pass_all
12130 openbsd*)
12131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12133 else
12134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12138 osf3* | osf4* | osf5*)
12139 lt_cv_deplibs_check_method=pass_all
12142 rdos*)
12143 lt_cv_deplibs_check_method=pass_all
12146 solaris*)
12147 lt_cv_deplibs_check_method=pass_all
12150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12151 lt_cv_deplibs_check_method=pass_all
12154 sysv4 | sysv4.3*)
12155 case $host_vendor in
12156 motorola)
12157 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]'
12158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12160 ncr)
12161 lt_cv_deplibs_check_method=pass_all
12163 sequent)
12164 lt_cv_file_magic_cmd='/bin/file'
12165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12167 sni)
12168 lt_cv_file_magic_cmd='/bin/file'
12169 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12170 lt_cv_file_magic_test_file=/lib/libc.so
12172 siemens)
12173 lt_cv_deplibs_check_method=pass_all
12176 lt_cv_deplibs_check_method=pass_all
12178 esac
12181 tpf*)
12182 lt_cv_deplibs_check_method=pass_all
12184 esac
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12188 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12189 file_magic_cmd=$lt_cv_file_magic_cmd
12190 deplibs_check_method=$lt_cv_deplibs_check_method
12191 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12204 if test -n "$ac_tool_prefix"; then
12205 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12206 set dummy ${ac_tool_prefix}ar; ac_word=$2
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208 $as_echo_n "checking for $ac_word... " >&6; }
12209 if test "${ac_cv_prog_AR+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 if test -n "$AR"; then
12213 ac_cv_prog_AR="$AR" # Let the user override the test.
12214 else
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222 ac_cv_prog_AR="${ac_tool_prefix}ar"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12226 done
12227 done
12228 IFS=$as_save_IFS
12232 AR=$ac_cv_prog_AR
12233 if test -n "$AR"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12235 $as_echo "$AR" >&6; }
12236 else
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12243 if test -z "$ac_cv_prog_AR"; then
12244 ac_ct_AR=$AR
12245 # Extract the first word of "ar", so it can be a program name with args.
12246 set dummy ar; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 if test -n "$ac_ct_AR"; then
12253 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12254 else
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262 ac_cv_prog_ac_ct_AR="ar"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 break 2
12266 done
12267 done
12268 IFS=$as_save_IFS
12272 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12273 if test -n "$ac_ct_AR"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12275 $as_echo "$ac_ct_AR" >&6; }
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12281 if test "x$ac_ct_AR" = x; then
12282 AR="false"
12283 else
12284 case $cross_compiling:$ac_tool_warned in
12285 yes:)
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12288 ac_tool_warned=yes ;;
12289 esac
12290 AR=$ac_ct_AR
12292 else
12293 AR="$ac_cv_prog_AR"
12296 test -z "$AR" && AR=ar
12297 test -z "$AR_FLAGS" && AR_FLAGS=cru
12309 if test -n "$ac_tool_prefix"; then
12310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12311 set dummy ${ac_tool_prefix}strip; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if test "${ac_cv_prog_STRIP+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 if test -n "$STRIP"; then
12318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12319 else
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12327 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12331 done
12332 done
12333 IFS=$as_save_IFS
12337 STRIP=$ac_cv_prog_STRIP
12338 if test -n "$STRIP"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12340 $as_echo "$STRIP" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12348 if test -z "$ac_cv_prog_STRIP"; then
12349 ac_ct_STRIP=$STRIP
12350 # Extract the first word of "strip", so it can be a program name with args.
12351 set dummy strip; ac_word=$2
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353 $as_echo_n "checking for $ac_word... " >&6; }
12354 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 if test -n "$ac_ct_STRIP"; then
12358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12359 else
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12367 ac_cv_prog_ac_ct_STRIP="strip"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 break 2
12371 done
12372 done
12373 IFS=$as_save_IFS
12377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12378 if test -n "$ac_ct_STRIP"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12380 $as_echo "$ac_ct_STRIP" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12386 if test "x$ac_ct_STRIP" = x; then
12387 STRIP=":"
12388 else
12389 case $cross_compiling:$ac_tool_warned in
12390 yes:)
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12393 ac_tool_warned=yes ;;
12394 esac
12395 STRIP=$ac_ct_STRIP
12397 else
12398 STRIP="$ac_cv_prog_STRIP"
12401 test -z "$STRIP" && STRIP=:
12408 if test -n "$ac_tool_prefix"; then
12409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 if test -n "$RANLIB"; then
12417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12418 else
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12430 done
12431 done
12432 IFS=$as_save_IFS
12436 RANLIB=$ac_cv_prog_RANLIB
12437 if test -n "$RANLIB"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12439 $as_echo "$RANLIB" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12447 if test -z "$ac_cv_prog_RANLIB"; then
12448 ac_ct_RANLIB=$RANLIB
12449 # Extract the first word of "ranlib", so it can be a program name with args.
12450 set dummy ranlib; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 if test -n "$ac_ct_RANLIB"; then
12457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12458 else
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12466 ac_cv_prog_ac_ct_RANLIB="ranlib"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468 break 2
12470 done
12471 done
12472 IFS=$as_save_IFS
12476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12477 if test -n "$ac_ct_RANLIB"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12479 $as_echo "$ac_ct_RANLIB" >&6; }
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12485 if test "x$ac_ct_RANLIB" = x; then
12486 RANLIB=":"
12487 else
12488 case $cross_compiling:$ac_tool_warned in
12489 yes:)
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12492 ac_tool_warned=yes ;;
12493 esac
12494 RANLIB=$ac_ct_RANLIB
12496 else
12497 RANLIB="$ac_cv_prog_RANLIB"
12500 test -z "$RANLIB" && RANLIB=:
12507 # Determine commands to create old-style static archives.
12508 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12509 old_postinstall_cmds='chmod 644 $oldlib'
12510 old_postuninstall_cmds=
12512 if test -n "$RANLIB"; then
12513 case $host_os in
12514 openbsd*)
12515 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12518 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12520 esac
12521 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12524 case $host_os in
12525 darwin*)
12526 lock_old_archive_extraction=yes ;;
12528 lock_old_archive_extraction=no ;;
12529 esac
12569 # If no C compiler was specified, use CC.
12570 LTCC=${LTCC-"$CC"}
12572 # If no C compiler flags were specified, use CFLAGS.
12573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12575 # Allow CC to be a program name with arguments.
12576 compiler=$CC
12579 # Check for command to grab the raw symbol name followed by C symbol from nm.
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12581 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12582 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12586 # These are sane defaults that work on at least a few old systems.
12587 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12589 # Character class describing NM global symbol codes.
12590 symcode='[BCDEGRST]'
12592 # Regexp to match symbols that can be accessed directly from C.
12593 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12595 # Define system-specific variables.
12596 case $host_os in
12597 aix*)
12598 symcode='[BCDT]'
12600 cygwin* | mingw* | pw32* | cegcc*)
12601 symcode='[ABCDGISTW]'
12603 hpux*)
12604 if test "$host_cpu" = ia64; then
12605 symcode='[ABCDEGRST]'
12608 irix* | nonstopux*)
12609 symcode='[BCDEGRST]'
12611 osf*)
12612 symcode='[BCDEGQRST]'
12614 solaris*)
12615 symcode='[BDRT]'
12617 sco3.2v5*)
12618 symcode='[DT]'
12620 sysv4.2uw2*)
12621 symcode='[DT]'
12623 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12624 symcode='[ABDT]'
12626 sysv4)
12627 symcode='[DFNSTU]'
12629 esac
12631 # If we're using GNU nm, then use its standard symbol codes.
12632 case `$NM -V 2>&1` in
12633 *GNU* | *'with BFD'*)
12634 symcode='[ABCDGIRSTW]' ;;
12635 esac
12637 # Transform an extracted symbol line into a proper C declaration.
12638 # Some systems (esp. on ia64) link data and code symbols differently,
12639 # so use this general approach.
12640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12642 # Transform an extracted symbol line into symbol name and symbol address
12643 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12644 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'"
12646 # Handle CRLF in mingw tool chain
12647 opt_cr=
12648 case $build_os in
12649 mingw*)
12650 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12652 esac
12654 # Try without a prefix underscore, then with it.
12655 for ac_symprfx in "" "_"; do
12657 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12658 symxfrm="\\1 $ac_symprfx\\2 \\2"
12660 # Write the raw and C identifiers.
12661 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12662 # Fake it for dumpbin and say T for any non-static function
12663 # and D for any global variable.
12664 # Also find C++ and __fastcall symbols from MSVC++,
12665 # which start with @ or ?.
12666 lt_cv_sys_global_symbol_pipe="$AWK '"\
12667 " {last_section=section; section=\$ 3};"\
12668 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12669 " \$ 0!~/External *\|/{next};"\
12670 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12671 " {if(hide[section]) next};"\
12672 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12673 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12674 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12675 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12676 " ' prfx=^$ac_symprfx"
12677 else
12678 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12681 # Check to see that the pipe works correctly.
12682 pipe_works=no
12684 rm -f conftest*
12685 cat > conftest.$ac_ext <<_LT_EOF
12686 #ifdef __cplusplus
12687 extern "C" {
12688 #endif
12689 char nm_test_var;
12690 void nm_test_func(void);
12691 void nm_test_func(void){}
12692 #ifdef __cplusplus
12694 #endif
12695 int main(){nm_test_var='a';nm_test_func();return(0);}
12696 _LT_EOF
12698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12699 (eval $ac_compile) 2>&5
12700 ac_status=$?
12701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12702 test $ac_status = 0; }; then
12703 # Now try to grab the symbols.
12704 nlist=conftest.nm
12705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12706 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12707 ac_status=$?
12708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12709 test $ac_status = 0; } && test -s "$nlist"; then
12710 # Try sorting and uniquifying the output.
12711 if sort "$nlist" | uniq > "$nlist"T; then
12712 mv -f "$nlist"T "$nlist"
12713 else
12714 rm -f "$nlist"T
12717 # Make sure that we snagged all the symbols we need.
12718 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12719 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12720 cat <<_LT_EOF > conftest.$ac_ext
12721 #ifdef __cplusplus
12722 extern "C" {
12723 #endif
12725 _LT_EOF
12726 # Now generate the symbol file.
12727 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12729 cat <<_LT_EOF >> conftest.$ac_ext
12731 /* The mapping between symbol names and symbols. */
12732 const struct {
12733 const char *name;
12734 void *address;
12736 lt__PROGRAM__LTX_preloaded_symbols[] =
12738 { "@PROGRAM@", (void *) 0 },
12739 _LT_EOF
12740 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12741 cat <<\_LT_EOF >> conftest.$ac_ext
12742 {0, (void *) 0}
12745 /* This works around a problem in FreeBSD linker */
12746 #ifdef FREEBSD_WORKAROUND
12747 static const void *lt_preloaded_setup() {
12748 return lt__PROGRAM__LTX_preloaded_symbols;
12750 #endif
12752 #ifdef __cplusplus
12754 #endif
12755 _LT_EOF
12756 # Now try linking the two files.
12757 mv conftest.$ac_objext conftstm.$ac_objext
12758 lt_save_LIBS="$LIBS"
12759 lt_save_CFLAGS="$CFLAGS"
12760 LIBS="conftstm.$ac_objext"
12761 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12763 (eval $ac_link) 2>&5
12764 ac_status=$?
12765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12766 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12767 pipe_works=yes
12769 LIBS="$lt_save_LIBS"
12770 CFLAGS="$lt_save_CFLAGS"
12771 else
12772 echo "cannot find nm_test_func in $nlist" >&5
12774 else
12775 echo "cannot find nm_test_var in $nlist" >&5
12777 else
12778 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12780 else
12781 echo "$progname: failed program was:" >&5
12782 cat conftest.$ac_ext >&5
12784 rm -rf conftest* conftst*
12786 # Do not use the global_symbol_pipe unless it works.
12787 if test "$pipe_works" = yes; then
12788 break
12789 else
12790 lt_cv_sys_global_symbol_pipe=
12792 done
12796 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12797 lt_cv_sys_global_symbol_to_cdecl=
12799 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12801 $as_echo "failed" >&6; }
12802 else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12804 $as_echo "ok" >&6; }
12828 # Check whether --enable-libtool-lock was given.
12829 if test "${enable_libtool_lock+set}" = set; then :
12830 enableval=$enable_libtool_lock;
12833 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12835 # Some flags need to be propagated to the compiler or linker for good
12836 # libtool support.
12837 case $host in
12838 ia64-*-hpux*)
12839 # Find out which ABI we are using.
12840 echo 'int i;' > conftest.$ac_ext
12841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12842 (eval $ac_compile) 2>&5
12843 ac_status=$?
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845 test $ac_status = 0; }; then
12846 case `/usr/bin/file conftest.$ac_objext` in
12847 *ELF-32*)
12848 HPUX_IA64_MODE="32"
12850 *ELF-64*)
12851 HPUX_IA64_MODE="64"
12853 esac
12855 rm -rf conftest*
12857 *-*-irix6*)
12858 # Find out which ABI we are using.
12859 echo '#line '$LINENO' "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
12866 case `/usr/bin/file conftest.$ac_objext` in
12867 *32-bit*)
12868 LD="${LD-ld} -melf32bsmip"
12870 *N32*)
12871 LD="${LD-ld} -melf32bmipn32"
12873 *64-bit*)
12874 LD="${LD-ld} -melf64bmip"
12876 esac
12877 else
12878 case `/usr/bin/file conftest.$ac_objext` in
12879 *32-bit*)
12880 LD="${LD-ld} -32"
12882 *N32*)
12883 LD="${LD-ld} -n32"
12885 *64-bit*)
12886 LD="${LD-ld} -64"
12888 esac
12891 rm -rf conftest*
12894 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12895 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12896 # Find out which ABI we are using.
12897 echo 'int i;' > conftest.$ac_ext
12898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12899 (eval $ac_compile) 2>&5
12900 ac_status=$?
12901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902 test $ac_status = 0; }; then
12903 case `/usr/bin/file conftest.o` in
12904 *32-bit*)
12905 case $host in
12906 x86_64-*kfreebsd*-gnu)
12907 LD="${LD-ld} -m elf_i386_fbsd"
12909 x86_64-*linux*)
12910 LD="${LD-ld} -m elf_i386"
12912 ppc64-*linux*|powerpc64-*linux*)
12913 LD="${LD-ld} -m elf32ppclinux"
12915 s390x-*linux*)
12916 LD="${LD-ld} -m elf_s390"
12918 sparc64-*linux*)
12919 LD="${LD-ld} -m elf32_sparc"
12921 esac
12923 *64-bit*)
12924 case $host in
12925 x86_64-*kfreebsd*-gnu)
12926 LD="${LD-ld} -m elf_x86_64_fbsd"
12928 x86_64-*linux*)
12929 LD="${LD-ld} -m elf_x86_64"
12931 ppc*-*linux*|powerpc*-*linux*)
12932 LD="${LD-ld} -m elf64ppc"
12934 s390*-*linux*|s390*-*tpf*)
12935 LD="${LD-ld} -m elf64_s390"
12937 sparc*-*linux*)
12938 LD="${LD-ld} -m elf64_sparc"
12940 esac
12942 esac
12944 rm -rf conftest*
12947 *-*-sco3.2v5*)
12948 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12949 SAVE_CFLAGS="$CFLAGS"
12950 CFLAGS="$CFLAGS -belf"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12952 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12953 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12956 ac_ext=c
12957 ac_cpp='$CPP $CPPFLAGS'
12958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12966 main ()
12970 return 0;
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 lt_cv_cc_needs_belf=yes
12975 else
12976 lt_cv_cc_needs_belf=no
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 ac_ext=c
12981 ac_cpp='$CPP $CPPFLAGS'
12982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12988 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12989 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12990 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12991 CFLAGS="$SAVE_CFLAGS"
12994 sparc*-*solaris*)
12995 # Find out which ABI we are using.
12996 echo 'int i;' > conftest.$ac_ext
12997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12998 (eval $ac_compile) 2>&5
12999 ac_status=$?
13000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13001 test $ac_status = 0; }; then
13002 case `/usr/bin/file conftest.o` in
13003 *64-bit*)
13004 case $lt_cv_prog_gnu_ld in
13005 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13007 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13008 LD="${LD-ld} -64"
13011 esac
13013 esac
13015 rm -rf conftest*
13017 esac
13019 need_locks="$enable_libtool_lock"
13022 case $host_os in
13023 rhapsody* | darwin*)
13024 if test -n "$ac_tool_prefix"; then
13025 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13026 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028 $as_echo_n "checking for $ac_word... " >&6; }
13029 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 if test -n "$DSYMUTIL"; then
13033 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13034 else
13035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036 for as_dir in $PATH
13038 IFS=$as_save_IFS
13039 test -z "$as_dir" && as_dir=.
13040 for ac_exec_ext in '' $ac_executable_extensions; do
13041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13042 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13044 break 2
13046 done
13047 done
13048 IFS=$as_save_IFS
13052 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13053 if test -n "$DSYMUTIL"; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13055 $as_echo "$DSYMUTIL" >&6; }
13056 else
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13063 if test -z "$ac_cv_prog_DSYMUTIL"; then
13064 ac_ct_DSYMUTIL=$DSYMUTIL
13065 # Extract the first word of "dsymutil", so it can be a program name with args.
13066 set dummy dsymutil; ac_word=$2
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13068 $as_echo_n "checking for $ac_word... " >&6; }
13069 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 if test -n "$ac_ct_DSYMUTIL"; then
13073 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13074 else
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13078 IFS=$as_save_IFS
13079 test -z "$as_dir" && as_dir=.
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13082 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13084 break 2
13086 done
13087 done
13088 IFS=$as_save_IFS
13092 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13093 if test -n "$ac_ct_DSYMUTIL"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13095 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13096 else
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13101 if test "x$ac_ct_DSYMUTIL" = x; then
13102 DSYMUTIL=":"
13103 else
13104 case $cross_compiling:$ac_tool_warned in
13105 yes:)
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13108 ac_tool_warned=yes ;;
13109 esac
13110 DSYMUTIL=$ac_ct_DSYMUTIL
13112 else
13113 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13116 if test -n "$ac_tool_prefix"; then
13117 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13118 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 if test -n "$NMEDIT"; then
13125 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13126 else
13127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128 for as_dir in $PATH
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 break 2
13138 done
13139 done
13140 IFS=$as_save_IFS
13144 NMEDIT=$ac_cv_prog_NMEDIT
13145 if test -n "$NMEDIT"; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13147 $as_echo "$NMEDIT" >&6; }
13148 else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150 $as_echo "no" >&6; }
13155 if test -z "$ac_cv_prog_NMEDIT"; then
13156 ac_ct_NMEDIT=$NMEDIT
13157 # Extract the first word of "nmedit", so it can be a program name with args.
13158 set dummy nmedit; ac_word=$2
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160 $as_echo_n "checking for $ac_word... " >&6; }
13161 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13162 $as_echo_n "(cached) " >&6
13163 else
13164 if test -n "$ac_ct_NMEDIT"; then
13165 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13166 else
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13170 IFS=$as_save_IFS
13171 test -z "$as_dir" && as_dir=.
13172 for ac_exec_ext in '' $ac_executable_extensions; do
13173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13174 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176 break 2
13178 done
13179 done
13180 IFS=$as_save_IFS
13184 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13185 if test -n "$ac_ct_NMEDIT"; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13187 $as_echo "$ac_ct_NMEDIT" >&6; }
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13193 if test "x$ac_ct_NMEDIT" = x; then
13194 NMEDIT=":"
13195 else
13196 case $cross_compiling:$ac_tool_warned in
13197 yes:)
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13200 ac_tool_warned=yes ;;
13201 esac
13202 NMEDIT=$ac_ct_NMEDIT
13204 else
13205 NMEDIT="$ac_cv_prog_NMEDIT"
13208 if test -n "$ac_tool_prefix"; then
13209 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13210 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if test "${ac_cv_prog_LIPO+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if test -n "$LIPO"; then
13217 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13230 done
13231 done
13232 IFS=$as_save_IFS
13236 LIPO=$ac_cv_prog_LIPO
13237 if test -n "$LIPO"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13239 $as_echo "$LIPO" >&6; }
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13247 if test -z "$ac_cv_prog_LIPO"; then
13248 ac_ct_LIPO=$LIPO
13249 # Extract the first word of "lipo", so it can be a program name with args.
13250 set dummy lipo; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252 $as_echo_n "checking for $ac_word... " >&6; }
13253 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 if test -n "$ac_ct_LIPO"; then
13257 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_ac_ct_LIPO="lipo"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13270 done
13271 done
13272 IFS=$as_save_IFS
13276 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13277 if test -n "$ac_ct_LIPO"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13279 $as_echo "$ac_ct_LIPO" >&6; }
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13285 if test "x$ac_ct_LIPO" = x; then
13286 LIPO=":"
13287 else
13288 case $cross_compiling:$ac_tool_warned in
13289 yes:)
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13292 ac_tool_warned=yes ;;
13293 esac
13294 LIPO=$ac_ct_LIPO
13296 else
13297 LIPO="$ac_cv_prog_LIPO"
13300 if test -n "$ac_tool_prefix"; then
13301 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13302 set dummy ${ac_tool_prefix}otool; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 if test -n "$OTOOL"; then
13309 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 break 2
13322 done
13323 done
13324 IFS=$as_save_IFS
13328 OTOOL=$ac_cv_prog_OTOOL
13329 if test -n "$OTOOL"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13331 $as_echo "$OTOOL" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13339 if test -z "$ac_cv_prog_OTOOL"; then
13340 ac_ct_OTOOL=$OTOOL
13341 # Extract the first word of "otool", so it can be a program name with args.
13342 set dummy otool; ac_word=$2
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13344 $as_echo_n "checking for $ac_word... " >&6; }
13345 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 if test -n "$ac_ct_OTOOL"; then
13349 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13350 else
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in $PATH
13354 IFS=$as_save_IFS
13355 test -z "$as_dir" && as_dir=.
13356 for ac_exec_ext in '' $ac_executable_extensions; do
13357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13358 ac_cv_prog_ac_ct_OTOOL="otool"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 break 2
13362 done
13363 done
13364 IFS=$as_save_IFS
13368 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13369 if test -n "$ac_ct_OTOOL"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13371 $as_echo "$ac_ct_OTOOL" >&6; }
13372 else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13377 if test "x$ac_ct_OTOOL" = x; then
13378 OTOOL=":"
13379 else
13380 case $cross_compiling:$ac_tool_warned in
13381 yes:)
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13384 ac_tool_warned=yes ;;
13385 esac
13386 OTOOL=$ac_ct_OTOOL
13388 else
13389 OTOOL="$ac_cv_prog_OTOOL"
13392 if test -n "$ac_tool_prefix"; then
13393 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13394 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 if test -n "$OTOOL64"; then
13401 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13402 else
13403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13406 IFS=$as_save_IFS
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13410 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 break 2
13414 done
13415 done
13416 IFS=$as_save_IFS
13420 OTOOL64=$ac_cv_prog_OTOOL64
13421 if test -n "$OTOOL64"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13423 $as_echo "$OTOOL64" >&6; }
13424 else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 $as_echo "no" >&6; }
13431 if test -z "$ac_cv_prog_OTOOL64"; then
13432 ac_ct_OTOOL64=$OTOOL64
13433 # Extract the first word of "otool64", so it can be a program name with args.
13434 set dummy otool64; ac_word=$2
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436 $as_echo_n "checking for $ac_word... " >&6; }
13437 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 if test -n "$ac_ct_OTOOL64"; then
13441 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13442 else
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
13449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13450 ac_cv_prog_ac_ct_OTOOL64="otool64"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13454 done
13455 done
13456 IFS=$as_save_IFS
13460 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13461 if test -n "$ac_ct_OTOOL64"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13463 $as_echo "$ac_ct_OTOOL64" >&6; }
13464 else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13469 if test "x$ac_ct_OTOOL64" = x; then
13470 OTOOL64=":"
13471 else
13472 case $cross_compiling:$ac_tool_warned in
13473 yes:)
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13476 ac_tool_warned=yes ;;
13477 esac
13478 OTOOL64=$ac_ct_OTOOL64
13480 else
13481 OTOOL64="$ac_cv_prog_OTOOL64"
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13511 $as_echo_n "checking for -single_module linker flag... " >&6; }
13512 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13513 $as_echo_n "(cached) " >&6
13514 else
13515 lt_cv_apple_cc_single_mod=no
13516 if test -z "${LT_MULTI_MODULE}"; then
13517 # By default we will add the -single_module flag. You can override
13518 # by either setting the environment variable LT_MULTI_MODULE
13519 # non-empty at configure time, or by adding -multi_module to the
13520 # link flags.
13521 rm -rf libconftest.dylib*
13522 echo "int foo(void){return 1;}" > conftest.c
13523 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13524 -dynamiclib -Wl,-single_module conftest.c" >&5
13525 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13526 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13527 _lt_result=$?
13528 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13529 lt_cv_apple_cc_single_mod=yes
13530 else
13531 cat conftest.err >&5
13533 rm -rf libconftest.dylib*
13534 rm -f conftest.*
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13538 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13540 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13541 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13542 $as_echo_n "(cached) " >&6
13543 else
13544 lt_cv_ld_exported_symbols_list=no
13545 save_LDFLAGS=$LDFLAGS
13546 echo "_main" > conftest.sym
13547 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13552 main ()
13556 return 0;
13558 _ACEOF
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 lt_cv_ld_exported_symbols_list=yes
13561 else
13562 lt_cv_ld_exported_symbols_list=no
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LDFLAGS="$save_LDFLAGS"
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13570 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13572 $as_echo_n "checking for -force_load linker flag... " >&6; }
13573 if test "${lt_cv_ld_force_load+set}" = set; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 lt_cv_ld_force_load=no
13577 cat > conftest.c << _LT_EOF
13578 int forced_loaded() { return 2;}
13579 _LT_EOF
13580 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13581 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13582 echo "$AR cru libconftest.a conftest.o" >&5
13583 $AR cru libconftest.a conftest.o 2>&5
13584 cat > conftest.c << _LT_EOF
13585 int main() { return 0;}
13586 _LT_EOF
13587 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13588 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13589 _lt_result=$?
13590 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13591 lt_cv_ld_force_load=yes
13592 else
13593 cat conftest.err >&5
13595 rm -f conftest.err libconftest.a conftest conftest.c
13596 rm -rf conftest.dSYM
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13600 $as_echo "$lt_cv_ld_force_load" >&6; }
13601 case $host_os in
13602 rhapsody* | darwin1.[012])
13603 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13604 darwin1.*)
13605 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13606 darwin*) # darwin 5.x on
13607 # if running on 10.5 or later, the deployment target defaults
13608 # to the OS version, if on x86, and 10.4, the deployment
13609 # target defaults to 10.4. Don't you love it?
13610 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13611 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13612 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13613 10.[012]*)
13614 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13615 10.*)
13616 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13617 esac
13619 esac
13620 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13621 _lt_dar_single_mod='$single_module'
13623 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13624 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13625 else
13626 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13628 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13629 _lt_dsymutil='~$DSYMUTIL $lib || :'
13630 else
13631 _lt_dsymutil=
13634 esac
13636 for ac_header in dlfcn.h
13637 do :
13638 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13639 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13640 cat >>confdefs.h <<_ACEOF
13641 #define HAVE_DLFCN_H 1
13642 _ACEOF
13645 done
13652 # Set options
13656 enable_dlopen=no
13659 enable_win32_dll=no
13662 # Check whether --enable-shared was given.
13663 if test "${enable_shared+set}" = set; then :
13664 enableval=$enable_shared; p=${PACKAGE-default}
13665 case $enableval in
13666 yes) enable_shared=yes ;;
13667 no) enable_shared=no ;;
13669 enable_shared=no
13670 # Look at the argument we got. We use all the common list separators.
13671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13672 for pkg in $enableval; do
13673 IFS="$lt_save_ifs"
13674 if test "X$pkg" = "X$p"; then
13675 enable_shared=yes
13677 done
13678 IFS="$lt_save_ifs"
13680 esac
13681 else
13682 enable_shared=yes
13693 # Check whether --enable-static was given.
13694 if test "${enable_static+set}" = set; then :
13695 enableval=$enable_static; p=${PACKAGE-default}
13696 case $enableval in
13697 yes) enable_static=yes ;;
13698 no) enable_static=no ;;
13700 enable_static=no
13701 # Look at the argument we got. We use all the common list separators.
13702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13703 for pkg in $enableval; do
13704 IFS="$lt_save_ifs"
13705 if test "X$pkg" = "X$p"; then
13706 enable_static=yes
13708 done
13709 IFS="$lt_save_ifs"
13711 esac
13712 else
13713 enable_static=yes
13725 # Check whether --with-pic was given.
13726 if test "${with_pic+set}" = set; then :
13727 withval=$with_pic; pic_mode="$withval"
13728 else
13729 pic_mode=default
13733 test -z "$pic_mode" && pic_mode=default
13741 # Check whether --enable-fast-install was given.
13742 if test "${enable_fast_install+set}" = set; then :
13743 enableval=$enable_fast_install; p=${PACKAGE-default}
13744 case $enableval in
13745 yes) enable_fast_install=yes ;;
13746 no) enable_fast_install=no ;;
13748 enable_fast_install=no
13749 # Look at the argument we got. We use all the common list separators.
13750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13751 for pkg in $enableval; do
13752 IFS="$lt_save_ifs"
13753 if test "X$pkg" = "X$p"; then
13754 enable_fast_install=yes
13756 done
13757 IFS="$lt_save_ifs"
13759 esac
13760 else
13761 enable_fast_install=yes
13774 # This can be used to rebuild libtool when needed
13775 LIBTOOL_DEPS="$ltmain"
13777 # Always use our own libtool.
13778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13805 test -z "$LN_S" && LN_S="ln -s"
13820 if test -n "${ZSH_VERSION+set}" ; then
13821 setopt NO_GLOB_SUBST
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13825 $as_echo_n "checking for objdir... " >&6; }
13826 if test "${lt_cv_objdir+set}" = set; then :
13827 $as_echo_n "(cached) " >&6
13828 else
13829 rm -f .libs 2>/dev/null
13830 mkdir .libs 2>/dev/null
13831 if test -d .libs; then
13832 lt_cv_objdir=.libs
13833 else
13834 # MS-DOS does not allow filenames that begin with a dot.
13835 lt_cv_objdir=_libs
13837 rmdir .libs 2>/dev/null
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13840 $as_echo "$lt_cv_objdir" >&6; }
13841 objdir=$lt_cv_objdir
13847 cat >>confdefs.h <<_ACEOF
13848 #define LT_OBJDIR "$lt_cv_objdir/"
13849 _ACEOF
13854 case $host_os in
13855 aix3*)
13856 # AIX sometimes has problems with the GCC collect2 program. For some
13857 # reason, if we set the COLLECT_NAMES environment variable, the problems
13858 # vanish in a puff of smoke.
13859 if test "X${COLLECT_NAMES+set}" != Xset; then
13860 COLLECT_NAMES=
13861 export COLLECT_NAMES
13864 esac
13866 # Global variables:
13867 ofile=libtool
13868 can_build_shared=yes
13870 # All known linkers require a `.a' archive for static linking (except MSVC,
13871 # which needs '.lib').
13872 libext=a
13874 with_gnu_ld="$lt_cv_prog_gnu_ld"
13876 old_CC="$CC"
13877 old_CFLAGS="$CFLAGS"
13879 # Set sane defaults for various variables
13880 test -z "$CC" && CC=cc
13881 test -z "$LTCC" && LTCC=$CC
13882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13883 test -z "$LD" && LD=ld
13884 test -z "$ac_objext" && ac_objext=o
13886 for cc_temp in $compiler""; do
13887 case $cc_temp in
13888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13890 \-*) ;;
13891 *) break;;
13892 esac
13893 done
13894 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13897 # Only perform the check for file, if the check method requires it
13898 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13899 case $deplibs_check_method in
13900 file_magic*)
13901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13903 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13904 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 case $MAGIC_CMD in
13908 [\\/*] | ?:[\\/]*)
13909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13912 lt_save_MAGIC_CMD="$MAGIC_CMD"
13913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13915 for ac_dir in $ac_dummy; do
13916 IFS="$lt_save_ifs"
13917 test -z "$ac_dir" && ac_dir=.
13918 if test -f $ac_dir/${ac_tool_prefix}file; then
13919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13920 if test -n "$file_magic_test_file"; then
13921 case $deplibs_check_method in
13922 "file_magic "*)
13923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13926 $EGREP "$file_magic_regex" > /dev/null; then
13928 else
13929 cat <<_LT_EOF 1>&2
13931 *** Warning: the command libtool uses to detect shared libraries,
13932 *** $file_magic_cmd, produces output that libtool cannot recognize.
13933 *** The result is that libtool may fail to recognize shared libraries
13934 *** as such. This will affect the creation of libtool libraries that
13935 *** depend on shared libraries, but programs linked with such libtool
13936 *** libraries will work regardless of this problem. Nevertheless, you
13937 *** may want to report the problem to your system manager and/or to
13938 *** bug-libtool@gnu.org
13940 _LT_EOF
13941 fi ;;
13942 esac
13944 break
13946 done
13947 IFS="$lt_save_ifs"
13948 MAGIC_CMD="$lt_save_MAGIC_CMD"
13950 esac
13953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13954 if test -n "$MAGIC_CMD"; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13956 $as_echo "$MAGIC_CMD" >&6; }
13957 else
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 $as_echo "no" >&6; }
13966 if test -z "$lt_cv_path_MAGIC_CMD"; then
13967 if test -n "$ac_tool_prefix"; then
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13969 $as_echo_n "checking for file... " >&6; }
13970 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13971 $as_echo_n "(cached) " >&6
13972 else
13973 case $MAGIC_CMD in
13974 [\\/*] | ?:[\\/]*)
13975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13978 lt_save_MAGIC_CMD="$MAGIC_CMD"
13979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13981 for ac_dir in $ac_dummy; do
13982 IFS="$lt_save_ifs"
13983 test -z "$ac_dir" && ac_dir=.
13984 if test -f $ac_dir/file; then
13985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13986 if test -n "$file_magic_test_file"; then
13987 case $deplibs_check_method in
13988 "file_magic "*)
13989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13992 $EGREP "$file_magic_regex" > /dev/null; then
13994 else
13995 cat <<_LT_EOF 1>&2
13997 *** Warning: the command libtool uses to detect shared libraries,
13998 *** $file_magic_cmd, produces output that libtool cannot recognize.
13999 *** The result is that libtool may fail to recognize shared libraries
14000 *** as such. This will affect the creation of libtool libraries that
14001 *** depend on shared libraries, but programs linked with such libtool
14002 *** libraries will work regardless of this problem. Nevertheless, you
14003 *** may want to report the problem to your system manager and/or to
14004 *** bug-libtool@gnu.org
14006 _LT_EOF
14007 fi ;;
14008 esac
14010 break
14012 done
14013 IFS="$lt_save_ifs"
14014 MAGIC_CMD="$lt_save_MAGIC_CMD"
14016 esac
14019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14020 if test -n "$MAGIC_CMD"; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14022 $as_echo "$MAGIC_CMD" >&6; }
14023 else
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025 $as_echo "no" >&6; }
14029 else
14030 MAGIC_CMD=:
14036 esac
14038 # Use C for the default configuration in the libtool script
14040 lt_save_CC="$CC"
14041 ac_ext=c
14042 ac_cpp='$CPP $CPPFLAGS'
14043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14048 # Source file extension for C test sources.
14049 ac_ext=c
14051 # Object file extension for compiled C test sources.
14052 objext=o
14053 objext=$objext
14055 # Code to be used in simple compile tests
14056 lt_simple_compile_test_code="int some_variable = 0;"
14058 # Code to be used in simple link tests
14059 lt_simple_link_test_code='int main(){return(0);}'
14067 # If no C compiler was specified, use CC.
14068 LTCC=${LTCC-"$CC"}
14070 # If no C compiler flags were specified, use CFLAGS.
14071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14073 # Allow CC to be a program name with arguments.
14074 compiler=$CC
14076 # Save the default compiler, since it gets overwritten when the other
14077 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14078 compiler_DEFAULT=$CC
14080 # save warnings/boilerplate of simple test code
14081 ac_outfile=conftest.$ac_objext
14082 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14084 _lt_compiler_boilerplate=`cat conftest.err`
14085 $RM conftest*
14087 ac_outfile=conftest.$ac_objext
14088 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14090 _lt_linker_boilerplate=`cat conftest.err`
14091 $RM -r conftest*
14094 ## CAVEAT EMPTOR:
14095 ## There is no encapsulation within the following macros, do not change
14096 ## the running order or otherwise move them around unless you know exactly
14097 ## what you are doing...
14098 if test -n "$compiler"; then
14100 lt_prog_compiler_no_builtin_flag=
14102 if test "$GCC" = yes; then
14103 case $cc_basename in
14104 nvcc*)
14105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14108 esac
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14111 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14112 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 lt_cv_prog_compiler_rtti_exceptions=no
14116 ac_outfile=conftest.$ac_objext
14117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14118 lt_compiler_flag="-fno-rtti -fno-exceptions"
14119 # Insert the option either (1) after the last *FLAGS variable, or
14120 # (2) before a word containing "conftest.", or (3) at the end.
14121 # Note that $ac_compile itself does not contain backslashes and begins
14122 # with a dollar sign (not a hyphen), so the echo should work correctly.
14123 # The option is referenced via a variable to avoid confusing sed.
14124 lt_compile=`echo "$ac_compile" | $SED \
14125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14127 -e 's:$: $lt_compiler_flag:'`
14128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14129 (eval "$lt_compile" 2>conftest.err)
14130 ac_status=$?
14131 cat conftest.err >&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 if (exit $ac_status) && test -s "$ac_outfile"; then
14134 # The compiler can only warn and ignore the option if not recognized
14135 # So say no if there are warnings other than the usual output.
14136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14139 lt_cv_prog_compiler_rtti_exceptions=yes
14142 $RM conftest*
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14146 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14150 else
14161 lt_prog_compiler_wl=
14162 lt_prog_compiler_pic=
14163 lt_prog_compiler_static=
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14166 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14168 if test "$GCC" = yes; then
14169 lt_prog_compiler_wl='-Wl,'
14170 lt_prog_compiler_static='-static'
14172 case $host_os in
14173 aix*)
14174 # All AIX code is PIC.
14175 if test "$host_cpu" = ia64; then
14176 # AIX 5 now supports IA64 processor
14177 lt_prog_compiler_static='-Bstatic'
14181 amigaos*)
14182 case $host_cpu in
14183 powerpc)
14184 # see comment about AmigaOS4 .so support
14185 lt_prog_compiler_pic='-fPIC'
14187 m68k)
14188 # FIXME: we need at least 68020 code to build shared libraries, but
14189 # adding the `-m68020' flag to GCC prevents building anything better,
14190 # like `-m68040'.
14191 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14193 esac
14196 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14197 # PIC is the default for these OSes.
14200 mingw* | cygwin* | pw32* | os2* | cegcc*)
14201 # This hack is so that the source file can tell whether it is being
14202 # built for inclusion in a dll (and should export symbols for example).
14203 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14204 # (--disable-auto-import) libraries
14205 lt_prog_compiler_pic='-DDLL_EXPORT'
14208 darwin* | rhapsody*)
14209 # PIC is the default on this platform
14210 # Common symbols not allowed in MH_DYLIB files
14211 lt_prog_compiler_pic='-fno-common'
14214 haiku*)
14215 # PIC is the default for Haiku.
14216 # The "-static" flag exists, but is broken.
14217 lt_prog_compiler_static=
14220 hpux*)
14221 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14222 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14223 # sets the default TLS model and affects inlining.
14224 case $host_cpu in
14225 hppa*64*)
14226 # +Z the default
14229 lt_prog_compiler_pic='-fPIC'
14231 esac
14234 interix[3-9]*)
14235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14236 # Instead, we relocate shared libraries at runtime.
14239 msdosdjgpp*)
14240 # Just because we use GCC doesn't mean we suddenly get shared libraries
14241 # on systems that don't support them.
14242 lt_prog_compiler_can_build_shared=no
14243 enable_shared=no
14246 *nto* | *qnx*)
14247 # QNX uses GNU C++, but need to define -shared option too, otherwise
14248 # it will coredump.
14249 lt_prog_compiler_pic='-fPIC -shared'
14252 sysv4*MP*)
14253 if test -d /usr/nec; then
14254 lt_prog_compiler_pic=-Kconform_pic
14259 lt_prog_compiler_pic='-fPIC'
14261 esac
14263 case $cc_basename in
14264 nvcc*) # Cuda Compiler Driver 2.2
14265 lt_prog_compiler_wl='-Xlinker '
14266 lt_prog_compiler_pic='-Xcompiler -fPIC'
14268 esac
14269 else
14270 # PORTME Check for flag to pass linker flags through the system compiler.
14271 case $host_os in
14272 aix*)
14273 lt_prog_compiler_wl='-Wl,'
14274 if test "$host_cpu" = ia64; then
14275 # AIX 5 now supports IA64 processor
14276 lt_prog_compiler_static='-Bstatic'
14277 else
14278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14282 mingw* | cygwin* | pw32* | os2* | cegcc*)
14283 # This hack is so that the source file can tell whether it is being
14284 # built for inclusion in a dll (and should export symbols for example).
14285 lt_prog_compiler_pic='-DDLL_EXPORT'
14288 hpux9* | hpux10* | hpux11*)
14289 lt_prog_compiler_wl='-Wl,'
14290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14291 # not for PA HP-UX.
14292 case $host_cpu in
14293 hppa*64*|ia64*)
14294 # +Z the default
14297 lt_prog_compiler_pic='+Z'
14299 esac
14300 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14301 lt_prog_compiler_static='${wl}-a ${wl}archive'
14304 irix5* | irix6* | nonstopux*)
14305 lt_prog_compiler_wl='-Wl,'
14306 # PIC (with -KPIC) is the default.
14307 lt_prog_compiler_static='-non_shared'
14310 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14311 case $cc_basename in
14312 # old Intel for x86_64 which still supported -KPIC.
14313 ecc*)
14314 lt_prog_compiler_wl='-Wl,'
14315 lt_prog_compiler_pic='-KPIC'
14316 lt_prog_compiler_static='-static'
14318 # icc used to be incompatible with GCC.
14319 # ICC 10 doesn't accept -KPIC any more.
14320 icc* | ifort*)
14321 lt_prog_compiler_wl='-Wl,'
14322 lt_prog_compiler_pic='-fPIC'
14323 lt_prog_compiler_static='-static'
14325 # Lahey Fortran 8.1.
14326 lf95*)
14327 lt_prog_compiler_wl='-Wl,'
14328 lt_prog_compiler_pic='--shared'
14329 lt_prog_compiler_static='--static'
14331 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14332 # Portland Group compilers (*not* the Pentium gcc compiler,
14333 # which looks to be a dead project)
14334 lt_prog_compiler_wl='-Wl,'
14335 lt_prog_compiler_pic='-fpic'
14336 lt_prog_compiler_static='-Bstatic'
14338 ccc*)
14339 lt_prog_compiler_wl='-Wl,'
14340 # All Alpha code is PIC.
14341 lt_prog_compiler_static='-non_shared'
14343 xl* | bgxl* | bgf* | mpixl*)
14344 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14345 lt_prog_compiler_wl='-Wl,'
14346 lt_prog_compiler_pic='-qpic'
14347 lt_prog_compiler_static='-qstaticlink'
14350 case `$CC -V 2>&1 | sed 5q` in
14351 *Sun\ F* | *Sun*Fortran*)
14352 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14353 lt_prog_compiler_pic='-KPIC'
14354 lt_prog_compiler_static='-Bstatic'
14355 lt_prog_compiler_wl=''
14357 *Sun\ C*)
14358 # Sun C 5.9
14359 lt_prog_compiler_pic='-KPIC'
14360 lt_prog_compiler_static='-Bstatic'
14361 lt_prog_compiler_wl='-Wl,'
14363 esac
14365 esac
14368 newsos6)
14369 lt_prog_compiler_pic='-KPIC'
14370 lt_prog_compiler_static='-Bstatic'
14373 *nto* | *qnx*)
14374 # QNX uses GNU C++, but need to define -shared option too, otherwise
14375 # it will coredump.
14376 lt_prog_compiler_pic='-fPIC -shared'
14379 osf3* | osf4* | osf5*)
14380 lt_prog_compiler_wl='-Wl,'
14381 # All OSF/1 code is PIC.
14382 lt_prog_compiler_static='-non_shared'
14385 rdos*)
14386 lt_prog_compiler_static='-non_shared'
14389 solaris*)
14390 lt_prog_compiler_pic='-KPIC'
14391 lt_prog_compiler_static='-Bstatic'
14392 case $cc_basename in
14393 f77* | f90* | f95*)
14394 lt_prog_compiler_wl='-Qoption ld ';;
14396 lt_prog_compiler_wl='-Wl,';;
14397 esac
14400 sunos4*)
14401 lt_prog_compiler_wl='-Qoption ld '
14402 lt_prog_compiler_pic='-PIC'
14403 lt_prog_compiler_static='-Bstatic'
14406 sysv4 | sysv4.2uw2* | sysv4.3*)
14407 lt_prog_compiler_wl='-Wl,'
14408 lt_prog_compiler_pic='-KPIC'
14409 lt_prog_compiler_static='-Bstatic'
14412 sysv4*MP*)
14413 if test -d /usr/nec ;then
14414 lt_prog_compiler_pic='-Kconform_pic'
14415 lt_prog_compiler_static='-Bstatic'
14419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14420 lt_prog_compiler_wl='-Wl,'
14421 lt_prog_compiler_pic='-KPIC'
14422 lt_prog_compiler_static='-Bstatic'
14425 unicos*)
14426 lt_prog_compiler_wl='-Wl,'
14427 lt_prog_compiler_can_build_shared=no
14430 uts4*)
14431 lt_prog_compiler_pic='-pic'
14432 lt_prog_compiler_static='-Bstatic'
14436 lt_prog_compiler_can_build_shared=no
14438 esac
14441 case $host_os in
14442 # For platforms which do not support PIC, -DPIC is meaningless:
14443 *djgpp*)
14444 lt_prog_compiler_pic=
14447 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14449 esac
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14451 $as_echo "$lt_prog_compiler_pic" >&6; }
14459 # Check to make sure the PIC flag actually works.
14461 if test -n "$lt_prog_compiler_pic"; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14463 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14464 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 lt_cv_prog_compiler_pic_works=no
14468 ac_outfile=conftest.$ac_objext
14469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14470 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14471 # Insert the option either (1) after the last *FLAGS variable, or
14472 # (2) before a word containing "conftest.", or (3) at the end.
14473 # Note that $ac_compile itself does not contain backslashes and begins
14474 # with a dollar sign (not a hyphen), so the echo should work correctly.
14475 # The option is referenced via a variable to avoid confusing sed.
14476 lt_compile=`echo "$ac_compile" | $SED \
14477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14479 -e 's:$: $lt_compiler_flag:'`
14480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14481 (eval "$lt_compile" 2>conftest.err)
14482 ac_status=$?
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 if (exit $ac_status) && test -s "$ac_outfile"; then
14486 # The compiler can only warn and ignore the option if not recognized
14487 # So say no if there are warnings other than the usual output.
14488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14490 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14491 lt_cv_prog_compiler_pic_works=yes
14494 $RM conftest*
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14498 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14500 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14501 case $lt_prog_compiler_pic in
14502 "" | " "*) ;;
14503 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14504 esac
14505 else
14506 lt_prog_compiler_pic=
14507 lt_prog_compiler_can_build_shared=no
14518 # Check to make sure the static flag actually works.
14520 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14522 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14523 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14524 $as_echo_n "(cached) " >&6
14525 else
14526 lt_cv_prog_compiler_static_works=no
14527 save_LDFLAGS="$LDFLAGS"
14528 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14529 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14530 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14531 # The linker can only warn and ignore the option if not recognized
14532 # So say no if there are warnings
14533 if test -s conftest.err; then
14534 # Append any errors to the config.log.
14535 cat conftest.err 1>&5
14536 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14538 if diff conftest.exp conftest.er2 >/dev/null; then
14539 lt_cv_prog_compiler_static_works=yes
14541 else
14542 lt_cv_prog_compiler_static_works=yes
14545 $RM -r conftest*
14546 LDFLAGS="$save_LDFLAGS"
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14550 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14552 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14554 else
14555 lt_prog_compiler_static=
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14566 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 lt_cv_prog_compiler_c_o=no
14570 $RM -r conftest 2>/dev/null
14571 mkdir conftest
14572 cd conftest
14573 mkdir out
14574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14576 lt_compiler_flag="-o out/conftest2.$ac_objext"
14577 # Insert the option either (1) after the last *FLAGS variable, or
14578 # (2) before a word containing "conftest.", or (3) at the end.
14579 # Note that $ac_compile itself does not contain backslashes and begins
14580 # with a dollar sign (not a hyphen), so the echo should work correctly.
14581 lt_compile=`echo "$ac_compile" | $SED \
14582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14584 -e 's:$: $lt_compiler_flag:'`
14585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14586 (eval "$lt_compile" 2>out/conftest.err)
14587 ac_status=$?
14588 cat out/conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14591 then
14592 # The compiler can only warn and ignore the option if not recognized
14593 # So say no if there are warnings
14594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14597 lt_cv_prog_compiler_c_o=yes
14600 chmod u+w . 2>&5
14601 $RM conftest*
14602 # SGI C++ compiler will create directory out/ii_files/ for
14603 # template instantiation
14604 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14605 $RM out/* && rmdir out
14606 cd ..
14607 $RM -r conftest
14608 $RM conftest*
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14612 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14620 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14621 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14622 $as_echo_n "(cached) " >&6
14623 else
14624 lt_cv_prog_compiler_c_o=no
14625 $RM -r conftest 2>/dev/null
14626 mkdir conftest
14627 cd conftest
14628 mkdir out
14629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14631 lt_compiler_flag="-o out/conftest2.$ac_objext"
14632 # Insert the option either (1) after the last *FLAGS variable, or
14633 # (2) before a word containing "conftest.", or (3) at the end.
14634 # Note that $ac_compile itself does not contain backslashes and begins
14635 # with a dollar sign (not a hyphen), so the echo should work correctly.
14636 lt_compile=`echo "$ac_compile" | $SED \
14637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14639 -e 's:$: $lt_compiler_flag:'`
14640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14641 (eval "$lt_compile" 2>out/conftest.err)
14642 ac_status=$?
14643 cat out/conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14646 then
14647 # The compiler can only warn and ignore the option if not recognized
14648 # So say no if there are warnings
14649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14652 lt_cv_prog_compiler_c_o=yes
14655 chmod u+w . 2>&5
14656 $RM conftest*
14657 # SGI C++ compiler will create directory out/ii_files/ for
14658 # template instantiation
14659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14660 $RM out/* && rmdir out
14661 cd ..
14662 $RM -r conftest
14663 $RM conftest*
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14667 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14672 hard_links="nottested"
14673 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14674 # do not overwrite the value of need_locks provided by the user
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14676 $as_echo_n "checking if we can lock with hard links... " >&6; }
14677 hard_links=yes
14678 $RM conftest*
14679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14680 touch conftest.a
14681 ln conftest.a conftest.b 2>&5 || hard_links=no
14682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14684 $as_echo "$hard_links" >&6; }
14685 if test "$hard_links" = no; then
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14687 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14688 need_locks=warn
14690 else
14691 need_locks=no
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14700 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14702 runpath_var=
14703 allow_undefined_flag=
14704 always_export_symbols=no
14705 archive_cmds=
14706 archive_expsym_cmds=
14707 compiler_needs_object=no
14708 enable_shared_with_static_runtimes=no
14709 export_dynamic_flag_spec=
14710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14711 hardcode_automatic=no
14712 hardcode_direct=no
14713 hardcode_direct_absolute=no
14714 hardcode_libdir_flag_spec=
14715 hardcode_libdir_flag_spec_ld=
14716 hardcode_libdir_separator=
14717 hardcode_minus_L=no
14718 hardcode_shlibpath_var=unsupported
14719 inherit_rpath=no
14720 link_all_deplibs=unknown
14721 module_cmds=
14722 module_expsym_cmds=
14723 old_archive_from_new_cmds=
14724 old_archive_from_expsyms_cmds=
14725 thread_safe_flag_spec=
14726 whole_archive_flag_spec=
14727 # include_expsyms should be a list of space-separated symbols to be *always*
14728 # included in the symbol list
14729 include_expsyms=
14730 # exclude_expsyms can be an extended regexp of symbols to exclude
14731 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14732 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14733 # as well as any symbol that contains `d'.
14734 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14735 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14736 # platforms (ab)use it in PIC code, but their linkers get confused if
14737 # the symbol is explicitly referenced. Since portable code cannot
14738 # rely on this symbol name, it's probably fine to never include it in
14739 # preloaded symbol tables.
14740 # Exclude shared library initialization/finalization symbols.
14741 extract_expsyms_cmds=
14743 case $host_os in
14744 cygwin* | mingw* | pw32* | cegcc*)
14745 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14746 # When not using gcc, we currently assume that we are using
14747 # Microsoft Visual C++.
14748 if test "$GCC" != yes; then
14749 with_gnu_ld=no
14752 interix*)
14753 # we just hope/assume this is gcc and not c89 (= MSVC++)
14754 with_gnu_ld=yes
14756 openbsd*)
14757 with_gnu_ld=no
14759 esac
14761 ld_shlibs=yes
14763 # On some targets, GNU ld is compatible enough with the native linker
14764 # that we're better off using the native interface for both.
14765 lt_use_gnu_ld_interface=no
14766 if test "$with_gnu_ld" = yes; then
14767 case $host_os in
14768 aix*)
14769 # The AIX port of GNU ld has always aspired to compatibility
14770 # with the native linker. However, as the warning in the GNU ld
14771 # block says, versions before 2.19.5* couldn't really create working
14772 # shared libraries, regardless of the interface used.
14773 case `$LD -v 2>&1` in
14774 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14775 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14776 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14778 lt_use_gnu_ld_interface=yes
14780 esac
14783 lt_use_gnu_ld_interface=yes
14785 esac
14788 if test "$lt_use_gnu_ld_interface" = yes; then
14789 # If archive_cmds runs LD, not CC, wlarc should be empty
14790 wlarc='${wl}'
14792 # Set some defaults for GNU ld with shared library support. These
14793 # are reset later if shared libraries are not supported. Putting them
14794 # here allows them to be overridden if necessary.
14795 runpath_var=LD_RUN_PATH
14796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14797 export_dynamic_flag_spec='${wl}--export-dynamic'
14798 # ancient GNU ld didn't support --whole-archive et. al.
14799 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14800 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14801 else
14802 whole_archive_flag_spec=
14804 supports_anon_versioning=no
14805 case `$LD -v 2>&1` in
14806 *GNU\ gold*) supports_anon_versioning=yes ;;
14807 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14808 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14809 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14810 *\ 2.11.*) ;; # other 2.11 versions
14811 *) supports_anon_versioning=yes ;;
14812 esac
14814 # See if GNU ld supports shared libraries.
14815 case $host_os in
14816 aix[3-9]*)
14817 # On AIX/PPC, the GNU linker is very broken
14818 if test "$host_cpu" != ia64; then
14819 ld_shlibs=no
14820 cat <<_LT_EOF 1>&2
14822 *** Warning: the GNU linker, at least up to release 2.19, is reported
14823 *** to be unable to reliably create shared libraries on AIX.
14824 *** Therefore, libtool is disabling shared libraries support. If you
14825 *** really care for shared libraries, you may want to install binutils
14826 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14827 *** You will then need to restart the configuration process.
14829 _LT_EOF
14833 amigaos*)
14834 case $host_cpu in
14835 powerpc)
14836 # see comment about AmigaOS4 .so support
14837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14838 archive_expsym_cmds=''
14840 m68k)
14841 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)'
14842 hardcode_libdir_flag_spec='-L$libdir'
14843 hardcode_minus_L=yes
14845 esac
14848 beos*)
14849 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14850 allow_undefined_flag=unsupported
14851 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14852 # support --undefined. This deserves some investigation. FIXME
14853 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14854 else
14855 ld_shlibs=no
14859 cygwin* | mingw* | pw32* | cegcc*)
14860 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14861 # as there is no search path for DLLs.
14862 hardcode_libdir_flag_spec='-L$libdir'
14863 export_dynamic_flag_spec='${wl}--export-all-symbols'
14864 allow_undefined_flag=unsupported
14865 always_export_symbols=no
14866 enable_shared_with_static_runtimes=yes
14867 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14869 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14871 # If the export-symbols file already is a .def file (1st line
14872 # is EXPORTS), use it as is; otherwise, prepend...
14873 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14874 cp $export_symbols $output_objdir/$soname.def;
14875 else
14876 echo EXPORTS > $output_objdir/$soname.def;
14877 cat $export_symbols >> $output_objdir/$soname.def;
14879 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14880 else
14881 ld_shlibs=no
14885 haiku*)
14886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14887 link_all_deplibs=yes
14890 interix[3-9]*)
14891 hardcode_direct=no
14892 hardcode_shlibpath_var=no
14893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14894 export_dynamic_flag_spec='${wl}-E'
14895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14896 # Instead, shared libraries are loaded at an image base (0x10000000 by
14897 # default) and relocated if they conflict, which is a slow very memory
14898 # consuming and fragmenting process. To avoid this, we pick a random,
14899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14901 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14902 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'
14905 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14906 tmp_diet=no
14907 if test "$host_os" = linux-dietlibc; then
14908 case $cc_basename in
14909 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14910 esac
14912 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14913 && test "$tmp_diet" = no
14914 then
14915 tmp_addflag=
14916 tmp_sharedflag='-shared'
14917 case $cc_basename,$host_cpu in
14918 pgcc*) # Portland Group C compiler
14919 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'
14920 tmp_addflag=' $pic_flag'
14922 pgf77* | pgf90* | pgf95* | pgfortran*)
14923 # Portland Group f77 and f90 compilers
14924 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'
14925 tmp_addflag=' $pic_flag -Mnomain' ;;
14926 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14927 tmp_addflag=' -i_dynamic' ;;
14928 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14929 tmp_addflag=' -i_dynamic -nofor_main' ;;
14930 ifc* | ifort*) # Intel Fortran compiler
14931 tmp_addflag=' -nofor_main' ;;
14932 lf95*) # Lahey Fortran 8.1
14933 whole_archive_flag_spec=
14934 tmp_sharedflag='--shared' ;;
14935 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14936 tmp_sharedflag='-qmkshrobj'
14937 tmp_addflag= ;;
14938 nvcc*) # Cuda Compiler Driver 2.2
14939 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'
14940 compiler_needs_object=yes
14942 esac
14943 case `$CC -V 2>&1 | sed 5q` in
14944 *Sun\ C*) # Sun C 5.9
14945 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'
14946 compiler_needs_object=yes
14947 tmp_sharedflag='-G' ;;
14948 *Sun\ F*) # Sun Fortran 8.3
14949 tmp_sharedflag='-G' ;;
14950 esac
14951 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14953 if test "x$supports_anon_versioning" = xyes; then
14954 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14956 echo "local: *; };" >> $output_objdir/$libname.ver~
14957 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14960 case $cc_basename in
14961 xlf* | bgf* | bgxlf* | mpixlf*)
14962 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14963 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14964 hardcode_libdir_flag_spec=
14965 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14966 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14967 if test "x$supports_anon_versioning" = xyes; then
14968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14970 echo "local: *; };" >> $output_objdir/$libname.ver~
14971 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14974 esac
14975 else
14976 ld_shlibs=no
14980 netbsd*)
14981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14982 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14983 wlarc=
14984 else
14985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14990 solaris*)
14991 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14992 ld_shlibs=no
14993 cat <<_LT_EOF 1>&2
14995 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14996 *** create shared libraries on Solaris systems. Therefore, libtool
14997 *** is disabling shared libraries support. We urge you to upgrade GNU
14998 *** binutils to release 2.9.1 or newer. Another option is to modify
14999 *** your PATH or compiler configuration so that the native linker is
15000 *** used, and then restart.
15002 _LT_EOF
15003 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15006 else
15007 ld_shlibs=no
15011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15012 case `$LD -v 2>&1` in
15013 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15014 ld_shlibs=no
15015 cat <<_LT_EOF 1>&2
15017 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15018 *** reliably create shared libraries on SCO systems. Therefore, libtool
15019 *** is disabling shared libraries support. We urge you to upgrade GNU
15020 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15021 *** your PATH or compiler configuration so that the native linker is
15022 *** used, and then restart.
15024 _LT_EOF
15027 # For security reasons, it is highly recommended that you always
15028 # use absolute paths for naming shared libraries, and exclude the
15029 # DT_RUNPATH tag from executables and libraries. But doing so
15030 # requires that you compile everything twice, which is a pain.
15031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15035 else
15036 ld_shlibs=no
15039 esac
15042 sunos4*)
15043 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15044 wlarc=
15045 hardcode_direct=yes
15046 hardcode_shlibpath_var=no
15050 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15053 else
15054 ld_shlibs=no
15057 esac
15059 if test "$ld_shlibs" = no; then
15060 runpath_var=
15061 hardcode_libdir_flag_spec=
15062 export_dynamic_flag_spec=
15063 whole_archive_flag_spec=
15065 else
15066 # PORTME fill in a description of your system's linker (not GNU ld)
15067 case $host_os in
15068 aix3*)
15069 allow_undefined_flag=unsupported
15070 always_export_symbols=yes
15071 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'
15072 # Note: this linker hardcodes the directories in LIBPATH if there
15073 # are no directories specified by -L.
15074 hardcode_minus_L=yes
15075 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15076 # Neither direct hardcoding nor static linking is supported with a
15077 # broken collect2.
15078 hardcode_direct=unsupported
15082 aix[4-9]*)
15083 if test "$host_cpu" = ia64; then
15084 # On IA64, the linker does run time linking by default, so we don't
15085 # have to do anything special.
15086 aix_use_runtimelinking=no
15087 exp_sym_flag='-Bexport'
15088 no_entry_flag=""
15089 else
15090 # If we're using GNU nm, then we don't want the "-C" option.
15091 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15092 # Also, AIX nm treats weak defined symbols like other global
15093 # defined symbols, whereas GNU nm marks them as "W".
15094 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15095 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'
15096 else
15097 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'
15099 aix_use_runtimelinking=no
15101 # Test if we are trying to use run time linking or normal
15102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15103 # need to do runtime linking.
15104 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15105 for ld_flag in $LDFLAGS; do
15106 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15107 aix_use_runtimelinking=yes
15108 break
15110 done
15112 esac
15114 exp_sym_flag='-bexport'
15115 no_entry_flag='-bnoentry'
15118 # When large executables or shared objects are built, AIX ld can
15119 # have problems creating the table of contents. If linking a library
15120 # or program results in "error TOC overflow" add -mminimal-toc to
15121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15124 archive_cmds=''
15125 hardcode_direct=yes
15126 hardcode_direct_absolute=yes
15127 hardcode_libdir_separator=':'
15128 link_all_deplibs=yes
15129 file_list_spec='${wl}-f,'
15131 if test "$GCC" = yes; then
15132 case $host_os in aix4.[012]|aix4.[012].*)
15133 # We only want to do this on AIX 4.2 and lower, the check
15134 # below for broken collect2 doesn't work under 4.3+
15135 collect2name=`${CC} -print-prog-name=collect2`
15136 if test -f "$collect2name" &&
15137 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15138 then
15139 # We have reworked collect2
15141 else
15142 # We have old collect2
15143 hardcode_direct=unsupported
15144 # It fails to find uninstalled libraries when the uninstalled
15145 # path is not listed in the libpath. Setting hardcode_minus_L
15146 # to unsupported forces relinking
15147 hardcode_minus_L=yes
15148 hardcode_libdir_flag_spec='-L$libdir'
15149 hardcode_libdir_separator=
15152 esac
15153 shared_flag='-shared'
15154 if test "$aix_use_runtimelinking" = yes; then
15155 shared_flag="$shared_flag "'${wl}-G'
15157 else
15158 # not using gcc
15159 if test "$host_cpu" = ia64; then
15160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15161 # chokes on -Wl,-G. The following line is correct:
15162 shared_flag='-G'
15163 else
15164 if test "$aix_use_runtimelinking" = yes; then
15165 shared_flag='${wl}-G'
15166 else
15167 shared_flag='${wl}-bM:SRE'
15172 export_dynamic_flag_spec='${wl}-bexpall'
15173 # It seems that -bexpall does not export symbols beginning with
15174 # underscore (_), so it is better to generate a list of symbols to export.
15175 always_export_symbols=yes
15176 if test "$aix_use_runtimelinking" = yes; then
15177 # Warning - without using the other runtime loading flags (-brtl),
15178 # -berok will link without error, but may produce a broken library.
15179 allow_undefined_flag='-berok'
15180 # Determine the default libpath from the value encoded in an
15181 # empty executable.
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15186 main ()
15190 return 0;
15192 _ACEOF
15193 if ac_fn_c_try_link "$LINENO"; then :
15195 lt_aix_libpath_sed='
15196 /Import File Strings/,/^$/ {
15197 /^0/ {
15198 s/^0 *\(.*\)$/\1/
15202 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15203 # Check for a 64-bit object if we didn't find anything.
15204 if test -z "$aix_libpath"; then
15205 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15208 rm -f core conftest.err conftest.$ac_objext \
15209 conftest$ac_exeext conftest.$ac_ext
15210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15212 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15213 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"
15214 else
15215 if test "$host_cpu" = ia64; then
15216 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15217 allow_undefined_flag="-z nodefs"
15218 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"
15219 else
15220 # Determine the default libpath from the value encoded in an
15221 # empty executable.
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15226 main ()
15230 return 0;
15232 _ACEOF
15233 if ac_fn_c_try_link "$LINENO"; then :
15235 lt_aix_libpath_sed='
15236 /Import File Strings/,/^$/ {
15237 /^0/ {
15238 s/^0 *\(.*\)$/\1/
15242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15243 # Check for a 64-bit object if we didn't find anything.
15244 if test -z "$aix_libpath"; then
15245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15248 rm -f core conftest.err conftest.$ac_objext \
15249 conftest$ac_exeext conftest.$ac_ext
15250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15252 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15253 # Warning - without using the other run time loading flags,
15254 # -berok will link without error, but may produce a broken library.
15255 no_undefined_flag=' ${wl}-bernotok'
15256 allow_undefined_flag=' ${wl}-berok'
15257 if test "$with_gnu_ld" = yes; then
15258 # We only use this code for GNU lds that support --whole-archive.
15259 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15260 else
15261 # Exported symbols can be pulled into shared objects from archives
15262 whole_archive_flag_spec='$convenience'
15264 archive_cmds_need_lc=yes
15265 # This is similar to how AIX traditionally builds its shared libraries.
15266 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'
15271 amigaos*)
15272 case $host_cpu in
15273 powerpc)
15274 # see comment about AmigaOS4 .so support
15275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15276 archive_expsym_cmds=''
15278 m68k)
15279 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)'
15280 hardcode_libdir_flag_spec='-L$libdir'
15281 hardcode_minus_L=yes
15283 esac
15286 bsdi[45]*)
15287 export_dynamic_flag_spec=-rdynamic
15290 cygwin* | mingw* | pw32* | cegcc*)
15291 # When not using gcc, we currently assume that we are using
15292 # Microsoft Visual C++.
15293 # hardcode_libdir_flag_spec is actually meaningless, as there is
15294 # no search path for DLLs.
15295 hardcode_libdir_flag_spec=' '
15296 allow_undefined_flag=unsupported
15297 # Tell ltmain to make .lib files, not .a files.
15298 libext=lib
15299 # Tell ltmain to make .dll files, not .so files.
15300 shrext_cmds=".dll"
15301 # FIXME: Setting linknames here is a bad hack.
15302 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15303 # The linker will automatically build a .lib file if we build a DLL.
15304 old_archive_from_new_cmds='true'
15305 # FIXME: Should let the user specify the lib program.
15306 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15307 fix_srcfile_path='`cygpath -w "$srcfile"`'
15308 enable_shared_with_static_runtimes=yes
15311 darwin* | rhapsody*)
15314 archive_cmds_need_lc=no
15315 hardcode_direct=no
15316 hardcode_automatic=yes
15317 hardcode_shlibpath_var=unsupported
15318 if test "$lt_cv_ld_force_load" = "yes"; then
15319 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\"`'
15320 else
15321 whole_archive_flag_spec=''
15323 link_all_deplibs=yes
15324 allow_undefined_flag="$_lt_dar_allow_undefined"
15325 case $cc_basename in
15326 ifort*) _lt_dar_can_shared=yes ;;
15327 *) _lt_dar_can_shared=$GCC ;;
15328 esac
15329 if test "$_lt_dar_can_shared" = "yes"; then
15330 output_verbose_link_cmd=func_echo_all
15331 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15332 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15333 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}"
15334 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}"
15336 else
15337 ld_shlibs=no
15342 dgux*)
15343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15344 hardcode_libdir_flag_spec='-L$libdir'
15345 hardcode_shlibpath_var=no
15348 freebsd1*)
15349 ld_shlibs=no
15352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15353 # support. Future versions do this automatically, but an explicit c++rt0.o
15354 # does not break anything, and helps significantly (at the cost of a little
15355 # extra space).
15356 freebsd2.2*)
15357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15358 hardcode_libdir_flag_spec='-R$libdir'
15359 hardcode_direct=yes
15360 hardcode_shlibpath_var=no
15363 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15364 freebsd2*)
15365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15366 hardcode_direct=yes
15367 hardcode_minus_L=yes
15368 hardcode_shlibpath_var=no
15371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15372 freebsd* | dragonfly*)
15373 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15374 hardcode_libdir_flag_spec='-R$libdir'
15375 hardcode_direct=yes
15376 hardcode_shlibpath_var=no
15379 hpux9*)
15380 if test "$GCC" = yes; then
15381 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'
15382 else
15383 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'
15385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15386 hardcode_libdir_separator=:
15387 hardcode_direct=yes
15389 # hardcode_minus_L: Not really in the search PATH,
15390 # but as the default location of the library.
15391 hardcode_minus_L=yes
15392 export_dynamic_flag_spec='${wl}-E'
15395 hpux10*)
15396 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15397 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15398 else
15399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15401 if test "$with_gnu_ld" = no; then
15402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15403 hardcode_libdir_flag_spec_ld='+b $libdir'
15404 hardcode_libdir_separator=:
15405 hardcode_direct=yes
15406 hardcode_direct_absolute=yes
15407 export_dynamic_flag_spec='${wl}-E'
15408 # hardcode_minus_L: Not really in the search PATH,
15409 # but as the default location of the library.
15410 hardcode_minus_L=yes
15414 hpux11*)
15415 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15416 case $host_cpu in
15417 hppa*64*)
15418 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15420 ia64*)
15421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15426 esac
15427 else
15428 case $host_cpu in
15429 hppa*64*)
15430 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15432 ia64*)
15433 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15437 # Older versions of the 11.00 compiler do not understand -b yet
15438 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15440 $as_echo_n "checking if $CC understands -b... " >&6; }
15441 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15442 $as_echo_n "(cached) " >&6
15443 else
15444 lt_cv_prog_compiler__b=no
15445 save_LDFLAGS="$LDFLAGS"
15446 LDFLAGS="$LDFLAGS -b"
15447 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15449 # The linker can only warn and ignore the option if not recognized
15450 # So say no if there are warnings
15451 if test -s conftest.err; then
15452 # Append any errors to the config.log.
15453 cat conftest.err 1>&5
15454 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15456 if diff conftest.exp conftest.er2 >/dev/null; then
15457 lt_cv_prog_compiler__b=yes
15459 else
15460 lt_cv_prog_compiler__b=yes
15463 $RM -r conftest*
15464 LDFLAGS="$save_LDFLAGS"
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15468 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15470 if test x"$lt_cv_prog_compiler__b" = xyes; then
15471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15472 else
15473 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15477 esac
15479 if test "$with_gnu_ld" = no; then
15480 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15481 hardcode_libdir_separator=:
15483 case $host_cpu in
15484 hppa*64*|ia64*)
15485 hardcode_direct=no
15486 hardcode_shlibpath_var=no
15489 hardcode_direct=yes
15490 hardcode_direct_absolute=yes
15491 export_dynamic_flag_spec='${wl}-E'
15493 # hardcode_minus_L: Not really in the search PATH,
15494 # but as the default location of the library.
15495 hardcode_minus_L=yes
15497 esac
15501 irix5* | irix6* | nonstopux*)
15502 if test "$GCC" = yes; then
15503 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'
15504 # Try to use the -exported_symbol ld option, if it does not
15505 # work, assume that -exports_file does not work either and
15506 # implicitly export all symbols.
15507 save_LDFLAGS="$LDFLAGS"
15508 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15511 int foo(void) {}
15512 _ACEOF
15513 if ac_fn_c_try_link "$LINENO"; then :
15514 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'
15517 rm -f core conftest.err conftest.$ac_objext \
15518 conftest$ac_exeext conftest.$ac_ext
15519 LDFLAGS="$save_LDFLAGS"
15520 else
15521 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'
15522 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'
15524 archive_cmds_need_lc='no'
15525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15526 hardcode_libdir_separator=:
15527 inherit_rpath=yes
15528 link_all_deplibs=yes
15531 netbsd*)
15532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15534 else
15535 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15537 hardcode_libdir_flag_spec='-R$libdir'
15538 hardcode_direct=yes
15539 hardcode_shlibpath_var=no
15542 newsos6)
15543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15544 hardcode_direct=yes
15545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15546 hardcode_libdir_separator=:
15547 hardcode_shlibpath_var=no
15550 *nto* | *qnx*)
15553 openbsd*)
15554 if test -f /usr/libexec/ld.so; then
15555 hardcode_direct=yes
15556 hardcode_shlibpath_var=no
15557 hardcode_direct_absolute=yes
15558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15560 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15561 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15562 export_dynamic_flag_spec='${wl}-E'
15563 else
15564 case $host_os in
15565 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15567 hardcode_libdir_flag_spec='-R$libdir'
15570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15573 esac
15575 else
15576 ld_shlibs=no
15580 os2*)
15581 hardcode_libdir_flag_spec='-L$libdir'
15582 hardcode_minus_L=yes
15583 allow_undefined_flag=unsupported
15584 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'
15585 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15588 osf3*)
15589 if test "$GCC" = yes; then
15590 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15591 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'
15592 else
15593 allow_undefined_flag=' -expect_unresolved \*'
15594 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'
15596 archive_cmds_need_lc='no'
15597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15598 hardcode_libdir_separator=:
15601 osf4* | osf5*) # as osf3* with the addition of -msym flag
15602 if test "$GCC" = yes; then
15603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15604 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'
15605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15606 else
15607 allow_undefined_flag=' -expect_unresolved \*'
15608 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'
15609 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~
15610 $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'
15612 # Both c and cxx compiler support -rpath directly
15613 hardcode_libdir_flag_spec='-rpath $libdir'
15615 archive_cmds_need_lc='no'
15616 hardcode_libdir_separator=:
15619 solaris*)
15620 no_undefined_flag=' -z defs'
15621 if test "$GCC" = yes; then
15622 wlarc='${wl}'
15623 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15625 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15626 else
15627 case `$CC -V 2>&1` in
15628 *"Compilers 5.0"*)
15629 wlarc=''
15630 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15631 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15635 wlarc='${wl}'
15636 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15638 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15640 esac
15642 hardcode_libdir_flag_spec='-R$libdir'
15643 hardcode_shlibpath_var=no
15644 case $host_os in
15645 solaris2.[0-5] | solaris2.[0-5].*) ;;
15647 # The compiler driver will combine and reorder linker options,
15648 # but understands `-z linker_flag'. GCC discards it without `$wl',
15649 # but is careful enough not to reorder.
15650 # Supported since Solaris 2.6 (maybe 2.5.1?)
15651 if test "$GCC" = yes; then
15652 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15653 else
15654 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15657 esac
15658 link_all_deplibs=yes
15661 sunos4*)
15662 if test "x$host_vendor" = xsequent; then
15663 # Use $CC to link under sequent, because it throws in some extra .o
15664 # files that make .init and .fini sections work.
15665 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15666 else
15667 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15669 hardcode_libdir_flag_spec='-L$libdir'
15670 hardcode_direct=yes
15671 hardcode_minus_L=yes
15672 hardcode_shlibpath_var=no
15675 sysv4)
15676 case $host_vendor in
15677 sni)
15678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679 hardcode_direct=yes # is this really true???
15681 siemens)
15682 ## LD is ld it makes a PLAMLIB
15683 ## CC just makes a GrossModule.
15684 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15685 reload_cmds='$CC -r -o $output$reload_objs'
15686 hardcode_direct=no
15688 motorola)
15689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15692 esac
15693 runpath_var='LD_RUN_PATH'
15694 hardcode_shlibpath_var=no
15697 sysv4.3*)
15698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699 hardcode_shlibpath_var=no
15700 export_dynamic_flag_spec='-Bexport'
15703 sysv4*MP*)
15704 if test -d /usr/nec; then
15705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706 hardcode_shlibpath_var=no
15707 runpath_var=LD_RUN_PATH
15708 hardcode_runpath_var=yes
15709 ld_shlibs=yes
15713 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15714 no_undefined_flag='${wl}-z,text'
15715 archive_cmds_need_lc=no
15716 hardcode_shlibpath_var=no
15717 runpath_var='LD_RUN_PATH'
15719 if test "$GCC" = yes; then
15720 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 else
15723 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728 sysv5* | sco3.2v5* | sco5v6*)
15729 # Note: We can NOT use -z defs as we might desire, because we do not
15730 # link with -lc, and that would cause any symbols used from libc to
15731 # always be unresolved, which means just about no library would
15732 # ever link correctly. If we're not using GNU ld we use -z text
15733 # though, which does catch some bad symbols but isn't as heavy-handed
15734 # as -z defs.
15735 no_undefined_flag='${wl}-z,text'
15736 allow_undefined_flag='${wl}-z,nodefs'
15737 archive_cmds_need_lc=no
15738 hardcode_shlibpath_var=no
15739 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15740 hardcode_libdir_separator=':'
15741 link_all_deplibs=yes
15742 export_dynamic_flag_spec='${wl}-Bexport'
15743 runpath_var='LD_RUN_PATH'
15745 if test "$GCC" = yes; then
15746 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748 else
15749 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15754 uts4*)
15755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_libdir_flag_spec='-L$libdir'
15757 hardcode_shlibpath_var=no
15761 ld_shlibs=no
15763 esac
15765 if test x$host_vendor = xsni; then
15766 case $host in
15767 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15768 export_dynamic_flag_spec='${wl}-Blargedynsym'
15770 esac
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15775 $as_echo "$ld_shlibs" >&6; }
15776 test "$ld_shlibs" = no && can_build_shared=no
15778 with_gnu_ld=$with_gnu_ld
15795 # Do we need to explicitly link libc?
15797 case "x$archive_cmds_need_lc" in
15798 x|xyes)
15799 # Assume -lc should be added
15800 archive_cmds_need_lc=yes
15802 if test "$enable_shared" = yes && test "$GCC" = yes; then
15803 case $archive_cmds in
15804 *'~'*)
15805 # FIXME: we may have to deal with multi-command sequences.
15807 '$CC '*)
15808 # Test whether the compiler implicitly links with -lc since on some
15809 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15810 # to ld, don't add -lc before -lgcc.
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15812 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15813 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15814 $as_echo_n "(cached) " >&6
15815 else
15816 $RM conftest*
15817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15820 (eval $ac_compile) 2>&5
15821 ac_status=$?
15822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15823 test $ac_status = 0; } 2>conftest.err; then
15824 soname=conftest
15825 lib=conftest
15826 libobjs=conftest.$ac_objext
15827 deplibs=
15828 wl=$lt_prog_compiler_wl
15829 pic_flag=$lt_prog_compiler_pic
15830 compiler_flags=-v
15831 linker_flags=-v
15832 verstring=
15833 output_objdir=.
15834 libname=conftest
15835 lt_save_allow_undefined_flag=$allow_undefined_flag
15836 allow_undefined_flag=
15837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15838 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15839 ac_status=$?
15840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15841 test $ac_status = 0; }
15842 then
15843 lt_cv_archive_cmds_need_lc=no
15844 else
15845 lt_cv_archive_cmds_need_lc=yes
15847 allow_undefined_flag=$lt_save_allow_undefined_flag
15848 else
15849 cat conftest.err 1>&5
15851 $RM conftest*
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15855 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15856 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15858 esac
15861 esac
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16022 if test "$GCC" = yes; then
16023 case $host_os in
16024 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16025 *) lt_awk_arg="/^libraries:/" ;;
16026 esac
16027 case $host_os in
16028 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16029 *) lt_sed_strip_eq="s,=/,/,g" ;;
16030 esac
16031 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16032 case $lt_search_path_spec in
16033 *\;*)
16034 # if the path contains ";" then we assume it to be the separator
16035 # otherwise default to the standard path separator (i.e. ":") - it is
16036 # assumed that no part of a normal pathname contains ";" but that should
16037 # okay in the real world where ";" in dirpaths is itself problematic.
16038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16043 esac
16044 # Ok, now we have the path, separated by spaces, we can step through it
16045 # and add multilib dir if necessary.
16046 lt_tmp_lt_search_path_spec=
16047 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16048 for lt_sys_path in $lt_search_path_spec; do
16049 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16051 else
16052 test -d "$lt_sys_path" && \
16053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16055 done
16056 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16057 BEGIN {RS=" "; FS="/|\n";} {
16058 lt_foo="";
16059 lt_count=0;
16060 for (lt_i = NF; lt_i > 0; lt_i--) {
16061 if ($lt_i != "" && $lt_i != ".") {
16062 if ($lt_i == "..") {
16063 lt_count++;
16064 } else {
16065 if (lt_count == 0) {
16066 lt_foo="/" $lt_i lt_foo;
16067 } else {
16068 lt_count--;
16073 if (lt_foo != "") { lt_freq[lt_foo]++; }
16074 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16076 # AWK program above erroneously prepends '/' to C:/dos/paths
16077 # for these hosts.
16078 case $host_os in
16079 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16080 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16081 esac
16082 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16083 else
16084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16086 library_names_spec=
16087 libname_spec='lib$name'
16088 soname_spec=
16089 shrext_cmds=".so"
16090 postinstall_cmds=
16091 postuninstall_cmds=
16092 finish_cmds=
16093 finish_eval=
16094 shlibpath_var=
16095 shlibpath_overrides_runpath=unknown
16096 version_type=none
16097 dynamic_linker="$host_os ld.so"
16098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16099 need_lib_prefix=unknown
16100 hardcode_into_libs=no
16102 # when you set need_version to no, make sure it does not cause -set_version
16103 # flags to be left without arguments
16104 need_version=unknown
16106 case $host_os in
16107 aix3*)
16108 version_type=linux
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16110 shlibpath_var=LIBPATH
16112 # AIX 3 has no versioning support, so we append a major version to the name.
16113 soname_spec='${libname}${release}${shared_ext}$major'
16116 aix[4-9]*)
16117 version_type=linux
16118 need_lib_prefix=no
16119 need_version=no
16120 hardcode_into_libs=yes
16121 if test "$host_cpu" = ia64; then
16122 # AIX 5 supports IA64
16123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 else
16126 # With GCC up to 2.95.x, collect2 would create an import file
16127 # for dependence libraries. The import file would start with
16128 # the line `#! .'. This would cause the generated library to
16129 # depend on `.', always an invalid library. This was fixed in
16130 # development snapshots of GCC prior to 3.0.
16131 case $host_os in
16132 aix4 | aix4.[01] | aix4.[01].*)
16133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16134 echo ' yes '
16135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16137 else
16138 can_build_shared=no
16141 esac
16142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16143 # soname into executable. Probably we can add versioning support to
16144 # collect2, so additional links can be useful in future.
16145 if test "$aix_use_runtimelinking" = yes; then
16146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16147 # instead of lib<name>.a to let people know that these are not
16148 # typical AIX shared libraries.
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150 else
16151 # We preserve .a as extension for shared libraries through AIX4.2
16152 # and later when we are not doing run time linking.
16153 library_names_spec='${libname}${release}.a $libname.a'
16154 soname_spec='${libname}${release}${shared_ext}$major'
16156 shlibpath_var=LIBPATH
16160 amigaos*)
16161 case $host_cpu in
16162 powerpc)
16163 # Since July 2007 AmigaOS4 officially supports .so libraries.
16164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167 m68k)
16168 library_names_spec='$libname.ixlibrary $libname.a'
16169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16170 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'
16172 esac
16175 beos*)
16176 library_names_spec='${libname}${shared_ext}'
16177 dynamic_linker="$host_os ld.so"
16178 shlibpath_var=LIBRARY_PATH
16181 bsdi[45]*)
16182 version_type=linux
16183 need_version=no
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16187 shlibpath_var=LD_LIBRARY_PATH
16188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16190 # the default ld.so.conf also contains /usr/contrib/lib and
16191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16192 # libtool to hard-code these into programs
16195 cygwin* | mingw* | pw32* | cegcc*)
16196 version_type=windows
16197 shrext_cmds=".dll"
16198 need_version=no
16199 need_lib_prefix=no
16201 case $GCC,$host_os in
16202 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16203 library_names_spec='$libname.dll.a'
16204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16205 postinstall_cmds='base_file=`basename \${file}`~
16206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16207 dldir=$destdir/`dirname \$dlpath`~
16208 test -d \$dldir || mkdir -p \$dldir~
16209 $install_prog $dir/$dlname \$dldir/$dlname~
16210 chmod a+x \$dldir/$dlname~
16211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16215 dlpath=$dir/\$dldll~
16216 $RM \$dlpath'
16217 shlibpath_overrides_runpath=yes
16219 case $host_os in
16220 cygwin*)
16221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16224 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16226 mingw* | cegcc*)
16227 # MinGW DLLs use traditional 'lib' prefix
16228 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16230 pw32*)
16231 # pw32 DLLs use 'pw' prefix rather than 'lib'
16232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16234 esac
16238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16240 esac
16241 dynamic_linker='Win32 ld.exe'
16242 # FIXME: first we should search . and the directory the executable is in
16243 shlibpath_var=PATH
16246 darwin* | rhapsody*)
16247 dynamic_linker="$host_os dyld"
16248 version_type=darwin
16249 need_lib_prefix=no
16250 need_version=no
16251 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16252 soname_spec='${libname}${release}${major}$shared_ext'
16253 shlibpath_overrides_runpath=yes
16254 shlibpath_var=DYLD_LIBRARY_PATH
16255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16257 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16261 dgux*)
16262 version_type=linux
16263 need_lib_prefix=no
16264 need_version=no
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 shlibpath_var=LD_LIBRARY_PATH
16270 freebsd1*)
16271 dynamic_linker=no
16274 freebsd* | dragonfly*)
16275 # DragonFly does not have aout. When/if they implement a new
16276 # versioning mechanism, adjust this.
16277 if test -x /usr/bin/objformat; then
16278 objformat=`/usr/bin/objformat`
16279 else
16280 case $host_os in
16281 freebsd[123]*) objformat=aout ;;
16282 *) objformat=elf ;;
16283 esac
16285 version_type=freebsd-$objformat
16286 case $version_type in
16287 freebsd-elf*)
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16289 need_version=no
16290 need_lib_prefix=no
16292 freebsd-*)
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16294 need_version=yes
16296 esac
16297 shlibpath_var=LD_LIBRARY_PATH
16298 case $host_os in
16299 freebsd2*)
16300 shlibpath_overrides_runpath=yes
16302 freebsd3.[01]* | freebsdelf3.[01]*)
16303 shlibpath_overrides_runpath=yes
16304 hardcode_into_libs=yes
16306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16308 shlibpath_overrides_runpath=no
16309 hardcode_into_libs=yes
16311 *) # from 4.6 on, and DragonFly
16312 shlibpath_overrides_runpath=yes
16313 hardcode_into_libs=yes
16315 esac
16318 gnu*)
16319 version_type=linux
16320 need_lib_prefix=no
16321 need_version=no
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16323 soname_spec='${libname}${release}${shared_ext}$major'
16324 shlibpath_var=LD_LIBRARY_PATH
16325 hardcode_into_libs=yes
16328 haiku*)
16329 version_type=linux
16330 need_lib_prefix=no
16331 need_version=no
16332 dynamic_linker="$host_os runtime_loader"
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 shlibpath_var=LIBRARY_PATH
16336 shlibpath_overrides_runpath=yes
16337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16338 hardcode_into_libs=yes
16341 hpux9* | hpux10* | hpux11*)
16342 # Give a soname corresponding to the major version so that dld.sl refuses to
16343 # link against other versions.
16344 version_type=sunos
16345 need_lib_prefix=no
16346 need_version=no
16347 case $host_cpu in
16348 ia64*)
16349 shrext_cmds='.so'
16350 hardcode_into_libs=yes
16351 dynamic_linker="$host_os dld.so"
16352 shlibpath_var=LD_LIBRARY_PATH
16353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355 soname_spec='${libname}${release}${shared_ext}$major'
16356 if test "X$HPUX_IA64_MODE" = X32; then
16357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16358 else
16359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16363 hppa*64*)
16364 shrext_cmds='.sl'
16365 hardcode_into_libs=yes
16366 dynamic_linker="$host_os dld.sl"
16367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370 soname_spec='${libname}${release}${shared_ext}$major'
16371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16375 shrext_cmds='.sl'
16376 dynamic_linker="$host_os dld.sl"
16377 shlibpath_var=SHLIB_PATH
16378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 soname_spec='${libname}${release}${shared_ext}$major'
16382 esac
16383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16384 postinstall_cmds='chmod 555 $lib'
16385 # or fails outright, so override atomically:
16386 install_override_mode=555
16389 interix[3-9]*)
16390 version_type=linux
16391 need_lib_prefix=no
16392 need_version=no
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16394 soname_spec='${libname}${release}${shared_ext}$major'
16395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 shlibpath_overrides_runpath=no
16398 hardcode_into_libs=yes
16401 irix5* | irix6* | nonstopux*)
16402 case $host_os in
16403 nonstopux*) version_type=nonstopux ;;
16405 if test "$lt_cv_prog_gnu_ld" = yes; then
16406 version_type=linux
16407 else
16408 version_type=irix
16409 fi ;;
16410 esac
16411 need_lib_prefix=no
16412 need_version=no
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16415 case $host_os in
16416 irix5* | nonstopux*)
16417 libsuff= shlibsuff=
16420 case $LD in # libtool.m4 will add one of these switches to LD
16421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16422 libsuff= shlibsuff= libmagic=32-bit;;
16423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16424 libsuff=32 shlibsuff=N32 libmagic=N32;;
16425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16427 *) libsuff= shlibsuff= libmagic=never-match;;
16428 esac
16430 esac
16431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16432 shlibpath_overrides_runpath=no
16433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16435 hardcode_into_libs=yes
16438 # No shared lib support for Linux oldld, aout, or coff.
16439 linux*oldld* | linux*aout* | linux*coff*)
16440 dynamic_linker=no
16443 # This must be Linux ELF.
16444 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16445 version_type=linux
16446 need_lib_prefix=no
16447 need_version=no
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16451 shlibpath_var=LD_LIBRARY_PATH
16452 shlibpath_overrides_runpath=no
16454 # Some binutils ld are patched to set DT_RUNPATH
16455 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16456 $as_echo_n "(cached) " >&6
16457 else
16458 lt_cv_shlibpath_overrides_runpath=no
16459 save_LDFLAGS=$LDFLAGS
16460 save_libdir=$libdir
16461 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16462 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16467 main ()
16471 return 0;
16473 _ACEOF
16474 if ac_fn_c_try_link "$LINENO"; then :
16475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16476 lt_cv_shlibpath_overrides_runpath=yes
16479 rm -f core conftest.err conftest.$ac_objext \
16480 conftest$ac_exeext conftest.$ac_ext
16481 LDFLAGS=$save_LDFLAGS
16482 libdir=$save_libdir
16486 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16488 # This implies no fast_install, which is unacceptable.
16489 # Some rework will be needed to allow for fast_install
16490 # before this can be enabled.
16491 hardcode_into_libs=yes
16493 # Append ld.so.conf contents to the search path
16494 if test -f /etc/ld.so.conf; then
16495 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' ' '`
16496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16499 # We used to test for /lib/ld.so.1 and disable shared libraries on
16500 # powerpc, because MkLinux only supported shared libraries with the
16501 # GNU dynamic linker. Since this was broken with cross compilers,
16502 # most powerpc-linux boxes support dynamic linking these days and
16503 # people can always --disable-shared, the test was removed, and we
16504 # assume the GNU/Linux dynamic linker is in use.
16505 dynamic_linker='GNU/Linux ld.so'
16508 netbsd*)
16509 version_type=sunos
16510 need_lib_prefix=no
16511 need_version=no
16512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16515 dynamic_linker='NetBSD (a.out) ld.so'
16516 else
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 dynamic_linker='NetBSD ld.elf_so'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 shlibpath_overrides_runpath=yes
16523 hardcode_into_libs=yes
16526 newsos6)
16527 version_type=linux
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 shlibpath_overrides_runpath=yes
16533 *nto* | *qnx*)
16534 version_type=qnx
16535 need_lib_prefix=no
16536 need_version=no
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538 soname_spec='${libname}${release}${shared_ext}$major'
16539 shlibpath_var=LD_LIBRARY_PATH
16540 shlibpath_overrides_runpath=no
16541 hardcode_into_libs=yes
16542 dynamic_linker='ldqnx.so'
16545 openbsd*)
16546 version_type=sunos
16547 sys_lib_dlsearch_path_spec="/usr/lib"
16548 need_lib_prefix=no
16549 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16550 case $host_os in
16551 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16552 *) need_version=no ;;
16553 esac
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16558 case $host_os in
16559 openbsd2.[89] | openbsd2.[89].*)
16560 shlibpath_overrides_runpath=no
16563 shlibpath_overrides_runpath=yes
16565 esac
16566 else
16567 shlibpath_overrides_runpath=yes
16571 os2*)
16572 libname_spec='$name'
16573 shrext_cmds=".dll"
16574 need_lib_prefix=no
16575 library_names_spec='$libname${shared_ext} $libname.a'
16576 dynamic_linker='OS/2 ld.exe'
16577 shlibpath_var=LIBPATH
16580 osf3* | osf4* | osf5*)
16581 version_type=osf
16582 need_lib_prefix=no
16583 need_version=no
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16588 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16591 rdos*)
16592 dynamic_linker=no
16595 solaris*)
16596 version_type=linux
16597 need_lib_prefix=no
16598 need_version=no
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 shlibpath_var=LD_LIBRARY_PATH
16602 shlibpath_overrides_runpath=yes
16603 hardcode_into_libs=yes
16604 # ldd complains unless libraries are executable
16605 postinstall_cmds='chmod +x $lib'
16608 sunos4*)
16609 version_type=sunos
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16612 shlibpath_var=LD_LIBRARY_PATH
16613 shlibpath_overrides_runpath=yes
16614 if test "$with_gnu_ld" = yes; then
16615 need_lib_prefix=no
16617 need_version=yes
16620 sysv4 | sysv4.3*)
16621 version_type=linux
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 shlibpath_var=LD_LIBRARY_PATH
16625 case $host_vendor in
16626 sni)
16627 shlibpath_overrides_runpath=no
16628 need_lib_prefix=no
16629 runpath_var=LD_RUN_PATH
16631 siemens)
16632 need_lib_prefix=no
16634 motorola)
16635 need_lib_prefix=no
16636 need_version=no
16637 shlibpath_overrides_runpath=no
16638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16640 esac
16643 sysv4*MP*)
16644 if test -d /usr/nec ;then
16645 version_type=linux
16646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16647 soname_spec='$libname${shared_ext}.$major'
16648 shlibpath_var=LD_LIBRARY_PATH
16652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16653 version_type=freebsd-elf
16654 need_lib_prefix=no
16655 need_version=no
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 shlibpath_var=LD_LIBRARY_PATH
16659 shlibpath_overrides_runpath=yes
16660 hardcode_into_libs=yes
16661 if test "$with_gnu_ld" = yes; then
16662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16663 else
16664 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16665 case $host_os in
16666 sco3.2v5*)
16667 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16669 esac
16671 sys_lib_dlsearch_path_spec='/usr/lib'
16674 tpf*)
16675 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16676 version_type=linux
16677 need_lib_prefix=no
16678 need_version=no
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=no
16682 hardcode_into_libs=yes
16685 uts4*)
16686 version_type=linux
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688 soname_spec='${libname}${release}${shared_ext}$major'
16689 shlibpath_var=LD_LIBRARY_PATH
16693 dynamic_linker=no
16695 esac
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16697 $as_echo "$dynamic_linker" >&6; }
16698 test "$dynamic_linker" = no && can_build_shared=no
16700 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16701 if test "$GCC" = yes; then
16702 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16705 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16706 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16708 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16709 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16804 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16805 hardcode_action=
16806 if test -n "$hardcode_libdir_flag_spec" ||
16807 test -n "$runpath_var" ||
16808 test "X$hardcode_automatic" = "Xyes" ; then
16810 # We can hardcode non-existent directories.
16811 if test "$hardcode_direct" != no &&
16812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16813 # have to relink, otherwise we might link with an installed library
16814 # when we should be linking with a yet-to-be-installed one
16815 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16816 test "$hardcode_minus_L" != no; then
16817 # Linking always hardcodes the temporary library directory.
16818 hardcode_action=relink
16819 else
16820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16821 hardcode_action=immediate
16823 else
16824 # We cannot hardcode anything, or else we can only hardcode existing
16825 # directories.
16826 hardcode_action=unsupported
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16829 $as_echo "$hardcode_action" >&6; }
16831 if test "$hardcode_action" = relink ||
16832 test "$inherit_rpath" = yes; then
16833 # Fast installation is not supported
16834 enable_fast_install=no
16835 elif test "$shlibpath_overrides_runpath" = yes ||
16836 test "$enable_shared" = no; then
16837 # Fast installation is not necessary
16838 enable_fast_install=needless
16846 if test "x$enable_dlopen" != xyes; then
16847 enable_dlopen=unknown
16848 enable_dlopen_self=unknown
16849 enable_dlopen_self_static=unknown
16850 else
16851 lt_cv_dlopen=no
16852 lt_cv_dlopen_libs=
16854 case $host_os in
16855 beos*)
16856 lt_cv_dlopen="load_add_on"
16857 lt_cv_dlopen_libs=
16858 lt_cv_dlopen_self=yes
16861 mingw* | pw32* | cegcc*)
16862 lt_cv_dlopen="LoadLibrary"
16863 lt_cv_dlopen_libs=
16866 cygwin*)
16867 lt_cv_dlopen="dlopen"
16868 lt_cv_dlopen_libs=
16871 darwin*)
16872 # if libdl is installed we need to link against it
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16876 $as_echo_n "(cached) " >&6
16877 else
16878 ac_check_lib_save_LIBS=$LIBS
16879 LIBS="-ldl $LIBS"
16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h. */
16883 /* Override any GCC internal prototype to avoid an error.
16884 Use char because int might match the return type of a GCC
16885 builtin and then its argument prototype would still apply. */
16886 #ifdef __cplusplus
16887 extern "C"
16888 #endif
16889 char dlopen ();
16891 main ()
16893 return dlopen ();
16895 return 0;
16897 _ACEOF
16898 if ac_fn_c_try_link "$LINENO"; then :
16899 ac_cv_lib_dl_dlopen=yes
16900 else
16901 ac_cv_lib_dl_dlopen=no
16903 rm -f core conftest.err conftest.$ac_objext \
16904 conftest$ac_exeext conftest.$ac_ext
16905 LIBS=$ac_check_lib_save_LIBS
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16909 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16911 else
16913 lt_cv_dlopen="dyld"
16914 lt_cv_dlopen_libs=
16915 lt_cv_dlopen_self=yes
16922 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16923 if test "x$ac_cv_func_shl_load" = x""yes; then :
16924 lt_cv_dlopen="shl_load"
16925 else
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16927 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16928 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16929 $as_echo_n "(cached) " >&6
16930 else
16931 ac_check_lib_save_LIBS=$LIBS
16932 LIBS="-ldld $LIBS"
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h. */
16936 /* Override any GCC internal prototype to avoid an error.
16937 Use char because int might match the return type of a GCC
16938 builtin and then its argument prototype would still apply. */
16939 #ifdef __cplusplus
16940 extern "C"
16941 #endif
16942 char shl_load ();
16944 main ()
16946 return shl_load ();
16948 return 0;
16950 _ACEOF
16951 if ac_fn_c_try_link "$LINENO"; then :
16952 ac_cv_lib_dld_shl_load=yes
16953 else
16954 ac_cv_lib_dld_shl_load=no
16956 rm -f core conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
16958 LIBS=$ac_check_lib_save_LIBS
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16961 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16962 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16963 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16964 else
16965 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16966 if test "x$ac_cv_func_dlopen" = x""yes; then :
16967 lt_cv_dlopen="dlopen"
16968 else
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16972 $as_echo_n "(cached) " >&6
16973 else
16974 ac_check_lib_save_LIBS=$LIBS
16975 LIBS="-ldl $LIBS"
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16979 /* Override any GCC internal prototype to avoid an error.
16980 Use char because int might match the return type of a GCC
16981 builtin and then its argument prototype would still apply. */
16982 #ifdef __cplusplus
16983 extern "C"
16984 #endif
16985 char dlopen ();
16987 main ()
16989 return dlopen ();
16991 return 0;
16993 _ACEOF
16994 if ac_fn_c_try_link "$LINENO"; then :
16995 ac_cv_lib_dl_dlopen=yes
16996 else
16997 ac_cv_lib_dl_dlopen=no
16999 rm -f core conftest.err conftest.$ac_objext \
17000 conftest$ac_exeext conftest.$ac_ext
17001 LIBS=$ac_check_lib_save_LIBS
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17005 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17007 else
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17009 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17011 $as_echo_n "(cached) " >&6
17012 else
17013 ac_check_lib_save_LIBS=$LIBS
17014 LIBS="-lsvld $LIBS"
17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17018 /* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
17021 #ifdef __cplusplus
17022 extern "C"
17023 #endif
17024 char dlopen ();
17026 main ()
17028 return dlopen ();
17030 return 0;
17032 _ACEOF
17033 if ac_fn_c_try_link "$LINENO"; then :
17034 ac_cv_lib_svld_dlopen=yes
17035 else
17036 ac_cv_lib_svld_dlopen=no
17038 rm -f core conftest.err conftest.$ac_objext \
17039 conftest$ac_exeext conftest.$ac_ext
17040 LIBS=$ac_check_lib_save_LIBS
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17043 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17044 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17046 else
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17048 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17050 $as_echo_n "(cached) " >&6
17051 else
17052 ac_check_lib_save_LIBS=$LIBS
17053 LIBS="-ldld $LIBS"
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h. */
17057 /* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17060 #ifdef __cplusplus
17061 extern "C"
17062 #endif
17063 char dld_link ();
17065 main ()
17067 return dld_link ();
17069 return 0;
17071 _ACEOF
17072 if ac_fn_c_try_link "$LINENO"; then :
17073 ac_cv_lib_dld_dld_link=yes
17074 else
17075 ac_cv_lib_dld_dld_link=no
17077 rm -f core conftest.err conftest.$ac_objext \
17078 conftest$ac_exeext conftest.$ac_ext
17079 LIBS=$ac_check_lib_save_LIBS
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17082 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17083 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17084 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17103 esac
17105 if test "x$lt_cv_dlopen" != xno; then
17106 enable_dlopen=yes
17107 else
17108 enable_dlopen=no
17111 case $lt_cv_dlopen in
17112 dlopen)
17113 save_CPPFLAGS="$CPPFLAGS"
17114 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17116 save_LDFLAGS="$LDFLAGS"
17117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17119 save_LIBS="$LIBS"
17120 LIBS="$lt_cv_dlopen_libs $LIBS"
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17123 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17124 if test "${lt_cv_dlopen_self+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 if test "$cross_compiling" = yes; then :
17128 lt_cv_dlopen_self=cross
17129 else
17130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17131 lt_status=$lt_dlunknown
17132 cat > conftest.$ac_ext <<_LT_EOF
17133 #line 17133 "configure"
17134 #include "confdefs.h"
17136 #if HAVE_DLFCN_H
17137 #include <dlfcn.h>
17138 #endif
17140 #include <stdio.h>
17142 #ifdef RTLD_GLOBAL
17143 # define LT_DLGLOBAL RTLD_GLOBAL
17144 #else
17145 # ifdef DL_GLOBAL
17146 # define LT_DLGLOBAL DL_GLOBAL
17147 # else
17148 # define LT_DLGLOBAL 0
17149 # endif
17150 #endif
17152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17153 find out it does not work in some platform. */
17154 #ifndef LT_DLLAZY_OR_NOW
17155 # ifdef RTLD_LAZY
17156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17157 # else
17158 # ifdef DL_LAZY
17159 # define LT_DLLAZY_OR_NOW DL_LAZY
17160 # else
17161 # ifdef RTLD_NOW
17162 # define LT_DLLAZY_OR_NOW RTLD_NOW
17163 # else
17164 # ifdef DL_NOW
17165 # define LT_DLLAZY_OR_NOW DL_NOW
17166 # else
17167 # define LT_DLLAZY_OR_NOW 0
17168 # endif
17169 # endif
17170 # endif
17171 # endif
17172 #endif
17174 /* When -fvisbility=hidden is used, assume the code has been annotated
17175 correspondingly for the symbols needed. */
17176 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17177 void fnord () __attribute__((visibility("default")));
17178 #endif
17180 void fnord () { int i=42; }
17181 int main ()
17183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17184 int status = $lt_dlunknown;
17186 if (self)
17188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17189 else
17191 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17192 else puts (dlerror ());
17194 /* dlclose (self); */
17196 else
17197 puts (dlerror ());
17199 return status;
17201 _LT_EOF
17202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17203 (eval $ac_link) 2>&5
17204 ac_status=$?
17205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17206 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17207 (./conftest; exit; ) >&5 2>/dev/null
17208 lt_status=$?
17209 case x$lt_status in
17210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17213 esac
17214 else :
17215 # compilation failed
17216 lt_cv_dlopen_self=no
17219 rm -fr conftest*
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17224 $as_echo "$lt_cv_dlopen_self" >&6; }
17226 if test "x$lt_cv_dlopen_self" = xyes; then
17227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17229 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17230 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17231 $as_echo_n "(cached) " >&6
17232 else
17233 if test "$cross_compiling" = yes; then :
17234 lt_cv_dlopen_self_static=cross
17235 else
17236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17237 lt_status=$lt_dlunknown
17238 cat > conftest.$ac_ext <<_LT_EOF
17239 #line 17239 "configure"
17240 #include "confdefs.h"
17242 #if HAVE_DLFCN_H
17243 #include <dlfcn.h>
17244 #endif
17246 #include <stdio.h>
17248 #ifdef RTLD_GLOBAL
17249 # define LT_DLGLOBAL RTLD_GLOBAL
17250 #else
17251 # ifdef DL_GLOBAL
17252 # define LT_DLGLOBAL DL_GLOBAL
17253 # else
17254 # define LT_DLGLOBAL 0
17255 # endif
17256 #endif
17258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17259 find out it does not work in some platform. */
17260 #ifndef LT_DLLAZY_OR_NOW
17261 # ifdef RTLD_LAZY
17262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17263 # else
17264 # ifdef DL_LAZY
17265 # define LT_DLLAZY_OR_NOW DL_LAZY
17266 # else
17267 # ifdef RTLD_NOW
17268 # define LT_DLLAZY_OR_NOW RTLD_NOW
17269 # else
17270 # ifdef DL_NOW
17271 # define LT_DLLAZY_OR_NOW DL_NOW
17272 # else
17273 # define LT_DLLAZY_OR_NOW 0
17274 # endif
17275 # endif
17276 # endif
17277 # endif
17278 #endif
17280 /* When -fvisbility=hidden is used, assume the code has been annotated
17281 correspondingly for the symbols needed. */
17282 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17283 void fnord () __attribute__((visibility("default")));
17284 #endif
17286 void fnord () { int i=42; }
17287 int main ()
17289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17290 int status = $lt_dlunknown;
17292 if (self)
17294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17295 else
17297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17298 else puts (dlerror ());
17300 /* dlclose (self); */
17302 else
17303 puts (dlerror ());
17305 return status;
17307 _LT_EOF
17308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17309 (eval $ac_link) 2>&5
17310 ac_status=$?
17311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17312 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17313 (./conftest; exit; ) >&5 2>/dev/null
17314 lt_status=$?
17315 case x$lt_status in
17316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17319 esac
17320 else :
17321 # compilation failed
17322 lt_cv_dlopen_self_static=no
17325 rm -fr conftest*
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17333 CPPFLAGS="$save_CPPFLAGS"
17334 LDFLAGS="$save_LDFLAGS"
17335 LIBS="$save_LIBS"
17337 esac
17339 case $lt_cv_dlopen_self in
17340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17341 *) enable_dlopen_self=unknown ;;
17342 esac
17344 case $lt_cv_dlopen_self_static in
17345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17346 *) enable_dlopen_self_static=unknown ;;
17347 esac
17366 striplib=
17367 old_striplib=
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17370 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17372 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17374 $as_echo "yes" >&6; }
17375 else
17376 # FIXME - insert some real tests, host_os isn't really good enough
17377 case $host_os in
17378 darwin*)
17379 if test -n "$STRIP" ; then
17380 striplib="$STRIP -x"
17381 old_striplib="$STRIP -S"
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17383 $as_echo "yes" >&6; }
17384 else
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17386 $as_echo "no" >&6; }
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17391 $as_echo "no" >&6; }
17393 esac
17407 # Report which library types will actually be built
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17411 $as_echo "$can_build_shared" >&6; }
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17414 $as_echo_n "checking whether to build shared libraries... " >&6; }
17415 test "$can_build_shared" = "no" && enable_shared=no
17417 # On AIX, shared libraries and static libraries use the same namespace, and
17418 # are all built from PIC.
17419 case $host_os in
17420 aix3*)
17421 test "$enable_shared" = yes && enable_static=no
17422 if test -n "$RANLIB"; then
17423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17424 postinstall_cmds='$RANLIB $lib'
17428 aix[4-9]*)
17429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17430 test "$enable_shared" = yes && enable_static=no
17433 esac
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17435 $as_echo "$enable_shared" >&6; }
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17438 $as_echo_n "checking whether to build static libraries... " >&6; }
17439 # Make sure either enable_shared or enable_static is yes.
17440 test "$enable_shared" = yes || enable_static=yes
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17442 $as_echo "$enable_static" >&6; }
17448 ac_ext=c
17449 ac_cpp='$CPP $CPPFLAGS'
17450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17454 CC="$lt_save_CC"
17456 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17457 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17458 (test "X$CXX" != "Xg++"))) ; then
17459 ac_ext=cpp
17460 ac_cpp='$CXXCPP $CPPFLAGS'
17461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17465 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17466 if test -z "$CXXCPP"; then
17467 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17468 $as_echo_n "(cached) " >&6
17469 else
17470 # Double quotes because CXXCPP needs to be expanded
17471 for CXXCPP in "$CXX -E" "/lib/cpp"
17473 ac_preproc_ok=false
17474 for ac_cxx_preproc_warn_flag in '' yes
17476 # Use a header file that comes with gcc, so configuring glibc
17477 # with a fresh cross-compiler works.
17478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17479 # <limits.h> exists even on freestanding compilers.
17480 # On the NeXT, cc -E runs the code through the compiler's parser,
17481 # not just through cpp. "Syntax error" is here to catch this case.
17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483 /* end confdefs.h. */
17484 #ifdef __STDC__
17485 # include <limits.h>
17486 #else
17487 # include <assert.h>
17488 #endif
17489 Syntax error
17490 _ACEOF
17491 if ac_fn_cxx_try_cpp "$LINENO"; then :
17493 else
17494 # Broken: fails on valid input.
17495 continue
17497 rm -f conftest.err conftest.$ac_ext
17499 # OK, works on sane cases. Now check whether nonexistent headers
17500 # can be detected and how.
17501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17502 /* end confdefs.h. */
17503 #include <ac_nonexistent.h>
17504 _ACEOF
17505 if ac_fn_cxx_try_cpp "$LINENO"; then :
17506 # Broken: success on invalid input.
17507 continue
17508 else
17509 # Passes both tests.
17510 ac_preproc_ok=:
17511 break
17513 rm -f conftest.err conftest.$ac_ext
17515 done
17516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17517 rm -f conftest.err conftest.$ac_ext
17518 if $ac_preproc_ok; then :
17519 break
17522 done
17523 ac_cv_prog_CXXCPP=$CXXCPP
17526 CXXCPP=$ac_cv_prog_CXXCPP
17527 else
17528 ac_cv_prog_CXXCPP=$CXXCPP
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17531 $as_echo "$CXXCPP" >&6; }
17532 ac_preproc_ok=false
17533 for ac_cxx_preproc_warn_flag in '' yes
17535 # Use a header file that comes with gcc, so configuring glibc
17536 # with a fresh cross-compiler works.
17537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538 # <limits.h> exists even on freestanding compilers.
17539 # On the NeXT, cc -E runs the code through the compiler's parser,
17540 # not just through cpp. "Syntax error" is here to catch this case.
17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17543 #ifdef __STDC__
17544 # include <limits.h>
17545 #else
17546 # include <assert.h>
17547 #endif
17548 Syntax error
17549 _ACEOF
17550 if ac_fn_cxx_try_cpp "$LINENO"; then :
17552 else
17553 # Broken: fails on valid input.
17554 continue
17556 rm -f conftest.err conftest.$ac_ext
17558 # OK, works on sane cases. Now check whether nonexistent headers
17559 # can be detected and how.
17560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h. */
17562 #include <ac_nonexistent.h>
17563 _ACEOF
17564 if ac_fn_cxx_try_cpp "$LINENO"; then :
17565 # Broken: success on invalid input.
17566 continue
17567 else
17568 # Passes both tests.
17569 ac_preproc_ok=:
17570 break
17572 rm -f conftest.err conftest.$ac_ext
17574 done
17575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17576 rm -f conftest.err conftest.$ac_ext
17577 if $ac_preproc_ok; then :
17579 else
17580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17582 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17583 See \`config.log' for more details." "$LINENO" 5; }
17586 ac_ext=c
17587 ac_cpp='$CPP $CPPFLAGS'
17588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17592 else
17593 _lt_caught_CXX_error=yes
17596 ac_ext=cpp
17597 ac_cpp='$CXXCPP $CPPFLAGS'
17598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17602 archive_cmds_need_lc_CXX=no
17603 allow_undefined_flag_CXX=
17604 always_export_symbols_CXX=no
17605 archive_expsym_cmds_CXX=
17606 compiler_needs_object_CXX=no
17607 export_dynamic_flag_spec_CXX=
17608 hardcode_direct_CXX=no
17609 hardcode_direct_absolute_CXX=no
17610 hardcode_libdir_flag_spec_CXX=
17611 hardcode_libdir_flag_spec_ld_CXX=
17612 hardcode_libdir_separator_CXX=
17613 hardcode_minus_L_CXX=no
17614 hardcode_shlibpath_var_CXX=unsupported
17615 hardcode_automatic_CXX=no
17616 inherit_rpath_CXX=no
17617 module_cmds_CXX=
17618 module_expsym_cmds_CXX=
17619 link_all_deplibs_CXX=unknown
17620 old_archive_cmds_CXX=$old_archive_cmds
17621 reload_flag_CXX=$reload_flag
17622 reload_cmds_CXX=$reload_cmds
17623 no_undefined_flag_CXX=
17624 whole_archive_flag_spec_CXX=
17625 enable_shared_with_static_runtimes_CXX=no
17627 # Source file extension for C++ test sources.
17628 ac_ext=cpp
17630 # Object file extension for compiled C++ test sources.
17631 objext=o
17632 objext_CXX=$objext
17634 # No sense in running all these tests if we already determined that
17635 # the CXX compiler isn't working. Some variables (like enable_shared)
17636 # are currently assumed to apply to all compilers on this platform,
17637 # and will be corrupted by setting them based on a non-working compiler.
17638 if test "$_lt_caught_CXX_error" != yes; then
17639 # Code to be used in simple compile tests
17640 lt_simple_compile_test_code="int some_variable = 0;"
17642 # Code to be used in simple link tests
17643 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17652 # If no C compiler was specified, use CC.
17653 LTCC=${LTCC-"$CC"}
17655 # If no C compiler flags were specified, use CFLAGS.
17656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17658 # Allow CC to be a program name with arguments.
17659 compiler=$CC
17662 # save warnings/boilerplate of simple test code
17663 ac_outfile=conftest.$ac_objext
17664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17666 _lt_compiler_boilerplate=`cat conftest.err`
17667 $RM conftest*
17669 ac_outfile=conftest.$ac_objext
17670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17672 _lt_linker_boilerplate=`cat conftest.err`
17673 $RM -r conftest*
17676 # Allow CC to be a program name with arguments.
17677 lt_save_CC=$CC
17678 lt_save_LD=$LD
17679 lt_save_GCC=$GCC
17680 GCC=$GXX
17681 lt_save_with_gnu_ld=$with_gnu_ld
17682 lt_save_path_LD=$lt_cv_path_LD
17683 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17684 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17685 else
17686 $as_unset lt_cv_prog_gnu_ld
17688 if test -n "${lt_cv_path_LDCXX+set}"; then
17689 lt_cv_path_LD=$lt_cv_path_LDCXX
17690 else
17691 $as_unset lt_cv_path_LD
17693 test -z "${LDCXX+set}" || LD=$LDCXX
17694 CC=${CXX-"c++"}
17695 compiler=$CC
17696 compiler_CXX=$CC
17697 for cc_temp in $compiler""; do
17698 case $cc_temp in
17699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17701 \-*) ;;
17702 *) break;;
17703 esac
17704 done
17705 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17708 if test -n "$compiler"; then
17709 # We don't want -fno-exception when compiling C++ code, so set the
17710 # no_builtin_flag separately
17711 if test "$GXX" = yes; then
17712 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17713 else
17714 lt_prog_compiler_no_builtin_flag_CXX=
17717 if test "$GXX" = yes; then
17718 # Set up default GNU C++ configuration
17722 # Check whether --with-gnu-ld was given.
17723 if test "${with_gnu_ld+set}" = set; then :
17724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17725 else
17726 with_gnu_ld=no
17729 ac_prog=ld
17730 if test "$GCC" = yes; then
17731 # Check if gcc -print-prog-name=ld gives a path.
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17733 $as_echo_n "checking for ld used by $CC... " >&6; }
17734 case $host in
17735 *-*-mingw*)
17736 # gcc leaves a trailing carriage return which upsets mingw
17737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17740 esac
17741 case $ac_prog in
17742 # Accept absolute paths.
17743 [\\/]* | ?:[\\/]*)
17744 re_direlt='/[^/][^/]*/\.\./'
17745 # Canonicalize the pathname of ld
17746 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17747 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17748 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17749 done
17750 test -z "$LD" && LD="$ac_prog"
17753 # If it fails, then pretend we aren't using GCC.
17754 ac_prog=ld
17757 # If it is relative, then search for the first ld in PATH.
17758 with_gnu_ld=unknown
17760 esac
17761 elif test "$with_gnu_ld" = yes; then
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17763 $as_echo_n "checking for GNU ld... " >&6; }
17764 else
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17766 $as_echo_n "checking for non-GNU ld... " >&6; }
17768 if test "${lt_cv_path_LD+set}" = set; then :
17769 $as_echo_n "(cached) " >&6
17770 else
17771 if test -z "$LD"; then
17772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17773 for ac_dir in $PATH; do
17774 IFS="$lt_save_ifs"
17775 test -z "$ac_dir" && ac_dir=.
17776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17777 lt_cv_path_LD="$ac_dir/$ac_prog"
17778 # Check to see if the program is GNU ld. I'd rather use --version,
17779 # but apparently some variants of GNU ld only accept -v.
17780 # Break only if it was the GNU/non-GNU ld that we prefer.
17781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17782 *GNU* | *'with BFD'*)
17783 test "$with_gnu_ld" != no && break
17786 test "$with_gnu_ld" != yes && break
17788 esac
17790 done
17791 IFS="$lt_save_ifs"
17792 else
17793 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17797 LD="$lt_cv_path_LD"
17798 if test -n "$LD"; then
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17800 $as_echo "$LD" >&6; }
17801 else
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17803 $as_echo "no" >&6; }
17805 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17809 $as_echo_n "(cached) " >&6
17810 else
17811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17812 case `$LD -v 2>&1 </dev/null` in
17813 *GNU* | *'with BFD'*)
17814 lt_cv_prog_gnu_ld=yes
17817 lt_cv_prog_gnu_ld=no
17819 esac
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17823 with_gnu_ld=$lt_cv_prog_gnu_ld
17831 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17832 # archiving commands below assume that GNU ld is being used.
17833 if test "$with_gnu_ld" = yes; then
17834 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17835 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'
17837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17838 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17840 # If archive_cmds runs LD, not CC, wlarc should be empty
17841 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17842 # investigate it a little bit more. (MM)
17843 wlarc='${wl}'
17845 # ancient GNU ld didn't support --whole-archive et. al.
17846 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17847 $GREP 'no-whole-archive' > /dev/null; then
17848 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17849 else
17850 whole_archive_flag_spec_CXX=
17852 else
17853 with_gnu_ld=no
17854 wlarc=
17856 # A generic and very simple default shared library creation
17857 # command for GNU C++ for the case where it uses the native
17858 # linker, instead of GNU ld. If possible, this setting should
17859 # overridden to take advantage of the native linker features on
17860 # the platform it is being used on.
17861 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17864 # Commands to make compiler produce verbose output that lists
17865 # what "hidden" libraries, object files and flags are used when
17866 # linking a shared library.
17867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17869 else
17870 GXX=no
17871 with_gnu_ld=no
17872 wlarc=
17875 # PORTME: fill in a description of your system's C++ link characteristics
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17877 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17878 ld_shlibs_CXX=yes
17879 case $host_os in
17880 aix3*)
17881 # FIXME: insert proper C++ library support
17882 ld_shlibs_CXX=no
17884 aix[4-9]*)
17885 if test "$host_cpu" = ia64; then
17886 # On IA64, the linker does run time linking by default, so we don't
17887 # have to do anything special.
17888 aix_use_runtimelinking=no
17889 exp_sym_flag='-Bexport'
17890 no_entry_flag=""
17891 else
17892 aix_use_runtimelinking=no
17894 # Test if we are trying to use run time linking or normal
17895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17896 # need to do runtime linking.
17897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17898 for ld_flag in $LDFLAGS; do
17899 case $ld_flag in
17900 *-brtl*)
17901 aix_use_runtimelinking=yes
17902 break
17904 esac
17905 done
17907 esac
17909 exp_sym_flag='-bexport'
17910 no_entry_flag='-bnoentry'
17913 # When large executables or shared objects are built, AIX ld can
17914 # have problems creating the table of contents. If linking a library
17915 # or program results in "error TOC overflow" add -mminimal-toc to
17916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17919 archive_cmds_CXX=''
17920 hardcode_direct_CXX=yes
17921 hardcode_direct_absolute_CXX=yes
17922 hardcode_libdir_separator_CXX=':'
17923 link_all_deplibs_CXX=yes
17924 file_list_spec_CXX='${wl}-f,'
17926 if test "$GXX" = yes; then
17927 case $host_os in aix4.[012]|aix4.[012].*)
17928 # We only want to do this on AIX 4.2 and lower, the check
17929 # below for broken collect2 doesn't work under 4.3+
17930 collect2name=`${CC} -print-prog-name=collect2`
17931 if test -f "$collect2name" &&
17932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17933 then
17934 # We have reworked collect2
17936 else
17937 # We have old collect2
17938 hardcode_direct_CXX=unsupported
17939 # It fails to find uninstalled libraries when the uninstalled
17940 # path is not listed in the libpath. Setting hardcode_minus_L
17941 # to unsupported forces relinking
17942 hardcode_minus_L_CXX=yes
17943 hardcode_libdir_flag_spec_CXX='-L$libdir'
17944 hardcode_libdir_separator_CXX=
17946 esac
17947 shared_flag='-shared'
17948 if test "$aix_use_runtimelinking" = yes; then
17949 shared_flag="$shared_flag "'${wl}-G'
17951 else
17952 # not using gcc
17953 if test "$host_cpu" = ia64; then
17954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17955 # chokes on -Wl,-G. The following line is correct:
17956 shared_flag='-G'
17957 else
17958 if test "$aix_use_runtimelinking" = yes; then
17959 shared_flag='${wl}-G'
17960 else
17961 shared_flag='${wl}-bM:SRE'
17966 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17967 # It seems that -bexpall does not export symbols beginning with
17968 # underscore (_), so it is better to generate a list of symbols to
17969 # export.
17970 always_export_symbols_CXX=yes
17971 if test "$aix_use_runtimelinking" = yes; then
17972 # Warning - without using the other runtime loading flags (-brtl),
17973 # -berok will link without error, but may produce a broken library.
17974 allow_undefined_flag_CXX='-berok'
17975 # Determine the default libpath from the value encoded in an empty
17976 # executable.
17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h. */
17981 main ()
17985 return 0;
17987 _ACEOF
17988 if ac_fn_cxx_try_link "$LINENO"; then :
17990 lt_aix_libpath_sed='
17991 /Import File Strings/,/^$/ {
17992 /^0/ {
17993 s/^0 *\(.*\)$/\1/
17997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17998 # Check for a 64-bit object if we didn't find anything.
17999 if test -z "$aix_libpath"; then
18000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18003 rm -f core conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
18005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18007 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18009 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"
18010 else
18011 if test "$host_cpu" = ia64; then
18012 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18013 allow_undefined_flag_CXX="-z nodefs"
18014 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"
18015 else
18016 # Determine the default libpath from the value encoded in an
18017 # empty executable.
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18022 main ()
18026 return 0;
18028 _ACEOF
18029 if ac_fn_cxx_try_link "$LINENO"; then :
18031 lt_aix_libpath_sed='
18032 /Import File Strings/,/^$/ {
18033 /^0/ {
18034 s/^0 *\(.*\)$/\1/
18038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18039 # Check for a 64-bit object if we didn't find anything.
18040 if test -z "$aix_libpath"; then
18041 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18044 rm -f core conftest.err conftest.$ac_objext \
18045 conftest$ac_exeext conftest.$ac_ext
18046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18049 # Warning - without using the other run time loading flags,
18050 # -berok will link without error, but may produce a broken library.
18051 no_undefined_flag_CXX=' ${wl}-bernotok'
18052 allow_undefined_flag_CXX=' ${wl}-berok'
18053 if test "$with_gnu_ld" = yes; then
18054 # We only use this code for GNU lds that support --whole-archive.
18055 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18056 else
18057 # Exported symbols can be pulled into shared objects from archives
18058 whole_archive_flag_spec_CXX='$convenience'
18060 archive_cmds_need_lc_CXX=yes
18061 # This is similar to how AIX traditionally builds its shared
18062 # libraries.
18063 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'
18068 beos*)
18069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18070 allow_undefined_flag_CXX=unsupported
18071 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18072 # support --undefined. This deserves some investigation. FIXME
18073 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18074 else
18075 ld_shlibs_CXX=no
18079 chorus*)
18080 case $cc_basename in
18082 # FIXME: insert proper C++ library support
18083 ld_shlibs_CXX=no
18085 esac
18088 cygwin* | mingw* | pw32* | cegcc*)
18089 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18090 # as there is no search path for DLLs.
18091 hardcode_libdir_flag_spec_CXX='-L$libdir'
18092 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18093 allow_undefined_flag_CXX=unsupported
18094 always_export_symbols_CXX=no
18095 enable_shared_with_static_runtimes_CXX=yes
18097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18098 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'
18099 # If the export-symbols file already is a .def file (1st line
18100 # is EXPORTS), use it as is; otherwise, prepend...
18101 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18102 cp $export_symbols $output_objdir/$soname.def;
18103 else
18104 echo EXPORTS > $output_objdir/$soname.def;
18105 cat $export_symbols >> $output_objdir/$soname.def;
18107 $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'
18108 else
18109 ld_shlibs_CXX=no
18112 darwin* | rhapsody*)
18115 archive_cmds_need_lc_CXX=no
18116 hardcode_direct_CXX=no
18117 hardcode_automatic_CXX=yes
18118 hardcode_shlibpath_var_CXX=unsupported
18119 if test "$lt_cv_ld_force_load" = "yes"; then
18120 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\"`'
18121 else
18122 whole_archive_flag_spec_CXX=''
18124 link_all_deplibs_CXX=yes
18125 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18126 case $cc_basename in
18127 ifort*) _lt_dar_can_shared=yes ;;
18128 *) _lt_dar_can_shared=$GCC ;;
18129 esac
18130 if test "$_lt_dar_can_shared" = "yes"; then
18131 output_verbose_link_cmd=func_echo_all
18132 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}"
18133 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18134 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}"
18135 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}"
18136 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18137 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}"
18138 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}"
18141 else
18142 ld_shlibs_CXX=no
18147 dgux*)
18148 case $cc_basename in
18149 ec++*)
18150 # FIXME: insert proper C++ library support
18151 ld_shlibs_CXX=no
18153 ghcx*)
18154 # Green Hills C++ Compiler
18155 # FIXME: insert proper C++ library support
18156 ld_shlibs_CXX=no
18159 # FIXME: insert proper C++ library support
18160 ld_shlibs_CXX=no
18162 esac
18165 freebsd[12]*)
18166 # C++ shared libraries reported to be fairly broken before
18167 # switch to ELF
18168 ld_shlibs_CXX=no
18171 freebsd-elf*)
18172 archive_cmds_need_lc_CXX=no
18175 freebsd* | dragonfly*)
18176 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18177 # conventions
18178 ld_shlibs_CXX=yes
18181 gnu*)
18184 haiku*)
18185 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18186 link_all_deplibs_CXX=yes
18189 hpux9*)
18190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18191 hardcode_libdir_separator_CXX=:
18192 export_dynamic_flag_spec_CXX='${wl}-E'
18193 hardcode_direct_CXX=yes
18194 hardcode_minus_L_CXX=yes # Not in the search PATH,
18195 # but as the default
18196 # location of the library.
18198 case $cc_basename in
18199 CC*)
18200 # FIXME: insert proper C++ library support
18201 ld_shlibs_CXX=no
18203 aCC*)
18204 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'
18205 # Commands to make compiler produce verbose output that lists
18206 # what "hidden" libraries, object files and flags are used when
18207 # linking a shared library.
18209 # There doesn't appear to be a way to prevent this compiler from
18210 # explicitly linking system object files so we need to strip them
18211 # from the output so that they don't get included in the library
18212 # dependencies.
18213 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"'
18216 if test "$GXX" = yes; then
18217 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'
18218 else
18219 # FIXME: insert proper C++ library support
18220 ld_shlibs_CXX=no
18223 esac
18226 hpux10*|hpux11*)
18227 if test $with_gnu_ld = no; then
18228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18229 hardcode_libdir_separator_CXX=:
18231 case $host_cpu in
18232 hppa*64*|ia64*)
18235 export_dynamic_flag_spec_CXX='${wl}-E'
18237 esac
18239 case $host_cpu in
18240 hppa*64*|ia64*)
18241 hardcode_direct_CXX=no
18242 hardcode_shlibpath_var_CXX=no
18245 hardcode_direct_CXX=yes
18246 hardcode_direct_absolute_CXX=yes
18247 hardcode_minus_L_CXX=yes # Not in the search PATH,
18248 # but as the default
18249 # location of the library.
18251 esac
18253 case $cc_basename in
18254 CC*)
18255 # FIXME: insert proper C++ library support
18256 ld_shlibs_CXX=no
18258 aCC*)
18259 case $host_cpu in
18260 hppa*64*)
18261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18263 ia64*)
18264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18269 esac
18270 # Commands to make compiler produce verbose output that lists
18271 # what "hidden" libraries, object files and flags are used when
18272 # linking a shared library.
18274 # There doesn't appear to be a way to prevent this compiler from
18275 # explicitly linking system object files so we need to strip them
18276 # from the output so that they don't get included in the library
18277 # dependencies.
18278 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"'
18281 if test "$GXX" = yes; then
18282 if test $with_gnu_ld = no; then
18283 case $host_cpu in
18284 hppa*64*)
18285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18287 ia64*)
18288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18291 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'
18293 esac
18295 else
18296 # FIXME: insert proper C++ library support
18297 ld_shlibs_CXX=no
18300 esac
18303 interix[3-9]*)
18304 hardcode_direct_CXX=no
18305 hardcode_shlibpath_var_CXX=no
18306 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18307 export_dynamic_flag_spec_CXX='${wl}-E'
18308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18309 # Instead, shared libraries are loaded at an image base (0x10000000 by
18310 # default) and relocated if they conflict, which is a slow very memory
18311 # consuming and fragmenting process. To avoid this, we pick a random,
18312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18314 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'
18315 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'
18317 irix5* | irix6*)
18318 case $cc_basename in
18319 CC*)
18320 # SGI C++
18321 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'
18323 # Archives containing C++ object files must be created using
18324 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18325 # necessary to make sure instantiated templates are included
18326 # in the archive.
18327 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18330 if test "$GXX" = yes; then
18331 if test "$with_gnu_ld" = no; then
18332 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'
18333 else
18334 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'
18337 link_all_deplibs_CXX=yes
18339 esac
18340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18341 hardcode_libdir_separator_CXX=:
18342 inherit_rpath_CXX=yes
18345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18346 case $cc_basename in
18347 KCC*)
18348 # Kuck and Associates, Inc. (KAI) C++ Compiler
18350 # KCC will only create a shared library if the output file
18351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18352 # to its proper name (with version) after linking.
18353 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'
18354 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'
18355 # Commands to make compiler produce verbose output that lists
18356 # what "hidden" libraries, object files and flags are used when
18357 # linking a shared library.
18359 # There doesn't appear to be a way to prevent this compiler from
18360 # explicitly linking system object files so we need to strip them
18361 # from the output so that they don't get included in the library
18362 # dependencies.
18363 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"'
18365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18368 # Archives containing C++ object files must be created using
18369 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18370 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18372 icpc* | ecpc* )
18373 # Intel C++
18374 with_gnu_ld=yes
18375 # version 8.0 and above of icpc choke on multiply defined symbols
18376 # if we add $predep_objects and $postdep_objects, however 7.1 and
18377 # earlier do not add the objects themselves.
18378 case `$CC -V 2>&1` in
18379 *"Version 7."*)
18380 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18381 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'
18383 *) # Version 8.0 or newer
18384 tmp_idyn=
18385 case $host_cpu in
18386 ia64*) tmp_idyn=' -i_dynamic';;
18387 esac
18388 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18389 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'
18391 esac
18392 archive_cmds_need_lc_CXX=no
18393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18397 pgCC* | pgcpp*)
18398 # Portland Group C++ compiler
18399 case `$CC -V` in
18400 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18401 prelink_cmds_CXX='tpldir=Template.dir~
18402 rm -rf $tpldir~
18403 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18404 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18405 old_archive_cmds_CXX='tpldir=Template.dir~
18406 rm -rf $tpldir~
18407 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18408 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18409 $RANLIB $oldlib'
18410 archive_cmds_CXX='tpldir=Template.dir~
18411 rm -rf $tpldir~
18412 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18413 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18414 archive_expsym_cmds_CXX='tpldir=Template.dir~
18415 rm -rf $tpldir~
18416 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18417 $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'
18419 *) # Version 6 and above use weak symbols
18420 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18421 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'
18423 esac
18425 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18427 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'
18429 cxx*)
18430 # Compaq C++
18431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18432 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'
18434 runpath_var=LD_RUN_PATH
18435 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18436 hardcode_libdir_separator_CXX=:
18438 # Commands to make compiler produce verbose output that lists
18439 # what "hidden" libraries, object files and flags are used when
18440 # linking a shared library.
18442 # There doesn't appear to be a way to prevent this compiler from
18443 # explicitly linking system object files so we need to strip them
18444 # from the output so that they don't get included in the library
18445 # dependencies.
18446 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'
18448 xl* | mpixl* | bgxl*)
18449 # IBM XL 8.0 on PPC, with GNU ld
18450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18451 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18452 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18453 if test "x$supports_anon_versioning" = xyes; then
18454 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18456 echo "local: *; };" >> $output_objdir/$libname.ver~
18457 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18461 case `$CC -V 2>&1 | sed 5q` in
18462 *Sun\ C*)
18463 # Sun C++ 5.9
18464 no_undefined_flag_CXX=' -zdefs'
18465 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18466 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'
18467 hardcode_libdir_flag_spec_CXX='-R$libdir'
18468 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'
18469 compiler_needs_object_CXX=yes
18471 # Not sure whether something based on
18472 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18473 # would be better.
18474 output_verbose_link_cmd='func_echo_all'
18476 # Archives containing C++ object files must be created using
18477 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18478 # necessary to make sure instantiated templates are included
18479 # in the archive.
18480 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18482 esac
18484 esac
18487 lynxos*)
18488 # FIXME: insert proper C++ library support
18489 ld_shlibs_CXX=no
18492 m88k*)
18493 # FIXME: insert proper C++ library support
18494 ld_shlibs_CXX=no
18497 mvs*)
18498 case $cc_basename in
18499 cxx*)
18500 # FIXME: insert proper C++ library support
18501 ld_shlibs_CXX=no
18504 # FIXME: insert proper C++ library support
18505 ld_shlibs_CXX=no
18507 esac
18510 netbsd*)
18511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18512 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18513 wlarc=
18514 hardcode_libdir_flag_spec_CXX='-R$libdir'
18515 hardcode_direct_CXX=yes
18516 hardcode_shlibpath_var_CXX=no
18518 # Workaround some broken pre-1.5 toolchains
18519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18522 *nto* | *qnx*)
18523 ld_shlibs_CXX=yes
18526 openbsd2*)
18527 # C++ shared libraries are fairly broken
18528 ld_shlibs_CXX=no
18531 openbsd*)
18532 if test -f /usr/libexec/ld.so; then
18533 hardcode_direct_CXX=yes
18534 hardcode_shlibpath_var_CXX=no
18535 hardcode_direct_absolute_CXX=yes
18536 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18539 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18540 export_dynamic_flag_spec_CXX='${wl}-E'
18541 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18543 output_verbose_link_cmd=func_echo_all
18544 else
18545 ld_shlibs_CXX=no
18549 osf3* | osf4* | osf5*)
18550 case $cc_basename in
18551 KCC*)
18552 # Kuck and Associates, Inc. (KAI) C++ Compiler
18554 # KCC will only create a shared library if the output file
18555 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18556 # to its proper name (with version) after linking.
18557 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'
18559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18560 hardcode_libdir_separator_CXX=:
18562 # Archives containing C++ object files must be created using
18563 # the KAI C++ compiler.
18564 case $host in
18565 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18566 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18567 esac
18569 RCC*)
18570 # Rational C++ 2.4.1
18571 # FIXME: insert proper C++ library support
18572 ld_shlibs_CXX=no
18574 cxx*)
18575 case $host in
18576 osf3*)
18577 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18578 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'
18579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18582 allow_undefined_flag_CXX=' -expect_unresolved \*'
18583 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'
18584 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18585 echo "-hidden">> $lib.exp~
18586 $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~
18587 $RM $lib.exp'
18588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18590 esac
18592 hardcode_libdir_separator_CXX=:
18594 # Commands to make compiler produce verbose output that lists
18595 # what "hidden" libraries, object files and flags are used when
18596 # linking a shared library.
18598 # There doesn't appear to be a way to prevent this compiler from
18599 # explicitly linking system object files so we need to strip them
18600 # from the output so that they don't get included in the library
18601 # dependencies.
18602 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"'
18605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18606 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18607 case $host in
18608 osf3*)
18609 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'
18612 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'
18614 esac
18616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18617 hardcode_libdir_separator_CXX=:
18619 # Commands to make compiler produce verbose output that lists
18620 # what "hidden" libraries, object files and flags are used when
18621 # linking a shared library.
18622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18624 else
18625 # FIXME: insert proper C++ library support
18626 ld_shlibs_CXX=no
18629 esac
18632 psos*)
18633 # FIXME: insert proper C++ library support
18634 ld_shlibs_CXX=no
18637 sunos4*)
18638 case $cc_basename in
18639 CC*)
18640 # Sun C++ 4.x
18641 # FIXME: insert proper C++ library support
18642 ld_shlibs_CXX=no
18644 lcc*)
18645 # Lucid
18646 # FIXME: insert proper C++ library support
18647 ld_shlibs_CXX=no
18650 # FIXME: insert proper C++ library support
18651 ld_shlibs_CXX=no
18653 esac
18656 solaris*)
18657 case $cc_basename in
18658 CC*)
18659 # Sun C++ 4.2, 5.x and Centerline C++
18660 archive_cmds_need_lc_CXX=yes
18661 no_undefined_flag_CXX=' -zdefs'
18662 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18663 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18664 $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'
18666 hardcode_libdir_flag_spec_CXX='-R$libdir'
18667 hardcode_shlibpath_var_CXX=no
18668 case $host_os in
18669 solaris2.[0-5] | solaris2.[0-5].*) ;;
18671 # The compiler driver will combine and reorder linker options,
18672 # but understands `-z linker_flag'.
18673 # Supported since Solaris 2.6 (maybe 2.5.1?)
18674 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18676 esac
18677 link_all_deplibs_CXX=yes
18679 output_verbose_link_cmd='func_echo_all'
18681 # Archives containing C++ object files must be created using
18682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18683 # necessary to make sure instantiated templates are included
18684 # in the archive.
18685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18687 gcx*)
18688 # Green Hills C++ Compiler
18689 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18691 # The C++ compiler must be used to create the archive.
18692 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18695 # GNU C++ compiler with Solaris linker
18696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18697 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18698 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18699 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18700 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18701 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18703 # Commands to make compiler produce verbose output that lists
18704 # what "hidden" libraries, object files and flags are used when
18705 # linking a shared library.
18706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18707 else
18708 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18709 # platform.
18710 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18712 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18714 # Commands to make compiler produce verbose output that lists
18715 # what "hidden" libraries, object files and flags are used when
18716 # linking a shared library.
18717 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18720 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18721 case $host_os in
18722 solaris2.[0-5] | solaris2.[0-5].*) ;;
18724 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18726 esac
18729 esac
18732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18733 no_undefined_flag_CXX='${wl}-z,text'
18734 archive_cmds_need_lc_CXX=no
18735 hardcode_shlibpath_var_CXX=no
18736 runpath_var='LD_RUN_PATH'
18738 case $cc_basename in
18739 CC*)
18740 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18741 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18744 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18745 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18747 esac
18750 sysv5* | sco3.2v5* | sco5v6*)
18751 # Note: We can NOT use -z defs as we might desire, because we do not
18752 # link with -lc, and that would cause any symbols used from libc to
18753 # always be unresolved, which means just about no library would
18754 # ever link correctly. If we're not using GNU ld we use -z text
18755 # though, which does catch some bad symbols but isn't as heavy-handed
18756 # as -z defs.
18757 no_undefined_flag_CXX='${wl}-z,text'
18758 allow_undefined_flag_CXX='${wl}-z,nodefs'
18759 archive_cmds_need_lc_CXX=no
18760 hardcode_shlibpath_var_CXX=no
18761 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18762 hardcode_libdir_separator_CXX=':'
18763 link_all_deplibs_CXX=yes
18764 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18765 runpath_var='LD_RUN_PATH'
18767 case $cc_basename in
18768 CC*)
18769 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18771 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18772 '"$old_archive_cmds_CXX"
18773 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18774 '"$reload_cmds_CXX"
18777 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18778 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18780 esac
18783 tandem*)
18784 case $cc_basename in
18785 NCC*)
18786 # NonStop-UX NCC 3.20
18787 # FIXME: insert proper C++ library support
18788 ld_shlibs_CXX=no
18791 # FIXME: insert proper C++ library support
18792 ld_shlibs_CXX=no
18794 esac
18797 vxworks*)
18798 # FIXME: insert proper C++ library support
18799 ld_shlibs_CXX=no
18803 # FIXME: insert proper C++ library support
18804 ld_shlibs_CXX=no
18806 esac
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18809 $as_echo "$ld_shlibs_CXX" >&6; }
18810 test "$ld_shlibs_CXX" = no && can_build_shared=no
18812 GCC_CXX="$GXX"
18813 LD_CXX="$LD"
18815 ## CAVEAT EMPTOR:
18816 ## There is no encapsulation within the following macros, do not change
18817 ## the running order or otherwise move them around unless you know exactly
18818 ## what you are doing...
18819 # Dependencies to place before and after the object being linked:
18820 predep_objects_CXX=
18821 postdep_objects_CXX=
18822 predeps_CXX=
18823 postdeps_CXX=
18824 compiler_lib_search_path_CXX=
18826 cat > conftest.$ac_ext <<_LT_EOF
18827 class Foo
18829 public:
18830 Foo (void) { a = 0; }
18831 private:
18832 int a;
18834 _LT_EOF
18836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18837 (eval $ac_compile) 2>&5
18838 ac_status=$?
18839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18840 test $ac_status = 0; }; then
18841 # Parse the compiler output and extract the necessary
18842 # objects, libraries and library flags.
18844 # Sentinel used to keep track of whether or not we are before
18845 # the conftest object file.
18846 pre_test_object_deps_done=no
18848 for p in `eval "$output_verbose_link_cmd"`; do
18849 case $p in
18851 -L* | -R* | -l*)
18852 # Some compilers place space between "-{L,R}" and the path.
18853 # Remove the space.
18854 if test $p = "-L" ||
18855 test $p = "-R"; then
18856 prev=$p
18857 continue
18858 else
18859 prev=
18862 if test "$pre_test_object_deps_done" = no; then
18863 case $p in
18864 -L* | -R*)
18865 # Internal compiler library paths should come after those
18866 # provided the user. The postdeps already come after the
18867 # user supplied libs so there is no need to process them.
18868 if test -z "$compiler_lib_search_path_CXX"; then
18869 compiler_lib_search_path_CXX="${prev}${p}"
18870 else
18871 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18874 # The "-l" case would never come before the object being
18875 # linked, so don't bother handling this case.
18876 esac
18877 else
18878 if test -z "$postdeps_CXX"; then
18879 postdeps_CXX="${prev}${p}"
18880 else
18881 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18886 *.$objext)
18887 # This assumes that the test object file only shows up
18888 # once in the compiler output.
18889 if test "$p" = "conftest.$objext"; then
18890 pre_test_object_deps_done=yes
18891 continue
18894 if test "$pre_test_object_deps_done" = no; then
18895 if test -z "$predep_objects_CXX"; then
18896 predep_objects_CXX="$p"
18897 else
18898 predep_objects_CXX="$predep_objects_CXX $p"
18900 else
18901 if test -z "$postdep_objects_CXX"; then
18902 postdep_objects_CXX="$p"
18903 else
18904 postdep_objects_CXX="$postdep_objects_CXX $p"
18909 *) ;; # Ignore the rest.
18911 esac
18912 done
18914 # Clean up.
18915 rm -f a.out a.exe
18916 else
18917 echo "libtool.m4: error: problem compiling CXX test program"
18920 $RM -f confest.$objext
18922 # PORTME: override above test on systems where it is broken
18923 case $host_os in
18924 interix[3-9]*)
18925 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18926 # hack all around it, let's just trust "g++" to DTRT.
18927 predep_objects_CXX=
18928 postdep_objects_CXX=
18929 postdeps_CXX=
18932 linux*)
18933 case `$CC -V 2>&1 | sed 5q` in
18934 *Sun\ C*)
18935 # Sun C++ 5.9
18937 # The more standards-conforming stlport4 library is
18938 # incompatible with the Cstd library. Avoid specifying
18939 # it if it's in CXXFLAGS. Ignore libCrun as
18940 # -library=stlport4 depends on it.
18941 case " $CXX $CXXFLAGS " in
18942 *" -library=stlport4 "*)
18943 solaris_use_stlport4=yes
18945 esac
18947 if test "$solaris_use_stlport4" != yes; then
18948 postdeps_CXX='-library=Cstd -library=Crun'
18951 esac
18954 solaris*)
18955 case $cc_basename in
18956 CC*)
18957 # The more standards-conforming stlport4 library is
18958 # incompatible with the Cstd library. Avoid specifying
18959 # it if it's in CXXFLAGS. Ignore libCrun as
18960 # -library=stlport4 depends on it.
18961 case " $CXX $CXXFLAGS " in
18962 *" -library=stlport4 "*)
18963 solaris_use_stlport4=yes
18965 esac
18967 # Adding this requires a known-good setup of shared libraries for
18968 # Sun compiler versions before 5.6, else PIC objects from an old
18969 # archive will be linked into the output, leading to subtle bugs.
18970 if test "$solaris_use_stlport4" != yes; then
18971 postdeps_CXX='-library=Cstd -library=Crun'
18974 esac
18976 esac
18979 case " $postdeps_CXX " in
18980 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18981 esac
18982 compiler_lib_search_dirs_CXX=
18983 if test -n "${compiler_lib_search_path_CXX}"; then
18984 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19017 lt_prog_compiler_wl_CXX=
19018 lt_prog_compiler_pic_CXX=
19019 lt_prog_compiler_static_CXX=
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19022 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19024 # C++ specific cases for pic, static, wl, etc.
19025 if test "$GXX" = yes; then
19026 lt_prog_compiler_wl_CXX='-Wl,'
19027 lt_prog_compiler_static_CXX='-static'
19029 case $host_os in
19030 aix*)
19031 # All AIX code is PIC.
19032 if test "$host_cpu" = ia64; then
19033 # AIX 5 now supports IA64 processor
19034 lt_prog_compiler_static_CXX='-Bstatic'
19038 amigaos*)
19039 case $host_cpu in
19040 powerpc)
19041 # see comment about AmigaOS4 .so support
19042 lt_prog_compiler_pic_CXX='-fPIC'
19044 m68k)
19045 # FIXME: we need at least 68020 code to build shared libraries, but
19046 # adding the `-m68020' flag to GCC prevents building anything better,
19047 # like `-m68040'.
19048 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19050 esac
19053 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19054 # PIC is the default for these OSes.
19056 mingw* | cygwin* | os2* | pw32* | cegcc*)
19057 # This hack is so that the source file can tell whether it is being
19058 # built for inclusion in a dll (and should export symbols for example).
19059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19060 # (--disable-auto-import) libraries
19061 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19063 darwin* | rhapsody*)
19064 # PIC is the default on this platform
19065 # Common symbols not allowed in MH_DYLIB files
19066 lt_prog_compiler_pic_CXX='-fno-common'
19068 *djgpp*)
19069 # DJGPP does not support shared libraries at all
19070 lt_prog_compiler_pic_CXX=
19072 haiku*)
19073 # PIC is the default for Haiku.
19074 # The "-static" flag exists, but is broken.
19075 lt_prog_compiler_static_CXX=
19077 interix[3-9]*)
19078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19079 # Instead, we relocate shared libraries at runtime.
19081 sysv4*MP*)
19082 if test -d /usr/nec; then
19083 lt_prog_compiler_pic_CXX=-Kconform_pic
19086 hpux*)
19087 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19088 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19089 # sets the default TLS model and affects inlining.
19090 case $host_cpu in
19091 hppa*64*)
19094 lt_prog_compiler_pic_CXX='-fPIC'
19096 esac
19098 *qnx* | *nto*)
19099 # QNX uses GNU C++, but need to define -shared option too, otherwise
19100 # it will coredump.
19101 lt_prog_compiler_pic_CXX='-fPIC -shared'
19104 lt_prog_compiler_pic_CXX='-fPIC'
19106 esac
19107 else
19108 case $host_os in
19109 aix[4-9]*)
19110 # All AIX code is PIC.
19111 if test "$host_cpu" = ia64; then
19112 # AIX 5 now supports IA64 processor
19113 lt_prog_compiler_static_CXX='-Bstatic'
19114 else
19115 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19118 chorus*)
19119 case $cc_basename in
19120 cxch68*)
19121 # Green Hills C++ Compiler
19122 # _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"
19124 esac
19126 dgux*)
19127 case $cc_basename in
19128 ec++*)
19129 lt_prog_compiler_pic_CXX='-KPIC'
19131 ghcx*)
19132 # Green Hills C++ Compiler
19133 lt_prog_compiler_pic_CXX='-pic'
19137 esac
19139 freebsd* | dragonfly*)
19140 # FreeBSD uses GNU C++
19142 hpux9* | hpux10* | hpux11*)
19143 case $cc_basename in
19144 CC*)
19145 lt_prog_compiler_wl_CXX='-Wl,'
19146 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19147 if test "$host_cpu" != ia64; then
19148 lt_prog_compiler_pic_CXX='+Z'
19151 aCC*)
19152 lt_prog_compiler_wl_CXX='-Wl,'
19153 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19154 case $host_cpu in
19155 hppa*64*|ia64*)
19156 # +Z the default
19159 lt_prog_compiler_pic_CXX='+Z'
19161 esac
19165 esac
19167 interix*)
19168 # This is c89, which is MS Visual C++ (no shared libs)
19169 # Anyone wants to do a port?
19171 irix5* | irix6* | nonstopux*)
19172 case $cc_basename in
19173 CC*)
19174 lt_prog_compiler_wl_CXX='-Wl,'
19175 lt_prog_compiler_static_CXX='-non_shared'
19176 # CC pic flag -KPIC is the default.
19180 esac
19182 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19183 case $cc_basename in
19184 KCC*)
19185 # KAI C++ Compiler
19186 lt_prog_compiler_wl_CXX='--backend -Wl,'
19187 lt_prog_compiler_pic_CXX='-fPIC'
19189 ecpc* )
19190 # old Intel C++ for x86_64 which still supported -KPIC.
19191 lt_prog_compiler_wl_CXX='-Wl,'
19192 lt_prog_compiler_pic_CXX='-KPIC'
19193 lt_prog_compiler_static_CXX='-static'
19195 icpc* )
19196 # Intel C++, used to be incompatible with GCC.
19197 # ICC 10 doesn't accept -KPIC any more.
19198 lt_prog_compiler_wl_CXX='-Wl,'
19199 lt_prog_compiler_pic_CXX='-fPIC'
19200 lt_prog_compiler_static_CXX='-static'
19202 pgCC* | pgcpp*)
19203 # Portland Group C++ compiler
19204 lt_prog_compiler_wl_CXX='-Wl,'
19205 lt_prog_compiler_pic_CXX='-fpic'
19206 lt_prog_compiler_static_CXX='-Bstatic'
19208 cxx*)
19209 # Compaq C++
19210 # Make sure the PIC flag is empty. It appears that all Alpha
19211 # Linux and Compaq Tru64 Unix objects are PIC.
19212 lt_prog_compiler_pic_CXX=
19213 lt_prog_compiler_static_CXX='-non_shared'
19215 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19216 # IBM XL 8.0, 9.0 on PPC and BlueGene
19217 lt_prog_compiler_wl_CXX='-Wl,'
19218 lt_prog_compiler_pic_CXX='-qpic'
19219 lt_prog_compiler_static_CXX='-qstaticlink'
19222 case `$CC -V 2>&1 | sed 5q` in
19223 *Sun\ C*)
19224 # Sun C++ 5.9
19225 lt_prog_compiler_pic_CXX='-KPIC'
19226 lt_prog_compiler_static_CXX='-Bstatic'
19227 lt_prog_compiler_wl_CXX='-Qoption ld '
19229 esac
19231 esac
19233 lynxos*)
19235 m88k*)
19237 mvs*)
19238 case $cc_basename in
19239 cxx*)
19240 lt_prog_compiler_pic_CXX='-W c,exportall'
19244 esac
19246 netbsd*)
19248 *qnx* | *nto*)
19249 # QNX uses GNU C++, but need to define -shared option too, otherwise
19250 # it will coredump.
19251 lt_prog_compiler_pic_CXX='-fPIC -shared'
19253 osf3* | osf4* | osf5*)
19254 case $cc_basename in
19255 KCC*)
19256 lt_prog_compiler_wl_CXX='--backend -Wl,'
19258 RCC*)
19259 # Rational C++ 2.4.1
19260 lt_prog_compiler_pic_CXX='-pic'
19262 cxx*)
19263 # Digital/Compaq C++
19264 lt_prog_compiler_wl_CXX='-Wl,'
19265 # Make sure the PIC flag is empty. It appears that all Alpha
19266 # Linux and Compaq Tru64 Unix objects are PIC.
19267 lt_prog_compiler_pic_CXX=
19268 lt_prog_compiler_static_CXX='-non_shared'
19272 esac
19274 psos*)
19276 solaris*)
19277 case $cc_basename in
19278 CC*)
19279 # Sun C++ 4.2, 5.x and Centerline C++
19280 lt_prog_compiler_pic_CXX='-KPIC'
19281 lt_prog_compiler_static_CXX='-Bstatic'
19282 lt_prog_compiler_wl_CXX='-Qoption ld '
19284 gcx*)
19285 # Green Hills C++ Compiler
19286 lt_prog_compiler_pic_CXX='-PIC'
19290 esac
19292 sunos4*)
19293 case $cc_basename in
19294 CC*)
19295 # Sun C++ 4.x
19296 lt_prog_compiler_pic_CXX='-pic'
19297 lt_prog_compiler_static_CXX='-Bstatic'
19299 lcc*)
19300 # Lucid
19301 lt_prog_compiler_pic_CXX='-pic'
19305 esac
19307 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19308 case $cc_basename in
19309 CC*)
19310 lt_prog_compiler_wl_CXX='-Wl,'
19311 lt_prog_compiler_pic_CXX='-KPIC'
19312 lt_prog_compiler_static_CXX='-Bstatic'
19314 esac
19316 tandem*)
19317 case $cc_basename in
19318 NCC*)
19319 # NonStop-UX NCC 3.20
19320 lt_prog_compiler_pic_CXX='-KPIC'
19324 esac
19326 vxworks*)
19329 lt_prog_compiler_can_build_shared_CXX=no
19331 esac
19334 case $host_os in
19335 # For platforms which do not support PIC, -DPIC is meaningless:
19336 *djgpp*)
19337 lt_prog_compiler_pic_CXX=
19340 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19342 esac
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19344 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19349 # Check to make sure the PIC flag actually works.
19351 if test -n "$lt_prog_compiler_pic_CXX"; then
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19353 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19354 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19355 $as_echo_n "(cached) " >&6
19356 else
19357 lt_cv_prog_compiler_pic_works_CXX=no
19358 ac_outfile=conftest.$ac_objext
19359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19360 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19361 # Insert the option either (1) after the last *FLAGS variable, or
19362 # (2) before a word containing "conftest.", or (3) at the end.
19363 # Note that $ac_compile itself does not contain backslashes and begins
19364 # with a dollar sign (not a hyphen), so the echo should work correctly.
19365 # The option is referenced via a variable to avoid confusing sed.
19366 lt_compile=`echo "$ac_compile" | $SED \
19367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19369 -e 's:$: $lt_compiler_flag:'`
19370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19371 (eval "$lt_compile" 2>conftest.err)
19372 ac_status=$?
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 if (exit $ac_status) && test -s "$ac_outfile"; then
19376 # The compiler can only warn and ignore the option if not recognized
19377 # So say no if there are warnings other than the usual output.
19378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19380 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19381 lt_cv_prog_compiler_pic_works_CXX=yes
19384 $RM conftest*
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19388 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19390 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19391 case $lt_prog_compiler_pic_CXX in
19392 "" | " "*) ;;
19393 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19394 esac
19395 else
19396 lt_prog_compiler_pic_CXX=
19397 lt_prog_compiler_can_build_shared_CXX=no
19405 # Check to make sure the static flag actually works.
19407 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19409 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19410 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19411 $as_echo_n "(cached) " >&6
19412 else
19413 lt_cv_prog_compiler_static_works_CXX=no
19414 save_LDFLAGS="$LDFLAGS"
19415 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19416 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19417 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19418 # The linker can only warn and ignore the option if not recognized
19419 # So say no if there are warnings
19420 if test -s conftest.err; then
19421 # Append any errors to the config.log.
19422 cat conftest.err 1>&5
19423 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19425 if diff conftest.exp conftest.er2 >/dev/null; then
19426 lt_cv_prog_compiler_static_works_CXX=yes
19428 else
19429 lt_cv_prog_compiler_static_works_CXX=yes
19432 $RM -r conftest*
19433 LDFLAGS="$save_LDFLAGS"
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19437 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19439 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19441 else
19442 lt_prog_compiler_static_CXX=
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19450 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19451 $as_echo_n "(cached) " >&6
19452 else
19453 lt_cv_prog_compiler_c_o_CXX=no
19454 $RM -r conftest 2>/dev/null
19455 mkdir conftest
19456 cd conftest
19457 mkdir out
19458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19460 lt_compiler_flag="-o out/conftest2.$ac_objext"
19461 # Insert the option either (1) after the last *FLAGS variable, or
19462 # (2) before a word containing "conftest.", or (3) at the end.
19463 # Note that $ac_compile itself does not contain backslashes and begins
19464 # with a dollar sign (not a hyphen), so the echo should work correctly.
19465 lt_compile=`echo "$ac_compile" | $SED \
19466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19468 -e 's:$: $lt_compiler_flag:'`
19469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19470 (eval "$lt_compile" 2>out/conftest.err)
19471 ac_status=$?
19472 cat out/conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19475 then
19476 # The compiler can only warn and ignore the option if not recognized
19477 # So say no if there are warnings
19478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19479 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19480 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19481 lt_cv_prog_compiler_c_o_CXX=yes
19484 chmod u+w . 2>&5
19485 $RM conftest*
19486 # SGI C++ compiler will create directory out/ii_files/ for
19487 # template instantiation
19488 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19489 $RM out/* && rmdir out
19490 cd ..
19491 $RM -r conftest
19492 $RM conftest*
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19496 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19502 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19503 $as_echo_n "(cached) " >&6
19504 else
19505 lt_cv_prog_compiler_c_o_CXX=no
19506 $RM -r conftest 2>/dev/null
19507 mkdir conftest
19508 cd conftest
19509 mkdir out
19510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19512 lt_compiler_flag="-o out/conftest2.$ac_objext"
19513 # Insert the option either (1) after the last *FLAGS variable, or
19514 # (2) before a word containing "conftest.", or (3) at the end.
19515 # Note that $ac_compile itself does not contain backslashes and begins
19516 # with a dollar sign (not a hyphen), so the echo should work correctly.
19517 lt_compile=`echo "$ac_compile" | $SED \
19518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19520 -e 's:$: $lt_compiler_flag:'`
19521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19522 (eval "$lt_compile" 2>out/conftest.err)
19523 ac_status=$?
19524 cat out/conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19527 then
19528 # The compiler can only warn and ignore the option if not recognized
19529 # So say no if there are warnings
19530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19533 lt_cv_prog_compiler_c_o_CXX=yes
19536 chmod u+w . 2>&5
19537 $RM conftest*
19538 # SGI C++ compiler will create directory out/ii_files/ for
19539 # template instantiation
19540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19541 $RM out/* && rmdir out
19542 cd ..
19543 $RM -r conftest
19544 $RM conftest*
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19548 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19553 hard_links="nottested"
19554 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19555 # do not overwrite the value of need_locks provided by the user
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19557 $as_echo_n "checking if we can lock with hard links... " >&6; }
19558 hard_links=yes
19559 $RM conftest*
19560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19561 touch conftest.a
19562 ln conftest.a conftest.b 2>&5 || hard_links=no
19563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19565 $as_echo "$hard_links" >&6; }
19566 if test "$hard_links" = no; then
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19568 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19569 need_locks=warn
19571 else
19572 need_locks=no
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19578 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19580 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19581 case $host_os in
19582 aix[4-9]*)
19583 # If we're using GNU nm, then we don't want the "-C" option.
19584 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19585 # Also, AIX nm treats weak defined symbols like other global defined
19586 # symbols, whereas GNU nm marks them as "W".
19587 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19588 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'
19589 else
19590 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'
19593 pw32*)
19594 export_symbols_cmds_CXX="$ltdll_cmds"
19596 cygwin* | mingw* | cegcc*)
19597 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'
19600 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19602 esac
19603 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19606 $as_echo "$ld_shlibs_CXX" >&6; }
19607 test "$ld_shlibs_CXX" = no && can_build_shared=no
19609 with_gnu_ld_CXX=$with_gnu_ld
19617 # Do we need to explicitly link libc?
19619 case "x$archive_cmds_need_lc_CXX" in
19620 x|xyes)
19621 # Assume -lc should be added
19622 archive_cmds_need_lc_CXX=yes
19624 if test "$enable_shared" = yes && test "$GCC" = yes; then
19625 case $archive_cmds_CXX in
19626 *'~'*)
19627 # FIXME: we may have to deal with multi-command sequences.
19629 '$CC '*)
19630 # Test whether the compiler implicitly links with -lc since on some
19631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19632 # to ld, don't add -lc before -lgcc.
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19635 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19636 $as_echo_n "(cached) " >&6
19637 else
19638 $RM conftest*
19639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19642 (eval $ac_compile) 2>&5
19643 ac_status=$?
19644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19645 test $ac_status = 0; } 2>conftest.err; then
19646 soname=conftest
19647 lib=conftest
19648 libobjs=conftest.$ac_objext
19649 deplibs=
19650 wl=$lt_prog_compiler_wl_CXX
19651 pic_flag=$lt_prog_compiler_pic_CXX
19652 compiler_flags=-v
19653 linker_flags=-v
19654 verstring=
19655 output_objdir=.
19656 libname=conftest
19657 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19658 allow_undefined_flag_CXX=
19659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19660 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19661 ac_status=$?
19662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19663 test $ac_status = 0; }
19664 then
19665 lt_cv_archive_cmds_need_lc_CXX=no
19666 else
19667 lt_cv_archive_cmds_need_lc_CXX=yes
19669 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19670 else
19671 cat conftest.err 1>&5
19673 $RM conftest*
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19677 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19678 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19680 esac
19683 esac
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19751 library_names_spec=
19752 libname_spec='lib$name'
19753 soname_spec=
19754 shrext_cmds=".so"
19755 postinstall_cmds=
19756 postuninstall_cmds=
19757 finish_cmds=
19758 finish_eval=
19759 shlibpath_var=
19760 shlibpath_overrides_runpath=unknown
19761 version_type=none
19762 dynamic_linker="$host_os ld.so"
19763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19764 need_lib_prefix=unknown
19765 hardcode_into_libs=no
19767 # when you set need_version to no, make sure it does not cause -set_version
19768 # flags to be left without arguments
19769 need_version=unknown
19771 case $host_os in
19772 aix3*)
19773 version_type=linux
19774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19775 shlibpath_var=LIBPATH
19777 # AIX 3 has no versioning support, so we append a major version to the name.
19778 soname_spec='${libname}${release}${shared_ext}$major'
19781 aix[4-9]*)
19782 version_type=linux
19783 need_lib_prefix=no
19784 need_version=no
19785 hardcode_into_libs=yes
19786 if test "$host_cpu" = ia64; then
19787 # AIX 5 supports IA64
19788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19789 shlibpath_var=LD_LIBRARY_PATH
19790 else
19791 # With GCC up to 2.95.x, collect2 would create an import file
19792 # for dependence libraries. The import file would start with
19793 # the line `#! .'. This would cause the generated library to
19794 # depend on `.', always an invalid library. This was fixed in
19795 # development snapshots of GCC prior to 3.0.
19796 case $host_os in
19797 aix4 | aix4.[01] | aix4.[01].*)
19798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19799 echo ' yes '
19800 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19802 else
19803 can_build_shared=no
19806 esac
19807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19808 # soname into executable. Probably we can add versioning support to
19809 # collect2, so additional links can be useful in future.
19810 if test "$aix_use_runtimelinking" = yes; then
19811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19812 # instead of lib<name>.a to let people know that these are not
19813 # typical AIX shared libraries.
19814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19815 else
19816 # We preserve .a as extension for shared libraries through AIX4.2
19817 # and later when we are not doing run time linking.
19818 library_names_spec='${libname}${release}.a $libname.a'
19819 soname_spec='${libname}${release}${shared_ext}$major'
19821 shlibpath_var=LIBPATH
19825 amigaos*)
19826 case $host_cpu in
19827 powerpc)
19828 # Since July 2007 AmigaOS4 officially supports .so libraries.
19829 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19832 m68k)
19833 library_names_spec='$libname.ixlibrary $libname.a'
19834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19835 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'
19837 esac
19840 beos*)
19841 library_names_spec='${libname}${shared_ext}'
19842 dynamic_linker="$host_os ld.so"
19843 shlibpath_var=LIBRARY_PATH
19846 bsdi[45]*)
19847 version_type=linux
19848 need_version=no
19849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19850 soname_spec='${libname}${release}${shared_ext}$major'
19851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19852 shlibpath_var=LD_LIBRARY_PATH
19853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19855 # the default ld.so.conf also contains /usr/contrib/lib and
19856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19857 # libtool to hard-code these into programs
19860 cygwin* | mingw* | pw32* | cegcc*)
19861 version_type=windows
19862 shrext_cmds=".dll"
19863 need_version=no
19864 need_lib_prefix=no
19866 case $GCC,$host_os in
19867 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19868 library_names_spec='$libname.dll.a'
19869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19870 postinstall_cmds='base_file=`basename \${file}`~
19871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19872 dldir=$destdir/`dirname \$dlpath`~
19873 test -d \$dldir || mkdir -p \$dldir~
19874 $install_prog $dir/$dlname \$dldir/$dlname~
19875 chmod a+x \$dldir/$dlname~
19876 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19877 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19880 dlpath=$dir/\$dldll~
19881 $RM \$dlpath'
19882 shlibpath_overrides_runpath=yes
19884 case $host_os in
19885 cygwin*)
19886 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19887 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19890 mingw* | cegcc*)
19891 # MinGW DLLs use traditional 'lib' prefix
19892 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19894 pw32*)
19895 # pw32 DLLs use 'pw' prefix rather than 'lib'
19896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19898 esac
19902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19904 esac
19905 dynamic_linker='Win32 ld.exe'
19906 # FIXME: first we should search . and the directory the executable is in
19907 shlibpath_var=PATH
19910 darwin* | rhapsody*)
19911 dynamic_linker="$host_os dyld"
19912 version_type=darwin
19913 need_lib_prefix=no
19914 need_version=no
19915 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19916 soname_spec='${libname}${release}${major}$shared_ext'
19917 shlibpath_overrides_runpath=yes
19918 shlibpath_var=DYLD_LIBRARY_PATH
19919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19924 dgux*)
19925 version_type=linux
19926 need_lib_prefix=no
19927 need_version=no
19928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19929 soname_spec='${libname}${release}${shared_ext}$major'
19930 shlibpath_var=LD_LIBRARY_PATH
19933 freebsd1*)
19934 dynamic_linker=no
19937 freebsd* | dragonfly*)
19938 # DragonFly does not have aout. When/if they implement a new
19939 # versioning mechanism, adjust this.
19940 if test -x /usr/bin/objformat; then
19941 objformat=`/usr/bin/objformat`
19942 else
19943 case $host_os in
19944 freebsd[123]*) objformat=aout ;;
19945 *) objformat=elf ;;
19946 esac
19948 version_type=freebsd-$objformat
19949 case $version_type in
19950 freebsd-elf*)
19951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19952 need_version=no
19953 need_lib_prefix=no
19955 freebsd-*)
19956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19957 need_version=yes
19959 esac
19960 shlibpath_var=LD_LIBRARY_PATH
19961 case $host_os in
19962 freebsd2*)
19963 shlibpath_overrides_runpath=yes
19965 freebsd3.[01]* | freebsdelf3.[01]*)
19966 shlibpath_overrides_runpath=yes
19967 hardcode_into_libs=yes
19969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19971 shlibpath_overrides_runpath=no
19972 hardcode_into_libs=yes
19974 *) # from 4.6 on, and DragonFly
19975 shlibpath_overrides_runpath=yes
19976 hardcode_into_libs=yes
19978 esac
19981 gnu*)
19982 version_type=linux
19983 need_lib_prefix=no
19984 need_version=no
19985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19986 soname_spec='${libname}${release}${shared_ext}$major'
19987 shlibpath_var=LD_LIBRARY_PATH
19988 hardcode_into_libs=yes
19991 haiku*)
19992 version_type=linux
19993 need_lib_prefix=no
19994 need_version=no
19995 dynamic_linker="$host_os runtime_loader"
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19998 shlibpath_var=LIBRARY_PATH
19999 shlibpath_overrides_runpath=yes
20000 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20001 hardcode_into_libs=yes
20004 hpux9* | hpux10* | hpux11*)
20005 # Give a soname corresponding to the major version so that dld.sl refuses to
20006 # link against other versions.
20007 version_type=sunos
20008 need_lib_prefix=no
20009 need_version=no
20010 case $host_cpu in
20011 ia64*)
20012 shrext_cmds='.so'
20013 hardcode_into_libs=yes
20014 dynamic_linker="$host_os dld.so"
20015 shlibpath_var=LD_LIBRARY_PATH
20016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018 soname_spec='${libname}${release}${shared_ext}$major'
20019 if test "X$HPUX_IA64_MODE" = X32; then
20020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20021 else
20022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20026 hppa*64*)
20027 shrext_cmds='.sl'
20028 hardcode_into_libs=yes
20029 dynamic_linker="$host_os dld.sl"
20030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033 soname_spec='${libname}${release}${shared_ext}$major'
20034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20038 shrext_cmds='.sl'
20039 dynamic_linker="$host_os dld.sl"
20040 shlibpath_var=SHLIB_PATH
20041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043 soname_spec='${libname}${release}${shared_ext}$major'
20045 esac
20046 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20047 postinstall_cmds='chmod 555 $lib'
20048 # or fails outright, so override atomically:
20049 install_override_mode=555
20052 interix[3-9]*)
20053 version_type=linux
20054 need_lib_prefix=no
20055 need_version=no
20056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20057 soname_spec='${libname}${release}${shared_ext}$major'
20058 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20059 shlibpath_var=LD_LIBRARY_PATH
20060 shlibpath_overrides_runpath=no
20061 hardcode_into_libs=yes
20064 irix5* | irix6* | nonstopux*)
20065 case $host_os in
20066 nonstopux*) version_type=nonstopux ;;
20068 if test "$lt_cv_prog_gnu_ld" = yes; then
20069 version_type=linux
20070 else
20071 version_type=irix
20072 fi ;;
20073 esac
20074 need_lib_prefix=no
20075 need_version=no
20076 soname_spec='${libname}${release}${shared_ext}$major'
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20078 case $host_os in
20079 irix5* | nonstopux*)
20080 libsuff= shlibsuff=
20083 case $LD in # libtool.m4 will add one of these switches to LD
20084 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20085 libsuff= shlibsuff= libmagic=32-bit;;
20086 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20087 libsuff=32 shlibsuff=N32 libmagic=N32;;
20088 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20089 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20090 *) libsuff= shlibsuff= libmagic=never-match;;
20091 esac
20093 esac
20094 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20095 shlibpath_overrides_runpath=no
20096 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20097 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20098 hardcode_into_libs=yes
20101 # No shared lib support for Linux oldld, aout, or coff.
20102 linux*oldld* | linux*aout* | linux*coff*)
20103 dynamic_linker=no
20106 # This must be Linux ELF.
20107 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20108 version_type=linux
20109 need_lib_prefix=no
20110 need_version=no
20111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20112 soname_spec='${libname}${release}${shared_ext}$major'
20113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20114 shlibpath_var=LD_LIBRARY_PATH
20115 shlibpath_overrides_runpath=no
20117 # Some binutils ld are patched to set DT_RUNPATH
20118 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20119 $as_echo_n "(cached) " >&6
20120 else
20121 lt_cv_shlibpath_overrides_runpath=no
20122 save_LDFLAGS=$LDFLAGS
20123 save_libdir=$libdir
20124 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20125 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h. */
20130 main ()
20134 return 0;
20136 _ACEOF
20137 if ac_fn_cxx_try_link "$LINENO"; then :
20138 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20139 lt_cv_shlibpath_overrides_runpath=yes
20142 rm -f core conftest.err conftest.$ac_objext \
20143 conftest$ac_exeext conftest.$ac_ext
20144 LDFLAGS=$save_LDFLAGS
20145 libdir=$save_libdir
20149 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20151 # This implies no fast_install, which is unacceptable.
20152 # Some rework will be needed to allow for fast_install
20153 # before this can be enabled.
20154 hardcode_into_libs=yes
20156 # Append ld.so.conf contents to the search path
20157 if test -f /etc/ld.so.conf; then
20158 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' ' '`
20159 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20162 # We used to test for /lib/ld.so.1 and disable shared libraries on
20163 # powerpc, because MkLinux only supported shared libraries with the
20164 # GNU dynamic linker. Since this was broken with cross compilers,
20165 # most powerpc-linux boxes support dynamic linking these days and
20166 # people can always --disable-shared, the test was removed, and we
20167 # assume the GNU/Linux dynamic linker is in use.
20168 dynamic_linker='GNU/Linux ld.so'
20171 netbsd*)
20172 version_type=sunos
20173 need_lib_prefix=no
20174 need_version=no
20175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20178 dynamic_linker='NetBSD (a.out) ld.so'
20179 else
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20181 soname_spec='${libname}${release}${shared_ext}$major'
20182 dynamic_linker='NetBSD ld.elf_so'
20184 shlibpath_var=LD_LIBRARY_PATH
20185 shlibpath_overrides_runpath=yes
20186 hardcode_into_libs=yes
20189 newsos6)
20190 version_type=linux
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20192 shlibpath_var=LD_LIBRARY_PATH
20193 shlibpath_overrides_runpath=yes
20196 *nto* | *qnx*)
20197 version_type=qnx
20198 need_lib_prefix=no
20199 need_version=no
20200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20201 soname_spec='${libname}${release}${shared_ext}$major'
20202 shlibpath_var=LD_LIBRARY_PATH
20203 shlibpath_overrides_runpath=no
20204 hardcode_into_libs=yes
20205 dynamic_linker='ldqnx.so'
20208 openbsd*)
20209 version_type=sunos
20210 sys_lib_dlsearch_path_spec="/usr/lib"
20211 need_lib_prefix=no
20212 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20213 case $host_os in
20214 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20215 *) need_version=no ;;
20216 esac
20217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20219 shlibpath_var=LD_LIBRARY_PATH
20220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20221 case $host_os in
20222 openbsd2.[89] | openbsd2.[89].*)
20223 shlibpath_overrides_runpath=no
20226 shlibpath_overrides_runpath=yes
20228 esac
20229 else
20230 shlibpath_overrides_runpath=yes
20234 os2*)
20235 libname_spec='$name'
20236 shrext_cmds=".dll"
20237 need_lib_prefix=no
20238 library_names_spec='$libname${shared_ext} $libname.a'
20239 dynamic_linker='OS/2 ld.exe'
20240 shlibpath_var=LIBPATH
20243 osf3* | osf4* | osf5*)
20244 version_type=osf
20245 need_lib_prefix=no
20246 need_version=no
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20254 rdos*)
20255 dynamic_linker=no
20258 solaris*)
20259 version_type=linux
20260 need_lib_prefix=no
20261 need_version=no
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 shlibpath_overrides_runpath=yes
20266 hardcode_into_libs=yes
20267 # ldd complains unless libraries are executable
20268 postinstall_cmds='chmod +x $lib'
20271 sunos4*)
20272 version_type=sunos
20273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20275 shlibpath_var=LD_LIBRARY_PATH
20276 shlibpath_overrides_runpath=yes
20277 if test "$with_gnu_ld" = yes; then
20278 need_lib_prefix=no
20280 need_version=yes
20283 sysv4 | sysv4.3*)
20284 version_type=linux
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 shlibpath_var=LD_LIBRARY_PATH
20288 case $host_vendor in
20289 sni)
20290 shlibpath_overrides_runpath=no
20291 need_lib_prefix=no
20292 runpath_var=LD_RUN_PATH
20294 siemens)
20295 need_lib_prefix=no
20297 motorola)
20298 need_lib_prefix=no
20299 need_version=no
20300 shlibpath_overrides_runpath=no
20301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20303 esac
20306 sysv4*MP*)
20307 if test -d /usr/nec ;then
20308 version_type=linux
20309 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20310 soname_spec='$libname${shared_ext}.$major'
20311 shlibpath_var=LD_LIBRARY_PATH
20315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20316 version_type=freebsd-elf
20317 need_lib_prefix=no
20318 need_version=no
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20320 soname_spec='${libname}${release}${shared_ext}$major'
20321 shlibpath_var=LD_LIBRARY_PATH
20322 shlibpath_overrides_runpath=yes
20323 hardcode_into_libs=yes
20324 if test "$with_gnu_ld" = yes; then
20325 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20326 else
20327 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20328 case $host_os in
20329 sco3.2v5*)
20330 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20332 esac
20334 sys_lib_dlsearch_path_spec='/usr/lib'
20337 tpf*)
20338 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20339 version_type=linux
20340 need_lib_prefix=no
20341 need_version=no
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343 shlibpath_var=LD_LIBRARY_PATH
20344 shlibpath_overrides_runpath=no
20345 hardcode_into_libs=yes
20348 uts4*)
20349 version_type=linux
20350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20351 soname_spec='${libname}${release}${shared_ext}$major'
20352 shlibpath_var=LD_LIBRARY_PATH
20356 dynamic_linker=no
20358 esac
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20360 $as_echo "$dynamic_linker" >&6; }
20361 test "$dynamic_linker" = no && can_build_shared=no
20363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20364 if test "$GCC" = yes; then
20365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20368 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20369 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20371 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20372 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20413 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20414 hardcode_action_CXX=
20415 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20416 test -n "$runpath_var_CXX" ||
20417 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20419 # We can hardcode non-existent directories.
20420 if test "$hardcode_direct_CXX" != no &&
20421 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20422 # have to relink, otherwise we might link with an installed library
20423 # when we should be linking with a yet-to-be-installed one
20424 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20425 test "$hardcode_minus_L_CXX" != no; then
20426 # Linking always hardcodes the temporary library directory.
20427 hardcode_action_CXX=relink
20428 else
20429 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20430 hardcode_action_CXX=immediate
20432 else
20433 # We cannot hardcode anything, or else we can only hardcode existing
20434 # directories.
20435 hardcode_action_CXX=unsupported
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20438 $as_echo "$hardcode_action_CXX" >&6; }
20440 if test "$hardcode_action_CXX" = relink ||
20441 test "$inherit_rpath_CXX" = yes; then
20442 # Fast installation is not supported
20443 enable_fast_install=no
20444 elif test "$shlibpath_overrides_runpath" = yes ||
20445 test "$enable_shared" = no; then
20446 # Fast installation is not necessary
20447 enable_fast_install=needless
20456 fi # test -n "$compiler"
20458 CC=$lt_save_CC
20459 LDCXX=$LD
20460 LD=$lt_save_LD
20461 GCC=$lt_save_GCC
20462 with_gnu_ld=$lt_save_with_gnu_ld
20463 lt_cv_path_LDCXX=$lt_cv_path_LD
20464 lt_cv_path_LD=$lt_save_path_LD
20465 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20466 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20467 fi # test "$_lt_caught_CXX_error" != yes
20469 ac_ext=c
20470 ac_cpp='$CPP $CPPFLAGS'
20471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20490 # Only expand once:
20496 # Identify the assembler which will work hand-in-glove with the newly
20497 # built GCC, so that we can examine its features. This is the assembler
20498 # which will be driven by the driver program.
20500 # If build != host, and we aren't building gas in-tree, we identify a
20501 # build->target assembler and hope that it will have the same features
20502 # as the host->target assembler we'll be using.
20503 gcc_cv_gas_major_version=
20504 gcc_cv_gas_minor_version=
20505 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20507 if test "${gcc_cv_as+set}" = set; then :
20509 else
20511 if test -x "$DEFAULT_ASSEMBLER"; then
20512 gcc_cv_as="$DEFAULT_ASSEMBLER"
20513 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20514 && test -f ../gas/Makefile \
20515 && test x$build = x$host; then
20516 gcc_cv_as=../gas/as-new$build_exeext
20517 elif test -x as$build_exeext; then
20518 # Build using assembler in the current directory.
20519 gcc_cv_as=./as$build_exeext
20520 elif test -x $AS_FOR_TARGET; then
20521 gcc_cv_as="$AS_FOR_TARGET"
20522 else
20523 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20524 set dummy $AS_FOR_TARGET; ac_word=$2
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20526 $as_echo_n "checking for $ac_word... " >&6; }
20527 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20528 $as_echo_n "(cached) " >&6
20529 else
20530 case $gcc_cv_as in
20531 [\\/]* | ?:[\\/]*)
20532 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20536 for as_dir in $PATH
20538 IFS=$as_save_IFS
20539 test -z "$as_dir" && as_dir=.
20540 for ac_exec_ext in '' $ac_executable_extensions; do
20541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20542 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20544 break 2
20546 done
20547 done
20548 IFS=$as_save_IFS
20551 esac
20553 gcc_cv_as=$ac_cv_path_gcc_cv_as
20554 if test -n "$gcc_cv_as"; then
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20556 $as_echo "$gcc_cv_as" >&6; }
20557 else
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20559 $as_echo "no" >&6; }
20566 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20568 case "$ORIGINAL_AS_FOR_TARGET" in
20569 ./as | ./as$build_exeext) ;;
20570 *) ac_config_files="$ac_config_files as:exec-tool.in"
20572 esac
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20575 $as_echo_n "checking what assembler to use... " >&6; }
20576 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20577 # Single tree build which includes gas. We want to prefer it
20578 # over whatever linker top-level may have detected, since
20579 # we'll use what we're building after installation anyway.
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20581 $as_echo "newly built gas" >&6; }
20582 in_tree_gas=yes
20583 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20584 for f in $gcc_cv_as_bfd_srcdir/configure \
20585 $gcc_cv_as_gas_srcdir/configure \
20586 $gcc_cv_as_gas_srcdir/configure.in \
20587 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20588 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20589 if test x$gcc_cv_gas_version != x; then
20590 break
20592 done
20593 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20594 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20595 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20596 case $gcc_cv_gas_patch_version in
20597 "") gcc_cv_gas_patch_version="0" ;;
20598 esac
20599 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20600 + $gcc_cv_gas_minor_version \) \* 1000 \
20601 + $gcc_cv_gas_patch_version`
20603 in_tree_gas_is_elf=no
20604 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20605 || (grep 'obj_format = multi' ../gas/Makefile \
20606 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20607 then
20608 in_tree_gas_is_elf=yes
20610 else
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20612 $as_echo "$gcc_cv_as" >&6; }
20613 in_tree_gas=no
20616 # Identify the linker which will work hand-in-glove with the newly
20617 # built GCC, so that we can examine its features. This is the linker
20618 # which will be driven by the driver program.
20620 # If build != host, and we aren't building gas in-tree, we identify a
20621 # build->target linker and hope that it will have the same features
20622 # as the host->target linker we'll be using.
20623 gcc_cv_gld_major_version=
20624 gcc_cv_gld_minor_version=
20625 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20626 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20628 if test "${gcc_cv_ld+set}" = set; then :
20630 else
20632 if test -x "$DEFAULT_LINKER"; then
20633 gcc_cv_ld="$DEFAULT_LINKER"
20634 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20635 && test -f ../ld/Makefile \
20636 && test x$build = x$host; then
20637 gcc_cv_ld=../ld/ld-new$build_exeext
20638 elif test -x collect-ld$build_exeext; then
20639 # Build using linker in the current directory.
20640 gcc_cv_ld=./collect-ld$build_exeext
20641 elif test -x $LD_FOR_TARGET; then
20642 gcc_cv_ld="$LD_FOR_TARGET"
20643 else
20644 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20645 set dummy $LD_FOR_TARGET; ac_word=$2
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20647 $as_echo_n "checking for $ac_word... " >&6; }
20648 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20649 $as_echo_n "(cached) " >&6
20650 else
20651 case $gcc_cv_ld in
20652 [\\/]* | ?:[\\/]*)
20653 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20657 for as_dir in $PATH
20659 IFS=$as_save_IFS
20660 test -z "$as_dir" && as_dir=.
20661 for ac_exec_ext in '' $ac_executable_extensions; do
20662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20663 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20665 break 2
20667 done
20668 done
20669 IFS=$as_save_IFS
20672 esac
20674 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20675 if test -n "$gcc_cv_ld"; then
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20677 $as_echo "$gcc_cv_ld" >&6; }
20678 else
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20680 $as_echo "no" >&6; }
20687 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20688 PLUGIN_LD=`basename $gcc_cv_ld`
20690 # Check whether --with-plugin-ld was given.
20691 if test "${with_plugin_ld+set}" = set; then :
20692 withval=$with_plugin_ld; if test x"$withval" != x; then
20693 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20694 PLUGIN_LD="$withval"
20700 cat >>confdefs.h <<_ACEOF
20701 #define PLUGIN_LD "$PLUGIN_LD"
20702 _ACEOF
20705 # Check to see if we are using gold instead of ld
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20707 $as_echo_n "checking whether we are using gold... " >&6; }
20708 ld_is_gold=no
20709 if test x$gcc_cv_ld != x; then
20710 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20711 | grep "GNU gold" > /dev/null; then
20712 ld_is_gold=yes
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20716 $as_echo "$ld_is_gold" >&6; }
20718 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20720 case "$ORIGINAL_LD_FOR_TARGET" in
20721 ./collect-ld | ./collect-ld$build_exeext) ;;
20722 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20724 esac
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20727 $as_echo_n "checking what linker to use... " >&6; }
20728 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20729 # Single tree build which includes ld. We want to prefer it
20730 # over whatever linker top-level may have detected, since
20731 # we'll use what we're building after installation anyway.
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20733 $as_echo "newly built ld" >&6; }
20734 in_tree_ld=yes
20735 in_tree_ld_is_elf=no
20736 if (grep 'EMUL = .*elf' ../ld/Makefile \
20737 || grep 'EMUL = .*linux' ../ld/Makefile \
20738 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20739 in_tree_ld_is_elf=yes
20741 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
20743 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20744 if test x$gcc_cv_gld_version != x; then
20745 break
20747 done
20748 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20749 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20750 else
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20752 $as_echo "$gcc_cv_ld" >&6; }
20753 in_tree_ld=no
20756 # Figure out what nm we will be using.
20757 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20758 if test "${gcc_cv_nm+set}" = set; then :
20760 else
20762 if test -f $gcc_cv_binutils_srcdir/configure.in \
20763 && test -f ../binutils/Makefile \
20764 && test x$build = x$host; then
20765 gcc_cv_nm=../binutils/nm-new$build_exeext
20766 elif test -x nm$build_exeext; then
20767 gcc_cv_nm=./nm$build_exeext
20768 elif test -x $NM_FOR_TARGET; then
20769 gcc_cv_nm="$NM_FOR_TARGET"
20770 else
20771 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20772 set dummy $NM_FOR_TARGET; ac_word=$2
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20774 $as_echo_n "checking for $ac_word... " >&6; }
20775 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20776 $as_echo_n "(cached) " >&6
20777 else
20778 case $gcc_cv_nm in
20779 [\\/]* | ?:[\\/]*)
20780 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20784 for as_dir in $PATH
20786 IFS=$as_save_IFS
20787 test -z "$as_dir" && as_dir=.
20788 for ac_exec_ext in '' $ac_executable_extensions; do
20789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20790 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20792 break 2
20794 done
20795 done
20796 IFS=$as_save_IFS
20799 esac
20801 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20802 if test -n "$gcc_cv_nm"; then
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20804 $as_echo "$gcc_cv_nm" >&6; }
20805 else
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20807 $as_echo "no" >&6; }
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20815 $as_echo_n "checking what nm to use... " >&6; }
20816 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20817 # Single tree build which includes binutils.
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20819 $as_echo "newly built nm" >&6; }
20820 in_tree_nm=yes
20821 else
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20823 $as_echo "$gcc_cv_nm" >&6; }
20824 in_tree_nm=no
20827 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20829 case "$ORIGINAL_NM_FOR_TARGET" in
20830 ./nm | ./nm$build_exeext) ;;
20831 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20833 esac
20836 # Figure out what objdump we will be using.
20837 if test "${gcc_cv_objdump+set}" = set; then :
20839 else
20841 if test -f $gcc_cv_binutils_srcdir/configure.in \
20842 && test -f ../binutils/Makefile \
20843 && test x$build = x$host; then
20844 # Single tree build which includes binutils.
20845 gcc_cv_objdump=../binutils/objdump$build_exeext
20846 elif test -x objdump$build_exeext; then
20847 gcc_cv_objdump=./objdump$build_exeext
20848 elif test -x $OBJDUMP_FOR_TARGET; then
20849 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20850 else
20851 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20852 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20854 $as_echo_n "checking for $ac_word... " >&6; }
20855 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20856 $as_echo_n "(cached) " >&6
20857 else
20858 case $gcc_cv_objdump in
20859 [\\/]* | ?:[\\/]*)
20860 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20864 for as_dir in $PATH
20866 IFS=$as_save_IFS
20867 test -z "$as_dir" && as_dir=.
20868 for ac_exec_ext in '' $ac_executable_extensions; do
20869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20870 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20872 break 2
20874 done
20875 done
20876 IFS=$as_save_IFS
20879 esac
20881 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20882 if test -n "$gcc_cv_objdump"; then
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20884 $as_echo "$gcc_cv_objdump" >&6; }
20885 else
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20887 $as_echo "no" >&6; }
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20895 $as_echo_n "checking what objdump to use... " >&6; }
20896 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20897 # Single tree build which includes binutils.
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20899 $as_echo "newly built objdump" >&6; }
20900 elif test x$gcc_cv_objdump = x; then
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20902 $as_echo "not found" >&6; }
20903 else
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20905 $as_echo "$gcc_cv_objdump" >&6; }
20908 # Figure out what readelf we will be using.
20909 if test "${gcc_cv_readelf+set}" = set; then :
20911 else
20913 if test -f $gcc_cv_binutils_srcdir/configure.in \
20914 && test -f ../binutils/Makefile \
20915 && test x$build = x$host; then
20916 # Single tree build which includes binutils.
20917 gcc_cv_readelf=../binutils/readelf$build_exeext
20918 elif test -x readelf$build_exeext; then
20919 gcc_cv_readelf=./readelf$build_exeext
20920 else
20921 # Extract the first word of "readelf", so it can be a program name with args.
20922 set dummy readelf; ac_word=$2
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20924 $as_echo_n "checking for $ac_word... " >&6; }
20925 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20926 $as_echo_n "(cached) " >&6
20927 else
20928 case $gcc_cv_readelf in
20929 [\\/]* | ?:[\\/]*)
20930 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20934 for as_dir in $PATH
20936 IFS=$as_save_IFS
20937 test -z "$as_dir" && as_dir=.
20938 for ac_exec_ext in '' $ac_executable_extensions; do
20939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20940 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20942 break 2
20944 done
20945 done
20946 IFS=$as_save_IFS
20949 esac
20951 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20952 if test -n "$gcc_cv_readelf"; then
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20954 $as_echo "$gcc_cv_readelf" >&6; }
20955 else
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20957 $as_echo "no" >&6; }
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20965 $as_echo_n "checking what readelf to use... " >&6; }
20966 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20967 # Single tree build which includes binutils.
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20969 $as_echo "newly built readelf" >&6; }
20970 elif test x$gcc_cv_readelf = x; then
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20972 $as_echo "not found" >&6; }
20973 else
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20975 $as_echo "$gcc_cv_readelf" >&6; }
20978 # Figure out what assembler alignment features are present.
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20980 $as_echo_n "checking assembler flags... " >&6; }
20981 if test "${gcc_cv_as_flags+set}" = set; then :
20982 $as_echo_n "(cached) " >&6
20983 else
20984 case "$target" in
20985 i[34567]86-*-linux*)
20986 gcc_cv_as_flags="--32"
20989 gcc_cv_as_flags=" "
20991 esac
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20994 $as_echo "$gcc_cv_as_flags" >&6; }
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20997 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20998 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20999 $as_echo_n "(cached) " >&6
21000 else
21001 gcc_cv_as_balign_and_p2align=no
21002 if test $in_tree_gas = yes; then
21003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21004 then gcc_cv_as_balign_and_p2align=yes
21006 elif test x$gcc_cv_as != x; then
21007 echo '.balign 4
21008 .p2align 2' > conftest.s
21009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21014 test $ac_status = 0; }; }
21015 then
21016 gcc_cv_as_balign_and_p2align=yes
21017 else
21018 echo "configure: failed program was" >&5
21019 cat conftest.s >&5
21021 rm -f conftest.o conftest.s
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21025 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21026 if test $gcc_cv_as_balign_and_p2align = yes; then
21028 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21033 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21034 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21035 $as_echo_n "(cached) " >&6
21036 else
21037 gcc_cv_as_max_skip_p2align=no
21038 if test $in_tree_gas = yes; then
21039 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21040 then gcc_cv_as_max_skip_p2align=yes
21042 elif test x$gcc_cv_as != x; then
21043 echo '.p2align 4,,7' > conftest.s
21044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21046 (eval $ac_try) 2>&5
21047 ac_status=$?
21048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21049 test $ac_status = 0; }; }
21050 then
21051 gcc_cv_as_max_skip_p2align=yes
21052 else
21053 echo "configure: failed program was" >&5
21054 cat conftest.s >&5
21056 rm -f conftest.o conftest.s
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21060 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21061 if test $gcc_cv_as_max_skip_p2align = yes; then
21063 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21068 $as_echo_n "checking assembler for .literal16... " >&6; }
21069 if test "${gcc_cv_as_literal16+set}" = set; then :
21070 $as_echo_n "(cached) " >&6
21071 else
21072 gcc_cv_as_literal16=no
21073 if test $in_tree_gas = yes; then
21074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21075 then gcc_cv_as_literal16=yes
21077 elif test x$gcc_cv_as != x; then
21078 echo '.literal16' > conftest.s
21079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21084 test $ac_status = 0; }; }
21085 then
21086 gcc_cv_as_literal16=yes
21087 else
21088 echo "configure: failed program was" >&5
21089 cat conftest.s >&5
21091 rm -f conftest.o conftest.s
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21095 $as_echo "$gcc_cv_as_literal16" >&6; }
21096 if test $gcc_cv_as_literal16 = yes; then
21098 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21103 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21104 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21105 $as_echo_n "(cached) " >&6
21106 else
21107 gcc_cv_as_subsection_m1=no
21108 if test $in_tree_gas = yes; then
21109 if test $in_tree_gas_is_elf = yes \
21110 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21111 then gcc_cv_as_subsection_m1=yes
21113 elif test x$gcc_cv_as != x; then
21114 echo 'conftest_label1: .word 0
21115 .subsection -1
21116 conftest_label2: .word 0
21117 .previous' > conftest.s
21118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21120 (eval $ac_try) 2>&5
21121 ac_status=$?
21122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21123 test $ac_status = 0; }; }
21124 then
21125 if test x$gcc_cv_nm != x; then
21126 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21127 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21128 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21129 then :
21130 else gcc_cv_as_subsection_m1=yes
21132 rm -f conftest.nm1 conftest.nm2
21134 else
21135 echo "configure: failed program was" >&5
21136 cat conftest.s >&5
21138 rm -f conftest.o conftest.s
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21142 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21143 if test $gcc_cv_as_subsection_m1 = yes; then
21145 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21150 $as_echo_n "checking assembler for .weak... " >&6; }
21151 if test "${gcc_cv_as_weak+set}" = set; then :
21152 $as_echo_n "(cached) " >&6
21153 else
21154 gcc_cv_as_weak=no
21155 if test $in_tree_gas = yes; then
21156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21157 then gcc_cv_as_weak=yes
21159 elif test x$gcc_cv_as != x; then
21160 echo ' .weak foobar' > conftest.s
21161 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21163 (eval $ac_try) 2>&5
21164 ac_status=$?
21165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21166 test $ac_status = 0; }; }
21167 then
21168 gcc_cv_as_weak=yes
21169 else
21170 echo "configure: failed program was" >&5
21171 cat conftest.s >&5
21173 rm -f conftest.o conftest.s
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21177 $as_echo "$gcc_cv_as_weak" >&6; }
21178 if test $gcc_cv_as_weak = yes; then
21180 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21185 $as_echo_n "checking assembler for .weakref... " >&6; }
21186 if test "${gcc_cv_as_weakref+set}" = set; then :
21187 $as_echo_n "(cached) " >&6
21188 else
21189 gcc_cv_as_weakref=no
21190 if test $in_tree_gas = yes; then
21191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21192 then gcc_cv_as_weakref=yes
21194 elif test x$gcc_cv_as != x; then
21195 echo ' .weakref foobar, barfnot' > conftest.s
21196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21198 (eval $ac_try) 2>&5
21199 ac_status=$?
21200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21201 test $ac_status = 0; }; }
21202 then
21203 gcc_cv_as_weakref=yes
21204 else
21205 echo "configure: failed program was" >&5
21206 cat conftest.s >&5
21208 rm -f conftest.o conftest.s
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21212 $as_echo "$gcc_cv_as_weakref" >&6; }
21213 if test $gcc_cv_as_weakref = yes; then
21215 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21220 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21221 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21222 $as_echo_n "(cached) " >&6
21223 else
21224 gcc_cv_as_nsubspa_comdat=no
21225 if test $in_tree_gas = yes; then
21226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21227 then gcc_cv_as_nsubspa_comdat=yes
21229 elif test x$gcc_cv_as != x; then
21230 echo ' .SPACE $TEXT$
21231 .NSUBSPA $CODE$,COMDAT' > conftest.s
21232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21234 (eval $ac_try) 2>&5
21235 ac_status=$?
21236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21237 test $ac_status = 0; }; }
21238 then
21239 gcc_cv_as_nsubspa_comdat=yes
21240 else
21241 echo "configure: failed program was" >&5
21242 cat conftest.s >&5
21244 rm -f conftest.o conftest.s
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21248 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21249 if test $gcc_cv_as_nsubspa_comdat = yes; then
21251 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21255 # .hidden needs to be supported in both the assembler and the linker,
21256 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21257 # This is irritatingly difficult to feature test for; we have to check the
21258 # date string after the version number. If we've got an in-tree
21259 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21260 # to be safe.
21261 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21263 $as_echo_n "checking assembler for .hidden... " >&6; }
21264 if test "${gcc_cv_as_hidden+set}" = set; then :
21265 $as_echo_n "(cached) " >&6
21266 else
21267 gcc_cv_as_hidden=no
21268 if test $in_tree_gas = yes; then
21269 if test $in_tree_gas_is_elf = yes \
21270 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21271 then gcc_cv_as_hidden=yes
21273 elif test x$gcc_cv_as != x; then
21274 echo ' .hidden foobar
21275 foobar:' > conftest.s
21276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21281 test $ac_status = 0; }; }
21282 then
21284 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21285 # STV_HIDDEN, so disable .hidden support if so.
21286 case "${target}" in
21287 i?86-*-solaris2*)
21288 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21289 cat > conftest.s <<EOF
21290 .globl hidden
21291 .hidden hidden
21292 hidden:
21293 .globl default
21294 .set default,hidden
21296 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21297 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21298 grep '\.hidden default' > /dev/null; then
21299 gcc_cv_as_hidden=no
21300 else
21301 gcc_cv_as_hidden=yes
21303 else
21304 # Assume bug is present if objdump is missing.
21305 gcc_cv_as_hidden=no
21309 gcc_cv_as_hidden=yes
21311 esac
21312 else
21313 echo "configure: failed program was" >&5
21314 cat conftest.s >&5
21316 rm -f conftest.o conftest.s
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21320 $as_echo "$gcc_cv_as_hidden" >&6; }
21323 if test $in_tree_ld != yes ; then
21324 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21325 if test x"$ld_is_gold" = xyes; then
21326 gcc_cv_ld_hidden=yes
21327 elif echo "$ld_ver" | grep GNU > /dev/null; then
21328 ld_vers=`echo $ld_ver | sed -n \
21329 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21330 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'`
21331 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21332 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21333 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21334 else
21335 case "${target}" in
21336 *-*-solaris2*)
21338 # Solaris 2 ld -V output looks like this for a regular version:
21340 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21342 # but test versions add stuff at the end:
21344 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21346 ld_ver=`$gcc_cv_ld -V 2>&1`
21347 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21348 ld_vers=`echo $ld_ver | sed -n \
21349 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21350 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21351 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21354 esac
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21359 $as_echo_n "checking linker for .hidden support... " >&6; }
21360 if test "${gcc_cv_ld_hidden+set}" = set; then :
21361 $as_echo_n "(cached) " >&6
21362 else
21363 if test $in_tree_ld = yes ; then
21364 gcc_cv_ld_hidden=no
21365 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 \
21366 && test $in_tree_ld_is_elf = yes; then
21367 gcc_cv_ld_hidden=yes
21369 else
21370 gcc_cv_ld_hidden=yes
21371 if echo "$ld_ver" | grep GNU > /dev/null; then
21372 if test 0"$ld_date" -lt 20020404; then
21373 if test -n "$ld_date"; then
21374 # If there was date string, but was earlier than 2002-04-04, fail
21375 gcc_cv_ld_hidden=no
21376 elif test -z "$ld_vers"; then
21377 # If there was no date string nor ld version number, something is wrong
21378 gcc_cv_ld_hidden=no
21379 else
21380 test -z "$ld_vers_patch" && ld_vers_patch=0
21381 if test "$ld_vers_major" -lt 2; then
21382 gcc_cv_ld_hidden=no
21383 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21384 gcc_cv_ld_hidden="no"
21385 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21386 gcc_cv_ld_hidden=no
21390 else
21391 case "${target}" in
21392 hppa64*-*-hpux* | ia64*-*-hpux*)
21393 gcc_cv_ld_hidden=yes
21395 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21396 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21397 # .symbolic was only added in Solaris 9 12/02.
21398 gcc_cv_ld_hidden=yes
21401 gcc_cv_ld_hidden=no
21403 esac
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21408 $as_echo "$gcc_cv_ld_hidden" >&6; }
21409 libgcc_visibility=no
21412 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21413 libgcc_visibility=yes
21415 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21420 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21421 gcc_cv_ld_ro_rw_mix=unknown
21422 if test $in_tree_ld = yes ; then
21423 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 \
21424 && test $in_tree_ld_is_elf = yes; then
21425 gcc_cv_ld_ro_rw_mix=read-write
21427 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21428 echo '.section myfoosect, "a"' > conftest1.s
21429 echo '.section myfoosect, "aw"' > conftest2.s
21430 echo '.byte 1' >> conftest2.s
21431 echo '.section myfoosect, "a"' > conftest3.s
21432 echo '.byte 0' >> conftest3.s
21433 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21434 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21435 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21436 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21437 conftest2.o conftest3.o > /dev/null 2>&1; then
21438 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21439 | sed -e '/myfoosect/!d' -e N`
21440 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21441 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21442 gcc_cv_ld_ro_rw_mix=read-only
21443 else
21444 gcc_cv_ld_ro_rw_mix=read-write
21448 rm -f conftest.* conftest[123].*
21450 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21452 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21456 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21458 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21460 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21461 if test "${gcc_cv_as_leb128+set}" = set; then :
21462 $as_echo_n "(cached) " >&6
21463 else
21464 gcc_cv_as_leb128=no
21465 if test $in_tree_gas = yes; then
21466 if test $in_tree_gas_is_elf = yes \
21467 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21468 then gcc_cv_as_leb128=yes
21470 elif test x$gcc_cv_as != x; then
21471 echo ' .data
21472 .uleb128 L2 - L1
21474 .uleb128 1280
21475 .sleb128 -1010
21476 L2:' > conftest.s
21477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21479 (eval $ac_try) 2>&5
21480 ac_status=$?
21481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21482 test $ac_status = 0; }; }
21483 then
21484 # GAS versions before 2.11 do not support uleb128,
21485 # despite appearing to.
21486 # ??? There exists an elf-specific test that will crash
21487 # the assembler. Perhaps it's better to figure out whether
21488 # arbitrary sections are supported and try the test.
21489 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21490 if echo "$as_ver" | grep GNU > /dev/null; then
21491 as_vers=`echo $as_ver | sed -n \
21492 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21493 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21494 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21495 if test $as_major -eq 2 && test $as_minor -lt 11
21496 then :
21497 else gcc_cv_as_leb128=yes
21500 else
21501 echo "configure: failed program was" >&5
21502 cat conftest.s >&5
21504 rm -f conftest.o conftest.s
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21508 $as_echo "$gcc_cv_as_leb128" >&6; }
21509 if test $gcc_cv_as_leb128 = yes; then
21511 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21515 # Check if we have assembler support for unwind directives.
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21517 $as_echo_n "checking assembler for cfi directives... " >&6; }
21518 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21519 $as_echo_n "(cached) " >&6
21520 else
21521 gcc_cv_as_cfi_directive=no
21522 if test x$gcc_cv_as != x; then
21523 echo ' .text
21524 .cfi_startproc
21525 .cfi_offset 0, 0
21526 .cfi_same_value 1
21527 .cfi_def_cfa 1, 2
21528 .cfi_escape 1, 2, 3, 4, 5
21529 .cfi_endproc' > conftest.s
21530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21532 (eval $ac_try) 2>&5
21533 ac_status=$?
21534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21535 test $ac_status = 0; }; }
21536 then
21537 case "$target" in
21538 *-*-solaris*)
21539 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21540 # read-only and read-write sections, we need to make sure that the
21541 # assembler used emits read-write .eh_frame sections.
21542 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21543 if test "x$gcc_cv_objdump" != x; then
21544 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21545 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21546 gcc_cv_as_cfi_directive=no
21547 else
21548 case "$target" in
21549 i?86-*-solaris2.1[0-9]*)
21550 # On Solaris/x86, make sure that GCC and gas agree on using
21551 # read-only .eh_frame sections for 64-bit.
21552 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21553 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21554 sed -e /.eh_frame/!d -e N | \
21555 grep READONLY > /dev/null; then
21556 gcc_cv_as_cfi_directive=yes
21557 else
21558 gcc_cv_as_cfi_directive=no
21562 gcc_cv_as_cfi_directive=yes
21564 esac
21566 else
21567 # no objdump, err on the side of caution
21568 gcc_cv_as_cfi_directive=no
21570 else
21571 gcc_cv_as_cfi_directive=yes
21574 *-*-*)
21575 gcc_cv_as_cfi_directive=yes
21577 esac
21578 else
21579 echo "configure: failed program was" >&5
21580 cat conftest.s >&5
21582 rm -f conftest.o conftest.s
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21586 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21588 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21590 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21591 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21592 $as_echo_n "(cached) " >&6
21593 else
21594 gcc_cv_as_cfi_advance_working=no
21595 if test x$gcc_cv_as != x; then
21596 echo ' .text
21597 .cfi_startproc
21598 .cfi_adjust_cfa_offset 64
21599 .skip 75040, 0
21600 .cfi_adjust_cfa_offset 128
21601 .cfi_endproc' > conftest.s
21602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21604 (eval $ac_try) 2>&5
21605 ac_status=$?
21606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21607 test $ac_status = 0; }; }
21608 then
21610 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21611 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21612 gcc_cv_as_cfi_advance_working=yes
21615 else
21616 echo "configure: failed program was" >&5
21617 cat conftest.s >&5
21619 rm -f conftest.o conftest.s
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21623 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21625 else
21626 # no readelf, err on the side of caution
21627 gcc_cv_as_cfi_advance_working=no
21630 cat >>confdefs.h <<_ACEOF
21631 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21632 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21633 _ACEOF
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21637 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21638 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21639 $as_echo_n "(cached) " >&6
21640 else
21641 gcc_cv_as_cfi_personality_directive=no
21642 if test x$gcc_cv_as != x; then
21643 echo ' .text
21644 .cfi_startproc
21645 .cfi_personality 0, symbol
21646 .cfi_endproc' > conftest.s
21647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21649 (eval $ac_try) 2>&5
21650 ac_status=$?
21651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21652 test $ac_status = 0; }; }
21653 then
21654 gcc_cv_as_cfi_personality_directive=yes
21655 else
21656 echo "configure: failed program was" >&5
21657 cat conftest.s >&5
21659 rm -f conftest.o conftest.s
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21663 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21666 cat >>confdefs.h <<_ACEOF
21667 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21668 then echo 1; else echo 0; fi`
21669 _ACEOF
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21673 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21674 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21675 $as_echo_n "(cached) " >&6
21676 else
21677 gcc_cv_as_cfi_sections_directive=no
21678 if test x$gcc_cv_as != x; then
21679 echo ' .text
21680 .cfi_sections .debug_frame, .eh_frame
21681 .cfi_startproc
21682 .cfi_endproc' > conftest.s
21683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21685 (eval $ac_try) 2>&5
21686 ac_status=$?
21687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21688 test $ac_status = 0; }; }
21689 then
21690 gcc_cv_as_cfi_sections_directive=yes
21691 else
21692 echo "configure: failed program was" >&5
21693 cat conftest.s >&5
21695 rm -f conftest.o conftest.s
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21699 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21702 cat >>confdefs.h <<_ACEOF
21703 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21704 then echo 1; else echo 0; fi`
21705 _ACEOF
21708 # GAS versions up to and including 2.11.0 may mis-optimize
21709 # .eh_frame data.
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21711 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21712 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21713 $as_echo_n "(cached) " >&6
21714 else
21715 gcc_cv_as_eh_frame=no
21716 if test $in_tree_gas = yes; then
21717 if test $in_tree_gas_is_elf = yes \
21718 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21719 then gcc_cv_as_eh_frame=yes
21721 elif test x$gcc_cv_as != x; then
21722 echo ' .text
21723 .LFB1:
21724 .4byte 0
21725 .L1:
21726 .4byte 0
21727 .LFE1:
21728 .section .eh_frame,"aw",@progbits
21729 __FRAME_BEGIN__:
21730 .4byte .LECIE1-.LSCIE1
21731 .LSCIE1:
21732 .4byte 0x0
21733 .byte 0x1
21734 .ascii "z\0"
21735 .byte 0x1
21736 .byte 0x78
21737 .byte 0x1a
21738 .byte 0x0
21739 .byte 0x4
21740 .4byte 1
21741 .p2align 1
21742 .LECIE1:
21743 .LSFDE1:
21744 .4byte .LEFDE1-.LASFDE1
21745 .LASFDE1:
21746 .4byte .LASFDE1-__FRAME_BEGIN__
21747 .4byte .LFB1
21748 .4byte .LFE1-.LFB1
21749 .byte 0x4
21750 .4byte .LFE1-.LFB1
21751 .byte 0x4
21752 .4byte .L1-.LFB1
21753 .LEFDE1:' > conftest.s
21754 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21759 test $ac_status = 0; }; }
21760 then
21761 cat > conftest.lit <<EOF
21762 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21763 0010 01000000 12000000 18000000 00000000 ................
21764 0020 08000000 04080000 0044 .........D
21766 cat > conftest.big <<EOF
21767 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21768 0010 00000001 00000012 00000018 00000000 ................
21769 0020 00000008 04000000 0844 .........D
21771 # If the assembler didn't choke, and we can objdump,
21772 # and we got the correct data, then succeed.
21773 # The text in the here-document typically retains its unix-style line
21774 # endings, while the output of objdump will use host line endings.
21775 # Therefore, use diff -b for the comparisons.
21776 if test x$gcc_cv_objdump != x \
21777 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21778 | tail -3 > conftest.got \
21779 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21780 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21781 then
21782 gcc_cv_as_eh_frame=yes
21783 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21785 (eval $ac_try) 2>&5
21786 ac_status=$?
21787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21788 test $ac_status = 0; }; }; then
21789 gcc_cv_as_eh_frame=buggy
21790 else
21791 # Uh oh, what do we do now?
21792 gcc_cv_as_eh_frame=no
21794 else
21795 echo "configure: failed program was" >&5
21796 cat conftest.s >&5
21798 rm -f conftest.o conftest.s
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21802 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21805 if test $gcc_cv_as_eh_frame = buggy; then
21807 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21812 $as_echo_n "checking assembler for section merging support... " >&6; }
21813 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21814 $as_echo_n "(cached) " >&6
21815 else
21816 gcc_cv_as_shf_merge=no
21817 if test $in_tree_gas = yes; then
21818 if test $in_tree_gas_is_elf = yes \
21819 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21820 then gcc_cv_as_shf_merge=yes
21822 elif test x$gcc_cv_as != x; then
21823 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21829 test $ac_status = 0; }; }
21830 then
21831 gcc_cv_as_shf_merge=yes
21832 else
21833 echo "configure: failed program was" >&5
21834 cat conftest.s >&5
21836 rm -f conftest.o conftest.s
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21840 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21842 if test $gcc_cv_as_shf_merge = no; then
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21844 $as_echo_n "checking assembler for section merging support... " >&6; }
21845 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21846 $as_echo_n "(cached) " >&6
21847 else
21848 gcc_cv_as_shf_merge=no
21849 if test $in_tree_gas = yes; then
21850 if test $in_tree_gas_is_elf = yes \
21851 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21852 then gcc_cv_as_shf_merge=yes
21854 elif test x$gcc_cv_as != x; then
21855 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21858 (eval $ac_try) 2>&5
21859 ac_status=$?
21860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21861 test $ac_status = 0; }; }
21862 then
21863 gcc_cv_as_shf_merge=yes
21864 else
21865 echo "configure: failed program was" >&5
21866 cat conftest.s >&5
21868 rm -f conftest.o conftest.s
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21872 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21876 cat >>confdefs.h <<_ACEOF
21877 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21878 _ACEOF
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21882 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21883 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21884 $as_echo_n "(cached) " >&6
21885 else
21886 gcc_cv_as_comdat_group=no
21887 if test $in_tree_gas = yes; then
21888 if test $in_tree_gas_is_elf = yes \
21889 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21890 then gcc_cv_as_comdat_group=yes
21892 elif test x$gcc_cv_as != x; then
21893 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21896 (eval $ac_try) 2>&5
21897 ac_status=$?
21898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21899 test $ac_status = 0; }; }
21900 then
21901 gcc_cv_as_comdat_group=yes
21902 else
21903 echo "configure: failed program was" >&5
21904 cat conftest.s >&5
21906 rm -f conftest.o conftest.s
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21910 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21912 if test $gcc_cv_as_comdat_group = yes; then
21913 gcc_cv_as_comdat_group_percent=no
21914 else
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21916 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21917 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21918 $as_echo_n "(cached) " >&6
21919 else
21920 gcc_cv_as_comdat_group_percent=no
21921 if test $in_tree_gas = yes; then
21922 if test $in_tree_gas_is_elf = yes \
21923 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21924 then gcc_cv_as_comdat_group_percent=yes
21926 elif test x$gcc_cv_as != x; then
21927 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21933 test $ac_status = 0; }; }
21934 then
21935 gcc_cv_as_comdat_group_percent=yes
21936 else
21937 echo "configure: failed program was" >&5
21938 cat conftest.s >&5
21940 rm -f conftest.o conftest.s
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21944 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21947 if test x"$ld_is_gold" = xyes; then
21948 comdat_group=yes
21949 elif test $in_tree_ld = yes ; then
21950 comdat_group=no
21951 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 \
21952 && test $in_tree_ld_is_elf = yes; then
21953 comdat_group=yes
21955 elif echo "$ld_ver" | grep GNU > /dev/null; then
21956 comdat_group=yes
21957 if test 0"$ld_date" -lt 20050308; then
21958 if test -n "$ld_date"; then
21959 # If there was date string, but was earlier than 2005-03-08, fail
21960 comdat_group=no
21961 elif test "$ld_vers_major" -lt 2; then
21962 comdat_group=no
21963 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21964 comdat_group=no
21967 else
21968 case "${target}" in
21969 *-*-solaris2.1[1-9]*)
21970 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21971 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21972 # version 1.688.
21974 # FIXME: Maybe need to refine later when COMDAT group support with
21975 # Sun as is implemented.
21976 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21977 comdat_group=yes
21978 else
21979 comdat_group=no
21983 # Assume linkers other than GNU ld don't support COMDAT group.
21984 comdat_group=no
21986 esac
21988 # Allow overriding the automatic COMDAT group tests above.
21989 # Check whether --enable-comdat was given.
21990 if test "${enable_comdat+set}" = set; then :
21991 enableval=$enable_comdat; comdat_group="$enable_comdat"
21994 if test $comdat_group = no; then
21995 gcc_cv_as_comdat_group=no
21996 gcc_cv_as_comdat_group_percent=no
21999 cat >>confdefs.h <<_ACEOF
22000 #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`
22001 _ACEOF
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22005 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22006 if test "${gcc_cv_as_discriminator+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22008 else
22009 gcc_cv_as_discriminator=no
22010 if test $in_tree_gas = yes; then
22011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22012 then gcc_cv_as_discriminator=yes
22014 elif test x$gcc_cv_as != x; then
22015 echo ' .text
22016 .file 1 "conf.c"
22017 .loc 1 1 0 discriminator 1' > conftest.s
22018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22020 (eval $ac_try) 2>&5
22021 ac_status=$?
22022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22023 test $ac_status = 0; }; }
22024 then
22025 gcc_cv_as_discriminator=yes
22026 else
22027 echo "configure: failed program was" >&5
22028 cat conftest.s >&5
22030 rm -f conftest.o conftest.s
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22034 $as_echo "$gcc_cv_as_discriminator" >&6; }
22035 if test $gcc_cv_as_discriminator = yes; then
22037 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22041 # Thread-local storage - the check is heavily parameterized.
22042 conftest_s=
22043 tls_first_major=
22044 tls_first_minor=
22045 tls_as_opt=
22046 case "$target" in
22047 alpha*-*-*)
22048 conftest_s='
22049 .section ".tdata","awT",@progbits
22050 foo: .long 25
22051 .text
22052 ldq $27,__tls_get_addr($29) !literal!1
22053 lda $16,foo($29) !tlsgd!1
22054 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22055 ldq $27,__tls_get_addr($29) !literal!2
22056 lda $16,foo($29) !tlsldm!2
22057 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22058 ldq $1,foo($29) !gotdtprel
22059 ldah $2,foo($29) !dtprelhi
22060 lda $3,foo($2) !dtprello
22061 lda $4,foo($29) !dtprel
22062 ldq $1,foo($29) !gottprel
22063 ldah $2,foo($29) !tprelhi
22064 lda $3,foo($2) !tprello
22065 lda $4,foo($29) !tprel'
22066 tls_first_major=2
22067 tls_first_minor=13
22068 tls_as_opt=--fatal-warnings
22070 cris-*-*|crisv32-*-*)
22071 conftest_s='
22072 .section ".tdata","awT",@progbits
22073 x: .long 25
22074 .text
22075 move.d x:IE,$r10
22076 nop'
22077 tls_first_major=2
22078 tls_first_minor=20
22079 tls_as_opt=--fatal-warnings
22081 frv*-*-*)
22082 conftest_s='
22083 .section ".tdata","awT",@progbits
22084 x: .long 25
22085 .text
22086 call #gettlsoff(x)'
22087 tls_first_major=2
22088 tls_first_minor=14
22090 hppa*-*-linux*)
22091 conftest_s='
22092 t1: .reg %r20
22093 t2: .reg %r21
22094 gp: .reg %r19
22095 .section ".tdata","awT",@progbits
22096 foo: .long 25
22097 .text
22098 .align 4
22099 addil LT%foo-$tls_gdidx$,gp
22100 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22101 b __tls_get_addr
22103 addil LT%foo-$tls_ldidx$,gp
22104 b __tls_get_addr
22105 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22106 addil LR%foo-$tls_dtpoff$,%ret0
22107 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22108 mfctl %cr27,%t1
22109 addil LT%foo-$tls_ieoff$,gp
22110 ldw RT%foo-$tls_ieoff$(%r1),%t2
22111 add %t1,%t2,%t3
22112 mfctl %cr27,%t1
22113 addil LR%foo-$tls_leoff$,%t1
22114 ldo RR%foo-$tls_leoff$(%r1),%t2'
22115 tls_first_major=2
22116 tls_first_minor=15
22117 tls_as_opt=--fatal-warnings
22119 arm*-*-*)
22120 conftest_s='
22121 .section ".tdata","awT",%progbits
22122 foo: .long 25
22123 .text
22124 .word foo(gottpoff)
22125 .word foo(tpoff)
22126 .word foo(tlsgd)
22127 .word foo(tlsldm)
22128 .word foo(tlsldo)'
22129 tls_first_major=2
22130 tls_first_minor=17
22132 i[34567]86-*-*)
22133 case "$target" in
22134 i[34567]86-*-solaris2.*)
22135 on_solaris=yes
22136 tga_func=___tls_get_addr
22139 on_solaris=no
22141 esac
22142 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22143 conftest_s='
22144 .section .tdata,"awt",@progbits'
22145 tls_first_major=0
22146 tls_first_minor=0
22148 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22150 else
22151 conftest_s='
22152 .section ".tdata","awT",@progbits'
22153 tls_first_major=2
22154 tls_first_minor=14
22155 tls_as_opt="--fatal-warnings"
22157 conftest_s="$conftest_s
22158 foo: .long 25
22159 .text
22160 movl %gs:0, %eax
22161 leal foo@tlsgd(,%ebx,1), %eax
22162 leal foo@tlsldm(%ebx), %eax
22163 leal foo@dtpoff(%eax), %edx
22164 movl foo@gottpoff(%ebx), %eax
22165 subl foo@gottpoff(%ebx), %eax
22166 addl foo@gotntpoff(%ebx), %eax
22167 movl foo@indntpoff, %eax
22168 movl \$foo@tpoff, %eax
22169 subl \$foo@tpoff, %eax
22170 leal foo@ntpoff(%ecx), %eax"
22172 x86_64-*-*)
22173 conftest_s='
22174 .section ".tdata","awT",@progbits
22175 foo: .long 25
22176 .text
22177 movq %fs:0, %rax
22178 leaq foo@TLSGD(%rip), %rdi
22179 leaq foo@TLSLD(%rip), %rdi
22180 leaq foo@DTPOFF(%rax), %rdx
22181 movq foo@GOTTPOFF(%rip), %rax
22182 movq $foo@TPOFF, %rax'
22183 tls_first_major=2
22184 tls_first_minor=14
22185 tls_as_opt=--fatal-warnings
22187 ia64-*-*)
22188 conftest_s='
22189 .section ".tdata","awT",@progbits
22190 foo: data8 25
22191 .text
22192 addl r16 = @ltoff(@dtpmod(foo#)), gp
22193 addl r17 = @ltoff(@dtprel(foo#)), gp
22194 addl r18 = @ltoff(@tprel(foo#)), gp
22195 addl r19 = @dtprel(foo#), gp
22196 adds r21 = @dtprel(foo#), r13
22197 movl r23 = @dtprel(foo#)
22198 addl r20 = @tprel(foo#), gp
22199 adds r22 = @tprel(foo#), r13
22200 movl r24 = @tprel(foo#)'
22201 tls_first_major=2
22202 tls_first_minor=13
22203 tls_as_opt=--fatal-warnings
22205 mips*-*-*)
22206 conftest_s='
22207 .section .tdata,"awT",@progbits
22209 .word 2
22210 .text
22211 addiu $4, $28, %tlsgd(x)
22212 addiu $4, $28, %tlsldm(x)
22213 lui $4, %dtprel_hi(x)
22214 addiu $4, $4, %dtprel_lo(x)
22215 lw $4, %gottprel(x)($28)
22216 lui $4, %tprel_hi(x)
22217 addiu $4, $4, %tprel_lo(x)'
22218 tls_first_major=2
22219 tls_first_minor=16
22220 tls_as_opt='-32 --fatal-warnings'
22222 m68k-*-*)
22223 conftest_s='
22224 .section .tdata,"awT",@progbits
22226 .word 2
22227 .text
22228 foo:
22229 move.l x@TLSGD(%a5),%a0
22230 move.l x@TLSLDM(%a5),%a0
22231 move.l x@TLSLDO(%a5),%a0
22232 move.l x@TLSIE(%a5),%a0
22233 move.l x@TLSLE(%a5),%a0'
22234 tls_first_major=2
22235 tls_first_minor=19
22236 tls_as_opt='--fatal-warnings'
22238 powerpc-*-*)
22239 conftest_s='
22240 .section ".tdata","awT",@progbits
22241 .align 2
22242 ld0: .space 4
22243 ld1: .space 4
22244 x1: .space 4
22245 x2: .space 4
22246 x3: .space 4
22247 .text
22248 addi 3,31,ld0@got@tlsgd
22249 bl __tls_get_addr
22250 addi 3,31,x1@got@tlsld
22251 bl __tls_get_addr
22252 addi 9,3,x1@dtprel
22253 addis 9,3,x2@dtprel@ha
22254 addi 9,9,x2@dtprel@l
22255 lwz 9,x3@got@tprel(31)
22256 add 9,9,x@tls
22257 addi 9,2,x1@tprel
22258 addis 9,2,x2@tprel@ha
22259 addi 9,9,x2@tprel@l'
22260 tls_first_major=2
22261 tls_first_minor=14
22262 tls_as_opt="-a32 --fatal-warnings"
22264 powerpc64-*-*)
22265 conftest_s='
22266 .section ".tdata","awT",@progbits
22267 .align 3
22268 ld0: .space 8
22269 ld1: .space 8
22270 x1: .space 8
22271 x2: .space 8
22272 x3: .space 8
22273 .text
22274 addi 3,2,ld0@got@tlsgd
22275 bl .__tls_get_addr
22277 addi 3,2,ld1@toc
22278 bl .__tls_get_addr
22280 addi 3,2,x1@got@tlsld
22281 bl .__tls_get_addr
22283 addi 9,3,x1@dtprel
22284 bl .__tls_get_addr
22286 addis 9,3,x2@dtprel@ha
22287 addi 9,9,x2@dtprel@l
22288 bl .__tls_get_addr
22290 ld 9,x3@got@dtprel(2)
22291 add 9,9,3
22292 bl .__tls_get_addr
22293 nop'
22294 tls_first_major=2
22295 tls_first_minor=14
22296 tls_as_opt="-a64 --fatal-warnings"
22298 s390-*-*)
22299 conftest_s='
22300 .section ".tdata","awT",@progbits
22301 foo: .long 25
22302 .text
22303 .long foo@TLSGD
22304 .long foo@TLSLDM
22305 .long foo@DTPOFF
22306 .long foo@NTPOFF
22307 .long foo@GOTNTPOFF
22308 .long foo@INDNTPOFF
22309 l %r1,foo@GOTNTPOFF(%r12)
22310 l %r1,0(%r1):tls_load:foo
22311 bas %r14,0(%r1,%r13):tls_gdcall:foo
22312 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22313 tls_first_major=2
22314 tls_first_minor=14
22315 tls_as_opt="-m31 --fatal-warnings"
22317 s390x-*-*)
22318 conftest_s='
22319 .section ".tdata","awT",@progbits
22320 foo: .long 25
22321 .text
22322 .quad foo@TLSGD
22323 .quad foo@TLSLDM
22324 .quad foo@DTPOFF
22325 .quad foo@NTPOFF
22326 .quad foo@GOTNTPOFF
22327 lg %r1,foo@GOTNTPOFF(%r12)
22328 larl %r1,foo@INDNTPOFF
22329 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22330 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22331 tls_first_major=2
22332 tls_first_minor=14
22333 tls_as_opt="-m64 -Aesame --fatal-warnings"
22335 sh-*-* | sh[34]-*-*)
22336 conftest_s='
22337 .section ".tdata","awT",@progbits
22338 foo: .long 25
22339 .text
22340 .long foo@TLSGD
22341 .long foo@TLSLDM
22342 .long foo@DTPOFF
22343 .long foo@GOTTPOFF
22344 .long foo@TPOFF'
22345 tls_first_major=2
22346 tls_first_minor=13
22347 tls_as_opt=--fatal-warnings
22349 sparc*-*-*)
22350 case "$target" in
22351 sparc*-sun-solaris2.*)
22352 on_solaris=yes
22353 tga_func=__tls_get_addr
22356 on_solaris=no
22358 esac
22359 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22360 conftest_s='
22361 .section ".tdata",#alloc,#write,#tls'
22362 tls_first_major=0
22363 tls_first_minor=0
22364 else
22365 conftest_s='
22366 .section ".tdata","awT",@progbits'
22367 tls_first_major=2
22368 tls_first_minor=14
22369 tls_as_opt="-32 --fatal-warnings"
22371 conftest_s="$conftest_s
22372 foo: .long 25
22373 .text
22374 sethi %tgd_hi22(foo), %o0
22375 add %o0, %tgd_lo10(foo), %o1
22376 add %l7, %o1, %o0, %tgd_add(foo)
22377 call __tls_get_addr, %tgd_call(foo)
22378 sethi %tldm_hi22(foo), %l1
22379 add %l1, %tldm_lo10(foo), %l2
22380 add %l7, %l2, %o0, %tldm_add(foo)
22381 call __tls_get_addr, %tldm_call(foo)
22382 sethi %tldo_hix22(foo), %l3
22383 xor %l3, %tldo_lox10(foo), %l4
22384 add %o0, %l4, %l5, %tldo_add(foo)
22385 sethi %tie_hi22(foo), %o3
22386 add %o3, %tie_lo10(foo), %o3
22387 ld [%l7 + %o3], %o2, %tie_ld(foo)
22388 add %g7, %o2, %o4, %tie_add(foo)
22389 sethi %tle_hix22(foo), %l1
22390 xor %l1, %tle_lox10(foo), %o5
22391 ld [%g7 + %o5], %o1"
22393 xtensa*-*-*)
22394 conftest_s='
22395 .section ".tdata","awT",@progbits
22396 foo: .long 25
22397 .text
22398 movi a8, foo@TLSFUNC
22399 movi a10, foo@TLSARG
22400 callx8.tls a8, foo@TLSCALL'
22401 tls_first_major=2
22402 tls_first_minor=19
22404 esac
22405 set_have_as_tls=no
22406 if test "x$enable_tls" = xno ; then
22407 : # TLS explicitly disabled.
22408 elif test "x$enable_tls" = xyes ; then
22409 set_have_as_tls=yes # TLS explicitly enabled.
22410 elif test -z "$tls_first_major"; then
22411 : # If we don't have a check, assume no support.
22412 else
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22414 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22415 if test "${gcc_cv_as_tls+set}" = set; then :
22416 $as_echo_n "(cached) " >&6
22417 else
22418 gcc_cv_as_tls=no
22419 if test $in_tree_gas = yes; then
22420 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22421 then gcc_cv_as_tls=yes
22423 elif test x$gcc_cv_as != x; then
22424 echo "$conftest_s" > conftest.s
22425 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22427 (eval $ac_try) 2>&5
22428 ac_status=$?
22429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22430 test $ac_status = 0; }; }
22431 then
22432 gcc_cv_as_tls=yes
22433 else
22434 echo "configure: failed program was" >&5
22435 cat conftest.s >&5
22437 rm -f conftest.o conftest.s
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22441 $as_echo "$gcc_cv_as_tls" >&6; }
22442 if test $gcc_cv_as_tls = yes; then
22443 set_have_as_tls=yes
22446 case "$target" in
22447 # TLS was introduced in the Solaris 9 FCS release and backported to
22448 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22449 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22450 # ld and GCC don't support any longer.
22451 *-*-solaris2.*)
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22453 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22454 ld_tls_support=no
22455 # Check ld and ld.so.1 TLS support.
22456 if echo "$ld_ver" | grep GNU > /dev/null; then
22457 # Assume all interesting versions of GNU ld have TLS support.
22458 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22459 ld_tls_support=yes
22460 else
22461 case "$target" in
22462 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22463 i?86-*-solaris2.8)
22464 min_tls_ld_vers_minor=280
22466 # Solaris 8/SPARC ld has TLS support since version 1.272.
22467 sparc*-*-solaris2.8)
22468 min_tls_ld_vers_minor=272
22470 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22471 i?86-*-solaris2.9)
22472 min_tls_ld_vers_minor=374
22474 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22475 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22476 min_tls_ld_vers_minor=343
22478 esac
22479 if test "$ls_vers_major" -gt 1 || \
22480 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22481 ld_tls_support=yes
22482 else
22483 set_have_as_tls=no
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22487 $as_echo "$ld_tls_support" >&6; }
22489 save_LIBS="$LIBS"
22490 save_LDFLAGS="$LDFLAGS"
22491 LIBS=
22492 LDFLAGS=
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22495 $as_echo_n "checking alternate thread library... " >&6; }
22496 case "$target" in
22497 # TLS support was backported to Solaris 8 patches, but only lives in
22498 # the alternate thread library which became the default in Solaris 9.
22499 # We want to always use that, irrespective of TLS support.
22500 *-*-solaris2.8)
22501 # Take multilib subdir into account. There's no spec to handle
22502 # this. The 64 symlink exists since Solaris 8.
22503 lwp_dir=/usr/lib/lwp
22504 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22505 LDFLAGS="-L$lwp_dir -R$lwp_dir"
22507 *-*-solaris2*)
22508 lwp_dir="none"
22509 lwp_spec=""
22511 esac
22512 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22514 cat >>confdefs.h <<_ACEOF
22515 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22516 _ACEOF
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22519 $as_echo "$lwp_dir" >&6; }
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22522 $as_echo_n "checking library containing $tga_func... " >&6; }
22523 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22524 # (32-bit x86) only lived in libthread, so check for that. Keep
22525 # set_have_as_tls if found, disable if not.
22526 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22528 $as_echo_n "checking for library containing $tga_func... " >&6; }
22529 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22530 $as_echo_n "(cached) " >&6
22531 else
22532 ac_func_search_save_LIBS=$LIBS
22533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22534 /* end confdefs.h. */
22536 /* Override any GCC internal prototype to avoid an error.
22537 Use char because int might match the return type of a GCC
22538 builtin and then its argument prototype would still apply. */
22539 #ifdef __cplusplus
22540 extern "C"
22541 #endif
22542 char $tga_func ();
22544 main ()
22546 return $tga_func ();
22548 return 0;
22550 _ACEOF
22551 for ac_lib in '' thread; do
22552 if test -z "$ac_lib"; then
22553 ac_res="none required"
22554 else
22555 ac_res=-l$ac_lib
22556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22558 if ac_fn_c_try_link "$LINENO"; then :
22559 eval "$as_ac_Search=\$ac_res"
22561 rm -f core conftest.err conftest.$ac_objext \
22562 conftest$ac_exeext
22563 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22564 break
22566 done
22567 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22569 else
22570 eval "$as_ac_Search=no"
22572 rm conftest.$ac_ext
22573 LIBS=$ac_func_search_save_LIBS
22575 eval ac_res=\$$as_ac_Search
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22577 $as_echo "$ac_res" >&6; }
22578 eval ac_res=\$$as_ac_Search
22579 if test "$ac_res" != no; then :
22580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22582 else
22583 set_have_as_tls=no
22586 # Clear LIBS if we cannot support TLS.
22587 if test $set_have_as_tls = no; then
22588 LIBS=
22590 # Always define LIB_TLS_SPEC, even without TLS support.
22592 cat >>confdefs.h <<_ACEOF
22593 #define LIB_TLS_SPEC "$LIBS"
22594 _ACEOF
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22597 $as_echo "$LIBS" >&6; }
22599 LIBS="$save_LIBS"
22600 LDFLAGS="$save_LDFLAGS"
22602 esac
22603 if test $set_have_as_tls = yes ; then
22605 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22609 # Target-specific assembler checks.
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22612 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22613 gcc_cv_ld_static_dynamic=no
22614 if test $in_tree_ld = yes ; then
22615 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
22616 gcc_cv_ld_static_dynamic=yes
22618 elif test x$gcc_cv_ld != x; then
22619 # Check if linker supports -Bstatic/-Bdynamic option
22620 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22621 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22622 gcc_cv_ld_static_dynamic=yes
22625 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22627 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22631 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22633 if test x"$demangler_in_ld" = xyes; then
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22635 $as_echo_n "checking linker --demangle support... " >&6; }
22636 gcc_cv_ld_demangle=no
22637 if test $in_tree_ld = yes; then
22638 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 \
22639 gcc_cv_ld_demangle=yes
22641 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22642 # Check if the GNU linker supports --demangle option
22643 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22644 gcc_cv_ld_demangle=yes
22647 if test x"$gcc_cv_ld_demangle" = xyes; then
22649 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22653 $as_echo "$gcc_cv_ld_demangle" >&6; }
22656 case "$target" in
22657 # All TARGET_ABI_OSF targets.
22658 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22660 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22661 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
22663 else
22664 gcc_cv_as_alpha_explicit_relocs=no
22665 if test $in_tree_gas = yes; then
22666 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22667 then gcc_cv_as_alpha_explicit_relocs=yes
22669 elif test x$gcc_cv_as != x; then
22670 echo ' .set nomacro
22671 .text
22672 extbl $3, $2, $3 !lituse_bytoff!1
22673 ldq $2, a($29) !literal!1
22674 ldq $4, b($29) !literal!2
22675 ldq_u $3, 0($2) !lituse_base!1
22676 ldq $27, f($29) !literal!5
22677 jsr $26, ($27), f !lituse_jsr!5
22678 ldah $29, 0($26) !gpdisp!3
22679 lda $0, c($29) !gprel
22680 ldah $1, d($29) !gprelhigh
22681 lda $1, d($1) !gprellow
22682 lda $29, 0($29) !gpdisp!3' > conftest.s
22683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22685 (eval $ac_try) 2>&5
22686 ac_status=$?
22687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22688 test $ac_status = 0; }; }
22689 then
22690 gcc_cv_as_alpha_explicit_relocs=yes
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_alpha_explicit_relocs" >&5
22699 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22700 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22702 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22706 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22707 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22708 $as_echo_n "(cached) " >&6
22709 else
22710 gcc_cv_as_alpha_jsrdirect_relocs=no
22711 if test $in_tree_gas = yes; then
22712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22713 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22715 elif test x$gcc_cv_as != x; then
22716 echo ' .set nomacro
22717 .text
22718 ldq $27, a($29) !literal!1
22719 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22722 (eval $ac_try) 2>&5
22723 ac_status=$?
22724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725 test $ac_status = 0; }; }
22726 then
22727 gcc_cv_as_alpha_jsrdirect_relocs=yes
22728 else
22729 echo "configure: failed program was" >&5
22730 cat conftest.s >&5
22732 rm -f conftest.o conftest.s
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22736 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22737 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22739 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22744 cris-*-*)
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22746 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22747 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22749 else
22750 gcc_cv_as_cris_no_mul_bug=no
22751 if test $in_tree_gas = yes; then
22752 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22753 then gcc_cv_as_cris_no_mul_bug=yes
22755 elif test x$gcc_cv_as != x; then
22756 echo '.text' > conftest.s
22757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; }
22763 then
22764 gcc_cv_as_cris_no_mul_bug=yes
22765 else
22766 echo "configure: failed program was" >&5
22767 cat conftest.s >&5
22769 rm -f conftest.o conftest.s
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22773 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22774 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22776 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22781 sparc*-*-*)
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22783 $as_echo_n "checking assembler for .register... " >&6; }
22784 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22785 $as_echo_n "(cached) " >&6
22786 else
22787 gcc_cv_as_sparc_register_op=no
22788 if test x$gcc_cv_as != x; then
22789 echo '.register %g2, #scratch' > conftest.s
22790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22792 (eval $ac_try) 2>&5
22793 ac_status=$?
22794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22795 test $ac_status = 0; }; }
22796 then
22797 gcc_cv_as_sparc_register_op=yes
22798 else
22799 echo "configure: failed program was" >&5
22800 cat conftest.s >&5
22802 rm -f conftest.o conftest.s
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22806 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22807 if test $gcc_cv_as_sparc_register_op = yes; then
22809 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22814 $as_echo_n "checking assembler for -relax option... " >&6; }
22815 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22816 $as_echo_n "(cached) " >&6
22817 else
22818 gcc_cv_as_sparc_relax=no
22819 if test x$gcc_cv_as != x; then
22820 echo '.text' > conftest.s
22821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22823 (eval $ac_try) 2>&5
22824 ac_status=$?
22825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22826 test $ac_status = 0; }; }
22827 then
22828 gcc_cv_as_sparc_relax=yes
22829 else
22830 echo "configure: failed program was" >&5
22831 cat conftest.s >&5
22833 rm -f conftest.o conftest.s
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22837 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22838 if test $gcc_cv_as_sparc_relax = yes; then
22840 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22845 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22846 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22847 $as_echo_n "(cached) " >&6
22848 else
22849 gcc_cv_as_sparc_gotdata_op=no
22850 if test x$gcc_cv_as != x; then
22851 echo '.text
22852 foo:
22854 bar:
22855 sethi %gdop_hix22(foo), %g1
22856 xor %g1, %gdop_lox10(foo), %g1
22857 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22860 (eval $ac_try) 2>&5
22861 ac_status=$?
22862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22863 test $ac_status = 0; }; }
22864 then
22865 if test x$gcc_cv_ld != x \
22866 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22867 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22868 if test x$gcc_cv_objdump != x; then
22869 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22870 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22871 gcc_cv_as_sparc_gotdata_op=no
22872 else
22873 gcc_cv_as_sparc_gotdata_op=yes
22876 else
22877 gcc_cv_as_sparc_gotdata_op=yes
22880 rm -f conftest
22881 else
22882 echo "configure: failed program was" >&5
22883 cat conftest.s >&5
22885 rm -f conftest.o conftest.s
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22889 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22890 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22892 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22897 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22898 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22899 $as_echo_n "(cached) " >&6
22900 else
22901 gcc_cv_as_sparc_ua_pcrel=no
22902 if test x$gcc_cv_as != x; then
22903 echo '.text
22904 foo:
22906 .data
22907 .align 4
22908 .byte 0
22909 .uaword %r_disp32(foo)' > conftest.s
22910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22912 (eval $ac_try) 2>&5
22913 ac_status=$?
22914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22915 test $ac_status = 0; }; }
22916 then
22917 if test x$gcc_cv_ld != x \
22918 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22919 gcc_cv_as_sparc_ua_pcrel=yes
22921 rm -f conftest
22922 else
22923 echo "configure: failed program was" >&5
22924 cat conftest.s >&5
22926 rm -f conftest.o conftest.s
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22930 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22931 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22933 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22937 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22938 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22939 $as_echo_n "(cached) " >&6
22940 else
22941 gcc_cv_as_sparc_ua_pcrel_hidden=no
22942 if test x$gcc_cv_as != x; then
22943 echo '.data
22944 .align 4
22945 .byte 0x31
22946 .uaword %r_disp32(foo)
22947 .byte 0x32, 0x33, 0x34
22948 .global foo
22949 .hidden foo
22950 foo:
22951 .skip 4' > conftest.s
22952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22954 (eval $ac_try) 2>&5
22955 ac_status=$?
22956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22957 test $ac_status = 0; }; }
22958 then
22959 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22960 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22961 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22962 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22963 if $gcc_cv_objdump -R conftest 2> /dev/null \
22964 | grep 'DISP32' > /dev/null 2>&1; then
22966 else
22967 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22970 rm -f conftest
22971 else
22972 echo "configure: failed program was" >&5
22973 cat conftest.s >&5
22975 rm -f conftest.o conftest.s
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22979 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22980 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22982 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22986 fi # unaligned pcrel relocs
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22989 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22990 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 gcc_cv_as_sparc_offsetable_lo10=no
22994 if test x$gcc_cv_as != x; then
22995 echo '.text
22996 or %g1, %lo(ab) + 12, %g1
22997 or %g1, %lo(ab + 12), %g1' > conftest.s
22998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23000 (eval $ac_try) 2>&5
23001 ac_status=$?
23002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23003 test $ac_status = 0; }; }
23004 then
23005 if test x$gcc_cv_objdump != x \
23006 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23007 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23008 gcc_cv_as_sparc_offsetable_lo10=yes
23010 else
23011 echo "configure: failed program was" >&5
23012 cat conftest.s >&5
23014 rm -f conftest.o conftest.s
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23018 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23019 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23021 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23026 i[34567]86-*-* | x86_64-*-*)
23027 case $target_os in
23028 cygwin*)
23029 # Full C++ conformance when using a shared libstdc++-v3 requires some
23030 # support from the Cygwin DLL, which in more recent versions exports
23031 # wrappers to aid in interposing and redirecting operators new, delete,
23032 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23033 # are configuring for a version of Cygwin that exports the wrappers.
23034 if test x$host = x$target; then
23035 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23036 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23037 gcc_ac_cygwin_dll_wrappers=yes
23038 else
23039 gcc_ac_cygwin_dll_wrappers=no
23042 else
23043 # Can't check presence of libc functions during cross-compile, so
23044 # we just have to assume we're building for an up-to-date target.
23045 gcc_ac_cygwin_dll_wrappers=yes
23048 cat >>confdefs.h <<_ACEOF
23049 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23050 _ACEOF
23052 esac
23053 case $target_os in
23054 cygwin* | pe | mingw32*)
23055 # Recent binutils allows the three-operand form of ".comm" on PE. This
23056 # definition is used unconditionally to initialise the default state of
23057 # the target option variable that governs usage of the feature.
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23059 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23060 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23061 $as_echo_n "(cached) " >&6
23062 else
23063 gcc_cv_as_comm_has_align=no
23064 if test $in_tree_gas = yes; then
23065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23066 then gcc_cv_as_comm_has_align=yes
23068 elif test x$gcc_cv_as != x; then
23069 echo '.comm foo,1,32' > conftest.s
23070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23072 (eval $ac_try) 2>&5
23073 ac_status=$?
23074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23075 test $ac_status = 0; }; }
23076 then
23077 gcc_cv_as_comm_has_align=yes
23078 else
23079 echo "configure: failed program was" >&5
23080 cat conftest.s >&5
23082 rm -f conftest.o conftest.s
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23086 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23089 cat >>confdefs.h <<_ACEOF
23090 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23091 _ACEOF
23093 # Used for DWARF 2 in PE
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23095 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23096 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23097 $as_echo_n "(cached) " >&6
23098 else
23099 gcc_cv_as_ix86_pe_secrel32=no
23100 if test $in_tree_gas = yes; then
23101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23102 then gcc_cv_as_ix86_pe_secrel32=yes
23104 elif test x$gcc_cv_as != x; then
23105 echo '.text
23106 foo: nop
23107 .data
23108 .secrel32 foo' > conftest.s
23109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23111 (eval $ac_try) 2>&5
23112 ac_status=$?
23113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23114 test $ac_status = 0; }; }
23115 then
23116 if test x$gcc_cv_ld != x \
23117 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23118 gcc_cv_as_ix86_pe_secrel32=yes
23120 rm -f conftest
23121 else
23122 echo "configure: failed program was" >&5
23123 cat conftest.s >&5
23125 rm -f conftest.o conftest.s
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23129 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23130 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23132 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23135 # Test if the assembler supports the extended form of the .section
23136 # directive that specifies section alignment. LTO support uses this,
23137 # but normally only after installation, so we warn but don't fail the
23138 # configure if LTO is enabled but the assembler does not support it.
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23140 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23141 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23142 $as_echo_n "(cached) " >&6
23143 else
23144 gcc_cv_as_section_has_align=no
23145 if test $in_tree_gas = yes; then
23146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23147 then gcc_cv_as_section_has_align=yes
23149 elif test x$gcc_cv_as != x; then
23150 echo '.section lto_test,"dr0"' > conftest.s
23151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23153 (eval $ac_try) 2>&5
23154 ac_status=$?
23155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23156 test $ac_status = 0; }; }
23157 then
23158 gcc_cv_as_section_has_align=yes
23159 else
23160 echo "configure: failed program was" >&5
23161 cat conftest.s >&5
23163 rm -f conftest.o conftest.s
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23167 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23169 if test x$gcc_cv_as_section_has_align != xyes; then
23170 case ",$enable_languages," in
23171 *,lto,*)
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
23173 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
23175 esac
23178 esac
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23181 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23182 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23183 $as_echo_n "(cached) " >&6
23184 else
23185 gcc_cv_as_ix86_filds=no
23186 if test x$gcc_cv_as != x; then
23187 echo 'filds mem; fists mem' > conftest.s
23188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23190 (eval $ac_try) 2>&5
23191 ac_status=$?
23192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23193 test $ac_status = 0; }; }
23194 then
23195 gcc_cv_as_ix86_filds=yes
23196 else
23197 echo "configure: failed program was" >&5
23198 cat conftest.s >&5
23200 rm -f conftest.o conftest.s
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23204 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23205 if test $gcc_cv_as_ix86_filds = yes; then
23207 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23212 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23213 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23214 $as_echo_n "(cached) " >&6
23215 else
23216 gcc_cv_as_ix86_fildq=no
23217 if test x$gcc_cv_as != x; then
23218 echo 'fildq mem; fistpq mem' > conftest.s
23219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23221 (eval $ac_try) 2>&5
23222 ac_status=$?
23223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23224 test $ac_status = 0; }; }
23225 then
23226 gcc_cv_as_ix86_fildq=yes
23227 else
23228 echo "configure: failed program was" >&5
23229 cat conftest.s >&5
23231 rm -f conftest.o conftest.s
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23235 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23236 if test $gcc_cv_as_ix86_fildq = yes; then
23238 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23243 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23244 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23245 $as_echo_n "(cached) " >&6
23246 else
23247 gcc_cv_as_ix86_cmov_sun_syntax=no
23248 if test x$gcc_cv_as != x; then
23249 echo 'cmovl.l %edx, %eax' > conftest.s
23250 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23252 (eval $ac_try) 2>&5
23253 ac_status=$?
23254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23255 test $ac_status = 0; }; }
23256 then
23257 gcc_cv_as_ix86_cmov_sun_syntax=yes
23258 else
23259 echo "configure: failed program was" >&5
23260 cat conftest.s >&5
23262 rm -f conftest.o conftest.s
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23266 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23267 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23269 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23274 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23275 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23276 $as_echo_n "(cached) " >&6
23277 else
23278 gcc_cv_as_ix86_ffreep=no
23279 if test x$gcc_cv_as != x; then
23280 echo 'ffreep %st(1)' > conftest.s
23281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23283 (eval $ac_try) 2>&5
23284 ac_status=$?
23285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23286 test $ac_status = 0; }; }
23287 then
23288 gcc_cv_as_ix86_ffreep=yes
23289 else
23290 echo "configure: failed program was" >&5
23291 cat conftest.s >&5
23293 rm -f conftest.o conftest.s
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23297 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23298 if test $gcc_cv_as_ix86_ffreep = yes; then
23300 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23305 $as_echo_n "checking assembler for .quad directive... " >&6; }
23306 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23307 $as_echo_n "(cached) " >&6
23308 else
23309 gcc_cv_as_ix86_quad=no
23310 if test x$gcc_cv_as != x; then
23311 echo '.quad 0' > conftest.s
23312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23314 (eval $ac_try) 2>&5
23315 ac_status=$?
23316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23317 test $ac_status = 0; }; }
23318 then
23319 gcc_cv_as_ix86_quad=yes
23320 else
23321 echo "configure: failed program was" >&5
23322 cat conftest.s >&5
23324 rm -f conftest.o conftest.s
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23328 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23329 if test $gcc_cv_as_ix86_quad = yes; then
23331 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23336 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23337 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23338 $as_echo_n "(cached) " >&6
23339 else
23340 gcc_cv_as_ix86_sahf=no
23341 if test x$gcc_cv_as != x; then
23342 echo '.code64
23343 sahf' > conftest.s
23344 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23346 (eval $ac_try) 2>&5
23347 ac_status=$?
23348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23349 test $ac_status = 0; }; }
23350 then
23351 gcc_cv_as_ix86_sahf=yes
23352 else
23353 echo "configure: failed program was" >&5
23354 cat conftest.s >&5
23356 rm -f conftest.o conftest.s
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23360 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23361 if test $gcc_cv_as_ix86_sahf = yes; then
23363 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23368 $as_echo_n "checking assembler for swap suffix... " >&6; }
23369 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23370 $as_echo_n "(cached) " >&6
23371 else
23372 gcc_cv_as_ix86_swap=no
23373 if test x$gcc_cv_as != x; then
23374 echo 'movl.s %esp, %ebp' > conftest.s
23375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23377 (eval $ac_try) 2>&5
23378 ac_status=$?
23379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23380 test $ac_status = 0; }; }
23381 then
23382 gcc_cv_as_ix86_swap=yes
23383 else
23384 echo "configure: failed program was" >&5
23385 cat conftest.s >&5
23387 rm -f conftest.o conftest.s
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23391 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23392 if test $gcc_cv_as_ix86_swap = yes; then
23394 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23399 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23400 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23401 $as_echo_n "(cached) " >&6
23402 else
23403 gcc_cv_as_ix86_diff_sect_delta=no
23404 if test x$gcc_cv_as != x; then
23405 echo '.section .rodata
23406 .L1:
23407 .long .L2-.L1
23408 .long .L3-.L1
23409 .text
23410 .L3: nop
23411 .L2: nop' > conftest.s
23412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23417 test $ac_status = 0; }; }
23418 then
23419 gcc_cv_as_ix86_diff_sect_delta=yes
23420 else
23421 echo "configure: failed program was" >&5
23422 cat conftest.s >&5
23424 rm -f conftest.o conftest.s
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23428 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23429 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23431 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23435 # These two are used unconditionally by i386.[ch]; it is to be defined
23436 # to 1 if the feature is present, 0 otherwise.
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23438 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23439 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23440 $as_echo_n "(cached) " >&6
23441 else
23442 gcc_cv_as_ix86_gotoff_in_data=no
23443 if test $in_tree_gas = yes; then
23444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23445 then gcc_cv_as_ix86_gotoff_in_data=yes
23447 elif test x$gcc_cv_as != x; then
23448 echo ' .text
23449 .L0:
23451 .data
23452 .long .L0@GOTOFF' > conftest.s
23453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23455 (eval $ac_try) 2>&5
23456 ac_status=$?
23457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23458 test $ac_status = 0; }; }
23459 then
23460 gcc_cv_as_ix86_gotoff_in_data=yes
23461 else
23462 echo "configure: failed program was" >&5
23463 cat conftest.s >&5
23465 rm -f conftest.o conftest.s
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23469 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23472 cat >>confdefs.h <<_ACEOF
23473 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23474 _ACEOF
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23478 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23479 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23480 $as_echo_n "(cached) " >&6
23481 else
23482 gcc_cv_as_ix86_rep_lock_prefix=no
23483 if test x$gcc_cv_as != x; then
23484 echo 'rep movsl
23485 lock addl %edi, (%eax,%esi)
23486 lock orl $0, (%esp)' > conftest.s
23487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23489 (eval $ac_try) 2>&5
23490 ac_status=$?
23491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23492 test $ac_status = 0; }; }
23493 then
23494 gcc_cv_as_ix86_rep_lock_prefix=yes
23495 else
23496 echo "configure: failed program was" >&5
23497 cat conftest.s >&5
23499 rm -f conftest.o conftest.s
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23503 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23504 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23506 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23512 ia64*-*-*)
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23514 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23515 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23516 $as_echo_n "(cached) " >&6
23517 else
23518 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23519 if test $in_tree_gas = yes; then
23520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23521 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23523 elif test x$gcc_cv_as != x; then
23524 echo ' .text
23525 addl r15 = @ltoffx(x#), gp
23527 ld8.mov r16 = [r15], x#' > conftest.s
23528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23530 (eval $ac_try) 2>&5
23531 ac_status=$?
23532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23533 test $ac_status = 0; }; }
23534 then
23535 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23536 else
23537 echo "configure: failed program was" >&5
23538 cat conftest.s >&5
23540 rm -f conftest.o conftest.s
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23544 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23545 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23547 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23553 powerpc*-*-*)
23554 case $target in
23555 *-*-aix*) conftest_s=' .machine "pwr5"
23556 .csect .text[PR]
23557 mfcr 3,128';;
23558 *-*-darwin*)
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23560 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23561 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23562 $as_echo_n "(cached) " >&6
23563 else
23564 gcc_cv_as_machine_directive=no
23565 if test x$gcc_cv_as != x; then
23566 echo ' .machine ppc7400' > conftest.s
23567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23569 (eval $ac_try) 2>&5
23570 ac_status=$?
23571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23572 test $ac_status = 0; }; }
23573 then
23574 gcc_cv_as_machine_directive=yes
23575 else
23576 echo "configure: failed program was" >&5
23577 cat conftest.s >&5
23579 rm -f conftest.o conftest.s
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23583 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23585 if test x$gcc_cv_as_machine_directive != xyes; then
23586 echo "*** This target requires an assembler supporting \".machine\"" >&2
23587 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23588 test x$build = x$target && exit 1
23590 conftest_s=' .text
23591 mfcr r3,128';;
23592 *) conftest_s=' .machine power4
23593 .text
23594 mfcr 3,128';;
23595 esac
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23598 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23599 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23600 $as_echo_n "(cached) " >&6
23601 else
23602 gcc_cv_as_powerpc_mfcrf=no
23603 if test $in_tree_gas = yes; then
23604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23605 then gcc_cv_as_powerpc_mfcrf=yes
23607 elif test x$gcc_cv_as != x; then
23608 echo "$conftest_s" > conftest.s
23609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23611 (eval $ac_try) 2>&5
23612 ac_status=$?
23613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23614 test $ac_status = 0; }; }
23615 then
23616 gcc_cv_as_powerpc_mfcrf=yes
23617 else
23618 echo "configure: failed program was" >&5
23619 cat conftest.s >&5
23621 rm -f conftest.o conftest.s
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23625 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23626 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23628 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23632 case $target in
23633 *-*-aix*) conftest_s=' .machine "pwr5"
23634 .csect .text[PR]
23635 popcntb 3,3';;
23636 *) conftest_s=' .machine power5
23637 .text
23638 popcntb 3,3';;
23639 esac
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23642 $as_echo_n "checking assembler for popcntb support... " >&6; }
23643 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23644 $as_echo_n "(cached) " >&6
23645 else
23646 gcc_cv_as_powerpc_popcntb=no
23647 if test $in_tree_gas = yes; then
23648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23649 then gcc_cv_as_powerpc_popcntb=yes
23651 elif test x$gcc_cv_as != x; then
23652 echo "$conftest_s" > conftest.s
23653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23655 (eval $ac_try) 2>&5
23656 ac_status=$?
23657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23658 test $ac_status = 0; }; }
23659 then
23660 gcc_cv_as_powerpc_popcntb=yes
23661 else
23662 echo "configure: failed program was" >&5
23663 cat conftest.s >&5
23665 rm -f conftest.o conftest.s
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23669 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23670 if test $gcc_cv_as_powerpc_popcntb = yes; then
23672 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23676 case $target in
23677 *-*-aix*) conftest_s=' .machine "pwr5x"
23678 .csect .text[PR]
23679 frin 1,1';;
23680 *) conftest_s=' .machine power5
23681 .text
23682 frin 1,1';;
23683 esac
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23686 $as_echo_n "checking assembler for fp round support... " >&6; }
23687 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23688 $as_echo_n "(cached) " >&6
23689 else
23690 gcc_cv_as_powerpc_fprnd=no
23691 if test $in_tree_gas = yes; then
23692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23693 then gcc_cv_as_powerpc_fprnd=yes
23695 elif test x$gcc_cv_as != x; then
23696 echo "$conftest_s" > conftest.s
23697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23699 (eval $ac_try) 2>&5
23700 ac_status=$?
23701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23702 test $ac_status = 0; }; }
23703 then
23704 gcc_cv_as_powerpc_fprnd=yes
23705 else
23706 echo "configure: failed program was" >&5
23707 cat conftest.s >&5
23709 rm -f conftest.o conftest.s
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23713 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23714 if test $gcc_cv_as_powerpc_fprnd = yes; then
23716 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23720 case $target in
23721 *-*-aix*) conftest_s=' .machine "pwr6"
23722 .csect .text[PR]
23723 mffgpr 1,3';;
23724 *) conftest_s=' .machine power6
23725 .text
23726 mffgpr 1,3';;
23727 esac
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23730 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23731 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23732 $as_echo_n "(cached) " >&6
23733 else
23734 gcc_cv_as_powerpc_mfpgpr=no
23735 if test $in_tree_gas = yes; then
23736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23737 then gcc_cv_as_powerpc_mfpgpr=yes
23739 elif test x$gcc_cv_as != x; then
23740 echo "$conftest_s" > conftest.s
23741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23743 (eval $ac_try) 2>&5
23744 ac_status=$?
23745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23746 test $ac_status = 0; }; }
23747 then
23748 gcc_cv_as_powerpc_mfpgpr=yes
23749 else
23750 echo "configure: failed program was" >&5
23751 cat conftest.s >&5
23753 rm -f conftest.o conftest.s
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23757 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23758 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23760 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23764 case $target in
23765 *-*-aix*) conftest_s=' .csect .text[PR]
23766 LCF..0:
23767 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23768 *-*-darwin*)
23769 conftest_s=' .text
23770 LCF0:
23771 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23772 *) conftest_s=' .text
23773 .LCF0:
23774 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23775 esac
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23778 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23779 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23780 $as_echo_n "(cached) " >&6
23781 else
23782 gcc_cv_as_powerpc_rel16=no
23783 if test $in_tree_gas = yes; then
23784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23785 then gcc_cv_as_powerpc_rel16=yes
23787 elif test x$gcc_cv_as != x; then
23788 echo "$conftest_s" > conftest.s
23789 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23791 (eval $ac_try) 2>&5
23792 ac_status=$?
23793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23794 test $ac_status = 0; }; }
23795 then
23796 gcc_cv_as_powerpc_rel16=yes
23797 else
23798 echo "configure: failed program was" >&5
23799 cat conftest.s >&5
23801 rm -f conftest.o conftest.s
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23805 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23806 if test $gcc_cv_as_powerpc_rel16 = yes; then
23808 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23812 case $target in
23813 *-*-aix*) conftest_s=' .machine "pwr6"
23814 .csect .text[PR]
23815 cmpb 3,4,5';;
23816 *) conftest_s=' .machine power6
23817 .text
23818 cmpb 3,4,5';;
23819 esac
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23822 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23823 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23824 $as_echo_n "(cached) " >&6
23825 else
23826 gcc_cv_as_powerpc_cmpb=no
23827 if test $in_tree_gas = yes; then
23828 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23829 then gcc_cv_as_powerpc_cmpb=yes
23831 elif test x$gcc_cv_as != x; then
23832 echo "$conftest_s" > conftest.s
23833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835 (eval $ac_try) 2>&5
23836 ac_status=$?
23837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838 test $ac_status = 0; }; }
23839 then
23840 gcc_cv_as_powerpc_cmpb=yes
23841 else
23842 echo "configure: failed program was" >&5
23843 cat conftest.s >&5
23845 rm -f conftest.o conftest.s
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23849 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23850 if test $gcc_cv_as_powerpc_cmpb = yes; then
23852 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23856 case $target in
23857 *-*-aix*) conftest_s=' .machine "pwr6"
23858 .csect .text[PR]
23859 dadd 1,2,3';;
23860 *) conftest_s=' .machine power6
23861 .text
23862 dadd 1,2,3';;
23863 esac
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23866 $as_echo_n "checking assembler for decimal float support... " >&6; }
23867 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23868 $as_echo_n "(cached) " >&6
23869 else
23870 gcc_cv_as_powerpc_dfp=no
23871 if test $in_tree_gas = yes; then
23872 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23873 then gcc_cv_as_powerpc_dfp=yes
23875 elif test x$gcc_cv_as != x; then
23876 echo "$conftest_s" > conftest.s
23877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23879 (eval $ac_try) 2>&5
23880 ac_status=$?
23881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23882 test $ac_status = 0; }; }
23883 then
23884 gcc_cv_as_powerpc_dfp=yes
23885 else
23886 echo "configure: failed program was" >&5
23887 cat conftest.s >&5
23889 rm -f conftest.o conftest.s
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23893 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23894 if test $gcc_cv_as_powerpc_dfp = yes; then
23896 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23900 case $target in
23901 *-*-aix*) conftest_s=' .machine "pwr7"
23902 .csect .text[PR]
23903 lxvd2x 1,2,3';;
23904 *) conftest_s=' .machine power7
23905 .text
23906 lxvd2x 1,2,3';;
23907 esac
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23910 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23911 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23912 $as_echo_n "(cached) " >&6
23913 else
23914 gcc_cv_as_powerpc_vsx=no
23915 if test $in_tree_gas = yes; then
23916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23917 then gcc_cv_as_powerpc_vsx=yes
23919 elif test x$gcc_cv_as != x; then
23920 echo "$conftest_s" > conftest.s
23921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23923 (eval $ac_try) 2>&5
23924 ac_status=$?
23925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23926 test $ac_status = 0; }; }
23927 then
23928 gcc_cv_as_powerpc_vsx=yes
23929 else
23930 echo "configure: failed program was" >&5
23931 cat conftest.s >&5
23933 rm -f conftest.o conftest.s
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23937 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23938 if test $gcc_cv_as_powerpc_vsx = yes; then
23940 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23944 case $target in
23945 *-*-aix*) conftest_s=' .machine "pwr7"
23946 .csect .text[PR]
23947 popcntd 3,3';;
23948 *) conftest_s=' .machine power7
23949 .text
23950 popcntd 3,3';;
23951 esac
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23954 $as_echo_n "checking assembler for popcntd support... " >&6; }
23955 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23956 $as_echo_n "(cached) " >&6
23957 else
23958 gcc_cv_as_powerpc_popcntd=no
23959 if test $in_tree_gas = yes; then
23960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23961 then gcc_cv_as_powerpc_popcntd=yes
23963 elif test x$gcc_cv_as != x; then
23964 echo "$conftest_s" > conftest.s
23965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23967 (eval $ac_try) 2>&5
23968 ac_status=$?
23969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23970 test $ac_status = 0; }; }
23971 then
23972 gcc_cv_as_powerpc_popcntd=yes
23973 else
23974 echo "configure: failed program was" >&5
23975 cat conftest.s >&5
23977 rm -f conftest.o conftest.s
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23981 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23982 if test $gcc_cv_as_powerpc_popcntd = yes; then
23984 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23988 case $target in
23989 *-*-aix*) conftest_s=' .csect .text[PR]
23990 lwsync';;
23991 *) conftest_s=' .text
23992 lwsync';;
23993 esac
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23996 $as_echo_n "checking assembler for lwsync support... " >&6; }
23997 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23998 $as_echo_n "(cached) " >&6
23999 else
24000 gcc_cv_as_powerpc_lwsync=no
24001 if test $in_tree_gas = yes; then
24002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24003 then gcc_cv_as_powerpc_lwsync=yes
24005 elif test x$gcc_cv_as != x; then
24006 echo "$conftest_s" > conftest.s
24007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24009 (eval $ac_try) 2>&5
24010 ac_status=$?
24011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24012 test $ac_status = 0; }; }
24013 then
24014 gcc_cv_as_powerpc_lwsync=yes
24015 else
24016 echo "configure: failed program was" >&5
24017 cat conftest.s >&5
24019 rm -f conftest.o conftest.s
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24023 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24024 if test $gcc_cv_as_powerpc_lwsync = yes; then
24026 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24030 case $target in
24031 *-*-aix*) conftest_s=' .machine "476"
24032 .csect .text[PR]
24033 dci 0';;
24034 *) conftest_s=' .machine "476"
24035 .text
24036 dci 0';;
24037 esac
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24040 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24041 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24042 $as_echo_n "(cached) " >&6
24043 else
24044 gcc_cv_as_powerpc_dci=no
24045 if test $in_tree_gas = yes; then
24046 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24047 then gcc_cv_as_powerpc_dci=yes
24049 elif test x$gcc_cv_as != x; then
24050 echo "$conftest_s" > conftest.s
24051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24053 (eval $ac_try) 2>&5
24054 ac_status=$?
24055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24056 test $ac_status = 0; }; }
24057 then
24058 gcc_cv_as_powerpc_dci=yes
24059 else
24060 echo "configure: failed program was" >&5
24061 cat conftest.s >&5
24063 rm -f conftest.o conftest.s
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24067 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24068 if test $gcc_cv_as_powerpc_dci = yes; then
24070 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24075 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24076 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24078 else
24079 gcc_cv_as_powerpc_gnu_attribute=no
24080 if test $in_tree_gas = yes; then
24081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24082 then gcc_cv_as_powerpc_gnu_attribute=yes
24084 elif test x$gcc_cv_as != x; then
24085 echo '.gnu_attribute 4,1' > conftest.s
24086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24088 (eval $ac_try) 2>&5
24089 ac_status=$?
24090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24091 test $ac_status = 0; }; }
24092 then
24093 gcc_cv_as_powerpc_gnu_attribute=yes
24094 else
24095 echo "configure: failed program was" >&5
24096 cat conftest.s >&5
24098 rm -f conftest.o conftest.s
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24102 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24103 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24105 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24110 $as_echo_n "checking assembler for tls marker support... " >&6; }
24111 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24112 $as_echo_n "(cached) " >&6
24113 else
24114 gcc_cv_as_powerpc_tls_markers=no
24115 if test $in_tree_gas = yes; then
24116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24117 then gcc_cv_as_powerpc_tls_markers=yes
24119 elif test x$gcc_cv_as != x; then
24120 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24123 (eval $ac_try) 2>&5
24124 ac_status=$?
24125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126 test $ac_status = 0; }; }
24127 then
24128 gcc_cv_as_powerpc_tls_markers=yes
24129 else
24130 echo "configure: failed program was" >&5
24131 cat conftest.s >&5
24133 rm -f conftest.o conftest.s
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24137 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24138 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24140 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24144 case $target in
24145 *-*-aix*)
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24147 $as_echo_n "checking assembler for .ref support... " >&6; }
24148 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24149 $as_echo_n "(cached) " >&6
24150 else
24151 gcc_cv_as_aix_ref=no
24152 if test $in_tree_gas = yes; then
24153 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24154 then :
24156 elif test x$gcc_cv_as != x; then
24157 echo ' .csect stuff[rw]
24158 stuff:
24159 .long 1
24160 .extern sym
24161 .ref sym
24162 ' > conftest.s
24163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24165 (eval $ac_try) 2>&5
24166 ac_status=$?
24167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24168 test $ac_status = 0; }; }
24169 then
24170 gcc_cv_as_aix_ref=yes
24171 else
24172 echo "configure: failed program was" >&5
24173 cat conftest.s >&5
24175 rm -f conftest.o conftest.s
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24179 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24180 if test $gcc_cv_as_aix_ref = yes; then
24182 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24186 esac
24189 mips*-*-*)
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24191 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24192 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24193 $as_echo_n "(cached) " >&6
24194 else
24195 gcc_cv_as_mips_explicit_relocs=no
24196 if test $in_tree_gas = yes; then
24197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24198 then gcc_cv_as_mips_explicit_relocs=yes
24200 elif test x$gcc_cv_as != x; then
24201 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24204 (eval $ac_try) 2>&5
24205 ac_status=$?
24206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24207 test $ac_status = 0; }; }
24208 then
24209 gcc_cv_as_mips_explicit_relocs=yes
24210 else
24211 echo "configure: failed program was" >&5
24212 cat conftest.s >&5
24214 rm -f conftest.o conftest.s
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24218 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24219 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24220 if test x$target_cpu_default = x
24221 then target_cpu_default=MASK_EXPLICIT_RELOCS
24222 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24226 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24227 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24229 else
24230 gcc_cv_as_mips_no_shared=no
24231 if test $in_tree_gas = yes; then
24232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24233 then gcc_cv_as_mips_no_shared=yes
24235 elif test x$gcc_cv_as != x; then
24236 echo 'nop' > conftest.s
24237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24239 (eval $ac_try) 2>&5
24240 ac_status=$?
24241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24242 test $ac_status = 0; }; }
24243 then
24244 gcc_cv_as_mips_no_shared=yes
24245 else
24246 echo "configure: failed program was" >&5
24247 cat conftest.s >&5
24249 rm -f conftest.o conftest.s
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24253 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24254 if test $gcc_cv_as_mips_no_shared = yes; then
24256 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24261 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24262 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24263 $as_echo_n "(cached) " >&6
24264 else
24265 gcc_cv_as_mips_gnu_attribute=no
24266 if test $in_tree_gas = yes; then
24267 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24268 then gcc_cv_as_mips_gnu_attribute=yes
24270 elif test x$gcc_cv_as != x; then
24271 echo '.gnu_attribute 4,1' > conftest.s
24272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277 test $ac_status = 0; }; }
24278 then
24279 gcc_cv_as_mips_gnu_attribute=yes
24280 else
24281 echo "configure: failed program was" >&5
24282 cat conftest.s >&5
24284 rm -f conftest.o conftest.s
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24288 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24289 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24291 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24296 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24297 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24299 else
24300 gcc_cv_as_mips_dtprelword=no
24301 if test $in_tree_gas = yes; then
24302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24303 then gcc_cv_as_mips_dtprelword=yes
24305 elif test x$gcc_cv_as != x; then
24306 echo '.section .tdata,"awT",@progbits
24308 .word 2
24309 .text
24310 .dtprelword x+0x8000' > conftest.s
24311 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24313 (eval $ac_try) 2>&5
24314 ac_status=$?
24315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24316 test $ac_status = 0; }; }
24317 then
24318 gcc_cv_as_mips_dtprelword=yes
24319 else
24320 echo "configure: failed program was" >&5
24321 cat conftest.s >&5
24323 rm -f conftest.o conftest.s
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24327 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24328 if test $gcc_cv_as_mips_dtprelword = yes; then
24330 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24335 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24336 gcc_cv_as_ld_jalr_reloc=no
24337 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24338 if test $in_tree_ld = yes ; then
24339 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 \
24340 && test $in_tree_ld_is_elf = yes; then
24341 gcc_cv_as_ld_jalr_reloc=yes
24343 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24344 echo ' .ent x' > conftest.s
24345 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24346 echo ' ld $25,%call16(y)($28)' >> conftest.s
24347 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24348 echo '1: jalr $25' >> conftest.s
24349 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24350 echo '1: jalr $25' >> conftest.s
24351 echo ' .end x' >> conftest.s
24352 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24353 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24354 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24355 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24356 gcc_cv_as_ld_jalr_reloc=yes
24359 rm -f conftest.*
24362 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24363 if test x$target_cpu_default = x; then
24364 target_cpu_default=MASK_RELAX_PIC_CALLS
24365 else
24366 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24370 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24373 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24374 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24375 $as_echo_n "(cached) " >&6
24376 else
24377 gcc_cv_ld_mips_personality_relaxation=no
24378 if test $in_tree_ld = yes ; then
24379 if test "$gcc_cv_gld_major_version" -eq 2 \
24380 -a "$gcc_cv_gld_minor_version" -ge 21 \
24381 -o "$gcc_cv_gld_major_version" -gt 2; then
24382 gcc_cv_ld_mips_personality_relaxation=yes
24384 elif test x$gcc_cv_as != x \
24385 -a x$gcc_cv_ld != x \
24386 -a x$gcc_cv_readelf != x ; then
24387 cat > conftest.s <<EOF
24388 .cfi_startproc
24389 .cfi_personality 0x80,indirect_ptr
24390 .ent test
24391 test:
24393 .end test
24394 .cfi_endproc
24396 .section .data,"aw",@progbits
24397 indirect_ptr:
24398 .dc.a personality
24400 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24401 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24402 if $gcc_cv_readelf -d conftest 2>&1 \
24403 | grep TEXTREL > /dev/null 2>&1; then
24405 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24406 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24408 else
24409 gcc_cv_ld_mips_personality_relaxation=yes
24413 rm -f conftest.s conftest.o conftest
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24416 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24417 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24419 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24423 esac
24425 # Mips and HP-UX need the GNU assembler.
24426 # Linux on IA64 might be able to use the Intel assembler.
24428 case "$target" in
24429 mips*-*-* | *-*-hpux* )
24430 if test x$gas_flag = xyes \
24431 || test x"$host" != x"$build" \
24432 || test ! -x "$gcc_cv_as" \
24433 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24435 else
24436 echo "*** This configuration requires the GNU assembler" >&2
24437 exit 1
24440 esac
24442 # ??? Not all targets support dwarf2 debug_line, even within a version
24443 # of gas. Moreover, we need to emit a valid instruction to trigger any
24444 # info to the output file. So, as supported targets are added to gas 2.11,
24445 # add some instruction here to (also) show we expect this might work.
24446 # ??? Once 2.11 is released, probably need to add first known working
24447 # version to the per-target configury.
24448 case "$target" in
24449 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24450 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24451 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24452 | spu-*-* | fido*-*-* | m32c-*-*)
24453 insn="nop"
24455 ia64*-*-* | s390*-*-*)
24456 insn="nop 0"
24458 mmix-*-*)
24459 insn="swym 0"
24461 esac
24462 if test x"$insn" != x; then
24463 conftest_s="\
24464 .file 1 \"conftest.s\"
24465 .loc 1 3 0
24466 $insn"
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24468 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24469 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24471 else
24472 gcc_cv_as_dwarf2_debug_line=no
24473 if test $in_tree_gas = yes; then
24474 if test $in_tree_gas_is_elf = yes \
24475 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24476 then gcc_cv_as_dwarf2_debug_line=yes
24478 elif test x$gcc_cv_as != x; then
24479 echo "$conftest_s" > conftest.s
24480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24482 (eval $ac_try) 2>&5
24483 ac_status=$?
24484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24485 test $ac_status = 0; }; }
24486 then
24487 if test x$gcc_cv_objdump != x \
24488 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24489 | grep debug_line > /dev/null 2>&1; then
24490 gcc_cv_as_dwarf2_debug_line=yes
24492 else
24493 echo "configure: failed program was" >&5
24494 cat conftest.s >&5
24496 rm -f conftest.o conftest.s
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24500 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24503 # The .debug_line file table must be in the exact order that
24504 # we specified the files, since these indices are also used
24505 # by DW_AT_decl_file. Approximate this test by testing if
24506 # the assembler bitches if the same index is assigned twice.
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24508 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24509 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24510 $as_echo_n "(cached) " >&6
24511 else
24512 gcc_cv_as_dwarf2_file_buggy=no
24513 if test x$gcc_cv_as != x; then
24514 echo ' .file 1 "foo.s"
24515 .file 1 "bar.s"' > conftest.s
24516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24518 (eval $ac_try) 2>&5
24519 ac_status=$?
24520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24521 test $ac_status = 0; }; }
24522 then
24523 gcc_cv_as_dwarf2_file_buggy=yes
24524 else
24525 echo "configure: failed program was" >&5
24526 cat conftest.s >&5
24528 rm -f conftest.o conftest.s
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24532 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24535 if test $gcc_cv_as_dwarf2_debug_line = yes \
24536 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24538 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24543 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24544 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24545 $as_echo_n "(cached) " >&6
24546 else
24547 gcc_cv_as_gdwarf2_flag=no
24548 if test $in_tree_gas = yes; then
24549 if test $in_tree_gas_is_elf = yes \
24550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24551 then gcc_cv_as_gdwarf2_flag=yes
24553 elif test x$gcc_cv_as != x; then
24554 echo "$insn" > conftest.s
24555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24557 (eval $ac_try) 2>&5
24558 ac_status=$?
24559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560 test $ac_status = 0; }; }
24561 then
24562 gcc_cv_as_gdwarf2_flag=yes
24563 else
24564 echo "configure: failed program was" >&5
24565 cat conftest.s >&5
24567 rm -f conftest.o conftest.s
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24571 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24572 if test $gcc_cv_as_gdwarf2_flag = yes; then
24574 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24579 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24580 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24581 $as_echo_n "(cached) " >&6
24582 else
24583 gcc_cv_as_gstabs_flag=no
24584 if test $in_tree_gas = yes; then
24585 if test $in_tree_gas_is_elf = yes \
24586 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24587 then gcc_cv_as_gstabs_flag=yes
24589 elif test x$gcc_cv_as != x; then
24590 echo "$insn" > conftest.s
24591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24593 (eval $ac_try) 2>&5
24594 ac_status=$?
24595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24596 test $ac_status = 0; }; }
24597 then
24598 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24599 # and warns about it, but still exits successfully. So check for
24600 # this.
24601 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24603 (eval $ac_try) 2>&5
24604 ac_status=$?
24605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24606 test $ac_status = 0; }; }
24607 then :
24608 else gcc_cv_as_gstabs_flag=yes
24610 else
24611 echo "configure: failed program was" >&5
24612 cat conftest.s >&5
24614 rm -f conftest.o conftest.s
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24618 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24619 if test $gcc_cv_as_gstabs_flag = yes; then
24621 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24626 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24627 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24628 $as_echo_n "(cached) " >&6
24629 else
24630 gcc_cv_as_debug_prefix_map_flag=no
24631 if test $in_tree_gas = yes; then
24632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24633 then gcc_cv_as_debug_prefix_map_flag=yes
24635 elif test x$gcc_cv_as != x; then
24636 echo "$insn" > conftest.s
24637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24639 (eval $ac_try) 2>&5
24640 ac_status=$?
24641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24642 test $ac_status = 0; }; }
24643 then
24644 gcc_cv_as_debug_prefix_map_flag=yes
24645 else
24646 echo "configure: failed program was" >&5
24647 cat conftest.s >&5
24649 rm -f conftest.o conftest.s
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24653 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24654 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24656 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24662 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24663 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24664 $as_echo_n "(cached) " >&6
24665 else
24666 gcc_cv_as_lcomm_with_alignment=no
24667 if test x$gcc_cv_as != x; then
24668 echo '.lcomm bar,4,16' > conftest.s
24669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24671 (eval $ac_try) 2>&5
24672 ac_status=$?
24673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24674 test $ac_status = 0; }; }
24675 then
24676 gcc_cv_as_lcomm_with_alignment=yes
24677 else
24678 echo "configure: failed program was" >&5
24679 cat conftest.s >&5
24681 rm -f conftest.o conftest.s
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24685 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24686 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24688 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24692 # Check whether --enable-gnu-unique-object was given.
24693 if test "${enable_gnu_unique_object+set}" = set; then :
24694 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24695 yes | no) ;;
24696 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24697 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24698 esac
24699 else
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24701 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24702 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24703 $as_echo_n "(cached) " >&6
24704 else
24705 gcc_cv_as_gnu_unique_object=no
24706 if test $in_tree_gas = yes; then
24707 if test $in_tree_gas_is_elf = yes \
24708 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24709 then gcc_cv_as_gnu_unique_object=yes
24711 elif test x$gcc_cv_as != x; then
24712 echo '.type foo, @gnu_unique_object' > conftest.s
24713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24715 (eval $ac_try) 2>&5
24716 ac_status=$?
24717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24718 test $ac_status = 0; }; }
24719 then
24720 gcc_cv_as_gnu_unique_object=yes
24721 else
24722 echo "configure: failed program was" >&5
24723 cat conftest.s >&5
24725 rm -f conftest.o conftest.s
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24729 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24730 if test $gcc_cv_as_gnu_unique_object = yes; then
24731 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24732 if test x$host = x$build -a x$host = x$target &&
24733 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24734 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24735 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24736 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24737 if test "$glibcnum" -ge 2011 ; then
24738 enable_gnu_unique_object=yes
24744 if test x$enable_gnu_unique_object = xyes; then
24746 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24751 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24752 if test "${gcc_cv_as_line_zero+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24754 else
24755 gcc_cv_as_line_zero=no
24756 if test $in_tree_gas = yes; then
24757 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24758 then gcc_cv_as_line_zero=yes
24760 elif test "x$gcc_cv_as" != x; then
24761 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24762 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; } &&
24768 test "x`cat conftest.out`" = x
24769 then
24770 gcc_cv_as_line_zero=yes
24771 else
24772 echo "configure: failed program was" >&5
24773 cat conftest.s >&5
24774 echo "configure: error output was" >&5
24775 cat conftest.out >&5
24777 rm -f conftest.o conftest.s conftest.out
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24781 $as_echo "$gcc_cv_as_line_zero" >&6; }
24782 if test "x$gcc_cv_as_line_zero" = xyes; then
24784 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24789 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24790 gcc_cv_ld_eh_frame_hdr=no
24791 if test $in_tree_ld = yes ; then
24792 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 \
24793 && test $in_tree_ld_is_elf = yes; then
24794 gcc_cv_ld_eh_frame_hdr=yes
24796 elif test x$gcc_cv_ld != x; then
24797 # Check if linker supports --eh-frame-hdr option
24798 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24799 gcc_cv_ld_eh_frame_hdr=yes
24803 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24805 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24809 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24812 $as_echo_n "checking linker position independent executable support... " >&6; }
24813 gcc_cv_ld_pie=no
24814 if test $in_tree_ld = yes ; then
24815 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 \
24816 && test $in_tree_ld_is_elf = yes; then
24817 gcc_cv_ld_pie=yes
24819 elif test x$gcc_cv_ld != x; then
24820 # Check if linker supports -pie option
24821 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24822 gcc_cv_ld_pie=yes
24825 if test x"$gcc_cv_ld_pie" = xyes; then
24827 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24831 $as_echo "$gcc_cv_ld_pie" >&6; }
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24834 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24835 gcc_cv_ld_eh_gc_sections=no
24836 if test $in_tree_ld = yes ; then
24837 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 \
24838 && test $in_tree_ld_is_elf = yes; then
24839 gcc_cv_ld_eh_gc_sections=yes
24841 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24842 cat > conftest.s <<EOF
24843 .section .text
24844 .globl _start
24845 .type _start, @function
24846 _start:
24847 .long foo
24848 .size _start, .-_start
24849 .section .text.foo,"ax",@progbits
24850 .type foo, @function
24851 foo:
24852 .long 0
24853 .size foo, .-foo
24854 .section .gcc_except_table.foo,"a",@progbits
24855 .L0:
24856 .long 0
24857 .section .eh_frame,"a",@progbits
24858 .long .L0
24860 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24861 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24862 | grep "gc-sections option ignored" > /dev/null; then
24863 gcc_cv_ld_eh_gc_sections=no
24864 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24865 | grep gcc_except_table > /dev/null; then
24866 gcc_cv_ld_eh_gc_sections=yes
24867 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24868 if test x$gcc_cv_as_comdat_group != xyes; then
24869 gcc_cv_ld_eh_gc_sections=no
24870 cat > conftest.s <<EOF
24871 .section .text
24872 .globl _start
24873 .type _start, @function
24874 _start:
24875 .long foo
24876 .size _start, .-_start
24877 .section .gnu.linkonce.t.foo,"ax",@progbits
24878 .type foo, @function
24879 foo:
24880 .long 0
24881 .size foo, .-foo
24882 .section .gcc_except_table.foo,"a",@progbits
24883 .L0:
24884 .long 0
24885 .section .eh_frame,"a",@progbits
24886 .long .L0
24888 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24889 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24890 | grep "gc-sections option ignored" > /dev/null; then
24891 gcc_cv_ld_eh_gc_sections=no
24892 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24893 | grep gcc_except_table > /dev/null; then
24894 gcc_cv_ld_eh_gc_sections=yes
24900 rm -f conftest.s conftest.o conftest
24902 case "$target" in
24903 hppa*-*-linux*)
24904 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24905 gcc_cv_ld_eh_gc_sections=no
24907 esac
24908 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24910 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24914 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24916 # --------
24917 # UNSORTED
24918 # --------
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24921 $as_echo_n "checking linker --as-needed support... " >&6; }
24922 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24923 $as_echo_n "(cached) " >&6
24924 else
24925 gcc_cv_ld_as_needed=no
24926 if test $in_tree_ld = yes ; then
24927 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 \
24928 && test $in_tree_ld_is_elf = yes; then
24929 gcc_cv_ld_as_needed=yes
24931 elif test x$gcc_cv_ld != x; then
24932 # Check if linker supports --as-needed and --no-as-needed options
24933 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24934 gcc_cv_ld_as_needed=yes
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24940 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24941 if test x"$gcc_cv_ld_as_needed" = xyes; then
24943 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24947 case "$target:$tm_file" in
24948 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24950 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24951 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24952 $as_echo_n "(cached) " >&6
24953 else
24954 gcc_cv_ld_no_dot_syms=no
24955 if test $in_tree_ld = yes ; then
24956 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
24957 gcc_cv_ld_no_dot_syms=yes
24959 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24960 cat > conftest1.s <<EOF
24961 .text
24962 bl .foo
24964 cat > conftest2.s <<EOF
24965 .section ".opd","aw"
24966 .align 3
24967 .globl foo
24968 .type foo,@function
24969 foo:
24970 .quad .LEfoo,.TOC.@tocbase,0
24971 .text
24972 .LEfoo:
24974 .size foo,.-.LEfoo
24976 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24977 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24978 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24979 gcc_cv_ld_no_dot_syms=yes
24981 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24986 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24987 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24989 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
24994 $as_echo_n "checking linker large toc support... " >&6; }
24995 if test "${gcc_cv_ld_large_toc+set}" = set; then :
24996 $as_echo_n "(cached) " >&6
24997 else
24998 gcc_cv_ld_large_toc=no
24999 if test $in_tree_ld = yes ; then
25000 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
25001 gcc_cv_ld_large_toc=yes
25003 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25004 cat > conftest.s <<EOF
25005 .section ".tbss","awT",@nobits
25006 .align 3
25007 ie0: .space 8
25008 .global _start
25009 .text
25010 _start:
25011 addis 9,13,ie0@got@tprel@ha
25012 ld 9,ie0@got@tprel@l(9)
25014 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25015 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25016 gcc_cv_ld_large_toc=yes
25018 rm -f conftest conftest.o conftest.s
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25023 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25024 if test x"$gcc_cv_ld_large_toc" = xyes; then
25026 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25030 esac
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25033 $as_echo_n "checking linker --build-id support... " >&6; }
25034 if test "${gcc_cv_ld_buildid+set}" = set; then :
25035 $as_echo_n "(cached) " >&6
25036 else
25037 gcc_cv_ld_buildid=no
25038 if test $in_tree_ld = yes ; then
25039 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25040 "$gcc_cv_gld_minor_version" -ge 18 -o \
25041 "$gcc_cv_gld_major_version" -gt 2 \
25042 && test $in_tree_ld_is_elf = yes; then
25043 gcc_cv_ld_buildid=yes
25045 elif test x$gcc_cv_ld != x; then
25046 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25047 gcc_cv_ld_buildid=yes
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25052 $as_echo "$gcc_cv_ld_buildid" >&6; }
25053 if test x"$gcc_cv_ld_buildid" = xyes; then
25055 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25059 # Check whether --enable-linker-build-id was given.
25060 if test "${enable_linker_build_id+set}" = set; then :
25061 enableval=$enable_linker_build_id;
25062 else
25063 enable_linker_build_id=no
25067 if test x"$enable_linker_build_id" = xyes; then
25068 if test x"$gcc_cv_ld_buildid" = xyes; then
25070 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25072 else
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25074 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25078 # In binutils 2.21, GNU ld gained support for new emulations fully
25079 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25081 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25082 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25083 $as_echo_n "(cached) " >&6
25084 else
25085 gcc_cv_ld_sol2_emulation=no
25086 if test $in_tree_ld = yes ; then
25087 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25088 "$gcc_cv_gld_minor_version" -ge 21 -o \
25089 "$gcc_cv_gld_major_version" -gt 2 \
25090 && test $in_tree_ld_is_elf = yes; then
25091 gcc_cv_ld_sol2_emulation=yes
25093 elif test x$gcc_cv_ld != x; then
25094 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25095 grep _sol2 > /dev/null; then
25096 gcc_cv_ld_sol2_emulation=yes
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25101 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25102 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25104 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25109 $as_echo_n "checking linker --sysroot support... " >&6; }
25110 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25111 $as_echo_n "(cached) " >&6
25112 else
25113 gcc_cv_ld_sysroot=no
25114 if test $in_tree_ld = yes ; then
25115 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
25116 gcc_cv_ld_sysroot=yes
25118 elif test x$gcc_cv_ld != x; then
25119 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25120 gcc_cv_ld_sysroot=yes
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25125 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25126 if test x"$gcc_cv_ld_sysroot" = xyes; then
25128 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25132 if test x$with_sysroot = x && test x$host = x$target \
25133 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25134 && test "$prefix" != "NONE"; then
25136 cat >>confdefs.h <<_ACEOF
25137 #define PREFIX_INCLUDE_DIR "$prefix/include"
25138 _ACEOF
25142 # Test for stack protector support in target C library.
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25144 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25145 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25146 $as_echo_n "(cached) " >&6
25147 else
25148 gcc_cv_libc_provides_ssp=no
25149 case "$target" in
25150 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25151 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25152 if test "x$with_headers" != x; then
25153 glibc_header_dir=$with_headers
25154 elif test "x$with_sysroot" = x; then
25155 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25156 elif test "x$with_build_sysroot" != "x"; then
25157 glibc_header_dir="${with_build_sysroot}/usr/include"
25158 elif test "x$with_sysroot" = xyes; then
25159 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25160 else
25161 glibc_header_dir="${with_sysroot}/usr/include"
25163 else
25164 glibc_header_dir=/usr/include
25166 # glibc 2.4 and later provides __stack_chk_fail and
25167 # either __stack_chk_guard, or TLS access to stack guard canary.
25168 if test -f $glibc_header_dir/features.h \
25169 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25170 $glibc_header_dir/features.h > /dev/null; then
25171 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25172 $glibc_header_dir/features.h > /dev/null; then
25173 gcc_cv_libc_provides_ssp=yes
25174 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25175 $glibc_header_dir/features.h > /dev/null \
25176 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25177 $glibc_header_dir/features.h > /dev/null; then
25178 gcc_cv_libc_provides_ssp=yes
25179 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25180 $glibc_header_dir/features.h > /dev/null && \
25181 test -f $glibc_header_dir/bits/uClibc_config.h && \
25182 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25183 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25184 gcc_cv_libc_provides_ssp=yes
25188 *-*-gnu*)
25189 # Avoid complicated tests (see
25190 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25191 # simply assert that glibc does provide this, which is true for all
25192 # realistically usable GNU/Hurd configurations.
25193 gcc_cv_libc_provides_ssp=yes;;
25194 *-*-darwin* | *-*-freebsd*)
25195 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25196 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25197 gcc_cv_libc_provides_ssp=yes
25198 else
25199 echo "no __stack_chk_fail on this target"
25203 *) gcc_cv_libc_provides_ssp=no ;;
25204 esac
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25207 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25209 if test x$gcc_cv_libc_provides_ssp = xyes; then
25211 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25215 # Check if TFmode long double should be used by default or not.
25216 # Some glibc targets used DFmode long double, but with glibc 2.4
25217 # and later they can use TFmode.
25218 case "$target" in
25219 powerpc*-*-linux* | \
25220 powerpc*-*-gnu* | \
25221 sparc*-*-linux* | \
25222 s390*-*-linux* | \
25223 alpha*-*-linux*)
25225 # Check whether --with-long-double-128 was given.
25226 if test "${with_long_double_128+set}" = set; then :
25227 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25228 else
25229 gcc_cv_target_ldbl128=no
25230 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25231 if test "x$with_sysroot" = x; then
25232 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25233 elif test "x$with_build_sysroot" != "x"; then
25234 glibc_header_dir="${with_build_sysroot}/usr/include"
25235 elif test "x$with_sysroot" = xyes; then
25236 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25237 else
25238 glibc_header_dir="${with_sysroot}/usr/include"
25240 else
25241 glibc_header_dir=/usr/include
25243 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25244 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25245 && gcc_cv_target_ldbl128=yes
25250 esac
25251 if test x$gcc_cv_target_ldbl128 = xyes; then
25253 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25257 # Find out what GC implementation we want, or may, use.
25259 # Check whether --with-gc was given.
25260 if test "${with_gc+set}" = set; then :
25261 withval=$with_gc; case "$withval" in
25262 page)
25263 GGC=ggc-$withval
25265 zone)
25266 GGC=ggc-$withval
25268 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25272 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25274 esac
25275 else
25276 GGC=ggc-page
25280 echo "Using $GGC for garbage collection."
25282 # Libraries to use on the host. This will normally be set by the top
25283 # level Makefile. Here we simply capture the value for our Makefile.
25284 if test -z "${HOST_LIBS+set}"; then
25285 HOST_LIBS=
25289 # Use the system's zlib library.
25290 zlibdir=-L../zlib
25291 zlibinc="-I\$(srcdir)/../zlib"
25293 # Check whether --with-system-zlib was given.
25294 if test "${with_system_zlib+set}" = set; then :
25295 withval=$with_system_zlib; zlibdir=
25296 zlibinc=
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25305 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25306 # Check whether --enable-maintainer-mode was given.
25307 if test "${enable_maintainer_mode+set}" = set; then :
25308 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25309 else
25310 maintainer_mode=no
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25315 $as_echo "$maintainer_mode" >&6; }
25317 if test "$maintainer_mode" = "yes"; then
25318 MAINT=''
25319 else
25320 MAINT='#'
25323 # --------------
25324 # Language hooks
25325 # --------------
25327 # Make empty files to contain the specs and options for each language.
25328 # Then add #include lines to for a compiler that has specs and/or options.
25330 subdirs=
25331 lang_opt_files=
25332 lang_specs_files=
25333 lang_tree_files=
25334 # These (without "all_") are set in each config-lang.in.
25335 # `language' must be a single word so is spelled singularly.
25336 all_languages=
25337 all_compilers=
25338 all_outputs='Makefile gccbug'
25339 # List of language makefile fragments.
25340 all_lang_makefrags=
25341 # Additional files for gengtype
25342 all_gtfiles="$target_gtfiles"
25344 # These are the languages that are set in --enable-languages,
25345 # and are available in the GCC tree.
25346 all_selected_languages=
25348 # Add the language fragments.
25349 # Languages are added via two mechanisms. Some information must be
25350 # recorded in makefile variables, these are defined in config-lang.in.
25351 # We accumulate them and plug them into the main Makefile.
25352 # The other mechanism is a set of hooks for each of the main targets
25353 # like `clean', `install', etc.
25355 language_hooks="Make-hooks"
25357 for lang in ${srcdir}/*/config-lang.in
25359 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25361 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25362 if test "x$lang_alias" = x
25363 then
25364 echo "$lang doesn't set \$language." 1>&2
25365 exit 1
25367 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25368 subdirs="$subdirs $subdir"
25370 # $gcc_subdir is where the gcc integration files are to be found
25371 # for a language, both for internal compiler purposes (compiler
25372 # sources implementing front-end to GCC tree converters), and for
25373 # build infrastructure purposes (Make-lang.in, etc.)
25375 # This will be <subdir> (relative to $srcdir) if a line like
25376 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25377 # is found in <langdir>/config-lang.in, and will remain <langdir>
25378 # otherwise.
25380 # Except for the language alias (fetched above), the regular
25381 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25382 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25383 # only this and the language alias.
25385 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25386 if [ "$gcc_subdir" = "" ]; then
25387 gcc_subdir="$subdir"
25390 case ",$enable_languages," in
25391 *,$lang_alias,*)
25392 all_selected_languages="$all_selected_languages $lang_alias"
25393 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25394 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25397 esac
25399 language=
25400 boot_language=
25401 compilers=
25402 outputs=
25403 gtfiles=
25404 subdir_requires=
25405 . ${srcdir}/$gcc_subdir/config-lang.in
25406 if test "x$language" = x
25407 then
25408 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25409 exit 1
25412 ok=:
25413 case ",$enable_languages," in
25414 *,$lang_alias,*) ;;
25416 for i in $subdir_requires; do
25417 test -f "${srcdir}/$i/config-lang.in" && continue
25418 ok=false
25419 break
25420 done
25422 esac
25423 $ok || continue
25425 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25426 if test -f $srcdir/$gcc_subdir/lang.opt; then
25427 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25429 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25430 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25432 all_languages="$all_languages $language"
25433 all_compilers="$all_compilers $compilers"
25434 all_outputs="$all_outputs $outputs"
25435 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25436 case ",$enable_languages," in
25437 *,lto,*)
25439 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25441 enable_lto=yes
25443 # LTO needs to speak the platform's object file format, and has a
25444 # number of implementations of the required binary file access APIs.
25445 # ELF is the most common, and default. We only link libelf if ELF
25446 # is indeed the selected format.
25447 LTO_BINARY_READER=${lto_binary_reader}
25448 LTO_USE_LIBELF=-lelf
25449 if test "x$lto_binary_reader" != "xlto-elf" ; then
25450 LTO_USE_LIBELF=
25455 *) ;;
25456 esac
25457 done
25459 # Pick up gtfiles for c
25460 gtfiles=
25461 . ${srcdir}/c-config-lang.in
25462 all_gtfiles="$all_gtfiles [c] $gtfiles"
25464 check_languages=
25465 for language in $all_selected_languages
25467 check_languages="$check_languages check-$language"
25468 done
25470 # We link each language in with a set of hooks, reached indirectly via
25471 # lang.${target}. Only do so for selected languages.
25473 rm -f Make-hooks
25474 touch Make-hooks
25475 target_list="all.cross start.encap rest.encap tags \
25476 install-common install-man install-info install-pdf install-html dvi \
25477 pdf html uninstall info man srcextra srcman srcinfo \
25478 mostlyclean clean distclean maintainer-clean install-plugin"
25480 for t in $target_list
25483 for lang in $all_selected_languages
25485 x="$x $lang.$t"
25486 done
25487 echo "lang.$t: $x" >> Make-hooks
25488 done
25490 # --------
25491 # UNSORTED
25492 # --------
25494 # Create .gdbinit.
25496 echo "dir ." > .gdbinit
25497 echo "dir ${srcdir}" >> .gdbinit
25498 if test x$gdb_needs_out_file_path = xyes
25499 then
25500 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25502 if test "x$subdirs" != x; then
25503 for s in $subdirs
25505 echo "dir ${srcdir}/$s" >> .gdbinit
25506 done
25508 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25510 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25514 # Find a directory in which to install a shared libgcc.
25516 # Check whether --enable-version-specific-runtime-libs was given.
25517 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25518 enableval=$enable_version_specific_runtime_libs;
25523 # Check whether --with-slibdir was given.
25524 if test "${with_slibdir+set}" = set; then :
25525 withval=$with_slibdir; slibdir="$with_slibdir"
25526 else
25527 if test "${enable_version_specific_runtime_libs+set}" = set; then
25528 slibdir='$(libsubdir)'
25529 elif test "$host" != "$target"; then
25530 slibdir='$(build_tooldir)/lib'
25531 else
25532 slibdir='$(libdir)'
25538 # Substitute configuration variables
25601 # Echo link setup.
25602 if test x${build} = x${host} ; then
25603 if test x${host} = x${target} ; then
25604 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25605 else
25606 echo "Links are now set up to build a cross-compiler" 1>&2
25607 echo " from ${host} to ${target}." 1>&2
25609 else
25610 if test x${host} = x${target} ; then
25611 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25612 echo " for ${target}." 1>&2
25613 else
25614 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25615 echo " from ${host} to ${target}." 1>&2
25627 if test "x${CLOOGLIBS}" != "x" ; then
25629 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25635 if test "x${LIBELFLIBS}" != "x" ; then
25637 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25641 # Check for plugin support
25642 # Check whether --enable-plugin was given.
25643 if test "${enable_plugin+set}" = set; then :
25644 enableval=$enable_plugin; enable_plugin=$enableval
25645 else
25646 enable_plugin=yes; default_plugin=yes
25650 pluginlibs=
25651 if test x"$enable_plugin" = x"yes"; then
25653 case "${host}" in
25654 *-*-darwin*)
25655 export_sym_check="$gcc_cv_nm -g"
25658 export_sym_check="$gcc_cv_objdump -T"
25660 esac
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25662 $as_echo_n "checking for exported symbols... " >&6; }
25663 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25664 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25665 if $export_sym_check conftest | grep foobar > /dev/null; then
25666 : # No need to use a flag
25667 else
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25669 $as_echo_n "checking for -rdynamic... " >&6; }
25670 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25671 if $export_sym_check conftest | grep foobar > /dev/null; then
25672 plugin_rdynamic=yes
25673 pluginlibs="-rdynamic"
25674 else
25675 plugin_rdynamic=no
25676 enable_plugin=no
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25679 $as_echo "$plugin_rdynamic" >&6; }
25682 # Check -ldl
25683 saved_LIBS="$LIBS"
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25685 $as_echo_n "checking for library containing dlopen... " >&6; }
25686 if test "${ac_cv_search_dlopen+set}" = set; then :
25687 $as_echo_n "(cached) " >&6
25688 else
25689 ac_func_search_save_LIBS=$LIBS
25690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25691 /* end confdefs.h. */
25693 /* Override any GCC internal prototype to avoid an error.
25694 Use char because int might match the return type of a GCC
25695 builtin and then its argument prototype would still apply. */
25696 #ifdef __cplusplus
25697 extern "C"
25698 #endif
25699 char dlopen ();
25701 main ()
25703 return dlopen ();
25705 return 0;
25707 _ACEOF
25708 for ac_lib in '' dl; do
25709 if test -z "$ac_lib"; then
25710 ac_res="none required"
25711 else
25712 ac_res=-l$ac_lib
25713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25715 if ac_fn_c_try_link "$LINENO"; then :
25716 ac_cv_search_dlopen=$ac_res
25718 rm -f core conftest.err conftest.$ac_objext \
25719 conftest$ac_exeext
25720 if test "${ac_cv_search_dlopen+set}" = set; then :
25721 break
25723 done
25724 if test "${ac_cv_search_dlopen+set}" = set; then :
25726 else
25727 ac_cv_search_dlopen=no
25729 rm conftest.$ac_ext
25730 LIBS=$ac_func_search_save_LIBS
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25733 $as_echo "$ac_cv_search_dlopen" >&6; }
25734 ac_res=$ac_cv_search_dlopen
25735 if test "$ac_res" != no; then :
25736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25740 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25741 pluginlibs="$pluginlibs -ldl"
25743 LIBS="$saved_LIBS"
25745 # Check that we can build shared objects with -fPIC -shared
25746 saved_LDFLAGS="$LDFLAGS"
25747 case "${host}" in
25748 *-*-darwin*)
25749 LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25752 LDFLAGS="$LDFLAGS -fPIC -shared"
25754 esac
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25756 $as_echo_n "checking for -fPIC -shared... " >&6; }
25757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25758 /* end confdefs.h. */
25759 extern int X;
25761 main ()
25763 return X == 0;
25765 return 0;
25767 _ACEOF
25768 if ac_fn_c_try_link "$LINENO"; then :
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25770 $as_echo "yes" >&6; }; have_pic_shared=yes
25771 else
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25773 $as_echo "no" >&6; }; have_pic_shared=no
25775 rm -f core conftest.err conftest.$ac_objext \
25776 conftest$ac_exeext conftest.$ac_ext
25777 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25778 pluginlibs=
25779 enable_plugin=no
25781 LDFLAGS="$saved_LDFLAGS"
25783 # If plugin support had been requested but not available, fail.
25784 if test x"$enable_plugin" = x"no" ; then
25785 if test x"$default_plugin" != x"yes"; then
25786 as_fn_error "
25787 Building GCC with plugin support requires a host that supports
25788 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25795 if test x"$enable_plugin" = x"yes"; then
25797 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25801 # Configure the subdirectories
25802 # AC_CONFIG_SUBDIRS($subdirs)
25804 # Create the Makefile
25805 # and configure language subdirectories
25806 ac_config_files="$ac_config_files $all_outputs"
25809 ac_config_commands="$ac_config_commands default"
25811 cat >confcache <<\_ACEOF
25812 # This file is a shell script that caches the results of configure
25813 # tests run on this system so they can be shared between configure
25814 # scripts and configure runs, see configure's option --config-cache.
25815 # It is not useful on other systems. If it contains results you don't
25816 # want to keep, you may remove or edit it.
25818 # config.status only pays attention to the cache file if you give it
25819 # the --recheck option to rerun configure.
25821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25823 # following values.
25825 _ACEOF
25827 # The following way of writing the cache mishandles newlines in values,
25828 # but we know of no workaround that is simple, portable, and efficient.
25829 # So, we kill variables containing newlines.
25830 # Ultrix sh set writes to stderr and can't be redirected directly,
25831 # and sets the high bit in the cache file unless we assign to the vars.
25833 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25834 eval ac_val=\$$ac_var
25835 case $ac_val in #(
25836 *${as_nl}*)
25837 case $ac_var in #(
25838 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25839 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25840 esac
25841 case $ac_var in #(
25842 _ | IFS | as_nl) ;; #(
25843 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25844 *) { eval $ac_var=; unset $ac_var;} ;;
25845 esac ;;
25846 esac
25847 done
25849 (set) 2>&1 |
25850 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25851 *${as_nl}ac_space=\ *)
25852 # `set' does not quote correctly, so add quotes: double-quote
25853 # substitution turns \\\\ into \\, and sed turns \\ into \.
25854 sed -n \
25855 "s/'/'\\\\''/g;
25856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25857 ;; #(
25859 # `set' quotes correctly as required by POSIX, so do not add quotes.
25860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25862 esac |
25863 sort
25865 sed '
25866 /^ac_cv_env_/b end
25867 t clear
25868 :clear
25869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25870 t end
25871 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25872 :end' >>confcache
25873 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25874 if test -w "$cache_file"; then
25875 test "x$cache_file" != "x/dev/null" &&
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25877 $as_echo "$as_me: updating cache $cache_file" >&6;}
25878 cat confcache >$cache_file
25879 else
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25881 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25884 rm -f confcache
25886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25887 # Let make expand exec_prefix.
25888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25890 DEFS=-DHAVE_CONFIG_H
25892 ac_libobjs=
25893 ac_ltlibobjs=
25894 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25895 # 1. Remove the extension, and $U if already installed.
25896 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25897 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25898 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25899 # will be set to the directory where LIBOBJS objects are built.
25900 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25901 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25902 done
25903 LIBOBJS=$ac_libobjs
25905 LTLIBOBJS=$ac_ltlibobjs
25910 : ${CONFIG_STATUS=./config.status}
25911 ac_write_fail=0
25912 ac_clean_files_save=$ac_clean_files
25913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25915 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25916 as_write_fail=0
25917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25918 #! $SHELL
25919 # Generated by $as_me.
25920 # Run this file to recreate the current configuration.
25921 # Compiler output produced by configure, useful for debugging
25922 # configure, is in config.log if it exists.
25924 debug=false
25925 ac_cs_recheck=false
25926 ac_cs_silent=false
25928 SHELL=\${CONFIG_SHELL-$SHELL}
25929 export SHELL
25930 _ASEOF
25931 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25932 ## -------------------- ##
25933 ## M4sh Initialization. ##
25934 ## -------------------- ##
25936 # Be more Bourne compatible
25937 DUALCASE=1; export DUALCASE # for MKS sh
25938 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25939 emulate sh
25940 NULLCMD=:
25941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25942 # is contrary to our usage. Disable this feature.
25943 alias -g '${1+"$@"}'='"$@"'
25944 setopt NO_GLOB_SUBST
25945 else
25946 case `(set -o) 2>/dev/null` in #(
25947 *posix*) :
25948 set -o posix ;; #(
25949 *) :
25951 esac
25955 as_nl='
25957 export as_nl
25958 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25959 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25961 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25962 # Prefer a ksh shell builtin over an external printf program on Solaris,
25963 # but without wasting forks for bash or zsh.
25964 if test -z "$BASH_VERSION$ZSH_VERSION" \
25965 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25966 as_echo='print -r --'
25967 as_echo_n='print -rn --'
25968 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25969 as_echo='printf %s\n'
25970 as_echo_n='printf %s'
25971 else
25972 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25973 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25974 as_echo_n='/usr/ucb/echo -n'
25975 else
25976 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25977 as_echo_n_body='eval
25978 arg=$1;
25979 case $arg in #(
25980 *"$as_nl"*)
25981 expr "X$arg" : "X\\(.*\\)$as_nl";
25982 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25983 esac;
25984 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25986 export as_echo_n_body
25987 as_echo_n='sh -c $as_echo_n_body as_echo'
25989 export as_echo_body
25990 as_echo='sh -c $as_echo_body as_echo'
25993 # The user is always right.
25994 if test "${PATH_SEPARATOR+set}" != set; then
25995 PATH_SEPARATOR=:
25996 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25997 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25998 PATH_SEPARATOR=';'
26003 # IFS
26004 # We need space, tab and new line, in precisely that order. Quoting is
26005 # there to prevent editors from complaining about space-tab.
26006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26007 # splitting by setting IFS to empty value.)
26008 IFS=" "" $as_nl"
26010 # Find who we are. Look in the path if we contain no directory separator.
26011 case $0 in #((
26012 *[\\/]* ) as_myself=$0 ;;
26013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26014 for as_dir in $PATH
26016 IFS=$as_save_IFS
26017 test -z "$as_dir" && as_dir=.
26018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26019 done
26020 IFS=$as_save_IFS
26023 esac
26024 # We did not find ourselves, most probably we were run as `sh COMMAND'
26025 # in which case we are not to be found in the path.
26026 if test "x$as_myself" = x; then
26027 as_myself=$0
26029 if test ! -f "$as_myself"; then
26030 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26031 exit 1
26034 # Unset variables that we do not need and which cause bugs (e.g. in
26035 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26036 # suppresses any "Segmentation fault" message there. '((' could
26037 # trigger a bug in pdksh 5.2.14.
26038 for as_var in BASH_ENV ENV MAIL MAILPATH
26039 do eval test x\${$as_var+set} = xset \
26040 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26041 done
26042 PS1='$ '
26043 PS2='> '
26044 PS4='+ '
26046 # NLS nuisances.
26047 LC_ALL=C
26048 export LC_ALL
26049 LANGUAGE=C
26050 export LANGUAGE
26052 # CDPATH.
26053 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26056 # as_fn_error ERROR [LINENO LOG_FD]
26057 # ---------------------------------
26058 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26059 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26060 # script with status $?, using 1 if that was 0.
26061 as_fn_error ()
26063 as_status=$?; test $as_status -eq 0 && as_status=1
26064 if test "$3"; then
26065 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26066 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26068 $as_echo "$as_me: error: $1" >&2
26069 as_fn_exit $as_status
26070 } # as_fn_error
26073 # as_fn_set_status STATUS
26074 # -----------------------
26075 # Set $? to STATUS, without forking.
26076 as_fn_set_status ()
26078 return $1
26079 } # as_fn_set_status
26081 # as_fn_exit STATUS
26082 # -----------------
26083 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26084 as_fn_exit ()
26086 set +e
26087 as_fn_set_status $1
26088 exit $1
26089 } # as_fn_exit
26091 # as_fn_unset VAR
26092 # ---------------
26093 # Portably unset VAR.
26094 as_fn_unset ()
26096 { eval $1=; unset $1;}
26098 as_unset=as_fn_unset
26099 # as_fn_append VAR VALUE
26100 # ----------------------
26101 # Append the text in VALUE to the end of the definition contained in VAR. Take
26102 # advantage of any shell optimizations that allow amortized linear growth over
26103 # repeated appends, instead of the typical quadratic growth present in naive
26104 # implementations.
26105 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26106 eval 'as_fn_append ()
26108 eval $1+=\$2
26110 else
26111 as_fn_append ()
26113 eval $1=\$$1\$2
26115 fi # as_fn_append
26117 # as_fn_arith ARG...
26118 # ------------------
26119 # Perform arithmetic evaluation on the ARGs, and store the result in the
26120 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26121 # must be portable across $(()) and expr.
26122 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26123 eval 'as_fn_arith ()
26125 as_val=$(( $* ))
26127 else
26128 as_fn_arith ()
26130 as_val=`expr "$@" || test $? -eq 1`
26132 fi # as_fn_arith
26135 if expr a : '\(a\)' >/dev/null 2>&1 &&
26136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26137 as_expr=expr
26138 else
26139 as_expr=false
26142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26143 as_basename=basename
26144 else
26145 as_basename=false
26148 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26149 as_dirname=dirname
26150 else
26151 as_dirname=false
26154 as_me=`$as_basename -- "$0" ||
26155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26156 X"$0" : 'X\(//\)$' \| \
26157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26158 $as_echo X/"$0" |
26159 sed '/^.*\/\([^/][^/]*\)\/*$/{
26160 s//\1/
26163 /^X\/\(\/\/\)$/{
26164 s//\1/
26167 /^X\/\(\/\).*/{
26168 s//\1/
26171 s/.*/./; q'`
26173 # Avoid depending upon Character Ranges.
26174 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26175 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26176 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26177 as_cr_digits='0123456789'
26178 as_cr_alnum=$as_cr_Letters$as_cr_digits
26180 ECHO_C= ECHO_N= ECHO_T=
26181 case `echo -n x` in #(((((
26182 -n*)
26183 case `echo 'xy\c'` in
26184 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26185 xy) ECHO_C='\c';;
26186 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26187 ECHO_T=' ';;
26188 esac;;
26190 ECHO_N='-n';;
26191 esac
26193 rm -f conf$$ conf$$.exe conf$$.file
26194 if test -d conf$$.dir; then
26195 rm -f conf$$.dir/conf$$.file
26196 else
26197 rm -f conf$$.dir
26198 mkdir conf$$.dir 2>/dev/null
26200 if (echo >conf$$.file) 2>/dev/null; then
26201 if ln -s conf$$.file conf$$ 2>/dev/null; then
26202 as_ln_s='ln -s'
26203 # ... but there are two gotchas:
26204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26206 # In both cases, we have to default to `cp -p'.
26207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26208 as_ln_s='cp -p'
26209 elif ln conf$$.file conf$$ 2>/dev/null; then
26210 as_ln_s=ln
26211 else
26212 as_ln_s='cp -p'
26214 else
26215 as_ln_s='cp -p'
26217 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26218 rmdir conf$$.dir 2>/dev/null
26221 # as_fn_mkdir_p
26222 # -------------
26223 # Create "$as_dir" as a directory, including parents if necessary.
26224 as_fn_mkdir_p ()
26227 case $as_dir in #(
26228 -*) as_dir=./$as_dir;;
26229 esac
26230 test -d "$as_dir" || eval $as_mkdir_p || {
26231 as_dirs=
26232 while :; do
26233 case $as_dir in #(
26234 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26235 *) as_qdir=$as_dir;;
26236 esac
26237 as_dirs="'$as_qdir' $as_dirs"
26238 as_dir=`$as_dirname -- "$as_dir" ||
26239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26240 X"$as_dir" : 'X\(//\)[^/]' \| \
26241 X"$as_dir" : 'X\(//\)$' \| \
26242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26243 $as_echo X"$as_dir" |
26244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26245 s//\1/
26248 /^X\(\/\/\)[^/].*/{
26249 s//\1/
26252 /^X\(\/\/\)$/{
26253 s//\1/
26256 /^X\(\/\).*/{
26257 s//\1/
26260 s/.*/./; q'`
26261 test -d "$as_dir" && break
26262 done
26263 test -z "$as_dirs" || eval "mkdir $as_dirs"
26264 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26267 } # as_fn_mkdir_p
26268 if mkdir -p . 2>/dev/null; then
26269 as_mkdir_p='mkdir -p "$as_dir"'
26270 else
26271 test -d ./-p && rmdir ./-p
26272 as_mkdir_p=false
26275 if test -x / >/dev/null 2>&1; then
26276 as_test_x='test -x'
26277 else
26278 if ls -dL / >/dev/null 2>&1; then
26279 as_ls_L_option=L
26280 else
26281 as_ls_L_option=
26283 as_test_x='
26284 eval sh -c '\''
26285 if test -d "$1"; then
26286 test -d "$1/.";
26287 else
26288 case $1 in #(
26289 -*)set "./$1";;
26290 esac;
26291 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26292 ???[sx]*):;;*)false;;esac;fi
26293 '\'' sh
26296 as_executable_p=$as_test_x
26298 # Sed expression to map a string onto a valid CPP name.
26299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26301 # Sed expression to map a string onto a valid variable name.
26302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26305 exec 6>&1
26306 ## ----------------------------------- ##
26307 ## Main body of $CONFIG_STATUS script. ##
26308 ## ----------------------------------- ##
26309 _ASEOF
26310 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26313 # Save the log message, to keep $0 and so on meaningful, and to
26314 # report actual input values of CONFIG_FILES etc. instead of their
26315 # values after options handling.
26316 ac_log="
26317 This file was extended by $as_me, which was
26318 generated by GNU Autoconf 2.64. Invocation command line was
26320 CONFIG_FILES = $CONFIG_FILES
26321 CONFIG_HEADERS = $CONFIG_HEADERS
26322 CONFIG_LINKS = $CONFIG_LINKS
26323 CONFIG_COMMANDS = $CONFIG_COMMANDS
26324 $ $0 $@
26326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26329 _ACEOF
26331 case $ac_config_files in *"
26332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26333 esac
26335 case $ac_config_headers in *"
26336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26337 esac
26340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26341 # Files that config.status was made for.
26342 config_files="$ac_config_files"
26343 config_headers="$ac_config_headers"
26344 config_commands="$ac_config_commands"
26346 _ACEOF
26348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26349 ac_cs_usage="\
26350 \`$as_me' instantiates files and other configuration actions
26351 from templates according to the current configuration. Unless the files
26352 and actions are specified as TAGs, all are instantiated by default.
26354 Usage: $0 [OPTION]... [TAG]...
26356 -h, --help print this help, then exit
26357 -V, --version print version number and configuration settings, then exit
26358 -q, --quiet, --silent
26359 do not print progress messages
26360 -d, --debug don't remove temporary files
26361 --recheck update $as_me by reconfiguring in the same conditions
26362 --file=FILE[:TEMPLATE]
26363 instantiate the configuration file FILE
26364 --header=FILE[:TEMPLATE]
26365 instantiate the configuration header FILE
26367 Configuration files:
26368 $config_files
26370 Configuration headers:
26371 $config_headers
26373 Configuration commands:
26374 $config_commands
26376 Report bugs to the package provider."
26378 _ACEOF
26379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26380 ac_cs_version="\\
26381 config.status
26382 configured by $0, generated by GNU Autoconf 2.64,
26383 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26385 Copyright (C) 2009 Free Software Foundation, Inc.
26386 This config.status script is free software; the Free Software Foundation
26387 gives unlimited permission to copy, distribute and modify it."
26389 ac_pwd='$ac_pwd'
26390 srcdir='$srcdir'
26391 AWK='$AWK'
26392 test -n "\$AWK" || AWK=awk
26393 _ACEOF
26395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26396 # The default lists apply if the user does not specify any file.
26397 ac_need_defaults=:
26398 while test $# != 0
26400 case $1 in
26401 --*=*)
26402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26404 ac_shift=:
26407 ac_option=$1
26408 ac_optarg=$2
26409 ac_shift=shift
26411 esac
26413 case $ac_option in
26414 # Handling of the options.
26415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26416 ac_cs_recheck=: ;;
26417 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26418 $as_echo "$ac_cs_version"; exit ;;
26419 --debug | --debu | --deb | --de | --d | -d )
26420 debug=: ;;
26421 --file | --fil | --fi | --f )
26422 $ac_shift
26423 case $ac_optarg in
26424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26425 esac
26426 as_fn_append CONFIG_FILES " '$ac_optarg'"
26427 ac_need_defaults=false;;
26428 --header | --heade | --head | --hea )
26429 $ac_shift
26430 case $ac_optarg in
26431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26432 esac
26433 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26434 ac_need_defaults=false;;
26435 --he | --h)
26436 # Conflict between --help and --header
26437 as_fn_error "ambiguous option: \`$1'
26438 Try \`$0 --help' for more information.";;
26439 --help | --hel | -h )
26440 $as_echo "$ac_cs_usage"; exit ;;
26441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26442 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26443 ac_cs_silent=: ;;
26445 # This is an error.
26446 -*) as_fn_error "unrecognized option: \`$1'
26447 Try \`$0 --help' for more information." ;;
26449 *) as_fn_append ac_config_targets " $1"
26450 ac_need_defaults=false ;;
26452 esac
26453 shift
26454 done
26456 ac_configure_extra_args=
26458 if $ac_cs_silent; then
26459 exec 6>/dev/null
26460 ac_configure_extra_args="$ac_configure_extra_args --silent"
26463 _ACEOF
26464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26465 if \$ac_cs_recheck; then
26466 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26467 shift
26468 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26469 CONFIG_SHELL='$SHELL'
26470 export CONFIG_SHELL
26471 exec "\$@"
26474 _ACEOF
26475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26476 exec 5>>config.log
26478 echo
26479 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26480 ## Running $as_me. ##
26481 _ASBOX
26482 $as_echo "$ac_log"
26483 } >&5
26485 _ACEOF
26486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26488 # INIT-COMMANDS
26490 subdirs='$subdirs'
26492 _ACEOF
26494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26496 # Handling of arguments.
26497 for ac_config_target in $ac_config_targets
26499 case $ac_config_target in
26500 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26501 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26502 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26503 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26504 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26505 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26507 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26508 esac
26509 done
26512 # If the user did not use the arguments to specify the items to instantiate,
26513 # then the envvar interface is used. Set only those that are not.
26514 # We use the long form for the default assignment because of an extremely
26515 # bizarre bug on SunOS 4.1.3.
26516 if $ac_need_defaults; then
26517 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26518 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26522 # Have a temporary directory for convenience. Make it in the build tree
26523 # simply because there is no reason against having it here, and in addition,
26524 # creating and moving files from /tmp can sometimes cause problems.
26525 # Hook for its removal unless debugging.
26526 # Note that there is a small window in which the directory will not be cleaned:
26527 # after its creation but before its name has been assigned to `$tmp'.
26528 $debug ||
26530 tmp=
26531 trap 'exit_status=$?
26532 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26534 trap 'as_fn_exit 1' 1 2 13 15
26536 # Create a (secure) tmp directory for tmp files.
26539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26540 test -n "$tmp" && test -d "$tmp"
26541 } ||
26543 tmp=./conf$$-$RANDOM
26544 (umask 077 && mkdir "$tmp")
26545 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26547 # Set up the scripts for CONFIG_FILES section.
26548 # No need to generate them if there are no CONFIG_FILES.
26549 # This happens for instance with `./config.status config.h'.
26550 if test -n "$CONFIG_FILES"; then
26552 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26553 ac_cs_awk_getline=:
26554 ac_cs_awk_pipe_init=
26555 ac_cs_awk_read_file='
26556 while ((getline aline < (F[key])) > 0)
26557 print(aline)
26558 close(F[key])'
26559 ac_cs_awk_pipe_fini=
26560 else
26561 ac_cs_awk_getline=false
26562 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26563 ac_cs_awk_read_file='
26564 print "|#_!!_#|"
26565 print "cat " F[key] " &&"
26566 '$ac_cs_awk_pipe_init
26567 # The final `:' finishes the AND list.
26568 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26570 ac_cr=`echo X | tr X '\015'`
26571 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26572 # But we know of no other shell where ac_cr would be empty at this
26573 # point, so we can use a bashism as a fallback.
26574 if test "x$ac_cr" = x; then
26575 eval ac_cr=\$\'\\r\'
26577 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26578 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26579 ac_cs_awk_cr='\r'
26580 else
26581 ac_cs_awk_cr=$ac_cr
26584 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26585 _ACEOF
26587 # Create commands to substitute file output variables.
26589 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26590 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26591 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26592 echo "_ACAWK" &&
26593 echo "_ACEOF"
26594 } >conf$$files.sh &&
26595 . ./conf$$files.sh ||
26596 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26597 rm -f conf$$files.sh
26600 echo "cat >conf$$subs.awk <<_ACEOF" &&
26601 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26602 echo "_ACEOF"
26603 } >conf$$subs.sh ||
26604 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26605 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26606 ac_delim='%!_!# '
26607 for ac_last_try in false false false false false :; do
26608 . ./conf$$subs.sh ||
26609 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26611 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26612 if test $ac_delim_n = $ac_delim_num; then
26613 break
26614 elif $ac_last_try; then
26615 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26616 else
26617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26619 done
26620 rm -f conf$$subs.sh
26622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26623 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26624 _ACEOF
26625 sed -n '
26627 s/^/S["/; s/!.*/"]=/
26630 s/^[^!]*!//
26631 :repl
26632 t repl
26633 s/'"$ac_delim"'$//
26634 t delim
26637 s/\(.\{148\}\).*/\1/
26638 t more1
26639 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26642 b repl
26643 :more1
26644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26647 s/.\{148\}//
26648 t nl
26649 :delim
26651 s/\(.\{148\}\).*/\1/
26652 t more2
26653 s/["\\]/\\&/g; s/^/"/; s/$/"/
26656 :more2
26657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26660 s/.\{148\}//
26661 t delim
26662 ' <conf$$subs.awk | sed '
26663 /^[^""]/{
26665 s/\n//
26667 ' >>$CONFIG_STATUS || ac_write_fail=1
26668 rm -f conf$$subs.awk
26669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26670 _ACAWK
26671 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26672 for (key in S) S_is_set[key] = 1
26673 FS = "\a"
26674 \$ac_cs_awk_pipe_init
26677 line = $ 0
26678 nfields = split(line, field, "@")
26679 substed = 0
26680 len = length(field[1])
26681 for (i = 2; i < nfields; i++) {
26682 key = field[i]
26683 keylen = length(key)
26684 if (S_is_set[key]) {
26685 value = S[key]
26686 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26687 len += length(value) + length(field[++i])
26688 substed = 1
26689 } else
26690 len += 1 + keylen
26692 if (nfields == 3 && !substed) {
26693 key = field[2]
26694 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26695 \$ac_cs_awk_read_file
26696 next
26699 print line
26701 \$ac_cs_awk_pipe_fini
26702 _ACAWK
26703 _ACEOF
26704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26705 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26706 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26707 else
26709 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26710 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26711 _ACEOF
26713 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26714 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26715 # trailing colons and then remove the whole line if VPATH becomes empty
26716 # (actually we leave an empty line to preserve line numbers).
26717 if test "x$srcdir" = x.; then
26718 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26719 s/:*\$(srcdir):*/:/
26720 s/:*\${srcdir}:*/:/
26721 s/:*@srcdir@:*/:/
26722 s/^\([^=]*=[ ]*\):*/\1/
26723 s/:*$//
26724 s/^[^=]*=[ ]*$//
26728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26729 fi # test -n "$CONFIG_FILES"
26731 # Set up the scripts for CONFIG_HEADERS section.
26732 # No need to generate them if there are no CONFIG_HEADERS.
26733 # This happens for instance with `./config.status Makefile'.
26734 if test -n "$CONFIG_HEADERS"; then
26735 cat >"$tmp/defines.awk" <<\_ACAWK ||
26736 BEGIN {
26737 _ACEOF
26739 # Transform confdefs.h into an awk script `defines.awk', embedded as
26740 # here-document in config.status, that substitutes the proper values into
26741 # config.h.in to produce config.h.
26743 # Create a delimiter string that does not exist in confdefs.h, to ease
26744 # handling of long lines.
26745 ac_delim='%!_!# '
26746 for ac_last_try in false false :; do
26747 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26748 if test -z "$ac_t"; then
26749 break
26750 elif $ac_last_try; then
26751 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26752 else
26753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26755 done
26757 # For the awk script, D is an array of macro values keyed by name,
26758 # likewise P contains macro parameters if any. Preserve backslash
26759 # newline sequences.
26761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26762 sed -n '
26763 s/.\{148\}/&'"$ac_delim"'/g
26764 t rset
26765 :rset
26766 s/^[ ]*#[ ]*define[ ][ ]*/ /
26767 t def
26769 :def
26770 s/\\$//
26771 t bsnl
26772 s/["\\]/\\&/g
26773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26774 D["\1"]=" \3"/p
26775 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26777 :bsnl
26778 s/["\\]/\\&/g
26779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26780 D["\1"]=" \3\\\\\\n"\\/p
26781 t cont
26782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26783 t cont
26785 :cont
26787 s/.\{148\}/&'"$ac_delim"'/g
26788 t clear
26789 :clear
26790 s/\\$//
26791 t bsnlc
26792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26794 :bsnlc
26795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26796 b cont
26797 ' <confdefs.h | sed '
26798 s/'"$ac_delim"'/"\\\
26799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26802 for (key in D) D_is_set[key] = 1
26803 FS = "\a"
26805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26806 line = \$ 0
26807 split(line, arg, " ")
26808 if (arg[1] == "#") {
26809 defundef = arg[2]
26810 mac1 = arg[3]
26811 } else {
26812 defundef = substr(arg[1], 2)
26813 mac1 = arg[2]
26815 split(mac1, mac2, "(") #)
26816 macro = mac2[1]
26817 prefix = substr(line, 1, index(line, defundef) - 1)
26818 if (D_is_set[macro]) {
26819 # Preserve the white space surrounding the "#".
26820 print prefix "define", macro P[macro] D[macro]
26821 next
26822 } else {
26823 # Replace #undef with comments. This is necessary, for example,
26824 # in the case of _POSIX_SOURCE, which is predefined and required
26825 # on some systems where configure will not decide to define it.
26826 if (defundef == "undef") {
26827 print "/*", prefix defundef, macro, "*/"
26828 next
26832 { print }
26833 _ACAWK
26834 _ACEOF
26835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26836 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26837 fi # test -n "$CONFIG_HEADERS"
26840 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26841 shift
26842 for ac_tag
26844 case $ac_tag in
26845 :[FHLC]) ac_mode=$ac_tag; continue;;
26846 esac
26847 case $ac_mode$ac_tag in
26848 :[FHL]*:*);;
26849 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26850 :[FH]-) ac_tag=-:-;;
26851 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26852 esac
26853 ac_save_IFS=$IFS
26854 IFS=:
26855 set x $ac_tag
26856 IFS=$ac_save_IFS
26857 shift
26858 ac_file=$1
26859 shift
26861 case $ac_mode in
26862 :L) ac_source=$1;;
26863 :[FH])
26864 ac_file_inputs=
26865 for ac_f
26867 case $ac_f in
26868 -) ac_f="$tmp/stdin";;
26869 *) # Look for the file first in the build tree, then in the source tree
26870 # (if the path is not absolute). The absolute path cannot be DOS-style,
26871 # because $ac_f cannot contain `:'.
26872 test -f "$ac_f" ||
26873 case $ac_f in
26874 [\\/$]*) false;;
26875 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26876 esac ||
26877 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26878 esac
26879 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26880 as_fn_append ac_file_inputs " '$ac_f'"
26881 done
26883 # Let's still pretend it is `configure' which instantiates (i.e., don't
26884 # use $as_me), people would be surprised to read:
26885 # /* config.h. Generated by config.status. */
26886 configure_input='Generated from '`
26887 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26888 `' by configure.'
26889 if test x"$ac_file" != x-; then
26890 configure_input="$ac_file. $configure_input"
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26892 $as_echo "$as_me: creating $ac_file" >&6;}
26894 # Neutralize special characters interpreted by sed in replacement strings.
26895 case $configure_input in #(
26896 *\&* | *\|* | *\\* )
26897 ac_sed_conf_input=`$as_echo "$configure_input" |
26898 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26899 *) ac_sed_conf_input=$configure_input;;
26900 esac
26902 case $ac_tag in
26903 *:-:* | *:-) cat >"$tmp/stdin" \
26904 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26905 esac
26907 esac
26909 ac_dir=`$as_dirname -- "$ac_file" ||
26910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26911 X"$ac_file" : 'X\(//\)[^/]' \| \
26912 X"$ac_file" : 'X\(//\)$' \| \
26913 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26914 $as_echo X"$ac_file" |
26915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26916 s//\1/
26919 /^X\(\/\/\)[^/].*/{
26920 s//\1/
26923 /^X\(\/\/\)$/{
26924 s//\1/
26927 /^X\(\/\).*/{
26928 s//\1/
26931 s/.*/./; q'`
26932 as_dir="$ac_dir"; as_fn_mkdir_p
26933 ac_builddir=.
26935 case "$ac_dir" in
26936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26938 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26939 # A ".." for each directory in $ac_dir_suffix.
26940 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26941 case $ac_top_builddir_sub in
26942 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26943 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26944 esac ;;
26945 esac
26946 ac_abs_top_builddir=$ac_pwd
26947 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26948 # for backward compatibility:
26949 ac_top_builddir=$ac_top_build_prefix
26951 case $srcdir in
26952 .) # We are building in place.
26953 ac_srcdir=.
26954 ac_top_srcdir=$ac_top_builddir_sub
26955 ac_abs_top_srcdir=$ac_pwd ;;
26956 [\\/]* | ?:[\\/]* ) # Absolute name.
26957 ac_srcdir=$srcdir$ac_dir_suffix;
26958 ac_top_srcdir=$srcdir
26959 ac_abs_top_srcdir=$srcdir ;;
26960 *) # Relative name.
26961 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26962 ac_top_srcdir=$ac_top_build_prefix$srcdir
26963 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26964 esac
26965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26968 case $ac_mode in
26971 # CONFIG_FILE
26974 _ACEOF
26976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26977 # If the template does not know about datarootdir, expand it.
26978 # FIXME: This hack should be removed a few years after 2.60.
26979 ac_datarootdir_hack=; ac_datarootdir_seen=
26980 ac_sed_dataroot='
26981 /datarootdir/ {
26985 /@datadir@/p
26986 /@docdir@/p
26987 /@infodir@/p
26988 /@localedir@/p
26989 /@mandir@/p'
26990 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26991 *datarootdir*) ac_datarootdir_seen=yes;;
26992 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26994 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26995 _ACEOF
26996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26997 ac_datarootdir_hack='
26998 s&@datadir@&$datadir&g
26999 s&@docdir@&$docdir&g
27000 s&@infodir@&$infodir&g
27001 s&@localedir@&$localedir&g
27002 s&@mandir@&$mandir&g
27003 s&\\\${datarootdir}&$datarootdir&g' ;;
27004 esac
27005 _ACEOF
27007 # Neutralize VPATH when `$srcdir' = `.'.
27008 # Shell code in configure.ac might set extrasub.
27009 # FIXME: do we really want to maintain this feature?
27010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27011 ac_sed_extra="$ac_vpsub
27012 $extrasub
27013 _ACEOF
27014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27017 s|@configure_input@|$ac_sed_conf_input|;t t
27018 s&@top_builddir@&$ac_top_builddir_sub&;t t
27019 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27020 s&@srcdir@&$ac_srcdir&;t t
27021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27022 s&@top_srcdir@&$ac_top_srcdir&;t t
27023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27024 s&@builddir@&$ac_builddir&;t t
27025 s&@abs_builddir@&$ac_abs_builddir&;t t
27026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27027 $ac_datarootdir_hack
27029 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27030 if $ac_cs_awk_getline; then
27031 $AWK -f "$tmp/subs.awk"
27032 else
27033 $AWK -f "$tmp/subs.awk" | $SHELL
27034 fi >$tmp/out \
27035 || as_fn_error "could not create $ac_file" "$LINENO" 5
27037 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27038 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27039 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27041 which seems to be undefined. Please make sure it is defined." >&5
27042 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27043 which seems to be undefined. Please make sure it is defined." >&2;}
27045 rm -f "$tmp/stdin"
27046 case $ac_file in
27047 -) cat "$tmp/out" && rm -f "$tmp/out";;
27048 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27049 esac \
27050 || as_fn_error "could not create $ac_file" "$LINENO" 5
27054 # CONFIG_HEADER
27056 if test x"$ac_file" != x-; then
27058 $as_echo "/* $configure_input */" \
27059 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27060 } >"$tmp/config.h" \
27061 || as_fn_error "could not create $ac_file" "$LINENO" 5
27062 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27064 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27065 else
27066 rm -f "$ac_file"
27067 mv "$tmp/config.h" "$ac_file" \
27068 || as_fn_error "could not create $ac_file" "$LINENO" 5
27070 else
27071 $as_echo "/* $configure_input */" \
27072 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27073 || as_fn_error "could not create -" "$LINENO" 5
27077 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27078 $as_echo "$as_me: executing $ac_file commands" >&6;}
27080 esac
27083 case $ac_file$ac_mode in
27084 "as":F) chmod +x as ;;
27085 "collect-ld":F) chmod +x collect-ld ;;
27086 "nm":F) chmod +x nm ;;
27087 "default":C)
27088 case ${CONFIG_HEADERS} in
27089 *auto-host.h:config.in*)
27090 echo > cstamp-h ;;
27091 esac
27092 # Make sure all the subdirs exist.
27093 for d in $subdirs doc build c-family
27095 test -d $d || mkdir $d
27096 done
27099 esac
27100 done # for ac_tag
27103 as_fn_exit 0
27104 _ACEOF
27105 ac_clean_files=$ac_clean_files_save
27107 test $ac_write_fail = 0 ||
27108 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27111 # configure is writing to config.log, and then calls config.status.
27112 # config.status does its own redirection, appending to config.log.
27113 # Unfortunately, on DOS this fails, as config.log is still kept open
27114 # by configure, so config.status won't be able to write to it; its
27115 # output is simply discarded. So we exec the FD to /dev/null,
27116 # effectively closing config.log, so it can be properly (re)opened and
27117 # appended to by config.status. When coming back to configure, we
27118 # need to make the FD available again.
27119 if test "$no_create" != yes; then
27120 ac_cs_success=:
27121 ac_config_status_args=
27122 test "$silent" = yes &&
27123 ac_config_status_args="$ac_config_status_args --quiet"
27124 exec 5>/dev/null
27125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27126 exec 5>>config.log
27127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27128 # would make configure fail if this is the last instruction.
27129 $ac_cs_success || as_fn_exit $?
27131 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27133 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}