2012-12-01 Alessandro Fanfarillo <alessandro.fanfarillo@gmail.com>
[official-gcc.git] / gcc / configure
blobe2c119e735a2b2ae99c4cc1ec0ad95051ac7d91b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
700 FGREP
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
754 LN_S
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 with_float
769 with_cpu
770 enable_multiarch
771 enable_multilib
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 noexception_flags
779 warn_cxxflags
780 warn_cflags
781 c_strict_warn
782 strict_warn
783 c_loose_warn
784 loose_warn
785 EGREP
786 GREP
788 PICFLAG_FOR_TARGET
789 OUTPUT_OPTION
790 NO_MINUS_C_MINUS_O
791 GNATMAKE
792 GNATBIND
793 ac_ct_CXX
794 CXXFLAGS
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
803 GENINSRC
804 target_subdir
805 host_subdir
806 build_subdir
807 build_libsubdir
808 target_noncanonical
809 target_os
810 target_vendor
811 target_cpu
812 target
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files='option_includes
860 language_hooks'
861 ac_user_opts='
862 enable_option_checking
863 with_build_libsubdir
864 with_local_prefix
865 with_gxx_include_dir
866 with_cpp_install_dir
867 enable_generated_files_in_srcdir
868 with_gnu_ld
869 with_ld
870 with_demangler_in_ld
871 with_gnu_as
872 with_as
873 enable_largefile
874 enable_werror_always
875 enable_checking
876 enable_coverage
877 enable_gather_detailed_mem_stats
878 with_stabs
879 enable_multilib
880 enable_multiarch
881 enable___cxa_atexit
882 enable_decimal_float
883 enable_fixed_point
884 enable_threads
885 enable_tls
886 enable_objc_gc
887 with_dwarf2
888 enable_shared
889 with_native_system_header_dir
890 with_build_sysroot
891 with_sysroot
892 with_specs
893 with_pkgversion
894 with_bugurl
895 enable_languages
896 with_multilib_list
897 enable_rpath
898 with_libiconv_prefix
899 enable_sjlj_exceptions
900 enable_secureplt
901 enable_leading_mingw64_underscores
902 enable_cld
903 enable_frame_pointer
904 enable_win32_registry
905 enable_static
906 with_pic
907 enable_fast_install
908 enable_libtool_lock
909 with_plugin_ld
910 enable_gnu_indirect_function
911 enable_initfini_array
912 enable_comdat
913 enable_gnu_unique_object
914 enable_linker_build_id
915 with_long_double_128
916 with_gc
917 with_system_zlib
918 enable_maintainer_mode
919 enable_version_specific_runtime_libs
920 enable_plugin
921 enable_libquadmath_support
922 with_linker_hash_style
924 ac_precious_vars='build_alias
925 host_alias
926 target_alias
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
933 CXXFLAGS
936 CXXCPP
937 GMPLIBS
938 GMPINC
939 ISLLIBS
940 ISLINC
941 CLOOGLIBS
942 CLOOGINC'
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
993 ac_prev=
994 ac_dashdash=
995 for ac_option
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1000 ac_prev=
1001 continue
1004 case $ac_option in
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *) ac_optarg=yes ;;
1007 esac
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1013 ac_dashdash=yes ;;
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1035 -datadir | --datadir | --datadi | --datad)
1036 ac_prev=datadir ;;
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=no ;;
1063 -docdir | --docdir | --docdi | --doc | --do)
1064 ac_prev=docdir ;;
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 ac_prev=dvidir ;;
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1073 -enable-* | --enable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1277 -with-* | --with-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=\$ac_optarg ;;
1293 -without-* | --without-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=no ;;
1309 --x)
1310 # Obsolete; use --with-x.
1311 with_x=yes ;;
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1327 -*) as_fn_error "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information."
1331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' | [0-9]* | *[!_$as_cr_alnum]* )
1336 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1337 esac
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 esac
1350 done
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error "missing argument to $ac_option"
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
1360 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 esac
1365 # Check all directory arguments for consistency.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val=\$$ac_var
1372 # Remove trailing slashes.
1373 case $ac_val in
1374 */ )
1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\$ac_val;;
1377 esac
1378 # Be sure to have absolute directory names.
1379 case $ac_val in
1380 [\\/$]* | ?:[\\/]* ) continue;;
1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382 esac
1383 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1384 done
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
1397 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398 If a cross compiler is detected then cross compile mode will be used." >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1400 cross_compiling=yes
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407 test "$silent" = yes && exec 6>/dev/null
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error "pwd does not report name of working directory"
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1436 /^X\(\/\/\)$/{
1437 s//\1/
1440 /^X\(\/\).*/{
1441 s//\1/
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1449 else
1450 ac_srcdir_defaulted=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459 pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1478 # Report the --help message.
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1483 cat <<_ACEOF
1484 \`configure' configures this package to adapt to many kinds of systems.
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1491 Defaults for the options are specified in brackets.
1493 Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 [PREFIX]
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1515 For better control, use the options below.
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1537 _ACEOF
1539 cat <<\_ACEOF
1541 Program names:
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 --target=TARGET configure for building compilers for TARGET [HOST]
1550 _ACEOF
1553 if test -n "$ac_init_help"; then
1555 cat <<\_ACEOF
1557 Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-generated-files-in-srcdir
1562 put copies of generated files in source dir intended
1563 for creating source tarballs for users without
1564 texinfo bison or flex
1565 --disable-largefile omit support for large files
1566 --enable-werror-always enable -Werror despite compiler version
1567 --enable-checking[=LIST]
1568 enable expensive run-time checks. With LIST, enable
1569 only specific categories of checks. Categories are:
1570 yes,no,all,none,release. Flags are:
1571 assert,df,fold,gc,gcac,gimple,misc,
1572 rtlflag,rtl,runtime,tree,valgrind,types
1573 --enable-coverage[=LEVEL]
1574 enable compiler's code coverage collection. Use to
1575 measure compiler performance and locate unused parts
1576 of the compiler. With LEVEL, specify optimization.
1577 Values are opt, noopt, default is noopt
1578 --enable-gather-detailed-mem-stats
1579 enable detailed memory allocation stats gathering
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-multiarch enable support for multiarch paths
1582 --enable-__cxa_atexit enable __cxa_atexit for C++
1583 --enable-decimal-float={no,yes,bid,dpd}
1584 enable decimal float extension to C. Selecting 'bid'
1585 or 'dpd' choses which decimal floating point format
1586 to use
1587 --enable-fixed-point enable fixed-point arithmetic extension to C
1588 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1589 package
1590 --enable-tls enable or disable generation of tls code overriding
1591 the assembler check for tls support
1592 --enable-objc-gc enable the use of Boehm's garbage collector with the
1593 GNU Objective-C runtime
1594 --disable-shared don't provide a shared libgcc
1595 --enable-languages=LIST specify which front-ends to build
1596 --disable-rpath do not hardcode runtime library paths
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1605 --disable-win32-registry
1606 disable lookup of installation paths in the Registry
1607 on Windows hosts
1608 --enable-win32-registry enable registry lookup (default)
1609 --enable-win32-registry=KEY
1610 use KEY instead of GCC version as the last portion
1611 of the registry key
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gnu-indirect-function
1618 enable the use of the @gnu_indirect_function to
1619 glibc systems
1620 --enable-initfini-array use .init_array/.fini_array sections
1621 --enable-comdat enable COMDAT group support
1622 --enable-gnu-unique-object
1623 enable the use of the @gnu_unique_object ELF
1624 extension on glibc systems
1625 --enable-linker-build-id
1626 compiler will always pass --build-id to linker
1627 --enable-maintainer-mode
1628 enable make rules and dependencies not useful (and
1629 sometimes confusing) to the casual installer
1630 --enable-version-specific-runtime-libs
1631 specify that runtime libraries should be installed
1632 in a compiler-specific directory
1633 --enable-plugin enable plugin support
1634 --disable-libquadmath-support
1635 disable libquadmath support for Fortran
1637 Optional Packages:
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-build-libsubdir=DIR Directory where to find libraries for build system
1641 --with-local-prefix=DIR specifies directory to put local include
1642 --with-gxx-include-dir=DIR
1643 specifies directory to put g++ header files
1644 --with-cpp-install-dir=DIR
1645 install the user visible C preprocessor in DIR
1646 (relative to PREFIX) as well as PREFIX/bin
1647 --with-gnu-ld arrange to work with GNU ld
1648 --with-ld arrange to use the specified ld (full pathname)
1649 --with-demangler-in-ld try to use demangler in GNU ld
1650 --with-gnu-as arrange to work with GNU as
1651 --with-as arrange to use the specified as (full pathname)
1652 --with-stabs arrange to use stabs instead of host debug format
1653 --with-dwarf2 force the default debug format to be DWARF 2
1654 --with-native-system-header-dir=dir
1655 use dir as the directory to look for standard
1656 system header files in. Defaults to /usr/include.
1657 --with-build-sysroot=sysroot
1658 use sysroot as the system root during the build
1659 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1660 --with-specs=SPECS add SPECS to driver command-line processing
1661 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1662 --with-bugurl=URL Direct users to URL to report a bug
1663 --with-multilib-list select multilibs (SH and x86-64 only)
1664 --with-gnu-ld assume the C compiler uses GNU ld default=no
1665 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1666 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1667 --with-pic try to use only PIC/non-PIC objects [default=use
1668 both]
1669 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1670 --with-plugin-ld=[ARG] specify the plugin linker
1671 --with-long-double-128 use 128-bit long double by default
1672 --with-gc={page,zone} choose the garbage collection mechanism to use with
1673 the compiler
1674 --with-system-zlib use installed libz
1675 --with-linker-hash-style={sysv,gnu,both}
1676 specify the linker hash style
1678 Some influential environment variables:
1679 CC C compiler command
1680 CFLAGS C compiler flags
1681 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1682 nonstandard directory <lib dir>
1683 LIBS libraries to pass to the linker, e.g. -l<library>
1684 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1685 you have headers in a nonstandard directory <include dir>
1686 CXX C++ compiler command
1687 CXXFLAGS C++ compiler flags
1688 CPP C preprocessor
1689 CXXCPP C++ preprocessor
1690 GMPLIBS How to link GMP
1691 GMPINC How to find GMP include files
1692 ISLLIBS How to link ISL
1693 ISLINC How to find ISL include files
1694 CLOOGLIBS How to link CLOOG
1695 CLOOGINC How to find CLOOG include files
1697 Use these variables to override the choices made by `configure' or to help
1698 it to find libraries and programs with nonstandard names/locations.
1700 Report bugs to the package provider.
1701 _ACEOF
1702 ac_status=$?
1705 if test "$ac_init_help" = "recursive"; then
1706 # If there are subdirs, report their specific --help.
1707 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1708 test -d "$ac_dir" ||
1709 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 continue
1711 ac_builddir=.
1713 case "$ac_dir" in
1714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717 # A ".." for each directory in $ac_dir_suffix.
1718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719 case $ac_top_builddir_sub in
1720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722 esac ;;
1723 esac
1724 ac_abs_top_builddir=$ac_pwd
1725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726 # for backward compatibility:
1727 ac_top_builddir=$ac_top_build_prefix
1729 case $srcdir in
1730 .) # We are building in place.
1731 ac_srcdir=.
1732 ac_top_srcdir=$ac_top_builddir_sub
1733 ac_abs_top_srcdir=$ac_pwd ;;
1734 [\\/]* | ?:[\\/]* ) # Absolute name.
1735 ac_srcdir=$srcdir$ac_dir_suffix;
1736 ac_top_srcdir=$srcdir
1737 ac_abs_top_srcdir=$srcdir ;;
1738 *) # Relative name.
1739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740 ac_top_srcdir=$ac_top_build_prefix$srcdir
1741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1742 esac
1743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1745 cd "$ac_dir" || { ac_status=$?; continue; }
1746 # Check for guested configure.
1747 if test -f "$ac_srcdir/configure.gnu"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750 elif test -f "$ac_srcdir/configure"; then
1751 echo &&
1752 $SHELL "$ac_srcdir/configure" --help=recursive
1753 else
1754 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755 fi || ac_status=$?
1756 cd "$ac_pwd" || { ac_status=$?; break; }
1757 done
1760 test -n "$ac_init_help" && exit $ac_status
1761 if $ac_init_version; then
1762 cat <<\_ACEOF
1763 configure
1764 generated by GNU Autoconf 2.64
1766 Copyright (C) 2009 Free Software Foundation, Inc.
1767 This configure script is free software; the Free Software Foundation
1768 gives unlimited permission to copy, distribute and modify it.
1769 _ACEOF
1770 exit
1773 ## ------------------------ ##
1774 ## Autoconf initialization. ##
1775 ## ------------------------ ##
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext
1784 if { { ac_try="$ac_compile"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_compile") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest.$ac_objext; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=1
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 return $ac_retval
1813 } # ac_fn_c_try_compile
1815 # ac_fn_cxx_try_compile LINENO
1816 # ----------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_cxx_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=1
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 return $ac_retval
1851 } # ac_fn_cxx_try_compile
1853 # ac_fn_c_try_cpp LINENO
1854 # ----------------------
1855 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_cpp ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_cpp conftest.$ac_ext"
1860 case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1867 ac_status=$?
1868 if test -s conftest.err; then
1869 grep -v '^ *+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } >/dev/null && {
1875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1876 test ! -s conftest.err
1877 }; then :
1878 ac_retval=0
1879 else
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=1
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 return $ac_retval
1888 } # ac_fn_c_try_cpp
1890 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1893 # the include files in INCLUDES and setting the cache variable VAR
1894 # accordingly.
1895 ac_fn_c_check_header_mongrel ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902 $as_echo_n "(cached) " >&6
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 else
1908 # Is the header compilable?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1910 $as_echo_n "checking $2 usability... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 ac_header_compiler=yes
1918 else
1919 ac_header_compiler=no
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1923 $as_echo "$ac_header_compiler" >&6; }
1925 # Is the header present?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1927 $as_echo_n "checking $2 presence... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_cpp "$LINENO"; then :
1933 ac_header_preproc=yes
1934 else
1935 ac_header_preproc=no
1937 rm -f conftest.err conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1939 $as_echo "$ac_header_preproc" >&6; }
1941 # So? What about this header?
1942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1943 yes:no: )
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1945 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949 no:yes:* )
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1951 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1953 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1955 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1957 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 esac
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 eval "$3=\$ac_header_compiler"
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 } # ac_fn_c_check_header_mongrel
1977 # ac_fn_c_try_run LINENO
1978 # ----------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1980 # that executables *can* be run.
1981 ac_fn_c_try_run ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if { { ac_try="$ac_link"
1985 case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_link") 2>&5
1992 ac_status=$?
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1995 { { case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_try") 2>&5
2002 ac_status=$?
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; }; }; then :
2005 ac_retval=0
2006 else
2007 $as_echo "$as_me: program exited with status $ac_status" >&5
2008 $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2011 ac_retval=$ac_status
2013 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2014 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 return $ac_retval
2017 } # ac_fn_c_try_run
2019 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2020 # -------------------------------------------------------
2021 # Tests whether HEADER exists and can be compiled using the include files in
2022 # INCLUDES, setting the cache variable VAR accordingly.
2023 ac_fn_c_check_header_compile ()
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029 $as_echo_n "(cached) " >&6
2030 else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2034 #include <$2>
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$3=yes"
2038 else
2039 eval "$3=no"
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 } # ac_fn_c_check_header_compile
2050 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2051 # --------------------------------------------
2052 # Tries to find the compile-time value of EXPR in a program that includes
2053 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2054 # computed
2055 ac_fn_c_compute_int ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 if test "$cross_compiling" = yes; then
2059 # Depending upon the size, compute the lo and hi bounds.
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2064 main ()
2066 static int test_array [1 - 2 * !(($2) >= 0)];
2067 test_array [0] = 0
2070 return 0;
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074 ac_lo=0 ac_mid=0
2075 while :; do
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2083 test_array [0] = 0
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_hi=$ac_mid; break
2091 else
2092 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2093 if test $ac_lo -le $ac_mid; then
2094 ac_lo= ac_hi=
2095 break
2097 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 done
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2106 main ()
2108 static int test_array [1 - 2 * !(($2) < 0)];
2109 test_array [0] = 0
2112 return 0;
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_hi=-1 ac_mid=-1
2117 while :; do
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2125 test_array [0] = 0
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_lo=$ac_mid; break
2133 else
2134 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2135 if test $ac_mid -le $ac_hi; then
2136 ac_lo= ac_hi=
2137 break
2139 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 done
2143 else
2144 ac_lo= ac_hi=
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 # Binary search between lo and hi bounds.
2150 while test "x$ac_lo" != "x$ac_hi"; do
2151 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 main ()
2158 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2159 test_array [0] = 0
2162 return 0;
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_hi=$ac_mid
2167 else
2168 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 done
2172 case $ac_lo in #((
2173 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2174 '') ac_retval=1 ;;
2175 esac
2176 else
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2180 static long int longval () { return $2; }
2181 static unsigned long int ulongval () { return $2; }
2182 #include <stdio.h>
2183 #include <stdlib.h>
2185 main ()
2188 FILE *f = fopen ("conftest.val", "w");
2189 if (! f)
2190 return 1;
2191 if (($2) < 0)
2193 long int i = longval ();
2194 if (i != ($2))
2195 return 1;
2196 fprintf (f, "%ld", i);
2198 else
2200 unsigned long int i = ulongval ();
2201 if (i != ($2))
2202 return 1;
2203 fprintf (f, "%lu", i);
2205 /* Do not output a trailing newline, as this causes \r\n confusion
2206 on some platforms. */
2207 return ferror (f) || fclose (f) != 0;
2210 return 0;
2212 _ACEOF
2213 if ac_fn_c_try_run "$LINENO"; then :
2214 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2215 else
2216 ac_retval=1
2218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2219 conftest.$ac_objext conftest.beam conftest.$ac_ext
2220 rm -f conftest.val
2223 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2224 return $ac_retval
2226 } # ac_fn_c_compute_int
2228 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2229 # -------------------------------------------
2230 # Tests whether TYPE exists after having included INCLUDES, setting cache
2231 # variable VAR accordingly.
2232 ac_fn_c_check_type ()
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2236 $as_echo_n "checking for $2... " >&6; }
2237 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2238 $as_echo_n "(cached) " >&6
2239 else
2240 eval "$3=no"
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 if (sizeof ($2))
2248 return 0;
2250 return 0;
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2258 main ()
2260 if (sizeof (($2)))
2261 return 0;
2263 return 0;
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2268 else
2269 eval "$3=yes"
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 eval ac_res=\$$3
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280 } # ac_fn_c_check_type
2282 # ac_fn_c_find_intX_t LINENO BITS VAR
2283 # -----------------------------------
2284 # Finds a signed integer type with width BITS, setting cache variable VAR
2285 # accordingly.
2286 ac_fn_c_find_intX_t ()
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2290 $as_echo_n "checking for int$2_t... " >&6; }
2291 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2292 $as_echo_n "(cached) " >&6
2293 else
2294 eval "$3=no"
2295 for ac_type in int$2_t 'int' 'long int' \
2296 'long long int' 'short int' 'signed char'; do
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2299 $ac_includes_default
2301 main ()
2303 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2304 test_array [0] = 0
2307 return 0;
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2313 $ac_includes_default
2315 main ()
2317 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2318 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2319 test_array [0] = 0
2322 return 0;
2324 _ACEOF
2325 if ac_fn_c_try_compile "$LINENO"; then :
2327 else
2328 case $ac_type in #(
2329 int$2_t) :
2330 eval "$3=yes" ;; #(
2331 *) :
2332 eval "$3=\$ac_type" ;;
2333 esac
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 eval as_val=\$$3
2339 if test "x$as_val" = x""no; then :
2341 else
2342 break
2344 done
2346 eval ac_res=\$$3
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351 } # ac_fn_c_find_intX_t
2353 # ac_fn_c_try_link LINENO
2354 # -----------------------
2355 # Try to link conftest.$ac_ext, and return whether this succeeded.
2356 ac_fn_c_try_link ()
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 rm -f conftest.$ac_objext conftest$ac_exeext
2360 if { { ac_try="$ac_link"
2361 case "(($ac_try" in
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2364 esac
2365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2366 $as_echo "$ac_try_echo"; } >&5
2367 (eval "$ac_link") 2>conftest.err
2368 ac_status=$?
2369 if test -s conftest.err; then
2370 grep -v '^ *+' conftest.err >conftest.er1
2371 cat conftest.er1 >&5
2372 mv -f conftest.er1 conftest.err
2374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2375 test $ac_status = 0; } && {
2376 test -z "$ac_c_werror_flag" ||
2377 test ! -s conftest.err
2378 } && test -s conftest$ac_exeext && {
2379 test "$cross_compiling" = yes ||
2380 $as_test_x conftest$ac_exeext
2381 }; then :
2382 ac_retval=0
2383 else
2384 $as_echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2387 ac_retval=1
2389 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2390 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2391 # interfere with the next link command; also delete a directory that is
2392 # left behind by Apple's compiler. We do this before executing the actions.
2393 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2394 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2395 return $ac_retval
2397 } # ac_fn_c_try_link
2399 # ac_fn_c_find_uintX_t LINENO BITS VAR
2400 # ------------------------------------
2401 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2402 # accordingly.
2403 ac_fn_c_find_uintX_t ()
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2407 $as_echo_n "checking for uint$2_t... " >&6; }
2408 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2409 $as_echo_n "(cached) " >&6
2410 else
2411 eval "$3=no"
2412 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2413 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2416 $ac_includes_default
2418 main ()
2420 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2421 test_array [0] = 0
2424 return 0;
2426 _ACEOF
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428 case $ac_type in #(
2429 uint$2_t) :
2430 eval "$3=yes" ;; #(
2431 *) :
2432 eval "$3=\$ac_type" ;;
2433 esac
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 eval as_val=\$$3
2437 if test "x$as_val" = x""no; then :
2439 else
2440 break
2442 done
2444 eval ac_res=\$$3
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2446 $as_echo "$ac_res" >&6; }
2447 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449 } # ac_fn_c_find_uintX_t
2451 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2452 # ----------------------------------------------
2453 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2454 ac_fn_c_check_header_preproc ()
2456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2458 $as_echo_n "checking for $2... " >&6; }
2459 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2460 $as_echo_n "(cached) " >&6
2461 else
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2464 #include <$2>
2465 _ACEOF
2466 if ac_fn_c_try_cpp "$LINENO"; then :
2467 eval "$3=yes"
2468 else
2469 eval "$3=no"
2471 rm -f conftest.err conftest.$ac_ext
2473 eval ac_res=\$$3
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478 } # ac_fn_c_check_header_preproc
2480 # ac_fn_cxx_try_cpp LINENO
2481 # ------------------------
2482 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2483 ac_fn_cxx_try_cpp ()
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 if { { ac_try="$ac_cpp conftest.$ac_ext"
2487 case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490 esac
2491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2492 $as_echo "$ac_try_echo"; } >&5
2493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2494 ac_status=$?
2495 if test -s conftest.err; then
2496 grep -v '^ *+' conftest.err >conftest.er1
2497 cat conftest.er1 >&5
2498 mv -f conftest.er1 conftest.err
2500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2501 test $ac_status = 0; } >/dev/null && {
2502 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2503 test ! -s conftest.err
2504 }; then :
2505 ac_retval=0
2506 else
2507 $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2510 ac_retval=1
2512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2513 return $ac_retval
2515 } # ac_fn_cxx_try_cpp
2517 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2518 # ------------------------------------------------
2519 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2520 ac_fn_cxx_check_header_preproc ()
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2524 $as_echo_n "checking for $2... " >&6; }
2525 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2530 #include <$2>
2531 _ACEOF
2532 if ac_fn_cxx_try_cpp "$LINENO"; then :
2533 eval "$3=yes"
2534 else
2535 eval "$3=no"
2537 rm -f conftest.err conftest.$ac_ext
2539 eval ac_res=\$$3
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2541 $as_echo "$ac_res" >&6; }
2542 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2544 } # ac_fn_cxx_check_header_preproc
2546 # ac_fn_c_check_func LINENO FUNC VAR
2547 # ----------------------------------
2548 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2549 ac_fn_c_check_func ()
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553 $as_echo_n "checking for $2... " >&6; }
2554 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2559 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2561 #define $2 innocuous_$2
2563 /* System header to define __stub macros and hopefully few prototypes,
2564 which can conflict with char $2 (); below.
2565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2566 <limits.h> exists even on freestanding compilers. */
2568 #ifdef __STDC__
2569 # include <limits.h>
2570 #else
2571 # include <assert.h>
2572 #endif
2574 #undef $2
2576 /* Override any GCC internal prototype to avoid an error.
2577 Use char because int might match the return type of a GCC
2578 builtin and then its argument prototype would still apply. */
2579 #ifdef __cplusplus
2580 extern "C"
2581 #endif
2582 char $2 ();
2583 /* The GNU C library defines this for functions which it implements
2584 to always fail with ENOSYS. Some functions are actually named
2585 something starting with __ and the normal name is an alias. */
2586 #if defined __stub_$2 || defined __stub___$2
2587 choke me
2588 #endif
2591 main ()
2593 return $2 ();
2595 return 0;
2597 _ACEOF
2598 if ac_fn_c_try_link "$LINENO"; then :
2599 eval "$3=yes"
2600 else
2601 eval "$3=no"
2603 rm -f core conftest.err conftest.$ac_objext \
2604 conftest$ac_exeext conftest.$ac_ext
2606 eval ac_res=\$$3
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611 } # ac_fn_c_check_func
2613 # ac_fn_cxx_try_link LINENO
2614 # -------------------------
2615 # Try to link conftest.$ac_ext, and return whether this succeeded.
2616 ac_fn_cxx_try_link ()
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 rm -f conftest.$ac_objext conftest$ac_exeext
2620 if { { ac_try="$ac_link"
2621 case "(($ac_try" in
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2624 esac
2625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2626 $as_echo "$ac_try_echo"; } >&5
2627 (eval "$ac_link") 2>conftest.err
2628 ac_status=$?
2629 if test -s conftest.err; then
2630 grep -v '^ *+' conftest.err >conftest.er1
2631 cat conftest.er1 >&5
2632 mv -f conftest.er1 conftest.err
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; } && {
2636 test -z "$ac_cxx_werror_flag" ||
2637 test ! -s conftest.err
2638 } && test -s conftest$ac_exeext && {
2639 test "$cross_compiling" = yes ||
2640 $as_test_x conftest$ac_exeext
2641 }; then :
2642 ac_retval=0
2643 else
2644 $as_echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2647 ac_retval=1
2649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2651 # interfere with the next link command; also delete a directory that is
2652 # left behind by Apple's compiler. We do this before executing the actions.
2653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2655 return $ac_retval
2657 } # ac_fn_cxx_try_link
2658 cat >config.log <<_ACEOF
2659 This file contains any messages produced by compilers while
2660 running configure, to aid debugging if configure makes a mistake.
2662 It was created by $as_me, which was
2663 generated by GNU Autoconf 2.64. Invocation command line was
2665 $ $0 $@
2667 _ACEOF
2668 exec 5>>config.log
2670 cat <<_ASUNAME
2671 ## --------- ##
2672 ## Platform. ##
2673 ## --------- ##
2675 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2676 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2677 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2678 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2679 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2681 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2682 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2684 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2685 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2686 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2687 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2688 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2689 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2690 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2692 _ASUNAME
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 $as_echo "PATH: $as_dir"
2700 done
2701 IFS=$as_save_IFS
2703 } >&5
2705 cat >&5 <<_ACEOF
2708 ## ----------- ##
2709 ## Core tests. ##
2710 ## ----------- ##
2712 _ACEOF
2715 # Keep a trace of the command line.
2716 # Strip out --no-create and --no-recursion so they do not pile up.
2717 # Strip out --silent because we don't want to record it for future runs.
2718 # Also quote any args containing shell meta-characters.
2719 # Make two passes to allow for proper duplicate-argument suppression.
2720 ac_configure_args=
2721 ac_configure_args0=
2722 ac_configure_args1=
2723 ac_must_keep_next=false
2724 for ac_pass in 1 2
2726 for ac_arg
2728 case $ac_arg in
2729 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2731 | -silent | --silent | --silen | --sile | --sil)
2732 continue ;;
2733 *\'*)
2734 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2735 esac
2736 case $ac_pass in
2737 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2739 as_fn_append ac_configure_args1 " '$ac_arg'"
2740 if test $ac_must_keep_next = true; then
2741 ac_must_keep_next=false # Got value, back to normal.
2742 else
2743 case $ac_arg in
2744 *=* | --config-cache | -C | -disable-* | --disable-* \
2745 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2746 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2747 | -with-* | --with-* | -without-* | --without-* | --x)
2748 case "$ac_configure_args0 " in
2749 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2750 esac
2752 -* ) ac_must_keep_next=true ;;
2753 esac
2755 as_fn_append ac_configure_args " '$ac_arg'"
2757 esac
2758 done
2759 done
2760 { ac_configure_args0=; unset ac_configure_args0;}
2761 { ac_configure_args1=; unset ac_configure_args1;}
2763 # When interrupted or exit'd, cleanup temporary files, and complete
2764 # config.log. We remove comments because anyway the quotes in there
2765 # would cause problems or look ugly.
2766 # WARNING: Use '\'' to represent an apostrophe within the trap.
2767 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2768 trap 'exit_status=$?
2769 # Save into config.log some information that might help in debugging.
2771 echo
2773 cat <<\_ASBOX
2774 ## ---------------- ##
2775 ## Cache variables. ##
2776 ## ---------------- ##
2777 _ASBOX
2778 echo
2779 # The following way of writing the cache mishandles newlines in values,
2781 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2782 eval ac_val=\$$ac_var
2783 case $ac_val in #(
2784 *${as_nl}*)
2785 case $ac_var in #(
2786 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2787 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2788 esac
2789 case $ac_var in #(
2790 _ | IFS | as_nl) ;; #(
2791 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2792 *) { eval $ac_var=; unset $ac_var;} ;;
2793 esac ;;
2794 esac
2795 done
2796 (set) 2>&1 |
2797 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2798 *${as_nl}ac_space=\ *)
2799 sed -n \
2800 "s/'\''/'\''\\\\'\'''\''/g;
2801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2802 ;; #(
2804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2806 esac |
2807 sort
2809 echo
2811 cat <<\_ASBOX
2812 ## ----------------- ##
2813 ## Output variables. ##
2814 ## ----------------- ##
2815 _ASBOX
2816 echo
2817 for ac_var in $ac_subst_vars
2819 eval ac_val=\$$ac_var
2820 case $ac_val in
2821 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2822 esac
2823 $as_echo "$ac_var='\''$ac_val'\''"
2824 done | sort
2825 echo
2827 if test -n "$ac_subst_files"; then
2828 cat <<\_ASBOX
2829 ## ------------------- ##
2830 ## File substitutions. ##
2831 ## ------------------- ##
2832 _ASBOX
2833 echo
2834 for ac_var in $ac_subst_files
2836 eval ac_val=\$$ac_var
2837 case $ac_val in
2838 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2839 esac
2840 $as_echo "$ac_var='\''$ac_val'\''"
2841 done | sort
2842 echo
2845 if test -s confdefs.h; then
2846 cat <<\_ASBOX
2847 ## ----------- ##
2848 ## confdefs.h. ##
2849 ## ----------- ##
2850 _ASBOX
2851 echo
2852 cat confdefs.h
2853 echo
2855 test "$ac_signal" != 0 &&
2856 $as_echo "$as_me: caught signal $ac_signal"
2857 $as_echo "$as_me: exit $exit_status"
2858 } >&5
2859 rm -f core *.core core.conftest.* &&
2860 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2861 exit $exit_status
2863 for ac_signal in 1 2 13 15; do
2864 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2865 done
2866 ac_signal=0
2868 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2869 rm -f -r conftest* confdefs.h
2871 $as_echo "/* confdefs.h */" > confdefs.h
2873 # Predefined preprocessor variables.
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_NAME "$PACKAGE_NAME"
2877 _ACEOF
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2881 _ACEOF
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2885 _ACEOF
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_STRING "$PACKAGE_STRING"
2889 _ACEOF
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2893 _ACEOF
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_URL "$PACKAGE_URL"
2897 _ACEOF
2900 # Let the site file select an alternate cache file if it wants to.
2901 # Prefer an explicitly selected file to automatically selected ones.
2902 ac_site_file1=NONE
2903 ac_site_file2=NONE
2904 if test -n "$CONFIG_SITE"; then
2905 ac_site_file1=$CONFIG_SITE
2906 elif test "x$prefix" != xNONE; then
2907 ac_site_file1=$prefix/share/config.site
2908 ac_site_file2=$prefix/etc/config.site
2909 else
2910 ac_site_file1=$ac_default_prefix/share/config.site
2911 ac_site_file2=$ac_default_prefix/etc/config.site
2913 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2915 test "x$ac_site_file" = xNONE && continue
2916 if test -r "$ac_site_file"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2918 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2919 sed 's/^/| /' "$ac_site_file" >&5
2920 . "$ac_site_file"
2922 done
2924 if test -r "$cache_file"; then
2925 # Some versions of bash will fail to source /dev/null (special
2926 # files actually), so we avoid doing that.
2927 if test -f "$cache_file"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2929 $as_echo "$as_me: loading cache $cache_file" >&6;}
2930 case $cache_file in
2931 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2932 *) . "./$cache_file";;
2933 esac
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2937 $as_echo "$as_me: creating cache $cache_file" >&6;}
2938 >$cache_file
2941 # Check that the precious variables saved in the cache have kept the same
2942 # value.
2943 ac_cache_corrupted=false
2944 for ac_var in $ac_precious_vars; do
2945 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2946 eval ac_new_set=\$ac_env_${ac_var}_set
2947 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2948 eval ac_new_val=\$ac_env_${ac_var}_value
2949 case $ac_old_set,$ac_new_set in
2950 set,)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2954 ,set)
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2956 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2957 ac_cache_corrupted=: ;;
2958 ,);;
2960 if test "x$ac_old_val" != "x$ac_new_val"; then
2961 # differences in whitespace do not lead to failure.
2962 ac_old_val_w=`echo x $ac_old_val`
2963 ac_new_val_w=`echo x $ac_new_val`
2964 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2966 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2967 ac_cache_corrupted=:
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2970 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2971 eval $ac_var=\$ac_old_val
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2974 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2976 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2977 fi;;
2978 esac
2979 # Pass precious variables to config.status.
2980 if test "$ac_new_set" = set; then
2981 case $ac_new_val in
2982 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2983 *) ac_arg=$ac_var=$ac_new_val ;;
2984 esac
2985 case " $ac_configure_args " in
2986 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2987 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2988 esac
2990 done
2991 if $ac_cache_corrupted; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2995 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2996 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2998 ## -------------------- ##
2999 ## Main body of script. ##
3000 ## -------------------- ##
3002 ac_ext=c
3003 ac_cpp='$CPP $CPPFLAGS'
3004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3016 gcc_version=`cat $srcdir/BASE-VER`
3018 # Determine the host, build, and target systems
3019 ac_aux_dir=
3020 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3021 for ac_t in install-sh install.sh shtool; do
3022 if test -f "$ac_dir/$ac_t"; then
3023 ac_aux_dir=$ac_dir
3024 ac_install_sh="$ac_aux_dir/$ac_t -c"
3025 break 2
3027 done
3028 done
3029 if test -z "$ac_aux_dir"; then
3030 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3033 # These three variables are undocumented and unsupported,
3034 # and are intended to be withdrawn in a future Autoconf release.
3035 # They can cause serious problems if a builder's source tree is in a directory
3036 # whose full name contains unusual characters.
3037 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3038 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3039 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3042 # Make sure we can run config.sub.
3043 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3044 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3047 $as_echo_n "checking build system type... " >&6; }
3048 if test "${ac_cv_build+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 ac_build_alias=$build_alias
3052 test "x$ac_build_alias" = x &&
3053 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3054 test "x$ac_build_alias" = x &&
3055 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3056 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3057 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3061 $as_echo "$ac_cv_build" >&6; }
3062 case $ac_cv_build in
3063 *-*-*) ;;
3064 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3065 esac
3066 build=$ac_cv_build
3067 ac_save_IFS=$IFS; IFS='-'
3068 set x $ac_cv_build
3069 shift
3070 build_cpu=$1
3071 build_vendor=$2
3072 shift; shift
3073 # Remember, the first character of IFS is used to create $*,
3074 # except with old shells:
3075 build_os=$*
3076 IFS=$ac_save_IFS
3077 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3081 $as_echo_n "checking host system type... " >&6; }
3082 if test "${ac_cv_host+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test "x$host_alias" = x; then
3086 ac_cv_host=$ac_cv_build
3087 else
3088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3089 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3094 $as_echo "$ac_cv_host" >&6; }
3095 case $ac_cv_host in
3096 *-*-*) ;;
3097 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3098 esac
3099 host=$ac_cv_host
3100 ac_save_IFS=$IFS; IFS='-'
3101 set x $ac_cv_host
3102 shift
3103 host_cpu=$1
3104 host_vendor=$2
3105 shift; shift
3106 # Remember, the first character of IFS is used to create $*,
3107 # except with old shells:
3108 host_os=$*
3109 IFS=$ac_save_IFS
3110 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3114 $as_echo_n "checking target system type... " >&6; }
3115 if test "${ac_cv_target+set}" = set; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test "x$target_alias" = x; then
3119 ac_cv_target=$ac_cv_host
3120 else
3121 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3122 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3127 $as_echo "$ac_cv_target" >&6; }
3128 case $ac_cv_target in
3129 *-*-*) ;;
3130 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3131 esac
3132 target=$ac_cv_target
3133 ac_save_IFS=$IFS; IFS='-'
3134 set x $ac_cv_target
3135 shift
3136 target_cpu=$1
3137 target_vendor=$2
3138 shift; shift
3139 # Remember, the first character of IFS is used to create $*,
3140 # except with old shells:
3141 target_os=$*
3142 IFS=$ac_save_IFS
3143 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3146 # The aliases save the names the user supplied, while $host etc.
3147 # will get canonicalized.
3148 test -n "$target_alias" &&
3149 test "$program_prefix$program_suffix$program_transform_name" = \
3150 NONENONEs,x,x, &&
3151 program_prefix=${target_alias}-
3153 # Determine the noncanonical target name, for directory use.
3154 case ${build_alias} in
3155 "") build_noncanonical=${build} ;;
3156 *) build_noncanonical=${build_alias} ;;
3157 esac
3159 case ${host_alias} in
3160 "") host_noncanonical=${build_noncanonical} ;;
3161 *) host_noncanonical=${host_alias} ;;
3162 esac
3164 case ${target_alias} in
3165 "") target_noncanonical=${host_noncanonical} ;;
3166 *) target_noncanonical=${target_alias} ;;
3167 esac
3172 # Determine the target- and build-specific subdirectories
3174 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3175 # have matching libraries, they should use host libraries: Makefile.tpl
3176 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3177 # However, they still use the build modules, because the corresponding
3178 # host modules (e.g. bison) are only built for the host when bootstrap
3179 # finishes. So:
3180 # - build_subdir is where we find build modules, and never changes.
3181 # - build_libsubdir is where we find build libraries, and can be overridden.
3183 # Prefix 'build-' so this never conflicts with target_subdir.
3184 build_subdir="build-${build_noncanonical}"
3186 # Check whether --with-build-libsubdir was given.
3187 if test "${with_build_libsubdir+set}" = set; then :
3188 withval=$with_build_libsubdir; build_libsubdir="$withval"
3189 else
3190 build_libsubdir="$build_subdir"
3193 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3194 if ( test $srcdir = . && test -d gcc ) \
3195 || test -d $srcdir/../host-${host_noncanonical}; then
3196 host_subdir="host-${host_noncanonical}"
3197 else
3198 host_subdir=.
3200 # No prefix.
3201 target_subdir=${target_noncanonical}
3204 # Set program_transform_name
3205 test "$program_prefix" != NONE &&
3206 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3207 # Use a double $ so make ignores it.
3208 test "$program_suffix" != NONE &&
3209 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3210 # Double any \ or $.
3211 # By default was `s,x,x', remove it if useless.
3212 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3213 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3216 # Check for bogus environment variables.
3217 # Test if LIBRARY_PATH contains the notation for the current directory
3218 # since this would lead to problems installing/building glibc.
3219 # LIBRARY_PATH contains the current directory if one of the following
3220 # is true:
3221 # - one of the terminals (":" and ";") is the first or last sign
3222 # - two terminals occur directly after each other
3223 # - the path contains an element with a dot in it
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3225 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3226 case ${LIBRARY_PATH} in
3227 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3228 library_path_setting="contains current directory"
3231 library_path_setting="ok"
3233 esac
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3235 $as_echo "$library_path_setting" >&6; }
3236 if test "$library_path_setting" != "ok"; then
3237 as_fn_error "
3238 *** LIBRARY_PATH shouldn't contain the current directory when
3239 *** building gcc. Please change the environment variable
3240 *** and run configure again." "$LINENO" 5
3243 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3244 # since this would lead to problems installing/building glibc.
3245 # GCC_EXEC_PREFIX contains the current directory if one of the following
3246 # is true:
3247 # - one of the terminals (":" and ";") is the first or last sign
3248 # - two terminals occur directly after each other
3249 # - the path contains an element with a dot in it
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3251 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3252 case ${GCC_EXEC_PREFIX} in
3253 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3254 gcc_exec_prefix_setting="contains current directory"
3257 gcc_exec_prefix_setting="ok"
3259 esac
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3261 $as_echo "$gcc_exec_prefix_setting" >&6; }
3262 if test "$gcc_exec_prefix_setting" != "ok"; then
3263 as_fn_error "
3264 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3265 *** building gcc. Please change the environment variable
3266 *** and run configure again." "$LINENO" 5
3269 # -----------
3270 # Directories
3271 # -----------
3273 # Specify the local prefix
3274 local_prefix=
3276 # Check whether --with-local-prefix was given.
3277 if test "${with_local_prefix+set}" = set; then :
3278 withval=$with_local_prefix; case "${withval}" in
3279 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3280 no) ;;
3281 *) local_prefix=$with_local_prefix ;;
3282 esac
3286 # Default local prefix if it is empty
3287 if test x$local_prefix = x; then
3288 local_prefix=/usr/local
3291 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3292 # passed in by the toplevel make and thus we'd get different behavior
3293 # depending on where we built the sources.
3294 gcc_gxx_include_dir=
3295 # Specify the g++ header file directory
3297 # Check whether --with-gxx-include-dir was given.
3298 if test "${with_gxx_include_dir+set}" = set; then :
3299 withval=$with_gxx_include_dir; case "${withval}" in
3300 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3301 no) ;;
3302 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3303 esac
3307 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3308 if test x${gcc_gxx_include_dir} = x; then
3309 if test x${enable_version_specific_runtime_libs} = xyes; then
3310 gcc_gxx_include_dir='${libsubdir}/include/c++'
3311 else
3312 libstdcxx_incdir='include/c++/$(version)'
3313 if test x$host != x$target; then
3314 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3316 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3320 gcc_gxx_include_dir_add_sysroot=0
3321 if test "${with_sysroot+set}" = set; then
3322 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3323 if test "${gcc_gxx_without_sysroot}"; then
3324 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3325 gcc_gxx_include_dir_add_sysroot=1
3330 # Check whether --with-cpp_install_dir was given.
3331 if test "${with_cpp_install_dir+set}" = set; then :
3332 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3333 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3334 elif test x$withval != xno; then
3335 cpp_install_dir=$withval
3340 # We would like to our source tree to be readonly. However when releases or
3341 # pre-releases are generated, the flex/bison generated files as well as the
3342 # various formats of manuals need to be included along with the rest of the
3343 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3344 # just that.
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3347 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3348 # Check whether --enable-generated-files-in-srcdir was given.
3349 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3350 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3351 else
3352 generated_files_in_srcdir=no
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3357 $as_echo "$generated_files_in_srcdir" >&6; }
3359 if test "$generated_files_in_srcdir" = "yes"; then
3360 GENINSRC=''
3361 else
3362 GENINSRC='#'
3366 # -------------------
3367 # Find default linker
3368 # -------------------
3370 # With GNU ld
3372 # Check whether --with-gnu-ld was given.
3373 if test "${with_gnu_ld+set}" = set; then :
3374 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3375 else
3376 gnu_ld_flag=no
3380 # With pre-defined ld
3382 # Check whether --with-ld was given.
3383 if test "${with_ld+set}" = set; then :
3384 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3387 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3388 if test ! -x "$DEFAULT_LINKER"; then
3389 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3390 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3391 gnu_ld_flag=yes
3394 cat >>confdefs.h <<_ACEOF
3395 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3396 _ACEOF
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3401 $as_echo_n "checking whether a default linker was specified... " >&6; }
3402 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3403 if test x"$gnu_ld_flag" = x"no"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3405 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3408 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3410 else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3415 # With demangler in GNU ld
3417 # Check whether --with-demangler-in-ld was given.
3418 if test "${with_demangler_in_ld+set}" = set; then :
3419 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3420 else
3421 demangler_in_ld=yes
3425 # ----------------------
3426 # Find default assembler
3427 # ----------------------
3429 # With GNU as
3431 # Check whether --with-gnu-as was given.
3432 if test "${with_gnu_as+set}" = set; then :
3433 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3434 else
3435 gas_flag=no
3440 # Check whether --with-as was given.
3441 if test "${with_as+set}" = set; then :
3442 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3445 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3446 if test ! -x "$DEFAULT_ASSEMBLER"; then
3447 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3448 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3449 gas_flag=yes
3452 cat >>confdefs.h <<_ACEOF
3453 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3454 _ACEOF
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3459 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3460 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3461 if test x"$gas_flag" = x"no"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3463 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3466 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3473 # ---------------
3474 # Find C compiler
3475 # ---------------
3477 # If a non-executable a.out is present (e.g. created by GNU as above even if
3478 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3479 # file, even when creating an executable, so an execution test fails.
3480 # Remove possible default executable files to avoid this.
3482 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3483 # Autoconf includes it.
3484 rm -f a.out a.exe b.out
3486 # Find the native compiler
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_CC+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3514 done
3515 done
3516 IFS=$as_save_IFS
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3531 if test -z "$ac_cv_prog_CC"; then
3532 ac_ct_CC=$CC
3533 # Extract the first word of "gcc", so it can be a program name with args.
3534 set dummy gcc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_ac_ct_CC="gcc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563 $as_echo "$ac_ct_CC" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3569 if test "x$ac_ct_CC" = x; then
3570 CC=""
3571 else
3572 case $cross_compiling:$ac_tool_warned in
3573 yes:)
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned=yes ;;
3577 esac
3578 CC=$ac_ct_CC
3580 else
3581 CC="$ac_cv_prog_CC"
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}cc; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_CC="${ac_tool_prefix}cc"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3607 done
3608 done
3609 IFS=$as_save_IFS
3613 CC=$ac_cv_prog_CC
3614 if test -n "$CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 $as_echo "$CC" >&6; }
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3625 if test -z "$CC"; then
3626 # Extract the first word of "cc", so it can be a program name with args.
3627 set dummy cc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636 ac_prog_rejected=no
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3645 ac_prog_rejected=yes
3646 continue
3648 ac_cv_prog_CC="cc"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3652 done
3653 done
3654 IFS=$as_save_IFS
3656 if test $ac_prog_rejected = yes; then
3657 # We found a bogon in the path, so make sure we never use it.
3658 set dummy $ac_cv_prog_CC
3659 shift
3660 if test $# != 0; then
3661 # We chose a different compiler from the bogus one.
3662 # However, it has the same basename, so the bogon will be chosen
3663 # first if we set CC to just the basename; use the full file name.
3664 shift
3665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3670 CC=$ac_cv_prog_CC
3671 if test -n "$CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3673 $as_echo "$CC" >&6; }
3674 else
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3681 if test -z "$CC"; then
3682 if test -n "$ac_tool_prefix"; then
3683 for ac_prog in cl.exe
3685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 if test -n "$CC"; then
3693 ac_cv_prog_CC="$CC" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3706 done
3707 done
3708 IFS=$as_save_IFS
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3722 test -n "$CC" && break
3723 done
3725 if test -z "$CC"; then
3726 ac_ct_CC=$CC
3727 for ac_prog in cl.exe
3729 # Extract the first word of "$ac_prog", so it can be a program name with args.
3730 set dummy $ac_prog; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -n "$ac_ct_CC"; then
3737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_ac_ct_CC="$ac_prog"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3750 done
3751 done
3752 IFS=$as_save_IFS
3756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 $as_echo "$ac_ct_CC" >&6; }
3760 else
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3766 test -n "$ac_ct_CC" && break
3767 done
3769 if test "x$ac_ct_CC" = x; then
3770 CC=""
3771 else
3772 case $cross_compiling:$ac_tool_warned in
3773 yes:)
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776 ac_tool_warned=yes ;;
3777 esac
3778 CC=$ac_ct_CC
3785 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error "no acceptable C compiler found in \$PATH
3788 See \`config.log' for more details." "$LINENO" 5; }
3790 # Provide some information about the compiler.
3791 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3792 set X $ac_compile
3793 ac_compiler=$2
3794 for ac_option in --version -v -V -qversion; do
3795 { { ac_try="$ac_compiler $ac_option >&5"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3803 ac_status=$?
3804 if test -s conftest.err; then
3805 sed '10a\
3806 ... rest of stderr output deleted ...
3807 10q' conftest.err >conftest.er1
3808 cat conftest.er1 >&5
3809 rm -f conftest.er1 conftest.err
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }
3813 done
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3819 main ()
3823 return 0;
3825 _ACEOF
3826 ac_clean_files_save=$ac_clean_files
3827 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3828 # Try to create an executable without -o first, disregard a.out.
3829 # It will help us diagnose broken compilers, and finding out an intuition
3830 # of exeext.
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3832 $as_echo_n "checking for C compiler default output file name... " >&6; }
3833 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3835 # The possible output files:
3836 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3838 ac_rmfiles=
3839 for ac_file in $ac_files
3841 case $ac_file in
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3844 esac
3845 done
3846 rm -f $ac_rmfiles
3848 if { { ac_try="$ac_link_default"
3849 case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852 esac
3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855 (eval "$ac_link_default") 2>&5
3856 ac_status=$?
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }; then :
3859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3862 # so that the user can short-circuit this test for compilers unknown to
3863 # Autoconf.
3864 for ac_file in $ac_files ''
3866 test -f "$ac_file" || continue
3867 case $ac_file in
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3870 [ab].out )
3871 # We found the default executable, but exeext='' is most
3872 # certainly right.
3873 break;;
3874 *.* )
3875 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3876 then :; else
3877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879 # We set ac_cv_exeext here because the later test for it is not
3880 # safe: cross compilers may not add the suffix if given an `-o'
3881 # argument, so we may need to know it at that point already.
3882 # Even if this section looks crufty: it has the advantage of
3883 # actually working.
3884 break;;
3886 break;;
3887 esac
3888 done
3889 test "$ac_cv_exeext" = no && ac_cv_exeext=
3891 else
3892 ac_file=''
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895 $as_echo "$ac_file" >&6; }
3896 if test -z "$ac_file"; then :
3897 $as_echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 { as_fn_set_status 77
3903 as_fn_error "C compiler cannot create executables
3904 See \`config.log' for more details." "$LINENO" 5; }; }
3906 ac_exeext=$ac_cv_exeext
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 the C compiler works" >&5
3911 $as_echo_n "checking whether the C compiler works... " >&6; }
3912 # If not cross compiling, check that we can run a simple program.
3913 if test "$cross_compiling" != yes; then
3914 if { ac_try='./$ac_file'
3915 { { case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_try") 2>&5
3922 ac_status=$?
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; }; then
3925 cross_compiling=no
3926 else
3927 if test "$cross_compiling" = maybe; then
3928 cross_compiling=yes
3929 else
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error "cannot run C compiled programs.
3933 If you meant to cross compile, use \`--host'.
3934 See \`config.log' for more details." "$LINENO" 5; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3942 ac_clean_files=$ac_clean_files_save
3943 # Check that the compiler produces executables we can run. If not, either
3944 # the compiler is broken, or we cross compile.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3946 $as_echo_n "checking whether we are cross compiling... " >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3948 $as_echo "$cross_compiling" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951 $as_echo_n "checking for suffix of executables... " >&6; }
3952 if { { ac_try="$ac_link"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_link") 2>&5
3960 ac_status=$?
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; then :
3963 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3964 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3965 # work properly (i.e., refer to `conftest.exe'), while it won't with
3966 # `rm'.
3967 for ac_file in conftest.exe conftest conftest.*; do
3968 test -f "$ac_file" || continue
3969 case $ac_file in
3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972 break;;
3973 * ) break;;
3974 esac
3975 done
3976 else
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error "cannot compute suffix of executables: cannot compile and link
3980 See \`config.log' for more details." "$LINENO" 5; }
3982 rm -f conftest$ac_cv_exeext
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984 $as_echo "$ac_cv_exeext" >&6; }
3986 rm -f conftest.$ac_ext
3987 EXEEXT=$ac_cv_exeext
3988 ac_exeext=$EXEEXT
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if test "${ac_cv_objext+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3998 main ()
4002 return 0;
4004 _ACEOF
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4019 case $ac_file in
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 break;;
4023 esac
4024 done
4025 else
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error "cannot compute suffix of object files: cannot compile
4032 See \`config.log' for more details." "$LINENO" 5; }
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4039 ac_objext=$OBJEXT
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4049 main ()
4051 #ifndef __GNUC__
4052 choke me
4053 #endif
4056 return 0;
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_compiler_gnu=yes
4061 else
4062 ac_compiler_gnu=no
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4071 GCC=yes
4072 else
4073 GCC=
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 ac_cv_prog_cc_g=no
4085 CFLAGS="-g"
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4090 main ()
4094 return 0;
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_prog_cc_g=yes
4099 else
4100 CFLAGS=""
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4105 main ()
4109 return 0;
4111 _ACEOF
4112 if ac_fn_c_try_compile "$LINENO"; then :
4114 else
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4116 CFLAGS="-g"
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4121 main ()
4125 return 0;
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_g=yes
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4144 CFLAGS="-g -O2"
4145 else
4146 CFLAGS="-g"
4148 else
4149 if test "$GCC" = yes; then
4150 CFLAGS="-O2"
4151 else
4152 CFLAGS=
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_cv_prog_cc_c89=no
4161 ac_save_CC=$CC
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #include <stdarg.h>
4165 #include <stdio.h>
4166 #include <sys/types.h>
4167 #include <sys/stat.h>
4168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4169 struct buf { int x; };
4170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171 static char *e (p, i)
4172 char **p;
4173 int i;
4175 return p[i];
4177 static char *f (char * (*g) (char **, int), char **p, ...)
4179 char *s;
4180 va_list v;
4181 va_start (v,p);
4182 s = g (p, va_arg (v,int));
4183 va_end (v);
4184 return s;
4187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4188 function prototypes and stuff, but not '\xHH' hex character constants.
4189 These don't provoke an error unfortunately, instead are silently treated
4190 as 'x'. The following induces an error, until -std is added to get
4191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4192 array size at least. It's necessary to write '\x00'==0 to get something
4193 that's true only with -std. */
4194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197 inside strings and character constants. */
4198 #define FOO(x) 'x'
4199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4201 int test (int i, double x);
4202 struct s1 {int (*f) (int a);};
4203 struct s2 {int (*f) (double a);};
4204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205 int argc;
4206 char **argv;
4208 main ()
4210 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4212 return 0;
4214 _ACEOF
4215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_c89=$ac_arg
4222 rm -f core conftest.err conftest.$ac_objext
4223 test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 done
4225 rm -f conftest.$ac_ext
4226 CC=$ac_save_CC
4229 # AC_CACHE_VAL
4230 case "x$ac_cv_prog_cc_c89" in
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4234 xno)
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4238 CC="$CC $ac_cv_prog_cc_c89"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4241 esac
4242 if test "x$ac_cv_prog_cc_c89" != xno; then :
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 if test "x$CC" != xcc; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4254 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4257 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4259 set dummy $CC; ac_cc=`$as_echo "$2" |
4260 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4261 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4268 main ()
4272 return 0;
4274 _ACEOF
4275 # Make sure it works both with $CC and with simple cc.
4276 # We do the test twice because some compilers refuse to overwrite an
4277 # existing .o file with -o, though they will create one.
4278 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4279 rm -f conftest2.*
4280 if { { case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; } &&
4290 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; };
4300 then
4301 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4302 if test "x$CC" != xcc; then
4303 # Test first that cc exists at all.
4304 if { ac_try='cc -c conftest.$ac_ext >&5'
4305 { { case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; }; then
4315 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4316 rm -f conftest2.*
4317 if { { case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323 (eval "$ac_try") 2>&5
4324 ac_status=$?
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; } &&
4327 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4334 ac_status=$?
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; };
4337 then
4338 # cc works too.
4340 else
4341 # cc exists but doesn't like -o.
4342 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4346 else
4347 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4349 rm -f core conftest*
4352 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354 $as_echo "yes" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4359 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4363 # expand $ac_aux_dir to an absolute path
4364 am_aux_dir=`cd $ac_aux_dir && pwd`
4366 # FIXME: we rely on the cache variable name because
4367 # there is no other way.
4368 set dummy $CC
4369 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4370 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4371 if test "$am_t" != yes; then
4372 # Losing compiler, so override with the script.
4373 # FIXME: It is wrong to rewrite CC.
4374 # But if we don't then we get into trouble of one sort or another.
4375 # A longer-term fix would be to have automake use am__CC in this case,
4376 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4377 CC="$am_aux_dir/compile $CC"
4381 ac_ext=cpp
4382 ac_cpp='$CXXCPP $CPPFLAGS'
4383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4386 if test -z "$CXX"; then
4387 if test -n "$CCC"; then
4388 CXX=$CCC
4389 else
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_CXX+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$CXX"; then
4401 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4414 done
4415 done
4416 IFS=$as_save_IFS
4420 CXX=$ac_cv_prog_CXX
4421 if test -n "$CXX"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4423 $as_echo "$CXX" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4430 test -n "$CXX" && break
4431 done
4433 if test -z "$CXX"; then
4434 ac_ct_CXX=$CXX
4435 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -n "$ac_ct_CXX"; then
4445 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_ac_ct_CXX="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4458 done
4459 done
4460 IFS=$as_save_IFS
4464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4465 if test -n "$ac_ct_CXX"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4467 $as_echo "$ac_ct_CXX" >&6; }
4468 else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4474 test -n "$ac_ct_CXX" && break
4475 done
4477 if test "x$ac_ct_CXX" = x; then
4478 CXX="g++"
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4485 esac
4486 CXX=$ac_ct_CXX
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4494 set X $ac_compile
4495 ac_compiler=$2
4496 for ac_option in --version -v -V -qversion; do
4497 { { ac_try="$ac_compiler $ac_option >&5"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4505 ac_status=$?
4506 if test -s conftest.err; then
4507 sed '10a\
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4515 done
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4518 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4526 main ()
4528 #ifndef __GNUC__
4529 choke me
4530 #endif
4533 return 0;
4535 _ACEOF
4536 if ac_fn_cxx_try_compile "$LINENO"; then :
4537 ac_compiler_gnu=yes
4538 else
4539 ac_compiler_gnu=no
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4546 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4547 if test $ac_compiler_gnu = yes; then
4548 GXX=yes
4549 else
4550 GXX=
4552 ac_test_CXXFLAGS=${CXXFLAGS+set}
4553 ac_save_CXXFLAGS=$CXXFLAGS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4555 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4556 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4560 ac_cxx_werror_flag=yes
4561 ac_cv_prog_cxx_g=no
4562 CXXFLAGS="-g"
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4567 main ()
4571 return 0;
4573 _ACEOF
4574 if ac_fn_cxx_try_compile "$LINENO"; then :
4575 ac_cv_prog_cxx_g=yes
4576 else
4577 CXXFLAGS=""
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4582 main ()
4586 return 0;
4588 _ACEOF
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4591 else
4592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4593 CXXFLAGS="-g"
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4598 main ()
4602 return 0;
4604 _ACEOF
4605 if ac_fn_cxx_try_compile "$LINENO"; then :
4606 ac_cv_prog_cxx_g=yes
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4616 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4617 if test "$ac_test_CXXFLAGS" = set; then
4618 CXXFLAGS=$ac_save_CXXFLAGS
4619 elif test $ac_cv_prog_cxx_g = yes; then
4620 if test "$GXX" = yes; then
4621 CXXFLAGS="-g -O2"
4622 else
4623 CXXFLAGS="-g"
4625 else
4626 if test "$GXX" = yes; then
4627 CXXFLAGS="-O2"
4628 else
4629 CXXFLAGS=
4632 ac_ext=c
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641 if test -n "$ac_tool_prefix"; then
4642 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4643 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$GNATBIND"; then
4650 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4663 done
4664 done
4665 IFS=$as_save_IFS
4669 GNATBIND=$ac_cv_prog_GNATBIND
4670 if test -n "$GNATBIND"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4672 $as_echo "$GNATBIND" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4680 if test -z "$ac_cv_prog_GNATBIND"; then
4681 ac_ct_GNATBIND=$GNATBIND
4682 # Extract the first word of "gnatbind", so it can be a program name with args.
4683 set dummy gnatbind; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test -n "$ac_ct_GNATBIND"; then
4690 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4709 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4710 if test -n "$ac_ct_GNATBIND"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4712 $as_echo "$ac_ct_GNATBIND" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4718 if test "x$ac_ct_GNATBIND" = x; then
4719 GNATBIND="no"
4720 else
4721 case $cross_compiling:$ac_tool_warned in
4722 yes:)
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4725 ac_tool_warned=yes ;;
4726 esac
4727 GNATBIND=$ac_ct_GNATBIND
4729 else
4730 GNATBIND="$ac_cv_prog_GNATBIND"
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if test -n "$GNATMAKE"; then
4742 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4755 done
4756 done
4757 IFS=$as_save_IFS
4761 GNATMAKE=$ac_cv_prog_GNATMAKE
4762 if test -n "$GNATMAKE"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4764 $as_echo "$GNATMAKE" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4772 if test -z "$ac_cv_prog_GNATMAKE"; then
4773 ac_ct_GNATMAKE=$GNATMAKE
4774 # Extract the first word of "gnatmake", so it can be a program name with args.
4775 set dummy gnatmake; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$ac_ct_GNATMAKE"; then
4782 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4795 done
4796 done
4797 IFS=$as_save_IFS
4801 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4802 if test -n "$ac_ct_GNATMAKE"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4804 $as_echo "$ac_ct_GNATMAKE" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4810 if test "x$ac_ct_GNATMAKE" = x; then
4811 GNATMAKE="no"
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 GNATMAKE=$ac_ct_GNATMAKE
4821 else
4822 GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4826 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4827 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 cat >conftest.adb <<EOF
4831 procedure conftest is begin null; end conftest;
4833 acx_cv_cc_gcc_supports_ada=no
4834 # There is a bug in old released versions of GCC which causes the
4835 # driver to exit successfully when the appropriate language module
4836 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4837 # Therefore we must check for the error message as well as an
4838 # unsuccessful exit.
4839 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4840 # given a .adb file, but produce no object file. So we must check
4841 # if an object file was really produced to guard against this.
4842 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4843 if test x"$errors" = x && test -f conftest.$ac_objext; then
4844 acx_cv_cc_gcc_supports_ada=yes
4846 rm -f conftest.*
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4849 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4851 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4852 have_gnat=yes
4853 else
4854 have_gnat=no
4858 # autoconf is lame and doesn't give us any substitution variable for this.
4859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4860 NO_MINUS_C_MINUS_O=yes
4861 else
4862 OUTPUT_OPTION='-o $@'
4867 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4868 # optimizations to be activated explicitly by the toplevel.
4869 case "$CC" in
4870 */prev-gcc/xgcc*) ;;
4871 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4872 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4873 esac
4877 # Determine PICFLAG for target gnatlib.
4882 case "${target}" in
4883 # PIC is the default on some targets or must not be used.
4884 *-*-darwin*)
4885 # PIC is the default on this platform
4886 # Common symbols not allowed in MH_DYLIB files
4887 PICFLAG_FOR_TARGET=-fno-common
4889 alpha*-dec-osf5*)
4890 # PIC is the default.
4892 hppa*64*-*-hpux*)
4893 # PIC is the default for 64-bit PA HP-UX.
4895 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4897 i[34567]86-*-interix[3-9]*)
4898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4899 # Instead, we relocate shared libraries at runtime.
4901 i[34567]86-*-nto-qnx*)
4902 # QNX uses GNU C++, but need to define -shared option too, otherwise
4903 # it will coredump.
4904 PICFLAG_FOR_TARGET='-fPIC -shared'
4906 i[34567]86-pc-msdosdjgpp*)
4907 # DJGPP does not support shared libraries at all.
4909 ia64*-*-hpux*)
4910 # On IA64 HP-UX, PIC is the default but the pic flag
4911 # sets the default TLS model and affects inlining.
4912 PICFLAG_FOR_TARGET=-fPIC
4914 mips-sgi-irix6*)
4915 # PIC is the default.
4917 rs6000-ibm-aix* | powerpc-ibm-aix*)
4918 # All AIX code is PIC.
4921 # Some targets support both -fPIC and -fpic, but prefer the latter.
4922 # FIXME: Why?
4923 i[34567]86-*-* | x86_64-*-*)
4924 PICFLAG_FOR_TARGET=-fpic
4926 m68k-*-*)
4927 PICFLAG_FOR_TARGET=-fpic
4929 # FIXME: Override -fPIC default in libgcc only?
4930 sh-*-linux* | sh[2346lbe]*-*-linux*)
4931 PICFLAG_FOR_TARGET=-fpic
4933 # FIXME: Simplify to sh*-*-netbsd*?
4934 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4935 sh64-*-netbsd* | sh64l*-*-netbsd*)
4936 PICFLAG_FOR_TARGET=-fpic
4938 # Default to -fPIC unless specified otherwise.
4940 PICFLAG_FOR_TARGET=-fPIC
4942 esac
4944 # If the user explicitly uses -fpic/-fPIC, keep that.
4945 case "${CFLAGS_FOR_TARGET}" in
4946 *-fpic*)
4947 PICFLAG_FOR_TARGET=-fpic
4949 *-fPIC*)
4950 PICFLAG_FOR_TARGET=-fPIC
4952 esac
4956 # -------------------------
4957 # Check C compiler features
4958 # -------------------------
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4967 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4968 # On Suns, sometimes $CPP names a directory.
4969 if test -n "$CPP" && test -d "$CPP"; then
4970 CPP=
4972 if test -z "$CPP"; then
4973 if test "${ac_cv_prog_CPP+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 # Double quotes because CPP needs to be expanded
4977 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4979 ac_preproc_ok=false
4980 for ac_c_preproc_warn_flag in '' yes
4982 # Use a header file that comes with gcc, so configuring glibc
4983 # with a fresh cross-compiler works.
4984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4985 # <limits.h> exists even on freestanding compilers.
4986 # On the NeXT, cc -E runs the code through the compiler's parser,
4987 # not just through cpp. "Syntax error" is here to catch this case.
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #ifdef __STDC__
4991 # include <limits.h>
4992 #else
4993 # include <assert.h>
4994 #endif
4995 Syntax error
4996 _ACEOF
4997 if ac_fn_c_try_cpp "$LINENO"; then :
4999 else
5000 # Broken: fails on valid input.
5001 continue
5003 rm -f conftest.err conftest.$ac_ext
5005 # OK, works on sane cases. Now check whether nonexistent headers
5006 # can be detected and how.
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 #include <ac_nonexistent.h>
5010 _ACEOF
5011 if ac_fn_c_try_cpp "$LINENO"; then :
5012 # Broken: success on invalid input.
5013 continue
5014 else
5015 # Passes both tests.
5016 ac_preproc_ok=:
5017 break
5019 rm -f conftest.err conftest.$ac_ext
5021 done
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then :
5025 break
5028 done
5029 ac_cv_prog_CPP=$CPP
5032 CPP=$ac_cv_prog_CPP
5033 else
5034 ac_cv_prog_CPP=$CPP
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5037 $as_echo "$CPP" >&6; }
5038 ac_preproc_ok=false
5039 for ac_c_preproc_warn_flag in '' yes
5041 # Use a header file that comes with gcc, so configuring glibc
5042 # with a fresh cross-compiler works.
5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 # <limits.h> exists even on freestanding compilers.
5045 # On the NeXT, cc -E runs the code through the compiler's parser,
5046 # not just through cpp. "Syntax error" is here to catch this case.
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 #ifdef __STDC__
5050 # include <limits.h>
5051 #else
5052 # include <assert.h>
5053 #endif
5054 Syntax error
5055 _ACEOF
5056 if ac_fn_c_try_cpp "$LINENO"; then :
5058 else
5059 # Broken: fails on valid input.
5060 continue
5062 rm -f conftest.err conftest.$ac_ext
5064 # OK, works on sane cases. Now check whether nonexistent headers
5065 # can be detected and how.
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 #include <ac_nonexistent.h>
5069 _ACEOF
5070 if ac_fn_c_try_cpp "$LINENO"; then :
5071 # Broken: success on invalid input.
5072 continue
5073 else
5074 # Passes both tests.
5075 ac_preproc_ok=:
5076 break
5078 rm -f conftest.err conftest.$ac_ext
5080 done
5081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5082 rm -f conftest.err conftest.$ac_ext
5083 if $ac_preproc_ok; then :
5085 else
5086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5088 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5089 See \`config.log' for more details." "$LINENO" 5; }
5092 ac_ext=c
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5101 if test "${ac_cv_path_GREP+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if test -z "$GREP"; then
5105 ac_path_GREP_found=false
5106 # Loop through the user's path and test for each of PROGNAME-LIST
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_prog in grep ggrep; do
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5115 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5116 # Check for GNU ac_path_GREP and select it if it is found.
5117 # Check for GNU $ac_path_GREP
5118 case `"$ac_path_GREP" --version 2>&1` in
5119 *GNU*)
5120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5122 ac_count=0
5123 $as_echo_n 0123456789 >"conftest.in"
5124 while :
5126 cat "conftest.in" "conftest.in" >"conftest.tmp"
5127 mv "conftest.tmp" "conftest.in"
5128 cp "conftest.in" "conftest.nl"
5129 $as_echo 'GREP' >> "conftest.nl"
5130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132 as_fn_arith $ac_count + 1 && ac_count=$as_val
5133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5134 # Best one so far, save it but keep looking for a better one
5135 ac_cv_path_GREP="$ac_path_GREP"
5136 ac_path_GREP_max=$ac_count
5138 # 10*(2^10) chars as input seems more than enough
5139 test $ac_count -gt 10 && break
5140 done
5141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142 esac
5144 $ac_path_GREP_found && break 3
5145 done
5146 done
5147 done
5148 IFS=$as_save_IFS
5149 if test -z "$ac_cv_path_GREP"; then
5150 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152 else
5153 ac_cv_path_GREP=$GREP
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5158 $as_echo "$ac_cv_path_GREP" >&6; }
5159 GREP="$ac_cv_path_GREP"
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5163 $as_echo_n "checking for egrep... " >&6; }
5164 if test "${ac_cv_path_EGREP+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5168 then ac_cv_path_EGREP="$GREP -E"
5169 else
5170 if test -z "$EGREP"; then
5171 ac_path_EGREP_found=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_prog in egrep; do
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5181 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5182 # Check for GNU ac_path_EGREP and select it if it is found.
5183 # Check for GNU $ac_path_EGREP
5184 case `"$ac_path_EGREP" --version 2>&1` in
5185 *GNU*)
5186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5188 ac_count=0
5189 $as_echo_n 0123456789 >"conftest.in"
5190 while :
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo 'EGREP' >> "conftest.nl"
5196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198 as_fn_arith $ac_count + 1 && ac_count=$as_val
5199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_EGREP="$ac_path_EGREP"
5202 ac_path_EGREP_max=$ac_count
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
5206 done
5207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5208 esac
5210 $ac_path_EGREP_found && break 3
5211 done
5212 done
5213 done
5214 IFS=$as_save_IFS
5215 if test -z "$ac_cv_path_EGREP"; then
5216 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218 else
5219 ac_cv_path_EGREP=$EGREP
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5225 $as_echo "$ac_cv_path_EGREP" >&6; }
5226 EGREP="$ac_cv_path_EGREP"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5230 $as_echo_n "checking for ANSI C header files... " >&6; }
5231 if test "${ac_cv_header_stdc+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236 #include <stdlib.h>
5237 #include <stdarg.h>
5238 #include <string.h>
5239 #include <float.h>
5242 main ()
5246 return 0;
5248 _ACEOF
5249 if ac_fn_c_try_compile "$LINENO"; then :
5250 ac_cv_header_stdc=yes
5251 else
5252 ac_cv_header_stdc=no
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 if test $ac_cv_header_stdc = yes; then
5257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260 #include <string.h>
5262 _ACEOF
5263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5264 $EGREP "memchr" >/dev/null 2>&1; then :
5266 else
5267 ac_cv_header_stdc=no
5269 rm -f conftest*
5273 if test $ac_cv_header_stdc = yes; then
5274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 #include <stdlib.h>
5279 _ACEOF
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 $EGREP "free" >/dev/null 2>&1; then :
5283 else
5284 ac_cv_header_stdc=no
5286 rm -f conftest*
5290 if test $ac_cv_header_stdc = yes; then
5291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5292 if test "$cross_compiling" = yes; then :
5294 else
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297 #include <ctype.h>
5298 #include <stdlib.h>
5299 #if ((' ' & 0x0FF) == 0x020)
5300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5302 #else
5303 # define ISLOWER(c) \
5304 (('a' <= (c) && (c) <= 'i') \
5305 || ('j' <= (c) && (c) <= 'r') \
5306 || ('s' <= (c) && (c) <= 'z'))
5307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5308 #endif
5310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5312 main ()
5314 int i;
5315 for (i = 0; i < 256; i++)
5316 if (XOR (islower (i), ISLOWER (i))
5317 || toupper (i) != TOUPPER (i))
5318 return 2;
5319 return 0;
5321 _ACEOF
5322 if ac_fn_c_try_run "$LINENO"; then :
5324 else
5325 ac_cv_header_stdc=no
5327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5328 conftest.$ac_objext conftest.beam conftest.$ac_ext
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5334 $as_echo "$ac_cv_header_stdc" >&6; }
5335 if test $ac_cv_header_stdc = yes; then
5337 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5341 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5342 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5343 inttypes.h stdint.h unistd.h
5344 do :
5345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5348 eval as_val=\$$as_ac_Header
5349 if test "x$as_val" = x""yes; then :
5350 cat >>confdefs.h <<_ACEOF
5351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5352 _ACEOF
5356 done
5360 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5361 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5362 MINIX=yes
5363 else
5364 MINIX=
5368 if test "$MINIX" = yes; then
5370 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5373 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5376 $as_echo "#define _MINIX 1" >>confdefs.h
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5382 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5383 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5389 # define __EXTENSIONS__ 1
5390 $ac_includes_default
5392 main ()
5396 return 0;
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"; then :
5400 ac_cv_safe_to_define___extensions__=yes
5401 else
5402 ac_cv_safe_to_define___extensions__=no
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5407 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5408 test $ac_cv_safe_to_define___extensions__ = yes &&
5409 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5411 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5413 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5415 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5417 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5420 ac_ext=c
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5426 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5427 # On Suns, sometimes $CPP names a directory.
5428 if test -n "$CPP" && test -d "$CPP"; then
5429 CPP=
5431 if test -z "$CPP"; then
5432 if test "${ac_cv_prog_CPP+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 # Double quotes because CPP needs to be expanded
5436 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5438 ac_preproc_ok=false
5439 for ac_c_preproc_warn_flag in '' yes
5441 # Use a header file that comes with gcc, so configuring glibc
5442 # with a fresh cross-compiler works.
5443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5444 # <limits.h> exists even on freestanding compilers.
5445 # On the NeXT, cc -E runs the code through the compiler's parser,
5446 # not just through cpp. "Syntax error" is here to catch this case.
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #ifdef __STDC__
5450 # include <limits.h>
5451 #else
5452 # include <assert.h>
5453 #endif
5454 Syntax error
5455 _ACEOF
5456 if ac_fn_c_try_cpp "$LINENO"; then :
5458 else
5459 # Broken: fails on valid input.
5460 continue
5462 rm -f conftest.err conftest.$ac_ext
5464 # OK, works on sane cases. Now check whether nonexistent headers
5465 # can be detected and how.
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #include <ac_nonexistent.h>
5469 _ACEOF
5470 if ac_fn_c_try_cpp "$LINENO"; then :
5471 # Broken: success on invalid input.
5472 continue
5473 else
5474 # Passes both tests.
5475 ac_preproc_ok=:
5476 break
5478 rm -f conftest.err conftest.$ac_ext
5480 done
5481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5482 rm -f conftest.err conftest.$ac_ext
5483 if $ac_preproc_ok; then :
5484 break
5487 done
5488 ac_cv_prog_CPP=$CPP
5491 CPP=$ac_cv_prog_CPP
5492 else
5493 ac_cv_prog_CPP=$CPP
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5496 $as_echo "$CPP" >&6; }
5497 ac_preproc_ok=false
5498 for ac_c_preproc_warn_flag in '' yes
5500 # Use a header file that comes with gcc, so configuring glibc
5501 # with a fresh cross-compiler works.
5502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503 # <limits.h> exists even on freestanding compilers.
5504 # On the NeXT, cc -E runs the code through the compiler's parser,
5505 # not just through cpp. "Syntax error" is here to catch this case.
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 #ifdef __STDC__
5509 # include <limits.h>
5510 #else
5511 # include <assert.h>
5512 #endif
5513 Syntax error
5514 _ACEOF
5515 if ac_fn_c_try_cpp "$LINENO"; then :
5517 else
5518 # Broken: fails on valid input.
5519 continue
5521 rm -f conftest.err conftest.$ac_ext
5523 # OK, works on sane cases. Now check whether nonexistent headers
5524 # can be detected and how.
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 #include <ac_nonexistent.h>
5528 _ACEOF
5529 if ac_fn_c_try_cpp "$LINENO"; then :
5530 # Broken: success on invalid input.
5531 continue
5532 else
5533 # Passes both tests.
5534 ac_preproc_ok=:
5535 break
5537 rm -f conftest.err conftest.$ac_ext
5539 done
5540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5541 rm -f conftest.err conftest.$ac_ext
5542 if $ac_preproc_ok; then :
5544 else
5545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5547 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5548 See \`config.log' for more details." "$LINENO" 5; }
5551 ac_ext=c
5552 ac_cpp='$CPP $CPPFLAGS'
5553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5558 $as_echo_n "checking for inline... " >&6; }
5559 if test "${ac_cv_c_inline+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 ac_cv_c_inline=no
5563 for ac_kw in inline __inline__ __inline; do
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #ifndef __cplusplus
5567 typedef int foo_t;
5568 static $ac_kw foo_t static_foo () {return 0; }
5569 $ac_kw foo_t foo () {return 0; }
5570 #endif
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 ac_cv_c_inline=$ac_kw
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 test "$ac_cv_c_inline" != no && break
5578 done
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5582 $as_echo "$ac_cv_c_inline" >&6; }
5584 case $ac_cv_c_inline in
5585 inline | yes) ;;
5587 case $ac_cv_c_inline in
5588 no) ac_val=;;
5589 *) ac_val=$ac_cv_c_inline;;
5590 esac
5591 cat >>confdefs.h <<_ACEOF
5592 #ifndef __cplusplus
5593 #define inline $ac_val
5594 #endif
5595 _ACEOF
5597 esac
5600 # Check whether --enable-largefile was given.
5601 if test "${enable_largefile+set}" = set; then :
5602 enableval=$enable_largefile;
5605 if test "$enable_largefile" != no; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5608 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5609 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 ac_cv_sys_largefile_CC=no
5613 if test "$GCC" != yes; then
5614 ac_save_CC=$CC
5615 while :; do
5616 # IRIX 6.2 and later do not support large files by default,
5617 # so use the C compiler's -n32 option if that helps.
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <sys/types.h>
5621 /* Check that off_t can represent 2**63 - 1 correctly.
5622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5623 since some C++ compilers masquerading as C compilers
5624 incorrectly reject 9223372036854775807. */
5625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5627 && LARGE_OFF_T % 2147483647 == 1)
5628 ? 1 : -1];
5630 main ()
5634 return 0;
5636 _ACEOF
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638 break
5640 rm -f core conftest.err conftest.$ac_objext
5641 CC="$CC -n32"
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 ac_cv_sys_largefile_CC=' -n32'; break
5645 rm -f core conftest.err conftest.$ac_objext
5646 break
5647 done
5648 CC=$ac_save_CC
5649 rm -f conftest.$ac_ext
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5653 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5654 if test "$ac_cv_sys_largefile_CC" != no; then
5655 CC=$CC$ac_cv_sys_largefile_CC
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5659 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5660 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 while :; do
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 #include <sys/types.h>
5667 /* Check that off_t can represent 2**63 - 1 correctly.
5668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5669 since some C++ compilers masquerading as C compilers
5670 incorrectly reject 9223372036854775807. */
5671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5673 && LARGE_OFF_T % 2147483647 == 1)
5674 ? 1 : -1];
5676 main ()
5680 return 0;
5682 _ACEOF
5683 if ac_fn_c_try_compile "$LINENO"; then :
5684 ac_cv_sys_file_offset_bits=no; break
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #define _FILE_OFFSET_BITS 64
5690 #include <sys/types.h>
5691 /* Check that off_t can represent 2**63 - 1 correctly.
5692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5693 since some C++ compilers masquerading as C compilers
5694 incorrectly reject 9223372036854775807. */
5695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5697 && LARGE_OFF_T % 2147483647 == 1)
5698 ? 1 : -1];
5700 main ()
5704 return 0;
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708 ac_cv_sys_file_offset_bits=64; break
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 ac_cv_sys_file_offset_bits=unknown
5712 break
5713 done
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5716 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5717 case $ac_cv_sys_file_offset_bits in #(
5718 no | unknown) ;;
5720 cat >>confdefs.h <<_ACEOF
5721 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5722 _ACEOF
5724 esac
5725 rm -rf conftest*
5726 if test $ac_cv_sys_file_offset_bits = unknown; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5728 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5729 if test "${ac_cv_sys_large_files+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 while :; do
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #include <sys/types.h>
5736 /* Check that off_t can represent 2**63 - 1 correctly.
5737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5738 since some C++ compilers masquerading as C compilers
5739 incorrectly reject 9223372036854775807. */
5740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5742 && LARGE_OFF_T % 2147483647 == 1)
5743 ? 1 : -1];
5745 main ()
5749 return 0;
5751 _ACEOF
5752 if ac_fn_c_try_compile "$LINENO"; then :
5753 ac_cv_sys_large_files=no; break
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #define _LARGE_FILES 1
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5767 ? 1 : -1];
5769 main ()
5773 return 0;
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777 ac_cv_sys_large_files=1; break
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 ac_cv_sys_large_files=unknown
5781 break
5782 done
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5785 $as_echo "$ac_cv_sys_large_files" >&6; }
5786 case $ac_cv_sys_large_files in #(
5787 no | unknown) ;;
5789 cat >>confdefs.h <<_ACEOF
5790 #define _LARGE_FILES $ac_cv_sys_large_files
5791 _ACEOF
5793 esac
5794 rm -rf conftest*
5799 # sizeof(char) is 1 by definition.
5800 # The cast to long int works around a bug in the HP C Compiler
5801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5803 # This bug is HP SR number 8606223364.
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5805 $as_echo_n "checking size of void *... " >&6; }
5806 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5811 else
5812 if test "$ac_cv_type_void_p" = yes; then
5813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5815 { as_fn_set_status 77
5816 as_fn_error "cannot compute sizeof (void *)
5817 See \`config.log' for more details." "$LINENO" 5; }; }
5818 else
5819 ac_cv_sizeof_void_p=0
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5825 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5829 cat >>confdefs.h <<_ACEOF
5830 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5831 _ACEOF
5834 # The cast to long int works around a bug in the HP C Compiler
5835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5837 # This bug is HP SR number 8606223364.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5839 $as_echo_n "checking size of short... " >&6; }
5840 if test "${ac_cv_sizeof_short+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5845 else
5846 if test "$ac_cv_type_short" = yes; then
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 { as_fn_set_status 77
5850 as_fn_error "cannot compute sizeof (short)
5851 See \`config.log' for more details." "$LINENO" 5; }; }
5852 else
5853 ac_cv_sizeof_short=0
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5859 $as_echo "$ac_cv_sizeof_short" >&6; }
5863 cat >>confdefs.h <<_ACEOF
5864 #define SIZEOF_SHORT $ac_cv_sizeof_short
5865 _ACEOF
5868 # The cast to long int works around a bug in the HP C Compiler
5869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5871 # This bug is HP SR number 8606223364.
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5873 $as_echo_n "checking size of int... " >&6; }
5874 if test "${ac_cv_sizeof_int+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5879 else
5880 if test "$ac_cv_type_int" = yes; then
5881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5883 { as_fn_set_status 77
5884 as_fn_error "cannot compute sizeof (int)
5885 See \`config.log' for more details." "$LINENO" 5; }; }
5886 else
5887 ac_cv_sizeof_int=0
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5893 $as_echo "$ac_cv_sizeof_int" >&6; }
5897 cat >>confdefs.h <<_ACEOF
5898 #define SIZEOF_INT $ac_cv_sizeof_int
5899 _ACEOF
5902 # The cast to long int works around a bug in the HP C Compiler
5903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5905 # This bug is HP SR number 8606223364.
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5907 $as_echo_n "checking size of long... " >&6; }
5908 if test "${ac_cv_sizeof_long+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5913 else
5914 if test "$ac_cv_type_long" = yes; then
5915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5917 { as_fn_set_status 77
5918 as_fn_error "cannot compute sizeof (long)
5919 See \`config.log' for more details." "$LINENO" 5; }; }
5920 else
5921 ac_cv_sizeof_long=0
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5927 $as_echo "$ac_cv_sizeof_long" >&6; }
5931 cat >>confdefs.h <<_ACEOF
5932 #define SIZEOF_LONG $ac_cv_sizeof_long
5933 _ACEOF
5936 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5937 if test "x$ac_cv_type_long_long" = x""yes; then :
5939 cat >>confdefs.h <<_ACEOF
5940 #define HAVE_LONG_LONG 1
5941 _ACEOF
5943 # The cast to long int works around a bug in the HP C Compiler
5944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5946 # This bug is HP SR number 8606223364.
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5948 $as_echo_n "checking size of long long... " >&6; }
5949 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5954 else
5955 if test "$ac_cv_type_long_long" = yes; then
5956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5958 { as_fn_set_status 77
5959 as_fn_error "cannot compute sizeof (long long)
5960 See \`config.log' for more details." "$LINENO" 5; }; }
5961 else
5962 ac_cv_sizeof_long_long=0
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5968 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5972 cat >>confdefs.h <<_ACEOF
5973 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5974 _ACEOF
5979 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5980 if test "x$ac_cv_type___int64" = x""yes; then :
5982 cat >>confdefs.h <<_ACEOF
5983 #define HAVE___INT64 1
5984 _ACEOF
5986 # The cast to long int works around a bug in the HP C Compiler
5987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5989 # This bug is HP SR number 8606223364.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5991 $as_echo_n "checking size of __int64... " >&6; }
5992 if test "${ac_cv_sizeof___int64+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5997 else
5998 if test "$ac_cv_type___int64" = yes; then
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6001 { as_fn_set_status 77
6002 as_fn_error "cannot compute sizeof (__int64)
6003 See \`config.log' for more details." "$LINENO" 5; }; }
6004 else
6005 ac_cv_sizeof___int64=0
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6011 $as_echo "$ac_cv_sizeof___int64" >&6; }
6015 cat >>confdefs.h <<_ACEOF
6016 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6017 _ACEOF
6022 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6023 case $ac_cv_c_int8_t in #(
6024 no|yes) ;; #(
6027 cat >>confdefs.h <<_ACEOF
6028 #define int8_t $ac_cv_c_int8_t
6029 _ACEOF
6031 esac
6033 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6034 case $ac_cv_c_int16_t in #(
6035 no|yes) ;; #(
6038 cat >>confdefs.h <<_ACEOF
6039 #define int16_t $ac_cv_c_int16_t
6040 _ACEOF
6042 esac
6044 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6045 case $ac_cv_c_int32_t in #(
6046 no|yes) ;; #(
6049 cat >>confdefs.h <<_ACEOF
6050 #define int32_t $ac_cv_c_int32_t
6051 _ACEOF
6053 esac
6055 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6056 case $ac_cv_c_int64_t in #(
6057 no|yes) ;; #(
6060 cat >>confdefs.h <<_ACEOF
6061 #define int64_t $ac_cv_c_int64_t
6062 _ACEOF
6064 esac
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6068 $as_echo_n "checking for long long int... " >&6; }
6069 if test "${ac_cv_type_long_long_int+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6075 /* For now, do not test the preprocessor; as of 2007 there are too many
6076 implementations with broken preprocessors. Perhaps this can
6077 be revisited in 2012. In the meantime, code should not expect
6078 #if to work with literals wider than 32 bits. */
6079 /* Test literals. */
6080 long long int ll = 9223372036854775807ll;
6081 long long int nll = -9223372036854775807LL;
6082 unsigned long long int ull = 18446744073709551615ULL;
6083 /* Test constant expressions. */
6084 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6085 ? 1 : -1)];
6086 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6087 ? 1 : -1)];
6088 int i = 63;
6090 main ()
6092 /* Test availability of runtime routines for shift and division. */
6093 long long int llmax = 9223372036854775807ll;
6094 unsigned long long int ullmax = 18446744073709551615ull;
6095 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6096 | (llmax / ll) | (llmax % ll)
6097 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6098 | (ullmax / ull) | (ullmax % ull));
6100 return 0;
6103 _ACEOF
6104 if ac_fn_c_try_link "$LINENO"; then :
6105 if test "$cross_compiling" = yes; then :
6106 ac_cv_type_long_long_int=yes
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #include <limits.h>
6111 #ifndef LLONG_MAX
6112 # define HALF \
6113 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6114 # define LLONG_MAX (HALF - 1 + HALF)
6115 #endif
6117 main ()
6119 long long int n = 1;
6120 int i;
6121 for (i = 0; ; i++)
6123 long long int m = n << i;
6124 if (m >> i != n)
6125 return 1;
6126 if (LLONG_MAX / 2 < m)
6127 break;
6129 return 0;
6131 return 0;
6133 _ACEOF
6134 if ac_fn_c_try_run "$LINENO"; then :
6135 ac_cv_type_long_long_int=yes
6136 else
6137 ac_cv_type_long_long_int=no
6139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6140 conftest.$ac_objext conftest.beam conftest.$ac_ext
6143 else
6144 ac_cv_type_long_long_int=no
6146 rm -f core conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6150 $as_echo "$ac_cv_type_long_long_int" >&6; }
6151 if test $ac_cv_type_long_long_int = yes; then
6153 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6159 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6160 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6162 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6164 else
6165 test $ac_cv_type_long_long_int = yes \
6166 && ac_type='long long int' \
6167 || ac_type='long int'
6169 cat >>confdefs.h <<_ACEOF
6170 #define intmax_t $ac_type
6171 _ACEOF
6177 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6178 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6180 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6182 else
6183 for ac_type in 'int' 'long int' 'long long int'; do
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 $ac_includes_default
6188 main ()
6190 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6191 test_array [0] = 0
6194 return 0;
6196 _ACEOF
6197 if ac_fn_c_try_compile "$LINENO"; then :
6199 cat >>confdefs.h <<_ACEOF
6200 #define intptr_t $ac_type
6201 _ACEOF
6203 ac_type=
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 test -z "$ac_type" && break
6207 done
6211 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6212 case $ac_cv_c_uint8_t in #(
6213 no|yes) ;; #(
6216 $as_echo "#define _UINT8_T 1" >>confdefs.h
6219 cat >>confdefs.h <<_ACEOF
6220 #define uint8_t $ac_cv_c_uint8_t
6221 _ACEOF
6223 esac
6225 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6226 case $ac_cv_c_uint16_t in #(
6227 no|yes) ;; #(
6231 cat >>confdefs.h <<_ACEOF
6232 #define uint16_t $ac_cv_c_uint16_t
6233 _ACEOF
6235 esac
6237 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6238 case $ac_cv_c_uint32_t in #(
6239 no|yes) ;; #(
6242 $as_echo "#define _UINT32_T 1" >>confdefs.h
6245 cat >>confdefs.h <<_ACEOF
6246 #define uint32_t $ac_cv_c_uint32_t
6247 _ACEOF
6249 esac
6251 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6252 case $ac_cv_c_uint64_t in #(
6253 no|yes) ;; #(
6256 $as_echo "#define _UINT64_T 1" >>confdefs.h
6259 cat >>confdefs.h <<_ACEOF
6260 #define uint64_t $ac_cv_c_uint64_t
6261 _ACEOF
6263 esac
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6267 $as_echo_n "checking for unsigned long long int... " >&6; }
6268 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6274 /* For now, do not test the preprocessor; as of 2007 there are too many
6275 implementations with broken preprocessors. Perhaps this can
6276 be revisited in 2012. In the meantime, code should not expect
6277 #if to work with literals wider than 32 bits. */
6278 /* Test literals. */
6279 long long int ll = 9223372036854775807ll;
6280 long long int nll = -9223372036854775807LL;
6281 unsigned long long int ull = 18446744073709551615ULL;
6282 /* Test constant expressions. */
6283 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6284 ? 1 : -1)];
6285 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6286 ? 1 : -1)];
6287 int i = 63;
6289 main ()
6291 /* Test availability of runtime routines for shift and division. */
6292 long long int llmax = 9223372036854775807ll;
6293 unsigned long long int ullmax = 18446744073709551615ull;
6294 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6295 | (llmax / ll) | (llmax % ll)
6296 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6297 | (ullmax / ull) | (ullmax % ull));
6299 return 0;
6302 _ACEOF
6303 if ac_fn_c_try_link "$LINENO"; then :
6304 ac_cv_type_unsigned_long_long_int=yes
6305 else
6306 ac_cv_type_unsigned_long_long_int=no
6308 rm -f core conftest.err conftest.$ac_objext \
6309 conftest$ac_exeext conftest.$ac_ext
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6312 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6313 if test $ac_cv_type_unsigned_long_long_int = yes; then
6315 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6321 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6322 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6324 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6326 else
6327 test $ac_cv_type_unsigned_long_long_int = yes \
6328 && ac_type='unsigned long long int' \
6329 || ac_type='unsigned long int'
6331 cat >>confdefs.h <<_ACEOF
6332 #define uintmax_t $ac_type
6333 _ACEOF
6339 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6340 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6342 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6344 else
6345 for ac_type in 'unsigned int' 'unsigned long int' \
6346 'unsigned long long int'; do
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6349 $ac_includes_default
6351 main ()
6353 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6354 test_array [0] = 0
6357 return 0;
6359 _ACEOF
6360 if ac_fn_c_try_compile "$LINENO"; then :
6362 cat >>confdefs.h <<_ACEOF
6363 #define uintptr_t $ac_type
6364 _ACEOF
6366 ac_type=
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 test -z "$ac_type" && break
6370 done
6387 # ---------------------
6388 # Warnings and checking
6389 # ---------------------
6391 # Check $CC warning features (if it's GCC).
6392 # We want to use -pedantic, but we don't want warnings about
6393 # * 'long long'
6394 # * variadic macros
6395 # * overlong strings
6396 # * C++11 narrowing conversions in { }
6397 # So, we only use -pedantic if we can disable those warnings.
6399 loose_warn=
6400 save_CFLAGS="$CFLAGS"
6401 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6402 # Do the check with the no- prefix removed since gcc silently
6403 # accepts any -Wno-* option on purpose
6404 case $real_option in
6405 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6406 *) option=$real_option ;;
6407 esac
6408 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6411 $as_echo_n "checking whether $CC supports $option... " >&6; }
6412 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 CFLAGS="$option"
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6420 main ()
6424 return 0;
6426 _ACEOF
6427 if ac_fn_c_try_compile "$LINENO"; then :
6428 eval "$as_acx_Woption=yes"
6429 else
6430 eval "$as_acx_Woption=no"
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 eval ac_res=\$$as_acx_Woption
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6437 $as_echo "$ac_res" >&6; }
6438 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6439 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6441 done
6442 CFLAGS="$save_CFLAGS"
6444 c_loose_warn=
6445 save_CFLAGS="$CFLAGS"
6446 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6447 # Do the check with the no- prefix removed since gcc silently
6448 # accepts any -Wno-* option on purpose
6449 case $real_option in
6450 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6451 *) option=$real_option ;;
6452 esac
6453 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6456 $as_echo_n "checking whether $CC supports $option... " >&6; }
6457 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 CFLAGS="$option"
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6465 main ()
6469 return 0;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 eval "$as_acx_Woption=yes"
6474 else
6475 eval "$as_acx_Woption=no"
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 eval ac_res=\$$as_acx_Woption
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6482 $as_echo "$ac_res" >&6; }
6483 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6484 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6486 done
6487 CFLAGS="$save_CFLAGS"
6489 strict_warn=
6490 save_CFLAGS="$CFLAGS"
6491 for real_option in -Wmissing-format-attribute; do
6492 # Do the check with the no- prefix removed since gcc silently
6493 # accepts any -Wno-* option on purpose
6494 case $real_option in
6495 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6496 *) option=$real_option ;;
6497 esac
6498 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6501 $as_echo_n "checking whether $CC supports $option... " >&6; }
6502 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 CFLAGS="$option"
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6510 main ()
6514 return 0;
6516 _ACEOF
6517 if ac_fn_c_try_compile "$LINENO"; then :
6518 eval "$as_acx_Woption=yes"
6519 else
6520 eval "$as_acx_Woption=no"
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 eval ac_res=\$$as_acx_Woption
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6527 $as_echo "$ac_res" >&6; }
6528 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6529 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6531 done
6532 CFLAGS="$save_CFLAGS"
6534 c_strict_warn=
6535 save_CFLAGS="$CFLAGS"
6536 for real_option in -Wold-style-definition -Wc++-compat; do
6537 # Do the check with the no- prefix removed since gcc silently
6538 # accepts any -Wno-* option on purpose
6539 case $real_option in
6540 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6541 *) option=$real_option ;;
6542 esac
6543 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6546 $as_echo_n "checking whether $CC supports $option... " >&6; }
6547 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 CFLAGS="$option"
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6555 main ()
6559 return 0;
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 eval "$as_acx_Woption=yes"
6564 else
6565 eval "$as_acx_Woption=no"
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 eval ac_res=\$$as_acx_Woption
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6572 $as_echo "$ac_res" >&6; }
6573 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6574 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6576 done
6577 CFLAGS="$save_CFLAGS"
6579 # Do the check with the no- prefix removed from the warning options
6580 # since gcc silently accepts any -Wno-* option on purpose
6581 if test "$GCC" = yes; then :
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6583 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6584 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 save_CFLAGS="$CFLAGS"
6588 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6593 main ()
6597 return 0;
6599 _ACEOF
6600 if ac_fn_c_try_compile "$LINENO"; then :
6601 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6602 else
6603 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 CFLAGS="$save_CFLAGS"
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6609 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6610 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6611 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6616 # Check whether --enable-werror-always was given.
6617 if test "${enable_werror_always+set}" = set; then :
6618 enableval=$enable_werror_always;
6619 else
6620 enable_werror_always=no
6623 if test $enable_werror_always = yes; then :
6624 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6629 # The above macros do nothing if the compiler is not GCC. However, the
6630 # Makefile has more goo to add other flags, so these variables are used
6631 # to enable warnings only for GCC.
6632 warn_cflags=
6633 warn_cxxflags=
6634 if test "x$GCC" = "xyes"; then
6635 warn_cflags='$(GCC_WARN_CFLAGS)'
6636 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6641 # Disable exceptions and RTTI if building with g++
6642 noexception_flags=
6643 save_CFLAGS="$CFLAGS"
6644 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6645 # Do the check with the no- prefix removed since gcc silently
6646 # accepts any -Wno-* option on purpose
6647 case $real_option in
6648 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6649 *) option=$real_option ;;
6650 esac
6651 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6654 $as_echo_n "checking whether $CC supports $option... " >&6; }
6655 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 CFLAGS="$option"
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6663 main ()
6667 return 0;
6669 _ACEOF
6670 if ac_fn_c_try_compile "$LINENO"; then :
6671 eval "$as_acx_Woption=yes"
6672 else
6673 eval "$as_acx_Woption=no"
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 eval ac_res=\$$as_acx_Woption
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6680 $as_echo "$ac_res" >&6; }
6681 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6682 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6684 done
6685 CFLAGS="$save_CFLAGS"
6688 # Enable expensive internal checks
6689 is_release=
6690 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6691 is_release=yes
6694 # Check whether --enable-checking was given.
6695 if test "${enable_checking+set}" = set; then :
6696 enableval=$enable_checking; ac_checking_flags="${enableval}"
6697 else
6699 # Determine the default checks.
6700 if test x$is_release = x ; then
6701 ac_checking_flags=yes
6702 else
6703 ac_checking_flags=release
6707 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6708 for check in release $ac_checking_flags
6710 case $check in
6711 # these set all the flags to specific states
6712 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6713 ac_fold_checking= ; ac_gc_checking=1 ;
6714 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6715 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6716 ac_tree_checking=1 ; ac_valgrind_checking= ;
6717 ac_types_checking=1 ;;
6718 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6719 ac_fold_checking= ; ac_gc_checking= ;
6720 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6721 ac_rtlflag_checking= ; ac_runtime_checking= ;
6722 ac_tree_checking= ; ac_valgrind_checking= ;
6723 ac_types_checking= ;;
6724 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6725 ac_fold_checking=1 ; ac_gc_checking=1 ;
6726 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6727 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6728 ac_tree_checking=1 ; ac_valgrind_checking= ;
6729 ac_types_checking=1 ;;
6730 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6731 ac_fold_checking= ; ac_gc_checking= ;
6732 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6733 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6734 ac_tree_checking= ; ac_valgrind_checking= ;
6735 ac_types_checking= ;;
6736 # these enable particular checks
6737 assert) ac_assert_checking=1 ;;
6738 df) ac_df_checking=1 ;;
6739 fold) ac_fold_checking=1 ;;
6740 gc) ac_gc_checking=1 ;;
6741 gcac) ac_gc_always_collect=1 ;;
6742 gimple) ac_gimple_checking=1 ;;
6743 misc) ac_checking=1 ;;
6744 rtl) ac_rtl_checking=1 ;;
6745 rtlflag) ac_rtlflag_checking=1 ;;
6746 runtime) ac_runtime_checking=1 ;;
6747 tree) ac_tree_checking=1 ;;
6748 types) ac_types_checking=1 ;;
6749 valgrind) ac_valgrind_checking=1 ;;
6750 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6751 esac
6752 done
6753 IFS="$ac_save_IFS"
6755 nocommon_flag=""
6756 if test x$ac_checking != x ; then
6758 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6760 nocommon_flag=-fno-common
6763 if test x$ac_df_checking != x ; then
6765 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6768 if test x$ac_assert_checking != x ; then
6770 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6773 if test x$ac_gimple_checking != x ; then
6775 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6779 if test x$ac_runtime_checking != x ; then
6781 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6784 if test x$ac_tree_checking != x ; then
6786 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6788 TREEBROWSER=tree-browser.o
6790 if test x$ac_types_checking != x ; then
6792 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6796 if test x$ac_rtl_checking != x ; then
6798 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6801 if test x$ac_rtlflag_checking != x ; then
6803 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6806 if test x$ac_gc_checking != x ; then
6808 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6811 if test x$ac_gc_always_collect != x ; then
6813 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6816 if test x$ac_fold_checking != x ; then
6818 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6821 valgrind_path_defines=
6822 valgrind_command=
6824 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6825 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6826 have_valgrind_h=yes
6827 else
6828 have_valgrind_h=no
6833 if test x$ac_valgrind_checking != x ; then
6834 # It is certainly possible that there's valgrind but no valgrind.h.
6835 # GCC relies on making annotations so we must have both.
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6837 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 #include <valgrind/memcheck.h>
6841 #ifndef VALGRIND_DISCARD
6842 #error VALGRIND_DISCARD not defined
6843 #endif
6844 _ACEOF
6845 if ac_fn_c_try_cpp "$LINENO"; then :
6846 gcc_cv_header_valgrind_memcheck_h=yes
6847 else
6848 gcc_cv_header_valgrind_memcheck_h=no
6850 rm -f conftest.err conftest.$ac_ext
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6852 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6854 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <memcheck.h>
6858 #ifndef VALGRIND_DISCARD
6859 #error VALGRIND_DISCARD not defined
6860 #endif
6861 _ACEOF
6862 if ac_fn_c_try_cpp "$LINENO"; then :
6863 gcc_cv_header_memcheck_h=yes
6864 else
6865 gcc_cv_header_memcheck_h=no
6867 rm -f conftest.err conftest.$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6869 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6871 # Prepare PATH_SEPARATOR.
6872 # The user is always right.
6873 if test "${PATH_SEPARATOR+set}" != set; then
6874 echo "#! /bin/sh" >conf$$.sh
6875 echo "exit 0" >>conf$$.sh
6876 chmod +x conf$$.sh
6877 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6878 PATH_SEPARATOR=';'
6879 else
6880 PATH_SEPARATOR=:
6882 rm -f conf$$.sh
6885 # Find out how to test for executable files. Don't use a zero-byte file,
6886 # as systems may use methods other than mode bits to determine executability.
6887 cat >conf$$.file <<_ASEOF
6888 #! /bin/sh
6889 exit 0
6890 _ASEOF
6891 chmod +x conf$$.file
6892 if test -x conf$$.file >/dev/null 2>&1; then
6893 ac_executable_p="test -x"
6894 else
6895 ac_executable_p="test -f"
6897 rm -f conf$$.file
6899 # Extract the first word of "valgrind", so it can be a program name with args.
6900 set dummy valgrind; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 case "$valgrind_path" in
6907 [\\/]* | ?:[\\/]*)
6908 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6911 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6912 for ac_dir in $PATH; do
6913 IFS="$ac_save_IFS"
6914 test -z "$ac_dir" && ac_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6917 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6918 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6919 break 2
6922 done
6923 done
6924 IFS="$ac_save_IFS"
6926 esac
6928 valgrind_path="$ac_cv_path_valgrind_path"
6929 if test -n "$valgrind_path"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6931 $as_echo "$valgrind_path" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6937 if test "x$valgrind_path" = "x" \
6938 || (test $have_valgrind_h = no \
6939 && test $gcc_cv_header_memcheck_h = no \
6940 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6941 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6943 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6944 valgrind_command="$valgrind_path -q"
6946 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6948 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6950 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6953 if test $gcc_cv_header_memcheck_h = yes; then
6955 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6962 # Enable code coverage collection
6963 # Check whether --enable-coverage was given.
6964 if test "${enable_coverage+set}" = set; then :
6965 enableval=$enable_coverage; case "${enableval}" in
6966 yes|noopt)
6967 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6969 opt)
6970 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6973 # a.k.a. --disable-coverage
6974 coverage_flags=""
6977 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6979 esac
6980 else
6981 coverage_flags=""
6986 # Check whether --enable-gather-detailed-mem-stats was given.
6987 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6988 enableval=$enable_gather_detailed_mem_stats;
6989 else
6990 enable_gather_detailed_mem_stats=no
6993 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6995 cat >>confdefs.h <<_ACEOF
6996 #define GATHER_STATISTICS $gather_stats
6997 _ACEOF
7000 # -------------------------------
7001 # Miscenalleous configure options
7002 # -------------------------------
7004 # With stabs
7006 # Check whether --with-stabs was given.
7007 if test "${with_stabs+set}" = set; then :
7008 withval=$with_stabs; stabs="$with_stabs"
7009 else
7010 stabs=no
7014 # Determine whether or not multilibs are enabled.
7015 # Check whether --enable-multilib was given.
7016 if test "${enable_multilib+set}" = set; then :
7017 enableval=$enable_multilib;
7018 else
7019 enable_multilib=yes
7024 # Determine whether or not multiarch is enabled.
7025 # Check whether --enable-multiarch was given.
7026 if test "${enable_multiarch+set}" = set; then :
7027 enableval=$enable_multiarch; case "${enableval}" in
7028 yes|no|auto) enable_multiarch=$enableval;;
7029 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7030 esac
7031 else
7032 enable_multiarch=auto
7035 if test x${enable_multiarch} = xauto; then
7036 if test x${with_native_system_header_dir} != x; then
7037 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7038 enable_multiarch=no
7040 if test x$host != x$target && test "x$with_sysroot" = x; then
7041 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7042 enable_multiarch=no
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7046 $as_echo_n "checking for multiarch configuration... " >&6; }
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7049 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7051 # needed for setting the multiarch name for soft-float/hard-float ABIs
7055 # Enable __cxa_atexit for C++.
7056 # Check whether --enable-__cxa_atexit was given.
7057 if test "${enable___cxa_atexit+set}" = set; then :
7058 enableval=$enable___cxa_atexit;
7062 # Enable C extension for decimal float if target supports it.
7064 # Check whether --enable-decimal-float was given.
7065 if test "${enable_decimal_float+set}" = set; then :
7066 enableval=$enable_decimal_float;
7067 case $enable_decimal_float in
7068 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7069 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7070 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7071 esac
7073 else
7075 case $target in
7076 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7077 i?86*-*-gnu* | \
7078 i?86*-*-mingw* | x86_64*-*-mingw* | \
7079 i?86*-*-cygwin*)
7080 enable_decimal_float=yes
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7084 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7085 enable_decimal_float=no
7087 esac
7092 # x86's use BID format instead of DPD
7093 case x$enable_decimal_float in
7094 xyes)
7095 case $target in
7096 i?86*-*-* | x86_64*-*-*)
7097 enable_decimal_float=bid
7100 enable_decimal_float=dpd
7102 esac
7103 default_decimal_float=$enable_decimal_float
7105 xno)
7106 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7107 # dependency on libdecnumber.
7108 default_decimal_float=dpd
7110 esac
7115 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7117 cat >>confdefs.h <<_ACEOF
7118 #define ENABLE_DECIMAL_FLOAT $dfp
7119 _ACEOF
7122 # Use default_decimal_float for dependency.
7123 enable_decimal_float=$default_decimal_float
7125 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7127 cat >>confdefs.h <<_ACEOF
7128 #define ENABLE_DECIMAL_BID_FORMAT $bid
7129 _ACEOF
7132 # Enable C extension for fixed-point arithmetic.
7133 # Check whether --enable-fixed-point was given.
7134 if test "${enable_fixed_point+set}" = set; then :
7135 enableval=$enable_fixed_point;
7136 else
7138 case $target in
7139 arm*)
7140 enable_fixed_point=yes
7143 mips*-*-*)
7144 enable_fixed_point=yes
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7148 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7149 enable_fixed_point=no
7151 esac
7157 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7159 cat >>confdefs.h <<_ACEOF
7160 #define ENABLE_FIXED_POINT $fixedpoint
7161 _ACEOF
7164 # Enable threads
7165 # Pass with no value to take the default
7166 # Pass with a value to specify a thread package
7167 # Check whether --enable-threads was given.
7168 if test "${enable_threads+set}" = set; then :
7169 enableval=$enable_threads;
7170 else
7171 enable_threads=''
7175 # Check whether --enable-tls was given.
7176 if test "${enable_tls+set}" = set; then :
7177 enableval=$enable_tls;
7178 case $enable_tls in
7179 yes | no) ;;
7180 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7181 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7182 esac
7184 else
7185 enable_tls=''
7189 # Check whether --enable-objc-gc was given.
7190 if test "${enable_objc_gc+set}" = set; then :
7191 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7192 objc_boehm_gc=''
7193 else
7194 objc_boehm_gc=1
7196 else
7197 objc_boehm_gc=''
7202 # Check whether --with-dwarf2 was given.
7203 if test "${with_dwarf2+set}" = set; then :
7204 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7205 else
7206 dwarf2=no
7210 # Check whether --enable-shared was given.
7211 if test "${enable_shared+set}" = set; then :
7212 enableval=$enable_shared;
7213 case $enable_shared in
7214 yes | no) ;;
7216 enable_shared=no
7217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7218 for pkg in $enableval; do
7219 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7220 enable_shared=yes
7222 done
7223 IFS="$ac_save_ifs"
7225 esac
7227 else
7228 enable_shared=yes
7234 # Check whether --with-native-system-header-dir was given.
7235 if test "${with_native_system_header_dir+set}" = set; then :
7236 withval=$with_native_system_header_dir;
7237 case ${with_native_system_header_dir} in
7238 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7239 /* | [A-Za-z]:[\\/]*) ;;
7240 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7241 esac
7242 configured_native_system_header_dir="${withval}"
7244 else
7245 configured_native_system_header_dir=
7250 # Check whether --with-build-sysroot was given.
7251 if test "${with_build_sysroot+set}" = set; then :
7252 withval=$with_build_sysroot; if test x"$withval" != x ; then
7253 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7255 else
7256 SYSROOT_CFLAGS_FOR_TARGET=
7261 if test "x$prefix" = xNONE; then
7262 test_prefix=/usr/local
7263 else
7264 test_prefix=$prefix
7266 if test "x$exec_prefix" = xNONE; then
7267 test_exec_prefix=$test_prefix
7268 else
7269 test_exec_prefix=$exec_prefix
7273 # Check whether --with-sysroot was given.
7274 if test "${with_sysroot+set}" = set; then :
7275 withval=$with_sysroot;
7276 case ${with_sysroot} in
7277 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7278 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7279 esac
7281 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7282 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7284 case ${TARGET_SYSTEM_ROOT} in
7285 "${test_prefix}"|"${test_prefix}/"*|\
7286 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7287 '${prefix}'|'${prefix}/'*|\
7288 '${exec_prefix}'|'${exec_prefix}/'*)
7289 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7290 TARGET_SYSTEM_ROOT_DEFINE="$t"
7292 esac
7294 else
7296 TARGET_SYSTEM_ROOT=
7297 TARGET_SYSTEM_ROOT_DEFINE=
7298 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7307 # Check whether --with-specs was given.
7308 if test "${with_specs+set}" = set; then :
7309 withval=$with_specs; CONFIGURE_SPECS=$withval
7310 else
7311 CONFIGURE_SPECS=
7319 # Check whether --with-pkgversion was given.
7320 if test "${with_pkgversion+set}" = set; then :
7321 withval=$with_pkgversion; case "$withval" in
7322 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7323 no) PKGVERSION= ;;
7324 *) PKGVERSION="($withval) " ;;
7325 esac
7326 else
7327 PKGVERSION="(GCC) "
7335 # Check whether --with-bugurl was given.
7336 if test "${with_bugurl+set}" = set; then :
7337 withval=$with_bugurl; case "$withval" in
7338 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7339 no) BUGURL=
7341 *) BUGURL="$withval"
7343 esac
7344 else
7345 BUGURL="http://gcc.gnu.org/bugs.html"
7349 case ${BUGURL} in
7351 REPORT_BUGS_TO=
7352 REPORT_BUGS_TEXI=
7355 REPORT_BUGS_TO="<$BUGURL>"
7356 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7358 esac;
7363 # Sanity check enable_languages in case someone does not run the toplevel
7364 # configure # script.
7365 # Check whether --enable-languages was given.
7366 if test "${enable_languages+set}" = set; then :
7367 enableval=$enable_languages; case ,${enable_languages}, in
7368 ,,|,yes,)
7369 # go safe -- we cannot be much sure without the toplevel
7370 # configure's
7371 # analysis of which target libs are present and usable
7372 enable_languages=c
7374 *,all,*)
7375 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7377 *,c,*)
7380 enable_languages=c,${enable_languages}
7382 esac
7383 else
7384 enable_languages=c
7389 # Check whether --with-multilib-list was given.
7390 if test "${with_multilib_list+set}" = set; then :
7391 withval=$with_multilib_list; :
7392 else
7393 with_multilib_list=default
7397 # -------------------------
7398 # Checks for other programs
7399 # -------------------------
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7402 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7403 set x ${MAKE-make}
7404 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7405 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 cat >conftest.make <<\_ACEOF
7409 SHELL = /bin/sh
7410 all:
7411 @echo '@@@%%%=$(MAKE)=@@@%%%'
7412 _ACEOF
7413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7414 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7415 *@@@%%%=?*=@@@%%%*)
7416 eval ac_cv_prog_make_${ac_make}_set=yes;;
7418 eval ac_cv_prog_make_${ac_make}_set=no;;
7419 esac
7420 rm -f conftest.make
7422 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7424 $as_echo "yes" >&6; }
7425 SET_MAKE=
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 SET_MAKE="MAKE=${MAKE-make}"
7433 # Find some useful tools
7434 for ac_prog in gawk mawk nawk awk
7436 # Extract the first word of "$ac_prog", so it can be a program name with args.
7437 set dummy $ac_prog; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if test "${ac_cv_prog_AWK+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 if test -n "$AWK"; then
7444 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_prog_AWK="$ac_prog"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7457 done
7458 done
7459 IFS=$as_save_IFS
7463 AWK=$ac_cv_prog_AWK
7464 if test -n "$AWK"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7466 $as_echo "$AWK" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7473 test -n "$AWK" && break
7474 done
7476 # We need awk to create options.c and options.h.
7477 # Bail out if it's missing.
7478 case ${AWK} in
7479 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7480 esac
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7483 $as_echo_n "checking whether ln -s works... " >&6; }
7484 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 rm -f conftestdata_t
7488 echo >conftestdata_f
7489 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7490 then
7491 gcc_cv_prog_LN_S="ln -s"
7492 else
7493 if ln conftestdata_f conftestdata_t 2>/dev/null
7494 then
7495 gcc_cv_prog_LN_S=ln
7496 else
7497 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7498 then
7499 gcc_cv_prog_LN_S="cp -p"
7500 else
7501 gcc_cv_prog_LN_S=cp
7505 rm -f conftestdata_f conftestdata_t
7508 LN_S="$gcc_cv_prog_LN_S"
7509 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7511 $as_echo "yes" >&6; }
7512 else
7513 if test "$gcc_cv_prog_LN_S" = "ln"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7515 $as_echo "no, using ln" >&6; }
7516 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7518 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7523 $as_echo_n "checking whether ln works... " >&6; }
7524 if test "${acx_cv_prog_LN+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 rm -f conftestdata_t
7528 echo >conftestdata_f
7529 if ln conftestdata_f conftestdata_t 2>/dev/null
7530 then
7531 acx_cv_prog_LN=ln
7532 else
7533 acx_cv_prog_LN=no
7535 rm -f conftestdata_f conftestdata_t
7538 if test $acx_cv_prog_LN = no; then
7539 LN="$LN_S"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7541 $as_echo "no, using $LN" >&6; }
7542 else
7543 LN="$acx_cv_prog_LN"
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7545 $as_echo "yes" >&6; }
7548 if test -n "$ac_tool_prefix"; then
7549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 if test -n "$RANLIB"; then
7557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7570 done
7571 done
7572 IFS=$as_save_IFS
7576 RANLIB=$ac_cv_prog_RANLIB
7577 if test -n "$RANLIB"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7579 $as_echo "$RANLIB" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7587 if test -z "$ac_cv_prog_RANLIB"; then
7588 ac_ct_RANLIB=$RANLIB
7589 # Extract the first word of "ranlib", so it can be a program name with args.
7590 set dummy ranlib; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 if test -n "$ac_ct_RANLIB"; then
7597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_prog_ac_ct_RANLIB="ranlib"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7610 done
7611 done
7612 IFS=$as_save_IFS
7616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7617 if test -n "$ac_ct_RANLIB"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7619 $as_echo "$ac_ct_RANLIB" >&6; }
7620 else
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7625 if test "x$ac_ct_RANLIB" = x; then
7626 RANLIB=":"
7627 else
7628 case $cross_compiling:$ac_tool_warned in
7629 yes:)
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned=yes ;;
7633 esac
7634 RANLIB=$ac_ct_RANLIB
7636 else
7637 RANLIB="$ac_cv_prog_RANLIB"
7640 ranlib_flags=""
7643 # Find a good install program. We prefer a C program (faster),
7644 # so one script is as good as another. But avoid the broken or
7645 # incompatible versions:
7646 # SysV /etc/install, /usr/sbin/install
7647 # SunOS /usr/etc/install
7648 # IRIX /sbin/install
7649 # AIX /bin/install
7650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7652 # ./install, which can be erroneously created by make from ./install.sh.
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7654 $as_echo_n "checking for a BSD compatible install... " >&6; }
7655 if test -z "$INSTALL"; then
7656 if test "${ac_cv_path_install+set}" = set; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7660 for ac_dir in $PATH; do
7661 # Account for people who put trailing slashes in PATH elements.
7662 case "$ac_dir/" in
7663 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7665 # OSF1 and SCO ODT 3.0 have their own names for install.
7666 for ac_prog in ginstall scoinst install; do
7667 if test -f $ac_dir/$ac_prog; then
7668 if test $ac_prog = install &&
7669 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7670 # AIX install. It has an incompatible calling convention.
7671 # OSF/1 installbsd also uses dspmsg, but is usable.
7673 else
7674 ac_cv_path_install="$ac_dir/$ac_prog -c"
7675 break 2
7678 done
7680 esac
7681 done
7682 IFS="$ac_save_IFS"
7685 if test "${ac_cv_path_install+set}" = set; then
7686 INSTALL="$ac_cv_path_install"
7687 else
7688 # As a last resort, use the slow shell script. We don't cache a
7689 # path for INSTALL within a source directory, because that will
7690 # break other packages using the cache if that directory is
7691 # removed, or if the path is relative.
7692 INSTALL="$ac_install_sh"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7696 $as_echo "$INSTALL" >&6; }
7698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7699 # It thinks the first close brace ends the variable substitution.
7700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7705 # See if cmp has --ignore-initial.
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7707 $as_echo_n "checking for cmp's capabilities... " >&6; }
7708 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 echo abfoo >t1
7712 echo cdfoo >t2
7713 gcc_cv_prog_cmp_skip=slowcompare
7714 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7715 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7717 else
7718 gcc_cv_prog_cmp_skip=gnucompare
7721 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7722 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7723 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7725 else
7726 gcc_cv_prog_cmp_skip=fastcompare
7730 rm t1 t2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7734 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7735 make_compare_target=$gcc_cv_prog_cmp_skip
7739 # See if we have the mktemp command.
7740 # Extract the first word of "mktemp", so it can be a program name with args.
7741 set dummy mktemp; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 if test -n "$have_mktemp_command"; then
7748 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_prog_have_mktemp_command="yes"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7761 done
7762 done
7763 IFS=$as_save_IFS
7765 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7768 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7769 if test -n "$have_mktemp_command"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7771 $as_echo "$have_mktemp_command" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7779 # See if makeinfo has been installed and is modern enough
7780 # that we can use it.
7782 # Extract the first word of "makeinfo", so it can be a program name with args.
7783 set dummy makeinfo; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 if test -n "$MAKEINFO"; then
7790 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_prog_MAKEINFO="makeinfo"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7803 done
7804 done
7805 IFS=$as_save_IFS
7809 MAKEINFO=$ac_cv_prog_MAKEINFO
7810 if test -n "$MAKEINFO"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7812 $as_echo "$MAKEINFO" >&6; }
7813 else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7819 if test -n "$MAKEINFO"; then
7820 # Found it, now check the version.
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7822 $as_echo_n "checking for modern makeinfo... " >&6; }
7823 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7827 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7829 case $ac_prog_version in
7830 '') gcc_cv_prog_makeinfo_modern=no;;
7831 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7832 *) gcc_cv_prog_makeinfo_modern=no;;
7833 esac
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7837 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7838 else
7839 gcc_cv_prog_makeinfo_modern=no
7841 if test $gcc_cv_prog_makeinfo_modern = no; then
7842 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7845 if test $gcc_cv_prog_makeinfo_modern = no; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7847 *** Makeinfo is missing or too old.
7848 *** Info documentation will not be built." >&5
7849 $as_echo "$as_me: WARNING:
7850 *** Makeinfo is missing or too old.
7851 *** Info documentation will not be built." >&2;}
7852 BUILD_INFO=
7853 else
7854 BUILD_INFO=info
7858 # Is pod2man recent enough to regenerate manpages?
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7860 $as_echo_n "checking for recent Pod::Man... " >&6; }
7861 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7863 $as_echo "yes" >&6; }
7864 GENERATED_MANPAGES=generated-manpages
7865 else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7868 GENERATED_MANPAGES=
7872 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7874 # How about lex?
7875 for ac_prog in flex
7877 # Extract the first word of "$ac_prog", so it can be a program name with args.
7878 set dummy $ac_prog; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if test "${ac_cv_prog_FLEX+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 if test -n "$FLEX"; then
7885 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7886 else
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7894 ac_cv_prog_FLEX="$ac_prog"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 break 2
7898 done
7899 done
7900 IFS=$as_save_IFS
7904 FLEX=$ac_cv_prog_FLEX
7905 if test -n "$FLEX"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7907 $as_echo "$FLEX" >&6; }
7908 else
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7914 test -n "$FLEX" && break
7915 done
7916 test -n "$FLEX" || FLEX="$MISSING flex"
7919 # Bison?
7920 for ac_prog in bison
7922 # Extract the first word of "$ac_prog", so it can be a program name with args.
7923 set dummy $ac_prog; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if test "${ac_cv_prog_BISON+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$BISON"; then
7930 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_BISON="$ac_prog"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7943 done
7944 done
7945 IFS=$as_save_IFS
7949 BISON=$ac_cv_prog_BISON
7950 if test -n "$BISON"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7952 $as_echo "$BISON" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7959 test -n "$BISON" && break
7960 done
7961 test -n "$BISON" || BISON="$MISSING bison"
7964 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7965 # check for build == host before using them.
7967 # NM
7968 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7969 && test -d ../binutils ; then
7970 NM='${objdir}/../binutils/nm-new'
7971 else
7972 # Extract the first word of "nm", so it can be a program name with args.
7973 set dummy nm; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if test "${ac_cv_prog_NM+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 if test -n "$NM"; then
7980 ac_cv_prog_NM="$NM" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_prog_NM="nm"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7993 done
7994 done
7995 IFS=$as_save_IFS
7997 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8000 NM=$ac_cv_prog_NM
8001 if test -n "$NM"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8003 $as_echo "$NM" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8012 # AR
8013 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8014 && test -d ../binutils ; then
8015 AR='${objdir}/../binutils/ar'
8016 else
8017 # Extract the first word of "ar", so it can be a program name with args.
8018 set dummy ar; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if test "${ac_cv_prog_AR+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 if test -n "$AR"; then
8025 ac_cv_prog_AR="$AR" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8034 ac_cv_prog_AR="ar"
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 break 2
8038 done
8039 done
8040 IFS=$as_save_IFS
8042 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8045 AR=$ac_cv_prog_AR
8046 if test -n "$AR"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8048 $as_echo "$AR" >&6; }
8049 else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8058 # --------------------
8059 # Checks for C headers
8060 # --------------------
8062 # Need to reject headers which give warnings, so that the -Werror bootstrap
8063 # works later. *sigh* This needs to come before all header checks.
8065 ac_c_preproc_warn_flag=yes
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8068 $as_echo_n "checking for ANSI C header files... " >&6; }
8069 if test "${ac_cv_header_stdc+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074 #include <stdlib.h>
8075 #include <stdarg.h>
8076 #include <string.h>
8077 #include <float.h>
8080 main ()
8084 return 0;
8086 _ACEOF
8087 if ac_fn_c_try_compile "$LINENO"; then :
8088 ac_cv_header_stdc=yes
8089 else
8090 ac_cv_header_stdc=no
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 if test $ac_cv_header_stdc = yes; then
8095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098 #include <string.h>
8100 _ACEOF
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8102 $EGREP "memchr" >/dev/null 2>&1; then :
8104 else
8105 ac_cv_header_stdc=no
8107 rm -f conftest*
8111 if test $ac_cv_header_stdc = yes; then
8112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <stdlib.h>
8117 _ACEOF
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119 $EGREP "free" >/dev/null 2>&1; then :
8121 else
8122 ac_cv_header_stdc=no
8124 rm -f conftest*
8128 if test $ac_cv_header_stdc = yes; then
8129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130 if test "$cross_compiling" = yes; then :
8132 else
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135 #include <ctype.h>
8136 #include <stdlib.h>
8137 #if ((' ' & 0x0FF) == 0x020)
8138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8140 #else
8141 # define ISLOWER(c) \
8142 (('a' <= (c) && (c) <= 'i') \
8143 || ('j' <= (c) && (c) <= 'r') \
8144 || ('s' <= (c) && (c) <= 'z'))
8145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8146 #endif
8148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8150 main ()
8152 int i;
8153 for (i = 0; i < 256; i++)
8154 if (XOR (islower (i), ISLOWER (i))
8155 || toupper (i) != TOUPPER (i))
8156 return 2;
8157 return 0;
8159 _ACEOF
8160 if ac_fn_c_try_run "$LINENO"; then :
8162 else
8163 ac_cv_header_stdc=no
8165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8166 conftest.$ac_objext conftest.beam conftest.$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8172 $as_echo "$ac_cv_header_stdc" >&6; }
8173 if test $ac_cv_header_stdc = yes; then
8175 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8180 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8181 if test "${ac_cv_header_time+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 #include <sys/types.h>
8187 #include <sys/time.h>
8188 #include <time.h>
8191 main ()
8193 if ((struct tm *) 0)
8194 return 0;
8196 return 0;
8198 _ACEOF
8199 if ac_fn_c_try_compile "$LINENO"; then :
8200 ac_cv_header_time=yes
8201 else
8202 ac_cv_header_time=no
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8207 $as_echo "$ac_cv_header_time" >&6; }
8208 if test $ac_cv_header_time = yes; then
8210 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8215 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8216 if test "${gcc_cv_header_string+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #include <string.h>
8222 #include <strings.h>
8224 main ()
8228 return 0;
8230 _ACEOF
8231 if ac_fn_c_try_compile "$LINENO"; then :
8232 gcc_cv_header_string=yes
8233 else
8234 gcc_cv_header_string=no
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8239 $as_echo "$gcc_cv_header_string" >&6; }
8240 if test $gcc_cv_header_string = yes; then
8242 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8247 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8248 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253 #include <sys/types.h>
8254 #include <sys/wait.h>
8255 #ifndef WEXITSTATUS
8256 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8257 #endif
8258 #ifndef WIFEXITED
8259 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8260 #endif
8263 main ()
8265 int s;
8266 wait (&s);
8267 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8269 return 0;
8271 _ACEOF
8272 if ac_fn_c_try_compile "$LINENO"; then :
8273 ac_cv_header_sys_wait_h=yes
8274 else
8275 ac_cv_header_sys_wait_h=no
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8280 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8281 if test $ac_cv_header_sys_wait_h = yes; then
8283 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8287 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8288 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8289 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8290 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8291 do :
8292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8293 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8294 eval as_val=\$$as_ac_Header
8295 if test "x$as_val" = x""yes; then :
8296 cat >>confdefs.h <<_ACEOF
8297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8298 _ACEOF
8301 done
8304 # Check for thread headers.
8305 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8306 if test "x$ac_cv_header_thread_h" = x""yes; then :
8307 have_thread_h=yes
8308 else
8309 have_thread_h=
8312 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8313 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8314 have_pthread_h=yes
8315 else
8316 have_pthread_h=
8320 # These tests can't be done till we know if we have limits.h.
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8322 $as_echo_n "checking for CHAR_BIT... " >&6; }
8323 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #ifdef HAVE_LIMITS_H
8329 #include <limits.h>
8330 #endif
8331 #ifdef CHAR_BIT
8332 found
8333 #endif
8334 _ACEOF
8335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8336 $EGREP "found" >/dev/null 2>&1; then :
8337 gcc_cv_decl_char_bit=yes
8338 else
8339 gcc_cv_decl_char_bit=no
8341 rm -f conftest*
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8346 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8347 if test $gcc_cv_decl_char_bit = no; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8349 $as_echo_n "checking number of bits in a byte... " >&6; }
8350 if test "${gcc_cv_c_nbby+set}" = set; then :
8351 $as_echo_n "(cached) " >&6
8352 else
8354 gcc_cv_c_nbby=
8355 while test $i -lt 65; do
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8360 main ()
8362 switch(0) {
8363 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8364 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8367 return 0;
8369 _ACEOF
8370 if ac_fn_c_try_compile "$LINENO"; then :
8371 gcc_cv_c_nbby=$i; break
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 i=`expr $i + 1`
8375 done
8376 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8380 $as_echo "$gcc_cv_c_nbby" >&6; }
8381 if test $gcc_cv_c_nbby = failed; then
8382 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8383 else
8385 cat >>confdefs.h <<_ACEOF
8386 #define CHAR_BIT $gcc_cv_c_nbby
8387 _ACEOF
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8392 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8393 if test "${ac_cv_c_bigendian+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 ac_cv_c_bigendian=unknown
8397 # See if we're dealing with a universal compiler.
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 #ifndef __APPLE_CC__
8401 not a universal capable compiler
8402 #endif
8403 typedef int dummy;
8405 _ACEOF
8406 if ac_fn_c_try_compile "$LINENO"; then :
8408 # Check for potential -arch flags. It is not universal unless
8409 # there are at least two -arch flags with different values.
8410 ac_arch=
8411 ac_prev=
8412 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8413 if test -n "$ac_prev"; then
8414 case $ac_word in
8415 i?86 | x86_64 | ppc | ppc64)
8416 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8417 ac_arch=$ac_word
8418 else
8419 ac_cv_c_bigendian=universal
8420 break
8423 esac
8424 ac_prev=
8425 elif test "x$ac_word" = "x-arch"; then
8426 ac_prev=arch
8428 done
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 if test $ac_cv_c_bigendian = unknown; then
8432 # See if sys/param.h defines the BYTE_ORDER macro.
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 #include <sys/types.h>
8436 #include <sys/param.h>
8439 main ()
8441 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8442 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8443 && LITTLE_ENDIAN)
8444 bogus endian macros
8445 #endif
8448 return 0;
8450 _ACEOF
8451 if ac_fn_c_try_compile "$LINENO"; then :
8452 # It does; now see whether it defined to BIG_ENDIAN or not.
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 #include <sys/types.h>
8456 #include <sys/param.h>
8459 main ()
8461 #if BYTE_ORDER != BIG_ENDIAN
8462 not big endian
8463 #endif
8466 return 0;
8468 _ACEOF
8469 if ac_fn_c_try_compile "$LINENO"; then :
8470 ac_cv_c_bigendian=yes
8471 else
8472 ac_cv_c_bigendian=no
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 if test $ac_cv_c_bigendian = unknown; then
8479 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 #include <limits.h>
8485 main ()
8487 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8488 bogus endian macros
8489 #endif
8492 return 0;
8494 _ACEOF
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496 # It does; now see whether it defined to _BIG_ENDIAN or not.
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 #include <limits.h>
8502 main ()
8504 #ifndef _BIG_ENDIAN
8505 not big endian
8506 #endif
8509 return 0;
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513 ac_cv_c_bigendian=yes
8514 else
8515 ac_cv_c_bigendian=no
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 if test $ac_cv_c_bigendian = unknown; then
8522 # Compile a test program.
8523 if test "$cross_compiling" = yes; then :
8524 # Try to guess by grepping values from an object file.
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 short int ascii_mm[] =
8528 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8529 short int ascii_ii[] =
8530 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8531 int use_ascii (int i) {
8532 return ascii_mm[i] + ascii_ii[i];
8534 short int ebcdic_ii[] =
8535 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8536 short int ebcdic_mm[] =
8537 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8538 int use_ebcdic (int i) {
8539 return ebcdic_mm[i] + ebcdic_ii[i];
8541 extern int foo;
8544 main ()
8546 return use_ascii (foo) == use_ebcdic (foo);
8548 return 0;
8550 _ACEOF
8551 if ac_fn_c_try_compile "$LINENO"; then :
8552 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8553 ac_cv_c_bigendian=yes
8555 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8556 if test "$ac_cv_c_bigendian" = unknown; then
8557 ac_cv_c_bigendian=no
8558 else
8559 # finding both strings is unlikely to happen, but who knows?
8560 ac_cv_c_bigendian=unknown
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 else
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 $ac_includes_default
8570 main ()
8573 /* Are we little or big endian? From Harbison&Steele. */
8574 union
8576 long int l;
8577 char c[sizeof (long int)];
8578 } u;
8579 u.l = 1;
8580 return u.c[sizeof (long int) - 1] == 1;
8583 return 0;
8585 _ACEOF
8586 if ac_fn_c_try_run "$LINENO"; then :
8587 ac_cv_c_bigendian=no
8588 else
8589 ac_cv_c_bigendian=yes
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8592 conftest.$ac_objext conftest.beam conftest.$ac_ext
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8598 $as_echo "$ac_cv_c_bigendian" >&6; }
8599 case $ac_cv_c_bigendian in #(
8600 yes)
8601 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8602 ;; #(
8604 ;; #(
8605 universal)
8607 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8609 ;; #(
8611 as_fn_error "unknown endianness
8612 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8613 esac
8616 # ----------------------
8617 # Checks for C++ headers
8618 # ----------------------
8620 ac_ext=cpp
8621 ac_cpp='$CXXCPP $CPPFLAGS'
8622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8626 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8627 if test -z "$CXXCPP"; then
8628 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 # Double quotes because CXXCPP needs to be expanded
8632 for CXXCPP in "$CXX -E" "/lib/cpp"
8634 ac_preproc_ok=false
8635 for ac_cxx_preproc_warn_flag in '' yes
8637 # Use a header file that comes with gcc, so configuring glibc
8638 # with a fresh cross-compiler works.
8639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8640 # <limits.h> exists even on freestanding compilers.
8641 # On the NeXT, cc -E runs the code through the compiler's parser,
8642 # not just through cpp. "Syntax error" is here to catch this case.
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 #ifdef __STDC__
8646 # include <limits.h>
8647 #else
8648 # include <assert.h>
8649 #endif
8650 Syntax error
8651 _ACEOF
8652 if ac_fn_cxx_try_cpp "$LINENO"; then :
8654 else
8655 # Broken: fails on valid input.
8656 continue
8658 rm -f conftest.err conftest.$ac_ext
8660 # OK, works on sane cases. Now check whether nonexistent headers
8661 # can be detected and how.
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 #include <ac_nonexistent.h>
8665 _ACEOF
8666 if ac_fn_cxx_try_cpp "$LINENO"; then :
8667 # Broken: success on invalid input.
8668 continue
8669 else
8670 # Passes both tests.
8671 ac_preproc_ok=:
8672 break
8674 rm -f conftest.err conftest.$ac_ext
8676 done
8677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8678 rm -f conftest.err conftest.$ac_ext
8679 if $ac_preproc_ok; then :
8680 break
8683 done
8684 ac_cv_prog_CXXCPP=$CXXCPP
8687 CXXCPP=$ac_cv_prog_CXXCPP
8688 else
8689 ac_cv_prog_CXXCPP=$CXXCPP
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8692 $as_echo "$CXXCPP" >&6; }
8693 ac_preproc_ok=false
8694 for ac_cxx_preproc_warn_flag in '' yes
8696 # Use a header file that comes with gcc, so configuring glibc
8697 # with a fresh cross-compiler works.
8698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8699 # <limits.h> exists even on freestanding compilers.
8700 # On the NeXT, cc -E runs the code through the compiler's parser,
8701 # not just through cpp. "Syntax error" is here to catch this case.
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 #ifdef __STDC__
8705 # include <limits.h>
8706 #else
8707 # include <assert.h>
8708 #endif
8709 Syntax error
8710 _ACEOF
8711 if ac_fn_cxx_try_cpp "$LINENO"; then :
8713 else
8714 # Broken: fails on valid input.
8715 continue
8717 rm -f conftest.err conftest.$ac_ext
8719 # OK, works on sane cases. Now check whether nonexistent headers
8720 # can be detected and how.
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <ac_nonexistent.h>
8724 _ACEOF
8725 if ac_fn_cxx_try_cpp "$LINENO"; then :
8726 # Broken: success on invalid input.
8727 continue
8728 else
8729 # Passes both tests.
8730 ac_preproc_ok=:
8731 break
8733 rm -f conftest.err conftest.$ac_ext
8735 done
8736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8737 rm -f conftest.err conftest.$ac_ext
8738 if $ac_preproc_ok; then :
8740 else
8741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8744 See \`config.log' for more details." >&5
8745 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8746 See \`config.log' for more details." >&2;}; }
8749 ac_ext=c
8750 ac_cpp='$CPP $CPPFLAGS'
8751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8756 ac_ext=cpp
8757 ac_cpp='$CXXCPP $CPPFLAGS'
8758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8765 for ac_header in unordered_map
8766 do :
8767 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8768 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8769 cat >>confdefs.h <<_ACEOF
8770 #define HAVE_UNORDERED_MAP 1
8771 _ACEOF
8774 done
8776 for ac_header in tr1/unordered_map
8777 do :
8778 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8779 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8780 cat >>confdefs.h <<_ACEOF
8781 #define HAVE_TR1_UNORDERED_MAP 1
8782 _ACEOF
8785 done
8787 for ac_header in ext/hash_map
8788 do :
8789 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8790 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8791 cat >>confdefs.h <<_ACEOF
8792 #define HAVE_EXT_HASH_MAP 1
8793 _ACEOF
8796 done
8799 ac_ext=c
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8806 # --------
8807 # UNSORTED
8808 # --------
8811 # These libraries may be used by collect2.
8812 # We may need a special search path to get them linked.
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8814 $as_echo_n "checking for collect2 libraries... " >&6; }
8815 if test "${gcc_cv_collect2_libs+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 save_LIBS="$LIBS"
8819 for libs in '' -lld -lmld \
8820 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8821 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8823 LIBS="$libs"
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8827 /* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 char ldopen ();
8835 main ()
8837 return ldopen ();
8839 return 0;
8841 _ACEOF
8842 if ac_fn_c_try_link "$LINENO"; then :
8843 gcc_cv_collect2_libs="$libs"; break
8845 rm -f core conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847 done
8848 LIBS="$save_LIBS"
8849 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8852 $as_echo "$gcc_cv_collect2_libs" >&6; }
8853 case $gcc_cv_collect2_libs in
8854 "none required") ;;
8855 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8856 esac
8859 # When building Ada code on Alpha, we need exc_resume which is usually in
8860 # -lexc. So test for it.
8861 save_LIBS="$LIBS"
8862 LIBS=
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8864 $as_echo_n "checking for library containing exc_resume... " >&6; }
8865 if test "${ac_cv_search_exc_resume+set}" = set; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 ac_func_search_save_LIBS=$LIBS
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8872 /* Override any GCC internal prototype to avoid an error.
8873 Use char because int might match the return type of a GCC
8874 builtin and then its argument prototype would still apply. */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 char exc_resume ();
8880 main ()
8882 return exc_resume ();
8884 return 0;
8886 _ACEOF
8887 for ac_lib in '' exc; do
8888 if test -z "$ac_lib"; then
8889 ac_res="none required"
8890 else
8891 ac_res=-l$ac_lib
8892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8894 if ac_fn_c_try_link "$LINENO"; then :
8895 ac_cv_search_exc_resume=$ac_res
8897 rm -f core conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext
8899 if test "${ac_cv_search_exc_resume+set}" = set; then :
8900 break
8902 done
8903 if test "${ac_cv_search_exc_resume+set}" = set; then :
8905 else
8906 ac_cv_search_exc_resume=no
8908 rm conftest.$ac_ext
8909 LIBS=$ac_func_search_save_LIBS
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8912 $as_echo "$ac_cv_search_exc_resume" >&6; }
8913 ac_res=$ac_cv_search_exc_resume
8914 if test "$ac_res" != no; then :
8915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8919 GNAT_LIBEXC="$LIBS"
8920 LIBS="$save_LIBS"
8923 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8924 save_LIBS="$LIBS"
8925 LIBS=
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8927 $as_echo_n "checking for library containing kstat_open... " >&6; }
8928 if test "${ac_cv_search_kstat_open+set}" = set; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 ac_func_search_save_LIBS=$LIBS
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8935 /* Override any GCC internal prototype to avoid an error.
8936 Use char because int might match the return type of a GCC
8937 builtin and then its argument prototype would still apply. */
8938 #ifdef __cplusplus
8939 extern "C"
8940 #endif
8941 char kstat_open ();
8943 main ()
8945 return kstat_open ();
8947 return 0;
8949 _ACEOF
8950 for ac_lib in '' kstat; do
8951 if test -z "$ac_lib"; then
8952 ac_res="none required"
8953 else
8954 ac_res=-l$ac_lib
8955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8957 if ac_fn_c_try_link "$LINENO"; then :
8958 ac_cv_search_kstat_open=$ac_res
8960 rm -f core conftest.err conftest.$ac_objext \
8961 conftest$ac_exeext
8962 if test "${ac_cv_search_kstat_open+set}" = set; then :
8963 break
8965 done
8966 if test "${ac_cv_search_kstat_open+set}" = set; then :
8968 else
8969 ac_cv_search_kstat_open=no
8971 rm conftest.$ac_ext
8972 LIBS=$ac_func_search_save_LIBS
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8975 $as_echo "$ac_cv_search_kstat_open" >&6; }
8976 ac_res=$ac_cv_search_kstat_open
8977 if test "$ac_res" != no; then :
8978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8982 EXTRA_GCC_LIBS="$LIBS"
8983 LIBS="$save_LIBS"
8986 # Some systems put ldexp and frexp in libm instead of libc; assume
8987 # they're both in the same place. jcf-dump needs them.
8988 save_LIBS="$LIBS"
8989 LIBS=
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8991 $as_echo_n "checking for library containing ldexp... " >&6; }
8992 if test "${ac_cv_search_ldexp+set}" = set; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 ac_func_search_save_LIBS=$LIBS
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8999 /* Override any GCC internal prototype to avoid an error.
9000 Use char because int might match the return type of a GCC
9001 builtin and then its argument prototype would still apply. */
9002 #ifdef __cplusplus
9003 extern "C"
9004 #endif
9005 char ldexp ();
9007 main ()
9009 return ldexp ();
9011 return 0;
9013 _ACEOF
9014 for ac_lib in '' m; do
9015 if test -z "$ac_lib"; then
9016 ac_res="none required"
9017 else
9018 ac_res=-l$ac_lib
9019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9021 if ac_fn_c_try_link "$LINENO"; then :
9022 ac_cv_search_ldexp=$ac_res
9024 rm -f core conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext
9026 if test "${ac_cv_search_ldexp+set}" = set; then :
9027 break
9029 done
9030 if test "${ac_cv_search_ldexp+set}" = set; then :
9032 else
9033 ac_cv_search_ldexp=no
9035 rm conftest.$ac_ext
9036 LIBS=$ac_func_search_save_LIBS
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9039 $as_echo "$ac_cv_search_ldexp" >&6; }
9040 ac_res=$ac_cv_search_ldexp
9041 if test "$ac_res" != no; then :
9042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9046 LDEXP_LIB="$LIBS"
9047 LIBS="$save_LIBS"
9050 # Use <inttypes.h> only if it exists,
9051 # doesn't clash with <sys/types.h>, and declares intmax_t.
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9053 $as_echo_n "checking for inttypes.h... " >&6; }
9054 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059 #include <sys/types.h>
9060 #include <inttypes.h>
9062 main ()
9064 intmax_t i = -1;
9066 return 0;
9068 _ACEOF
9069 if ac_fn_c_try_compile "$LINENO"; then :
9070 gcc_cv_header_inttypes_h=yes
9071 else
9072 gcc_cv_header_inttypes_h=no
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9078 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9079 if test $gcc_cv_header_inttypes_h = yes; then
9081 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9087 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9088 sysconf strsignal getrusage nl_langinfo \
9089 gettimeofday mbstowcs wcswidth mmap setlocale \
9090 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9091 do :
9092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9093 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9094 eval as_val=\$$as_ac_var
9095 if test "x$as_val" = x""yes; then :
9096 cat >>confdefs.h <<_ACEOF
9097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9098 _ACEOF
9101 done
9104 if test x$ac_cv_func_mbstowcs = xyes; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9106 $as_echo_n "checking whether mbstowcs works... " >&6; }
9107 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 if test "$cross_compiling" = yes; then :
9111 gcc_cv_func_mbstowcs_works=yes
9112 else
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 #include <stdlib.h>
9116 int main()
9118 mbstowcs(0, "", 0);
9119 return 0;
9121 _ACEOF
9122 if ac_fn_c_try_run "$LINENO"; then :
9123 gcc_cv_func_mbstowcs_works=yes
9124 else
9125 gcc_cv_func_mbstowcs_works=no
9127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9128 conftest.$ac_objext conftest.beam conftest.$ac_ext
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9133 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9134 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9136 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9141 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9142 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9144 else
9146 cat >>confdefs.h <<_ACEOF
9147 #define ssize_t int
9148 _ACEOF
9152 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9153 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9155 else
9157 cat >>confdefs.h <<_ACEOF
9158 #define caddr_t char *
9159 _ACEOF
9165 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9166 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9167 gcc_header_sys_mman_h=yes
9168 else
9169 gcc_header_sys_mman_h=no
9172 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9173 if test "x$ac_cv_func_mmap" = x""yes; then :
9174 gcc_func_mmap=yes
9175 else
9176 gcc_func_mmap=no
9179 if test "$gcc_header_sys_mman_h" != yes \
9180 || test "$gcc_func_mmap" != yes; then
9181 gcc_cv_func_mmap_file=no
9182 gcc_cv_func_mmap_dev_zero=no
9183 gcc_cv_func_mmap_anon=no
9184 else
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9186 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9187 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 # Add a system to this blacklist if
9191 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9192 # memory area containing the same data that you'd get if you applied
9193 # read() to the same fd. The only system known to have a problem here
9194 # is VMS, where text files have record structure.
9195 case "$host_os" in
9196 *vms* | ultrix*)
9197 gcc_cv_func_mmap_file=no ;;
9199 gcc_cv_func_mmap_file=yes;;
9200 esac
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9203 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9205 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9206 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 # Add a system to this blacklist if it has mmap() but /dev/zero
9210 # does not exist, or if mmapping /dev/zero does not give anonymous
9211 # zeroed pages with both the following properties:
9212 # 1. If you map N consecutive pages in with one call, and then
9213 # unmap any subset of those pages, the pages that were not
9214 # explicitly unmapped remain accessible.
9215 # 2. If you map two adjacent blocks of memory and then unmap them
9216 # both at once, they must both go away.
9217 # Systems known to be in this category are Windows (all variants),
9218 # VMS, and Darwin.
9219 case "$host_os" in
9220 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9221 gcc_cv_func_mmap_dev_zero=no ;;
9223 gcc_cv_func_mmap_dev_zero=yes;;
9224 esac
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9227 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9229 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9231 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9232 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 #include <sys/types.h>
9238 #include <sys/mman.h>
9239 #include <unistd.h>
9241 #ifndef MAP_ANONYMOUS
9242 #define MAP_ANONYMOUS MAP_ANON
9243 #endif
9246 main ()
9248 int n = MAP_ANONYMOUS;
9250 return 0;
9252 _ACEOF
9253 if ac_fn_c_try_compile "$LINENO"; then :
9254 gcc_cv_decl_map_anon=yes
9255 else
9256 gcc_cv_decl_map_anon=no
9258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9261 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9263 if test $gcc_cv_decl_map_anon = no; then
9264 gcc_cv_func_mmap_anon=no
9265 else
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9267 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9268 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9272 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9273 # doesn't give anonymous zeroed pages with the same properties listed
9274 # above for use of /dev/zero.
9275 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9276 case "$host_os" in
9277 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9278 gcc_cv_func_mmap_anon=no ;;
9280 gcc_cv_func_mmap_anon=yes;;
9281 esac
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9284 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9288 if test $gcc_cv_func_mmap_file = yes; then
9290 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9293 if test $gcc_cv_func_mmap_dev_zero = yes; then
9295 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9298 if test $gcc_cv_func_mmap_anon = yes; then
9300 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9305 case "${host}" in
9306 *-*-*vms*)
9307 # Under VMS, vfork works very differently than on Unix. The standard test
9308 # won't work, and it isn't easily adaptable. It makes more sense to
9309 # just force it.
9310 ac_cv_func_vfork_works=yes
9312 esac
9313 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9314 if test "x$ac_cv_type_pid_t" = x""yes; then :
9316 else
9318 cat >>confdefs.h <<_ACEOF
9319 #define pid_t int
9320 _ACEOF
9324 for ac_header in vfork.h
9325 do :
9326 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9327 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9328 cat >>confdefs.h <<_ACEOF
9329 #define HAVE_VFORK_H 1
9330 _ACEOF
9333 done
9335 for ac_func in fork vfork
9336 do :
9337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9339 eval as_val=\$$as_ac_var
9340 if test "x$as_val" = x""yes; then :
9341 cat >>confdefs.h <<_ACEOF
9342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9343 _ACEOF
9346 done
9348 if test "x$ac_cv_func_fork" = xyes; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9350 $as_echo_n "checking for working fork... " >&6; }
9351 if test "${ac_cv_func_fork_works+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 if test "$cross_compiling" = yes; then :
9355 ac_cv_func_fork_works=cross
9356 else
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 $ac_includes_default
9361 main ()
9364 /* By Ruediger Kuhlmann. */
9365 return fork () < 0;
9368 return 0;
9370 _ACEOF
9371 if ac_fn_c_try_run "$LINENO"; then :
9372 ac_cv_func_fork_works=yes
9373 else
9374 ac_cv_func_fork_works=no
9376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9377 conftest.$ac_objext conftest.beam conftest.$ac_ext
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9382 $as_echo "$ac_cv_func_fork_works" >&6; }
9384 else
9385 ac_cv_func_fork_works=$ac_cv_func_fork
9387 if test "x$ac_cv_func_fork_works" = xcross; then
9388 case $host in
9389 *-*-amigaos* | *-*-msdosdjgpp*)
9390 # Override, as these systems have only a dummy fork() stub
9391 ac_cv_func_fork_works=no
9394 ac_cv_func_fork_works=yes
9396 esac
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9398 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9400 ac_cv_func_vfork_works=$ac_cv_func_vfork
9401 if test "x$ac_cv_func_vfork" = xyes; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9403 $as_echo_n "checking for working vfork... " >&6; }
9404 if test "${ac_cv_func_vfork_works+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 if test "$cross_compiling" = yes; then :
9408 ac_cv_func_vfork_works=cross
9409 else
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 /* Thanks to Paul Eggert for this test. */
9413 $ac_includes_default
9414 #include <sys/wait.h>
9415 #ifdef HAVE_VFORK_H
9416 # include <vfork.h>
9417 #endif
9418 /* On some sparc systems, changes by the child to local and incoming
9419 argument registers are propagated back to the parent. The compiler
9420 is told about this with #include <vfork.h>, but some compilers
9421 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9422 static variable whose address is put into a register that is
9423 clobbered by the vfork. */
9424 static void
9425 #ifdef __cplusplus
9426 sparc_address_test (int arg)
9427 # else
9428 sparc_address_test (arg) int arg;
9429 #endif
9431 static pid_t child;
9432 if (!child) {
9433 child = vfork ();
9434 if (child < 0) {
9435 perror ("vfork");
9436 _exit(2);
9438 if (!child) {
9439 arg = getpid();
9440 write(-1, "", 0);
9441 _exit (arg);
9447 main ()
9449 pid_t parent = getpid ();
9450 pid_t child;
9452 sparc_address_test (0);
9454 child = vfork ();
9456 if (child == 0) {
9457 /* Here is another test for sparc vfork register problems. This
9458 test uses lots of local variables, at least as many local
9459 variables as main has allocated so far including compiler
9460 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9461 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9462 reuse the register of parent for one of the local variables,
9463 since it will think that parent can't possibly be used any more
9464 in this routine. Assigning to the local variable will thus
9465 munge parent in the parent process. */
9466 pid_t
9467 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9468 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9469 /* Convince the compiler that p..p7 are live; otherwise, it might
9470 use the same hardware register for all 8 local variables. */
9471 if (p != p1 || p != p2 || p != p3 || p != p4
9472 || p != p5 || p != p6 || p != p7)
9473 _exit(1);
9475 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9476 from child file descriptors. If the child closes a descriptor
9477 before it execs or exits, this munges the parent's descriptor
9478 as well. Test for this by closing stdout in the child. */
9479 _exit(close(fileno(stdout)) != 0);
9480 } else {
9481 int status;
9482 struct stat st;
9484 while (wait(&status) != child)
9486 return (
9487 /* Was there some problem with vforking? */
9488 child < 0
9490 /* Did the child fail? (This shouldn't happen.) */
9491 || status
9493 /* Did the vfork/compiler bug occur? */
9494 || parent != getpid()
9496 /* Did the file descriptor bug occur? */
9497 || fstat(fileno(stdout), &st) != 0
9501 _ACEOF
9502 if ac_fn_c_try_run "$LINENO"; then :
9503 ac_cv_func_vfork_works=yes
9504 else
9505 ac_cv_func_vfork_works=no
9507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9508 conftest.$ac_objext conftest.beam conftest.$ac_ext
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9513 $as_echo "$ac_cv_func_vfork_works" >&6; }
9516 if test "x$ac_cv_func_fork_works" = xcross; then
9517 ac_cv_func_vfork_works=$ac_cv_func_vfork
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9519 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9522 if test "x$ac_cv_func_vfork_works" = xyes; then
9524 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9526 else
9528 $as_echo "#define vfork fork" >>confdefs.h
9531 if test "x$ac_cv_func_fork_works" = xyes; then
9533 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9538 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9539 # iconv() prototype.
9540 ac_ext=cpp
9541 ac_cpp='$CXXCPP $CPPFLAGS'
9542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9547 if test "X$prefix" = "XNONE"; then
9548 acl_final_prefix="$ac_default_prefix"
9549 else
9550 acl_final_prefix="$prefix"
9552 if test "X$exec_prefix" = "XNONE"; then
9553 acl_final_exec_prefix='${prefix}'
9554 else
9555 acl_final_exec_prefix="$exec_prefix"
9557 acl_save_prefix="$prefix"
9558 prefix="$acl_final_prefix"
9559 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9560 prefix="$acl_save_prefix"
9563 # Check whether --with-gnu-ld was given.
9564 if test "${with_gnu_ld+set}" = set; then :
9565 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9566 else
9567 with_gnu_ld=no
9570 # Prepare PATH_SEPARATOR.
9571 # The user is always right.
9572 if test "${PATH_SEPARATOR+set}" != set; then
9573 echo "#! /bin/sh" >conf$$.sh
9574 echo "exit 0" >>conf$$.sh
9575 chmod +x conf$$.sh
9576 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9577 PATH_SEPARATOR=';'
9578 else
9579 PATH_SEPARATOR=:
9581 rm -f conf$$.sh
9583 ac_prog=ld
9584 if test "$GCC" = yes; then
9585 # Check if gcc -print-prog-name=ld gives a path.
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9587 $as_echo_n "checking for ld used by GCC... " >&6; }
9588 case $host in
9589 *-*-mingw*)
9590 # gcc leaves a trailing carriage return which upsets mingw
9591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9594 esac
9595 case $ac_prog in
9596 # Accept absolute paths.
9597 [\\/]* | [A-Za-z]:[\\/]*)
9598 re_direlt='/[^/][^/]*/\.\./'
9599 # Canonicalize the path of ld
9600 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9601 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9602 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9603 done
9604 test -z "$LD" && LD="$ac_prog"
9607 # If it fails, then pretend we aren't using GCC.
9608 ac_prog=ld
9611 # If it is relative, then search for the first ld in PATH.
9612 with_gnu_ld=unknown
9614 esac
9615 elif test "$with_gnu_ld" = yes; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9617 $as_echo_n "checking for GNU ld... " >&6; }
9618 else
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9620 $as_echo_n "checking for non-GNU ld... " >&6; }
9622 if test "${acl_cv_path_LD+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 if test -z "$LD"; then
9626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9627 for ac_dir in $PATH; do
9628 test -z "$ac_dir" && ac_dir=.
9629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9630 acl_cv_path_LD="$ac_dir/$ac_prog"
9631 # Check to see if the program is GNU ld. I'd rather use --version,
9632 # but apparently some GNU ld's only accept -v.
9633 # Break only if it was the GNU/non-GNU ld that we prefer.
9634 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9635 test "$with_gnu_ld" != no && break
9636 else
9637 test "$with_gnu_ld" != yes && break
9640 done
9641 IFS="$ac_save_ifs"
9642 else
9643 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9647 LD="$acl_cv_path_LD"
9648 if test -n "$LD"; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9650 $as_echo "$LD" >&6; }
9651 else
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9655 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9658 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9662 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9663 acl_cv_prog_gnu_ld=yes
9664 else
9665 acl_cv_prog_gnu_ld=no
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9669 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9670 with_gnu_ld=$acl_cv_prog_gnu_ld
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9675 $as_echo_n "checking for shared library run path origin... " >&6; }
9676 if test "${acl_cv_rpath+set}" = set; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9680 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9681 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9682 . ./conftest.sh
9683 rm -f ./conftest.sh
9684 acl_cv_rpath=done
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9688 $as_echo "$acl_cv_rpath" >&6; }
9689 wl="$acl_cv_wl"
9690 libext="$acl_cv_libext"
9691 shlibext="$acl_cv_shlibext"
9692 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9693 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9694 hardcode_direct="$acl_cv_hardcode_direct"
9695 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9696 # Check whether --enable-rpath was given.
9697 if test "${enable_rpath+set}" = set; then :
9698 enableval=$enable_rpath; :
9699 else
9700 enable_rpath=yes
9710 use_additional=yes
9712 acl_save_prefix="$prefix"
9713 prefix="$acl_final_prefix"
9714 acl_save_exec_prefix="$exec_prefix"
9715 exec_prefix="$acl_final_exec_prefix"
9717 eval additional_includedir=\"$includedir\"
9718 eval additional_libdir=\"$libdir\"
9720 exec_prefix="$acl_save_exec_prefix"
9721 prefix="$acl_save_prefix"
9724 # Check whether --with-libiconv-prefix was given.
9725 if test "${with_libiconv_prefix+set}" = set; then :
9726 withval=$with_libiconv_prefix;
9727 if test "X$withval" = "Xno"; then
9728 use_additional=no
9729 else
9730 if test "X$withval" = "X"; then
9732 acl_save_prefix="$prefix"
9733 prefix="$acl_final_prefix"
9734 acl_save_exec_prefix="$exec_prefix"
9735 exec_prefix="$acl_final_exec_prefix"
9737 eval additional_includedir=\"$includedir\"
9738 eval additional_libdir=\"$libdir\"
9740 exec_prefix="$acl_save_exec_prefix"
9741 prefix="$acl_save_prefix"
9743 else
9744 additional_includedir="$withval/include"
9745 additional_libdir="$withval/lib"
9751 LIBICONV=
9752 LTLIBICONV=
9753 INCICONV=
9754 rpathdirs=
9755 ltrpathdirs=
9756 names_already_handled=
9757 names_next_round='iconv '
9758 while test -n "$names_next_round"; do
9759 names_this_round="$names_next_round"
9760 names_next_round=
9761 for name in $names_this_round; do
9762 already_handled=
9763 for n in $names_already_handled; do
9764 if test "$n" = "$name"; then
9765 already_handled=yes
9766 break
9768 done
9769 if test -z "$already_handled"; then
9770 names_already_handled="$names_already_handled $name"
9771 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9772 eval value=\"\$HAVE_LIB$uppername\"
9773 if test -n "$value"; then
9774 if test "$value" = yes; then
9775 eval value=\"\$LIB$uppername\"
9776 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9777 eval value=\"\$LTLIB$uppername\"
9778 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9779 else
9782 else
9783 found_dir=
9784 found_la=
9785 found_so=
9786 found_a=
9787 if test $use_additional = yes; then
9788 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9789 found_dir="$additional_libdir"
9790 found_so="$additional_libdir/lib$name.$shlibext"
9791 if test -f "$additional_libdir/lib$name.la"; then
9792 found_la="$additional_libdir/lib$name.la"
9794 else
9795 if test -f "$additional_libdir/lib$name.$libext"; then
9796 found_dir="$additional_libdir"
9797 found_a="$additional_libdir/lib$name.$libext"
9798 if test -f "$additional_libdir/lib$name.la"; then
9799 found_la="$additional_libdir/lib$name.la"
9804 if test "X$found_dir" = "X"; then
9805 for x in $LDFLAGS $LTLIBICONV; do
9807 acl_save_prefix="$prefix"
9808 prefix="$acl_final_prefix"
9809 acl_save_exec_prefix="$exec_prefix"
9810 exec_prefix="$acl_final_exec_prefix"
9811 eval x=\"$x\"
9812 exec_prefix="$acl_save_exec_prefix"
9813 prefix="$acl_save_prefix"
9815 case "$x" in
9816 -L*)
9817 dir=`echo "X$x" | sed -e 's/^X-L//'`
9818 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9819 found_dir="$dir"
9820 found_so="$dir/lib$name.$shlibext"
9821 if test -f "$dir/lib$name.la"; then
9822 found_la="$dir/lib$name.la"
9824 else
9825 if test -f "$dir/lib$name.$libext"; then
9826 found_dir="$dir"
9827 found_a="$dir/lib$name.$libext"
9828 if test -f "$dir/lib$name.la"; then
9829 found_la="$dir/lib$name.la"
9834 esac
9835 if test "X$found_dir" != "X"; then
9836 break
9838 done
9840 if test "X$found_dir" != "X"; then
9841 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9842 if test "X$found_so" != "X"; then
9843 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9844 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9845 else
9846 haveit=
9847 for x in $ltrpathdirs; do
9848 if test "X$x" = "X$found_dir"; then
9849 haveit=yes
9850 break
9852 done
9853 if test -z "$haveit"; then
9854 ltrpathdirs="$ltrpathdirs $found_dir"
9856 if test "$hardcode_direct" = yes; then
9857 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9858 else
9859 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9860 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9861 haveit=
9862 for x in $rpathdirs; do
9863 if test "X$x" = "X$found_dir"; then
9864 haveit=yes
9865 break
9867 done
9868 if test -z "$haveit"; then
9869 rpathdirs="$rpathdirs $found_dir"
9871 else
9872 haveit=
9873 for x in $LDFLAGS $LIBICONV; do
9875 acl_save_prefix="$prefix"
9876 prefix="$acl_final_prefix"
9877 acl_save_exec_prefix="$exec_prefix"
9878 exec_prefix="$acl_final_exec_prefix"
9879 eval x=\"$x\"
9880 exec_prefix="$acl_save_exec_prefix"
9881 prefix="$acl_save_prefix"
9883 if test "X$x" = "X-L$found_dir"; then
9884 haveit=yes
9885 break
9887 done
9888 if test -z "$haveit"; then
9889 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9891 if test "$hardcode_minus_L" != no; then
9892 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9893 else
9894 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9899 else
9900 if test "X$found_a" != "X"; then
9901 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9902 else
9903 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9906 additional_includedir=
9907 case "$found_dir" in
9908 */lib | */lib/)
9909 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9910 additional_includedir="$basedir/include"
9912 esac
9913 if test "X$additional_includedir" != "X"; then
9914 if test "X$additional_includedir" != "X/usr/include"; then
9915 haveit=
9916 if test "X$additional_includedir" = "X/usr/local/include"; then
9917 if test -n "$GCC"; then
9918 case $host_os in
9919 linux*) haveit=yes;;
9920 esac
9923 if test -z "$haveit"; then
9924 for x in $CPPFLAGS $INCICONV; do
9926 acl_save_prefix="$prefix"
9927 prefix="$acl_final_prefix"
9928 acl_save_exec_prefix="$exec_prefix"
9929 exec_prefix="$acl_final_exec_prefix"
9930 eval x=\"$x\"
9931 exec_prefix="$acl_save_exec_prefix"
9932 prefix="$acl_save_prefix"
9934 if test "X$x" = "X-I$additional_includedir"; then
9935 haveit=yes
9936 break
9938 done
9939 if test -z "$haveit"; then
9940 if test -d "$additional_includedir"; then
9941 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9947 if test -n "$found_la"; then
9948 save_libdir="$libdir"
9949 case "$found_la" in
9950 */* | *\\*) . "$found_la" ;;
9951 *) . "./$found_la" ;;
9952 esac
9953 libdir="$save_libdir"
9954 for dep in $dependency_libs; do
9955 case "$dep" in
9956 -L*)
9957 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9958 if test "X$additional_libdir" != "X/usr/lib"; then
9959 haveit=
9960 if test "X$additional_libdir" = "X/usr/local/lib"; then
9961 if test -n "$GCC"; then
9962 case $host_os in
9963 linux*) haveit=yes;;
9964 esac
9967 if test -z "$haveit"; then
9968 haveit=
9969 for x in $LDFLAGS $LIBICONV; do
9971 acl_save_prefix="$prefix"
9972 prefix="$acl_final_prefix"
9973 acl_save_exec_prefix="$exec_prefix"
9974 exec_prefix="$acl_final_exec_prefix"
9975 eval x=\"$x\"
9976 exec_prefix="$acl_save_exec_prefix"
9977 prefix="$acl_save_prefix"
9979 if test "X$x" = "X-L$additional_libdir"; then
9980 haveit=yes
9981 break
9983 done
9984 if test -z "$haveit"; then
9985 if test -d "$additional_libdir"; then
9986 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9989 haveit=
9990 for x in $LDFLAGS $LTLIBICONV; do
9992 acl_save_prefix="$prefix"
9993 prefix="$acl_final_prefix"
9994 acl_save_exec_prefix="$exec_prefix"
9995 exec_prefix="$acl_final_exec_prefix"
9996 eval x=\"$x\"
9997 exec_prefix="$acl_save_exec_prefix"
9998 prefix="$acl_save_prefix"
10000 if test "X$x" = "X-L$additional_libdir"; then
10001 haveit=yes
10002 break
10004 done
10005 if test -z "$haveit"; then
10006 if test -d "$additional_libdir"; then
10007 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10013 -R*)
10014 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10015 if test "$enable_rpath" != no; then
10016 haveit=
10017 for x in $rpathdirs; do
10018 if test "X$x" = "X$dir"; then
10019 haveit=yes
10020 break
10022 done
10023 if test -z "$haveit"; then
10024 rpathdirs="$rpathdirs $dir"
10026 haveit=
10027 for x in $ltrpathdirs; do
10028 if test "X$x" = "X$dir"; then
10029 haveit=yes
10030 break
10032 done
10033 if test -z "$haveit"; then
10034 ltrpathdirs="$ltrpathdirs $dir"
10038 -l*)
10039 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10041 *.la)
10042 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10045 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10046 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10048 esac
10049 done
10051 else
10052 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10053 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10057 done
10058 done
10059 if test "X$rpathdirs" != "X"; then
10060 if test -n "$hardcode_libdir_separator"; then
10061 alldirs=
10062 for found_dir in $rpathdirs; do
10063 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10064 done
10065 acl_save_libdir="$libdir"
10066 libdir="$alldirs"
10067 eval flag=\"$hardcode_libdir_flag_spec\"
10068 libdir="$acl_save_libdir"
10069 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10070 else
10071 for found_dir in $rpathdirs; do
10072 acl_save_libdir="$libdir"
10073 libdir="$found_dir"
10074 eval flag=\"$hardcode_libdir_flag_spec\"
10075 libdir="$acl_save_libdir"
10076 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10077 done
10080 if test "X$ltrpathdirs" != "X"; then
10081 for found_dir in $ltrpathdirs; do
10082 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10083 done
10092 am_save_CPPFLAGS="$CPPFLAGS"
10094 for element in $INCICONV; do
10095 haveit=
10096 for x in $CPPFLAGS; do
10098 acl_save_prefix="$prefix"
10099 prefix="$acl_final_prefix"
10100 acl_save_exec_prefix="$exec_prefix"
10101 exec_prefix="$acl_final_exec_prefix"
10102 eval x=\"$x\"
10103 exec_prefix="$acl_save_exec_prefix"
10104 prefix="$acl_save_prefix"
10106 if test "X$x" = "X$element"; then
10107 haveit=yes
10108 break
10110 done
10111 if test -z "$haveit"; then
10112 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10114 done
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10118 $as_echo_n "checking for iconv... " >&6; }
10119 if test "${am_cv_func_iconv+set}" = set; then :
10120 $as_echo_n "(cached) " >&6
10121 else
10123 am_cv_func_iconv="no, consider installing GNU libiconv"
10124 am_cv_lib_iconv=no
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 #include <stdlib.h>
10128 #include <iconv.h>
10130 main ()
10132 iconv_t cd = iconv_open("","");
10133 iconv(cd,NULL,NULL,NULL,NULL);
10134 iconv_close(cd);
10136 return 0;
10138 _ACEOF
10139 if ac_fn_cxx_try_link "$LINENO"; then :
10140 am_cv_func_iconv=yes
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 if test "$am_cv_func_iconv" != yes; then
10145 am_save_LIBS="$LIBS"
10146 LIBS="$LIBS $LIBICONV"
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 #include <stdlib.h>
10150 #include <iconv.h>
10152 main ()
10154 iconv_t cd = iconv_open("","");
10155 iconv(cd,NULL,NULL,NULL,NULL);
10156 iconv_close(cd);
10158 return 0;
10160 _ACEOF
10161 if ac_fn_cxx_try_link "$LINENO"; then :
10162 am_cv_lib_iconv=yes
10163 am_cv_func_iconv=yes
10165 rm -f core conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167 LIBS="$am_save_LIBS"
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10172 $as_echo "$am_cv_func_iconv" >&6; }
10173 if test "$am_cv_func_iconv" = yes; then
10175 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10178 if test "$am_cv_lib_iconv" = yes; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10180 $as_echo_n "checking how to link with libiconv... " >&6; }
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10182 $as_echo "$LIBICONV" >&6; }
10183 else
10184 CPPFLAGS="$am_save_CPPFLAGS"
10185 LIBICONV=
10186 LTLIBICONV=
10191 if test "$am_cv_func_iconv" = yes; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10193 $as_echo_n "checking for iconv declaration... " >&6; }
10194 if test "${am_cv_proto_iconv+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10201 #include <stdlib.h>
10202 #include <iconv.h>
10203 extern
10204 #ifdef __cplusplus
10206 #endif
10207 #if defined(__STDC__) || defined(__cplusplus)
10208 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10209 #else
10210 size_t iconv();
10211 #endif
10214 main ()
10218 return 0;
10220 _ACEOF
10221 if ac_fn_cxx_try_compile "$LINENO"; then :
10222 am_cv_proto_iconv_arg1=""
10223 else
10224 am_cv_proto_iconv_arg1="const"
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 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);"
10230 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10232 }$am_cv_proto_iconv" >&5
10233 $as_echo "${ac_t:-
10234 }$am_cv_proto_iconv" >&6; }
10236 cat >>confdefs.h <<_ACEOF
10237 #define ICONV_CONST $am_cv_proto_iconv_arg1
10238 _ACEOF
10242 ac_ext=c
10243 ac_cpp='$CPP $CPPFLAGS'
10244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10249 # Until we have in-tree GNU iconv:
10250 LIBICONV_DEP=
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10255 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10256 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 #include <locale.h>
10263 main ()
10265 return LC_MESSAGES
10267 return 0;
10269 _ACEOF
10270 if ac_fn_c_try_link "$LINENO"; then :
10271 am_cv_val_LC_MESSAGES=yes
10272 else
10273 am_cv_val_LC_MESSAGES=no
10275 rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10279 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10280 if test $am_cv_val_LC_MESSAGES = yes; then
10282 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10289 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10290 if test "${am_cv_langinfo_codeset+set}" = set; then :
10291 $as_echo_n "(cached) " >&6
10292 else
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10295 #include <langinfo.h>
10297 main ()
10299 char* cs = nl_langinfo(CODESET);
10301 return 0;
10303 _ACEOF
10304 if ac_fn_c_try_link "$LINENO"; then :
10305 am_cv_langinfo_codeset=yes
10306 else
10307 am_cv_langinfo_codeset=no
10309 rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10314 $as_echo "$am_cv_langinfo_codeset" >&6; }
10315 if test $am_cv_langinfo_codeset = yes; then
10317 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10322 # We will need to find libiberty.h and ansidecl.h
10323 saved_CFLAGS="$CFLAGS"
10324 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10325 saved_CXXFLAGS="$CXXFLAGS"
10326 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10327 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10328 strsignal strstr stpcpy strverscmp \
10329 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10330 free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10332 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10334 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10335 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340 #undef $ac_tr_decl
10341 #define $ac_tr_decl 1
10343 #include "ansidecl.h"
10344 #include "system.h"
10347 main ()
10349 #ifndef $ac_func
10350 char *(*pfn) = (char *(*)) $ac_func ;
10351 #endif
10353 return 0;
10355 _ACEOF
10356 if ac_fn_c_try_compile "$LINENO"; then :
10357 eval "gcc_cv_have_decl_$ac_func=yes"
10358 else
10359 eval "gcc_cv_have_decl_$ac_func=no"
10361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10366 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10367 #define $ac_tr_decl 1
10368 _ACEOF
10370 else
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10373 #define $ac_tr_decl 0
10374 _ACEOF
10378 done
10381 for ac_func in getrlimit setrlimit getrusage
10383 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10385 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10386 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10391 #undef $ac_tr_decl
10392 #define $ac_tr_decl 1
10394 #include "ansidecl.h"
10395 #include "system.h"
10396 #ifdef HAVE_SYS_RESOURCE_H
10397 #include <sys/resource.h>
10398 #endif
10402 main ()
10404 #ifndef $ac_func
10405 char *(*pfn) = (char *(*)) $ac_func ;
10406 #endif
10408 return 0;
10410 _ACEOF
10411 if ac_fn_c_try_compile "$LINENO"; then :
10412 eval "gcc_cv_have_decl_$ac_func=yes"
10413 else
10414 eval "gcc_cv_have_decl_$ac_func=no"
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10421 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10422 #define $ac_tr_decl 1
10423 _ACEOF
10425 else
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10428 #define $ac_tr_decl 0
10429 _ACEOF
10433 done
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10439 #include "ansidecl.h"
10440 #include "system.h"
10441 #ifdef HAVE_SYS_RESOURCE_H
10442 #include <sys/resource.h>
10443 #endif
10446 main ()
10448 rlim_t l = 0;
10450 return 0;
10452 _ACEOF
10453 if ac_fn_c_try_compile "$LINENO"; then :
10455 else
10457 $as_echo "#define rlim_t long" >>confdefs.h
10460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10462 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10463 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10464 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10465 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10466 for ac_func in ldgetname
10468 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10470 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10471 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476 #undef $ac_tr_decl
10477 #define $ac_tr_decl 1
10479 #include "ansidecl.h"
10480 #include "system.h"
10481 #ifdef HAVE_LDFCN_H
10482 #undef FREAD
10483 #undef FWRITE
10484 #include <ldfcn.h>
10485 #endif
10489 main ()
10491 #ifndef $ac_func
10492 char *(*pfn) = (char *(*)) $ac_func ;
10493 #endif
10495 return 0;
10497 _ACEOF
10498 if ac_fn_c_try_compile "$LINENO"; then :
10499 eval "gcc_cv_have_decl_$ac_func=yes"
10500 else
10501 eval "gcc_cv_have_decl_$ac_func=no"
10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10509 #define $ac_tr_decl 1
10510 _ACEOF
10512 else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10515 #define $ac_tr_decl 0
10516 _ACEOF
10520 done
10523 for ac_func in times
10525 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10527 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10528 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10533 #undef $ac_tr_decl
10534 #define $ac_tr_decl 1
10536 #include "ansidecl.h"
10537 #include "system.h"
10538 #ifdef HAVE_SYS_TIMES_H
10539 #include <sys/times.h>
10540 #endif
10544 main ()
10546 #ifndef $ac_func
10547 char *(*pfn) = (char *(*)) $ac_func ;
10548 #endif
10550 return 0;
10552 _ACEOF
10553 if ac_fn_c_try_compile "$LINENO"; then :
10554 eval "gcc_cv_have_decl_$ac_func=yes"
10555 else
10556 eval "gcc_cv_have_decl_$ac_func=no"
10558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10564 #define $ac_tr_decl 1
10565 _ACEOF
10567 else
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10570 #define $ac_tr_decl 0
10571 _ACEOF
10575 done
10578 for ac_func in sigaltstack
10580 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10582 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10583 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588 #undef $ac_tr_decl
10589 #define $ac_tr_decl 1
10591 #include "ansidecl.h"
10592 #include "system.h"
10593 #include <signal.h>
10597 main ()
10599 #ifndef $ac_func
10600 char *(*pfn) = (char *(*)) $ac_func ;
10601 #endif
10603 return 0;
10605 _ACEOF
10606 if ac_fn_c_try_compile "$LINENO"; then :
10607 eval "gcc_cv_have_decl_$ac_func=yes"
10608 else
10609 eval "gcc_cv_have_decl_$ac_func=no"
10611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10617 #define $ac_tr_decl 1
10618 _ACEOF
10620 else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10623 #define $ac_tr_decl 0
10624 _ACEOF
10628 done
10631 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10632 # prototype.
10633 ac_ext=cpp
10634 ac_cpp='$CXXCPP $CPPFLAGS'
10635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10639 for ac_func in madvise
10641 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10643 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10644 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #undef $ac_tr_decl
10650 #define $ac_tr_decl 1
10652 #include "ansidecl.h"
10653 #include "system.h"
10657 main ()
10659 #ifndef $ac_func
10660 char *(*pfn) = (char *(*)) $ac_func ;
10661 #endif
10663 return 0;
10665 _ACEOF
10666 if ac_fn_cxx_try_compile "$LINENO"; then :
10667 eval "gcc_cv_have_decl_$ac_func=yes"
10668 else
10669 eval "gcc_cv_have_decl_$ac_func=no"
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10677 #define $ac_tr_decl 1
10678 _ACEOF
10680 else
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10683 #define $ac_tr_decl 0
10684 _ACEOF
10688 done
10690 ac_ext=c
10691 ac_cpp='$CPP $CPPFLAGS'
10692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10697 # More time-related stuff.
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10699 $as_echo_n "checking for struct tms... " >&6; }
10700 if test "${ac_cv_struct_tms+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 #include "ansidecl.h"
10708 #include "system.h"
10709 #ifdef HAVE_SYS_TIMES_H
10710 #include <sys/times.h>
10711 #endif
10714 main ()
10716 struct tms tms;
10718 return 0;
10720 _ACEOF
10721 if ac_fn_c_try_compile "$LINENO"; then :
10722 ac_cv_struct_tms=yes
10723 else
10724 ac_cv_struct_tms=no
10726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10729 $as_echo "$ac_cv_struct_tms" >&6; }
10730 if test $ac_cv_struct_tms = yes; then
10732 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10736 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10737 # revisit after autoconf 2.50.
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10739 $as_echo_n "checking for clock_t... " >&6; }
10740 if test "${gcc_cv_type_clock_t+set}" = set; then :
10741 $as_echo_n "(cached) " >&6
10742 else
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10747 #include "ansidecl.h"
10748 #include "system.h"
10751 main ()
10753 clock_t x;
10755 return 0;
10757 _ACEOF
10758 if ac_fn_c_try_compile "$LINENO"; then :
10759 gcc_cv_type_clock_t=yes
10760 else
10761 gcc_cv_type_clock_t=no
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10766 $as_echo "$gcc_cv_type_clock_t" >&6; }
10767 if test $gcc_cv_type_clock_t = yes; then
10769 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10773 # Check if F_SETLKW is supported by fcntl.
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10775 $as_echo_n "checking for F_SETLKW... " >&6; }
10776 if test "${ac_cv_f_setlkw+set}" = set; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10783 #include <fcntl.h>
10785 main ()
10788 struct flock fl;
10789 fl.l_whence = 0;
10790 fl.l_start = 0;
10791 fl.l_len = 0;
10792 fl.l_pid = 0;
10793 return fcntl (1, F_SETLKW, &fl);
10795 return 0;
10797 _ACEOF
10798 if ac_fn_c_try_compile "$LINENO"; then :
10799 ac_cv_f_setlkw=yes
10800 else
10801 ac_cv_f_setlkw=no
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10806 $as_echo "$ac_cv_f_setlkw" >&6; }
10807 if test $ac_cv_f_setlkw = yes; then
10809 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10813 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10814 CFLAGS="$saved_CFLAGS"
10815 CXXFLAGS="$saved_CXXFLAGS"
10817 # mkdir takes a single argument on some systems.
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10819 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10820 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10826 #include <sys/types.h>
10827 #ifdef HAVE_SYS_STAT_H
10828 # include <sys/stat.h>
10829 #endif
10830 #ifdef HAVE_UNISTD_H
10831 # include <unistd.h>
10832 #endif
10833 #ifdef HAVE_DIRECT_H
10834 # include <direct.h>
10835 #endif
10837 main ()
10839 mkdir ("foo", 0);
10841 return 0;
10843 _ACEOF
10844 if ac_fn_c_try_compile "$LINENO"; then :
10845 gcc_cv_mkdir_takes_one_arg=no
10846 else
10847 gcc_cv_mkdir_takes_one_arg=yes
10849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10852 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10853 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10855 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10860 # File extensions
10861 manext='.1'
10862 objext='.o'
10866 # With Setjmp/Longjmp based exception handling.
10867 # Check whether --enable-sjlj-exceptions was given.
10868 if test "${enable_sjlj_exceptions+set}" = set; then :
10869 enableval=$enable_sjlj_exceptions; case $target in
10870 *-*-hpux10*)
10871 if test $enableval != yes; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10873 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10874 enableval=yes
10877 esac
10878 force_sjlj_exceptions=yes
10879 else
10880 case $target in
10881 *-*-hpux10*)
10882 force_sjlj_exceptions=yes
10883 enableval=yes
10886 force_sjlj_exceptions=no
10888 esac
10891 if test $force_sjlj_exceptions = yes; then
10892 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10894 cat >>confdefs.h <<_ACEOF
10895 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10896 _ACEOF
10900 # --------------------------------------------------------
10901 # Build, host, and target specific configuration fragments
10902 # --------------------------------------------------------
10904 # Collect build-machine-specific information.
10905 . ${srcdir}/config.build
10907 # Collect host-machine-specific information.
10908 . ${srcdir}/config.host
10910 target_gtfiles=
10912 # Collect target-machine-specific information.
10913 . ${srcdir}/config.gcc
10915 extra_objs="${host_extra_objs} ${extra_objs}"
10916 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10918 # Default the target-machine variables that were not explicitly set.
10919 if test x"$tm_file" = x
10920 then tm_file=$cpu_type/$cpu_type.h; fi
10922 if test x"$extra_headers" = x
10923 then extra_headers=; fi
10925 if test x$md_file = x
10926 then md_file=$cpu_type/$cpu_type.md; fi
10928 if test x$out_file = x
10929 then out_file=$cpu_type/$cpu_type.c; fi
10931 if test x"$tmake_file" = x
10932 then tmake_file=$cpu_type/t-$cpu_type
10935 # Support --enable-initfini-array.
10936 if test x$enable_initfini_array != xno; then
10937 tm_file="${tm_file} initfini-array.h"
10940 if test x"$dwarf2" = xyes
10941 then tm_file="$tm_file tm-dwarf2.h"
10944 # Say what files are being used for the output code and MD file.
10945 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10946 echo "Using \`$srcdir/config/$md_file' as machine description file."
10948 # If any of the xm_file variables contain nonexistent files, warn
10949 # about them and drop them.
10952 for x in $build_xm_file; do
10953 if test -f $srcdir/config/$x
10954 then bx="$bx $x"
10955 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10956 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10958 done
10959 build_xm_file="$bx"
10962 for x in $host_xm_file; do
10963 if test -f $srcdir/config/$x
10964 then hx="$hx $x"
10965 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10966 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10968 done
10969 host_xm_file="$hx"
10972 for x in $xm_file; do
10973 if test -f $srcdir/config/$x
10974 then tx="$tx $x"
10975 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10976 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10978 done
10979 xm_file="$tx"
10981 count=a
10982 for f in $tm_file; do
10983 count=${count}x
10984 done
10985 if test $count = ax; then
10986 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10987 else
10988 echo "Using the following target machine macro files:"
10989 for f in $tm_file; do
10990 echo " $srcdir/config/$f"
10991 done
10994 if test x$need_64bit_hwint = xyes; then
10996 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11000 if test x$use_long_long_for_widest_fast_int = xyes; then
11002 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11006 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11008 cat >>confdefs.h <<_ACEOF
11009 #define HAVE_GNU_LD $gnu_ld_bool
11010 _ACEOF
11013 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_GNU_AS $gnu_as_bool
11017 _ACEOF
11020 count=a
11021 for f in $host_xm_file; do
11022 count=${count}x
11023 done
11024 if test $count = a; then
11026 elif test $count = ax; then
11027 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11028 else
11029 echo "Using the following host machine macro files:"
11030 for f in $host_xm_file; do
11031 echo " $srcdir/config/$f"
11032 done
11034 echo "Using ${out_host_hook_obj} for host machine hooks."
11036 if test "$host_xm_file" != "$build_xm_file"; then
11037 count=a
11038 for f in $build_xm_file; do
11039 count=${count}x
11040 done
11041 if test $count = a; then
11043 elif test $count = ax; then
11044 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11045 else
11046 echo "Using the following build machine macro files:"
11047 for f in $build_xm_file; do
11048 echo " $srcdir/config/$f"
11049 done
11053 if test -n "$configured_native_system_header_dir"; then
11054 native_system_header_dir=$configured_native_system_header_dir
11056 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11059 case ${host} in
11060 powerpc*-*-darwin*)
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11062 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11063 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11069 #include <sys/cdefs.h>
11070 #include <sys/signal.h>
11071 #include <ucontext.h>
11072 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11074 _ACEOF
11075 if ac_fn_c_try_compile "$LINENO"; then :
11076 gcc_cv_mcontext_underscores=no
11077 else
11078 gcc_cv_mcontext_underscores=yes
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11083 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11084 if test $gcc_cv_mcontext_underscores = yes; then
11086 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11090 esac
11092 # ---------
11093 # Threading
11094 # ---------
11096 # Check if a valid thread package
11097 case ${enable_threads} in
11098 "" | no)
11099 # No threads
11100 target_thread_file='single'
11102 yes)
11103 # default
11104 target_thread_file='single'
11106 aix | dce | lynx | mipssde | posix | rtems | \
11107 single | tpf | vxworks | win32)
11108 target_thread_file=${enable_threads}
11111 echo "${enable_threads} is an unknown thread package" 1>&2
11112 exit 1
11114 esac
11116 if test x${thread_file} = x; then
11117 # No thread file set by target-specific clauses in config.gcc,
11118 # so use file chosen by default logic above
11119 thread_file=${target_thread_file}
11122 # --------
11123 # UNSORTED
11124 # --------
11126 use_cxa_atexit=no
11127 if test x$enable___cxa_atexit = xyes || \
11128 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11129 if test x$host = x$target; then
11130 case $host in
11131 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11132 # keyed to flag_use_cxa_atexit
11133 *-*-mingw32*)
11134 use_cxa_atexit=yes
11137 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11138 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11139 use_cxa_atexit=yes
11140 else
11141 echo "__cxa_atexit can't be enabled on this target"
11145 esac
11146 else
11147 # We can't check for __cxa_atexit when building a cross, so assume
11148 # it is available
11149 use_cxa_atexit=yes
11151 if test x$use_cxa_atexit = xyes; then
11153 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11158 # Look for a file containing extra machine modes.
11159 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11160 extra_modes_file='$(srcdir)'/config/${extra_modes}
11163 cat >>confdefs.h <<_ACEOF
11164 #define EXTRA_MODES_FILE "config/$extra_modes"
11165 _ACEOF
11169 # Convert extra_options into a form suitable for Makefile use.
11170 extra_opt_files=
11171 all_opt_files=
11172 for f in $extra_options; do
11173 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11174 all_opt_files="$all_opt_files $srcdir/config/$f"
11175 done
11178 # auto-host.h is the file containing items generated by autoconf and is
11179 # the first file included by config.h.
11180 # If host=build, it is correct to have bconfig include auto-host.h
11181 # as well. If host!=build, we are in error and need to do more
11182 # work to find out the build config parameters.
11183 if test x$host = x$build
11184 then
11185 build_auto=auto-host.h
11186 else
11187 # We create a subdir, then run autoconf in the subdir.
11188 # To prevent recursion we set host and build for the new
11189 # invocation of configure to the build for this invocation
11190 # of configure.
11191 tempdir=build.$$
11192 rm -rf $tempdir
11193 mkdir $tempdir
11194 cd $tempdir
11195 case ${srcdir} in
11196 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11197 *) realsrcdir=../${srcdir};;
11198 esac
11199 saved_CFLAGS="${CFLAGS}"
11200 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11201 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11202 ${realsrcdir}/configure \
11203 --enable-languages=${enable_languages-all} \
11204 --target=$target_alias --host=$build_alias --build=$build_alias
11205 CFLAGS="${saved_CFLAGS}"
11207 # We just finished tests for the build machine, so rename
11208 # the file auto-build.h in the gcc directory.
11209 mv auto-host.h ../auto-build.h
11210 cd ..
11211 rm -rf $tempdir
11212 build_auto=auto-build.h
11216 tm_file="${tm_file} defaults.h"
11217 tm_p_file="${tm_p_file} tm-preds.h"
11218 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11219 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11220 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11221 # put this back in temporarily.
11222 xm_file="auto-host.h ansidecl.h ${xm_file}"
11224 # --------
11225 # UNSORTED
11226 # --------
11228 # Compile in configure arguments.
11229 if test -f configargs.h ; then
11230 # Being re-configured.
11231 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11232 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11233 else
11234 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11237 # Double all backslashes and backslash all quotes to turn
11238 # gcc_config_arguments into a C string.
11239 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11240 $gcc_config_arguments
11242 gcc_config_arguments_str=`cat conftest.out`
11243 rm -f conftest.out
11245 cat > configargs.h <<EOF
11246 /* Generated automatically. */
11247 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11248 static const char thread_model[] = "$thread_file";
11250 static const struct {
11251 const char *name, *value;
11252 } configure_default_options[] = $configure_default_options;
11255 gcc_BASEVER=`cat $srcdir/BASE-VER`
11256 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11257 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11258 if test -f $srcdir/REVISION ; then
11259 gcc_REVISION=`cat $srcdir/REVISION`
11260 else
11261 gcc_REVISION=""
11263 cat > plugin-version.h <<EOF
11264 #include "configargs.h"
11266 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11267 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11268 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11269 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11271 static char basever[] = "$gcc_BASEVER";
11272 static char datestamp[] = "$gcc_DATESTAMP";
11273 static char devphase[] = "$gcc_DEVPHASE";
11274 static char revision[] = "$gcc_REVISION";
11276 /* FIXME plugins: We should make the version information more precise.
11277 One way to do is to add a checksum. */
11279 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11280 devphase, revision,
11281 configuration_arguments};
11284 # Internationalization
11285 # If we haven't got the data from the intl directory,
11286 # assume NLS is disabled.
11287 USE_NLS=no
11288 LIBINTL=
11289 LIBINTL_DEP=
11290 INCINTL=
11291 XGETTEXT=
11292 GMSGFMT=
11293 POSUB=
11295 if test -f ../intl/config.intl; then
11296 . ../intl/config.intl
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11299 $as_echo_n "checking whether NLS is requested... " >&6; }
11300 if test x"$USE_NLS" != xyes; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11305 $as_echo "yes" >&6; }
11307 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11311 $as_echo_n "checking for catalogs to be installed... " >&6; }
11312 # Look for .po and .gmo files in the source directory.
11313 CATALOGS=
11314 XLINGUAS=
11315 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11316 # If there aren't any .gmo files the shell will give us the
11317 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11318 # weeded out.
11319 case "$cat" in *\**)
11320 continue;;
11321 esac
11322 # The quadruple backslash is collapsed to a double backslash
11323 # by the backticks, then collapsed again by the double quotes,
11324 # leaving us with one backslash in the sed expression (right
11325 # before the dot that mustn't act as a wildcard).
11326 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11327 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11328 # The user is allowed to set LINGUAS to a list of languages to
11329 # install catalogs for. If it's empty that means "all of them."
11330 if test "x$LINGUAS" = x; then
11331 CATALOGS="$CATALOGS $cat"
11332 XLINGUAS="$XLINGUAS $lang"
11333 else
11334 case "$LINGUAS" in *$lang*)
11335 CATALOGS="$CATALOGS $cat"
11336 XLINGUAS="$XLINGUAS $lang"
11338 esac
11340 done
11341 LINGUAS="$XLINGUAS"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11343 $as_echo "$LINGUAS" >&6; }
11346 DATADIRNAME=share
11348 INSTOBJEXT=.mo
11350 GENCAT=gencat
11352 CATOBJEXT=.gmo
11356 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11357 # -liconv on the link line twice.
11358 case "$LIBINTL" in *$LIBICONV*)
11359 LIBICONV= ;;
11360 esac
11362 # Check whether --enable-secureplt was given.
11363 if test "${enable_secureplt+set}" = set; then :
11364 enableval=$enable_secureplt;
11368 # Check whether --enable-leading-mingw64-underscores was given.
11369 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11370 enableval=$enable_leading_mingw64_underscores;
11373 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11375 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11379 # Check whether --enable-cld was given.
11380 if test "${enable_cld+set}" = set; then :
11381 enableval=$enable_cld;
11382 else
11383 enable_cld=no
11387 # Check whether --enable-frame-pointer was given.
11388 if test "${enable_frame_pointer+set}" = set; then :
11389 enableval=$enable_frame_pointer;
11390 else
11392 case $target_os in
11393 linux* | darwin[8912]*)
11394 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11395 # DWARF2.
11396 enable_frame_pointer=no
11399 enable_frame_pointer=yes
11401 esac
11406 # Windows32 Registry support for specifying GCC installation paths.
11407 # Check whether --enable-win32-registry was given.
11408 if test "${enable_win32_registry+set}" = set; then :
11409 enableval=$enable_win32_registry;
11413 case $host_os in
11414 win32 | pe | cygwin* | mingw32* | uwin*)
11415 if test "x$enable_win32_registry" != xno; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11417 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11418 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 ac_func_search_save_LIBS=$LIBS
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 /* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428 #ifdef __cplusplus
11429 extern "C"
11430 #endif
11431 char RegOpenKeyExA ();
11433 main ()
11435 return RegOpenKeyExA ();
11437 return 0;
11439 _ACEOF
11440 for ac_lib in '' advapi32; do
11441 if test -z "$ac_lib"; then
11442 ac_res="none required"
11443 else
11444 ac_res=-l$ac_lib
11445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11447 if ac_fn_c_try_link "$LINENO"; then :
11448 ac_cv_search_RegOpenKeyExA=$ac_res
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext
11452 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11453 break
11455 done
11456 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11458 else
11459 ac_cv_search_RegOpenKeyExA=no
11461 rm conftest.$ac_ext
11462 LIBS=$ac_func_search_save_LIBS
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11465 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11466 ac_res=$ac_cv_search_RegOpenKeyExA
11467 if test "$ac_res" != no; then :
11468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11470 else
11471 enable_win32_registry=no
11476 if test "x$enable_win32_registry" != xno; then
11478 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11481 if test "x$enable_win32_registry" != xyes \
11482 && test "x$enable_win32_registry" != x; then
11484 cat >>confdefs.h <<_ACEOF
11485 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11486 _ACEOF
11491 esac
11493 # Get an absolute path to the GCC top-level source directory
11494 holddir=`${PWDCMD-pwd}`
11495 cd $srcdir
11496 topdir=`${PWDCMD-pwd}`
11497 cd $holddir
11499 # Conditionalize the makefile for this host machine.
11500 xmake_file=
11501 for f in ${host_xmake_file}
11503 if test -f ${srcdir}/config/$f
11504 then
11505 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11507 done
11509 # Conditionalize the makefile for this target machine.
11510 tmake_file_=
11511 for f in ${tmake_file}
11513 if test -f ${srcdir}/config/$f
11514 then
11515 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11517 done
11518 tmake_file="${tmake_file_}"
11520 out_object_file=`basename $out_file .c`.o
11521 common_out_object_file=`basename $common_out_file .c`.o
11523 tm_file_list="options.h"
11524 tm_include_list="options.h insn-constants.h"
11525 for f in $tm_file; do
11526 case $f in
11527 ./* )
11528 f=`echo $f | sed 's/^..//'`
11529 tm_file_list="${tm_file_list} $f"
11530 tm_include_list="${tm_include_list} $f"
11532 defaults.h )
11533 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11534 tm_include_list="${tm_include_list} $f"
11537 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11538 tm_include_list="${tm_include_list} config/$f"
11540 esac
11541 done
11543 tm_p_file_list=
11544 tm_p_include_list=
11545 for f in $tm_p_file; do
11546 case $f in
11547 tm-preds.h )
11548 tm_p_file_list="${tm_p_file_list} $f"
11549 tm_p_include_list="${tm_p_include_list} $f"
11552 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11553 tm_p_include_list="${tm_p_include_list} config/$f"
11554 esac
11555 done
11557 xm_file_list=
11558 xm_include_list=
11559 for f in $xm_file; do
11560 case $f in
11561 ansidecl.h )
11562 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11563 xm_include_list="${xm_include_list} $f"
11565 auto-host.h )
11566 xm_file_list="${xm_file_list} $f"
11567 xm_include_list="${xm_include_list} $f"
11570 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11571 xm_include_list="${xm_include_list} config/$f"
11573 esac
11574 done
11576 host_xm_file_list=
11577 host_xm_include_list=
11578 for f in $host_xm_file; do
11579 case $f in
11580 ansidecl.h )
11581 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11582 host_xm_include_list="${host_xm_include_list} $f"
11584 auto-host.h )
11585 host_xm_file_list="${host_xm_file_list} $f"
11586 host_xm_include_list="${host_xm_include_list} $f"
11589 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11590 host_xm_include_list="${host_xm_include_list} config/$f"
11592 esac
11593 done
11595 build_xm_file_list=
11596 for f in $build_xm_file; do
11597 case $f in
11598 ansidecl.h )
11599 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11600 build_xm_include_list="${build_xm_include_list} $f"
11602 auto-build.h | auto-host.h )
11603 build_xm_file_list="${build_xm_file_list} $f"
11604 build_xm_include_list="${build_xm_include_list} $f"
11607 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11608 build_xm_include_list="${build_xm_include_list} config/$f"
11610 esac
11611 done
11613 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11614 # cross-compiler which does not use the native headers and libraries.
11615 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11616 CROSS=
11617 ALL=all.internal
11618 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11620 if test "x$with_build_sysroot" != x; then
11621 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11622 else
11623 # This value is used, even on a native system, because
11624 # CROSS_SYSTEM_HEADER_DIR is just
11625 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11626 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11629 if test x$host != x$target
11630 then
11631 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11632 ALL=all.cross
11633 SYSTEM_HEADER_DIR=$build_system_header_dir
11634 case "$host","$target" in
11635 # Darwin crosses can use the host system's libraries and headers,
11636 # because of the fat library support. Of course, it must be the
11637 # same version of Darwin on both sides. Allow the user to
11638 # just say --target=foo-darwin without a version number to mean
11639 # "the version on this system".
11640 *-*-darwin*,*-*-darwin*)
11641 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11642 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11643 if test $hostos = $targetos -o $targetos = darwin ; then
11644 CROSS=
11645 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11646 with_headers=yes
11650 i?86-*-*,x86_64-*-* \
11651 | powerpc*-*-*,powerpc64*-*-*)
11652 CROSS="$CROSS -DNATIVE_CROSS" ;;
11653 esac
11655 case $target in
11656 *-*-mingw*)
11657 if test "x$with_headers" = x; then
11658 with_headers=yes
11663 esac
11664 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11665 SYSTEM_HEADER_DIR=$build_system_header_dir
11668 # If this is a cross-compiler that does not
11669 # have its own set of headers then define
11670 # inhibit_libc
11672 # If this is using newlib, without having the headers available now,
11673 # then define inhibit_libc in LIBGCC2_CFLAGS.
11674 # This prevents libgcc2 from containing any code which requires libc
11675 # support.
11676 : ${inhibit_libc=false}
11677 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11678 test x$with_newlib = xyes ; } &&
11679 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11680 inhibit_libc=true
11684 # When building gcc with a cross-compiler, we need to adjust things so
11685 # that the generator programs are still built with the native compiler.
11686 # Also, we cannot run fixincludes.
11688 # These are the normal (build=host) settings:
11689 CC_FOR_BUILD='$(CC)'
11690 CXX_FOR_BUILD='$(CXX)'
11691 BUILD_CFLAGS='$(ALL_CFLAGS)'
11692 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11693 BUILD_LDFLAGS='$(LDFLAGS)'
11694 STMP_FIXINC=stmp-fixinc
11696 # And these apply if build != host, or we are generating coverage data
11697 if test x$build != x$host || test "x$coverage_flags" != x
11698 then
11699 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11700 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11703 # Expand extra_headers to include complete path.
11704 # This substitutes for lots of t-* files.
11705 extra_headers_list=
11706 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11707 for file in ${extra_headers} ; do
11708 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11709 done
11711 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11712 if test x"$use_gcc_tgmath" = xyes
11713 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11716 # Define collect2 in Makefile.
11717 case $host_can_use_collect2 in
11718 no) collect2= ;;
11719 *) collect2='collect2$(exeext)' ;;
11720 esac
11723 # Add a definition of USE_COLLECT2 if system wants one.
11724 case $use_collect2 in
11725 no) use_collect2= ;;
11726 "") ;;
11728 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11729 xm_defines="${xm_defines} USE_COLLECT2"
11730 case $host_can_use_collect2 in
11732 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11734 esac
11736 esac
11739 cat >>confdefs.h <<_ACEOF
11740 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11741 _ACEOF
11744 # ---------------------------
11745 # Assembler & linker features
11746 # ---------------------------
11748 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11749 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11750 # However when ld-new is first executed from the build tree, libtool will
11751 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11752 # to the build tree. While doing this we need to use the previous-stage
11753 # linker, or we have an infinite loop. The presence of a shell script as
11754 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11755 # the gcc/collect-ld script. So we need to know how libtool works, or
11756 # exec-tool will fail.
11759 case `pwd` in
11760 *\ * | *\ *)
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11762 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11763 esac
11767 macro_version='2.2.7a'
11768 macro_revision='1.3134'
11782 ltmain="$ac_aux_dir/ltmain.sh"
11784 # Backslashify metacharacters that are still active within
11785 # double-quoted strings.
11786 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11788 # Same as above, but do not quote variable references.
11789 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11791 # Sed substitution to delay expansion of an escaped shell variable in a
11792 # double_quote_subst'ed string.
11793 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11795 # Sed substitution to delay expansion of an escaped single quote.
11796 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11798 # Sed substitution to avoid accidental globbing in evaled expressions
11799 no_glob_subst='s/\*/\\\*/g'
11801 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11802 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11803 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11806 $as_echo_n "checking how to print strings... " >&6; }
11807 # Test print first, because it will be a builtin if present.
11808 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11809 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11810 ECHO='print -r --'
11811 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11812 ECHO='printf %s\n'
11813 else
11814 # Use this function as a fallback that always works.
11815 func_fallback_echo ()
11817 eval 'cat <<_LTECHO_EOF
11819 _LTECHO_EOF'
11821 ECHO='func_fallback_echo'
11824 # func_echo_all arg...
11825 # Invoke $ECHO with all args, space-separated.
11826 func_echo_all ()
11828 $ECHO ""
11831 case "$ECHO" in
11832 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11833 $as_echo "printf" >&6; } ;;
11834 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11835 $as_echo "print -r" >&6; } ;;
11836 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11837 $as_echo "cat" >&6; } ;;
11838 esac
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11854 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11855 if test "${ac_cv_path_SED+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11859 for ac_i in 1 2 3 4 5 6 7; do
11860 ac_script="$ac_script$as_nl$ac_script"
11861 done
11862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11863 { ac_script=; unset ac_script;}
11864 if test -z "$SED"; then
11865 ac_path_SED_found=false
11866 # Loop through the user's path and test for each of PROGNAME-LIST
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_prog in sed gsed; do
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11875 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11876 # Check for GNU ac_path_SED and select it if it is found.
11877 # Check for GNU $ac_path_SED
11878 case `"$ac_path_SED" --version 2>&1` in
11879 *GNU*)
11880 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11882 ac_count=0
11883 $as_echo_n 0123456789 >"conftest.in"
11884 while :
11886 cat "conftest.in" "conftest.in" >"conftest.tmp"
11887 mv "conftest.tmp" "conftest.in"
11888 cp "conftest.in" "conftest.nl"
11889 $as_echo '' >> "conftest.nl"
11890 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11892 as_fn_arith $ac_count + 1 && ac_count=$as_val
11893 if test $ac_count -gt ${ac_path_SED_max-0}; then
11894 # Best one so far, save it but keep looking for a better one
11895 ac_cv_path_SED="$ac_path_SED"
11896 ac_path_SED_max=$ac_count
11898 # 10*(2^10) chars as input seems more than enough
11899 test $ac_count -gt 10 && break
11900 done
11901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11902 esac
11904 $ac_path_SED_found && break 3
11905 done
11906 done
11907 done
11908 IFS=$as_save_IFS
11909 if test -z "$ac_cv_path_SED"; then
11910 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11912 else
11913 ac_cv_path_SED=$SED
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11918 $as_echo "$ac_cv_path_SED" >&6; }
11919 SED="$ac_cv_path_SED"
11920 rm -f conftest.sed
11922 test -z "$SED" && SED=sed
11923 Xsed="$SED -e 1s/^X//"
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11936 $as_echo_n "checking for fgrep... " >&6; }
11937 if test "${ac_cv_path_FGREP+set}" = set; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11941 then ac_cv_path_FGREP="$GREP -F"
11942 else
11943 if test -z "$FGREP"; then
11944 ac_path_FGREP_found=false
11945 # Loop through the user's path and test for each of PROGNAME-LIST
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
11951 for ac_prog in fgrep; do
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11954 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11955 # Check for GNU ac_path_FGREP and select it if it is found.
11956 # Check for GNU $ac_path_FGREP
11957 case `"$ac_path_FGREP" --version 2>&1` in
11958 *GNU*)
11959 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11961 ac_count=0
11962 $as_echo_n 0123456789 >"conftest.in"
11963 while :
11965 cat "conftest.in" "conftest.in" >"conftest.tmp"
11966 mv "conftest.tmp" "conftest.in"
11967 cp "conftest.in" "conftest.nl"
11968 $as_echo 'FGREP' >> "conftest.nl"
11969 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11971 as_fn_arith $ac_count + 1 && ac_count=$as_val
11972 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11973 # Best one so far, save it but keep looking for a better one
11974 ac_cv_path_FGREP="$ac_path_FGREP"
11975 ac_path_FGREP_max=$ac_count
11977 # 10*(2^10) chars as input seems more than enough
11978 test $ac_count -gt 10 && break
11979 done
11980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11981 esac
11983 $ac_path_FGREP_found && break 3
11984 done
11985 done
11986 done
11987 IFS=$as_save_IFS
11988 if test -z "$ac_cv_path_FGREP"; then
11989 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11991 else
11992 ac_cv_path_FGREP=$FGREP
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11998 $as_echo "$ac_cv_path_FGREP" >&6; }
11999 FGREP="$ac_cv_path_FGREP"
12002 test -z "$GREP" && GREP=grep
12022 # Check whether --with-gnu-ld was given.
12023 if test "${with_gnu_ld+set}" = set; then :
12024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12025 else
12026 with_gnu_ld=no
12029 ac_prog=ld
12030 if test "$GCC" = yes; then
12031 # Check if gcc -print-prog-name=ld gives a path.
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12033 $as_echo_n "checking for ld used by $CC... " >&6; }
12034 case $host in
12035 *-*-mingw*)
12036 # gcc leaves a trailing carriage return which upsets mingw
12037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12040 esac
12041 case $ac_prog in
12042 # Accept absolute paths.
12043 [\\/]* | ?:[\\/]*)
12044 re_direlt='/[^/][^/]*/\.\./'
12045 # Canonicalize the pathname of ld
12046 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12047 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12048 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12049 done
12050 test -z "$LD" && LD="$ac_prog"
12053 # If it fails, then pretend we aren't using GCC.
12054 ac_prog=ld
12057 # If it is relative, then search for the first ld in PATH.
12058 with_gnu_ld=unknown
12060 esac
12061 elif test "$with_gnu_ld" = yes; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12063 $as_echo_n "checking for GNU ld... " >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12066 $as_echo_n "checking for non-GNU ld... " >&6; }
12068 if test "${lt_cv_path_LD+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 if test -z "$LD"; then
12072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12073 for ac_dir in $PATH; do
12074 IFS="$lt_save_ifs"
12075 test -z "$ac_dir" && ac_dir=.
12076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12077 lt_cv_path_LD="$ac_dir/$ac_prog"
12078 # Check to see if the program is GNU ld. I'd rather use --version,
12079 # but apparently some variants of GNU ld only accept -v.
12080 # Break only if it was the GNU/non-GNU ld that we prefer.
12081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12082 *GNU* | *'with BFD'*)
12083 test "$with_gnu_ld" != no && break
12086 test "$with_gnu_ld" != yes && break
12088 esac
12090 done
12091 IFS="$lt_save_ifs"
12092 else
12093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12097 LD="$lt_cv_path_LD"
12098 if test -n "$LD"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12100 $as_echo "$LD" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12105 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12108 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12112 case `$LD -v 2>&1 </dev/null` in
12113 *GNU* | *'with BFD'*)
12114 lt_cv_prog_gnu_ld=yes
12117 lt_cv_prog_gnu_ld=no
12119 esac
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12123 with_gnu_ld=$lt_cv_prog_gnu_ld
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12134 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12135 if test "${lt_cv_path_NM+set}" = set; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 if test -n "$NM"; then
12139 # Let the user override the test.
12140 lt_cv_path_NM="$NM"
12141 else
12142 lt_nm_to_check="${ac_tool_prefix}nm"
12143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12144 lt_nm_to_check="$lt_nm_to_check nm"
12146 for lt_tmp_nm in $lt_nm_to_check; do
12147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12148 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12149 IFS="$lt_save_ifs"
12150 test -z "$ac_dir" && ac_dir=.
12151 tmp_nm="$ac_dir/$lt_tmp_nm"
12152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12153 # Check to see if the nm accepts a BSD-compat flag.
12154 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12155 # nm: unknown option "B" ignored
12156 # Tru64's nm complains that /dev/null is an invalid object file
12157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12158 */dev/null* | *'Invalid file or object type'*)
12159 lt_cv_path_NM="$tmp_nm -B"
12160 break
12163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12164 */dev/null*)
12165 lt_cv_path_NM="$tmp_nm -p"
12166 break
12169 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12170 continue # so that we can try to find one that supports BSD flags
12172 esac
12174 esac
12176 done
12177 IFS="$lt_save_ifs"
12178 done
12179 : ${lt_cv_path_NM=no}
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12183 $as_echo "$lt_cv_path_NM" >&6; }
12184 if test "$lt_cv_path_NM" != "no"; then
12185 NM="$lt_cv_path_NM"
12186 else
12187 # Didn't find any BSD compatible name lister, look for dumpbin.
12188 if test -n "$DUMPBIN"; then :
12189 # Let the user override the test.
12190 else
12191 if test -n "$ac_tool_prefix"; then
12192 for ac_prog in dumpbin "link -dump"
12194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12201 if test -n "$DUMPBIN"; then
12202 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12203 else
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12211 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12215 done
12216 done
12217 IFS=$as_save_IFS
12221 DUMPBIN=$ac_cv_prog_DUMPBIN
12222 if test -n "$DUMPBIN"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12224 $as_echo "$DUMPBIN" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12231 test -n "$DUMPBIN" && break
12232 done
12234 if test -z "$DUMPBIN"; then
12235 ac_ct_DUMPBIN=$DUMPBIN
12236 for ac_prog in dumpbin "link -dump"
12238 # Extract the first word of "$ac_prog", so it can be a program name with args.
12239 set dummy $ac_prog; ac_word=$2
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241 $as_echo_n "checking for $ac_word... " >&6; }
12242 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 if test -n "$ac_ct_DUMPBIN"; then
12246 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12247 else
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12255 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12259 done
12260 done
12261 IFS=$as_save_IFS
12265 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12266 if test -n "$ac_ct_DUMPBIN"; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12268 $as_echo "$ac_ct_DUMPBIN" >&6; }
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12275 test -n "$ac_ct_DUMPBIN" && break
12276 done
12278 if test "x$ac_ct_DUMPBIN" = x; then
12279 DUMPBIN=":"
12280 else
12281 case $cross_compiling:$ac_tool_warned in
12282 yes:)
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12285 ac_tool_warned=yes ;;
12286 esac
12287 DUMPBIN=$ac_ct_DUMPBIN
12291 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12292 *COFF*)
12293 DUMPBIN="$DUMPBIN -symbols"
12296 DUMPBIN=:
12298 esac
12301 if test "$DUMPBIN" != ":"; then
12302 NM="$DUMPBIN"
12305 test -z "$NM" && NM=nm
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12313 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12314 if test "${lt_cv_nm_interface+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 lt_cv_nm_interface="BSD nm"
12318 echo "int some_variable = 0;" > conftest.$ac_ext
12319 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12320 (eval "$ac_compile" 2>conftest.err)
12321 cat conftest.err >&5
12322 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12323 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12324 cat conftest.err >&5
12325 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12326 cat conftest.out >&5
12327 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12328 lt_cv_nm_interface="MS dumpbin"
12330 rm -f conftest*
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12333 $as_echo "$lt_cv_nm_interface" >&6; }
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12336 $as_echo_n "checking whether ln -s works... " >&6; }
12337 LN_S=$as_ln_s
12338 if test "$LN_S" = "ln -s"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12340 $as_echo "yes" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12343 $as_echo "no, using $LN_S" >&6; }
12346 # find the maximum length of command line arguments
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12348 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12349 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12350 $as_echo_n "(cached) " >&6
12351 else
12353 teststring="ABCD"
12355 case $build_os in
12356 msdosdjgpp*)
12357 # On DJGPP, this test can blow up pretty badly due to problems in libc
12358 # (any single argument exceeding 2000 bytes causes a buffer overrun
12359 # during glob expansion). Even if it were fixed, the result of this
12360 # check would be larger than it should be.
12361 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12364 gnu*)
12365 # Under GNU Hurd, this test is not required because there is
12366 # no limit to the length of command line arguments.
12367 # Libtool will interpret -1 as no limit whatsoever
12368 lt_cv_sys_max_cmd_len=-1;
12371 cygwin* | mingw* | cegcc*)
12372 # On Win9x/ME, this test blows up -- it succeeds, but takes
12373 # about 5 minutes as the teststring grows exponentially.
12374 # Worse, since 9x/ME are not pre-emptively multitasking,
12375 # you end up with a "frozen" computer, even though with patience
12376 # the test eventually succeeds (with a max line length of 256k).
12377 # Instead, let's just punt: use the minimum linelength reported by
12378 # all of the supported platforms: 8192 (on NT/2K/XP).
12379 lt_cv_sys_max_cmd_len=8192;
12382 mint*)
12383 # On MiNT this can take a long time and run out of memory.
12384 lt_cv_sys_max_cmd_len=8192;
12387 amigaos*)
12388 # On AmigaOS with pdksh, this test takes hours, literally.
12389 # So we just punt and use a minimum line length of 8192.
12390 lt_cv_sys_max_cmd_len=8192;
12393 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12394 # This has been around since 386BSD, at least. Likely further.
12395 if test -x /sbin/sysctl; then
12396 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12397 elif test -x /usr/sbin/sysctl; then
12398 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12399 else
12400 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12402 # And add a safety zone
12403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12407 interix*)
12408 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12409 lt_cv_sys_max_cmd_len=196608
12412 osf*)
12413 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12414 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12415 # nice to cause kernel panics so lets avoid the loop below.
12416 # First set a reasonable default.
12417 lt_cv_sys_max_cmd_len=16384
12419 if test -x /sbin/sysconfig; then
12420 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12421 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12422 esac
12425 sco3.2v5*)
12426 lt_cv_sys_max_cmd_len=102400
12428 sysv5* | sco5v6* | sysv4.2uw2*)
12429 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12430 if test -n "$kargmax"; then
12431 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12432 else
12433 lt_cv_sys_max_cmd_len=32768
12437 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12438 if test -n "$lt_cv_sys_max_cmd_len"; then
12439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12441 else
12442 # Make teststring a little bigger before we do anything with it.
12443 # a 1K string should be a reasonable start.
12444 for i in 1 2 3 4 5 6 7 8 ; do
12445 teststring=$teststring$teststring
12446 done
12447 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12448 # If test is not a shell built-in, we'll probably end up computing a
12449 # maximum length that is only half of the actual maximum length, but
12450 # we can't tell.
12451 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12452 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12453 test $i != 17 # 1/2 MB should be enough
12455 i=`expr $i + 1`
12456 teststring=$teststring$teststring
12457 done
12458 # Only check the string length outside the loop.
12459 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12460 teststring=
12461 # Add a significant safety factor because C++ compilers can tack on
12462 # massive amounts of additional arguments before passing them to the
12463 # linker. It appears as though 1/2 is a usable value.
12464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12467 esac
12471 if test -n $lt_cv_sys_max_cmd_len ; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12473 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12474 else
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12476 $as_echo "none" >&6; }
12478 max_cmd_len=$lt_cv_sys_max_cmd_len
12485 : ${CP="cp -f"}
12486 : ${MV="mv -f"}
12487 : ${RM="rm -f"}
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12490 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12491 # Try some XSI features
12492 xsi_shell=no
12493 ( _lt_dummy="a/b/c"
12494 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12495 = c,a/b,, \
12496 && eval 'test $(( 1 + 1 )) -eq 2 \
12497 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12498 && xsi_shell=yes
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12500 $as_echo "$xsi_shell" >&6; }
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12504 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12505 lt_shell_append=no
12506 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12507 >/dev/null 2>&1 \
12508 && lt_shell_append=yes
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12510 $as_echo "$lt_shell_append" >&6; }
12513 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12514 lt_unset=unset
12515 else
12516 lt_unset=false
12523 # test EBCDIC or ASCII
12524 case `echo X|tr X '\101'` in
12525 A) # ASCII based system
12526 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12527 lt_SP2NL='tr \040 \012'
12528 lt_NL2SP='tr \015\012 \040\040'
12530 *) # EBCDIC based system
12531 lt_SP2NL='tr \100 \n'
12532 lt_NL2SP='tr \r\n \100\100'
12534 esac
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12545 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12546 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 lt_cv_ld_reload_flag='-r'
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12552 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12553 reload_flag=$lt_cv_ld_reload_flag
12554 case $reload_flag in
12555 "" | " "*) ;;
12556 *) reload_flag=" $reload_flag" ;;
12557 esac
12558 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12559 case $host_os in
12560 darwin*)
12561 if test "$GCC" = yes; then
12562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12563 else
12564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12567 esac
12577 if test -n "$ac_tool_prefix"; then
12578 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12579 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581 $as_echo_n "checking for $ac_word... " >&6; }
12582 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 if test -n "$OBJDUMP"; then
12586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12587 else
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12599 done
12600 done
12601 IFS=$as_save_IFS
12605 OBJDUMP=$ac_cv_prog_OBJDUMP
12606 if test -n "$OBJDUMP"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12608 $as_echo "$OBJDUMP" >&6; }
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12616 if test -z "$ac_cv_prog_OBJDUMP"; then
12617 ac_ct_OBJDUMP=$OBJDUMP
12618 # Extract the first word of "objdump", so it can be a program name with args.
12619 set dummy objdump; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 if test -n "$ac_ct_OBJDUMP"; then
12626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12627 else
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12631 IFS=$as_save_IFS
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12635 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637 break 2
12639 done
12640 done
12641 IFS=$as_save_IFS
12645 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12646 if test -n "$ac_ct_OBJDUMP"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12648 $as_echo "$ac_ct_OBJDUMP" >&6; }
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12654 if test "x$ac_ct_OBJDUMP" = x; then
12655 OBJDUMP="false"
12656 else
12657 case $cross_compiling:$ac_tool_warned in
12658 yes:)
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12661 ac_tool_warned=yes ;;
12662 esac
12663 OBJDUMP=$ac_ct_OBJDUMP
12665 else
12666 OBJDUMP="$ac_cv_prog_OBJDUMP"
12669 test -z "$OBJDUMP" && OBJDUMP=objdump
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12680 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12681 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 lt_cv_file_magic_cmd='$MAGIC_CMD'
12685 lt_cv_file_magic_test_file=
12686 lt_cv_deplibs_check_method='unknown'
12687 # Need to set the preceding variable on all platforms that support
12688 # interlibrary dependencies.
12689 # 'none' -- dependencies not supported.
12690 # `unknown' -- same as none, but documents that we really don't know.
12691 # 'pass_all' -- all dependencies passed with no checks.
12692 # 'test_compile' -- check by making test program.
12693 # 'file_magic [[regex]]' -- check by looking for files in library path
12694 # which responds to the $file_magic_cmd with a given extended regex.
12695 # If you have `file' or equivalent on your system and you're not sure
12696 # whether `pass_all' will *always* work, you probably want this one.
12698 case $host_os in
12699 aix[4-9]*)
12700 lt_cv_deplibs_check_method=pass_all
12703 beos*)
12704 lt_cv_deplibs_check_method=pass_all
12707 bsdi[45]*)
12708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12709 lt_cv_file_magic_cmd='/usr/bin/file -L'
12710 lt_cv_file_magic_test_file=/shlib/libc.so
12713 cygwin*)
12714 # func_win32_libid is a shell function defined in ltmain.sh
12715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12716 lt_cv_file_magic_cmd='func_win32_libid'
12719 mingw* | pw32*)
12720 # Base MSYS/MinGW do not provide the 'file' command needed by
12721 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12722 # unless we find 'file', for example because we are cross-compiling.
12723 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12724 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12726 lt_cv_file_magic_cmd='func_win32_libid'
12727 else
12728 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12729 lt_cv_file_magic_cmd='$OBJDUMP -f'
12733 cegcc*)
12734 # use the weaker test based on 'objdump'. See mingw*.
12735 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12736 lt_cv_file_magic_cmd='$OBJDUMP -f'
12739 darwin* | rhapsody*)
12740 lt_cv_deplibs_check_method=pass_all
12743 freebsd* | dragonfly*)
12744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12745 case $host_cpu in
12746 i*86 )
12747 # Not sure whether the presence of OpenBSD here was a mistake.
12748 # Let's accept both of them until this is cleared up.
12749 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12750 lt_cv_file_magic_cmd=/usr/bin/file
12751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12753 esac
12754 else
12755 lt_cv_deplibs_check_method=pass_all
12759 gnu*)
12760 lt_cv_deplibs_check_method=pass_all
12763 haiku*)
12764 lt_cv_deplibs_check_method=pass_all
12767 hpux10.20* | hpux11*)
12768 lt_cv_file_magic_cmd=/usr/bin/file
12769 case $host_cpu in
12770 ia64*)
12771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12772 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12774 hppa*64*)
12775 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]'
12776 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12780 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12782 esac
12785 interix[3-9]*)
12786 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12790 irix5* | irix6* | nonstopux*)
12791 case $LD in
12792 *-32|*"-32 ") libmagic=32-bit;;
12793 *-n32|*"-n32 ") libmagic=N32;;
12794 *-64|*"-64 ") libmagic=64-bit;;
12795 *) libmagic=never-match;;
12796 esac
12797 lt_cv_deplibs_check_method=pass_all
12800 # This must be Linux ELF.
12801 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12802 lt_cv_deplibs_check_method=pass_all
12805 netbsd*)
12806 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12808 else
12809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12813 newos6*)
12814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12815 lt_cv_file_magic_cmd=/usr/bin/file
12816 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12819 *nto* | *qnx*)
12820 lt_cv_deplibs_check_method=pass_all
12823 openbsd*)
12824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12826 else
12827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12831 osf3* | osf4* | osf5*)
12832 lt_cv_deplibs_check_method=pass_all
12835 rdos*)
12836 lt_cv_deplibs_check_method=pass_all
12839 solaris*)
12840 lt_cv_deplibs_check_method=pass_all
12843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12844 lt_cv_deplibs_check_method=pass_all
12847 sysv4 | sysv4.3*)
12848 case $host_vendor in
12849 motorola)
12850 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]'
12851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12853 ncr)
12854 lt_cv_deplibs_check_method=pass_all
12856 sequent)
12857 lt_cv_file_magic_cmd='/bin/file'
12858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12860 sni)
12861 lt_cv_file_magic_cmd='/bin/file'
12862 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12863 lt_cv_file_magic_test_file=/lib/libc.so
12865 siemens)
12866 lt_cv_deplibs_check_method=pass_all
12869 lt_cv_deplibs_check_method=pass_all
12871 esac
12874 tpf*)
12875 lt_cv_deplibs_check_method=pass_all
12877 esac
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12881 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12882 file_magic_cmd=$lt_cv_file_magic_cmd
12883 deplibs_check_method=$lt_cv_deplibs_check_method
12884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12897 if test -n "$ac_tool_prefix"; then
12898 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12899 set dummy ${ac_tool_prefix}ar; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901 $as_echo_n "checking for $ac_word... " >&6; }
12902 if test "${ac_cv_prog_AR+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 if test -n "$AR"; then
12906 ac_cv_prog_AR="$AR" # Let the user override the test.
12907 else
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12915 ac_cv_prog_AR="${ac_tool_prefix}ar"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 break 2
12919 done
12920 done
12921 IFS=$as_save_IFS
12925 AR=$ac_cv_prog_AR
12926 if test -n "$AR"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12928 $as_echo "$AR" >&6; }
12929 else
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12936 if test -z "$ac_cv_prog_AR"; then
12937 ac_ct_AR=$AR
12938 # Extract the first word of "ar", so it can be a program name with args.
12939 set dummy ar; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 if test -n "$ac_ct_AR"; then
12946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12947 else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_prog_ac_ct_AR="ar"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12959 done
12960 done
12961 IFS=$as_save_IFS
12965 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12966 if test -n "$ac_ct_AR"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12968 $as_echo "$ac_ct_AR" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12974 if test "x$ac_ct_AR" = x; then
12975 AR="false"
12976 else
12977 case $cross_compiling:$ac_tool_warned in
12978 yes:)
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12981 ac_tool_warned=yes ;;
12982 esac
12983 AR=$ac_ct_AR
12985 else
12986 AR="$ac_cv_prog_AR"
12989 test -z "$AR" && AR=ar
12990 test -z "$AR_FLAGS" && AR_FLAGS=cru
13002 if test -n "$ac_tool_prefix"; then
13003 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13004 set dummy ${ac_tool_prefix}strip; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if test "${ac_cv_prog_STRIP+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 if test -n "$STRIP"; then
13011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13012 else
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13016 IFS=$as_save_IFS
13017 test -z "$as_dir" && as_dir=.
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13022 break 2
13024 done
13025 done
13026 IFS=$as_save_IFS
13030 STRIP=$ac_cv_prog_STRIP
13031 if test -n "$STRIP"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13033 $as_echo "$STRIP" >&6; }
13034 else
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13041 if test -z "$ac_cv_prog_STRIP"; then
13042 ac_ct_STRIP=$STRIP
13043 # Extract the first word of "strip", so it can be a program name with args.
13044 set dummy strip; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 if test -n "$ac_ct_STRIP"; then
13051 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13052 else
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13056 IFS=$as_save_IFS
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_ac_ct_STRIP="strip"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 break 2
13064 done
13065 done
13066 IFS=$as_save_IFS
13070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13071 if test -n "$ac_ct_STRIP"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13073 $as_echo "$ac_ct_STRIP" >&6; }
13074 else
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13079 if test "x$ac_ct_STRIP" = x; then
13080 STRIP=":"
13081 else
13082 case $cross_compiling:$ac_tool_warned in
13083 yes:)
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13086 ac_tool_warned=yes ;;
13087 esac
13088 STRIP=$ac_ct_STRIP
13090 else
13091 STRIP="$ac_cv_prog_STRIP"
13094 test -z "$STRIP" && STRIP=:
13101 if test -n "$ac_tool_prefix"; then
13102 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105 $as_echo_n "checking for $ac_word... " >&6; }
13106 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 if test -n "$RANLIB"; then
13110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13111 else
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13115 IFS=$as_save_IFS
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121 break 2
13123 done
13124 done
13125 IFS=$as_save_IFS
13129 RANLIB=$ac_cv_prog_RANLIB
13130 if test -n "$RANLIB"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13132 $as_echo "$RANLIB" >&6; }
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13140 if test -z "$ac_cv_prog_RANLIB"; then
13141 ac_ct_RANLIB=$RANLIB
13142 # Extract the first word of "ranlib", so it can be a program name with args.
13143 set dummy ranlib; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 if test -n "$ac_ct_RANLIB"; then
13150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_ac_ct_RANLIB="ranlib"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13163 done
13164 done
13165 IFS=$as_save_IFS
13169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13170 if test -n "$ac_ct_RANLIB"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13172 $as_echo "$ac_ct_RANLIB" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13178 if test "x$ac_ct_RANLIB" = x; then
13179 RANLIB=":"
13180 else
13181 case $cross_compiling:$ac_tool_warned in
13182 yes:)
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13185 ac_tool_warned=yes ;;
13186 esac
13187 RANLIB=$ac_ct_RANLIB
13189 else
13190 RANLIB="$ac_cv_prog_RANLIB"
13193 test -z "$RANLIB" && RANLIB=:
13200 # Determine commands to create old-style static archives.
13201 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13202 old_postinstall_cmds='chmod 644 $oldlib'
13203 old_postuninstall_cmds=
13205 if test -n "$RANLIB"; then
13206 case $host_os in
13207 openbsd*)
13208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13211 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13213 esac
13214 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13217 case $host_os in
13218 darwin*)
13219 lock_old_archive_extraction=yes ;;
13221 lock_old_archive_extraction=no ;;
13222 esac
13262 # If no C compiler was specified, use CC.
13263 LTCC=${LTCC-"$CC"}
13265 # If no C compiler flags were specified, use CFLAGS.
13266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13268 # Allow CC to be a program name with arguments.
13269 compiler=$CC
13272 # Check for command to grab the raw symbol name followed by C symbol from nm.
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13274 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13275 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13279 # These are sane defaults that work on at least a few old systems.
13280 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13282 # Character class describing NM global symbol codes.
13283 symcode='[BCDEGRST]'
13285 # Regexp to match symbols that can be accessed directly from C.
13286 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13288 # Define system-specific variables.
13289 case $host_os in
13290 aix*)
13291 symcode='[BCDT]'
13293 cygwin* | mingw* | pw32* | cegcc*)
13294 symcode='[ABCDGISTW]'
13296 hpux*)
13297 if test "$host_cpu" = ia64; then
13298 symcode='[ABCDEGRST]'
13301 irix* | nonstopux*)
13302 symcode='[BCDEGRST]'
13304 osf*)
13305 symcode='[BCDEGQRST]'
13307 solaris*)
13308 symcode='[BDRT]'
13310 sco3.2v5*)
13311 symcode='[DT]'
13313 sysv4.2uw2*)
13314 symcode='[DT]'
13316 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13317 symcode='[ABDT]'
13319 sysv4)
13320 symcode='[DFNSTU]'
13322 esac
13324 # If we're using GNU nm, then use its standard symbol codes.
13325 case `$NM -V 2>&1` in
13326 *GNU* | *'with BFD'*)
13327 symcode='[ABCDGIRSTW]' ;;
13328 esac
13330 # Transform an extracted symbol line into a proper C declaration.
13331 # Some systems (esp. on ia64) link data and code symbols differently,
13332 # so use this general approach.
13333 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13335 # Transform an extracted symbol line into symbol name and symbol address
13336 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13337 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'"
13339 # Handle CRLF in mingw tool chain
13340 opt_cr=
13341 case $build_os in
13342 mingw*)
13343 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13345 esac
13347 # Try without a prefix underscore, then with it.
13348 for ac_symprfx in "" "_"; do
13350 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13351 symxfrm="\\1 $ac_symprfx\\2 \\2"
13353 # Write the raw and C identifiers.
13354 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13355 # Fake it for dumpbin and say T for any non-static function
13356 # and D for any global variable.
13357 # Also find C++ and __fastcall symbols from MSVC++,
13358 # which start with @ or ?.
13359 lt_cv_sys_global_symbol_pipe="$AWK '"\
13360 " {last_section=section; section=\$ 3};"\
13361 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13362 " \$ 0!~/External *\|/{next};"\
13363 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13364 " {if(hide[section]) next};"\
13365 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13366 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13367 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13368 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13369 " ' prfx=^$ac_symprfx"
13370 else
13371 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13374 # Check to see that the pipe works correctly.
13375 pipe_works=no
13377 rm -f conftest*
13378 cat > conftest.$ac_ext <<_LT_EOF
13379 #ifdef __cplusplus
13380 extern "C" {
13381 #endif
13382 char nm_test_var;
13383 void nm_test_func(void);
13384 void nm_test_func(void){}
13385 #ifdef __cplusplus
13387 #endif
13388 int main(){nm_test_var='a';nm_test_func();return(0);}
13389 _LT_EOF
13391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13392 (eval $ac_compile) 2>&5
13393 ac_status=$?
13394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13395 test $ac_status = 0; }; then
13396 # Now try to grab the symbols.
13397 nlist=conftest.nm
13398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13399 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13400 ac_status=$?
13401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13402 test $ac_status = 0; } && test -s "$nlist"; then
13403 # Try sorting and uniquifying the output.
13404 if sort "$nlist" | uniq > "$nlist"T; then
13405 mv -f "$nlist"T "$nlist"
13406 else
13407 rm -f "$nlist"T
13410 # Make sure that we snagged all the symbols we need.
13411 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13412 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13413 cat <<_LT_EOF > conftest.$ac_ext
13414 #ifdef __cplusplus
13415 extern "C" {
13416 #endif
13418 _LT_EOF
13419 # Now generate the symbol file.
13420 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13422 cat <<_LT_EOF >> conftest.$ac_ext
13424 /* The mapping between symbol names and symbols. */
13425 const struct {
13426 const char *name;
13427 void *address;
13429 lt__PROGRAM__LTX_preloaded_symbols[] =
13431 { "@PROGRAM@", (void *) 0 },
13432 _LT_EOF
13433 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13434 cat <<\_LT_EOF >> conftest.$ac_ext
13435 {0, (void *) 0}
13438 /* This works around a problem in FreeBSD linker */
13439 #ifdef FREEBSD_WORKAROUND
13440 static const void *lt_preloaded_setup() {
13441 return lt__PROGRAM__LTX_preloaded_symbols;
13443 #endif
13445 #ifdef __cplusplus
13447 #endif
13448 _LT_EOF
13449 # Now try linking the two files.
13450 mv conftest.$ac_objext conftstm.$ac_objext
13451 lt_save_LIBS="$LIBS"
13452 lt_save_CFLAGS="$CFLAGS"
13453 LIBS="conftstm.$ac_objext"
13454 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13456 (eval $ac_link) 2>&5
13457 ac_status=$?
13458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13459 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13460 pipe_works=yes
13462 LIBS="$lt_save_LIBS"
13463 CFLAGS="$lt_save_CFLAGS"
13464 else
13465 echo "cannot find nm_test_func in $nlist" >&5
13467 else
13468 echo "cannot find nm_test_var in $nlist" >&5
13470 else
13471 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13473 else
13474 echo "$progname: failed program was:" >&5
13475 cat conftest.$ac_ext >&5
13477 rm -rf conftest* conftst*
13479 # Do not use the global_symbol_pipe unless it works.
13480 if test "$pipe_works" = yes; then
13481 break
13482 else
13483 lt_cv_sys_global_symbol_pipe=
13485 done
13489 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13490 lt_cv_sys_global_symbol_to_cdecl=
13492 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13494 $as_echo "failed" >&6; }
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13497 $as_echo "ok" >&6; }
13521 # Check whether --enable-libtool-lock was given.
13522 if test "${enable_libtool_lock+set}" = set; then :
13523 enableval=$enable_libtool_lock;
13526 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13528 # Some flags need to be propagated to the compiler or linker for good
13529 # libtool support.
13530 case $host in
13531 ia64-*-hpux*)
13532 # Find out which ABI we are using.
13533 echo 'int i;' > conftest.$ac_ext
13534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13535 (eval $ac_compile) 2>&5
13536 ac_status=$?
13537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13538 test $ac_status = 0; }; then
13539 case `/usr/bin/file conftest.$ac_objext` in
13540 *ELF-32*)
13541 HPUX_IA64_MODE="32"
13543 *ELF-64*)
13544 HPUX_IA64_MODE="64"
13546 esac
13548 rm -rf conftest*
13550 *-*-irix6*)
13551 # Find out which ABI we are using.
13552 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13554 (eval $ac_compile) 2>&5
13555 ac_status=$?
13556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13557 test $ac_status = 0; }; then
13558 if test "$lt_cv_prog_gnu_ld" = yes; then
13559 case `/usr/bin/file conftest.$ac_objext` in
13560 *32-bit*)
13561 LD="${LD-ld} -melf32bsmip"
13563 *N32*)
13564 LD="${LD-ld} -melf32bmipn32"
13566 *64-bit*)
13567 LD="${LD-ld} -melf64bmip"
13569 esac
13570 else
13571 case `/usr/bin/file conftest.$ac_objext` in
13572 *32-bit*)
13573 LD="${LD-ld} -32"
13575 *N32*)
13576 LD="${LD-ld} -n32"
13578 *64-bit*)
13579 LD="${LD-ld} -64"
13581 esac
13584 rm -rf conftest*
13587 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13588 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13589 # Find out which ABI we are using.
13590 echo 'int i;' > conftest.$ac_ext
13591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13592 (eval $ac_compile) 2>&5
13593 ac_status=$?
13594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13595 test $ac_status = 0; }; then
13596 case `/usr/bin/file conftest.o` in
13597 *32-bit*)
13598 case $host in
13599 x86_64-*kfreebsd*-gnu)
13600 LD="${LD-ld} -m elf_i386_fbsd"
13602 x86_64-*linux*)
13603 case `/usr/bin/file conftest.o` in
13604 *x86-64*)
13605 LD="${LD-ld} -m elf32_x86_64"
13608 LD="${LD-ld} -m elf_i386"
13610 esac
13612 ppc64-*linux*|powerpc64-*linux*)
13613 LD="${LD-ld} -m elf32ppclinux"
13615 s390x-*linux*)
13616 LD="${LD-ld} -m elf_s390"
13618 sparc64-*linux*)
13619 LD="${LD-ld} -m elf32_sparc"
13621 esac
13623 *64-bit*)
13624 case $host in
13625 x86_64-*kfreebsd*-gnu)
13626 LD="${LD-ld} -m elf_x86_64_fbsd"
13628 x86_64-*linux*)
13629 LD="${LD-ld} -m elf_x86_64"
13631 ppc*-*linux*|powerpc*-*linux*)
13632 LD="${LD-ld} -m elf64ppc"
13634 s390*-*linux*|s390*-*tpf*)
13635 LD="${LD-ld} -m elf64_s390"
13637 sparc*-*linux*)
13638 LD="${LD-ld} -m elf64_sparc"
13640 esac
13642 esac
13644 rm -rf conftest*
13647 *-*-sco3.2v5*)
13648 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13649 SAVE_CFLAGS="$CFLAGS"
13650 CFLAGS="$CFLAGS -belf"
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13652 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13653 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 ac_ext=c
13657 ac_cpp='$CPP $CPPFLAGS'
13658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13666 main ()
13670 return 0;
13672 _ACEOF
13673 if ac_fn_c_try_link "$LINENO"; then :
13674 lt_cv_cc_needs_belf=yes
13675 else
13676 lt_cv_cc_needs_belf=no
13678 rm -f core conftest.err conftest.$ac_objext \
13679 conftest$ac_exeext conftest.$ac_ext
13680 ac_ext=c
13681 ac_cpp='$CPP $CPPFLAGS'
13682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13688 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13689 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13690 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13691 CFLAGS="$SAVE_CFLAGS"
13694 sparc*-*solaris*)
13695 # Find out which ABI we are using.
13696 echo 'int i;' > conftest.$ac_ext
13697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13698 (eval $ac_compile) 2>&5
13699 ac_status=$?
13700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13701 test $ac_status = 0; }; then
13702 case `/usr/bin/file conftest.o` in
13703 *64-bit*)
13704 case $lt_cv_prog_gnu_ld in
13705 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13707 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13708 LD="${LD-ld} -64"
13711 esac
13713 esac
13715 rm -rf conftest*
13717 esac
13719 need_locks="$enable_libtool_lock"
13722 case $host_os in
13723 rhapsody* | darwin*)
13724 if test -n "$ac_tool_prefix"; then
13725 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13726 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13728 $as_echo_n "checking for $ac_word... " >&6; }
13729 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13730 $as_echo_n "(cached) " >&6
13731 else
13732 if test -n "$DSYMUTIL"; then
13733 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13734 else
13735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736 for as_dir in $PATH
13738 IFS=$as_save_IFS
13739 test -z "$as_dir" && as_dir=.
13740 for ac_exec_ext in '' $ac_executable_extensions; do
13741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13742 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13744 break 2
13746 done
13747 done
13748 IFS=$as_save_IFS
13752 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13753 if test -n "$DSYMUTIL"; then
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13755 $as_echo "$DSYMUTIL" >&6; }
13756 else
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758 $as_echo "no" >&6; }
13763 if test -z "$ac_cv_prog_DSYMUTIL"; then
13764 ac_ct_DSYMUTIL=$DSYMUTIL
13765 # Extract the first word of "dsymutil", so it can be a program name with args.
13766 set dummy dsymutil; ac_word=$2
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13768 $as_echo_n "checking for $ac_word... " >&6; }
13769 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13770 $as_echo_n "(cached) " >&6
13771 else
13772 if test -n "$ac_ct_DSYMUTIL"; then
13773 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13774 else
13775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776 for as_dir in $PATH
13778 IFS=$as_save_IFS
13779 test -z "$as_dir" && as_dir=.
13780 for ac_exec_ext in '' $ac_executable_extensions; do
13781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13782 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13784 break 2
13786 done
13787 done
13788 IFS=$as_save_IFS
13792 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13793 if test -n "$ac_ct_DSYMUTIL"; then
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13795 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13796 else
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798 $as_echo "no" >&6; }
13801 if test "x$ac_ct_DSYMUTIL" = x; then
13802 DSYMUTIL=":"
13803 else
13804 case $cross_compiling:$ac_tool_warned in
13805 yes:)
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13808 ac_tool_warned=yes ;;
13809 esac
13810 DSYMUTIL=$ac_ct_DSYMUTIL
13812 else
13813 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13816 if test -n "$ac_tool_prefix"; then
13817 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13818 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13820 $as_echo_n "checking for $ac_word... " >&6; }
13821 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 if test -n "$NMEDIT"; then
13825 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13826 else
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13830 IFS=$as_save_IFS
13831 test -z "$as_dir" && as_dir=.
13832 for ac_exec_ext in '' $ac_executable_extensions; do
13833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13834 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13836 break 2
13838 done
13839 done
13840 IFS=$as_save_IFS
13844 NMEDIT=$ac_cv_prog_NMEDIT
13845 if test -n "$NMEDIT"; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13847 $as_echo "$NMEDIT" >&6; }
13848 else
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13855 if test -z "$ac_cv_prog_NMEDIT"; then
13856 ac_ct_NMEDIT=$NMEDIT
13857 # Extract the first word of "nmedit", so it can be a program name with args.
13858 set dummy nmedit; ac_word=$2
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13860 $as_echo_n "checking for $ac_word... " >&6; }
13861 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13862 $as_echo_n "(cached) " >&6
13863 else
13864 if test -n "$ac_ct_NMEDIT"; then
13865 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13866 else
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13870 IFS=$as_save_IFS
13871 test -z "$as_dir" && as_dir=.
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13874 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13876 break 2
13878 done
13879 done
13880 IFS=$as_save_IFS
13884 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13885 if test -n "$ac_ct_NMEDIT"; then
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13887 $as_echo "$ac_ct_NMEDIT" >&6; }
13888 else
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13893 if test "x$ac_ct_NMEDIT" = x; then
13894 NMEDIT=":"
13895 else
13896 case $cross_compiling:$ac_tool_warned in
13897 yes:)
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13900 ac_tool_warned=yes ;;
13901 esac
13902 NMEDIT=$ac_ct_NMEDIT
13904 else
13905 NMEDIT="$ac_cv_prog_NMEDIT"
13908 if test -n "$ac_tool_prefix"; then
13909 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13910 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912 $as_echo_n "checking for $ac_word... " >&6; }
13913 if test "${ac_cv_prog_LIPO+set}" = set; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 if test -n "$LIPO"; then
13917 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13918 else
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13926 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13928 break 2
13930 done
13931 done
13932 IFS=$as_save_IFS
13936 LIPO=$ac_cv_prog_LIPO
13937 if test -n "$LIPO"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13939 $as_echo "$LIPO" >&6; }
13940 else
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942 $as_echo "no" >&6; }
13947 if test -z "$ac_cv_prog_LIPO"; then
13948 ac_ct_LIPO=$LIPO
13949 # Extract the first word of "lipo", so it can be a program name with args.
13950 set dummy lipo; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 if test -n "$ac_ct_LIPO"; then
13957 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13958 else
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13962 IFS=$as_save_IFS
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13966 ac_cv_prog_ac_ct_LIPO="lipo"
13967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13968 break 2
13970 done
13971 done
13972 IFS=$as_save_IFS
13976 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13977 if test -n "$ac_ct_LIPO"; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13979 $as_echo "$ac_ct_LIPO" >&6; }
13980 else
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13985 if test "x$ac_ct_LIPO" = x; then
13986 LIPO=":"
13987 else
13988 case $cross_compiling:$ac_tool_warned in
13989 yes:)
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13992 ac_tool_warned=yes ;;
13993 esac
13994 LIPO=$ac_ct_LIPO
13996 else
13997 LIPO="$ac_cv_prog_LIPO"
14000 if test -n "$ac_tool_prefix"; then
14001 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14002 set dummy ${ac_tool_prefix}otool; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14004 $as_echo_n "checking for $ac_word... " >&6; }
14005 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 if test -n "$OTOOL"; then
14009 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14010 else
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14014 IFS=$as_save_IFS
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14018 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14020 break 2
14022 done
14023 done
14024 IFS=$as_save_IFS
14028 OTOOL=$ac_cv_prog_OTOOL
14029 if test -n "$OTOOL"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14031 $as_echo "$OTOOL" >&6; }
14032 else
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14039 if test -z "$ac_cv_prog_OTOOL"; then
14040 ac_ct_OTOOL=$OTOOL
14041 # Extract the first word of "otool", so it can be a program name with args.
14042 set dummy otool; ac_word=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044 $as_echo_n "checking for $ac_word... " >&6; }
14045 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 if test -n "$ac_ct_OTOOL"; then
14049 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14050 else
14051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052 for as_dir in $PATH
14054 IFS=$as_save_IFS
14055 test -z "$as_dir" && as_dir=.
14056 for ac_exec_ext in '' $ac_executable_extensions; do
14057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14058 ac_cv_prog_ac_ct_OTOOL="otool"
14059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14060 break 2
14062 done
14063 done
14064 IFS=$as_save_IFS
14068 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14069 if test -n "$ac_ct_OTOOL"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14071 $as_echo "$ac_ct_OTOOL" >&6; }
14072 else
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074 $as_echo "no" >&6; }
14077 if test "x$ac_ct_OTOOL" = x; then
14078 OTOOL=":"
14079 else
14080 case $cross_compiling:$ac_tool_warned in
14081 yes:)
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14084 ac_tool_warned=yes ;;
14085 esac
14086 OTOOL=$ac_ct_OTOOL
14088 else
14089 OTOOL="$ac_cv_prog_OTOOL"
14092 if test -n "$ac_tool_prefix"; then
14093 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14094 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14096 $as_echo_n "checking for $ac_word... " >&6; }
14097 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 if test -n "$OTOOL64"; then
14101 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14102 else
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14106 IFS=$as_save_IFS
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14110 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 break 2
14114 done
14115 done
14116 IFS=$as_save_IFS
14120 OTOOL64=$ac_cv_prog_OTOOL64
14121 if test -n "$OTOOL64"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14123 $as_echo "$OTOOL64" >&6; }
14124 else
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14126 $as_echo "no" >&6; }
14131 if test -z "$ac_cv_prog_OTOOL64"; then
14132 ac_ct_OTOOL64=$OTOOL64
14133 # Extract the first word of "otool64", so it can be a program name with args.
14134 set dummy otool64; ac_word=$2
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14136 $as_echo_n "checking for $ac_word... " >&6; }
14137 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 if test -n "$ac_ct_OTOOL64"; then
14141 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14142 else
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14146 IFS=$as_save_IFS
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14150 ac_cv_prog_ac_ct_OTOOL64="otool64"
14151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14152 break 2
14154 done
14155 done
14156 IFS=$as_save_IFS
14160 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14161 if test -n "$ac_ct_OTOOL64"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14163 $as_echo "$ac_ct_OTOOL64" >&6; }
14164 else
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14169 if test "x$ac_ct_OTOOL64" = x; then
14170 OTOOL64=":"
14171 else
14172 case $cross_compiling:$ac_tool_warned in
14173 yes:)
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14176 ac_tool_warned=yes ;;
14177 esac
14178 OTOOL64=$ac_ct_OTOOL64
14180 else
14181 OTOOL64="$ac_cv_prog_OTOOL64"
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14211 $as_echo_n "checking for -single_module linker flag... " >&6; }
14212 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14213 $as_echo_n "(cached) " >&6
14214 else
14215 lt_cv_apple_cc_single_mod=no
14216 if test -z "${LT_MULTI_MODULE}"; then
14217 # By default we will add the -single_module flag. You can override
14218 # by either setting the environment variable LT_MULTI_MODULE
14219 # non-empty at configure time, or by adding -multi_module to the
14220 # link flags.
14221 rm -rf libconftest.dylib*
14222 echo "int foo(void){return 1;}" > conftest.c
14223 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14224 -dynamiclib -Wl,-single_module conftest.c" >&5
14225 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14226 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14227 _lt_result=$?
14228 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14229 lt_cv_apple_cc_single_mod=yes
14230 else
14231 cat conftest.err >&5
14233 rm -rf libconftest.dylib*
14234 rm -f conftest.*
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14238 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14240 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14241 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14242 $as_echo_n "(cached) " >&6
14243 else
14244 lt_cv_ld_exported_symbols_list=no
14245 save_LDFLAGS=$LDFLAGS
14246 echo "_main" > conftest.sym
14247 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14252 main ()
14256 return 0;
14258 _ACEOF
14259 if ac_fn_c_try_link "$LINENO"; then :
14260 lt_cv_ld_exported_symbols_list=yes
14261 else
14262 lt_cv_ld_exported_symbols_list=no
14264 rm -f core conftest.err conftest.$ac_objext \
14265 conftest$ac_exeext conftest.$ac_ext
14266 LDFLAGS="$save_LDFLAGS"
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14270 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14272 $as_echo_n "checking for -force_load linker flag... " >&6; }
14273 if test "${lt_cv_ld_force_load+set}" = set; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276 lt_cv_ld_force_load=no
14277 cat > conftest.c << _LT_EOF
14278 int forced_loaded() { return 2;}
14279 _LT_EOF
14280 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14281 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14282 echo "$AR cru libconftest.a conftest.o" >&5
14283 $AR cru libconftest.a conftest.o 2>&5
14284 cat > conftest.c << _LT_EOF
14285 int main() { return 0;}
14286 _LT_EOF
14287 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14288 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14289 _lt_result=$?
14290 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14291 lt_cv_ld_force_load=yes
14292 else
14293 cat conftest.err >&5
14295 rm -f conftest.err libconftest.a conftest conftest.c
14296 rm -rf conftest.dSYM
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14300 $as_echo "$lt_cv_ld_force_load" >&6; }
14301 case $host_os in
14302 rhapsody* | darwin1.[012])
14303 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14304 darwin1.*)
14305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14306 darwin*) # darwin 5.x on
14307 # if running on 10.5 or later, the deployment target defaults
14308 # to the OS version, if on x86, and 10.4, the deployment
14309 # target defaults to 10.4. Don't you love it?
14310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14312 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14313 10.[012]*)
14314 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14315 10.*)
14316 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14317 esac
14319 esac
14320 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14321 _lt_dar_single_mod='$single_module'
14323 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14324 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14325 else
14326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14328 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14329 _lt_dsymutil='~$DSYMUTIL $lib || :'
14330 else
14331 _lt_dsymutil=
14334 esac
14336 for ac_header in dlfcn.h
14337 do :
14338 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14339 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14340 cat >>confdefs.h <<_ACEOF
14341 #define HAVE_DLFCN_H 1
14342 _ACEOF
14345 done
14351 # Set options
14355 enable_dlopen=no
14358 enable_win32_dll=no
14361 # Check whether --enable-shared was given.
14362 if test "${enable_shared+set}" = set; then :
14363 enableval=$enable_shared; p=${PACKAGE-default}
14364 case $enableval in
14365 yes) enable_shared=yes ;;
14366 no) enable_shared=no ;;
14368 enable_shared=no
14369 # Look at the argument we got. We use all the common list separators.
14370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14371 for pkg in $enableval; do
14372 IFS="$lt_save_ifs"
14373 if test "X$pkg" = "X$p"; then
14374 enable_shared=yes
14376 done
14377 IFS="$lt_save_ifs"
14379 esac
14380 else
14381 enable_shared=yes
14392 # Check whether --enable-static was given.
14393 if test "${enable_static+set}" = set; then :
14394 enableval=$enable_static; p=${PACKAGE-default}
14395 case $enableval in
14396 yes) enable_static=yes ;;
14397 no) enable_static=no ;;
14399 enable_static=no
14400 # Look at the argument we got. We use all the common list separators.
14401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14402 for pkg in $enableval; do
14403 IFS="$lt_save_ifs"
14404 if test "X$pkg" = "X$p"; then
14405 enable_static=yes
14407 done
14408 IFS="$lt_save_ifs"
14410 esac
14411 else
14412 enable_static=yes
14424 # Check whether --with-pic was given.
14425 if test "${with_pic+set}" = set; then :
14426 withval=$with_pic; pic_mode="$withval"
14427 else
14428 pic_mode=default
14432 test -z "$pic_mode" && pic_mode=default
14440 # Check whether --enable-fast-install was given.
14441 if test "${enable_fast_install+set}" = set; then :
14442 enableval=$enable_fast_install; p=${PACKAGE-default}
14443 case $enableval in
14444 yes) enable_fast_install=yes ;;
14445 no) enable_fast_install=no ;;
14447 enable_fast_install=no
14448 # Look at the argument we got. We use all the common list separators.
14449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14450 for pkg in $enableval; do
14451 IFS="$lt_save_ifs"
14452 if test "X$pkg" = "X$p"; then
14453 enable_fast_install=yes
14455 done
14456 IFS="$lt_save_ifs"
14458 esac
14459 else
14460 enable_fast_install=yes
14473 # This can be used to rebuild libtool when needed
14474 LIBTOOL_DEPS="$ltmain"
14476 # Always use our own libtool.
14477 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14504 test -z "$LN_S" && LN_S="ln -s"
14519 if test -n "${ZSH_VERSION+set}" ; then
14520 setopt NO_GLOB_SUBST
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14524 $as_echo_n "checking for objdir... " >&6; }
14525 if test "${lt_cv_objdir+set}" = set; then :
14526 $as_echo_n "(cached) " >&6
14527 else
14528 rm -f .libs 2>/dev/null
14529 mkdir .libs 2>/dev/null
14530 if test -d .libs; then
14531 lt_cv_objdir=.libs
14532 else
14533 # MS-DOS does not allow filenames that begin with a dot.
14534 lt_cv_objdir=_libs
14536 rmdir .libs 2>/dev/null
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14539 $as_echo "$lt_cv_objdir" >&6; }
14540 objdir=$lt_cv_objdir
14546 cat >>confdefs.h <<_ACEOF
14547 #define LT_OBJDIR "$lt_cv_objdir/"
14548 _ACEOF
14553 case $host_os in
14554 aix3*)
14555 # AIX sometimes has problems with the GCC collect2 program. For some
14556 # reason, if we set the COLLECT_NAMES environment variable, the problems
14557 # vanish in a puff of smoke.
14558 if test "X${COLLECT_NAMES+set}" != Xset; then
14559 COLLECT_NAMES=
14560 export COLLECT_NAMES
14563 esac
14565 # Global variables:
14566 ofile=libtool
14567 can_build_shared=yes
14569 # All known linkers require a `.a' archive for static linking (except MSVC,
14570 # which needs '.lib').
14571 libext=a
14573 with_gnu_ld="$lt_cv_prog_gnu_ld"
14575 old_CC="$CC"
14576 old_CFLAGS="$CFLAGS"
14578 # Set sane defaults for various variables
14579 test -z "$CC" && CC=cc
14580 test -z "$LTCC" && LTCC=$CC
14581 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14582 test -z "$LD" && LD=ld
14583 test -z "$ac_objext" && ac_objext=o
14585 for cc_temp in $compiler""; do
14586 case $cc_temp in
14587 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14588 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14589 \-*) ;;
14590 *) break;;
14591 esac
14592 done
14593 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14596 # Only perform the check for file, if the check method requires it
14597 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14598 case $deplibs_check_method in
14599 file_magic*)
14600 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14602 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14603 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14604 $as_echo_n "(cached) " >&6
14605 else
14606 case $MAGIC_CMD in
14607 [\\/*] | ?:[\\/]*)
14608 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14611 lt_save_MAGIC_CMD="$MAGIC_CMD"
14612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14613 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14614 for ac_dir in $ac_dummy; do
14615 IFS="$lt_save_ifs"
14616 test -z "$ac_dir" && ac_dir=.
14617 if test -f $ac_dir/${ac_tool_prefix}file; then
14618 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14619 if test -n "$file_magic_test_file"; then
14620 case $deplibs_check_method in
14621 "file_magic "*)
14622 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14624 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14625 $EGREP "$file_magic_regex" > /dev/null; then
14627 else
14628 cat <<_LT_EOF 1>&2
14630 *** Warning: the command libtool uses to detect shared libraries,
14631 *** $file_magic_cmd, produces output that libtool cannot recognize.
14632 *** The result is that libtool may fail to recognize shared libraries
14633 *** as such. This will affect the creation of libtool libraries that
14634 *** depend on shared libraries, but programs linked with such libtool
14635 *** libraries will work regardless of this problem. Nevertheless, you
14636 *** may want to report the problem to your system manager and/or to
14637 *** bug-libtool@gnu.org
14639 _LT_EOF
14640 fi ;;
14641 esac
14643 break
14645 done
14646 IFS="$lt_save_ifs"
14647 MAGIC_CMD="$lt_save_MAGIC_CMD"
14649 esac
14652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14653 if test -n "$MAGIC_CMD"; then
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14655 $as_echo "$MAGIC_CMD" >&6; }
14656 else
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14658 $as_echo "no" >&6; }
14665 if test -z "$lt_cv_path_MAGIC_CMD"; then
14666 if test -n "$ac_tool_prefix"; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14668 $as_echo_n "checking for file... " >&6; }
14669 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14670 $as_echo_n "(cached) " >&6
14671 else
14672 case $MAGIC_CMD in
14673 [\\/*] | ?:[\\/]*)
14674 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14677 lt_save_MAGIC_CMD="$MAGIC_CMD"
14678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14679 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14680 for ac_dir in $ac_dummy; do
14681 IFS="$lt_save_ifs"
14682 test -z "$ac_dir" && ac_dir=.
14683 if test -f $ac_dir/file; then
14684 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14685 if test -n "$file_magic_test_file"; then
14686 case $deplibs_check_method in
14687 "file_magic "*)
14688 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14690 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14691 $EGREP "$file_magic_regex" > /dev/null; then
14693 else
14694 cat <<_LT_EOF 1>&2
14696 *** Warning: the command libtool uses to detect shared libraries,
14697 *** $file_magic_cmd, produces output that libtool cannot recognize.
14698 *** The result is that libtool may fail to recognize shared libraries
14699 *** as such. This will affect the creation of libtool libraries that
14700 *** depend on shared libraries, but programs linked with such libtool
14701 *** libraries will work regardless of this problem. Nevertheless, you
14702 *** may want to report the problem to your system manager and/or to
14703 *** bug-libtool@gnu.org
14705 _LT_EOF
14706 fi ;;
14707 esac
14709 break
14711 done
14712 IFS="$lt_save_ifs"
14713 MAGIC_CMD="$lt_save_MAGIC_CMD"
14715 esac
14718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14719 if test -n "$MAGIC_CMD"; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14721 $as_echo "$MAGIC_CMD" >&6; }
14722 else
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14724 $as_echo "no" >&6; }
14728 else
14729 MAGIC_CMD=:
14735 esac
14737 # Use C for the default configuration in the libtool script
14739 lt_save_CC="$CC"
14740 ac_ext=c
14741 ac_cpp='$CPP $CPPFLAGS'
14742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14747 # Source file extension for C test sources.
14748 ac_ext=c
14750 # Object file extension for compiled C test sources.
14751 objext=o
14752 objext=$objext
14754 # Code to be used in simple compile tests
14755 lt_simple_compile_test_code="int some_variable = 0;"
14757 # Code to be used in simple link tests
14758 lt_simple_link_test_code='int main(){return(0);}'
14766 # If no C compiler was specified, use CC.
14767 LTCC=${LTCC-"$CC"}
14769 # If no C compiler flags were specified, use CFLAGS.
14770 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14772 # Allow CC to be a program name with arguments.
14773 compiler=$CC
14775 # Save the default compiler, since it gets overwritten when the other
14776 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14777 compiler_DEFAULT=$CC
14779 # save warnings/boilerplate of simple test code
14780 ac_outfile=conftest.$ac_objext
14781 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14782 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14783 _lt_compiler_boilerplate=`cat conftest.err`
14784 $RM conftest*
14786 ac_outfile=conftest.$ac_objext
14787 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14788 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14789 _lt_linker_boilerplate=`cat conftest.err`
14790 $RM -r conftest*
14793 ## CAVEAT EMPTOR:
14794 ## There is no encapsulation within the following macros, do not change
14795 ## the running order or otherwise move them around unless you know exactly
14796 ## what you are doing...
14797 if test -n "$compiler"; then
14799 lt_prog_compiler_no_builtin_flag=
14801 if test "$GCC" = yes; then
14802 case $cc_basename in
14803 nvcc*)
14804 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14806 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14807 esac
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14810 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14811 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14812 $as_echo_n "(cached) " >&6
14813 else
14814 lt_cv_prog_compiler_rtti_exceptions=no
14815 ac_outfile=conftest.$ac_objext
14816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14817 lt_compiler_flag="-fno-rtti -fno-exceptions"
14818 # Insert the option either (1) after the last *FLAGS variable, or
14819 # (2) before a word containing "conftest.", or (3) at the end.
14820 # Note that $ac_compile itself does not contain backslashes and begins
14821 # with a dollar sign (not a hyphen), so the echo should work correctly.
14822 # The option is referenced via a variable to avoid confusing sed.
14823 lt_compile=`echo "$ac_compile" | $SED \
14824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14826 -e 's:$: $lt_compiler_flag:'`
14827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14828 (eval "$lt_compile" 2>conftest.err)
14829 ac_status=$?
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 if (exit $ac_status) && test -s "$ac_outfile"; then
14833 # The compiler can only warn and ignore the option if not recognized
14834 # So say no if there are warnings other than the usual output.
14835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14838 lt_cv_prog_compiler_rtti_exceptions=yes
14841 $RM conftest*
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14845 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14847 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14848 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14849 else
14860 lt_prog_compiler_wl=
14861 lt_prog_compiler_pic=
14862 lt_prog_compiler_static=
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14865 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14867 if test "$GCC" = yes; then
14868 lt_prog_compiler_wl='-Wl,'
14869 lt_prog_compiler_static='-static'
14871 case $host_os in
14872 aix*)
14873 # All AIX code is PIC.
14874 if test "$host_cpu" = ia64; then
14875 # AIX 5 now supports IA64 processor
14876 lt_prog_compiler_static='-Bstatic'
14878 lt_prog_compiler_pic='-fPIC'
14881 amigaos*)
14882 case $host_cpu in
14883 powerpc)
14884 # see comment about AmigaOS4 .so support
14885 lt_prog_compiler_pic='-fPIC'
14887 m68k)
14888 # FIXME: we need at least 68020 code to build shared libraries, but
14889 # adding the `-m68020' flag to GCC prevents building anything better,
14890 # like `-m68040'.
14891 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14893 esac
14896 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14897 # PIC is the default for these OSes.
14900 mingw* | cygwin* | pw32* | os2* | cegcc*)
14901 # This hack is so that the source file can tell whether it is being
14902 # built for inclusion in a dll (and should export symbols for example).
14903 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14904 # (--disable-auto-import) libraries
14905 lt_prog_compiler_pic='-DDLL_EXPORT'
14908 darwin* | rhapsody*)
14909 # PIC is the default on this platform
14910 # Common symbols not allowed in MH_DYLIB files
14911 lt_prog_compiler_pic='-fno-common'
14914 haiku*)
14915 # PIC is the default for Haiku.
14916 # The "-static" flag exists, but is broken.
14917 lt_prog_compiler_static=
14920 hpux*)
14921 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14922 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14923 # sets the default TLS model and affects inlining.
14924 case $host_cpu in
14925 hppa*64*)
14926 # +Z the default
14929 lt_prog_compiler_pic='-fPIC'
14931 esac
14934 interix[3-9]*)
14935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14936 # Instead, we relocate shared libraries at runtime.
14939 msdosdjgpp*)
14940 # Just because we use GCC doesn't mean we suddenly get shared libraries
14941 # on systems that don't support them.
14942 lt_prog_compiler_can_build_shared=no
14943 enable_shared=no
14946 *nto* | *qnx*)
14947 # QNX uses GNU C++, but need to define -shared option too, otherwise
14948 # it will coredump.
14949 lt_prog_compiler_pic='-fPIC -shared'
14952 sysv4*MP*)
14953 if test -d /usr/nec; then
14954 lt_prog_compiler_pic=-Kconform_pic
14959 lt_prog_compiler_pic='-fPIC'
14961 esac
14963 case $cc_basename in
14964 nvcc*) # Cuda Compiler Driver 2.2
14965 lt_prog_compiler_wl='-Xlinker '
14966 lt_prog_compiler_pic='-Xcompiler -fPIC'
14968 esac
14969 else
14970 # PORTME Check for flag to pass linker flags through the system compiler.
14971 case $host_os in
14972 aix*)
14973 lt_prog_compiler_wl='-Wl,'
14974 if test "$host_cpu" = ia64; then
14975 # AIX 5 now supports IA64 processor
14976 lt_prog_compiler_static='-Bstatic'
14977 else
14978 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14982 mingw* | cygwin* | pw32* | os2* | cegcc*)
14983 # This hack is so that the source file can tell whether it is being
14984 # built for inclusion in a dll (and should export symbols for example).
14985 lt_prog_compiler_pic='-DDLL_EXPORT'
14988 hpux9* | hpux10* | hpux11*)
14989 lt_prog_compiler_wl='-Wl,'
14990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14991 # not for PA HP-UX.
14992 case $host_cpu in
14993 hppa*64*|ia64*)
14994 # +Z the default
14997 lt_prog_compiler_pic='+Z'
14999 esac
15000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15001 lt_prog_compiler_static='${wl}-a ${wl}archive'
15004 irix5* | irix6* | nonstopux*)
15005 lt_prog_compiler_wl='-Wl,'
15006 # PIC (with -KPIC) is the default.
15007 lt_prog_compiler_static='-non_shared'
15010 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15011 case $cc_basename in
15012 # old Intel for x86_64 which still supported -KPIC.
15013 ecc*)
15014 lt_prog_compiler_wl='-Wl,'
15015 lt_prog_compiler_pic='-KPIC'
15016 lt_prog_compiler_static='-static'
15018 # icc used to be incompatible with GCC.
15019 # ICC 10 doesn't accept -KPIC any more.
15020 icc* | ifort*)
15021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_pic='-fPIC'
15023 lt_prog_compiler_static='-static'
15025 # Lahey Fortran 8.1.
15026 lf95*)
15027 lt_prog_compiler_wl='-Wl,'
15028 lt_prog_compiler_pic='--shared'
15029 lt_prog_compiler_static='--static'
15031 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15032 # Portland Group compilers (*not* the Pentium gcc compiler,
15033 # which looks to be a dead project)
15034 lt_prog_compiler_wl='-Wl,'
15035 lt_prog_compiler_pic='-fpic'
15036 lt_prog_compiler_static='-Bstatic'
15038 ccc*)
15039 lt_prog_compiler_wl='-Wl,'
15040 # All Alpha code is PIC.
15041 lt_prog_compiler_static='-non_shared'
15043 xl* | bgxl* | bgf* | mpixl*)
15044 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15045 lt_prog_compiler_wl='-Wl,'
15046 lt_prog_compiler_pic='-qpic'
15047 lt_prog_compiler_static='-qstaticlink'
15050 case `$CC -V 2>&1 | sed 5q` in
15051 *Sun\ F* | *Sun*Fortran*)
15052 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15053 lt_prog_compiler_pic='-KPIC'
15054 lt_prog_compiler_static='-Bstatic'
15055 lt_prog_compiler_wl=''
15057 *Sun\ C*)
15058 # Sun C 5.9
15059 lt_prog_compiler_pic='-KPIC'
15060 lt_prog_compiler_static='-Bstatic'
15061 lt_prog_compiler_wl='-Wl,'
15063 esac
15065 esac
15068 newsos6)
15069 lt_prog_compiler_pic='-KPIC'
15070 lt_prog_compiler_static='-Bstatic'
15073 *nto* | *qnx*)
15074 # QNX uses GNU C++, but need to define -shared option too, otherwise
15075 # it will coredump.
15076 lt_prog_compiler_pic='-fPIC -shared'
15079 osf3* | osf4* | osf5*)
15080 lt_prog_compiler_wl='-Wl,'
15081 # All OSF/1 code is PIC.
15082 lt_prog_compiler_static='-non_shared'
15085 rdos*)
15086 lt_prog_compiler_static='-non_shared'
15089 solaris*)
15090 lt_prog_compiler_pic='-KPIC'
15091 lt_prog_compiler_static='-Bstatic'
15092 case $cc_basename in
15093 f77* | f90* | f95*)
15094 lt_prog_compiler_wl='-Qoption ld ';;
15096 lt_prog_compiler_wl='-Wl,';;
15097 esac
15100 sunos4*)
15101 lt_prog_compiler_wl='-Qoption ld '
15102 lt_prog_compiler_pic='-PIC'
15103 lt_prog_compiler_static='-Bstatic'
15106 sysv4 | sysv4.2uw2* | sysv4.3*)
15107 lt_prog_compiler_wl='-Wl,'
15108 lt_prog_compiler_pic='-KPIC'
15109 lt_prog_compiler_static='-Bstatic'
15112 sysv4*MP*)
15113 if test -d /usr/nec ;then
15114 lt_prog_compiler_pic='-Kconform_pic'
15115 lt_prog_compiler_static='-Bstatic'
15119 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='-KPIC'
15122 lt_prog_compiler_static='-Bstatic'
15125 unicos*)
15126 lt_prog_compiler_wl='-Wl,'
15127 lt_prog_compiler_can_build_shared=no
15130 uts4*)
15131 lt_prog_compiler_pic='-pic'
15132 lt_prog_compiler_static='-Bstatic'
15136 lt_prog_compiler_can_build_shared=no
15138 esac
15141 case $host_os in
15142 # For platforms which do not support PIC, -DPIC is meaningless:
15143 *djgpp*)
15144 lt_prog_compiler_pic=
15147 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15149 esac
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15151 $as_echo "$lt_prog_compiler_pic" >&6; }
15159 # Check to make sure the PIC flag actually works.
15161 if test -n "$lt_prog_compiler_pic"; then
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15163 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15164 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15165 $as_echo_n "(cached) " >&6
15166 else
15167 lt_cv_prog_compiler_pic_works=no
15168 ac_outfile=conftest.$ac_objext
15169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15170 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15171 # Insert the option either (1) after the last *FLAGS variable, or
15172 # (2) before a word containing "conftest.", or (3) at the end.
15173 # Note that $ac_compile itself does not contain backslashes and begins
15174 # with a dollar sign (not a hyphen), so the echo should work correctly.
15175 # The option is referenced via a variable to avoid confusing sed.
15176 lt_compile=`echo "$ac_compile" | $SED \
15177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15179 -e 's:$: $lt_compiler_flag:'`
15180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15181 (eval "$lt_compile" 2>conftest.err)
15182 ac_status=$?
15183 cat conftest.err >&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 if (exit $ac_status) && test -s "$ac_outfile"; then
15186 # The compiler can only warn and ignore the option if not recognized
15187 # So say no if there are warnings other than the usual output.
15188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15190 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15191 lt_cv_prog_compiler_pic_works=yes
15194 $RM conftest*
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15198 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15200 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15201 case $lt_prog_compiler_pic in
15202 "" | " "*) ;;
15203 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15204 esac
15205 else
15206 lt_prog_compiler_pic=
15207 lt_prog_compiler_can_build_shared=no
15218 # Check to make sure the static flag actually works.
15220 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15222 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15223 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15224 $as_echo_n "(cached) " >&6
15225 else
15226 lt_cv_prog_compiler_static_works=no
15227 save_LDFLAGS="$LDFLAGS"
15228 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15229 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15230 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15231 # The linker can only warn and ignore the option if not recognized
15232 # So say no if there are warnings
15233 if test -s conftest.err; then
15234 # Append any errors to the config.log.
15235 cat conftest.err 1>&5
15236 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15238 if diff conftest.exp conftest.er2 >/dev/null; then
15239 lt_cv_prog_compiler_static_works=yes
15241 else
15242 lt_cv_prog_compiler_static_works=yes
15245 $RM -r conftest*
15246 LDFLAGS="$save_LDFLAGS"
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15250 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15252 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15254 else
15255 lt_prog_compiler_static=
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15265 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15266 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15267 $as_echo_n "(cached) " >&6
15268 else
15269 lt_cv_prog_compiler_c_o=no
15270 $RM -r conftest 2>/dev/null
15271 mkdir conftest
15272 cd conftest
15273 mkdir out
15274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15276 lt_compiler_flag="-o out/conftest2.$ac_objext"
15277 # Insert the option either (1) after the last *FLAGS variable, or
15278 # (2) before a word containing "conftest.", or (3) at the end.
15279 # Note that $ac_compile itself does not contain backslashes and begins
15280 # with a dollar sign (not a hyphen), so the echo should work correctly.
15281 lt_compile=`echo "$ac_compile" | $SED \
15282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15284 -e 's:$: $lt_compiler_flag:'`
15285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15286 (eval "$lt_compile" 2>out/conftest.err)
15287 ac_status=$?
15288 cat out/conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15291 then
15292 # The compiler can only warn and ignore the option if not recognized
15293 # So say no if there are warnings
15294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15297 lt_cv_prog_compiler_c_o=yes
15300 chmod u+w . 2>&5
15301 $RM conftest*
15302 # SGI C++ compiler will create directory out/ii_files/ for
15303 # template instantiation
15304 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15305 $RM out/* && rmdir out
15306 cd ..
15307 $RM -r conftest
15308 $RM conftest*
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15312 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15320 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15321 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15322 $as_echo_n "(cached) " >&6
15323 else
15324 lt_cv_prog_compiler_c_o=no
15325 $RM -r conftest 2>/dev/null
15326 mkdir conftest
15327 cd conftest
15328 mkdir out
15329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15331 lt_compiler_flag="-o out/conftest2.$ac_objext"
15332 # Insert the option either (1) after the last *FLAGS variable, or
15333 # (2) before a word containing "conftest.", or (3) at the end.
15334 # Note that $ac_compile itself does not contain backslashes and begins
15335 # with a dollar sign (not a hyphen), so the echo should work correctly.
15336 lt_compile=`echo "$ac_compile" | $SED \
15337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15339 -e 's:$: $lt_compiler_flag:'`
15340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15341 (eval "$lt_compile" 2>out/conftest.err)
15342 ac_status=$?
15343 cat out/conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15346 then
15347 # The compiler can only warn and ignore the option if not recognized
15348 # So say no if there are warnings
15349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15350 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15351 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15352 lt_cv_prog_compiler_c_o=yes
15355 chmod u+w . 2>&5
15356 $RM conftest*
15357 # SGI C++ compiler will create directory out/ii_files/ for
15358 # template instantiation
15359 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15360 $RM out/* && rmdir out
15361 cd ..
15362 $RM -r conftest
15363 $RM conftest*
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15367 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15372 hard_links="nottested"
15373 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15374 # do not overwrite the value of need_locks provided by the user
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15376 $as_echo_n "checking if we can lock with hard links... " >&6; }
15377 hard_links=yes
15378 $RM conftest*
15379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15380 touch conftest.a
15381 ln conftest.a conftest.b 2>&5 || hard_links=no
15382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15384 $as_echo "$hard_links" >&6; }
15385 if test "$hard_links" = no; then
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15387 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15388 need_locks=warn
15390 else
15391 need_locks=no
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15400 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15402 runpath_var=
15403 allow_undefined_flag=
15404 always_export_symbols=no
15405 archive_cmds=
15406 archive_expsym_cmds=
15407 compiler_needs_object=no
15408 enable_shared_with_static_runtimes=no
15409 export_dynamic_flag_spec=
15410 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15411 hardcode_automatic=no
15412 hardcode_direct=no
15413 hardcode_direct_absolute=no
15414 hardcode_libdir_flag_spec=
15415 hardcode_libdir_flag_spec_ld=
15416 hardcode_libdir_separator=
15417 hardcode_minus_L=no
15418 hardcode_shlibpath_var=unsupported
15419 inherit_rpath=no
15420 link_all_deplibs=unknown
15421 module_cmds=
15422 module_expsym_cmds=
15423 old_archive_from_new_cmds=
15424 old_archive_from_expsyms_cmds=
15425 thread_safe_flag_spec=
15426 whole_archive_flag_spec=
15427 # include_expsyms should be a list of space-separated symbols to be *always*
15428 # included in the symbol list
15429 include_expsyms=
15430 # exclude_expsyms can be an extended regexp of symbols to exclude
15431 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15432 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15433 # as well as any symbol that contains `d'.
15434 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15435 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15436 # platforms (ab)use it in PIC code, but their linkers get confused if
15437 # the symbol is explicitly referenced. Since portable code cannot
15438 # rely on this symbol name, it's probably fine to never include it in
15439 # preloaded symbol tables.
15440 # Exclude shared library initialization/finalization symbols.
15441 extract_expsyms_cmds=
15443 case $host_os in
15444 cygwin* | mingw* | pw32* | cegcc*)
15445 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15446 # When not using gcc, we currently assume that we are using
15447 # Microsoft Visual C++.
15448 if test "$GCC" != yes; then
15449 with_gnu_ld=no
15452 interix*)
15453 # we just hope/assume this is gcc and not c89 (= MSVC++)
15454 with_gnu_ld=yes
15456 openbsd*)
15457 with_gnu_ld=no
15459 esac
15461 ld_shlibs=yes
15463 # On some targets, GNU ld is compatible enough with the native linker
15464 # that we're better off using the native interface for both.
15465 lt_use_gnu_ld_interface=no
15466 if test "$with_gnu_ld" = yes; then
15467 case $host_os in
15468 aix*)
15469 # The AIX port of GNU ld has always aspired to compatibility
15470 # with the native linker. However, as the warning in the GNU ld
15471 # block says, versions before 2.19.5* couldn't really create working
15472 # shared libraries, regardless of the interface used.
15473 case `$LD -v 2>&1` in
15474 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15475 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15476 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15478 lt_use_gnu_ld_interface=yes
15480 esac
15483 lt_use_gnu_ld_interface=yes
15485 esac
15488 if test "$lt_use_gnu_ld_interface" = yes; then
15489 # If archive_cmds runs LD, not CC, wlarc should be empty
15490 wlarc='${wl}'
15492 # Set some defaults for GNU ld with shared library support. These
15493 # are reset later if shared libraries are not supported. Putting them
15494 # here allows them to be overridden if necessary.
15495 runpath_var=LD_RUN_PATH
15496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15497 export_dynamic_flag_spec='${wl}--export-dynamic'
15498 # ancient GNU ld didn't support --whole-archive et. al.
15499 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15500 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15501 else
15502 whole_archive_flag_spec=
15504 supports_anon_versioning=no
15505 case `$LD -v 2>&1` in
15506 *GNU\ gold*) supports_anon_versioning=yes ;;
15507 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15508 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15509 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15510 *\ 2.11.*) ;; # other 2.11 versions
15511 *) supports_anon_versioning=yes ;;
15512 esac
15514 # See if GNU ld supports shared libraries.
15515 case $host_os in
15516 aix[3-9]*)
15517 # On AIX/PPC, the GNU linker is very broken
15518 if test "$host_cpu" != ia64; then
15519 ld_shlibs=no
15520 cat <<_LT_EOF 1>&2
15522 *** Warning: the GNU linker, at least up to release 2.19, is reported
15523 *** to be unable to reliably create shared libraries on AIX.
15524 *** Therefore, libtool is disabling shared libraries support. If you
15525 *** really care for shared libraries, you may want to install binutils
15526 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15527 *** You will then need to restart the configuration process.
15529 _LT_EOF
15533 amigaos*)
15534 case $host_cpu in
15535 powerpc)
15536 # see comment about AmigaOS4 .so support
15537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538 archive_expsym_cmds=''
15540 m68k)
15541 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)'
15542 hardcode_libdir_flag_spec='-L$libdir'
15543 hardcode_minus_L=yes
15545 esac
15548 beos*)
15549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15550 allow_undefined_flag=unsupported
15551 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15552 # support --undefined. This deserves some investigation. FIXME
15553 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15554 else
15555 ld_shlibs=no
15559 cygwin* | mingw* | pw32* | cegcc*)
15560 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15561 # as there is no search path for DLLs.
15562 hardcode_libdir_flag_spec='-L$libdir'
15563 export_dynamic_flag_spec='${wl}--export-all-symbols'
15564 allow_undefined_flag=unsupported
15565 always_export_symbols=no
15566 enable_shared_with_static_runtimes=yes
15567 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15569 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15571 # If the export-symbols file already is a .def file (1st line
15572 # is EXPORTS), use it as is; otherwise, prepend...
15573 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15574 cp $export_symbols $output_objdir/$soname.def;
15575 else
15576 echo EXPORTS > $output_objdir/$soname.def;
15577 cat $export_symbols >> $output_objdir/$soname.def;
15579 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15580 else
15581 ld_shlibs=no
15585 haiku*)
15586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15587 link_all_deplibs=yes
15590 interix[3-9]*)
15591 hardcode_direct=no
15592 hardcode_shlibpath_var=no
15593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15594 export_dynamic_flag_spec='${wl}-E'
15595 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15596 # Instead, shared libraries are loaded at an image base (0x10000000 by
15597 # default) and relocated if they conflict, which is a slow very memory
15598 # consuming and fragmenting process. To avoid this, we pick a random,
15599 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15600 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15602 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'
15605 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15606 tmp_diet=no
15607 if test "$host_os" = linux-dietlibc; then
15608 case $cc_basename in
15609 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15610 esac
15612 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15613 && test "$tmp_diet" = no
15614 then
15615 tmp_addflag=
15616 tmp_sharedflag='-shared'
15617 case $cc_basename,$host_cpu in
15618 pgcc*) # Portland Group C compiler
15619 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'
15620 tmp_addflag=' $pic_flag'
15622 pgf77* | pgf90* | pgf95* | pgfortran*)
15623 # Portland Group f77 and f90 compilers
15624 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'
15625 tmp_addflag=' $pic_flag -Mnomain' ;;
15626 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15627 tmp_addflag=' -i_dynamic' ;;
15628 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15629 tmp_addflag=' -i_dynamic -nofor_main' ;;
15630 ifc* | ifort*) # Intel Fortran compiler
15631 tmp_addflag=' -nofor_main' ;;
15632 lf95*) # Lahey Fortran 8.1
15633 whole_archive_flag_spec=
15634 tmp_sharedflag='--shared' ;;
15635 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15636 tmp_sharedflag='-qmkshrobj'
15637 tmp_addflag= ;;
15638 nvcc*) # Cuda Compiler Driver 2.2
15639 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'
15640 compiler_needs_object=yes
15642 esac
15643 case `$CC -V 2>&1 | sed 5q` in
15644 *Sun\ C*) # Sun C 5.9
15645 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'
15646 compiler_needs_object=yes
15647 tmp_sharedflag='-G' ;;
15648 *Sun\ F*) # Sun Fortran 8.3
15649 tmp_sharedflag='-G' ;;
15650 esac
15651 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15653 if test "x$supports_anon_versioning" = xyes; then
15654 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15656 echo "local: *; };" >> $output_objdir/$libname.ver~
15657 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15660 case $cc_basename in
15661 xlf* | bgf* | bgxlf* | mpixlf*)
15662 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15663 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15664 hardcode_libdir_flag_spec=
15665 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15666 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15667 if test "x$supports_anon_versioning" = xyes; then
15668 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15670 echo "local: *; };" >> $output_objdir/$libname.ver~
15671 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15674 esac
15675 else
15676 ld_shlibs=no
15680 netbsd*)
15681 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15682 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15683 wlarc=
15684 else
15685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15690 solaris*)
15691 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15692 ld_shlibs=no
15693 cat <<_LT_EOF 1>&2
15695 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15696 *** create shared libraries on Solaris systems. Therefore, libtool
15697 *** is disabling shared libraries support. We urge you to upgrade GNU
15698 *** binutils to release 2.9.1 or newer. Another option is to modify
15699 *** your PATH or compiler configuration so that the native linker is
15700 *** used, and then restart.
15702 _LT_EOF
15703 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15706 else
15707 ld_shlibs=no
15711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15712 case `$LD -v 2>&1` in
15713 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15714 ld_shlibs=no
15715 cat <<_LT_EOF 1>&2
15717 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15718 *** reliably create shared libraries on SCO systems. Therefore, libtool
15719 *** is disabling shared libraries support. We urge you to upgrade GNU
15720 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15721 *** your PATH or compiler configuration so that the native linker is
15722 *** used, and then restart.
15724 _LT_EOF
15727 # For security reasons, it is highly recommended that you always
15728 # use absolute paths for naming shared libraries, and exclude the
15729 # DT_RUNPATH tag from executables and libraries. But doing so
15730 # requires that you compile everything twice, which is a pain.
15731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15735 else
15736 ld_shlibs=no
15739 esac
15742 sunos4*)
15743 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15744 wlarc=
15745 hardcode_direct=yes
15746 hardcode_shlibpath_var=no
15750 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15753 else
15754 ld_shlibs=no
15757 esac
15759 if test "$ld_shlibs" = no; then
15760 runpath_var=
15761 hardcode_libdir_flag_spec=
15762 export_dynamic_flag_spec=
15763 whole_archive_flag_spec=
15765 else
15766 # PORTME fill in a description of your system's linker (not GNU ld)
15767 case $host_os in
15768 aix3*)
15769 allow_undefined_flag=unsupported
15770 always_export_symbols=yes
15771 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'
15772 # Note: this linker hardcodes the directories in LIBPATH if there
15773 # are no directories specified by -L.
15774 hardcode_minus_L=yes
15775 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15776 # Neither direct hardcoding nor static linking is supported with a
15777 # broken collect2.
15778 hardcode_direct=unsupported
15782 aix[4-9]*)
15783 if test "$host_cpu" = ia64; then
15784 # On IA64, the linker does run time linking by default, so we don't
15785 # have to do anything special.
15786 aix_use_runtimelinking=no
15787 exp_sym_flag='-Bexport'
15788 no_entry_flag=""
15789 else
15790 # If we're using GNU nm, then we don't want the "-C" option.
15791 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15792 # Also, AIX nm treats weak defined symbols like other global
15793 # defined symbols, whereas GNU nm marks them as "W".
15794 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15795 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'
15796 else
15797 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'
15799 aix_use_runtimelinking=no
15801 # Test if we are trying to use run time linking or normal
15802 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15803 # need to do runtime linking.
15804 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15805 for ld_flag in $LDFLAGS; do
15806 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15807 aix_use_runtimelinking=yes
15808 break
15810 done
15812 esac
15814 exp_sym_flag='-bexport'
15815 no_entry_flag='-bnoentry'
15818 # When large executables or shared objects are built, AIX ld can
15819 # have problems creating the table of contents. If linking a library
15820 # or program results in "error TOC overflow" add -mminimal-toc to
15821 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15822 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15824 archive_cmds=''
15825 hardcode_direct=yes
15826 hardcode_direct_absolute=yes
15827 hardcode_libdir_separator=':'
15828 link_all_deplibs=yes
15829 file_list_spec='${wl}-f,'
15831 if test "$GCC" = yes; then
15832 case $host_os in aix4.[012]|aix4.[012].*)
15833 # We only want to do this on AIX 4.2 and lower, the check
15834 # below for broken collect2 doesn't work under 4.3+
15835 collect2name=`${CC} -print-prog-name=collect2`
15836 if test -f "$collect2name" &&
15837 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15838 then
15839 # We have reworked collect2
15841 else
15842 # We have old collect2
15843 hardcode_direct=unsupported
15844 # It fails to find uninstalled libraries when the uninstalled
15845 # path is not listed in the libpath. Setting hardcode_minus_L
15846 # to unsupported forces relinking
15847 hardcode_minus_L=yes
15848 hardcode_libdir_flag_spec='-L$libdir'
15849 hardcode_libdir_separator=
15852 esac
15853 shared_flag='-shared'
15854 if test "$aix_use_runtimelinking" = yes; then
15855 shared_flag="$shared_flag "'${wl}-G'
15857 else
15858 # not using gcc
15859 if test "$host_cpu" = ia64; then
15860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15861 # chokes on -Wl,-G. The following line is correct:
15862 shared_flag='-G'
15863 else
15864 if test "$aix_use_runtimelinking" = yes; then
15865 shared_flag='${wl}-G'
15866 else
15867 shared_flag='${wl}-bM:SRE'
15872 export_dynamic_flag_spec='${wl}-bexpall'
15873 # It seems that -bexpall does not export symbols beginning with
15874 # underscore (_), so it is better to generate a list of symbols to export.
15875 always_export_symbols=yes
15876 if test "$aix_use_runtimelinking" = yes; then
15877 # Warning - without using the other runtime loading flags (-brtl),
15878 # -berok will link without error, but may produce a broken library.
15879 allow_undefined_flag='-berok'
15880 # Determine the default libpath from the value encoded in an
15881 # empty executable.
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15886 main ()
15890 return 0;
15892 _ACEOF
15893 if ac_fn_c_try_link "$LINENO"; then :
15895 lt_aix_libpath_sed='
15896 /Import File Strings/,/^$/ {
15897 /^0/ {
15898 s/^0 *\(.*\)$/\1/
15902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15903 # Check for a 64-bit object if we didn't find anything.
15904 if test -z "$aix_libpath"; then
15905 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15908 rm -f core conftest.err conftest.$ac_objext \
15909 conftest$ac_exeext conftest.$ac_ext
15910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15913 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"
15914 else
15915 if test "$host_cpu" = ia64; then
15916 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15917 allow_undefined_flag="-z nodefs"
15918 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"
15919 else
15920 # Determine the default libpath from the value encoded in an
15921 # empty executable.
15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15926 main ()
15930 return 0;
15932 _ACEOF
15933 if ac_fn_c_try_link "$LINENO"; then :
15935 lt_aix_libpath_sed='
15936 /Import File Strings/,/^$/ {
15937 /^0/ {
15938 s/^0 *\(.*\)$/\1/
15942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15943 # Check for a 64-bit object if we didn't find anything.
15944 if test -z "$aix_libpath"; then
15945 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15948 rm -f core conftest.err conftest.$ac_objext \
15949 conftest$ac_exeext conftest.$ac_ext
15950 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15952 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15953 # Warning - without using the other run time loading flags,
15954 # -berok will link without error, but may produce a broken library.
15955 no_undefined_flag=' ${wl}-bernotok'
15956 allow_undefined_flag=' ${wl}-berok'
15957 if test "$with_gnu_ld" = yes; then
15958 # We only use this code for GNU lds that support --whole-archive.
15959 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15960 else
15961 # Exported symbols can be pulled into shared objects from archives
15962 whole_archive_flag_spec='$convenience'
15964 archive_cmds_need_lc=yes
15965 # This is similar to how AIX traditionally builds its shared libraries.
15966 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'
15971 amigaos*)
15972 case $host_cpu in
15973 powerpc)
15974 # see comment about AmigaOS4 .so support
15975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976 archive_expsym_cmds=''
15978 m68k)
15979 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)'
15980 hardcode_libdir_flag_spec='-L$libdir'
15981 hardcode_minus_L=yes
15983 esac
15986 bsdi[45]*)
15987 export_dynamic_flag_spec=-rdynamic
15990 cygwin* | mingw* | pw32* | cegcc*)
15991 # When not using gcc, we currently assume that we are using
15992 # Microsoft Visual C++.
15993 # hardcode_libdir_flag_spec is actually meaningless, as there is
15994 # no search path for DLLs.
15995 hardcode_libdir_flag_spec=' '
15996 allow_undefined_flag=unsupported
15997 # Tell ltmain to make .lib files, not .a files.
15998 libext=lib
15999 # Tell ltmain to make .dll files, not .so files.
16000 shrext_cmds=".dll"
16001 # FIXME: Setting linknames here is a bad hack.
16002 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16003 # The linker will automatically build a .lib file if we build a DLL.
16004 old_archive_from_new_cmds='true'
16005 # FIXME: Should let the user specify the lib program.
16006 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16007 fix_srcfile_path='`cygpath -w "$srcfile"`'
16008 enable_shared_with_static_runtimes=yes
16011 darwin* | rhapsody*)
16014 archive_cmds_need_lc=no
16015 hardcode_direct=no
16016 hardcode_automatic=yes
16017 hardcode_shlibpath_var=unsupported
16018 if test "$lt_cv_ld_force_load" = "yes"; then
16019 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\"`'
16020 else
16021 whole_archive_flag_spec=''
16023 link_all_deplibs=yes
16024 allow_undefined_flag="$_lt_dar_allow_undefined"
16025 case $cc_basename in
16026 ifort*) _lt_dar_can_shared=yes ;;
16027 *) _lt_dar_can_shared=$GCC ;;
16028 esac
16029 if test "$_lt_dar_can_shared" = "yes"; then
16030 output_verbose_link_cmd=func_echo_all
16031 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16032 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16033 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}"
16034 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}"
16036 else
16037 ld_shlibs=no
16042 dgux*)
16043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044 hardcode_libdir_flag_spec='-L$libdir'
16045 hardcode_shlibpath_var=no
16048 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16049 # support. Future versions do this automatically, but an explicit c++rt0.o
16050 # does not break anything, and helps significantly (at the cost of a little
16051 # extra space).
16052 freebsd2.2*)
16053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16054 hardcode_libdir_flag_spec='-R$libdir'
16055 hardcode_direct=yes
16056 hardcode_shlibpath_var=no
16059 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16060 freebsd2.*)
16061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16062 hardcode_direct=yes
16063 hardcode_minus_L=yes
16064 hardcode_shlibpath_var=no
16067 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16068 freebsd* | dragonfly*)
16069 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16070 hardcode_libdir_flag_spec='-R$libdir'
16071 hardcode_direct=yes
16072 hardcode_shlibpath_var=no
16075 hpux9*)
16076 if test "$GCC" = yes; then
16077 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'
16078 else
16079 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'
16081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16082 hardcode_libdir_separator=:
16083 hardcode_direct=yes
16085 # hardcode_minus_L: Not really in the search PATH,
16086 # but as the default location of the library.
16087 hardcode_minus_L=yes
16088 export_dynamic_flag_spec='${wl}-E'
16091 hpux10*)
16092 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16094 else
16095 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16097 if test "$with_gnu_ld" = no; then
16098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16099 hardcode_libdir_flag_spec_ld='+b $libdir'
16100 hardcode_libdir_separator=:
16101 hardcode_direct=yes
16102 hardcode_direct_absolute=yes
16103 export_dynamic_flag_spec='${wl}-E'
16104 # hardcode_minus_L: Not really in the search PATH,
16105 # but as the default location of the library.
16106 hardcode_minus_L=yes
16110 hpux11*)
16111 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16112 case $host_cpu in
16113 hppa*64*)
16114 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16116 ia64*)
16117 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16122 esac
16123 else
16124 case $host_cpu in
16125 hppa*64*)
16126 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16128 ia64*)
16129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16133 # Older versions of the 11.00 compiler do not understand -b yet
16134 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16136 $as_echo_n "checking if $CC understands -b... " >&6; }
16137 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16138 $as_echo_n "(cached) " >&6
16139 else
16140 lt_cv_prog_compiler__b=no
16141 save_LDFLAGS="$LDFLAGS"
16142 LDFLAGS="$LDFLAGS -b"
16143 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16144 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16145 # The linker can only warn and ignore the option if not recognized
16146 # So say no if there are warnings
16147 if test -s conftest.err; then
16148 # Append any errors to the config.log.
16149 cat conftest.err 1>&5
16150 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16152 if diff conftest.exp conftest.er2 >/dev/null; then
16153 lt_cv_prog_compiler__b=yes
16155 else
16156 lt_cv_prog_compiler__b=yes
16159 $RM -r conftest*
16160 LDFLAGS="$save_LDFLAGS"
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16164 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16166 if test x"$lt_cv_prog_compiler__b" = xyes; then
16167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16168 else
16169 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16173 esac
16175 if test "$with_gnu_ld" = no; then
16176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16177 hardcode_libdir_separator=:
16179 case $host_cpu in
16180 hppa*64*|ia64*)
16181 hardcode_direct=no
16182 hardcode_shlibpath_var=no
16185 hardcode_direct=yes
16186 hardcode_direct_absolute=yes
16187 export_dynamic_flag_spec='${wl}-E'
16189 # hardcode_minus_L: Not really in the search PATH,
16190 # but as the default location of the library.
16191 hardcode_minus_L=yes
16193 esac
16197 irix5* | irix6* | nonstopux*)
16198 if test "$GCC" = yes; then
16199 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'
16200 # Try to use the -exported_symbol ld option, if it does not
16201 # work, assume that -exports_file does not work either and
16202 # implicitly export all symbols.
16203 save_LDFLAGS="$LDFLAGS"
16204 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 int foo(void) {}
16208 _ACEOF
16209 if ac_fn_c_try_link "$LINENO"; then :
16210 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'
16213 rm -f core conftest.err conftest.$ac_objext \
16214 conftest$ac_exeext conftest.$ac_ext
16215 LDFLAGS="$save_LDFLAGS"
16216 else
16217 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'
16218 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'
16220 archive_cmds_need_lc='no'
16221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16222 hardcode_libdir_separator=:
16223 inherit_rpath=yes
16224 link_all_deplibs=yes
16227 netbsd*)
16228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16230 else
16231 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16233 hardcode_libdir_flag_spec='-R$libdir'
16234 hardcode_direct=yes
16235 hardcode_shlibpath_var=no
16238 newsos6)
16239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240 hardcode_direct=yes
16241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16242 hardcode_libdir_separator=:
16243 hardcode_shlibpath_var=no
16246 *nto* | *qnx*)
16249 openbsd*)
16250 if test -f /usr/libexec/ld.so; then
16251 hardcode_direct=yes
16252 hardcode_shlibpath_var=no
16253 hardcode_direct_absolute=yes
16254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16256 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16258 export_dynamic_flag_spec='${wl}-E'
16259 else
16260 case $host_os in
16261 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16263 hardcode_libdir_flag_spec='-R$libdir'
16266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16269 esac
16271 else
16272 ld_shlibs=no
16276 os2*)
16277 hardcode_libdir_flag_spec='-L$libdir'
16278 hardcode_minus_L=yes
16279 allow_undefined_flag=unsupported
16280 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'
16281 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16284 osf3*)
16285 if test "$GCC" = yes; then
16286 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16287 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'
16288 else
16289 allow_undefined_flag=' -expect_unresolved \*'
16290 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'
16292 archive_cmds_need_lc='no'
16293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16294 hardcode_libdir_separator=:
16297 osf4* | osf5*) # as osf3* with the addition of -msym flag
16298 if test "$GCC" = yes; then
16299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16300 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'
16301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16302 else
16303 allow_undefined_flag=' -expect_unresolved \*'
16304 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'
16305 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~
16306 $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'
16308 # Both c and cxx compiler support -rpath directly
16309 hardcode_libdir_flag_spec='-rpath $libdir'
16311 archive_cmds_need_lc='no'
16312 hardcode_libdir_separator=:
16315 solaris*)
16316 no_undefined_flag=' -z defs'
16317 if test "$GCC" = yes; then
16318 wlarc='${wl}'
16319 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16320 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16321 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16322 else
16323 case `$CC -V 2>&1` in
16324 *"Compilers 5.0"*)
16325 wlarc=''
16326 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16331 wlarc='${wl}'
16332 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16334 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16336 esac
16338 hardcode_libdir_flag_spec='-R$libdir'
16339 hardcode_shlibpath_var=no
16340 case $host_os in
16341 solaris2.[0-5] | solaris2.[0-5].*) ;;
16343 # The compiler driver will combine and reorder linker options,
16344 # but understands `-z linker_flag'. GCC discards it without `$wl',
16345 # but is careful enough not to reorder.
16346 # Supported since Solaris 2.6 (maybe 2.5.1?)
16347 if test "$GCC" = yes; then
16348 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16349 else
16350 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16353 esac
16354 link_all_deplibs=yes
16357 sunos4*)
16358 if test "x$host_vendor" = xsequent; then
16359 # Use $CC to link under sequent, because it throws in some extra .o
16360 # files that make .init and .fini sections work.
16361 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16362 else
16363 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16365 hardcode_libdir_flag_spec='-L$libdir'
16366 hardcode_direct=yes
16367 hardcode_minus_L=yes
16368 hardcode_shlibpath_var=no
16371 sysv4)
16372 case $host_vendor in
16373 sni)
16374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16375 hardcode_direct=yes # is this really true???
16377 siemens)
16378 ## LD is ld it makes a PLAMLIB
16379 ## CC just makes a GrossModule.
16380 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16381 reload_cmds='$CC -r -o $output$reload_objs'
16382 hardcode_direct=no
16384 motorola)
16385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16386 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16388 esac
16389 runpath_var='LD_RUN_PATH'
16390 hardcode_shlibpath_var=no
16393 sysv4.3*)
16394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16395 hardcode_shlibpath_var=no
16396 export_dynamic_flag_spec='-Bexport'
16399 sysv4*MP*)
16400 if test -d /usr/nec; then
16401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_shlibpath_var=no
16403 runpath_var=LD_RUN_PATH
16404 hardcode_runpath_var=yes
16405 ld_shlibs=yes
16409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16410 no_undefined_flag='${wl}-z,text'
16411 archive_cmds_need_lc=no
16412 hardcode_shlibpath_var=no
16413 runpath_var='LD_RUN_PATH'
16415 if test "$GCC" = yes; then
16416 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16417 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16418 else
16419 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16420 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16424 sysv5* | sco3.2v5* | sco5v6*)
16425 # Note: We can NOT use -z defs as we might desire, because we do not
16426 # link with -lc, and that would cause any symbols used from libc to
16427 # always be unresolved, which means just about no library would
16428 # ever link correctly. If we're not using GNU ld we use -z text
16429 # though, which does catch some bad symbols but isn't as heavy-handed
16430 # as -z defs.
16431 no_undefined_flag='${wl}-z,text'
16432 allow_undefined_flag='${wl}-z,nodefs'
16433 archive_cmds_need_lc=no
16434 hardcode_shlibpath_var=no
16435 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16436 hardcode_libdir_separator=':'
16437 link_all_deplibs=yes
16438 export_dynamic_flag_spec='${wl}-Bexport'
16439 runpath_var='LD_RUN_PATH'
16441 if test "$GCC" = yes; then
16442 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16443 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16444 else
16445 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16446 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16450 uts4*)
16451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16452 hardcode_libdir_flag_spec='-L$libdir'
16453 hardcode_shlibpath_var=no
16457 ld_shlibs=no
16459 esac
16461 if test x$host_vendor = xsni; then
16462 case $host in
16463 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16464 export_dynamic_flag_spec='${wl}-Blargedynsym'
16466 esac
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16471 $as_echo "$ld_shlibs" >&6; }
16472 test "$ld_shlibs" = no && can_build_shared=no
16474 with_gnu_ld=$with_gnu_ld
16491 # Do we need to explicitly link libc?
16493 case "x$archive_cmds_need_lc" in
16494 x|xyes)
16495 # Assume -lc should be added
16496 archive_cmds_need_lc=yes
16498 if test "$enable_shared" = yes && test "$GCC" = yes; then
16499 case $archive_cmds in
16500 *'~'*)
16501 # FIXME: we may have to deal with multi-command sequences.
16503 '$CC '*)
16504 # Test whether the compiler implicitly links with -lc since on some
16505 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16506 # to ld, don't add -lc before -lgcc.
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16508 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16509 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16510 $as_echo_n "(cached) " >&6
16511 else
16512 $RM conftest*
16513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16516 (eval $ac_compile) 2>&5
16517 ac_status=$?
16518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16519 test $ac_status = 0; } 2>conftest.err; then
16520 soname=conftest
16521 lib=conftest
16522 libobjs=conftest.$ac_objext
16523 deplibs=
16524 wl=$lt_prog_compiler_wl
16525 pic_flag=$lt_prog_compiler_pic
16526 compiler_flags=-v
16527 linker_flags=-v
16528 verstring=
16529 output_objdir=.
16530 libname=conftest
16531 lt_save_allow_undefined_flag=$allow_undefined_flag
16532 allow_undefined_flag=
16533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16534 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16535 ac_status=$?
16536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16537 test $ac_status = 0; }
16538 then
16539 lt_cv_archive_cmds_need_lc=no
16540 else
16541 lt_cv_archive_cmds_need_lc=yes
16543 allow_undefined_flag=$lt_save_allow_undefined_flag
16544 else
16545 cat conftest.err 1>&5
16547 $RM conftest*
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16551 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16552 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16554 esac
16557 esac
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16716 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16718 if test "$GCC" = yes; then
16719 case $host_os in
16720 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16721 *) lt_awk_arg="/^libraries:/" ;;
16722 esac
16723 case $host_os in
16724 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16725 *) lt_sed_strip_eq="s,=/,/,g" ;;
16726 esac
16727 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16728 case $lt_search_path_spec in
16729 *\;*)
16730 # if the path contains ";" then we assume it to be the separator
16731 # otherwise default to the standard path separator (i.e. ":") - it is
16732 # assumed that no part of a normal pathname contains ";" but that should
16733 # okay in the real world where ";" in dirpaths is itself problematic.
16734 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16737 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16739 esac
16740 # Ok, now we have the path, separated by spaces, we can step through it
16741 # and add multilib dir if necessary.
16742 lt_tmp_lt_search_path_spec=
16743 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16744 for lt_sys_path in $lt_search_path_spec; do
16745 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16747 else
16748 test -d "$lt_sys_path" && \
16749 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16751 done
16752 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16753 BEGIN {RS=" "; FS="/|\n";} {
16754 lt_foo="";
16755 lt_count=0;
16756 for (lt_i = NF; lt_i > 0; lt_i--) {
16757 if ($lt_i != "" && $lt_i != ".") {
16758 if ($lt_i == "..") {
16759 lt_count++;
16760 } else {
16761 if (lt_count == 0) {
16762 lt_foo="/" $lt_i lt_foo;
16763 } else {
16764 lt_count--;
16769 if (lt_foo != "") { lt_freq[lt_foo]++; }
16770 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16772 # AWK program above erroneously prepends '/' to C:/dos/paths
16773 # for these hosts.
16774 case $host_os in
16775 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16776 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16777 esac
16778 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16779 else
16780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16782 library_names_spec=
16783 libname_spec='lib$name'
16784 soname_spec=
16785 shrext_cmds=".so"
16786 postinstall_cmds=
16787 postuninstall_cmds=
16788 finish_cmds=
16789 finish_eval=
16790 shlibpath_var=
16791 shlibpath_overrides_runpath=unknown
16792 version_type=none
16793 dynamic_linker="$host_os ld.so"
16794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16795 need_lib_prefix=unknown
16796 hardcode_into_libs=no
16798 # when you set need_version to no, make sure it does not cause -set_version
16799 # flags to be left without arguments
16800 need_version=unknown
16802 case $host_os in
16803 aix3*)
16804 version_type=linux
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16806 shlibpath_var=LIBPATH
16808 # AIX 3 has no versioning support, so we append a major version to the name.
16809 soname_spec='${libname}${release}${shared_ext}$major'
16812 aix[4-9]*)
16813 version_type=linux
16814 need_lib_prefix=no
16815 need_version=no
16816 hardcode_into_libs=yes
16817 if test "$host_cpu" = ia64; then
16818 # AIX 5 supports IA64
16819 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 else
16822 # With GCC up to 2.95.x, collect2 would create an import file
16823 # for dependence libraries. The import file would start with
16824 # the line `#! .'. This would cause the generated library to
16825 # depend on `.', always an invalid library. This was fixed in
16826 # development snapshots of GCC prior to 3.0.
16827 case $host_os in
16828 aix4 | aix4.[01] | aix4.[01].*)
16829 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16830 echo ' yes '
16831 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16833 else
16834 can_build_shared=no
16837 esac
16838 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16839 # soname into executable. Probably we can add versioning support to
16840 # collect2, so additional links can be useful in future.
16841 if test "$aix_use_runtimelinking" = yes; then
16842 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16843 # instead of lib<name>.a to let people know that these are not
16844 # typical AIX shared libraries.
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16846 else
16847 # We preserve .a as extension for shared libraries through AIX4.2
16848 # and later when we are not doing run time linking.
16849 library_names_spec='${libname}${release}.a $libname.a'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16852 shlibpath_var=LIBPATH
16856 amigaos*)
16857 case $host_cpu in
16858 powerpc)
16859 # Since July 2007 AmigaOS4 officially supports .so libraries.
16860 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16863 m68k)
16864 library_names_spec='$libname.ixlibrary $libname.a'
16865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16866 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'
16868 esac
16871 beos*)
16872 library_names_spec='${libname}${shared_ext}'
16873 dynamic_linker="$host_os ld.so"
16874 shlibpath_var=LIBRARY_PATH
16877 bsdi[45]*)
16878 version_type=linux
16879 need_version=no
16880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16881 soname_spec='${libname}${release}${shared_ext}$major'
16882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16886 # the default ld.so.conf also contains /usr/contrib/lib and
16887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16888 # libtool to hard-code these into programs
16891 cygwin* | mingw* | pw32* | cegcc*)
16892 version_type=windows
16893 shrext_cmds=".dll"
16894 need_version=no
16895 need_lib_prefix=no
16897 case $GCC,$host_os in
16898 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16899 library_names_spec='$libname.dll.a'
16900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16901 postinstall_cmds='base_file=`basename \${file}`~
16902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16903 dldir=$destdir/`dirname \$dlpath`~
16904 test -d \$dldir || mkdir -p \$dldir~
16905 $install_prog $dir/$dlname \$dldir/$dlname~
16906 chmod a+x \$dldir/$dlname~
16907 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16908 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16911 dlpath=$dir/\$dldll~
16912 $RM \$dlpath'
16913 shlibpath_overrides_runpath=yes
16915 case $host_os in
16916 cygwin*)
16917 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16918 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16920 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16922 mingw* | cegcc*)
16923 # MinGW DLLs use traditional 'lib' prefix
16924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16926 pw32*)
16927 # pw32 DLLs use 'pw' prefix rather than 'lib'
16928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16930 esac
16934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16936 esac
16937 dynamic_linker='Win32 ld.exe'
16938 # FIXME: first we should search . and the directory the executable is in
16939 shlibpath_var=PATH
16942 darwin* | rhapsody*)
16943 dynamic_linker="$host_os dyld"
16944 version_type=darwin
16945 need_lib_prefix=no
16946 need_version=no
16947 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16948 soname_spec='${libname}${release}${major}$shared_ext'
16949 shlibpath_overrides_runpath=yes
16950 shlibpath_var=DYLD_LIBRARY_PATH
16951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16957 dgux*)
16958 version_type=linux
16959 need_lib_prefix=no
16960 need_version=no
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16962 soname_spec='${libname}${release}${shared_ext}$major'
16963 shlibpath_var=LD_LIBRARY_PATH
16966 freebsd* | dragonfly*)
16967 # DragonFly does not have aout. When/if they implement a new
16968 # versioning mechanism, adjust this.
16969 if test -x /usr/bin/objformat; then
16970 objformat=`/usr/bin/objformat`
16971 else
16972 case $host_os in
16973 freebsd[23].*) objformat=aout ;;
16974 *) objformat=elf ;;
16975 esac
16977 version_type=freebsd-$objformat
16978 case $version_type in
16979 freebsd-elf*)
16980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16981 need_version=no
16982 need_lib_prefix=no
16984 freebsd-*)
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16986 need_version=yes
16988 esac
16989 shlibpath_var=LD_LIBRARY_PATH
16990 case $host_os in
16991 freebsd2.*)
16992 shlibpath_overrides_runpath=yes
16994 freebsd3.[01]* | freebsdelf3.[01]*)
16995 shlibpath_overrides_runpath=yes
16996 hardcode_into_libs=yes
16998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17000 shlibpath_overrides_runpath=no
17001 hardcode_into_libs=yes
17003 *) # from 4.6 on, and DragonFly
17004 shlibpath_overrides_runpath=yes
17005 hardcode_into_libs=yes
17007 esac
17010 gnu*)
17011 version_type=linux
17012 need_lib_prefix=no
17013 need_version=no
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 shlibpath_var=LD_LIBRARY_PATH
17017 hardcode_into_libs=yes
17020 haiku*)
17021 version_type=linux
17022 need_lib_prefix=no
17023 need_version=no
17024 dynamic_linker="$host_os runtime_loader"
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17026 soname_spec='${libname}${release}${shared_ext}$major'
17027 shlibpath_var=LIBRARY_PATH
17028 shlibpath_overrides_runpath=yes
17029 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17030 hardcode_into_libs=yes
17033 hpux9* | hpux10* | hpux11*)
17034 # Give a soname corresponding to the major version so that dld.sl refuses to
17035 # link against other versions.
17036 version_type=sunos
17037 need_lib_prefix=no
17038 need_version=no
17039 case $host_cpu in
17040 ia64*)
17041 shrext_cmds='.so'
17042 hardcode_into_libs=yes
17043 dynamic_linker="$host_os dld.so"
17044 shlibpath_var=LD_LIBRARY_PATH
17045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047 soname_spec='${libname}${release}${shared_ext}$major'
17048 if test "X$HPUX_IA64_MODE" = X32; then
17049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17050 else
17051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17055 hppa*64*)
17056 shrext_cmds='.sl'
17057 hardcode_into_libs=yes
17058 dynamic_linker="$host_os dld.sl"
17059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17067 shrext_cmds='.sl'
17068 dynamic_linker="$host_os dld.sl"
17069 shlibpath_var=SHLIB_PATH
17070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072 soname_spec='${libname}${release}${shared_ext}$major'
17074 esac
17075 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17076 postinstall_cmds='chmod 555 $lib'
17077 # or fails outright, so override atomically:
17078 install_override_mode=555
17081 interix[3-9]*)
17082 version_type=linux
17083 need_lib_prefix=no
17084 need_version=no
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 shlibpath_overrides_runpath=no
17090 hardcode_into_libs=yes
17093 irix5* | irix6* | nonstopux*)
17094 case $host_os in
17095 nonstopux*) version_type=nonstopux ;;
17097 if test "$lt_cv_prog_gnu_ld" = yes; then
17098 version_type=linux
17099 else
17100 version_type=irix
17101 fi ;;
17102 esac
17103 need_lib_prefix=no
17104 need_version=no
17105 soname_spec='${libname}${release}${shared_ext}$major'
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17107 case $host_os in
17108 irix5* | nonstopux*)
17109 libsuff= shlibsuff=
17112 case $LD in # libtool.m4 will add one of these switches to LD
17113 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17114 libsuff= shlibsuff= libmagic=32-bit;;
17115 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17116 libsuff=32 shlibsuff=N32 libmagic=N32;;
17117 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17118 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17119 *) libsuff= shlibsuff= libmagic=never-match;;
17120 esac
17122 esac
17123 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17124 shlibpath_overrides_runpath=no
17125 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17126 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17127 hardcode_into_libs=yes
17130 # No shared lib support for Linux oldld, aout, or coff.
17131 linux*oldld* | linux*aout* | linux*coff*)
17132 dynamic_linker=no
17135 # This must be Linux ELF.
17136 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17137 version_type=linux
17138 need_lib_prefix=no
17139 need_version=no
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17143 shlibpath_var=LD_LIBRARY_PATH
17144 shlibpath_overrides_runpath=no
17146 # Some binutils ld are patched to set DT_RUNPATH
17147 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17148 $as_echo_n "(cached) " >&6
17149 else
17150 lt_cv_shlibpath_overrides_runpath=no
17151 save_LDFLAGS=$LDFLAGS
17152 save_libdir=$libdir
17153 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17154 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17159 main ()
17163 return 0;
17165 _ACEOF
17166 if ac_fn_c_try_link "$LINENO"; then :
17167 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17168 lt_cv_shlibpath_overrides_runpath=yes
17171 rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17173 LDFLAGS=$save_LDFLAGS
17174 libdir=$save_libdir
17178 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17180 # This implies no fast_install, which is unacceptable.
17181 # Some rework will be needed to allow for fast_install
17182 # before this can be enabled.
17183 hardcode_into_libs=yes
17185 # Append ld.so.conf contents to the search path
17186 if test -f /etc/ld.so.conf; then
17187 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' ' '`
17188 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17191 # We used to test for /lib/ld.so.1 and disable shared libraries on
17192 # powerpc, because MkLinux only supported shared libraries with the
17193 # GNU dynamic linker. Since this was broken with cross compilers,
17194 # most powerpc-linux boxes support dynamic linking these days and
17195 # people can always --disable-shared, the test was removed, and we
17196 # assume the GNU/Linux dynamic linker is in use.
17197 dynamic_linker='GNU/Linux ld.so'
17200 netbsd*)
17201 version_type=sunos
17202 need_lib_prefix=no
17203 need_version=no
17204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17207 dynamic_linker='NetBSD (a.out) ld.so'
17208 else
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 dynamic_linker='NetBSD ld.elf_so'
17213 shlibpath_var=LD_LIBRARY_PATH
17214 shlibpath_overrides_runpath=yes
17215 hardcode_into_libs=yes
17218 newsos6)
17219 version_type=linux
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=yes
17225 *nto* | *qnx*)
17226 version_type=qnx
17227 need_lib_prefix=no
17228 need_version=no
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230 soname_spec='${libname}${release}${shared_ext}$major'
17231 shlibpath_var=LD_LIBRARY_PATH
17232 shlibpath_overrides_runpath=no
17233 hardcode_into_libs=yes
17234 dynamic_linker='ldqnx.so'
17237 openbsd*)
17238 version_type=sunos
17239 sys_lib_dlsearch_path_spec="/usr/lib"
17240 need_lib_prefix=no
17241 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17242 case $host_os in
17243 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17244 *) need_version=no ;;
17245 esac
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17248 shlibpath_var=LD_LIBRARY_PATH
17249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17250 case $host_os in
17251 openbsd2.[89] | openbsd2.[89].*)
17252 shlibpath_overrides_runpath=no
17255 shlibpath_overrides_runpath=yes
17257 esac
17258 else
17259 shlibpath_overrides_runpath=yes
17263 os2*)
17264 libname_spec='$name'
17265 shrext_cmds=".dll"
17266 need_lib_prefix=no
17267 library_names_spec='$libname${shared_ext} $libname.a'
17268 dynamic_linker='OS/2 ld.exe'
17269 shlibpath_var=LIBPATH
17272 osf3* | osf4* | osf5*)
17273 version_type=osf
17274 need_lib_prefix=no
17275 need_version=no
17276 soname_spec='${libname}${release}${shared_ext}$major'
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17280 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17283 rdos*)
17284 dynamic_linker=no
17287 solaris*)
17288 version_type=linux
17289 need_lib_prefix=no
17290 need_version=no
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 soname_spec='${libname}${release}${shared_ext}$major'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=yes
17295 hardcode_into_libs=yes
17296 # ldd complains unless libraries are executable
17297 postinstall_cmds='chmod +x $lib'
17300 sunos4*)
17301 version_type=sunos
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=yes
17306 if test "$with_gnu_ld" = yes; then
17307 need_lib_prefix=no
17309 need_version=yes
17312 sysv4 | sysv4.3*)
17313 version_type=linux
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 shlibpath_var=LD_LIBRARY_PATH
17317 case $host_vendor in
17318 sni)
17319 shlibpath_overrides_runpath=no
17320 need_lib_prefix=no
17321 runpath_var=LD_RUN_PATH
17323 siemens)
17324 need_lib_prefix=no
17326 motorola)
17327 need_lib_prefix=no
17328 need_version=no
17329 shlibpath_overrides_runpath=no
17330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17332 esac
17335 sysv4*MP*)
17336 if test -d /usr/nec ;then
17337 version_type=linux
17338 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17339 soname_spec='$libname${shared_ext}.$major'
17340 shlibpath_var=LD_LIBRARY_PATH
17344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17345 version_type=freebsd-elf
17346 need_lib_prefix=no
17347 need_version=no
17348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17349 soname_spec='${libname}${release}${shared_ext}$major'
17350 shlibpath_var=LD_LIBRARY_PATH
17351 shlibpath_overrides_runpath=yes
17352 hardcode_into_libs=yes
17353 if test "$with_gnu_ld" = yes; then
17354 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17355 else
17356 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17357 case $host_os in
17358 sco3.2v5*)
17359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17361 esac
17363 sys_lib_dlsearch_path_spec='/usr/lib'
17366 tpf*)
17367 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17368 version_type=linux
17369 need_lib_prefix=no
17370 need_version=no
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 shlibpath_overrides_runpath=no
17374 hardcode_into_libs=yes
17377 uts4*)
17378 version_type=linux
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380 soname_spec='${libname}${release}${shared_ext}$major'
17381 shlibpath_var=LD_LIBRARY_PATH
17385 dynamic_linker=no
17387 esac
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17389 $as_echo "$dynamic_linker" >&6; }
17390 test "$dynamic_linker" = no && can_build_shared=no
17392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17393 if test "$GCC" = yes; then
17394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17397 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17398 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17400 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17401 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17496 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17497 hardcode_action=
17498 if test -n "$hardcode_libdir_flag_spec" ||
17499 test -n "$runpath_var" ||
17500 test "X$hardcode_automatic" = "Xyes" ; then
17502 # We can hardcode non-existent directories.
17503 if test "$hardcode_direct" != no &&
17504 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17505 # have to relink, otherwise we might link with an installed library
17506 # when we should be linking with a yet-to-be-installed one
17507 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17508 test "$hardcode_minus_L" != no; then
17509 # Linking always hardcodes the temporary library directory.
17510 hardcode_action=relink
17511 else
17512 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17513 hardcode_action=immediate
17515 else
17516 # We cannot hardcode anything, or else we can only hardcode existing
17517 # directories.
17518 hardcode_action=unsupported
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17521 $as_echo "$hardcode_action" >&6; }
17523 if test "$hardcode_action" = relink ||
17524 test "$inherit_rpath" = yes; then
17525 # Fast installation is not supported
17526 enable_fast_install=no
17527 elif test "$shlibpath_overrides_runpath" = yes ||
17528 test "$enable_shared" = no; then
17529 # Fast installation is not necessary
17530 enable_fast_install=needless
17538 if test "x$enable_dlopen" != xyes; then
17539 enable_dlopen=unknown
17540 enable_dlopen_self=unknown
17541 enable_dlopen_self_static=unknown
17542 else
17543 lt_cv_dlopen=no
17544 lt_cv_dlopen_libs=
17546 case $host_os in
17547 beos*)
17548 lt_cv_dlopen="load_add_on"
17549 lt_cv_dlopen_libs=
17550 lt_cv_dlopen_self=yes
17553 mingw* | pw32* | cegcc*)
17554 lt_cv_dlopen="LoadLibrary"
17555 lt_cv_dlopen_libs=
17558 cygwin*)
17559 lt_cv_dlopen="dlopen"
17560 lt_cv_dlopen_libs=
17563 darwin*)
17564 # if libdl is installed we need to link against it
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17566 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17568 $as_echo_n "(cached) " >&6
17569 else
17570 ac_check_lib_save_LIBS=$LIBS
17571 LIBS="-ldl $LIBS"
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17575 /* Override any GCC internal prototype to avoid an error.
17576 Use char because int might match the return type of a GCC
17577 builtin and then its argument prototype would still apply. */
17578 #ifdef __cplusplus
17579 extern "C"
17580 #endif
17581 char dlopen ();
17583 main ()
17585 return dlopen ();
17587 return 0;
17589 _ACEOF
17590 if ac_fn_c_try_link "$LINENO"; then :
17591 ac_cv_lib_dl_dlopen=yes
17592 else
17593 ac_cv_lib_dl_dlopen=no
17595 rm -f core conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17597 LIBS=$ac_check_lib_save_LIBS
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17600 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17601 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17603 else
17605 lt_cv_dlopen="dyld"
17606 lt_cv_dlopen_libs=
17607 lt_cv_dlopen_self=yes
17614 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17615 if test "x$ac_cv_func_shl_load" = x""yes; then :
17616 lt_cv_dlopen="shl_load"
17617 else
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17619 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17620 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17621 $as_echo_n "(cached) " >&6
17622 else
17623 ac_check_lib_save_LIBS=$LIBS
17624 LIBS="-ldld $LIBS"
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17628 /* Override any GCC internal prototype to avoid an error.
17629 Use char because int might match the return type of a GCC
17630 builtin and then its argument prototype would still apply. */
17631 #ifdef __cplusplus
17632 extern "C"
17633 #endif
17634 char shl_load ();
17636 main ()
17638 return shl_load ();
17640 return 0;
17642 _ACEOF
17643 if ac_fn_c_try_link "$LINENO"; then :
17644 ac_cv_lib_dld_shl_load=yes
17645 else
17646 ac_cv_lib_dld_shl_load=no
17648 rm -f core conftest.err conftest.$ac_objext \
17649 conftest$ac_exeext conftest.$ac_ext
17650 LIBS=$ac_check_lib_save_LIBS
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17653 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17654 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17655 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17656 else
17657 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17658 if test "x$ac_cv_func_dlopen" = x""yes; then :
17659 lt_cv_dlopen="dlopen"
17660 else
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17662 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17663 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17664 $as_echo_n "(cached) " >&6
17665 else
17666 ac_check_lib_save_LIBS=$LIBS
17667 LIBS="-ldl $LIBS"
17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669 /* end confdefs.h. */
17671 /* Override any GCC internal prototype to avoid an error.
17672 Use char because int might match the return type of a GCC
17673 builtin and then its argument prototype would still apply. */
17674 #ifdef __cplusplus
17675 extern "C"
17676 #endif
17677 char dlopen ();
17679 main ()
17681 return dlopen ();
17683 return 0;
17685 _ACEOF
17686 if ac_fn_c_try_link "$LINENO"; then :
17687 ac_cv_lib_dl_dlopen=yes
17688 else
17689 ac_cv_lib_dl_dlopen=no
17691 rm -f core conftest.err conftest.$ac_objext \
17692 conftest$ac_exeext conftest.$ac_ext
17693 LIBS=$ac_check_lib_save_LIBS
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17696 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17697 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17699 else
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17701 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17702 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17703 $as_echo_n "(cached) " >&6
17704 else
17705 ac_check_lib_save_LIBS=$LIBS
17706 LIBS="-lsvld $LIBS"
17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17713 #ifdef __cplusplus
17714 extern "C"
17715 #endif
17716 char dlopen ();
17718 main ()
17720 return dlopen ();
17722 return 0;
17724 _ACEOF
17725 if ac_fn_c_try_link "$LINENO"; then :
17726 ac_cv_lib_svld_dlopen=yes
17727 else
17728 ac_cv_lib_svld_dlopen=no
17730 rm -f core conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
17732 LIBS=$ac_check_lib_save_LIBS
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17735 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17736 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17737 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17738 else
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17740 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17741 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17742 $as_echo_n "(cached) " >&6
17743 else
17744 ac_check_lib_save_LIBS=$LIBS
17745 LIBS="-ldld $LIBS"
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17749 /* Override any GCC internal prototype to avoid an error.
17750 Use char because int might match the return type of a GCC
17751 builtin and then its argument prototype would still apply. */
17752 #ifdef __cplusplus
17753 extern "C"
17754 #endif
17755 char dld_link ();
17757 main ()
17759 return dld_link ();
17761 return 0;
17763 _ACEOF
17764 if ac_fn_c_try_link "$LINENO"; then :
17765 ac_cv_lib_dld_dld_link=yes
17766 else
17767 ac_cv_lib_dld_dld_link=no
17769 rm -f core conftest.err conftest.$ac_objext \
17770 conftest$ac_exeext conftest.$ac_ext
17771 LIBS=$ac_check_lib_save_LIBS
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17774 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17775 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17776 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17795 esac
17797 if test "x$lt_cv_dlopen" != xno; then
17798 enable_dlopen=yes
17799 else
17800 enable_dlopen=no
17803 case $lt_cv_dlopen in
17804 dlopen)
17805 save_CPPFLAGS="$CPPFLAGS"
17806 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17808 save_LDFLAGS="$LDFLAGS"
17809 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17811 save_LIBS="$LIBS"
17812 LIBS="$lt_cv_dlopen_libs $LIBS"
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17815 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17816 if test "${lt_cv_dlopen_self+set}" = set; then :
17817 $as_echo_n "(cached) " >&6
17818 else
17819 if test "$cross_compiling" = yes; then :
17820 lt_cv_dlopen_self=cross
17821 else
17822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17823 lt_status=$lt_dlunknown
17824 cat > conftest.$ac_ext <<_LT_EOF
17825 #line 17825 "configure"
17826 #include "confdefs.h"
17828 #if HAVE_DLFCN_H
17829 #include <dlfcn.h>
17830 #endif
17832 #include <stdio.h>
17834 #ifdef RTLD_GLOBAL
17835 # define LT_DLGLOBAL RTLD_GLOBAL
17836 #else
17837 # ifdef DL_GLOBAL
17838 # define LT_DLGLOBAL DL_GLOBAL
17839 # else
17840 # define LT_DLGLOBAL 0
17841 # endif
17842 #endif
17844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17845 find out it does not work in some platform. */
17846 #ifndef LT_DLLAZY_OR_NOW
17847 # ifdef RTLD_LAZY
17848 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17849 # else
17850 # ifdef DL_LAZY
17851 # define LT_DLLAZY_OR_NOW DL_LAZY
17852 # else
17853 # ifdef RTLD_NOW
17854 # define LT_DLLAZY_OR_NOW RTLD_NOW
17855 # else
17856 # ifdef DL_NOW
17857 # define LT_DLLAZY_OR_NOW DL_NOW
17858 # else
17859 # define LT_DLLAZY_OR_NOW 0
17860 # endif
17861 # endif
17862 # endif
17863 # endif
17864 #endif
17866 /* When -fvisbility=hidden is used, assume the code has been annotated
17867 correspondingly for the symbols needed. */
17868 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17869 void fnord () __attribute__((visibility("default")));
17870 #endif
17872 void fnord () { int i=42; }
17873 int main ()
17875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17876 int status = $lt_dlunknown;
17878 if (self)
17880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17881 else
17883 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17884 else puts (dlerror ());
17886 /* dlclose (self); */
17888 else
17889 puts (dlerror ());
17891 return status;
17893 _LT_EOF
17894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17895 (eval $ac_link) 2>&5
17896 ac_status=$?
17897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17898 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17899 (./conftest; exit; ) >&5 2>/dev/null
17900 lt_status=$?
17901 case x$lt_status in
17902 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17903 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17904 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17905 esac
17906 else :
17907 # compilation failed
17908 lt_cv_dlopen_self=no
17911 rm -fr conftest*
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17916 $as_echo "$lt_cv_dlopen_self" >&6; }
17918 if test "x$lt_cv_dlopen_self" = xyes; then
17919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17921 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17922 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17923 $as_echo_n "(cached) " >&6
17924 else
17925 if test "$cross_compiling" = yes; then :
17926 lt_cv_dlopen_self_static=cross
17927 else
17928 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17929 lt_status=$lt_dlunknown
17930 cat > conftest.$ac_ext <<_LT_EOF
17931 #line 17931 "configure"
17932 #include "confdefs.h"
17934 #if HAVE_DLFCN_H
17935 #include <dlfcn.h>
17936 #endif
17938 #include <stdio.h>
17940 #ifdef RTLD_GLOBAL
17941 # define LT_DLGLOBAL RTLD_GLOBAL
17942 #else
17943 # ifdef DL_GLOBAL
17944 # define LT_DLGLOBAL DL_GLOBAL
17945 # else
17946 # define LT_DLGLOBAL 0
17947 # endif
17948 #endif
17950 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17951 find out it does not work in some platform. */
17952 #ifndef LT_DLLAZY_OR_NOW
17953 # ifdef RTLD_LAZY
17954 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17955 # else
17956 # ifdef DL_LAZY
17957 # define LT_DLLAZY_OR_NOW DL_LAZY
17958 # else
17959 # ifdef RTLD_NOW
17960 # define LT_DLLAZY_OR_NOW RTLD_NOW
17961 # else
17962 # ifdef DL_NOW
17963 # define LT_DLLAZY_OR_NOW DL_NOW
17964 # else
17965 # define LT_DLLAZY_OR_NOW 0
17966 # endif
17967 # endif
17968 # endif
17969 # endif
17970 #endif
17972 /* When -fvisbility=hidden is used, assume the code has been annotated
17973 correspondingly for the symbols needed. */
17974 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17975 void fnord () __attribute__((visibility("default")));
17976 #endif
17978 void fnord () { int i=42; }
17979 int main ()
17981 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17982 int status = $lt_dlunknown;
17984 if (self)
17986 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17987 else
17989 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17990 else puts (dlerror ());
17992 /* dlclose (self); */
17994 else
17995 puts (dlerror ());
17997 return status;
17999 _LT_EOF
18000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18001 (eval $ac_link) 2>&5
18002 ac_status=$?
18003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18004 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18005 (./conftest; exit; ) >&5 2>/dev/null
18006 lt_status=$?
18007 case x$lt_status in
18008 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18009 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18010 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18011 esac
18012 else :
18013 # compilation failed
18014 lt_cv_dlopen_self_static=no
18017 rm -fr conftest*
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18022 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18025 CPPFLAGS="$save_CPPFLAGS"
18026 LDFLAGS="$save_LDFLAGS"
18027 LIBS="$save_LIBS"
18029 esac
18031 case $lt_cv_dlopen_self in
18032 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18033 *) enable_dlopen_self=unknown ;;
18034 esac
18036 case $lt_cv_dlopen_self_static in
18037 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18038 *) enable_dlopen_self_static=unknown ;;
18039 esac
18058 striplib=
18059 old_striplib=
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18061 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18062 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18063 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18064 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18066 $as_echo "yes" >&6; }
18067 else
18068 # FIXME - insert some real tests, host_os isn't really good enough
18069 case $host_os in
18070 darwin*)
18071 if test -n "$STRIP" ; then
18072 striplib="$STRIP -x"
18073 old_striplib="$STRIP -S"
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18075 $as_echo "yes" >&6; }
18076 else
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18078 $as_echo "no" >&6; }
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18083 $as_echo "no" >&6; }
18085 esac
18099 # Report which library types will actually be built
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18101 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18103 $as_echo "$can_build_shared" >&6; }
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18106 $as_echo_n "checking whether to build shared libraries... " >&6; }
18107 test "$can_build_shared" = "no" && enable_shared=no
18109 # On AIX, shared libraries and static libraries use the same namespace, and
18110 # are all built from PIC.
18111 case $host_os in
18112 aix3*)
18113 test "$enable_shared" = yes && enable_static=no
18114 if test -n "$RANLIB"; then
18115 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18116 postinstall_cmds='$RANLIB $lib'
18120 aix[4-9]*)
18121 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18122 test "$enable_shared" = yes && enable_static=no
18125 esac
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18127 $as_echo "$enable_shared" >&6; }
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18130 $as_echo_n "checking whether to build static libraries... " >&6; }
18131 # Make sure either enable_shared or enable_static is yes.
18132 test "$enable_shared" = yes || enable_static=yes
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18134 $as_echo "$enable_static" >&6; }
18140 ac_ext=c
18141 ac_cpp='$CPP $CPPFLAGS'
18142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18146 CC="$lt_save_CC"
18148 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18149 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18150 (test "X$CXX" != "Xg++"))) ; then
18151 ac_ext=cpp
18152 ac_cpp='$CXXCPP $CPPFLAGS'
18153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18157 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18158 if test -z "$CXXCPP"; then
18159 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18160 $as_echo_n "(cached) " >&6
18161 else
18162 # Double quotes because CXXCPP needs to be expanded
18163 for CXXCPP in "$CXX -E" "/lib/cpp"
18165 ac_preproc_ok=false
18166 for ac_cxx_preproc_warn_flag in '' yes
18168 # Use a header file that comes with gcc, so configuring glibc
18169 # with a fresh cross-compiler works.
18170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18171 # <limits.h> exists even on freestanding compilers.
18172 # On the NeXT, cc -E runs the code through the compiler's parser,
18173 # not just through cpp. "Syntax error" is here to catch this case.
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18176 #ifdef __STDC__
18177 # include <limits.h>
18178 #else
18179 # include <assert.h>
18180 #endif
18181 Syntax error
18182 _ACEOF
18183 if ac_fn_cxx_try_cpp "$LINENO"; then :
18185 else
18186 # Broken: fails on valid input.
18187 continue
18189 rm -f conftest.err conftest.$ac_ext
18191 # OK, works on sane cases. Now check whether nonexistent headers
18192 # can be detected and how.
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18195 #include <ac_nonexistent.h>
18196 _ACEOF
18197 if ac_fn_cxx_try_cpp "$LINENO"; then :
18198 # Broken: success on invalid input.
18199 continue
18200 else
18201 # Passes both tests.
18202 ac_preproc_ok=:
18203 break
18205 rm -f conftest.err conftest.$ac_ext
18207 done
18208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18209 rm -f conftest.err conftest.$ac_ext
18210 if $ac_preproc_ok; then :
18211 break
18214 done
18215 ac_cv_prog_CXXCPP=$CXXCPP
18218 CXXCPP=$ac_cv_prog_CXXCPP
18219 else
18220 ac_cv_prog_CXXCPP=$CXXCPP
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18223 $as_echo "$CXXCPP" >&6; }
18224 ac_preproc_ok=false
18225 for ac_cxx_preproc_warn_flag in '' yes
18227 # Use a header file that comes with gcc, so configuring glibc
18228 # with a fresh cross-compiler works.
18229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18230 # <limits.h> exists even on freestanding compilers.
18231 # On the NeXT, cc -E runs the code through the compiler's parser,
18232 # not just through cpp. "Syntax error" is here to catch this case.
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18235 #ifdef __STDC__
18236 # include <limits.h>
18237 #else
18238 # include <assert.h>
18239 #endif
18240 Syntax error
18241 _ACEOF
18242 if ac_fn_cxx_try_cpp "$LINENO"; then :
18244 else
18245 # Broken: fails on valid input.
18246 continue
18248 rm -f conftest.err conftest.$ac_ext
18250 # OK, works on sane cases. Now check whether nonexistent headers
18251 # can be detected and how.
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254 #include <ac_nonexistent.h>
18255 _ACEOF
18256 if ac_fn_cxx_try_cpp "$LINENO"; then :
18257 # Broken: success on invalid input.
18258 continue
18259 else
18260 # Passes both tests.
18261 ac_preproc_ok=:
18262 break
18264 rm -f conftest.err conftest.$ac_ext
18266 done
18267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18268 rm -f conftest.err conftest.$ac_ext
18269 if $ac_preproc_ok; then :
18271 else
18272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18274 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18275 See \`config.log' for more details." "$LINENO" 5; }
18278 ac_ext=c
18279 ac_cpp='$CPP $CPPFLAGS'
18280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18284 else
18285 _lt_caught_CXX_error=yes
18288 ac_ext=cpp
18289 ac_cpp='$CXXCPP $CPPFLAGS'
18290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18294 archive_cmds_need_lc_CXX=no
18295 allow_undefined_flag_CXX=
18296 always_export_symbols_CXX=no
18297 archive_expsym_cmds_CXX=
18298 compiler_needs_object_CXX=no
18299 export_dynamic_flag_spec_CXX=
18300 hardcode_direct_CXX=no
18301 hardcode_direct_absolute_CXX=no
18302 hardcode_libdir_flag_spec_CXX=
18303 hardcode_libdir_flag_spec_ld_CXX=
18304 hardcode_libdir_separator_CXX=
18305 hardcode_minus_L_CXX=no
18306 hardcode_shlibpath_var_CXX=unsupported
18307 hardcode_automatic_CXX=no
18308 inherit_rpath_CXX=no
18309 module_cmds_CXX=
18310 module_expsym_cmds_CXX=
18311 link_all_deplibs_CXX=unknown
18312 old_archive_cmds_CXX=$old_archive_cmds
18313 reload_flag_CXX=$reload_flag
18314 reload_cmds_CXX=$reload_cmds
18315 no_undefined_flag_CXX=
18316 whole_archive_flag_spec_CXX=
18317 enable_shared_with_static_runtimes_CXX=no
18319 # Source file extension for C++ test sources.
18320 ac_ext=cpp
18322 # Object file extension for compiled C++ test sources.
18323 objext=o
18324 objext_CXX=$objext
18326 # No sense in running all these tests if we already determined that
18327 # the CXX compiler isn't working. Some variables (like enable_shared)
18328 # are currently assumed to apply to all compilers on this platform,
18329 # and will be corrupted by setting them based on a non-working compiler.
18330 if test "$_lt_caught_CXX_error" != yes; then
18331 # Code to be used in simple compile tests
18332 lt_simple_compile_test_code="int some_variable = 0;"
18334 # Code to be used in simple link tests
18335 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18337 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18344 # If no C compiler was specified, use CC.
18345 LTCC=${LTCC-"$CC"}
18347 # If no C compiler flags were specified, use CFLAGS.
18348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18350 # Allow CC to be a program name with arguments.
18351 compiler=$CC
18354 # save warnings/boilerplate of simple test code
18355 ac_outfile=conftest.$ac_objext
18356 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18357 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18358 _lt_compiler_boilerplate=`cat conftest.err`
18359 $RM conftest*
18361 ac_outfile=conftest.$ac_objext
18362 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18363 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18364 _lt_linker_boilerplate=`cat conftest.err`
18365 $RM -r conftest*
18368 # Allow CC to be a program name with arguments.
18369 lt_save_CC=$CC
18370 lt_save_LD=$LD
18371 lt_save_GCC=$GCC
18372 GCC=$GXX
18373 lt_save_with_gnu_ld=$with_gnu_ld
18374 lt_save_path_LD=$lt_cv_path_LD
18375 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18376 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18377 else
18378 $as_unset lt_cv_prog_gnu_ld
18380 if test -n "${lt_cv_path_LDCXX+set}"; then
18381 lt_cv_path_LD=$lt_cv_path_LDCXX
18382 else
18383 $as_unset lt_cv_path_LD
18385 test -z "${LDCXX+set}" || LD=$LDCXX
18386 CC=${CXX-"c++"}
18387 compiler=$CC
18388 compiler_CXX=$CC
18389 for cc_temp in $compiler""; do
18390 case $cc_temp in
18391 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18392 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18393 \-*) ;;
18394 *) break;;
18395 esac
18396 done
18397 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18400 if test -n "$compiler"; then
18401 # We don't want -fno-exception when compiling C++ code, so set the
18402 # no_builtin_flag separately
18403 if test "$GXX" = yes; then
18404 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18405 else
18406 lt_prog_compiler_no_builtin_flag_CXX=
18409 if test "$GXX" = yes; then
18410 # Set up default GNU C++ configuration
18414 # Check whether --with-gnu-ld was given.
18415 if test "${with_gnu_ld+set}" = set; then :
18416 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18417 else
18418 with_gnu_ld=no
18421 ac_prog=ld
18422 if test "$GCC" = yes; then
18423 # Check if gcc -print-prog-name=ld gives a path.
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18425 $as_echo_n "checking for ld used by $CC... " >&6; }
18426 case $host in
18427 *-*-mingw*)
18428 # gcc leaves a trailing carriage return which upsets mingw
18429 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18431 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18432 esac
18433 case $ac_prog in
18434 # Accept absolute paths.
18435 [\\/]* | ?:[\\/]*)
18436 re_direlt='/[^/][^/]*/\.\./'
18437 # Canonicalize the pathname of ld
18438 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18439 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18440 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18441 done
18442 test -z "$LD" && LD="$ac_prog"
18445 # If it fails, then pretend we aren't using GCC.
18446 ac_prog=ld
18449 # If it is relative, then search for the first ld in PATH.
18450 with_gnu_ld=unknown
18452 esac
18453 elif test "$with_gnu_ld" = yes; then
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18455 $as_echo_n "checking for GNU ld... " >&6; }
18456 else
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18458 $as_echo_n "checking for non-GNU ld... " >&6; }
18460 if test "${lt_cv_path_LD+set}" = set; then :
18461 $as_echo_n "(cached) " >&6
18462 else
18463 if test -z "$LD"; then
18464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18465 for ac_dir in $PATH; do
18466 IFS="$lt_save_ifs"
18467 test -z "$ac_dir" && ac_dir=.
18468 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18469 lt_cv_path_LD="$ac_dir/$ac_prog"
18470 # Check to see if the program is GNU ld. I'd rather use --version,
18471 # but apparently some variants of GNU ld only accept -v.
18472 # Break only if it was the GNU/non-GNU ld that we prefer.
18473 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18474 *GNU* | *'with BFD'*)
18475 test "$with_gnu_ld" != no && break
18478 test "$with_gnu_ld" != yes && break
18480 esac
18482 done
18483 IFS="$lt_save_ifs"
18484 else
18485 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18489 LD="$lt_cv_path_LD"
18490 if test -n "$LD"; then
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18492 $as_echo "$LD" >&6; }
18493 else
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18495 $as_echo "no" >&6; }
18497 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18499 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18500 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18501 $as_echo_n "(cached) " >&6
18502 else
18503 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18504 case `$LD -v 2>&1 </dev/null` in
18505 *GNU* | *'with BFD'*)
18506 lt_cv_prog_gnu_ld=yes
18509 lt_cv_prog_gnu_ld=no
18511 esac
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18514 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18515 with_gnu_ld=$lt_cv_prog_gnu_ld
18523 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18524 # archiving commands below assume that GNU ld is being used.
18525 if test "$with_gnu_ld" = yes; then
18526 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18527 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'
18529 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18530 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18532 # If archive_cmds runs LD, not CC, wlarc should be empty
18533 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18534 # investigate it a little bit more. (MM)
18535 wlarc='${wl}'
18537 # ancient GNU ld didn't support --whole-archive et. al.
18538 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18539 $GREP 'no-whole-archive' > /dev/null; then
18540 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18541 else
18542 whole_archive_flag_spec_CXX=
18544 else
18545 with_gnu_ld=no
18546 wlarc=
18548 # A generic and very simple default shared library creation
18549 # command for GNU C++ for the case where it uses the native
18550 # linker, instead of GNU ld. If possible, this setting should
18551 # overridden to take advantage of the native linker features on
18552 # the platform it is being used on.
18553 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18556 # Commands to make compiler produce verbose output that lists
18557 # what "hidden" libraries, object files and flags are used when
18558 # linking a shared library.
18559 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18561 else
18562 GXX=no
18563 with_gnu_ld=no
18564 wlarc=
18567 # PORTME: fill in a description of your system's C++ link characteristics
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18569 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18570 ld_shlibs_CXX=yes
18571 case $host_os in
18572 aix3*)
18573 # FIXME: insert proper C++ library support
18574 ld_shlibs_CXX=no
18576 aix[4-9]*)
18577 if test "$host_cpu" = ia64; then
18578 # On IA64, the linker does run time linking by default, so we don't
18579 # have to do anything special.
18580 aix_use_runtimelinking=no
18581 exp_sym_flag='-Bexport'
18582 no_entry_flag=""
18583 else
18584 aix_use_runtimelinking=no
18586 # Test if we are trying to use run time linking or normal
18587 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18588 # need to do runtime linking.
18589 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18590 for ld_flag in $LDFLAGS; do
18591 case $ld_flag in
18592 *-brtl*)
18593 aix_use_runtimelinking=yes
18594 break
18596 esac
18597 done
18599 esac
18601 exp_sym_flag='-bexport'
18602 no_entry_flag='-bnoentry'
18605 # When large executables or shared objects are built, AIX ld can
18606 # have problems creating the table of contents. If linking a library
18607 # or program results in "error TOC overflow" add -mminimal-toc to
18608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18611 archive_cmds_CXX=''
18612 hardcode_direct_CXX=yes
18613 hardcode_direct_absolute_CXX=yes
18614 hardcode_libdir_separator_CXX=':'
18615 link_all_deplibs_CXX=yes
18616 file_list_spec_CXX='${wl}-f,'
18618 if test "$GXX" = yes; then
18619 case $host_os in aix4.[012]|aix4.[012].*)
18620 # We only want to do this on AIX 4.2 and lower, the check
18621 # below for broken collect2 doesn't work under 4.3+
18622 collect2name=`${CC} -print-prog-name=collect2`
18623 if test -f "$collect2name" &&
18624 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18625 then
18626 # We have reworked collect2
18628 else
18629 # We have old collect2
18630 hardcode_direct_CXX=unsupported
18631 # It fails to find uninstalled libraries when the uninstalled
18632 # path is not listed in the libpath. Setting hardcode_minus_L
18633 # to unsupported forces relinking
18634 hardcode_minus_L_CXX=yes
18635 hardcode_libdir_flag_spec_CXX='-L$libdir'
18636 hardcode_libdir_separator_CXX=
18638 esac
18639 shared_flag='-shared'
18640 if test "$aix_use_runtimelinking" = yes; then
18641 shared_flag="$shared_flag "'${wl}-G'
18643 else
18644 # not using gcc
18645 if test "$host_cpu" = ia64; then
18646 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18647 # chokes on -Wl,-G. The following line is correct:
18648 shared_flag='-G'
18649 else
18650 if test "$aix_use_runtimelinking" = yes; then
18651 shared_flag='${wl}-G'
18652 else
18653 shared_flag='${wl}-bM:SRE'
18658 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18659 # It seems that -bexpall does not export symbols beginning with
18660 # underscore (_), so it is better to generate a list of symbols to
18661 # export.
18662 always_export_symbols_CXX=yes
18663 if test "$aix_use_runtimelinking" = yes; then
18664 # Warning - without using the other runtime loading flags (-brtl),
18665 # -berok will link without error, but may produce a broken library.
18666 allow_undefined_flag_CXX='-berok'
18667 # Determine the default libpath from the value encoded in an empty
18668 # executable.
18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18673 main ()
18677 return 0;
18679 _ACEOF
18680 if ac_fn_cxx_try_link "$LINENO"; then :
18682 lt_aix_libpath_sed='
18683 /Import File Strings/,/^$/ {
18684 /^0/ {
18685 s/^0 *\(.*\)$/\1/
18689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18690 # Check for a 64-bit object if we didn't find anything.
18691 if test -z "$aix_libpath"; then
18692 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18695 rm -f core conftest.err conftest.$ac_objext \
18696 conftest$ac_exeext conftest.$ac_ext
18697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18699 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18701 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"
18702 else
18703 if test "$host_cpu" = ia64; then
18704 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18705 allow_undefined_flag_CXX="-z nodefs"
18706 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"
18707 else
18708 # Determine the default libpath from the value encoded in an
18709 # empty executable.
18710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18714 main ()
18718 return 0;
18720 _ACEOF
18721 if ac_fn_cxx_try_link "$LINENO"; then :
18723 lt_aix_libpath_sed='
18724 /Import File Strings/,/^$/ {
18725 /^0/ {
18726 s/^0 *\(.*\)$/\1/
18730 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18731 # Check for a 64-bit object if we didn't find anything.
18732 if test -z "$aix_libpath"; then
18733 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18736 rm -f core conftest.err conftest.$ac_objext \
18737 conftest$ac_exeext conftest.$ac_ext
18738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18740 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18741 # Warning - without using the other run time loading flags,
18742 # -berok will link without error, but may produce a broken library.
18743 no_undefined_flag_CXX=' ${wl}-bernotok'
18744 allow_undefined_flag_CXX=' ${wl}-berok'
18745 if test "$with_gnu_ld" = yes; then
18746 # We only use this code for GNU lds that support --whole-archive.
18747 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18748 else
18749 # Exported symbols can be pulled into shared objects from archives
18750 whole_archive_flag_spec_CXX='$convenience'
18752 archive_cmds_need_lc_CXX=yes
18753 # This is similar to how AIX traditionally builds its shared
18754 # libraries.
18755 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'
18760 beos*)
18761 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18762 allow_undefined_flag_CXX=unsupported
18763 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18764 # support --undefined. This deserves some investigation. FIXME
18765 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18766 else
18767 ld_shlibs_CXX=no
18771 chorus*)
18772 case $cc_basename in
18774 # FIXME: insert proper C++ library support
18775 ld_shlibs_CXX=no
18777 esac
18780 cygwin* | mingw* | pw32* | cegcc*)
18781 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18782 # as there is no search path for DLLs.
18783 hardcode_libdir_flag_spec_CXX='-L$libdir'
18784 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18785 allow_undefined_flag_CXX=unsupported
18786 always_export_symbols_CXX=no
18787 enable_shared_with_static_runtimes_CXX=yes
18789 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18790 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'
18791 # If the export-symbols file already is a .def file (1st line
18792 # is EXPORTS), use it as is; otherwise, prepend...
18793 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18794 cp $export_symbols $output_objdir/$soname.def;
18795 else
18796 echo EXPORTS > $output_objdir/$soname.def;
18797 cat $export_symbols >> $output_objdir/$soname.def;
18799 $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'
18800 else
18801 ld_shlibs_CXX=no
18804 darwin* | rhapsody*)
18807 archive_cmds_need_lc_CXX=no
18808 hardcode_direct_CXX=no
18809 hardcode_automatic_CXX=yes
18810 hardcode_shlibpath_var_CXX=unsupported
18811 if test "$lt_cv_ld_force_load" = "yes"; then
18812 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\"`'
18813 else
18814 whole_archive_flag_spec_CXX=''
18816 link_all_deplibs_CXX=yes
18817 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18818 case $cc_basename in
18819 ifort*) _lt_dar_can_shared=yes ;;
18820 *) _lt_dar_can_shared=$GCC ;;
18821 esac
18822 if test "$_lt_dar_can_shared" = "yes"; then
18823 output_verbose_link_cmd=func_echo_all
18824 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}"
18825 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18826 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}"
18827 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}"
18828 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18829 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}"
18830 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}"
18833 else
18834 ld_shlibs_CXX=no
18839 dgux*)
18840 case $cc_basename in
18841 ec++*)
18842 # FIXME: insert proper C++ library support
18843 ld_shlibs_CXX=no
18845 ghcx*)
18846 # Green Hills C++ Compiler
18847 # FIXME: insert proper C++ library support
18848 ld_shlibs_CXX=no
18851 # FIXME: insert proper C++ library support
18852 ld_shlibs_CXX=no
18854 esac
18857 freebsd2.*)
18858 # C++ shared libraries reported to be fairly broken before
18859 # switch to ELF
18860 ld_shlibs_CXX=no
18863 freebsd-elf*)
18864 archive_cmds_need_lc_CXX=no
18867 freebsd* | dragonfly*)
18868 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18869 # conventions
18870 ld_shlibs_CXX=yes
18873 gnu*)
18876 haiku*)
18877 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18878 link_all_deplibs_CXX=yes
18881 hpux9*)
18882 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18883 hardcode_libdir_separator_CXX=:
18884 export_dynamic_flag_spec_CXX='${wl}-E'
18885 hardcode_direct_CXX=yes
18886 hardcode_minus_L_CXX=yes # Not in the search PATH,
18887 # but as the default
18888 # location of the library.
18890 case $cc_basename in
18891 CC*)
18892 # FIXME: insert proper C++ library support
18893 ld_shlibs_CXX=no
18895 aCC*)
18896 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'
18897 # Commands to make compiler produce verbose output that lists
18898 # what "hidden" libraries, object files and flags are used when
18899 # linking a shared library.
18901 # There doesn't appear to be a way to prevent this compiler from
18902 # explicitly linking system object files so we need to strip them
18903 # from the output so that they don't get included in the library
18904 # dependencies.
18905 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"'
18908 if test "$GXX" = yes; then
18909 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'
18910 else
18911 # FIXME: insert proper C++ library support
18912 ld_shlibs_CXX=no
18915 esac
18918 hpux10*|hpux11*)
18919 if test $with_gnu_ld = no; then
18920 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18921 hardcode_libdir_separator_CXX=:
18923 case $host_cpu in
18924 hppa*64*|ia64*)
18927 export_dynamic_flag_spec_CXX='${wl}-E'
18929 esac
18931 case $host_cpu in
18932 hppa*64*|ia64*)
18933 hardcode_direct_CXX=no
18934 hardcode_shlibpath_var_CXX=no
18937 hardcode_direct_CXX=yes
18938 hardcode_direct_absolute_CXX=yes
18939 hardcode_minus_L_CXX=yes # Not in the search PATH,
18940 # but as the default
18941 # location of the library.
18943 esac
18945 case $cc_basename in
18946 CC*)
18947 # FIXME: insert proper C++ library support
18948 ld_shlibs_CXX=no
18950 aCC*)
18951 case $host_cpu in
18952 hppa*64*)
18953 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18955 ia64*)
18956 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18959 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18961 esac
18962 # Commands to make compiler produce verbose output that lists
18963 # what "hidden" libraries, object files and flags are used when
18964 # linking a shared library.
18966 # There doesn't appear to be a way to prevent this compiler from
18967 # explicitly linking system object files so we need to strip them
18968 # from the output so that they don't get included in the library
18969 # dependencies.
18970 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"'
18973 if test "$GXX" = yes; then
18974 if test $with_gnu_ld = no; then
18975 case $host_cpu in
18976 hppa*64*)
18977 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18979 ia64*)
18980 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18983 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'
18985 esac
18987 else
18988 # FIXME: insert proper C++ library support
18989 ld_shlibs_CXX=no
18992 esac
18995 interix[3-9]*)
18996 hardcode_direct_CXX=no
18997 hardcode_shlibpath_var_CXX=no
18998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18999 export_dynamic_flag_spec_CXX='${wl}-E'
19000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19001 # Instead, shared libraries are loaded at an image base (0x10000000 by
19002 # default) and relocated if they conflict, which is a slow very memory
19003 # consuming and fragmenting process. To avoid this, we pick a random,
19004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19006 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'
19007 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'
19009 irix5* | irix6*)
19010 case $cc_basename in
19011 CC*)
19012 # SGI C++
19013 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'
19015 # Archives containing C++ object files must be created using
19016 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19017 # necessary to make sure instantiated templates are included
19018 # in the archive.
19019 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19022 if test "$GXX" = yes; then
19023 if test "$with_gnu_ld" = no; then
19024 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'
19025 else
19026 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'
19029 link_all_deplibs_CXX=yes
19031 esac
19032 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19033 hardcode_libdir_separator_CXX=:
19034 inherit_rpath_CXX=yes
19037 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19038 case $cc_basename in
19039 KCC*)
19040 # Kuck and Associates, Inc. (KAI) C++ Compiler
19042 # KCC will only create a shared library if the output file
19043 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19044 # to its proper name (with version) after linking.
19045 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'
19046 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'
19047 # Commands to make compiler produce verbose output that lists
19048 # what "hidden" libraries, object files and flags are used when
19049 # linking a shared library.
19051 # There doesn't appear to be a way to prevent this compiler from
19052 # explicitly linking system object files so we need to strip them
19053 # from the output so that they don't get included in the library
19054 # dependencies.
19055 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"'
19057 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19058 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19060 # Archives containing C++ object files must be created using
19061 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19062 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19064 icpc* | ecpc* )
19065 # Intel C++
19066 with_gnu_ld=yes
19067 # version 8.0 and above of icpc choke on multiply defined symbols
19068 # if we add $predep_objects and $postdep_objects, however 7.1 and
19069 # earlier do not add the objects themselves.
19070 case `$CC -V 2>&1` in
19071 *"Version 7."*)
19072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19073 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'
19075 *) # Version 8.0 or newer
19076 tmp_idyn=
19077 case $host_cpu in
19078 ia64*) tmp_idyn=' -i_dynamic';;
19079 esac
19080 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19081 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'
19083 esac
19084 archive_cmds_need_lc_CXX=no
19085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19087 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19089 pgCC* | pgcpp*)
19090 # Portland Group C++ compiler
19091 case `$CC -V` in
19092 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19093 prelink_cmds_CXX='tpldir=Template.dir~
19094 rm -rf $tpldir~
19095 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19096 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19097 old_archive_cmds_CXX='tpldir=Template.dir~
19098 rm -rf $tpldir~
19099 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19100 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19101 $RANLIB $oldlib'
19102 archive_cmds_CXX='tpldir=Template.dir~
19103 rm -rf $tpldir~
19104 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19105 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19106 archive_expsym_cmds_CXX='tpldir=Template.dir~
19107 rm -rf $tpldir~
19108 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19109 $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'
19111 *) # Version 6 and above use weak symbols
19112 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19113 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'
19115 esac
19117 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19119 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'
19121 cxx*)
19122 # Compaq C++
19123 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19124 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'
19126 runpath_var=LD_RUN_PATH
19127 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19128 hardcode_libdir_separator_CXX=:
19130 # Commands to make compiler produce verbose output that lists
19131 # what "hidden" libraries, object files and flags are used when
19132 # linking a shared library.
19134 # There doesn't appear to be a way to prevent this compiler from
19135 # explicitly linking system object files so we need to strip them
19136 # from the output so that they don't get included in the library
19137 # dependencies.
19138 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'
19140 xl* | mpixl* | bgxl*)
19141 # IBM XL 8.0 on PPC, with GNU ld
19142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19144 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19145 if test "x$supports_anon_versioning" = xyes; then
19146 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19148 echo "local: *; };" >> $output_objdir/$libname.ver~
19149 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19153 case `$CC -V 2>&1 | sed 5q` in
19154 *Sun\ C*)
19155 # Sun C++ 5.9
19156 no_undefined_flag_CXX=' -zdefs'
19157 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19158 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'
19159 hardcode_libdir_flag_spec_CXX='-R$libdir'
19160 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'
19161 compiler_needs_object_CXX=yes
19163 # Not sure whether something based on
19164 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19165 # would be better.
19166 output_verbose_link_cmd='func_echo_all'
19168 # Archives containing C++ object files must be created using
19169 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19170 # necessary to make sure instantiated templates are included
19171 # in the archive.
19172 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19174 esac
19176 esac
19179 lynxos*)
19180 # FIXME: insert proper C++ library support
19181 ld_shlibs_CXX=no
19184 m88k*)
19185 # FIXME: insert proper C++ library support
19186 ld_shlibs_CXX=no
19189 mvs*)
19190 case $cc_basename in
19191 cxx*)
19192 # FIXME: insert proper C++ library support
19193 ld_shlibs_CXX=no
19196 # FIXME: insert proper C++ library support
19197 ld_shlibs_CXX=no
19199 esac
19202 netbsd*)
19203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19204 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19205 wlarc=
19206 hardcode_libdir_flag_spec_CXX='-R$libdir'
19207 hardcode_direct_CXX=yes
19208 hardcode_shlibpath_var_CXX=no
19210 # Workaround some broken pre-1.5 toolchains
19211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19214 *nto* | *qnx*)
19215 ld_shlibs_CXX=yes
19218 openbsd2*)
19219 # C++ shared libraries are fairly broken
19220 ld_shlibs_CXX=no
19223 openbsd*)
19224 if test -f /usr/libexec/ld.so; then
19225 hardcode_direct_CXX=yes
19226 hardcode_shlibpath_var_CXX=no
19227 hardcode_direct_absolute_CXX=yes
19228 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19231 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19232 export_dynamic_flag_spec_CXX='${wl}-E'
19233 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19235 output_verbose_link_cmd=func_echo_all
19236 else
19237 ld_shlibs_CXX=no
19241 osf3* | osf4* | osf5*)
19242 case $cc_basename in
19243 KCC*)
19244 # Kuck and Associates, Inc. (KAI) C++ Compiler
19246 # KCC will only create a shared library if the output file
19247 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19248 # to its proper name (with version) after linking.
19249 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'
19251 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19252 hardcode_libdir_separator_CXX=:
19254 # Archives containing C++ object files must be created using
19255 # the KAI C++ compiler.
19256 case $host in
19257 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19258 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19259 esac
19261 RCC*)
19262 # Rational C++ 2.4.1
19263 # FIXME: insert proper C++ library support
19264 ld_shlibs_CXX=no
19266 cxx*)
19267 case $host in
19268 osf3*)
19269 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19270 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'
19271 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19274 allow_undefined_flag_CXX=' -expect_unresolved \*'
19275 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'
19276 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19277 echo "-hidden">> $lib.exp~
19278 $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~
19279 $RM $lib.exp'
19280 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19282 esac
19284 hardcode_libdir_separator_CXX=:
19286 # Commands to make compiler produce verbose output that lists
19287 # what "hidden" libraries, object files and flags are used when
19288 # linking a shared library.
19290 # There doesn't appear to be a way to prevent this compiler from
19291 # explicitly linking system object files so we need to strip them
19292 # from the output so that they don't get included in the library
19293 # dependencies.
19294 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"'
19297 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19298 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19299 case $host in
19300 osf3*)
19301 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'
19304 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'
19306 esac
19308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19309 hardcode_libdir_separator_CXX=:
19311 # Commands to make compiler produce verbose output that lists
19312 # what "hidden" libraries, object files and flags are used when
19313 # linking a shared library.
19314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19316 else
19317 # FIXME: insert proper C++ library support
19318 ld_shlibs_CXX=no
19321 esac
19324 psos*)
19325 # FIXME: insert proper C++ library support
19326 ld_shlibs_CXX=no
19329 sunos4*)
19330 case $cc_basename in
19331 CC*)
19332 # Sun C++ 4.x
19333 # FIXME: insert proper C++ library support
19334 ld_shlibs_CXX=no
19336 lcc*)
19337 # Lucid
19338 # FIXME: insert proper C++ library support
19339 ld_shlibs_CXX=no
19342 # FIXME: insert proper C++ library support
19343 ld_shlibs_CXX=no
19345 esac
19348 solaris*)
19349 case $cc_basename in
19350 CC*)
19351 # Sun C++ 4.2, 5.x and Centerline C++
19352 archive_cmds_need_lc_CXX=yes
19353 no_undefined_flag_CXX=' -zdefs'
19354 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19355 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19356 $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'
19358 hardcode_libdir_flag_spec_CXX='-R$libdir'
19359 hardcode_shlibpath_var_CXX=no
19360 case $host_os in
19361 solaris2.[0-5] | solaris2.[0-5].*) ;;
19363 # The compiler driver will combine and reorder linker options,
19364 # but understands `-z linker_flag'.
19365 # Supported since Solaris 2.6 (maybe 2.5.1?)
19366 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19368 esac
19369 link_all_deplibs_CXX=yes
19371 output_verbose_link_cmd='func_echo_all'
19373 # Archives containing C++ object files must be created using
19374 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19375 # necessary to make sure instantiated templates are included
19376 # in the archive.
19377 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19379 gcx*)
19380 # Green Hills C++ Compiler
19381 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19383 # The C++ compiler must be used to create the archive.
19384 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19387 # GNU C++ compiler with Solaris linker
19388 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19389 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19390 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19391 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19392 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19393 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19395 # Commands to make compiler produce verbose output that lists
19396 # what "hidden" libraries, object files and flags are used when
19397 # linking a shared library.
19398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19399 else
19400 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19401 # platform.
19402 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19403 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19404 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19406 # Commands to make compiler produce verbose output that lists
19407 # what "hidden" libraries, object files and flags are used when
19408 # linking a shared library.
19409 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19412 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19413 case $host_os in
19414 solaris2.[0-5] | solaris2.[0-5].*) ;;
19416 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19418 esac
19421 esac
19424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19425 no_undefined_flag_CXX='${wl}-z,text'
19426 archive_cmds_need_lc_CXX=no
19427 hardcode_shlibpath_var_CXX=no
19428 runpath_var='LD_RUN_PATH'
19430 case $cc_basename in
19431 CC*)
19432 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19433 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19436 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19437 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19439 esac
19442 sysv5* | sco3.2v5* | sco5v6*)
19443 # Note: We can NOT use -z defs as we might desire, because we do not
19444 # link with -lc, and that would cause any symbols used from libc to
19445 # always be unresolved, which means just about no library would
19446 # ever link correctly. If we're not using GNU ld we use -z text
19447 # though, which does catch some bad symbols but isn't as heavy-handed
19448 # as -z defs.
19449 no_undefined_flag_CXX='${wl}-z,text'
19450 allow_undefined_flag_CXX='${wl}-z,nodefs'
19451 archive_cmds_need_lc_CXX=no
19452 hardcode_shlibpath_var_CXX=no
19453 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19454 hardcode_libdir_separator_CXX=':'
19455 link_all_deplibs_CXX=yes
19456 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19457 runpath_var='LD_RUN_PATH'
19459 case $cc_basename in
19460 CC*)
19461 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19462 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19463 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19464 '"$old_archive_cmds_CXX"
19465 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19466 '"$reload_cmds_CXX"
19469 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19470 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19472 esac
19475 tandem*)
19476 case $cc_basename in
19477 NCC*)
19478 # NonStop-UX NCC 3.20
19479 # FIXME: insert proper C++ library support
19480 ld_shlibs_CXX=no
19483 # FIXME: insert proper C++ library support
19484 ld_shlibs_CXX=no
19486 esac
19489 vxworks*)
19490 # FIXME: insert proper C++ library support
19491 ld_shlibs_CXX=no
19495 # FIXME: insert proper C++ library support
19496 ld_shlibs_CXX=no
19498 esac
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19501 $as_echo "$ld_shlibs_CXX" >&6; }
19502 test "$ld_shlibs_CXX" = no && can_build_shared=no
19504 GCC_CXX="$GXX"
19505 LD_CXX="$LD"
19507 ## CAVEAT EMPTOR:
19508 ## There is no encapsulation within the following macros, do not change
19509 ## the running order or otherwise move them around unless you know exactly
19510 ## what you are doing...
19511 # Dependencies to place before and after the object being linked:
19512 predep_objects_CXX=
19513 postdep_objects_CXX=
19514 predeps_CXX=
19515 postdeps_CXX=
19516 compiler_lib_search_path_CXX=
19518 cat > conftest.$ac_ext <<_LT_EOF
19519 class Foo
19521 public:
19522 Foo (void) { a = 0; }
19523 private:
19524 int a;
19526 _LT_EOF
19528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19529 (eval $ac_compile) 2>&5
19530 ac_status=$?
19531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19532 test $ac_status = 0; }; then
19533 # Parse the compiler output and extract the necessary
19534 # objects, libraries and library flags.
19536 # Sentinel used to keep track of whether or not we are before
19537 # the conftest object file.
19538 pre_test_object_deps_done=no
19540 for p in `eval "$output_verbose_link_cmd"`; do
19541 case $p in
19543 -L* | -R* | -l*)
19544 # Some compilers place space between "-{L,R}" and the path.
19545 # Remove the space.
19546 if test $p = "-L" ||
19547 test $p = "-R"; then
19548 prev=$p
19549 continue
19550 else
19551 prev=
19554 if test "$pre_test_object_deps_done" = no; then
19555 case $p in
19556 -L* | -R*)
19557 # Internal compiler library paths should come after those
19558 # provided the user. The postdeps already come after the
19559 # user supplied libs so there is no need to process them.
19560 if test -z "$compiler_lib_search_path_CXX"; then
19561 compiler_lib_search_path_CXX="${prev}${p}"
19562 else
19563 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19566 # The "-l" case would never come before the object being
19567 # linked, so don't bother handling this case.
19568 esac
19569 else
19570 if test -z "$postdeps_CXX"; then
19571 postdeps_CXX="${prev}${p}"
19572 else
19573 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19578 *.$objext)
19579 # This assumes that the test object file only shows up
19580 # once in the compiler output.
19581 if test "$p" = "conftest.$objext"; then
19582 pre_test_object_deps_done=yes
19583 continue
19586 if test "$pre_test_object_deps_done" = no; then
19587 if test -z "$predep_objects_CXX"; then
19588 predep_objects_CXX="$p"
19589 else
19590 predep_objects_CXX="$predep_objects_CXX $p"
19592 else
19593 if test -z "$postdep_objects_CXX"; then
19594 postdep_objects_CXX="$p"
19595 else
19596 postdep_objects_CXX="$postdep_objects_CXX $p"
19601 *) ;; # Ignore the rest.
19603 esac
19604 done
19606 # Clean up.
19607 rm -f a.out a.exe
19608 else
19609 echo "libtool.m4: error: problem compiling CXX test program"
19612 $RM -f confest.$objext
19614 # PORTME: override above test on systems where it is broken
19615 case $host_os in
19616 interix[3-9]*)
19617 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19618 # hack all around it, let's just trust "g++" to DTRT.
19619 predep_objects_CXX=
19620 postdep_objects_CXX=
19621 postdeps_CXX=
19624 linux*)
19625 case `$CC -V 2>&1 | sed 5q` in
19626 *Sun\ C*)
19627 # Sun C++ 5.9
19629 # The more standards-conforming stlport4 library is
19630 # incompatible with the Cstd library. Avoid specifying
19631 # it if it's in CXXFLAGS. Ignore libCrun as
19632 # -library=stlport4 depends on it.
19633 case " $CXX $CXXFLAGS " in
19634 *" -library=stlport4 "*)
19635 solaris_use_stlport4=yes
19637 esac
19639 if test "$solaris_use_stlport4" != yes; then
19640 postdeps_CXX='-library=Cstd -library=Crun'
19643 esac
19646 solaris*)
19647 case $cc_basename in
19648 CC*)
19649 # The more standards-conforming stlport4 library is
19650 # incompatible with the Cstd library. Avoid specifying
19651 # it if it's in CXXFLAGS. Ignore libCrun as
19652 # -library=stlport4 depends on it.
19653 case " $CXX $CXXFLAGS " in
19654 *" -library=stlport4 "*)
19655 solaris_use_stlport4=yes
19657 esac
19659 # Adding this requires a known-good setup of shared libraries for
19660 # Sun compiler versions before 5.6, else PIC objects from an old
19661 # archive will be linked into the output, leading to subtle bugs.
19662 if test "$solaris_use_stlport4" != yes; then
19663 postdeps_CXX='-library=Cstd -library=Crun'
19666 esac
19668 esac
19671 case " $postdeps_CXX " in
19672 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19673 esac
19674 compiler_lib_search_dirs_CXX=
19675 if test -n "${compiler_lib_search_path_CXX}"; then
19676 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19709 lt_prog_compiler_wl_CXX=
19710 lt_prog_compiler_pic_CXX=
19711 lt_prog_compiler_static_CXX=
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19714 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19716 # C++ specific cases for pic, static, wl, etc.
19717 if test "$GXX" = yes; then
19718 lt_prog_compiler_wl_CXX='-Wl,'
19719 lt_prog_compiler_static_CXX='-static'
19721 case $host_os in
19722 aix*)
19723 # All AIX code is PIC.
19724 if test "$host_cpu" = ia64; then
19725 # AIX 5 now supports IA64 processor
19726 lt_prog_compiler_static_CXX='-Bstatic'
19728 lt_prog_compiler_pic_CXX='-fPIC'
19731 amigaos*)
19732 case $host_cpu in
19733 powerpc)
19734 # see comment about AmigaOS4 .so support
19735 lt_prog_compiler_pic_CXX='-fPIC'
19737 m68k)
19738 # FIXME: we need at least 68020 code to build shared libraries, but
19739 # adding the `-m68020' flag to GCC prevents building anything better,
19740 # like `-m68040'.
19741 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19743 esac
19746 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19747 # PIC is the default for these OSes.
19749 mingw* | cygwin* | os2* | pw32* | cegcc*)
19750 # This hack is so that the source file can tell whether it is being
19751 # built for inclusion in a dll (and should export symbols for example).
19752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19753 # (--disable-auto-import) libraries
19754 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19756 darwin* | rhapsody*)
19757 # PIC is the default on this platform
19758 # Common symbols not allowed in MH_DYLIB files
19759 lt_prog_compiler_pic_CXX='-fno-common'
19761 *djgpp*)
19762 # DJGPP does not support shared libraries at all
19763 lt_prog_compiler_pic_CXX=
19765 haiku*)
19766 # PIC is the default for Haiku.
19767 # The "-static" flag exists, but is broken.
19768 lt_prog_compiler_static_CXX=
19770 interix[3-9]*)
19771 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19772 # Instead, we relocate shared libraries at runtime.
19774 sysv4*MP*)
19775 if test -d /usr/nec; then
19776 lt_prog_compiler_pic_CXX=-Kconform_pic
19779 hpux*)
19780 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19781 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19782 # sets the default TLS model and affects inlining.
19783 case $host_cpu in
19784 hppa*64*)
19787 lt_prog_compiler_pic_CXX='-fPIC'
19789 esac
19791 *qnx* | *nto*)
19792 # QNX uses GNU C++, but need to define -shared option too, otherwise
19793 # it will coredump.
19794 lt_prog_compiler_pic_CXX='-fPIC -shared'
19797 lt_prog_compiler_pic_CXX='-fPIC'
19799 esac
19800 else
19801 case $host_os in
19802 aix[4-9]*)
19803 # All AIX code is PIC.
19804 if test "$host_cpu" = ia64; then
19805 # AIX 5 now supports IA64 processor
19806 lt_prog_compiler_static_CXX='-Bstatic'
19807 else
19808 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19811 chorus*)
19812 case $cc_basename in
19813 cxch68*)
19814 # Green Hills C++ Compiler
19815 # _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"
19817 esac
19819 dgux*)
19820 case $cc_basename in
19821 ec++*)
19822 lt_prog_compiler_pic_CXX='-KPIC'
19824 ghcx*)
19825 # Green Hills C++ Compiler
19826 lt_prog_compiler_pic_CXX='-pic'
19830 esac
19832 freebsd* | dragonfly*)
19833 # FreeBSD uses GNU C++
19835 hpux9* | hpux10* | hpux11*)
19836 case $cc_basename in
19837 CC*)
19838 lt_prog_compiler_wl_CXX='-Wl,'
19839 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19840 if test "$host_cpu" != ia64; then
19841 lt_prog_compiler_pic_CXX='+Z'
19844 aCC*)
19845 lt_prog_compiler_wl_CXX='-Wl,'
19846 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19847 case $host_cpu in
19848 hppa*64*|ia64*)
19849 # +Z the default
19852 lt_prog_compiler_pic_CXX='+Z'
19854 esac
19858 esac
19860 interix*)
19861 # This is c89, which is MS Visual C++ (no shared libs)
19862 # Anyone wants to do a port?
19864 irix5* | irix6* | nonstopux*)
19865 case $cc_basename in
19866 CC*)
19867 lt_prog_compiler_wl_CXX='-Wl,'
19868 lt_prog_compiler_static_CXX='-non_shared'
19869 # CC pic flag -KPIC is the default.
19873 esac
19875 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19876 case $cc_basename in
19877 KCC*)
19878 # KAI C++ Compiler
19879 lt_prog_compiler_wl_CXX='--backend -Wl,'
19880 lt_prog_compiler_pic_CXX='-fPIC'
19882 ecpc* )
19883 # old Intel C++ for x86_64 which still supported -KPIC.
19884 lt_prog_compiler_wl_CXX='-Wl,'
19885 lt_prog_compiler_pic_CXX='-KPIC'
19886 lt_prog_compiler_static_CXX='-static'
19888 icpc* )
19889 # Intel C++, used to be incompatible with GCC.
19890 # ICC 10 doesn't accept -KPIC any more.
19891 lt_prog_compiler_wl_CXX='-Wl,'
19892 lt_prog_compiler_pic_CXX='-fPIC'
19893 lt_prog_compiler_static_CXX='-static'
19895 pgCC* | pgcpp*)
19896 # Portland Group C++ compiler
19897 lt_prog_compiler_wl_CXX='-Wl,'
19898 lt_prog_compiler_pic_CXX='-fpic'
19899 lt_prog_compiler_static_CXX='-Bstatic'
19901 cxx*)
19902 # Compaq C++
19903 # Make sure the PIC flag is empty. It appears that all Alpha
19904 # Linux and Compaq Tru64 Unix objects are PIC.
19905 lt_prog_compiler_pic_CXX=
19906 lt_prog_compiler_static_CXX='-non_shared'
19908 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19909 # IBM XL 8.0, 9.0 on PPC and BlueGene
19910 lt_prog_compiler_wl_CXX='-Wl,'
19911 lt_prog_compiler_pic_CXX='-qpic'
19912 lt_prog_compiler_static_CXX='-qstaticlink'
19915 case `$CC -V 2>&1 | sed 5q` in
19916 *Sun\ C*)
19917 # Sun C++ 5.9
19918 lt_prog_compiler_pic_CXX='-KPIC'
19919 lt_prog_compiler_static_CXX='-Bstatic'
19920 lt_prog_compiler_wl_CXX='-Qoption ld '
19922 esac
19924 esac
19926 lynxos*)
19928 m88k*)
19930 mvs*)
19931 case $cc_basename in
19932 cxx*)
19933 lt_prog_compiler_pic_CXX='-W c,exportall'
19937 esac
19939 netbsd*)
19941 *qnx* | *nto*)
19942 # QNX uses GNU C++, but need to define -shared option too, otherwise
19943 # it will coredump.
19944 lt_prog_compiler_pic_CXX='-fPIC -shared'
19946 osf3* | osf4* | osf5*)
19947 case $cc_basename in
19948 KCC*)
19949 lt_prog_compiler_wl_CXX='--backend -Wl,'
19951 RCC*)
19952 # Rational C++ 2.4.1
19953 lt_prog_compiler_pic_CXX='-pic'
19955 cxx*)
19956 # Digital/Compaq C++
19957 lt_prog_compiler_wl_CXX='-Wl,'
19958 # Make sure the PIC flag is empty. It appears that all Alpha
19959 # Linux and Compaq Tru64 Unix objects are PIC.
19960 lt_prog_compiler_pic_CXX=
19961 lt_prog_compiler_static_CXX='-non_shared'
19965 esac
19967 psos*)
19969 solaris*)
19970 case $cc_basename in
19971 CC*)
19972 # Sun C++ 4.2, 5.x and Centerline C++
19973 lt_prog_compiler_pic_CXX='-KPIC'
19974 lt_prog_compiler_static_CXX='-Bstatic'
19975 lt_prog_compiler_wl_CXX='-Qoption ld '
19977 gcx*)
19978 # Green Hills C++ Compiler
19979 lt_prog_compiler_pic_CXX='-PIC'
19983 esac
19985 sunos4*)
19986 case $cc_basename in
19987 CC*)
19988 # Sun C++ 4.x
19989 lt_prog_compiler_pic_CXX='-pic'
19990 lt_prog_compiler_static_CXX='-Bstatic'
19992 lcc*)
19993 # Lucid
19994 lt_prog_compiler_pic_CXX='-pic'
19998 esac
20000 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20001 case $cc_basename in
20002 CC*)
20003 lt_prog_compiler_wl_CXX='-Wl,'
20004 lt_prog_compiler_pic_CXX='-KPIC'
20005 lt_prog_compiler_static_CXX='-Bstatic'
20007 esac
20009 tandem*)
20010 case $cc_basename in
20011 NCC*)
20012 # NonStop-UX NCC 3.20
20013 lt_prog_compiler_pic_CXX='-KPIC'
20017 esac
20019 vxworks*)
20022 lt_prog_compiler_can_build_shared_CXX=no
20024 esac
20027 case $host_os in
20028 # For platforms which do not support PIC, -DPIC is meaningless:
20029 *djgpp*)
20030 lt_prog_compiler_pic_CXX=
20033 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20035 esac
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20037 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20042 # Check to make sure the PIC flag actually works.
20044 if test -n "$lt_prog_compiler_pic_CXX"; then
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20046 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20047 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20048 $as_echo_n "(cached) " >&6
20049 else
20050 lt_cv_prog_compiler_pic_works_CXX=no
20051 ac_outfile=conftest.$ac_objext
20052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20053 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20054 # Insert the option either (1) after the last *FLAGS variable, or
20055 # (2) before a word containing "conftest.", or (3) at the end.
20056 # Note that $ac_compile itself does not contain backslashes and begins
20057 # with a dollar sign (not a hyphen), so the echo should work correctly.
20058 # The option is referenced via a variable to avoid confusing sed.
20059 lt_compile=`echo "$ac_compile" | $SED \
20060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20062 -e 's:$: $lt_compiler_flag:'`
20063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20064 (eval "$lt_compile" 2>conftest.err)
20065 ac_status=$?
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 if (exit $ac_status) && test -s "$ac_outfile"; then
20069 # The compiler can only warn and ignore the option if not recognized
20070 # So say no if there are warnings other than the usual output.
20071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20074 lt_cv_prog_compiler_pic_works_CXX=yes
20077 $RM conftest*
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20081 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20083 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20084 case $lt_prog_compiler_pic_CXX in
20085 "" | " "*) ;;
20086 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20087 esac
20088 else
20089 lt_prog_compiler_pic_CXX=
20090 lt_prog_compiler_can_build_shared_CXX=no
20098 # Check to make sure the static flag actually works.
20100 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20102 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20103 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20104 $as_echo_n "(cached) " >&6
20105 else
20106 lt_cv_prog_compiler_static_works_CXX=no
20107 save_LDFLAGS="$LDFLAGS"
20108 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20109 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20110 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20111 # The linker can only warn and ignore the option if not recognized
20112 # So say no if there are warnings
20113 if test -s conftest.err; then
20114 # Append any errors to the config.log.
20115 cat conftest.err 1>&5
20116 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20118 if diff conftest.exp conftest.er2 >/dev/null; then
20119 lt_cv_prog_compiler_static_works_CXX=yes
20121 else
20122 lt_cv_prog_compiler_static_works_CXX=yes
20125 $RM -r conftest*
20126 LDFLAGS="$save_LDFLAGS"
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20130 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20132 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20134 else
20135 lt_prog_compiler_static_CXX=
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20143 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20144 $as_echo_n "(cached) " >&6
20145 else
20146 lt_cv_prog_compiler_c_o_CXX=no
20147 $RM -r conftest 2>/dev/null
20148 mkdir conftest
20149 cd conftest
20150 mkdir out
20151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20153 lt_compiler_flag="-o out/conftest2.$ac_objext"
20154 # Insert the option either (1) after the last *FLAGS variable, or
20155 # (2) before a word containing "conftest.", or (3) at the end.
20156 # Note that $ac_compile itself does not contain backslashes and begins
20157 # with a dollar sign (not a hyphen), so the echo should work correctly.
20158 lt_compile=`echo "$ac_compile" | $SED \
20159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20161 -e 's:$: $lt_compiler_flag:'`
20162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20163 (eval "$lt_compile" 2>out/conftest.err)
20164 ac_status=$?
20165 cat out/conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20168 then
20169 # The compiler can only warn and ignore the option if not recognized
20170 # So say no if there are warnings
20171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20174 lt_cv_prog_compiler_c_o_CXX=yes
20177 chmod u+w . 2>&5
20178 $RM conftest*
20179 # SGI C++ compiler will create directory out/ii_files/ for
20180 # template instantiation
20181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20182 $RM out/* && rmdir out
20183 cd ..
20184 $RM -r conftest
20185 $RM conftest*
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20189 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20195 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20196 $as_echo_n "(cached) " >&6
20197 else
20198 lt_cv_prog_compiler_c_o_CXX=no
20199 $RM -r conftest 2>/dev/null
20200 mkdir conftest
20201 cd conftest
20202 mkdir out
20203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20205 lt_compiler_flag="-o out/conftest2.$ac_objext"
20206 # Insert the option either (1) after the last *FLAGS variable, or
20207 # (2) before a word containing "conftest.", or (3) at the end.
20208 # Note that $ac_compile itself does not contain backslashes and begins
20209 # with a dollar sign (not a hyphen), so the echo should work correctly.
20210 lt_compile=`echo "$ac_compile" | $SED \
20211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20213 -e 's:$: $lt_compiler_flag:'`
20214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20215 (eval "$lt_compile" 2>out/conftest.err)
20216 ac_status=$?
20217 cat out/conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20220 then
20221 # The compiler can only warn and ignore the option if not recognized
20222 # So say no if there are warnings
20223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20226 lt_cv_prog_compiler_c_o_CXX=yes
20229 chmod u+w . 2>&5
20230 $RM conftest*
20231 # SGI C++ compiler will create directory out/ii_files/ for
20232 # template instantiation
20233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20234 $RM out/* && rmdir out
20235 cd ..
20236 $RM -r conftest
20237 $RM conftest*
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20241 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20246 hard_links="nottested"
20247 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20248 # do not overwrite the value of need_locks provided by the user
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20250 $as_echo_n "checking if we can lock with hard links... " >&6; }
20251 hard_links=yes
20252 $RM conftest*
20253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20254 touch conftest.a
20255 ln conftest.a conftest.b 2>&5 || hard_links=no
20256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20258 $as_echo "$hard_links" >&6; }
20259 if test "$hard_links" = no; then
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20261 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20262 need_locks=warn
20264 else
20265 need_locks=no
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20271 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20273 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20274 case $host_os in
20275 aix[4-9]*)
20276 # If we're using GNU nm, then we don't want the "-C" option.
20277 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20278 # Also, AIX nm treats weak defined symbols like other global defined
20279 # symbols, whereas GNU nm marks them as "W".
20280 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20281 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'
20282 else
20283 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'
20286 pw32*)
20287 export_symbols_cmds_CXX="$ltdll_cmds"
20289 cygwin* | mingw* | cegcc*)
20290 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'
20293 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20295 esac
20296 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20299 $as_echo "$ld_shlibs_CXX" >&6; }
20300 test "$ld_shlibs_CXX" = no && can_build_shared=no
20302 with_gnu_ld_CXX=$with_gnu_ld
20310 # Do we need to explicitly link libc?
20312 case "x$archive_cmds_need_lc_CXX" in
20313 x|xyes)
20314 # Assume -lc should be added
20315 archive_cmds_need_lc_CXX=yes
20317 if test "$enable_shared" = yes && test "$GCC" = yes; then
20318 case $archive_cmds_CXX in
20319 *'~'*)
20320 # FIXME: we may have to deal with multi-command sequences.
20322 '$CC '*)
20323 # Test whether the compiler implicitly links with -lc since on some
20324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20325 # to ld, don't add -lc before -lgcc.
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20327 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20328 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20329 $as_echo_n "(cached) " >&6
20330 else
20331 $RM conftest*
20332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20335 (eval $ac_compile) 2>&5
20336 ac_status=$?
20337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20338 test $ac_status = 0; } 2>conftest.err; then
20339 soname=conftest
20340 lib=conftest
20341 libobjs=conftest.$ac_objext
20342 deplibs=
20343 wl=$lt_prog_compiler_wl_CXX
20344 pic_flag=$lt_prog_compiler_pic_CXX
20345 compiler_flags=-v
20346 linker_flags=-v
20347 verstring=
20348 output_objdir=.
20349 libname=conftest
20350 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20351 allow_undefined_flag_CXX=
20352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20353 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20354 ac_status=$?
20355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20356 test $ac_status = 0; }
20357 then
20358 lt_cv_archive_cmds_need_lc_CXX=no
20359 else
20360 lt_cv_archive_cmds_need_lc_CXX=yes
20362 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20363 else
20364 cat conftest.err 1>&5
20366 $RM conftest*
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20370 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20371 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20373 esac
20376 esac
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20442 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20444 library_names_spec=
20445 libname_spec='lib$name'
20446 soname_spec=
20447 shrext_cmds=".so"
20448 postinstall_cmds=
20449 postuninstall_cmds=
20450 finish_cmds=
20451 finish_eval=
20452 shlibpath_var=
20453 shlibpath_overrides_runpath=unknown
20454 version_type=none
20455 dynamic_linker="$host_os ld.so"
20456 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20457 need_lib_prefix=unknown
20458 hardcode_into_libs=no
20460 # when you set need_version to no, make sure it does not cause -set_version
20461 # flags to be left without arguments
20462 need_version=unknown
20464 case $host_os in
20465 aix3*)
20466 version_type=linux
20467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20468 shlibpath_var=LIBPATH
20470 # AIX 3 has no versioning support, so we append a major version to the name.
20471 soname_spec='${libname}${release}${shared_ext}$major'
20474 aix[4-9]*)
20475 version_type=linux
20476 need_lib_prefix=no
20477 need_version=no
20478 hardcode_into_libs=yes
20479 if test "$host_cpu" = ia64; then
20480 # AIX 5 supports IA64
20481 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20482 shlibpath_var=LD_LIBRARY_PATH
20483 else
20484 # With GCC up to 2.95.x, collect2 would create an import file
20485 # for dependence libraries. The import file would start with
20486 # the line `#! .'. This would cause the generated library to
20487 # depend on `.', always an invalid library. This was fixed in
20488 # development snapshots of GCC prior to 3.0.
20489 case $host_os in
20490 aix4 | aix4.[01] | aix4.[01].*)
20491 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20492 echo ' yes '
20493 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20495 else
20496 can_build_shared=no
20499 esac
20500 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20501 # soname into executable. Probably we can add versioning support to
20502 # collect2, so additional links can be useful in future.
20503 if test "$aix_use_runtimelinking" = yes; then
20504 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20505 # instead of lib<name>.a to let people know that these are not
20506 # typical AIX shared libraries.
20507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20508 else
20509 # We preserve .a as extension for shared libraries through AIX4.2
20510 # and later when we are not doing run time linking.
20511 library_names_spec='${libname}${release}.a $libname.a'
20512 soname_spec='${libname}${release}${shared_ext}$major'
20514 shlibpath_var=LIBPATH
20518 amigaos*)
20519 case $host_cpu in
20520 powerpc)
20521 # Since July 2007 AmigaOS4 officially supports .so libraries.
20522 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525 m68k)
20526 library_names_spec='$libname.ixlibrary $libname.a'
20527 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20528 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'
20530 esac
20533 beos*)
20534 library_names_spec='${libname}${shared_ext}'
20535 dynamic_linker="$host_os ld.so"
20536 shlibpath_var=LIBRARY_PATH
20539 bsdi[45]*)
20540 version_type=linux
20541 need_version=no
20542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20543 soname_spec='${libname}${release}${shared_ext}$major'
20544 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20545 shlibpath_var=LD_LIBRARY_PATH
20546 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20547 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20548 # the default ld.so.conf also contains /usr/contrib/lib and
20549 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20550 # libtool to hard-code these into programs
20553 cygwin* | mingw* | pw32* | cegcc*)
20554 version_type=windows
20555 shrext_cmds=".dll"
20556 need_version=no
20557 need_lib_prefix=no
20559 case $GCC,$host_os in
20560 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20561 library_names_spec='$libname.dll.a'
20562 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20563 postinstall_cmds='base_file=`basename \${file}`~
20564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20565 dldir=$destdir/`dirname \$dlpath`~
20566 test -d \$dldir || mkdir -p \$dldir~
20567 $install_prog $dir/$dlname \$dldir/$dlname~
20568 chmod a+x \$dldir/$dlname~
20569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20573 dlpath=$dir/\$dldll~
20574 $RM \$dlpath'
20575 shlibpath_overrides_runpath=yes
20577 case $host_os in
20578 cygwin*)
20579 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20580 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20583 mingw* | cegcc*)
20584 # MinGW DLLs use traditional 'lib' prefix
20585 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20587 pw32*)
20588 # pw32 DLLs use 'pw' prefix rather than 'lib'
20589 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20591 esac
20595 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20597 esac
20598 dynamic_linker='Win32 ld.exe'
20599 # FIXME: first we should search . and the directory the executable is in
20600 shlibpath_var=PATH
20603 darwin* | rhapsody*)
20604 dynamic_linker="$host_os dyld"
20605 version_type=darwin
20606 need_lib_prefix=no
20607 need_version=no
20608 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20609 soname_spec='${libname}${release}${major}$shared_ext'
20610 shlibpath_overrides_runpath=yes
20611 shlibpath_var=DYLD_LIBRARY_PATH
20612 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20614 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20617 dgux*)
20618 version_type=linux
20619 need_lib_prefix=no
20620 need_version=no
20621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20622 soname_spec='${libname}${release}${shared_ext}$major'
20623 shlibpath_var=LD_LIBRARY_PATH
20626 freebsd* | dragonfly*)
20627 # DragonFly does not have aout. When/if they implement a new
20628 # versioning mechanism, adjust this.
20629 if test -x /usr/bin/objformat; then
20630 objformat=`/usr/bin/objformat`
20631 else
20632 case $host_os in
20633 freebsd[23].*) objformat=aout ;;
20634 *) objformat=elf ;;
20635 esac
20637 version_type=freebsd-$objformat
20638 case $version_type in
20639 freebsd-elf*)
20640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20641 need_version=no
20642 need_lib_prefix=no
20644 freebsd-*)
20645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20646 need_version=yes
20648 esac
20649 shlibpath_var=LD_LIBRARY_PATH
20650 case $host_os in
20651 freebsd2.*)
20652 shlibpath_overrides_runpath=yes
20654 freebsd3.[01]* | freebsdelf3.[01]*)
20655 shlibpath_overrides_runpath=yes
20656 hardcode_into_libs=yes
20658 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20659 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20660 shlibpath_overrides_runpath=no
20661 hardcode_into_libs=yes
20663 *) # from 4.6 on, and DragonFly
20664 shlibpath_overrides_runpath=yes
20665 hardcode_into_libs=yes
20667 esac
20670 gnu*)
20671 version_type=linux
20672 need_lib_prefix=no
20673 need_version=no
20674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20675 soname_spec='${libname}${release}${shared_ext}$major'
20676 shlibpath_var=LD_LIBRARY_PATH
20677 hardcode_into_libs=yes
20680 haiku*)
20681 version_type=linux
20682 need_lib_prefix=no
20683 need_version=no
20684 dynamic_linker="$host_os runtime_loader"
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 shlibpath_var=LIBRARY_PATH
20688 shlibpath_overrides_runpath=yes
20689 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20690 hardcode_into_libs=yes
20693 hpux9* | hpux10* | hpux11*)
20694 # Give a soname corresponding to the major version so that dld.sl refuses to
20695 # link against other versions.
20696 version_type=sunos
20697 need_lib_prefix=no
20698 need_version=no
20699 case $host_cpu in
20700 ia64*)
20701 shrext_cmds='.so'
20702 hardcode_into_libs=yes
20703 dynamic_linker="$host_os dld.so"
20704 shlibpath_var=LD_LIBRARY_PATH
20705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20707 soname_spec='${libname}${release}${shared_ext}$major'
20708 if test "X$HPUX_IA64_MODE" = X32; then
20709 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20710 else
20711 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20715 hppa*64*)
20716 shrext_cmds='.sl'
20717 hardcode_into_libs=yes
20718 dynamic_linker="$host_os dld.sl"
20719 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20722 soname_spec='${libname}${release}${shared_ext}$major'
20723 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20727 shrext_cmds='.sl'
20728 dynamic_linker="$host_os dld.sl"
20729 shlibpath_var=SHLIB_PATH
20730 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20732 soname_spec='${libname}${release}${shared_ext}$major'
20734 esac
20735 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20736 postinstall_cmds='chmod 555 $lib'
20737 # or fails outright, so override atomically:
20738 install_override_mode=555
20741 interix[3-9]*)
20742 version_type=linux
20743 need_lib_prefix=no
20744 need_version=no
20745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20746 soname_spec='${libname}${release}${shared_ext}$major'
20747 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20748 shlibpath_var=LD_LIBRARY_PATH
20749 shlibpath_overrides_runpath=no
20750 hardcode_into_libs=yes
20753 irix5* | irix6* | nonstopux*)
20754 case $host_os in
20755 nonstopux*) version_type=nonstopux ;;
20757 if test "$lt_cv_prog_gnu_ld" = yes; then
20758 version_type=linux
20759 else
20760 version_type=irix
20761 fi ;;
20762 esac
20763 need_lib_prefix=no
20764 need_version=no
20765 soname_spec='${libname}${release}${shared_ext}$major'
20766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20767 case $host_os in
20768 irix5* | nonstopux*)
20769 libsuff= shlibsuff=
20772 case $LD in # libtool.m4 will add one of these switches to LD
20773 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20774 libsuff= shlibsuff= libmagic=32-bit;;
20775 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20776 libsuff=32 shlibsuff=N32 libmagic=N32;;
20777 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20778 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20779 *) libsuff= shlibsuff= libmagic=never-match;;
20780 esac
20782 esac
20783 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20784 shlibpath_overrides_runpath=no
20785 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20786 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20787 hardcode_into_libs=yes
20790 # No shared lib support for Linux oldld, aout, or coff.
20791 linux*oldld* | linux*aout* | linux*coff*)
20792 dynamic_linker=no
20795 # This must be Linux ELF.
20796 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20797 version_type=linux
20798 need_lib_prefix=no
20799 need_version=no
20800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20801 soname_spec='${libname}${release}${shared_ext}$major'
20802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20803 shlibpath_var=LD_LIBRARY_PATH
20804 shlibpath_overrides_runpath=no
20806 # Some binutils ld are patched to set DT_RUNPATH
20807 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20808 $as_echo_n "(cached) " >&6
20809 else
20810 lt_cv_shlibpath_overrides_runpath=no
20811 save_LDFLAGS=$LDFLAGS
20812 save_libdir=$libdir
20813 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20814 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20816 /* end confdefs.h. */
20819 main ()
20823 return 0;
20825 _ACEOF
20826 if ac_fn_cxx_try_link "$LINENO"; then :
20827 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20828 lt_cv_shlibpath_overrides_runpath=yes
20831 rm -f core conftest.err conftest.$ac_objext \
20832 conftest$ac_exeext conftest.$ac_ext
20833 LDFLAGS=$save_LDFLAGS
20834 libdir=$save_libdir
20838 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20840 # This implies no fast_install, which is unacceptable.
20841 # Some rework will be needed to allow for fast_install
20842 # before this can be enabled.
20843 hardcode_into_libs=yes
20845 # Append ld.so.conf contents to the search path
20846 if test -f /etc/ld.so.conf; then
20847 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' ' '`
20848 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20851 # We used to test for /lib/ld.so.1 and disable shared libraries on
20852 # powerpc, because MkLinux only supported shared libraries with the
20853 # GNU dynamic linker. Since this was broken with cross compilers,
20854 # most powerpc-linux boxes support dynamic linking these days and
20855 # people can always --disable-shared, the test was removed, and we
20856 # assume the GNU/Linux dynamic linker is in use.
20857 dynamic_linker='GNU/Linux ld.so'
20860 netbsd*)
20861 version_type=sunos
20862 need_lib_prefix=no
20863 need_version=no
20864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20867 dynamic_linker='NetBSD (a.out) ld.so'
20868 else
20869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20870 soname_spec='${libname}${release}${shared_ext}$major'
20871 dynamic_linker='NetBSD ld.elf_so'
20873 shlibpath_var=LD_LIBRARY_PATH
20874 shlibpath_overrides_runpath=yes
20875 hardcode_into_libs=yes
20878 newsos6)
20879 version_type=linux
20880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20881 shlibpath_var=LD_LIBRARY_PATH
20882 shlibpath_overrides_runpath=yes
20885 *nto* | *qnx*)
20886 version_type=qnx
20887 need_lib_prefix=no
20888 need_version=no
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890 soname_spec='${libname}${release}${shared_ext}$major'
20891 shlibpath_var=LD_LIBRARY_PATH
20892 shlibpath_overrides_runpath=no
20893 hardcode_into_libs=yes
20894 dynamic_linker='ldqnx.so'
20897 openbsd*)
20898 version_type=sunos
20899 sys_lib_dlsearch_path_spec="/usr/lib"
20900 need_lib_prefix=no
20901 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20902 case $host_os in
20903 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20904 *) need_version=no ;;
20905 esac
20906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20908 shlibpath_var=LD_LIBRARY_PATH
20909 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20910 case $host_os in
20911 openbsd2.[89] | openbsd2.[89].*)
20912 shlibpath_overrides_runpath=no
20915 shlibpath_overrides_runpath=yes
20917 esac
20918 else
20919 shlibpath_overrides_runpath=yes
20923 os2*)
20924 libname_spec='$name'
20925 shrext_cmds=".dll"
20926 need_lib_prefix=no
20927 library_names_spec='$libname${shared_ext} $libname.a'
20928 dynamic_linker='OS/2 ld.exe'
20929 shlibpath_var=LIBPATH
20932 osf3* | osf4* | osf5*)
20933 version_type=osf
20934 need_lib_prefix=no
20935 need_version=no
20936 soname_spec='${libname}${release}${shared_ext}$major'
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20938 shlibpath_var=LD_LIBRARY_PATH
20939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20943 rdos*)
20944 dynamic_linker=no
20947 solaris*)
20948 version_type=linux
20949 need_lib_prefix=no
20950 need_version=no
20951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20952 soname_spec='${libname}${release}${shared_ext}$major'
20953 shlibpath_var=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath=yes
20955 hardcode_into_libs=yes
20956 # ldd complains unless libraries are executable
20957 postinstall_cmds='chmod +x $lib'
20960 sunos4*)
20961 version_type=sunos
20962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20963 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20964 shlibpath_var=LD_LIBRARY_PATH
20965 shlibpath_overrides_runpath=yes
20966 if test "$with_gnu_ld" = yes; then
20967 need_lib_prefix=no
20969 need_version=yes
20972 sysv4 | sysv4.3*)
20973 version_type=linux
20974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20975 soname_spec='${libname}${release}${shared_ext}$major'
20976 shlibpath_var=LD_LIBRARY_PATH
20977 case $host_vendor in
20978 sni)
20979 shlibpath_overrides_runpath=no
20980 need_lib_prefix=no
20981 runpath_var=LD_RUN_PATH
20983 siemens)
20984 need_lib_prefix=no
20986 motorola)
20987 need_lib_prefix=no
20988 need_version=no
20989 shlibpath_overrides_runpath=no
20990 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20992 esac
20995 sysv4*MP*)
20996 if test -d /usr/nec ;then
20997 version_type=linux
20998 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20999 soname_spec='$libname${shared_ext}.$major'
21000 shlibpath_var=LD_LIBRARY_PATH
21004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21005 version_type=freebsd-elf
21006 need_lib_prefix=no
21007 need_version=no
21008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21009 soname_spec='${libname}${release}${shared_ext}$major'
21010 shlibpath_var=LD_LIBRARY_PATH
21011 shlibpath_overrides_runpath=yes
21012 hardcode_into_libs=yes
21013 if test "$with_gnu_ld" = yes; then
21014 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21015 else
21016 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21017 case $host_os in
21018 sco3.2v5*)
21019 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21021 esac
21023 sys_lib_dlsearch_path_spec='/usr/lib'
21026 tpf*)
21027 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21028 version_type=linux
21029 need_lib_prefix=no
21030 need_version=no
21031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21032 shlibpath_var=LD_LIBRARY_PATH
21033 shlibpath_overrides_runpath=no
21034 hardcode_into_libs=yes
21037 uts4*)
21038 version_type=linux
21039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21040 soname_spec='${libname}${release}${shared_ext}$major'
21041 shlibpath_var=LD_LIBRARY_PATH
21045 dynamic_linker=no
21047 esac
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21049 $as_echo "$dynamic_linker" >&6; }
21050 test "$dynamic_linker" = no && can_build_shared=no
21052 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21053 if test "$GCC" = yes; then
21054 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21057 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21058 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21060 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21061 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21102 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21103 hardcode_action_CXX=
21104 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21105 test -n "$runpath_var_CXX" ||
21106 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21108 # We can hardcode non-existent directories.
21109 if test "$hardcode_direct_CXX" != no &&
21110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21111 # have to relink, otherwise we might link with an installed library
21112 # when we should be linking with a yet-to-be-installed one
21113 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21114 test "$hardcode_minus_L_CXX" != no; then
21115 # Linking always hardcodes the temporary library directory.
21116 hardcode_action_CXX=relink
21117 else
21118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21119 hardcode_action_CXX=immediate
21121 else
21122 # We cannot hardcode anything, or else we can only hardcode existing
21123 # directories.
21124 hardcode_action_CXX=unsupported
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21127 $as_echo "$hardcode_action_CXX" >&6; }
21129 if test "$hardcode_action_CXX" = relink ||
21130 test "$inherit_rpath_CXX" = yes; then
21131 # Fast installation is not supported
21132 enable_fast_install=no
21133 elif test "$shlibpath_overrides_runpath" = yes ||
21134 test "$enable_shared" = no; then
21135 # Fast installation is not necessary
21136 enable_fast_install=needless
21145 fi # test -n "$compiler"
21147 CC=$lt_save_CC
21148 LDCXX=$LD
21149 LD=$lt_save_LD
21150 GCC=$lt_save_GCC
21151 with_gnu_ld=$lt_save_with_gnu_ld
21152 lt_cv_path_LDCXX=$lt_cv_path_LD
21153 lt_cv_path_LD=$lt_save_path_LD
21154 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21155 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21156 fi # test "$_lt_caught_CXX_error" != yes
21158 ac_ext=c
21159 ac_cpp='$CPP $CPPFLAGS'
21160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21179 # Only expand once:
21185 # Identify the assembler which will work hand-in-glove with the newly
21186 # built GCC, so that we can examine its features. This is the assembler
21187 # which will be driven by the driver program.
21189 # If build != host, and we aren't building gas in-tree, we identify a
21190 # build->target assembler and hope that it will have the same features
21191 # as the host->target assembler we'll be using.
21192 gcc_cv_gas_major_version=
21193 gcc_cv_gas_minor_version=
21194 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21196 if test "${gcc_cv_as+set}" = set; then :
21198 else
21200 if test -x "$DEFAULT_ASSEMBLER"; then
21201 gcc_cv_as="$DEFAULT_ASSEMBLER"
21202 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21203 && test -f ../gas/Makefile \
21204 && test x$build = x$host; then
21205 gcc_cv_as=../gas/as-new$build_exeext
21206 elif test -x as$build_exeext; then
21207 # Build using assembler in the current directory.
21208 gcc_cv_as=./as$build_exeext
21209 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21210 gcc_cv_as="$AS_FOR_TARGET"
21211 else
21212 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21213 set dummy $AS_FOR_TARGET; ac_word=$2
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21215 $as_echo_n "checking for $ac_word... " >&6; }
21216 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21217 $as_echo_n "(cached) " >&6
21218 else
21219 case $gcc_cv_as in
21220 [\\/]* | ?:[\\/]*)
21221 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21225 for as_dir in $PATH
21227 IFS=$as_save_IFS
21228 test -z "$as_dir" && as_dir=.
21229 for ac_exec_ext in '' $ac_executable_extensions; do
21230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21231 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21233 break 2
21235 done
21236 done
21237 IFS=$as_save_IFS
21240 esac
21242 gcc_cv_as=$ac_cv_path_gcc_cv_as
21243 if test -n "$gcc_cv_as"; then
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21245 $as_echo "$gcc_cv_as" >&6; }
21246 else
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21248 $as_echo "no" >&6; }
21255 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21257 case "$ORIGINAL_AS_FOR_TARGET" in
21258 ./as | ./as$build_exeext) ;;
21259 *) ac_config_files="$ac_config_files as:exec-tool.in"
21261 esac
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21264 $as_echo_n "checking what assembler to use... " >&6; }
21265 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21266 # Single tree build which includes gas. We want to prefer it
21267 # over whatever linker top-level may have detected, since
21268 # we'll use what we're building after installation anyway.
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21270 $as_echo "newly built gas" >&6; }
21271 in_tree_gas=yes
21272 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21273 for f in $gcc_cv_as_bfd_srcdir/configure \
21274 $gcc_cv_as_gas_srcdir/configure \
21275 $gcc_cv_as_gas_srcdir/configure.in \
21276 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21277 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21278 if test x$gcc_cv_gas_version != x; then
21279 break
21281 done
21282 case $gcc_cv_gas_version in
21283 VERSION=[0-9]*) ;;
21284 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21285 esac
21286 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21287 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21288 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21289 case $gcc_cv_gas_patch_version in
21290 "") gcc_cv_gas_patch_version="0" ;;
21291 esac
21292 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21293 + $gcc_cv_gas_minor_version \) \* 1000 \
21294 + $gcc_cv_gas_patch_version`
21296 in_tree_gas_is_elf=no
21297 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21298 || (grep 'obj_format = multi' ../gas/Makefile \
21299 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21300 then
21301 in_tree_gas_is_elf=yes
21303 else
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21305 $as_echo "$gcc_cv_as" >&6; }
21306 in_tree_gas=no
21309 # Identify the linker which will work hand-in-glove with the newly
21310 # built GCC, so that we can examine its features. This is the linker
21311 # which will be driven by the driver program.
21313 # If build != host, and we aren't building gas in-tree, we identify a
21314 # build->target linker and hope that it will have the same features
21315 # as the host->target linker we'll be using.
21316 gcc_cv_gld_major_version=
21317 gcc_cv_gld_minor_version=
21318 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21319 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21321 if test "${gcc_cv_ld+set}" = set; then :
21323 else
21325 if test -x "$DEFAULT_LINKER"; then
21326 gcc_cv_ld="$DEFAULT_LINKER"
21327 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21328 && test -f ../ld/Makefile \
21329 && test x$build = x$host; then
21330 gcc_cv_ld=../ld/ld-new$build_exeext
21331 elif test -x collect-ld$build_exeext; then
21332 # Build using linker in the current directory.
21333 gcc_cv_ld=./collect-ld$build_exeext
21334 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21335 gcc_cv_ld="$LD_FOR_TARGET"
21336 else
21337 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21338 set dummy $LD_FOR_TARGET; ac_word=$2
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21340 $as_echo_n "checking for $ac_word... " >&6; }
21341 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21342 $as_echo_n "(cached) " >&6
21343 else
21344 case $gcc_cv_ld in
21345 [\\/]* | ?:[\\/]*)
21346 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21350 for as_dir in $PATH
21352 IFS=$as_save_IFS
21353 test -z "$as_dir" && as_dir=.
21354 for ac_exec_ext in '' $ac_executable_extensions; do
21355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21356 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21358 break 2
21360 done
21361 done
21362 IFS=$as_save_IFS
21365 esac
21367 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21368 if test -n "$gcc_cv_ld"; then
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21370 $as_echo "$gcc_cv_ld" >&6; }
21371 else
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21373 $as_echo "no" >&6; }
21380 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21381 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21382 # if the PLUGIN_LD is set ld-new, just have it as ld
21383 # as that is the installed named.
21384 if test x$PLUGIN_LD_SUFFIX == xld-new \
21385 || test x$PLUGIN_LD_SUFFIX == xcollect-ld ; then
21386 PLUGIN_LD_SUFFIX=ld
21389 # Check whether --with-plugin-ld was given.
21390 if test "${with_plugin_ld+set}" = set; then :
21391 withval=$with_plugin_ld; if test x"$withval" != x; then
21392 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21393 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21399 cat >>confdefs.h <<_ACEOF
21400 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21401 _ACEOF
21404 # Check to see if we are using gold instead of ld
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21406 $as_echo_n "checking whether we are using gold... " >&6; }
21407 ld_is_gold=no
21408 if test x$gcc_cv_ld != x; then
21409 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21410 | grep "GNU gold" > /dev/null; then
21411 ld_is_gold=yes
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21415 $as_echo "$ld_is_gold" >&6; }
21417 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21419 case "$ORIGINAL_LD_FOR_TARGET" in
21420 ./collect-ld | ./collect-ld$build_exeext) ;;
21421 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21423 esac
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21426 $as_echo_n "checking what linker to use... " >&6; }
21427 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21428 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21429 # Single tree build which includes ld. We want to prefer it
21430 # over whatever linker top-level may have detected, since
21431 # we'll use what we're building after installation anyway.
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21433 $as_echo "newly built ld" >&6; }
21434 in_tree_ld=yes
21435 in_tree_ld_is_elf=no
21436 if (grep 'EMUL = .*elf' ../ld/Makefile \
21437 || grep 'EMUL = .*linux' ../ld/Makefile \
21438 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21439 in_tree_ld_is_elf=yes
21440 elif test "$ld_is_gold" = yes; then
21441 in_tree_ld_is_elf=yes
21443 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
21445 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21446 if test x$gcc_cv_gld_version != x; then
21447 break
21449 done
21450 case $gcc_cv_gld_version in
21451 VERSION=[0-9]*) ;;
21452 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21453 esac
21454 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21455 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21456 else
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21458 $as_echo "$gcc_cv_ld" >&6; }
21459 in_tree_ld=no
21462 # Figure out what nm we will be using.
21463 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21464 if test "${gcc_cv_nm+set}" = set; then :
21466 else
21468 if test -f $gcc_cv_binutils_srcdir/configure.in \
21469 && test -f ../binutils/Makefile \
21470 && test x$build = x$host; then
21471 gcc_cv_nm=../binutils/nm-new$build_exeext
21472 elif test -x nm$build_exeext; then
21473 gcc_cv_nm=./nm$build_exeext
21474 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21475 gcc_cv_nm="$NM_FOR_TARGET"
21476 else
21477 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21478 set dummy $NM_FOR_TARGET; ac_word=$2
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21480 $as_echo_n "checking for $ac_word... " >&6; }
21481 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21482 $as_echo_n "(cached) " >&6
21483 else
21484 case $gcc_cv_nm in
21485 [\\/]* | ?:[\\/]*)
21486 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21490 for as_dir in $PATH
21492 IFS=$as_save_IFS
21493 test -z "$as_dir" && as_dir=.
21494 for ac_exec_ext in '' $ac_executable_extensions; do
21495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21496 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21498 break 2
21500 done
21501 done
21502 IFS=$as_save_IFS
21505 esac
21507 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21508 if test -n "$gcc_cv_nm"; then
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21510 $as_echo "$gcc_cv_nm" >&6; }
21511 else
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21513 $as_echo "no" >&6; }
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21521 $as_echo_n "checking what nm to use... " >&6; }
21522 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21523 # Single tree build which includes binutils.
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21525 $as_echo "newly built nm" >&6; }
21526 in_tree_nm=yes
21527 else
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21529 $as_echo "$gcc_cv_nm" >&6; }
21530 in_tree_nm=no
21533 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21535 case "$ORIGINAL_NM_FOR_TARGET" in
21536 ./nm | ./nm$build_exeext) ;;
21537 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21539 esac
21542 # Figure out what objdump we will be using.
21543 if test "${gcc_cv_objdump+set}" = set; then :
21545 else
21547 if test -f $gcc_cv_binutils_srcdir/configure.in \
21548 && test -f ../binutils/Makefile \
21549 && test x$build = x$host; then
21550 # Single tree build which includes binutils.
21551 gcc_cv_objdump=../binutils/objdump$build_exeext
21552 elif test -x objdump$build_exeext; then
21553 gcc_cv_objdump=./objdump$build_exeext
21554 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21555 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21556 else
21557 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21558 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21560 $as_echo_n "checking for $ac_word... " >&6; }
21561 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21562 $as_echo_n "(cached) " >&6
21563 else
21564 case $gcc_cv_objdump in
21565 [\\/]* | ?:[\\/]*)
21566 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21570 for as_dir in $PATH
21572 IFS=$as_save_IFS
21573 test -z "$as_dir" && as_dir=.
21574 for ac_exec_ext in '' $ac_executable_extensions; do
21575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21576 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21578 break 2
21580 done
21581 done
21582 IFS=$as_save_IFS
21585 esac
21587 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21588 if test -n "$gcc_cv_objdump"; then
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21590 $as_echo "$gcc_cv_objdump" >&6; }
21591 else
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21593 $as_echo "no" >&6; }
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21601 $as_echo_n "checking what objdump to use... " >&6; }
21602 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21603 # Single tree build which includes binutils.
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21605 $as_echo "newly built objdump" >&6; }
21606 elif test x$gcc_cv_objdump = x; then
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21608 $as_echo "not found" >&6; }
21609 else
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21611 $as_echo "$gcc_cv_objdump" >&6; }
21614 # Figure out what readelf we will be using.
21615 if test "${gcc_cv_readelf+set}" = set; then :
21617 else
21619 if test -f $gcc_cv_binutils_srcdir/configure.in \
21620 && test -f ../binutils/Makefile \
21621 && test x$build = x$host; then
21622 # Single tree build which includes binutils.
21623 gcc_cv_readelf=../binutils/readelf$build_exeext
21624 elif test -x readelf$build_exeext; then
21625 gcc_cv_readelf=./readelf$build_exeext
21626 else
21627 # Extract the first word of "readelf", so it can be a program name with args.
21628 set dummy readelf; ac_word=$2
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21630 $as_echo_n "checking for $ac_word... " >&6; }
21631 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21632 $as_echo_n "(cached) " >&6
21633 else
21634 case $gcc_cv_readelf in
21635 [\\/]* | ?:[\\/]*)
21636 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21640 for as_dir in $PATH
21642 IFS=$as_save_IFS
21643 test -z "$as_dir" && as_dir=.
21644 for ac_exec_ext in '' $ac_executable_extensions; do
21645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21646 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21648 break 2
21650 done
21651 done
21652 IFS=$as_save_IFS
21655 esac
21657 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21658 if test -n "$gcc_cv_readelf"; then
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21660 $as_echo "$gcc_cv_readelf" >&6; }
21661 else
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21663 $as_echo "no" >&6; }
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21671 $as_echo_n "checking what readelf to use... " >&6; }
21672 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21673 # Single tree build which includes binutils.
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21675 $as_echo "newly built readelf" >&6; }
21676 elif test x$gcc_cv_readelf = x; then
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21678 $as_echo "not found" >&6; }
21679 else
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21681 $as_echo "$gcc_cv_readelf" >&6; }
21684 # Figure out what assembler alignment features are present.
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21686 $as_echo_n "checking assembler flags... " >&6; }
21687 if test "${gcc_cv_as_flags+set}" = set; then :
21688 $as_echo_n "(cached) " >&6
21689 else
21690 case "$target" in
21691 i[34567]86-*-linux*)
21692 gcc_cv_as_flags="--32"
21694 powerpc*-*-darwin*)
21695 gcc_cv_as_flags="-arch ppc"
21698 gcc_cv_as_flags=" "
21700 esac
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21703 $as_echo "$gcc_cv_as_flags" >&6; }
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21706 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21707 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21709 else
21710 gcc_cv_as_balign_and_p2align=no
21711 if test $in_tree_gas = yes; then
21712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21713 then gcc_cv_as_balign_and_p2align=yes
21715 elif test x$gcc_cv_as != x; then
21716 $as_echo '.balign 4
21717 .p2align 2' > conftest.s
21718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21720 (eval $ac_try) 2>&5
21721 ac_status=$?
21722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21723 test $ac_status = 0; }; }
21724 then
21725 gcc_cv_as_balign_and_p2align=yes
21726 else
21727 echo "configure: failed program was" >&5
21728 cat conftest.s >&5
21730 rm -f conftest.o conftest.s
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21734 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21735 if test $gcc_cv_as_balign_and_p2align = yes; then
21737 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21742 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21743 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21744 $as_echo_n "(cached) " >&6
21745 else
21746 gcc_cv_as_max_skip_p2align=no
21747 if test $in_tree_gas = yes; then
21748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21749 then gcc_cv_as_max_skip_p2align=yes
21751 elif test x$gcc_cv_as != x; then
21752 $as_echo '.p2align 4,,7' > conftest.s
21753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21758 test $ac_status = 0; }; }
21759 then
21760 gcc_cv_as_max_skip_p2align=yes
21761 else
21762 echo "configure: failed program was" >&5
21763 cat conftest.s >&5
21765 rm -f conftest.o conftest.s
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21769 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21770 if test $gcc_cv_as_max_skip_p2align = yes; then
21772 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21777 $as_echo_n "checking assembler for .literal16... " >&6; }
21778 if test "${gcc_cv_as_literal16+set}" = set; then :
21779 $as_echo_n "(cached) " >&6
21780 else
21781 gcc_cv_as_literal16=no
21782 if test $in_tree_gas = yes; then
21783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21784 then gcc_cv_as_literal16=yes
21786 elif test x$gcc_cv_as != x; then
21787 $as_echo '.literal16' > conftest.s
21788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21790 (eval $ac_try) 2>&5
21791 ac_status=$?
21792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21793 test $ac_status = 0; }; }
21794 then
21795 gcc_cv_as_literal16=yes
21796 else
21797 echo "configure: failed program was" >&5
21798 cat conftest.s >&5
21800 rm -f conftest.o conftest.s
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21804 $as_echo "$gcc_cv_as_literal16" >&6; }
21805 if test $gcc_cv_as_literal16 = yes; then
21807 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21812 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21813 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21814 $as_echo_n "(cached) " >&6
21815 else
21816 gcc_cv_as_subsection_m1=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 \) + 9 \) \* 1000 + 0`
21820 then gcc_cv_as_subsection_m1=yes
21822 elif test x$gcc_cv_as != x; then
21823 $as_echo 'conftest_label1: .word 0
21824 .subsection -1
21825 conftest_label2: .word 0
21826 .previous' > conftest.s
21827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21832 test $ac_status = 0; }; }
21833 then
21834 if test x$gcc_cv_nm != x; then
21835 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21836 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21837 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21838 then :
21839 else gcc_cv_as_subsection_m1=yes
21841 rm -f conftest.nm1 conftest.nm2
21843 else
21844 echo "configure: failed program was" >&5
21845 cat conftest.s >&5
21847 rm -f conftest.o conftest.s
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21851 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21852 if test $gcc_cv_as_subsection_m1 = yes; then
21854 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21859 $as_echo_n "checking assembler for .weak... " >&6; }
21860 if test "${gcc_cv_as_weak+set}" = set; then :
21861 $as_echo_n "(cached) " >&6
21862 else
21863 gcc_cv_as_weak=no
21864 if test $in_tree_gas = yes; then
21865 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21866 then gcc_cv_as_weak=yes
21868 elif test x$gcc_cv_as != x; then
21869 $as_echo ' .weak foobar' > conftest.s
21870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21872 (eval $ac_try) 2>&5
21873 ac_status=$?
21874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21875 test $ac_status = 0; }; }
21876 then
21877 gcc_cv_as_weak=yes
21878 else
21879 echo "configure: failed program was" >&5
21880 cat conftest.s >&5
21882 rm -f conftest.o conftest.s
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21886 $as_echo "$gcc_cv_as_weak" >&6; }
21887 if test $gcc_cv_as_weak = yes; then
21889 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21894 $as_echo_n "checking assembler for .weakref... " >&6; }
21895 if test "${gcc_cv_as_weakref+set}" = set; then :
21896 $as_echo_n "(cached) " >&6
21897 else
21898 gcc_cv_as_weakref=no
21899 if test $in_tree_gas = yes; then
21900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21901 then gcc_cv_as_weakref=yes
21903 elif test x$gcc_cv_as != x; then
21904 $as_echo ' .weakref foobar, barfnot' > conftest.s
21905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910 test $ac_status = 0; }; }
21911 then
21912 gcc_cv_as_weakref=yes
21913 else
21914 echo "configure: failed program was" >&5
21915 cat conftest.s >&5
21917 rm -f conftest.o conftest.s
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21921 $as_echo "$gcc_cv_as_weakref" >&6; }
21922 if test $gcc_cv_as_weakref = yes; then
21924 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21929 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21930 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21931 $as_echo_n "(cached) " >&6
21932 else
21933 gcc_cv_as_nsubspa_comdat=no
21934 if test $in_tree_gas = yes; then
21935 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21936 then gcc_cv_as_nsubspa_comdat=yes
21938 elif test x$gcc_cv_as != x; then
21939 $as_echo ' .SPACE $TEXT$
21940 .NSUBSPA $CODE$,COMDAT' > conftest.s
21941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21946 test $ac_status = 0; }; }
21947 then
21948 gcc_cv_as_nsubspa_comdat=yes
21949 else
21950 echo "configure: failed program was" >&5
21951 cat conftest.s >&5
21953 rm -f conftest.o conftest.s
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21957 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21958 if test $gcc_cv_as_nsubspa_comdat = yes; then
21960 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21964 # .hidden needs to be supported in both the assembler and the linker,
21965 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21966 # This is irritatingly difficult to feature test for; we have to check the
21967 # date string after the version number. If we've got an in-tree
21968 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21969 # to be safe.
21970 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21972 $as_echo_n "checking assembler for .hidden... " >&6; }
21973 if test "${gcc_cv_as_hidden+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21975 else
21976 gcc_cv_as_hidden=no
21977 if test $in_tree_gas = yes; then
21978 if test $in_tree_gas_is_elf = yes \
21979 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21980 then gcc_cv_as_hidden=yes
21982 elif test x$gcc_cv_as != x; then
21983 $as_echo ' .hidden foobar
21984 foobar:' > conftest.s
21985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21987 (eval $ac_try) 2>&5
21988 ac_status=$?
21989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21990 test $ac_status = 0; }; }
21991 then
21993 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21994 # STV_HIDDEN, so disable .hidden support if so.
21995 case "${target}" in
21996 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21997 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21998 cat > conftest.s <<EOF
21999 .globl hidden
22000 .hidden hidden
22001 hidden:
22002 .globl default
22003 .set default,hidden
22005 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22006 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22007 grep '\.hidden default' > /dev/null; then
22008 gcc_cv_as_hidden=no
22009 else
22010 gcc_cv_as_hidden=yes
22012 else
22013 # Assume bug is present if objdump is missing.
22014 gcc_cv_as_hidden=no
22018 gcc_cv_as_hidden=yes
22020 esac
22021 else
22022 echo "configure: failed program was" >&5
22023 cat conftest.s >&5
22025 rm -f conftest.o conftest.s
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22029 $as_echo "$gcc_cv_as_hidden" >&6; }
22031 case "${target}" in
22032 *-*-darwin*)
22033 # Darwin as has some visibility support, though with a different syntax.
22034 gcc_cv_as_hidden=yes
22036 esac
22038 # gnu_indirect_function type is an extension proposed at
22039 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22040 # selection of function implementation
22041 # Check whether --enable-gnu-indirect-function was given.
22042 if test "${enable_gnu_indirect_function+set}" = set; then :
22043 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22044 yes | no) ;;
22045 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22046 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22047 esac
22048 else
22049 enable_gnu_indirect_function="$default_gnu_indirect_function"
22052 if test x$enable_gnu_indirect_function = xyes; then
22054 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22058 if test $in_tree_ld != yes ; then
22059 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22060 if echo "$ld_ver" | grep GNU > /dev/null; then
22061 if test x"$ld_is_gold" = xyes; then
22062 # GNU gold --version looks like this:
22064 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22066 # We extract the binutils version which is more familiar and specific
22067 # than the gold version.
22068 ld_vers=`echo $ld_ver | sed -n \
22069 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22070 else
22071 # GNU ld --version looks like this:
22073 # GNU ld (GNU Binutils) 2.21.51.20110225
22074 ld_vers=`echo $ld_ver | sed -n \
22075 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22077 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'`
22078 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22079 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22080 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22081 else
22082 case "${target}" in
22083 *-*-solaris2*)
22084 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22085 # format.
22087 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22088 # /usr/ccs/bin/ld has been configured.
22089 ld_ver=`$gcc_cv_ld -V 2>&1`
22090 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22091 ld_vers=`echo $ld_ver | sed -n \
22092 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22093 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22094 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22097 esac
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22102 $as_echo_n "checking linker for .hidden support... " >&6; }
22103 if test "${gcc_cv_ld_hidden+set}" = set; then :
22104 $as_echo_n "(cached) " >&6
22105 else
22106 if test $in_tree_ld = yes ; then
22107 gcc_cv_ld_hidden=no
22108 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 \
22109 && test $in_tree_ld_is_elf = yes; then
22110 gcc_cv_ld_hidden=yes
22112 else
22113 gcc_cv_ld_hidden=yes
22114 if test x"$ld_is_gold" = xyes; then
22116 elif echo "$ld_ver" | grep GNU > /dev/null; then
22117 case "${target}" in
22118 mmix-knuth-mmixware)
22119 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22120 gcc_cv_ld_hidden=no
22122 esac
22123 if test 0"$ld_date" -lt 20020404; then
22124 if test -n "$ld_date"; then
22125 # If there was date string, but was earlier than 2002-04-04, fail
22126 gcc_cv_ld_hidden=no
22127 elif test -z "$ld_vers"; then
22128 # If there was no date string nor ld version number, something is wrong
22129 gcc_cv_ld_hidden=no
22130 else
22131 test -z "$ld_vers_patch" && ld_vers_patch=0
22132 if test "$ld_vers_major" -lt 2; then
22133 gcc_cv_ld_hidden=no
22134 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22135 gcc_cv_ld_hidden="no"
22136 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22137 gcc_cv_ld_hidden=no
22141 else
22142 case "${target}" in
22143 *-*-darwin*)
22144 # Darwin ld has some visibility support.
22145 gcc_cv_ld_hidden=yes
22147 hppa64*-*-hpux* | ia64*-*-hpux*)
22148 gcc_cv_ld_hidden=yes
22150 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22151 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22152 # .symbolic was only added in Solaris 9 12/02.
22153 gcc_cv_ld_hidden=yes
22156 gcc_cv_ld_hidden=no
22158 esac
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22163 $as_echo "$gcc_cv_ld_hidden" >&6; }
22164 libgcc_visibility=no
22167 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22168 libgcc_visibility=yes
22170 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22175 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22176 gcc_cv_ld_ro_rw_mix=unknown
22177 if test $in_tree_ld = yes ; then
22178 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 \
22179 && test $in_tree_ld_is_elf = yes; then
22180 gcc_cv_ld_ro_rw_mix=read-write
22182 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22183 echo '.section myfoosect, "a"' > conftest1.s
22184 echo '.section myfoosect, "aw"' > conftest2.s
22185 echo '.byte 1' >> conftest2.s
22186 echo '.section myfoosect, "a"' > conftest3.s
22187 echo '.byte 0' >> conftest3.s
22188 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22189 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22190 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22191 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22192 conftest2.o conftest3.o > /dev/null 2>&1; then
22193 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22194 | sed -e '/myfoosect/!d' -e N`
22195 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22196 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22197 gcc_cv_ld_ro_rw_mix=read-only
22198 else
22199 gcc_cv_ld_ro_rw_mix=read-write
22203 rm -f conftest.* conftest[123].*
22205 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22207 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22211 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22213 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22214 case "${target}" in
22215 *-*-solaris2*)
22217 # Solaris 2 ld -V output looks like this for a regular version:
22219 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22221 # but test versions add stuff at the end:
22223 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22225 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22226 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22227 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22228 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22229 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22230 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22233 esac
22236 # Check whether --enable-initfini-array was given.
22237 if test "${enable_initfini_array+set}" = set; then :
22238 enableval=$enable_initfini_array;
22239 else
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22242 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22243 if test "${gcc_cv_initfini_array+set}" = set; then :
22244 $as_echo_n "(cached) " >&6
22245 else
22246 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22247 case "${target}" in
22248 ia64-*)
22249 if test "$cross_compiling" = yes; then :
22250 gcc_cv_initfini_array=no
22251 else
22252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h. */
22255 #ifndef __ELF__
22256 #error Not an ELF OS
22257 #endif
22258 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22259 if it can be used. */
22260 static int x = -1;
22261 int main (void) { return x; }
22262 int foo (void) { x = 0; }
22263 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22265 _ACEOF
22266 if ac_fn_c_try_run "$LINENO"; then :
22267 gcc_cv_initfini_array=yes
22268 else
22269 gcc_cv_initfini_array=no
22271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22272 conftest.$ac_objext conftest.beam conftest.$ac_ext
22276 gcc_cv_initfini_array=no
22277 if test $in_tree_ld = yes ; then
22278 if test "$gcc_cv_gld_major_version" -eq 2 \
22279 -a "$gcc_cv_gld_minor_version" -ge 22 \
22280 -o "$gcc_cv_gld_major_version" -gt 2 \
22281 && test $in_tree_ld_is_elf = yes; then
22282 gcc_cv_initfini_array=yes
22284 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22285 cat > conftest.s <<\EOF
22286 .section .dtors,"a",%progbits
22287 .balign 4
22288 .byte 'A', 'A', 'A', 'A'
22289 .section .ctors,"a",%progbits
22290 .balign 4
22291 .byte 'B', 'B', 'B', 'B'
22292 .section .fini_array.65530,"a",%progbits
22293 .balign 4
22294 .byte 'C', 'C', 'C', 'C'
22295 .section .init_array.65530,"a",%progbits
22296 .balign 4
22297 .byte 'D', 'D', 'D', 'D'
22298 .section .dtors.64528,"a",%progbits
22299 .balign 4
22300 .byte 'E', 'E', 'E', 'E'
22301 .section .ctors.64528,"a",%progbits
22302 .balign 4
22303 .byte 'F', 'F', 'F', 'F'
22304 .section .fini_array.01005,"a",%progbits
22305 .balign 4
22306 .byte 'G', 'G', 'G', 'G'
22307 .section .init_array.01005,"a",%progbits
22308 .balign 4
22309 .byte 'H', 'H', 'H', 'H'
22310 .text
22311 .globl _start
22312 _start:
22314 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22315 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22316 && $gcc_cv_objdump -s -j .init_array conftest \
22317 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22318 && $gcc_cv_objdump -s -j .fini_array conftest \
22319 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22320 gcc_cv_initfini_array=yes
22322 rm -f conftest conftest.*
22324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22327 #ifndef __ELF__
22328 # error Not an ELF OS
22329 #endif
22330 #include <stdlib.h>
22331 #if defined __GLIBC_PREREQ
22332 # if __GLIBC_PREREQ (2, 4)
22333 # else
22334 # error GLIBC 2.4 required
22335 # endif
22336 #else
22337 # if defined __sun__ && defined __svr4__
22338 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22339 # else
22340 # error The C library not known to support .init_array/.fini_array
22341 # endif
22342 #endif
22344 _ACEOF
22345 if ac_fn_c_try_cpp "$LINENO"; then :
22347 else
22348 gcc_cv_initfini_array=no
22350 rm -f conftest.err conftest.$ac_ext;;
22351 esac
22352 else
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22354 $as_echo_n "checking cross compile... guessing... " >&6; }
22355 gcc_cv_initfini_array=no
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22359 $as_echo "$gcc_cv_initfini_array" >&6; }
22360 enable_initfini_array=$gcc_cv_initfini_array
22364 if test $enable_initfini_array = yes; then
22366 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22370 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22372 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22373 if test "${gcc_cv_as_leb128+set}" = set; then :
22374 $as_echo_n "(cached) " >&6
22375 else
22376 gcc_cv_as_leb128=no
22377 if test $in_tree_gas = yes; then
22378 if test $in_tree_gas_is_elf = yes \
22379 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22380 then gcc_cv_as_leb128=yes
22382 elif test x$gcc_cv_as != x; then
22383 $as_echo ' .data
22384 .uleb128 L2 - L1
22386 .uleb128 1280
22387 .sleb128 -1010
22388 L2:' > conftest.s
22389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22391 (eval $ac_try) 2>&5
22392 ac_status=$?
22393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22394 test $ac_status = 0; }; }
22395 then
22396 # GAS versions before 2.11 do not support uleb128,
22397 # despite appearing to.
22398 # ??? There exists an elf-specific test that will crash
22399 # the assembler. Perhaps it's better to figure out whether
22400 # arbitrary sections are supported and try the test.
22401 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22402 if echo "$as_ver" | grep GNU > /dev/null; then
22403 as_vers=`echo $as_ver | sed -n \
22404 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22405 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22406 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22407 if test $as_major -eq 2 && test $as_minor -lt 11
22408 then :
22409 else gcc_cv_as_leb128=yes
22412 else
22413 echo "configure: failed program was" >&5
22414 cat conftest.s >&5
22416 rm -f conftest.o conftest.s
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22420 $as_echo "$gcc_cv_as_leb128" >&6; }
22421 if test $gcc_cv_as_leb128 = yes; then
22423 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22427 # Check if we have assembler support for unwind directives.
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22429 $as_echo_n "checking assembler for cfi directives... " >&6; }
22430 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22431 $as_echo_n "(cached) " >&6
22432 else
22433 gcc_cv_as_cfi_directive=no
22434 if test x$gcc_cv_as != x; then
22435 $as_echo ' .text
22436 .cfi_startproc
22437 .cfi_offset 0, 0
22438 .cfi_same_value 1
22439 .cfi_def_cfa 1, 2
22440 .cfi_escape 1, 2, 3, 4, 5
22441 .cfi_endproc' > conftest.s
22442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447 test $ac_status = 0; }; }
22448 then
22449 case "$target" in
22450 *-*-solaris*)
22451 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22452 # read-only and read-write sections, we need to make sure that the
22453 # assembler used emits read-write .eh_frame sections.
22454 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22455 if test "x$gcc_cv_objdump" != x; then
22456 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22457 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22458 gcc_cv_as_cfi_directive=no
22459 else
22460 case "$target" in
22461 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22462 # On Solaris/x86, make sure that GCC and gas agree on using
22463 # read-only .eh_frame sections for 64-bit.
22464 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22465 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22466 sed -e /.eh_frame/!d -e N | \
22467 grep READONLY > /dev/null; then
22468 gcc_cv_as_cfi_directive=yes
22469 else
22470 gcc_cv_as_cfi_directive=no
22474 gcc_cv_as_cfi_directive=yes
22476 esac
22478 else
22479 # no objdump, err on the side of caution
22480 gcc_cv_as_cfi_directive=no
22482 else
22483 gcc_cv_as_cfi_directive=yes
22486 *-*-*)
22487 gcc_cv_as_cfi_directive=yes
22489 esac
22490 else
22491 echo "configure: failed program was" >&5
22492 cat conftest.s >&5
22494 rm -f conftest.o conftest.s
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22498 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22500 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22502 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22503 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22504 $as_echo_n "(cached) " >&6
22505 else
22506 gcc_cv_as_cfi_advance_working=no
22507 if test x$gcc_cv_as != x; then
22508 $as_echo ' .text
22509 .cfi_startproc
22510 .cfi_adjust_cfa_offset 64
22511 .skip 75040, 0
22512 .cfi_adjust_cfa_offset 128
22513 .cfi_endproc' > conftest.s
22514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22516 (eval $ac_try) 2>&5
22517 ac_status=$?
22518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22519 test $ac_status = 0; }; }
22520 then
22522 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22523 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22524 gcc_cv_as_cfi_advance_working=yes
22527 else
22528 echo "configure: failed program was" >&5
22529 cat conftest.s >&5
22531 rm -f conftest.o conftest.s
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22535 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22537 else
22538 # no objdump, err on the side of caution
22539 gcc_cv_as_cfi_advance_working=no
22543 cat >>confdefs.h <<_ACEOF
22544 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22545 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22546 _ACEOF
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22551 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22552 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22553 $as_echo_n "(cached) " >&6
22554 else
22555 gcc_cv_as_cfi_personality_directive=no
22556 if test x$gcc_cv_as != x; then
22557 $as_echo ' .text
22558 .cfi_startproc
22559 .cfi_personality 0, symbol
22560 .cfi_endproc' > conftest.s
22561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; }
22567 then
22568 gcc_cv_as_cfi_personality_directive=yes
22569 else
22570 echo "configure: failed program was" >&5
22571 cat conftest.s >&5
22573 rm -f conftest.o conftest.s
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22577 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22580 cat >>confdefs.h <<_ACEOF
22581 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22582 then echo 1; else echo 0; fi`
22583 _ACEOF
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22587 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22588 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22589 $as_echo_n "(cached) " >&6
22590 else
22591 gcc_cv_as_cfi_sections_directive=no
22592 if test x$gcc_cv_as != x; then
22593 $as_echo ' .text
22594 .cfi_sections .debug_frame, .eh_frame
22595 .cfi_startproc
22596 .cfi_endproc' > conftest.s
22597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22599 (eval $ac_try) 2>&5
22600 ac_status=$?
22601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22602 test $ac_status = 0; }; }
22603 then
22604 case $target_os in
22605 win32 | pe | cygwin* | mingw32* | uwin*)
22606 # Need to check that we generated the correct relocation for the
22607 # .debug_frame section. This was fixed for binutils 2.21.
22608 gcc_cv_as_cfi_sections_directive=no
22609 if test "x$gcc_cv_objdump" != x; then
22610 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22611 grep secrel > /dev/null; then
22612 gcc_cv_as_cfi_sections_directive=yes
22617 gcc_cv_as_cfi_sections_directive=yes
22619 esac
22620 else
22621 echo "configure: failed program was" >&5
22622 cat conftest.s >&5
22624 rm -f conftest.o conftest.s
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22628 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22634 then echo 1; else echo 0; fi`
22635 _ACEOF
22638 # GAS versions up to and including 2.11.0 may mis-optimize
22639 # .eh_frame data.
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22641 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22642 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22643 $as_echo_n "(cached) " >&6
22644 else
22645 gcc_cv_as_eh_frame=no
22646 if test $in_tree_gas = yes; then
22647 if test $in_tree_gas_is_elf = yes \
22648 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22649 then gcc_cv_as_eh_frame=yes
22651 elif test x$gcc_cv_as != x; then
22652 $as_echo ' .text
22653 .LFB1:
22654 .4byte 0
22655 .L1:
22656 .4byte 0
22657 .LFE1:
22658 .section .eh_frame,"aw",@progbits
22659 __FRAME_BEGIN__:
22660 .4byte .LECIE1-.LSCIE1
22661 .LSCIE1:
22662 .4byte 0x0
22663 .byte 0x1
22664 .ascii "z\0"
22665 .byte 0x1
22666 .byte 0x78
22667 .byte 0x1a
22668 .byte 0x0
22669 .byte 0x4
22670 .4byte 1
22671 .p2align 1
22672 .LECIE1:
22673 .LSFDE1:
22674 .4byte .LEFDE1-.LASFDE1
22675 .LASFDE1:
22676 .4byte .LASFDE1-__FRAME_BEGIN__
22677 .4byte .LFB1
22678 .4byte .LFE1-.LFB1
22679 .byte 0x4
22680 .4byte .LFE1-.LFB1
22681 .byte 0x4
22682 .4byte .L1-.LFB1
22683 .LEFDE1:' > conftest.s
22684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22686 (eval $ac_try) 2>&5
22687 ac_status=$?
22688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22689 test $ac_status = 0; }; }
22690 then
22691 cat > conftest.lit <<EOF
22692 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22693 0010 01000000 12000000 18000000 00000000 ................
22694 0020 08000000 04080000 0044 .........D
22696 cat > conftest.big <<EOF
22697 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22698 0010 00000001 00000012 00000018 00000000 ................
22699 0020 00000008 04000000 0844 .........D
22701 # If the assembler didn't choke, and we can objdump,
22702 # and we got the correct data, then succeed.
22703 # The text in the here-document typically retains its unix-style line
22704 # endings, while the output of objdump will use host line endings.
22705 # Therefore, use diff -b for the comparisons.
22706 if test x$gcc_cv_objdump != x \
22707 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22708 | tail -3 > conftest.got \
22709 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22710 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22711 then
22712 gcc_cv_as_eh_frame=yes
22713 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22716 ac_status=$?
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }; then
22719 gcc_cv_as_eh_frame=buggy
22720 else
22721 # Uh oh, what do we do now?
22722 gcc_cv_as_eh_frame=no
22724 else
22725 echo "configure: failed program was" >&5
22726 cat conftest.s >&5
22728 rm -f conftest.o conftest.s
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22732 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22735 if test $gcc_cv_as_eh_frame = buggy; then
22737 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22742 $as_echo_n "checking assembler for section merging support... " >&6; }
22743 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22744 $as_echo_n "(cached) " >&6
22745 else
22746 gcc_cv_as_shf_merge=no
22747 if test $in_tree_gas = yes; then
22748 if test $in_tree_gas_is_elf = yes \
22749 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22750 then gcc_cv_as_shf_merge=yes
22752 elif test x$gcc_cv_as != x; then
22753 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22754 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22756 (eval $ac_try) 2>&5
22757 ac_status=$?
22758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22759 test $ac_status = 0; }; }
22760 then
22761 gcc_cv_as_shf_merge=yes
22762 else
22763 echo "configure: failed program was" >&5
22764 cat conftest.s >&5
22766 rm -f conftest.o conftest.s
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22770 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22772 if test $gcc_cv_as_shf_merge = no; then
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22774 $as_echo_n "checking assembler for section merging support... " >&6; }
22775 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22776 $as_echo_n "(cached) " >&6
22777 else
22778 gcc_cv_as_shf_merge=no
22779 if test $in_tree_gas = yes; then
22780 if test $in_tree_gas_is_elf = yes \
22781 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22782 then gcc_cv_as_shf_merge=yes
22784 elif test x$gcc_cv_as != x; then
22785 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22788 (eval $ac_try) 2>&5
22789 ac_status=$?
22790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22791 test $ac_status = 0; }; }
22792 then
22793 gcc_cv_as_shf_merge=yes
22794 else
22795 echo "configure: failed program was" >&5
22796 cat conftest.s >&5
22798 rm -f conftest.o conftest.s
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22802 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22806 cat >>confdefs.h <<_ACEOF
22807 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22808 _ACEOF
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22812 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22813 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22814 $as_echo_n "(cached) " >&6
22815 else
22816 gcc_cv_as_comdat_group=no
22817 if test $in_tree_gas = yes; then
22818 if test $in_tree_gas_is_elf = yes \
22819 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22820 then gcc_cv_as_comdat_group=yes
22822 elif test x$gcc_cv_as != x; then
22823 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22826 (eval $ac_try) 2>&5
22827 ac_status=$?
22828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22829 test $ac_status = 0; }; }
22830 then
22831 gcc_cv_as_comdat_group=yes
22832 else
22833 echo "configure: failed program was" >&5
22834 cat conftest.s >&5
22836 rm -f conftest.o conftest.s
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22840 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22842 if test $gcc_cv_as_comdat_group = yes; then
22843 gcc_cv_as_comdat_group_percent=no
22844 gcc_cv_as_comdat_group_group=no
22845 else
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22847 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22848 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22849 $as_echo_n "(cached) " >&6
22850 else
22851 gcc_cv_as_comdat_group_percent=no
22852 if test $in_tree_gas = yes; then
22853 if test $in_tree_gas_is_elf = yes \
22854 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22855 then gcc_cv_as_comdat_group_percent=yes
22857 elif test x$gcc_cv_as != x; then
22858 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22861 (eval $ac_try) 2>&5
22862 ac_status=$?
22863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22864 test $ac_status = 0; }; }
22865 then
22866 gcc_cv_as_comdat_group_percent=yes
22867 else
22868 echo "configure: failed program was" >&5
22869 cat conftest.s >&5
22871 rm -f conftest.o conftest.s
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22875 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22877 if test $gcc_cv_as_comdat_group_percent = yes; then
22878 gcc_cv_as_comdat_group_group=no
22879 else
22880 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22881 gcc_cv_as_comdat_group_group=no
22883 case "${target}" in
22884 # Sun as uses a completely different syntax.
22885 *-*-solaris2*)
22886 case "${target}" in
22887 sparc*-*-solaris2*)
22888 conftest_s='
22889 .group foo,".text%foo",#comdat
22890 .section ".text%foo", #alloc,#execinstr,#progbits
22891 .globl foo
22892 foo:
22895 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22896 conftest_s='
22897 .group foo,.text%foo,#comdat
22898 .section .text%foo, "ax", @progbits
22899 .globl foo
22900 foo:
22903 esac
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22905 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22906 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22907 $as_echo_n "(cached) " >&6
22908 else
22909 gcc_cv_as_comdat_group_group=no
22910 if test x$gcc_cv_as != x; then
22911 $as_echo "$conftest_s" > conftest.s
22912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22914 (eval $ac_try) 2>&5
22915 ac_status=$?
22916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22917 test $ac_status = 0; }; }
22918 then
22919 gcc_cv_as_comdat_group_group=yes
22920 else
22921 echo "configure: failed program was" >&5
22922 cat conftest.s >&5
22924 rm -f conftest.o conftest.s
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22928 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22931 esac
22934 if test x"$ld_is_gold" = xyes; then
22935 comdat_group=yes
22936 elif test $in_tree_ld = yes ; then
22937 comdat_group=no
22938 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 \
22939 && test $in_tree_ld_is_elf = yes; then
22940 comdat_group=yes
22942 elif echo "$ld_ver" | grep GNU > /dev/null; then
22943 comdat_group=yes
22944 if test 0"$ld_date" -lt 20050308; then
22945 if test -n "$ld_date"; then
22946 # If there was date string, but was earlier than 2005-03-08, fail
22947 comdat_group=no
22948 elif test "$ld_vers_major" -lt 2; then
22949 comdat_group=no
22950 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22951 comdat_group=no
22954 else
22955 case "${target}" in
22956 *-*-solaris2.1[1-9]*)
22957 comdat_group=no
22958 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22959 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22960 # version 1.688.
22962 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22963 # least ld version 1.2267.
22964 if test "$ld_vers_major" -gt 1; then
22965 comdat_group=yes
22966 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22967 comdat_group=yes
22968 elif test "$ld_vers_minor" -ge 2267; then
22969 comdat_group=yes
22973 # Assume linkers other than GNU ld don't support COMDAT group.
22974 comdat_group=no
22976 esac
22978 # Allow overriding the automatic COMDAT group tests above.
22979 # Check whether --enable-comdat was given.
22980 if test "${enable_comdat+set}" = set; then :
22981 enableval=$enable_comdat; comdat_group="$enable_comdat"
22984 if test $comdat_group = no; then
22985 gcc_cv_as_comdat_group=no
22986 gcc_cv_as_comdat_group_percent=no
22987 gcc_cv_as_comdat_group_group=no
22990 cat >>confdefs.h <<_ACEOF
22991 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22992 || test $gcc_cv_as_comdat_group_percent = yes \
22993 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22994 _ACEOF
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22998 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22999 if test "${gcc_cv_as_discriminator+set}" = set; then :
23000 $as_echo_n "(cached) " >&6
23001 else
23002 gcc_cv_as_discriminator=no
23003 if test $in_tree_gas = yes; then
23004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23005 then gcc_cv_as_discriminator=yes
23007 elif test x$gcc_cv_as != x; then
23008 $as_echo ' .text
23009 .file 1 "conf.c"
23010 .loc 1 1 0 discriminator 1' > conftest.s
23011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23013 (eval $ac_try) 2>&5
23014 ac_status=$?
23015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23016 test $ac_status = 0; }; }
23017 then
23018 gcc_cv_as_discriminator=yes
23019 else
23020 echo "configure: failed program was" >&5
23021 cat conftest.s >&5
23023 rm -f conftest.o conftest.s
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23027 $as_echo "$gcc_cv_as_discriminator" >&6; }
23028 if test $gcc_cv_as_discriminator = yes; then
23030 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23034 # Thread-local storage - the check is heavily parameterized.
23035 conftest_s=
23036 tls_first_major=
23037 tls_first_minor=
23038 tls_as_opt=
23039 case "$target" in
23040 alpha*-*-*)
23041 conftest_s='
23042 .section ".tdata","awT",@progbits
23043 foo: .long 25
23044 .text
23045 ldq $27,__tls_get_addr($29) !literal!1
23046 lda $16,foo($29) !tlsgd!1
23047 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23048 ldq $27,__tls_get_addr($29) !literal!2
23049 lda $16,foo($29) !tlsldm!2
23050 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23051 ldq $1,foo($29) !gotdtprel
23052 ldah $2,foo($29) !dtprelhi
23053 lda $3,foo($2) !dtprello
23054 lda $4,foo($29) !dtprel
23055 ldq $1,foo($29) !gottprel
23056 ldah $2,foo($29) !tprelhi
23057 lda $3,foo($2) !tprello
23058 lda $4,foo($29) !tprel'
23059 tls_first_major=2
23060 tls_first_minor=13
23061 tls_as_opt=--fatal-warnings
23063 cris-*-*|crisv32-*-*)
23064 conftest_s='
23065 .section ".tdata","awT",@progbits
23066 x: .long 25
23067 .text
23068 move.d x:IE,$r10
23069 nop'
23070 tls_first_major=2
23071 tls_first_minor=20
23072 tls_as_opt=--fatal-warnings
23074 frv*-*-*)
23075 conftest_s='
23076 .section ".tdata","awT",@progbits
23077 x: .long 25
23078 .text
23079 call #gettlsoff(x)'
23080 tls_first_major=2
23081 tls_first_minor=14
23083 hppa*-*-linux*)
23084 conftest_s='
23085 t1: .reg %r20
23086 t2: .reg %r21
23087 gp: .reg %r19
23088 .section ".tdata","awT",@progbits
23089 foo: .long 25
23090 .text
23091 .align 4
23092 addil LT%foo-$tls_gdidx$,gp
23093 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23094 b __tls_get_addr
23096 addil LT%foo-$tls_ldidx$,gp
23097 b __tls_get_addr
23098 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23099 addil LR%foo-$tls_dtpoff$,%ret0
23100 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23101 mfctl %cr27,%t1
23102 addil LT%foo-$tls_ieoff$,gp
23103 ldw RT%foo-$tls_ieoff$(%r1),%t2
23104 add %t1,%t2,%t3
23105 mfctl %cr27,%t1
23106 addil LR%foo-$tls_leoff$,%t1
23107 ldo RR%foo-$tls_leoff$(%r1),%t2'
23108 tls_first_major=2
23109 tls_first_minor=15
23110 tls_as_opt=--fatal-warnings
23112 arm*-*-*)
23113 conftest_s='
23114 .section ".tdata","awT",%progbits
23115 foo: .long 25
23116 .text
23117 .word foo(gottpoff)
23118 .word foo(tpoff)
23119 .word foo(tlsgd)
23120 .word foo(tlsldm)
23121 .word foo(tlsldo)'
23122 tls_first_major=2
23123 tls_first_minor=17
23125 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23126 case "$target" in
23127 i[34567]86-*-solaris2.*)
23128 on_solaris=yes
23129 tga_func=___tls_get_addr
23131 x86_64-*-solaris2.1[0-9]*)
23132 on_solaris=yes
23133 tga_func=__tls_get_addr
23136 on_solaris=no
23138 esac
23139 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23140 conftest_s='
23141 .section .tdata,"awt",@progbits'
23142 tls_first_major=0
23143 tls_first_minor=0
23145 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23147 else
23148 conftest_s='
23149 .section ".tdata","awT",@progbits'
23150 tls_first_major=2
23151 tls_first_minor=14
23152 tls_as_opt="--fatal-warnings"
23154 conftest_s="$conftest_s
23155 foo: .long 25
23156 .text
23157 movl %gs:0, %eax
23158 leal foo@tlsgd(,%ebx,1), %eax
23159 leal foo@tlsldm(%ebx), %eax
23160 leal foo@dtpoff(%eax), %edx
23161 movl foo@gottpoff(%ebx), %eax
23162 subl foo@gottpoff(%ebx), %eax
23163 addl foo@gotntpoff(%ebx), %eax
23164 movl foo@indntpoff, %eax
23165 movl \$foo@tpoff, %eax
23166 subl \$foo@tpoff, %eax
23167 leal foo@ntpoff(%ecx), %eax"
23169 x86_64-*-*)
23170 conftest_s='
23171 .section ".tdata","awT",@progbits
23172 foo: .long 25
23173 .text
23174 movq %fs:0, %rax
23175 leaq foo@TLSGD(%rip), %rdi
23176 leaq foo@TLSLD(%rip), %rdi
23177 leaq foo@DTPOFF(%rax), %rdx
23178 movq foo@GOTTPOFF(%rip), %rax
23179 movq $foo@TPOFF, %rax'
23180 tls_first_major=2
23181 tls_first_minor=14
23182 tls_as_opt=--fatal-warnings
23184 ia64-*-*)
23185 conftest_s='
23186 .section ".tdata","awT",@progbits
23187 foo: data8 25
23188 .text
23189 addl r16 = @ltoff(@dtpmod(foo#)), gp
23190 addl r17 = @ltoff(@dtprel(foo#)), gp
23191 addl r18 = @ltoff(@tprel(foo#)), gp
23192 addl r19 = @dtprel(foo#), gp
23193 adds r21 = @dtprel(foo#), r13
23194 movl r23 = @dtprel(foo#)
23195 addl r20 = @tprel(foo#), gp
23196 adds r22 = @tprel(foo#), r13
23197 movl r24 = @tprel(foo#)'
23198 tls_first_major=2
23199 tls_first_minor=13
23200 tls_as_opt=--fatal-warnings
23202 mips*-*-*)
23203 conftest_s='
23204 .section .tdata,"awT",@progbits
23206 .word 2
23207 .text
23208 addiu $4, $28, %tlsgd(x)
23209 addiu $4, $28, %tlsldm(x)
23210 lui $4, %dtprel_hi(x)
23211 addiu $4, $4, %dtprel_lo(x)
23212 lw $4, %gottprel(x)($28)
23213 lui $4, %tprel_hi(x)
23214 addiu $4, $4, %tprel_lo(x)'
23215 tls_first_major=2
23216 tls_first_minor=16
23217 tls_as_opt='-32 --fatal-warnings'
23219 m68k-*-*)
23220 conftest_s='
23221 .section .tdata,"awT",@progbits
23223 .word 2
23224 .text
23225 foo:
23226 move.l x@TLSGD(%a5),%a0
23227 move.l x@TLSLDM(%a5),%a0
23228 move.l x@TLSLDO(%a5),%a0
23229 move.l x@TLSIE(%a5),%a0
23230 move.l x@TLSLE(%a5),%a0'
23231 tls_first_major=2
23232 tls_first_minor=19
23233 tls_as_opt='--fatal-warnings'
23235 aarch64*-*-*)
23236 conftest_s='
23237 .section ".tdata","awT",%progbits
23238 foo: .long 25
23239 .text
23240 adrp x0, :tlsgd:x
23241 add x0, x0, #:tlsgd_lo12:x
23242 bl __tls_get_addr
23243 nop'
23244 tls_first_major=2
23245 tls_first_minor=20
23246 tls_as_opt='--fatal-warnings'
23248 powerpc-*-*)
23249 conftest_s='
23250 .section ".tdata","awT",@progbits
23251 .align 2
23252 ld0: .space 4
23253 ld1: .space 4
23254 x1: .space 4
23255 x2: .space 4
23256 x3: .space 4
23257 .text
23258 addi 3,31,ld0@got@tlsgd
23259 bl __tls_get_addr
23260 addi 3,31,x1@got@tlsld
23261 bl __tls_get_addr
23262 addi 9,3,x1@dtprel
23263 addis 9,3,x2@dtprel@ha
23264 addi 9,9,x2@dtprel@l
23265 lwz 9,x3@got@tprel(31)
23266 add 9,9,x@tls
23267 addi 9,2,x1@tprel
23268 addis 9,2,x2@tprel@ha
23269 addi 9,9,x2@tprel@l'
23270 tls_first_major=2
23271 tls_first_minor=14
23272 tls_as_opt="-a32 --fatal-warnings"
23274 powerpc64-*-*)
23275 conftest_s='
23276 .section ".tdata","awT",@progbits
23277 .align 3
23278 ld0: .space 8
23279 ld1: .space 8
23280 x1: .space 8
23281 x2: .space 8
23282 x3: .space 8
23283 .text
23284 addi 3,2,ld0@got@tlsgd
23285 bl .__tls_get_addr
23287 addi 3,2,ld1@toc
23288 bl .__tls_get_addr
23290 addi 3,2,x1@got@tlsld
23291 bl .__tls_get_addr
23293 addi 9,3,x1@dtprel
23294 bl .__tls_get_addr
23296 addis 9,3,x2@dtprel@ha
23297 addi 9,9,x2@dtprel@l
23298 bl .__tls_get_addr
23300 ld 9,x3@got@dtprel(2)
23301 add 9,9,3
23302 bl .__tls_get_addr
23303 nop'
23304 tls_first_major=2
23305 tls_first_minor=14
23306 tls_as_opt="-a64 --fatal-warnings"
23308 s390-*-*)
23309 conftest_s='
23310 .section ".tdata","awT",@progbits
23311 foo: .long 25
23312 .text
23313 .long foo@TLSGD
23314 .long foo@TLSLDM
23315 .long foo@DTPOFF
23316 .long foo@NTPOFF
23317 .long foo@GOTNTPOFF
23318 .long foo@INDNTPOFF
23319 l %r1,foo@GOTNTPOFF(%r12)
23320 l %r1,0(%r1):tls_load:foo
23321 bas %r14,0(%r1,%r13):tls_gdcall:foo
23322 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23323 tls_first_major=2
23324 tls_first_minor=14
23325 tls_as_opt="-m31 --fatal-warnings"
23327 s390x-*-*)
23328 conftest_s='
23329 .section ".tdata","awT",@progbits
23330 foo: .long 25
23331 .text
23332 .quad foo@TLSGD
23333 .quad foo@TLSLDM
23334 .quad foo@DTPOFF
23335 .quad foo@NTPOFF
23336 .quad foo@GOTNTPOFF
23337 lg %r1,foo@GOTNTPOFF(%r12)
23338 larl %r1,foo@INDNTPOFF
23339 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23340 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23341 tls_first_major=2
23342 tls_first_minor=14
23343 tls_as_opt="-m64 -Aesame --fatal-warnings"
23345 sh-*-* | sh[34]-*-*)
23346 conftest_s='
23347 .section ".tdata","awT",@progbits
23348 foo: .long 25
23349 .text
23350 .long foo@TLSGD
23351 .long foo@TLSLDM
23352 .long foo@DTPOFF
23353 .long foo@GOTTPOFF
23354 .long foo@TPOFF'
23355 tls_first_major=2
23356 tls_first_minor=13
23357 tls_as_opt=--fatal-warnings
23359 sparc*-*-*)
23360 case "$target" in
23361 sparc*-sun-solaris2.*)
23362 on_solaris=yes
23363 tga_func=__tls_get_addr
23366 on_solaris=no
23368 esac
23369 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23370 conftest_s='
23371 .section ".tdata",#alloc,#write,#tls'
23372 tls_first_major=0
23373 tls_first_minor=0
23374 else
23375 conftest_s='
23376 .section ".tdata","awT",@progbits'
23377 tls_first_major=2
23378 tls_first_minor=14
23379 tls_as_opt="-32 --fatal-warnings"
23381 conftest_s="$conftest_s
23382 foo: .long 25
23383 .text
23384 sethi %tgd_hi22(foo), %o0
23385 add %o0, %tgd_lo10(foo), %o1
23386 add %l7, %o1, %o0, %tgd_add(foo)
23387 call __tls_get_addr, %tgd_call(foo)
23388 sethi %tldm_hi22(foo), %l1
23389 add %l1, %tldm_lo10(foo), %l2
23390 add %l7, %l2, %o0, %tldm_add(foo)
23391 call __tls_get_addr, %tldm_call(foo)
23392 sethi %tldo_hix22(foo), %l3
23393 xor %l3, %tldo_lox10(foo), %l4
23394 add %o0, %l4, %l5, %tldo_add(foo)
23395 sethi %tie_hi22(foo), %o3
23396 add %o3, %tie_lo10(foo), %o3
23397 ld [%l7 + %o3], %o2, %tie_ld(foo)
23398 add %g7, %o2, %o4, %tie_add(foo)
23399 sethi %tle_hix22(foo), %l1
23400 xor %l1, %tle_lox10(foo), %o5
23401 ld [%g7 + %o5], %o1"
23403 tilepro*-*-*)
23404 conftest_s='
23405 .section ".tdata","awT",@progbits
23406 foo: .long 25
23407 .text
23408 addli r0, zero, tls_gd(foo)
23409 auli r0, zero, tls_gd_ha16(foo)
23410 addli r0, r0, tls_gd_lo16(foo)
23411 jal __tls_get_addr
23412 addli r0, zero, tls_ie(foo)
23413 auli r0, r0, tls_ie_ha16(foo)
23414 addli r0, r0, tls_ie_lo16(foo)'
23415 tls_first_major=2
23416 tls_first_minor=22
23417 tls_as_opt="--fatal-warnings"
23419 tilegx*-*-*)
23420 conftest_s='
23421 .section ".tdata","awT",@progbits
23422 foo: .long 25
23423 .text
23424 shl16insli r0, zero, hw0_last_tls_gd(foo)
23425 shl16insli r0, zero, hw1_last_tls_gd(foo)
23426 shl16insli r0, r0, hw0_tls_gd(foo)
23427 jal __tls_get_addr
23428 shl16insli r0, zero, hw1_last_tls_ie(foo)
23429 shl16insli r0, r0, hw0_tls_ie(foo)'
23430 tls_first_major=2
23431 tls_first_minor=22
23432 tls_as_opt="--fatal-warnings"
23434 xtensa*-*-*)
23435 conftest_s='
23436 .section ".tdata","awT",@progbits
23437 foo: .long 25
23438 .text
23439 movi a8, foo@TLSFUNC
23440 movi a10, foo@TLSARG
23441 callx8.tls a8, foo@TLSCALL'
23442 tls_first_major=2
23443 tls_first_minor=19
23445 esac
23446 set_have_as_tls=no
23447 if test "x$enable_tls" = xno ; then
23448 : # TLS explicitly disabled.
23449 elif test "x$enable_tls" = xyes ; then
23450 set_have_as_tls=yes # TLS explicitly enabled.
23451 elif test -z "$tls_first_major"; then
23452 : # If we don't have a check, assume no support.
23453 else
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23455 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23456 if test "${gcc_cv_as_tls+set}" = set; then :
23457 $as_echo_n "(cached) " >&6
23458 else
23459 gcc_cv_as_tls=no
23460 if test $in_tree_gas = yes; then
23461 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23462 then gcc_cv_as_tls=yes
23464 elif test x$gcc_cv_as != x; then
23465 $as_echo "$conftest_s" > conftest.s
23466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23468 (eval $ac_try) 2>&5
23469 ac_status=$?
23470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23471 test $ac_status = 0; }; }
23472 then
23473 gcc_cv_as_tls=yes
23474 else
23475 echo "configure: failed program was" >&5
23476 cat conftest.s >&5
23478 rm -f conftest.o conftest.s
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23482 $as_echo "$gcc_cv_as_tls" >&6; }
23483 if test $gcc_cv_as_tls = yes; then
23484 set_have_as_tls=yes
23487 case "$target" in
23488 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23489 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23490 # Sun style that Sun ld and GCC don't support any longer.
23491 *-*-solaris2.*)
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23493 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23494 ld_tls_support=no
23495 # Check ld and ld.so.1 TLS support.
23496 if echo "$ld_ver" | grep GNU > /dev/null; then
23497 # Assume all interesting versions of GNU ld have TLS support.
23498 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23499 ld_tls_support=yes
23500 else
23501 case "$target" in
23502 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23503 i?86-*-solaris2.9)
23504 min_tls_ld_vers_minor=374
23506 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23507 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23508 min_tls_ld_vers_minor=343
23510 esac
23511 if test "$ld_vers_major" -gt 1 || \
23512 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23513 ld_tls_support=yes
23514 else
23515 set_have_as_tls=no
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23519 $as_echo "$ld_tls_support" >&6; }
23521 save_LIBS="$LIBS"
23522 save_LDFLAGS="$LDFLAGS"
23523 LIBS=
23524 LDFLAGS=
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23527 $as_echo_n "checking library containing $tga_func... " >&6; }
23528 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23529 # (32-bit x86) only lived in libthread, so check for that. Keep
23530 # set_have_as_tls if found, disable if not.
23531 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23533 $as_echo_n "checking for library containing $tga_func... " >&6; }
23534 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23535 $as_echo_n "(cached) " >&6
23536 else
23537 ac_func_search_save_LIBS=$LIBS
23538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23539 /* end confdefs.h. */
23541 /* Override any GCC internal prototype to avoid an error.
23542 Use char because int might match the return type of a GCC
23543 builtin and then its argument prototype would still apply. */
23544 #ifdef __cplusplus
23545 extern "C"
23546 #endif
23547 char $tga_func ();
23549 main ()
23551 return $tga_func ();
23553 return 0;
23555 _ACEOF
23556 for ac_lib in '' thread; do
23557 if test -z "$ac_lib"; then
23558 ac_res="none required"
23559 else
23560 ac_res=-l$ac_lib
23561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23563 if ac_fn_c_try_link "$LINENO"; then :
23564 eval "$as_ac_Search=\$ac_res"
23566 rm -f core conftest.err conftest.$ac_objext \
23567 conftest$ac_exeext
23568 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23569 break
23571 done
23572 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23574 else
23575 eval "$as_ac_Search=no"
23577 rm conftest.$ac_ext
23578 LIBS=$ac_func_search_save_LIBS
23580 eval ac_res=\$$as_ac_Search
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23582 $as_echo "$ac_res" >&6; }
23583 eval ac_res=\$$as_ac_Search
23584 if test "$ac_res" != no; then :
23585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23587 else
23588 set_have_as_tls=no
23591 # Clear LIBS if we cannot support TLS.
23592 if test $set_have_as_tls = no; then
23593 LIBS=
23595 # Always define LIB_TLS_SPEC, even without TLS support.
23597 cat >>confdefs.h <<_ACEOF
23598 #define LIB_TLS_SPEC "$LIBS"
23599 _ACEOF
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23602 $as_echo "$LIBS" >&6; }
23604 LIBS="$save_LIBS"
23605 LDFLAGS="$save_LDFLAGS"
23607 esac
23608 if test $set_have_as_tls = yes ; then
23610 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23614 # Target-specific assembler checks.
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23617 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23618 gcc_cv_ld_static_dynamic=no
23619 gcc_cv_ld_static_option='-Bstatic'
23620 gcc_cv_ld_dynamic_option='-Bdynamic'
23621 if test $in_tree_ld = yes ; then
23622 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
23623 gcc_cv_ld_static_dynamic=yes
23625 elif test x$gcc_cv_ld != x; then
23626 # Check if linker supports -Bstatic/-Bdynamic option
23627 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23628 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23629 gcc_cv_ld_static_dynamic=yes
23630 else
23631 case "$target" in
23632 # HP-UX ld uses -a flags to select between shared and archive.
23633 *-*-hpux*)
23634 if test x"$gnu_ld" = xno; then
23635 gcc_cv_ld_static_dynamic=yes
23636 gcc_cv_ld_static_option="-aarchive_shared"
23637 gcc_cv_ld_dynamic_option="-adefault"
23640 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23641 *-*-solaris2*)
23642 gcc_cv_ld_static_dynamic=yes
23644 esac
23647 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23649 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23652 cat >>confdefs.h <<_ACEOF
23653 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23654 _ACEOF
23657 cat >>confdefs.h <<_ACEOF
23658 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23659 _ACEOF
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23663 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23665 if test x"$demangler_in_ld" = xyes; then
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23667 $as_echo_n "checking linker --demangle support... " >&6; }
23668 gcc_cv_ld_demangle=no
23669 if test $in_tree_ld = yes; then
23670 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 \
23671 gcc_cv_ld_demangle=yes
23673 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23674 # Check if the GNU linker supports --demangle option
23675 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23676 gcc_cv_ld_demangle=yes
23679 if test x"$gcc_cv_ld_demangle" = xyes; then
23681 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23685 $as_echo "$gcc_cv_ld_demangle" >&6; }
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23689 $as_echo_n "checking linker plugin support... " >&6; }
23690 gcc_cv_lto_plugin=0
23691 if test -f liblto_plugin.la; then
23692 save_ld_ver="$ld_ver"
23693 save_ld_vers_major="$ld_vers_major"
23694 save_ld_vers_minor="$ld_vers_minor"
23695 save_ld_is_gold="$ld_is_gold"
23697 ld_is_gold=no
23699 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23700 ld_ver="GNU ld"
23701 # FIXME: ld_is_gold?
23702 ld_vers_major="$gcc_cv_gld_major_version"
23703 ld_vers_minor="$gcc_cv_gld_minor_version"
23704 else
23705 # Determine plugin linker version.
23706 # FIXME: Partial duplicate from above, generalize.
23707 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23708 if echo "$ld_ver" | grep GNU > /dev/null; then
23709 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23710 ld_is_gold=yes
23711 ld_vers=`echo $ld_ver | sed -n \
23712 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23713 else
23714 ld_vers=`echo $ld_ver | sed -n \
23715 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23717 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23718 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23722 # Determine plugin support.
23723 if echo "$ld_ver" | grep GNU > /dev/null; then
23724 # Require GNU ld or gold 2.21+ for plugin support by default.
23725 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23726 gcc_cv_lto_plugin=2
23727 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23728 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23729 gcc_cv_lto_plugin=1
23733 ld_ver="$save_ld_ver"
23734 ld_vers_major="$save_ld_vers_major"
23735 ld_vers_minor="$save_ld_vers_minor"
23736 ld_is_gold="$save_ld_is_gold"
23739 cat >>confdefs.h <<_ACEOF
23740 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23741 _ACEOF
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23744 $as_echo "$gcc_cv_lto_plugin" >&6; }
23746 case "$target" in
23747 # All TARGET_ABI_OSF targets.
23748 alpha*-*-linux* | alpha*-*-*bsd*)
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23750 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23751 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23752 $as_echo_n "(cached) " >&6
23753 else
23754 gcc_cv_as_alpha_explicit_relocs=no
23755 if test $in_tree_gas = yes; then
23756 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23757 then gcc_cv_as_alpha_explicit_relocs=yes
23759 elif test x$gcc_cv_as != x; then
23760 $as_echo ' .set nomacro
23761 .text
23762 extbl $3, $2, $3 !lituse_bytoff!1
23763 ldq $2, a($29) !literal!1
23764 ldq $4, b($29) !literal!2
23765 ldq_u $3, 0($2) !lituse_base!1
23766 ldq $27, f($29) !literal!5
23767 jsr $26, ($27), f !lituse_jsr!5
23768 ldah $29, 0($26) !gpdisp!3
23769 lda $0, c($29) !gprel
23770 ldah $1, d($29) !gprelhigh
23771 lda $1, d($1) !gprellow
23772 lda $29, 0($29) !gpdisp!3' > conftest.s
23773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23778 test $ac_status = 0; }; }
23779 then
23780 gcc_cv_as_alpha_explicit_relocs=yes
23781 else
23782 echo "configure: failed program was" >&5
23783 cat conftest.s >&5
23785 rm -f conftest.o conftest.s
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23789 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23790 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23792 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23796 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23797 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23798 $as_echo_n "(cached) " >&6
23799 else
23800 gcc_cv_as_alpha_jsrdirect_relocs=no
23801 if test $in_tree_gas = yes; then
23802 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23803 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23805 elif test x$gcc_cv_as != x; then
23806 $as_echo ' .set nomacro
23807 .text
23808 ldq $27, a($29) !literal!1
23809 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23812 (eval $ac_try) 2>&5
23813 ac_status=$?
23814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23815 test $ac_status = 0; }; }
23816 then
23817 gcc_cv_as_alpha_jsrdirect_relocs=yes
23818 else
23819 echo "configure: failed program was" >&5
23820 cat conftest.s >&5
23822 rm -f conftest.o conftest.s
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23826 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23827 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23829 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23834 cris-*-*)
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23836 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23837 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23838 $as_echo_n "(cached) " >&6
23839 else
23840 gcc_cv_as_cris_no_mul_bug=no
23841 if test $in_tree_gas = yes; then
23842 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23843 then gcc_cv_as_cris_no_mul_bug=yes
23845 elif test x$gcc_cv_as != x; then
23846 $as_echo '.text' > conftest.s
23847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23849 (eval $ac_try) 2>&5
23850 ac_status=$?
23851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23852 test $ac_status = 0; }; }
23853 then
23854 gcc_cv_as_cris_no_mul_bug=yes
23855 else
23856 echo "configure: failed program was" >&5
23857 cat conftest.s >&5
23859 rm -f conftest.o conftest.s
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23863 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23864 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23866 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23871 sparc*-*-*)
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23873 $as_echo_n "checking assembler for .register... " >&6; }
23874 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23875 $as_echo_n "(cached) " >&6
23876 else
23877 gcc_cv_as_sparc_register_op=no
23878 if test x$gcc_cv_as != x; then
23879 $as_echo '.register %g2, #scratch' > conftest.s
23880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23885 test $ac_status = 0; }; }
23886 then
23887 gcc_cv_as_sparc_register_op=yes
23888 else
23889 echo "configure: failed program was" >&5
23890 cat conftest.s >&5
23892 rm -f conftest.o conftest.s
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23896 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23897 if test $gcc_cv_as_sparc_register_op = yes; then
23899 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23904 $as_echo_n "checking assembler for -relax option... " >&6; }
23905 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23906 $as_echo_n "(cached) " >&6
23907 else
23908 gcc_cv_as_sparc_relax=no
23909 if test x$gcc_cv_as != x; then
23910 $as_echo '.text' > conftest.s
23911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23913 (eval $ac_try) 2>&5
23914 ac_status=$?
23915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23916 test $ac_status = 0; }; }
23917 then
23918 gcc_cv_as_sparc_relax=yes
23919 else
23920 echo "configure: failed program was" >&5
23921 cat conftest.s >&5
23923 rm -f conftest.o conftest.s
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23927 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23928 if test $gcc_cv_as_sparc_relax = yes; then
23930 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23935 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23936 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23937 $as_echo_n "(cached) " >&6
23938 else
23939 gcc_cv_as_sparc_gotdata_op=no
23940 if test x$gcc_cv_as != x; then
23941 $as_echo '.text
23942 .align 4
23943 foo:
23945 bar:
23946 sethi %gdop_hix22(foo), %g1
23947 xor %g1, %gdop_lox10(foo), %g1
23948 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23951 (eval $ac_try) 2>&5
23952 ac_status=$?
23953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23954 test $ac_status = 0; }; }
23955 then
23956 if test x$gcc_cv_ld != x \
23957 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23958 if test x$gcc_cv_objdump != x; then
23959 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23960 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23961 gcc_cv_as_sparc_gotdata_op=no
23962 else
23963 gcc_cv_as_sparc_gotdata_op=yes
23967 rm -f conftest
23968 else
23969 echo "configure: failed program was" >&5
23970 cat conftest.s >&5
23972 rm -f conftest.o conftest.s
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23976 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23977 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23979 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23984 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23985 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23986 $as_echo_n "(cached) " >&6
23987 else
23988 gcc_cv_as_sparc_ua_pcrel=no
23989 if test x$gcc_cv_as != x; then
23990 $as_echo '.text
23991 foo:
23993 .data
23994 .align 4
23995 .byte 0
23996 .uaword %r_disp32(foo)' > conftest.s
23997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24000 ac_status=$?
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; }
24003 then
24004 if test x$gcc_cv_ld != x \
24005 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24006 gcc_cv_as_sparc_ua_pcrel=yes
24008 rm -f conftest
24009 else
24010 echo "configure: failed program was" >&5
24011 cat conftest.s >&5
24013 rm -f conftest.o conftest.s
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24017 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24018 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24020 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24024 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24025 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24026 $as_echo_n "(cached) " >&6
24027 else
24028 gcc_cv_as_sparc_ua_pcrel_hidden=no
24029 if test x$gcc_cv_as != x; then
24030 $as_echo '.data
24031 .align 4
24032 .byte 0x31
24033 .uaword %r_disp32(foo)
24034 .byte 0x32, 0x33, 0x34
24035 .global foo
24036 .hidden foo
24037 foo:
24038 .skip 4' > conftest.s
24039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24041 (eval $ac_try) 2>&5
24042 ac_status=$?
24043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24044 test $ac_status = 0; }; }
24045 then
24046 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24047 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24048 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24049 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24050 if $gcc_cv_objdump -R conftest 2> /dev/null \
24051 | grep 'DISP32' > /dev/null 2>&1; then
24053 else
24054 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24057 rm -f conftest
24058 else
24059 echo "configure: failed program was" >&5
24060 cat conftest.s >&5
24062 rm -f conftest.o conftest.s
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24066 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24067 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24069 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24073 fi # unaligned pcrel relocs
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24076 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24077 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24078 $as_echo_n "(cached) " >&6
24079 else
24080 gcc_cv_as_sparc_offsetable_lo10=no
24081 if test x$gcc_cv_as != x; then
24082 $as_echo '.text
24083 or %g1, %lo(ab) + 12, %g1
24084 or %g1, %lo(ab + 12), %g1' > conftest.s
24085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24087 (eval $ac_try) 2>&5
24088 ac_status=$?
24089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24090 test $ac_status = 0; }; }
24091 then
24092 if test x$gcc_cv_objdump != x \
24093 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24094 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24095 gcc_cv_as_sparc_offsetable_lo10=yes
24097 else
24098 echo "configure: failed program was" >&5
24099 cat conftest.s >&5
24101 rm -f conftest.o conftest.s
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24105 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24106 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24108 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24113 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24114 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24115 $as_echo_n "(cached) " >&6
24116 else
24117 gcc_cv_as_sparc_fmaf=no
24118 if test x$gcc_cv_as != x; then
24119 $as_echo '.text
24120 .register %g2, #scratch
24121 .register %g3, #scratch
24122 .align 4
24123 fmaddd %f0, %f2, %f4, %f6
24124 addxccc %g1, %g2, %g3
24125 fsrl32 %f2, %f4, %f8
24126 fnaddd %f10, %f12, %f14' > conftest.s
24127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24129 (eval $ac_try) 2>&5
24130 ac_status=$?
24131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24132 test $ac_status = 0; }; }
24133 then
24134 gcc_cv_as_sparc_fmaf=yes
24135 else
24136 echo "configure: failed program was" >&5
24137 cat conftest.s >&5
24139 rm -f conftest.o conftest.s
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24143 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24144 if test $gcc_cv_as_sparc_fmaf = yes; then
24146 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24151 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24152 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24153 $as_echo_n "(cached) " >&6
24154 else
24155 gcc_cv_as_sparc_sparc4=no
24156 if test x$gcc_cv_as != x; then
24157 $as_echo '.text
24158 .register %g2, #scratch
24159 .register %g3, #scratch
24160 .align 4
24161 cxbe %g2, %g3, 1f
24162 1: cwbneg %g2, %g3, 1f
24163 1: sha1
24165 aes_kexpand0 %f4, %f6, %f8
24166 des_round %f38, %f40, %f42, %f44
24167 camellia_f %f54, %f56, %f58, %f60
24168 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; }
24175 then
24176 gcc_cv_as_sparc_sparc4=yes
24177 else
24178 echo "configure: failed program was" >&5
24179 cat conftest.s >&5
24181 rm -f conftest.o conftest.s
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24185 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24186 if test $gcc_cv_as_sparc_sparc4 = yes; then
24188 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24193 i[34567]86-*-* | x86_64-*-*)
24194 case $target_os in
24195 cygwin*)
24196 # Full C++ conformance when using a shared libstdc++-v3 requires some
24197 # support from the Cygwin DLL, which in more recent versions exports
24198 # wrappers to aid in interposing and redirecting operators new, delete,
24199 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24200 # are configuring for a version of Cygwin that exports the wrappers.
24201 if test x$host = x$target; then
24202 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24203 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24204 gcc_ac_cygwin_dll_wrappers=yes
24205 else
24206 gcc_ac_cygwin_dll_wrappers=no
24209 else
24210 # Can't check presence of libc functions during cross-compile, so
24211 # we just have to assume we're building for an up-to-date target.
24212 gcc_ac_cygwin_dll_wrappers=yes
24215 cat >>confdefs.h <<_ACEOF
24216 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24217 _ACEOF
24219 esac
24220 case $target_os in
24221 cygwin* | pe | mingw32* | interix*)
24222 # Recent binutils allows the three-operand form of ".comm" on PE. This
24223 # definition is used unconditionally to initialise the default state of
24224 # the target option variable that governs usage of the feature.
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24226 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24227 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24229 else
24230 gcc_cv_as_comm_has_align=no
24231 if test $in_tree_gas = yes; then
24232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24233 then gcc_cv_as_comm_has_align=yes
24235 elif test x$gcc_cv_as != x; then
24236 $as_echo '.comm foo,1,32' > conftest.s
24237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_comm_has_align=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_comm_has_align" >&5
24253 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24256 cat >>confdefs.h <<_ACEOF
24257 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24258 _ACEOF
24260 # Used for DWARF 2 in PE
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24262 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24263 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24264 $as_echo_n "(cached) " >&6
24265 else
24266 gcc_cv_as_ix86_pe_secrel32=no
24267 if test $in_tree_gas = yes; then
24268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24269 then gcc_cv_as_ix86_pe_secrel32=yes
24271 elif test x$gcc_cv_as != x; then
24272 $as_echo '.text
24273 foo: nop
24274 .data
24275 .secrel32 foo' > conftest.s
24276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24278 (eval $ac_try) 2>&5
24279 ac_status=$?
24280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24281 test $ac_status = 0; }; }
24282 then
24283 if test x$gcc_cv_ld != x \
24284 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24285 gcc_cv_as_ix86_pe_secrel32=yes
24287 rm -f conftest
24288 else
24289 echo "configure: failed program was" >&5
24290 cat conftest.s >&5
24292 rm -f conftest.o conftest.s
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24296 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24297 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24299 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24302 # Test if the assembler supports the extended form of the .section
24303 # directive that specifies section alignment. LTO support uses this,
24304 # but normally only after installation, so we warn but don't fail the
24305 # configure if LTO is enabled but the assembler does not support it.
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24307 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24308 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24309 $as_echo_n "(cached) " >&6
24310 else
24311 gcc_cv_as_section_has_align=no
24312 if test $in_tree_gas = yes; then
24313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24314 then gcc_cv_as_section_has_align=yes
24316 elif test x$gcc_cv_as != x; then
24317 $as_echo '.section lto_test,"dr0"' > conftest.s
24318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24320 (eval $ac_try) 2>&5
24321 ac_status=$?
24322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24323 test $ac_status = 0; }; }
24324 then
24325 gcc_cv_as_section_has_align=yes
24326 else
24327 echo "configure: failed program was" >&5
24328 cat conftest.s >&5
24330 rm -f conftest.o conftest.s
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24334 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24336 if test x$gcc_cv_as_section_has_align != xyes; then
24337 case ",$enable_languages," in
24338 *,lto,*)
24339 { $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
24340 $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;}
24342 esac
24344 # Test if the assembler supports the section flag 'e' for specifying
24345 # an excluded section.
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24347 $as_echo_n "checking assembler for .section with e... " >&6; }
24348 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24349 $as_echo_n "(cached) " >&6
24350 else
24351 gcc_cv_as_section_has_e=no
24352 if test $in_tree_gas = yes; then
24353 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24354 then gcc_cv_as_section_has_e=yes
24356 elif test x$gcc_cv_as != x; then
24357 $as_echo '.section foo1,"e"
24358 .byte 0,0,0,0' > conftest.s
24359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24364 test $ac_status = 0; }; }
24365 then
24366 gcc_cv_as_section_has_e=yes
24367 else
24368 echo "configure: failed program was" >&5
24369 cat conftest.s >&5
24371 rm -f conftest.o conftest.s
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24375 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24378 cat >>confdefs.h <<_ACEOF
24379 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24380 _ACEOF
24383 esac
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24386 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24387 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24388 $as_echo_n "(cached) " >&6
24389 else
24390 gcc_cv_as_ix86_filds=no
24391 if test x$gcc_cv_as != x; then
24392 $as_echo 'filds mem; fists mem' > conftest.s
24393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24395 (eval $ac_try) 2>&5
24396 ac_status=$?
24397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24398 test $ac_status = 0; }; }
24399 then
24400 gcc_cv_as_ix86_filds=yes
24401 else
24402 echo "configure: failed program was" >&5
24403 cat conftest.s >&5
24405 rm -f conftest.o conftest.s
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24409 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24410 if test $gcc_cv_as_ix86_filds = yes; then
24412 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24417 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24418 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24419 $as_echo_n "(cached) " >&6
24420 else
24421 gcc_cv_as_ix86_fildq=no
24422 if test x$gcc_cv_as != x; then
24423 $as_echo 'fildq mem; fistpq mem' > conftest.s
24424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24429 test $ac_status = 0; }; }
24430 then
24431 gcc_cv_as_ix86_fildq=yes
24432 else
24433 echo "configure: failed program was" >&5
24434 cat conftest.s >&5
24436 rm -f conftest.o conftest.s
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24440 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24441 if test $gcc_cv_as_ix86_fildq = yes; then
24443 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24448 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24449 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24450 $as_echo_n "(cached) " >&6
24451 else
24452 gcc_cv_as_ix86_cmov_sun_syntax=no
24453 if test x$gcc_cv_as != x; then
24454 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24457 (eval $ac_try) 2>&5
24458 ac_status=$?
24459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460 test $ac_status = 0; }; }
24461 then
24462 gcc_cv_as_ix86_cmov_sun_syntax=yes
24463 else
24464 echo "configure: failed program was" >&5
24465 cat conftest.s >&5
24467 rm -f conftest.o conftest.s
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24471 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24472 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24474 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24479 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24480 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24481 $as_echo_n "(cached) " >&6
24482 else
24483 gcc_cv_as_ix86_ffreep=no
24484 if test x$gcc_cv_as != x; then
24485 $as_echo 'ffreep %st(1)' > conftest.s
24486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24488 (eval $ac_try) 2>&5
24489 ac_status=$?
24490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24491 test $ac_status = 0; }; }
24492 then
24493 gcc_cv_as_ix86_ffreep=yes
24494 else
24495 echo "configure: failed program was" >&5
24496 cat conftest.s >&5
24498 rm -f conftest.o conftest.s
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24502 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24503 if test $gcc_cv_as_ix86_ffreep = yes; then
24505 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24510 $as_echo_n "checking assembler for .quad directive... " >&6; }
24511 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24512 $as_echo_n "(cached) " >&6
24513 else
24514 gcc_cv_as_ix86_quad=no
24515 if test x$gcc_cv_as != x; then
24516 $as_echo '.quad 0' > conftest.s
24517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24519 (eval $ac_try) 2>&5
24520 ac_status=$?
24521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24522 test $ac_status = 0; }; }
24523 then
24524 gcc_cv_as_ix86_quad=yes
24525 else
24526 echo "configure: failed program was" >&5
24527 cat conftest.s >&5
24529 rm -f conftest.o conftest.s
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24533 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24534 if test $gcc_cv_as_ix86_quad = yes; then
24536 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24541 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24542 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24543 $as_echo_n "(cached) " >&6
24544 else
24545 gcc_cv_as_ix86_sahf=no
24546 if test x$gcc_cv_as != x; then
24547 $as_echo '.code64
24548 sahf' > conftest.s
24549 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24551 (eval $ac_try) 2>&5
24552 ac_status=$?
24553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24554 test $ac_status = 0; }; }
24555 then
24556 gcc_cv_as_ix86_sahf=yes
24557 else
24558 echo "configure: failed program was" >&5
24559 cat conftest.s >&5
24561 rm -f conftest.o conftest.s
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24565 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24566 if test $gcc_cv_as_ix86_sahf = yes; then
24568 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24573 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24574 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24575 $as_echo_n "(cached) " >&6
24576 else
24577 gcc_cv_as_ix86_hle=no
24578 if test x$gcc_cv_as != x; then
24579 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24583 ac_status=$?
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24586 then
24587 gcc_cv_as_ix86_hle=yes
24588 else
24589 echo "configure: failed program was" >&5
24590 cat conftest.s >&5
24592 rm -f conftest.o conftest.s
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24596 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24597 if test $gcc_cv_as_ix86_hle = yes; then
24599 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24604 $as_echo_n "checking assembler for swap suffix... " >&6; }
24605 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24606 $as_echo_n "(cached) " >&6
24607 else
24608 gcc_cv_as_ix86_swap=no
24609 if test x$gcc_cv_as != x; then
24610 $as_echo 'movl.s %esp, %ebp' > conftest.s
24611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24613 (eval $ac_try) 2>&5
24614 ac_status=$?
24615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24616 test $ac_status = 0; }; }
24617 then
24618 gcc_cv_as_ix86_swap=yes
24619 else
24620 echo "configure: failed program was" >&5
24621 cat conftest.s >&5
24623 rm -f conftest.o conftest.s
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24627 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24628 if test $gcc_cv_as_ix86_swap = yes; then
24630 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24635 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24636 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24638 else
24639 gcc_cv_as_ix86_diff_sect_delta=no
24640 if test x$gcc_cv_as != x; then
24641 $as_echo '.section .rodata
24642 .L1:
24643 .long .L2-.L1
24644 .long .L3-.L1
24645 .text
24646 .L3: nop
24647 .L2: nop' > conftest.s
24648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24650 (eval $ac_try) 2>&5
24651 ac_status=$?
24652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24653 test $ac_status = 0; }; }
24654 then
24655 gcc_cv_as_ix86_diff_sect_delta=yes
24656 else
24657 echo "configure: failed program was" >&5
24658 cat conftest.s >&5
24660 rm -f conftest.o conftest.s
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24664 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24665 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24667 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24671 # These two are used unconditionally by i386.[ch]; it is to be defined
24672 # to 1 if the feature is present, 0 otherwise.
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24674 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24675 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24676 $as_echo_n "(cached) " >&6
24677 else
24678 gcc_cv_as_ix86_gotoff_in_data=no
24679 if test $in_tree_gas = yes; then
24680 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24681 then gcc_cv_as_ix86_gotoff_in_data=yes
24683 elif test x$gcc_cv_as != x; then
24684 $as_echo ' .text
24685 .L0:
24687 .data
24688 .long .L0@GOTOFF' > conftest.s
24689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24691 (eval $ac_try) 2>&5
24692 ac_status=$?
24693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24694 test $ac_status = 0; }; }
24695 then
24696 gcc_cv_as_ix86_gotoff_in_data=yes
24697 else
24698 echo "configure: failed program was" >&5
24699 cat conftest.s >&5
24701 rm -f conftest.o conftest.s
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24705 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24708 cat >>confdefs.h <<_ACEOF
24709 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24710 _ACEOF
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24714 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24715 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24716 $as_echo_n "(cached) " >&6
24717 else
24718 gcc_cv_as_ix86_rep_lock_prefix=no
24719 if test x$gcc_cv_as != x; then
24720 $as_echo 'rep movsl
24721 rep ret
24722 rep nop
24723 rep bsf %ecx, %eax
24724 rep bsr %ecx, %eax
24725 lock addl %edi, (%eax,%esi)
24726 lock orl $0, (%esp)' > conftest.s
24727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24729 (eval $ac_try) 2>&5
24730 ac_status=$?
24731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24732 test $ac_status = 0; }; }
24733 then
24734 gcc_cv_as_ix86_rep_lock_prefix=yes
24735 else
24736 echo "configure: failed program was" >&5
24737 cat conftest.s >&5
24739 rm -f conftest.o conftest.s
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24743 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24744 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24746 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24751 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24752 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24754 else
24755 gcc_cv_as_ix86_tlsgdplt=no
24756 if test x$gcc_cv_as != x; then
24757 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24760 (eval $ac_try) 2>&5
24761 ac_status=$?
24762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24763 test $ac_status = 0; }; }
24764 then
24765 if test x$gcc_cv_ld != x \
24766 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24767 gcc_cv_as_ix86_tlsgdplt=yes
24769 rm -f conftest
24770 else
24771 echo "configure: failed program was" >&5
24772 cat conftest.s >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24778 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24779 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24781 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24786 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24787 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24788 $as_echo_n "(cached) " >&6
24789 else
24790 gcc_cv_as_ix86_tlsldmplt=no
24791 if test x$gcc_cv_as != x; then
24792 $as_echo 'tls_ld:
24793 call tls_ld@tlsldmplt' > conftest.s
24794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24796 (eval $ac_try) 2>&5
24797 ac_status=$?
24798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24799 test $ac_status = 0; }; }
24800 then
24801 if test x$gcc_cv_ld != x \
24802 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24803 gcc_cv_as_ix86_tlsldmplt=yes
24805 rm -f conftest
24806 else
24807 echo "configure: failed program was" >&5
24808 cat conftest.s >&5
24810 rm -f conftest.o conftest.s
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24814 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24815 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24817 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24823 ia64*-*-*)
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24825 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24826 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24827 $as_echo_n "(cached) " >&6
24828 else
24829 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24830 if test $in_tree_gas = yes; then
24831 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24832 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24834 elif test x$gcc_cv_as != x; then
24835 $as_echo ' .text
24836 addl r15 = @ltoffx(x#), gp
24838 ld8.mov r16 = [r15], x#' > conftest.s
24839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24841 (eval $ac_try) 2>&5
24842 ac_status=$?
24843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24844 test $ac_status = 0; }; }
24845 then
24846 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24847 else
24848 echo "configure: failed program was" >&5
24849 cat conftest.s >&5
24851 rm -f conftest.o conftest.s
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24855 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24856 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24858 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24864 powerpc*-*-*)
24865 case $target in
24866 *-*-aix*) conftest_s=' .machine "pwr5"
24867 .csect .text[PR]
24868 mfcr 3,128';;
24869 *-*-darwin*)
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24871 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24872 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24873 $as_echo_n "(cached) " >&6
24874 else
24875 gcc_cv_as_machine_directive=no
24876 if test x$gcc_cv_as != x; then
24877 $as_echo ' .machine ppc7400' > conftest.s
24878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24880 (eval $ac_try) 2>&5
24881 ac_status=$?
24882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24883 test $ac_status = 0; }; }
24884 then
24885 gcc_cv_as_machine_directive=yes
24886 else
24887 echo "configure: failed program was" >&5
24888 cat conftest.s >&5
24890 rm -f conftest.o conftest.s
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24894 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24896 if test x$gcc_cv_as_machine_directive != xyes; then
24897 echo "*** This target requires an assembler supporting \".machine\"" >&2
24898 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24899 test x$build = x$target && exit 1
24901 conftest_s=' .text
24902 mfcr r3,128';;
24903 *) conftest_s=' .machine power4
24904 .text
24905 mfcr 3,128';;
24906 esac
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24909 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24910 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24913 gcc_cv_as_powerpc_mfcrf=no
24914 if test $in_tree_gas = yes; then
24915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24916 then gcc_cv_as_powerpc_mfcrf=yes
24918 elif test x$gcc_cv_as != x; then
24919 $as_echo "$conftest_s" > conftest.s
24920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24925 test $ac_status = 0; }; }
24926 then
24927 gcc_cv_as_powerpc_mfcrf=yes
24928 else
24929 echo "configure: failed program was" >&5
24930 cat conftest.s >&5
24932 rm -f conftest.o conftest.s
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24936 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24937 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24939 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24943 case $target in
24944 *-*-aix*) conftest_s=' .machine "pwr5"
24945 .csect .text[PR]
24946 popcntb 3,3';;
24947 *) conftest_s=' .machine power5
24948 .text
24949 popcntb 3,3';;
24950 esac
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24953 $as_echo_n "checking assembler for popcntb support... " >&6; }
24954 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24955 $as_echo_n "(cached) " >&6
24956 else
24957 gcc_cv_as_powerpc_popcntb=no
24958 if test $in_tree_gas = yes; then
24959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24960 then gcc_cv_as_powerpc_popcntb=yes
24962 elif test x$gcc_cv_as != x; then
24963 $as_echo "$conftest_s" > conftest.s
24964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24966 (eval $ac_try) 2>&5
24967 ac_status=$?
24968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24969 test $ac_status = 0; }; }
24970 then
24971 gcc_cv_as_powerpc_popcntb=yes
24972 else
24973 echo "configure: failed program was" >&5
24974 cat conftest.s >&5
24976 rm -f conftest.o conftest.s
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24980 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24981 if test $gcc_cv_as_powerpc_popcntb = yes; then
24983 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24987 case $target in
24988 *-*-aix*) conftest_s=' .machine "pwr5x"
24989 .csect .text[PR]
24990 frin 1,1';;
24991 *) conftest_s=' .machine power5
24992 .text
24993 frin 1,1';;
24994 esac
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24997 $as_echo_n "checking assembler for fp round support... " >&6; }
24998 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24999 $as_echo_n "(cached) " >&6
25000 else
25001 gcc_cv_as_powerpc_fprnd=no
25002 if test $in_tree_gas = yes; then
25003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25004 then gcc_cv_as_powerpc_fprnd=yes
25006 elif test x$gcc_cv_as != x; then
25007 $as_echo "$conftest_s" > conftest.s
25008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25010 (eval $ac_try) 2>&5
25011 ac_status=$?
25012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25013 test $ac_status = 0; }; }
25014 then
25015 gcc_cv_as_powerpc_fprnd=yes
25016 else
25017 echo "configure: failed program was" >&5
25018 cat conftest.s >&5
25020 rm -f conftest.o conftest.s
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25024 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25025 if test $gcc_cv_as_powerpc_fprnd = yes; then
25027 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25031 case $target in
25032 *-*-aix*) conftest_s=' .machine "pwr6"
25033 .csect .text[PR]
25034 mffgpr 1,3';;
25035 *) conftest_s=' .machine power6
25036 .text
25037 mffgpr 1,3';;
25038 esac
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25041 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25042 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25043 $as_echo_n "(cached) " >&6
25044 else
25045 gcc_cv_as_powerpc_mfpgpr=no
25046 if test $in_tree_gas = yes; then
25047 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25048 then gcc_cv_as_powerpc_mfpgpr=yes
25050 elif test x$gcc_cv_as != x; then
25051 $as_echo "$conftest_s" > conftest.s
25052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25054 (eval $ac_try) 2>&5
25055 ac_status=$?
25056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25057 test $ac_status = 0; }; }
25058 then
25059 gcc_cv_as_powerpc_mfpgpr=yes
25060 else
25061 echo "configure: failed program was" >&5
25062 cat conftest.s >&5
25064 rm -f conftest.o conftest.s
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25068 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25069 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25071 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25075 case $target in
25076 *-*-aix*) conftest_s=' .csect .text[PR]
25077 LCF..0:
25078 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25079 *-*-darwin*)
25080 conftest_s=' .text
25081 LCF0:
25082 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25083 *) conftest_s=' .text
25084 .LCF0:
25085 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25086 esac
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25089 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25090 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25091 $as_echo_n "(cached) " >&6
25092 else
25093 gcc_cv_as_powerpc_rel16=no
25094 if test $in_tree_gas = yes; then
25095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25096 then gcc_cv_as_powerpc_rel16=yes
25098 elif test x$gcc_cv_as != x; then
25099 $as_echo "$conftest_s" > conftest.s
25100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25102 (eval $ac_try) 2>&5
25103 ac_status=$?
25104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25105 test $ac_status = 0; }; }
25106 then
25107 gcc_cv_as_powerpc_rel16=yes
25108 else
25109 echo "configure: failed program was" >&5
25110 cat conftest.s >&5
25112 rm -f conftest.o conftest.s
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25116 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25117 if test $gcc_cv_as_powerpc_rel16 = yes; then
25119 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25123 case $target in
25124 *-*-aix*) conftest_s=' .machine "pwr6"
25125 .csect .text[PR]
25126 cmpb 3,4,5';;
25127 *) conftest_s=' .machine power6
25128 .text
25129 cmpb 3,4,5';;
25130 esac
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25133 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25134 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25135 $as_echo_n "(cached) " >&6
25136 else
25137 gcc_cv_as_powerpc_cmpb=no
25138 if test $in_tree_gas = yes; then
25139 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25140 then gcc_cv_as_powerpc_cmpb=yes
25142 elif test x$gcc_cv_as != x; then
25143 $as_echo "$conftest_s" > conftest.s
25144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25146 (eval $ac_try) 2>&5
25147 ac_status=$?
25148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25149 test $ac_status = 0; }; }
25150 then
25151 gcc_cv_as_powerpc_cmpb=yes
25152 else
25153 echo "configure: failed program was" >&5
25154 cat conftest.s >&5
25156 rm -f conftest.o conftest.s
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25160 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25161 if test $gcc_cv_as_powerpc_cmpb = yes; then
25163 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25167 case $target in
25168 *-*-aix*) conftest_s=' .machine "pwr6"
25169 .csect .text[PR]
25170 dadd 1,2,3';;
25171 *) conftest_s=' .machine power6
25172 .text
25173 dadd 1,2,3';;
25174 esac
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25177 $as_echo_n "checking assembler for decimal float support... " >&6; }
25178 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25179 $as_echo_n "(cached) " >&6
25180 else
25181 gcc_cv_as_powerpc_dfp=no
25182 if test $in_tree_gas = yes; then
25183 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25184 then gcc_cv_as_powerpc_dfp=yes
25186 elif test x$gcc_cv_as != x; then
25187 $as_echo "$conftest_s" > conftest.s
25188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25190 (eval $ac_try) 2>&5
25191 ac_status=$?
25192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25193 test $ac_status = 0; }; }
25194 then
25195 gcc_cv_as_powerpc_dfp=yes
25196 else
25197 echo "configure: failed program was" >&5
25198 cat conftest.s >&5
25200 rm -f conftest.o conftest.s
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25204 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25205 if test $gcc_cv_as_powerpc_dfp = yes; then
25207 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25211 case $target in
25212 *-*-aix*) conftest_s=' .machine "pwr7"
25213 .csect .text[PR]
25214 lxvd2x 1,2,3';;
25215 *) conftest_s=' .machine power7
25216 .text
25217 lxvd2x 1,2,3';;
25218 esac
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25221 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25222 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25223 $as_echo_n "(cached) " >&6
25224 else
25225 gcc_cv_as_powerpc_vsx=no
25226 if test $in_tree_gas = yes; then
25227 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25228 then gcc_cv_as_powerpc_vsx=yes
25230 elif test x$gcc_cv_as != x; then
25231 $as_echo "$conftest_s" > conftest.s
25232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25234 (eval $ac_try) 2>&5
25235 ac_status=$?
25236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25237 test $ac_status = 0; }; }
25238 then
25239 gcc_cv_as_powerpc_vsx=yes
25240 else
25241 echo "configure: failed program was" >&5
25242 cat conftest.s >&5
25244 rm -f conftest.o conftest.s
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25248 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25249 if test $gcc_cv_as_powerpc_vsx = yes; then
25251 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25255 case $target in
25256 *-*-aix*) conftest_s=' .machine "pwr7"
25257 .csect .text[PR]
25258 popcntd 3,3';;
25259 *) conftest_s=' .machine power7
25260 .text
25261 popcntd 3,3';;
25262 esac
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25265 $as_echo_n "checking assembler for popcntd support... " >&6; }
25266 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25267 $as_echo_n "(cached) " >&6
25268 else
25269 gcc_cv_as_powerpc_popcntd=no
25270 if test $in_tree_gas = yes; then
25271 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25272 then gcc_cv_as_powerpc_popcntd=yes
25274 elif test x$gcc_cv_as != x; then
25275 $as_echo "$conftest_s" > conftest.s
25276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25278 (eval $ac_try) 2>&5
25279 ac_status=$?
25280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25281 test $ac_status = 0; }; }
25282 then
25283 gcc_cv_as_powerpc_popcntd=yes
25284 else
25285 echo "configure: failed program was" >&5
25286 cat conftest.s >&5
25288 rm -f conftest.o conftest.s
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25292 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25293 if test $gcc_cv_as_powerpc_popcntd = yes; then
25295 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25299 case $target in
25300 *-*-aix*) conftest_s=' .machine "pwr8"
25301 .csect .text[PR]';;
25302 *) conftest_s=' .machine power8
25303 .text';;
25304 esac
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25307 $as_echo_n "checking assembler for power8 support... " >&6; }
25308 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25309 $as_echo_n "(cached) " >&6
25310 else
25311 gcc_cv_as_powerpc_power8=no
25312 if test $in_tree_gas = yes; then
25313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25314 then gcc_cv_as_powerpc_power8=yes
25316 elif test x$gcc_cv_as != x; then
25317 $as_echo "$conftest_s" > conftest.s
25318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25320 (eval $ac_try) 2>&5
25321 ac_status=$?
25322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25323 test $ac_status = 0; }; }
25324 then
25325 gcc_cv_as_powerpc_power8=yes
25326 else
25327 echo "configure: failed program was" >&5
25328 cat conftest.s >&5
25330 rm -f conftest.o conftest.s
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25334 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25335 if test $gcc_cv_as_powerpc_power8 = yes; then
25337 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25341 case $target in
25342 *-*-aix*) conftest_s=' .csect .text[PR]
25343 lwsync';;
25344 *) conftest_s=' .text
25345 lwsync';;
25346 esac
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25349 $as_echo_n "checking assembler for lwsync support... " >&6; }
25350 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25351 $as_echo_n "(cached) " >&6
25352 else
25353 gcc_cv_as_powerpc_lwsync=no
25354 if test $in_tree_gas = yes; then
25355 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25356 then gcc_cv_as_powerpc_lwsync=yes
25358 elif test x$gcc_cv_as != x; then
25359 $as_echo "$conftest_s" > conftest.s
25360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25362 (eval $ac_try) 2>&5
25363 ac_status=$?
25364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25365 test $ac_status = 0; }; }
25366 then
25367 gcc_cv_as_powerpc_lwsync=yes
25368 else
25369 echo "configure: failed program was" >&5
25370 cat conftest.s >&5
25372 rm -f conftest.o conftest.s
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25376 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25377 if test $gcc_cv_as_powerpc_lwsync = yes; then
25379 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25383 case $target in
25384 *-*-aix*) conftest_s=' .machine "476"
25385 .csect .text[PR]
25386 dci 0';;
25387 *) conftest_s=' .machine "476"
25388 .text
25389 dci 0';;
25390 esac
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25393 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25394 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25395 $as_echo_n "(cached) " >&6
25396 else
25397 gcc_cv_as_powerpc_dci=no
25398 if test $in_tree_gas = yes; then
25399 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25400 then gcc_cv_as_powerpc_dci=yes
25402 elif test x$gcc_cv_as != x; then
25403 $as_echo "$conftest_s" > conftest.s
25404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25409 test $ac_status = 0; }; }
25410 then
25411 gcc_cv_as_powerpc_dci=yes
25412 else
25413 echo "configure: failed program was" >&5
25414 cat conftest.s >&5
25416 rm -f conftest.o conftest.s
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25420 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25421 if test $gcc_cv_as_powerpc_dci = yes; then
25423 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25428 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25429 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25430 $as_echo_n "(cached) " >&6
25431 else
25432 gcc_cv_as_powerpc_gnu_attribute=no
25433 if test $in_tree_gas = yes; then
25434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25435 then gcc_cv_as_powerpc_gnu_attribute=yes
25437 elif test x$gcc_cv_as != x; then
25438 $as_echo '.gnu_attribute 4,1' > conftest.s
25439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25441 (eval $ac_try) 2>&5
25442 ac_status=$?
25443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25444 test $ac_status = 0; }; }
25445 then
25446 gcc_cv_as_powerpc_gnu_attribute=yes
25447 else
25448 echo "configure: failed program was" >&5
25449 cat conftest.s >&5
25451 rm -f conftest.o conftest.s
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25455 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25456 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25458 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25463 $as_echo_n "checking assembler for tls marker support... " >&6; }
25464 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25465 $as_echo_n "(cached) " >&6
25466 else
25467 gcc_cv_as_powerpc_tls_markers=no
25468 if test $in_tree_gas = yes; then
25469 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25470 then gcc_cv_as_powerpc_tls_markers=yes
25472 elif test x$gcc_cv_as != x; then
25473 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25477 ac_status=$?
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }
25480 then
25481 gcc_cv_as_powerpc_tls_markers=yes
25482 else
25483 echo "configure: failed program was" >&5
25484 cat conftest.s >&5
25486 rm -f conftest.o conftest.s
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25490 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25491 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25493 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25497 case $target in
25498 *-*-aix*)
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25500 $as_echo_n "checking assembler for .ref support... " >&6; }
25501 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25502 $as_echo_n "(cached) " >&6
25503 else
25504 gcc_cv_as_aix_ref=no
25505 if test $in_tree_gas = yes; then
25506 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25507 then gcc_cv_as_aix_ref=yes
25509 elif test x$gcc_cv_as != x; then
25510 $as_echo ' .csect stuff[rw]
25511 stuff:
25512 .long 1
25513 .extern sym
25514 .ref sym
25515 ' > conftest.s
25516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521 test $ac_status = 0; }; }
25522 then
25523 gcc_cv_as_aix_ref=yes
25524 else
25525 echo "configure: failed program was" >&5
25526 cat conftest.s >&5
25528 rm -f conftest.o conftest.s
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25532 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25533 if test $gcc_cv_as_aix_ref = yes; then
25535 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25539 esac
25542 mips*-*-*)
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25544 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25545 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25546 $as_echo_n "(cached) " >&6
25547 else
25548 gcc_cv_as_mips_explicit_relocs=no
25549 if test $in_tree_gas = yes; then
25550 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25551 then gcc_cv_as_mips_explicit_relocs=yes
25553 elif test x$gcc_cv_as != x; then
25554 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25561 then
25562 gcc_cv_as_mips_explicit_relocs=yes
25563 else
25564 echo "configure: failed program was" >&5
25565 cat conftest.s >&5
25567 rm -f conftest.o conftest.s
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25571 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25572 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25573 if test x$target_cpu_default = x
25574 then target_cpu_default=MASK_EXPLICIT_RELOCS
25575 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25579 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25580 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25582 else
25583 gcc_cv_as_mips_no_shared=no
25584 if test $in_tree_gas = yes; then
25585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25586 then gcc_cv_as_mips_no_shared=yes
25588 elif test x$gcc_cv_as != x; then
25589 $as_echo 'nop' > conftest.s
25590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25595 test $ac_status = 0; }; }
25596 then
25597 gcc_cv_as_mips_no_shared=yes
25598 else
25599 echo "configure: failed program was" >&5
25600 cat conftest.s >&5
25602 rm -f conftest.o conftest.s
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25606 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25607 if test $gcc_cv_as_mips_no_shared = yes; then
25609 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25614 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25615 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25616 $as_echo_n "(cached) " >&6
25617 else
25618 gcc_cv_as_mips_gnu_attribute=no
25619 if test $in_tree_gas = yes; then
25620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25621 then gcc_cv_as_mips_gnu_attribute=yes
25623 elif test x$gcc_cv_as != x; then
25624 $as_echo '.gnu_attribute 4,1' > conftest.s
25625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25627 (eval $ac_try) 2>&5
25628 ac_status=$?
25629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25630 test $ac_status = 0; }; }
25631 then
25632 gcc_cv_as_mips_gnu_attribute=yes
25633 else
25634 echo "configure: failed program was" >&5
25635 cat conftest.s >&5
25637 rm -f conftest.o conftest.s
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25641 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25642 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25644 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25649 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25650 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25651 $as_echo_n "(cached) " >&6
25652 else
25653 gcc_cv_as_mips_dtprelword=no
25654 if test $in_tree_gas = yes; then
25655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25656 then gcc_cv_as_mips_dtprelword=yes
25658 elif test x$gcc_cv_as != x; then
25659 $as_echo '.section .tdata,"awT",@progbits
25661 .word 2
25662 .text
25663 .dtprelword x+0x8000' > conftest.s
25664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669 test $ac_status = 0; }; }
25670 then
25671 gcc_cv_as_mips_dtprelword=yes
25672 else
25673 echo "configure: failed program was" >&5
25674 cat conftest.s >&5
25676 rm -f conftest.o conftest.s
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25680 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25681 if test $gcc_cv_as_mips_dtprelword = yes; then
25683 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25688 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25689 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25690 $as_echo_n "(cached) " >&6
25691 else
25692 gcc_cv_as_mips_dspr1_mult=no
25693 if test x$gcc_cv_as != x; then
25694 $as_echo ' .set mips32r2
25695 .set nodspr2
25696 .set dsp
25697 madd $ac3,$4,$5
25698 maddu $ac3,$4,$5
25699 msub $ac3,$4,$5
25700 msubu $ac3,$4,$5
25701 mult $ac3,$4,$5
25702 multu $ac3,$4,$5' > conftest.s
25703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25709 then
25710 gcc_cv_as_mips_dspr1_mult=yes
25711 else
25712 echo "configure: failed program was" >&5
25713 cat conftest.s >&5
25715 rm -f conftest.o conftest.s
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25719 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25720 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25722 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25727 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25728 gcc_cv_as_ld_jalr_reloc=no
25729 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25730 if test $in_tree_ld = yes ; then
25731 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 \
25732 && test $in_tree_ld_is_elf = yes; then
25733 gcc_cv_as_ld_jalr_reloc=yes
25735 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25736 echo ' .ent x' > conftest.s
25737 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25738 echo ' ld $25,%call16(y)($28)' >> conftest.s
25739 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25740 echo '1: jalr $25' >> conftest.s
25741 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25742 echo '1: jalr $25' >> conftest.s
25743 echo ' .end x' >> conftest.s
25744 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25745 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25746 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25747 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25748 gcc_cv_as_ld_jalr_reloc=yes
25751 rm -f conftest.*
25754 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25755 if test x$target_cpu_default = x; then
25756 target_cpu_default=MASK_RELAX_PIC_CALLS
25757 else
25758 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25762 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25765 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25766 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25767 $as_echo_n "(cached) " >&6
25768 else
25769 gcc_cv_ld_mips_personality_relaxation=no
25770 if test $in_tree_ld = yes ; then
25771 if test "$gcc_cv_gld_major_version" -eq 2 \
25772 -a "$gcc_cv_gld_minor_version" -ge 21 \
25773 -o "$gcc_cv_gld_major_version" -gt 2; then
25774 gcc_cv_ld_mips_personality_relaxation=yes
25776 elif test x$gcc_cv_as != x \
25777 -a x$gcc_cv_ld != x \
25778 -a x$gcc_cv_readelf != x ; then
25779 cat > conftest.s <<EOF
25780 .cfi_startproc
25781 .cfi_personality 0x80,indirect_ptr
25782 .ent test
25783 test:
25785 .end test
25786 .cfi_endproc
25788 .section .data,"aw",@progbits
25789 indirect_ptr:
25790 .dc.a personality
25792 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25793 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25794 if $gcc_cv_readelf -d conftest 2>&1 \
25795 | grep TEXTREL > /dev/null 2>&1; then
25797 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25798 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25800 else
25801 gcc_cv_ld_mips_personality_relaxation=yes
25805 rm -f conftest.s conftest.o conftest
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25808 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25809 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25811 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25815 esac
25817 # Mips and HP-UX need the GNU assembler.
25818 # Linux on IA64 might be able to use the Intel assembler.
25820 case "$target" in
25821 mips*-*-* | *-*-hpux* )
25822 if test x$gas_flag = xyes \
25823 || test x"$host" != x"$build" \
25824 || test ! -x "$gcc_cv_as" \
25825 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25827 else
25828 echo "*** This configuration requires the GNU assembler" >&2
25829 exit 1
25832 esac
25834 # ??? Not all targets support dwarf2 debug_line, even within a version
25835 # of gas. Moreover, we need to emit a valid instruction to trigger any
25836 # info to the output file. So, as supported targets are added to gas 2.11,
25837 # add some instruction here to (also) show we expect this might work.
25838 # ??? Once 2.11 is released, probably need to add first known working
25839 # version to the per-target configury.
25840 case "$cpu_type" in
25841 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25842 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25843 insn="nop"
25845 ia64 | s390)
25846 insn="nop 0"
25848 mmix)
25849 insn="swym 0"
25851 esac
25852 if test x"$insn" != x; then
25853 conftest_s="\
25854 .file 1 \"conftest.s\"
25855 .loc 1 3 0
25856 $insn"
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25858 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25859 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25860 $as_echo_n "(cached) " >&6
25861 else
25862 gcc_cv_as_dwarf2_debug_line=no
25863 if test $in_tree_gas = yes; then
25864 if test $in_tree_gas_is_elf = yes \
25865 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25866 then gcc_cv_as_dwarf2_debug_line=yes
25868 elif test x$gcc_cv_as != x; then
25869 $as_echo "$conftest_s" > conftest.s
25870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25872 (eval $ac_try) 2>&5
25873 ac_status=$?
25874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25875 test $ac_status = 0; }; }
25876 then
25877 if test x$gcc_cv_objdump != x \
25878 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25879 | grep debug_line > /dev/null 2>&1; then
25880 gcc_cv_as_dwarf2_debug_line=yes
25882 else
25883 echo "configure: failed program was" >&5
25884 cat conftest.s >&5
25886 rm -f conftest.o conftest.s
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25890 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25893 # The .debug_line file table must be in the exact order that
25894 # we specified the files, since these indices are also used
25895 # by DW_AT_decl_file. Approximate this test by testing if
25896 # the assembler bitches if the same index is assigned twice.
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25898 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25899 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25900 $as_echo_n "(cached) " >&6
25901 else
25902 gcc_cv_as_dwarf2_file_buggy=no
25903 if test x$gcc_cv_as != x; then
25904 $as_echo ' .file 1 "foo.s"
25905 .file 1 "bar.s"' > conftest.s
25906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25908 (eval $ac_try) 2>&5
25909 ac_status=$?
25910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25911 test $ac_status = 0; }; }
25912 then
25913 gcc_cv_as_dwarf2_file_buggy=yes
25914 else
25915 echo "configure: failed program was" >&5
25916 cat conftest.s >&5
25918 rm -f conftest.o conftest.s
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25922 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25925 if test $gcc_cv_as_dwarf2_debug_line = yes \
25926 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25928 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25933 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25934 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25935 $as_echo_n "(cached) " >&6
25936 else
25937 gcc_cv_as_gdwarf2_flag=no
25938 if test $in_tree_gas = yes; then
25939 if test $in_tree_gas_is_elf = yes \
25940 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25941 then gcc_cv_as_gdwarf2_flag=yes
25943 elif test x$gcc_cv_as != x; then
25944 $as_echo "$insn" > conftest.s
25945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950 test $ac_status = 0; }; }
25951 then
25952 gcc_cv_as_gdwarf2_flag=yes
25953 else
25954 echo "configure: failed program was" >&5
25955 cat conftest.s >&5
25957 rm -f conftest.o conftest.s
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25961 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25962 if test $gcc_cv_as_gdwarf2_flag = yes; then
25964 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25969 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25970 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25971 $as_echo_n "(cached) " >&6
25972 else
25973 gcc_cv_as_gstabs_flag=no
25974 if test $in_tree_gas = yes; then
25975 if test $in_tree_gas_is_elf = yes \
25976 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25977 then gcc_cv_as_gstabs_flag=yes
25979 elif test x$gcc_cv_as != x; then
25980 $as_echo "$insn" > conftest.s
25981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25983 (eval $ac_try) 2>&5
25984 ac_status=$?
25985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986 test $ac_status = 0; }; }
25987 then
25988 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25989 # and warns about it, but still exits successfully. So check for
25990 # this.
25991 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25993 (eval $ac_try) 2>&5
25994 ac_status=$?
25995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25996 test $ac_status = 0; }; }
25997 then :
25998 else gcc_cv_as_gstabs_flag=yes
26000 else
26001 echo "configure: failed program was" >&5
26002 cat conftest.s >&5
26004 rm -f conftest.o conftest.s
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26008 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26009 if test $gcc_cv_as_gstabs_flag = yes; then
26011 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26016 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26017 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26018 $as_echo_n "(cached) " >&6
26019 else
26020 gcc_cv_as_debug_prefix_map_flag=no
26021 if test $in_tree_gas = yes; then
26022 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26023 then gcc_cv_as_debug_prefix_map_flag=yes
26025 elif test x$gcc_cv_as != x; then
26026 $as_echo "$insn" > conftest.s
26027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26029 (eval $ac_try) 2>&5
26030 ac_status=$?
26031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26032 test $ac_status = 0; }; }
26033 then
26034 gcc_cv_as_debug_prefix_map_flag=yes
26035 else
26036 echo "configure: failed program was" >&5
26037 cat conftest.s >&5
26039 rm -f conftest.o conftest.s
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26043 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26044 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26046 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26052 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26053 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26054 $as_echo_n "(cached) " >&6
26055 else
26056 gcc_cv_as_lcomm_with_alignment=no
26057 if test x$gcc_cv_as != x; then
26058 $as_echo '.lcomm bar,4,16' > conftest.s
26059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }
26065 then
26066 gcc_cv_as_lcomm_with_alignment=yes
26067 else
26068 echo "configure: failed program was" >&5
26069 cat conftest.s >&5
26071 rm -f conftest.o conftest.s
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26075 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26076 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26078 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26082 # Check whether --enable-gnu-unique-object was given.
26083 if test "${enable_gnu_unique_object+set}" = set; then :
26084 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26085 yes | no) ;;
26086 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26087 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26088 esac
26089 else
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26091 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26092 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26093 $as_echo_n "(cached) " >&6
26094 else
26095 gcc_cv_as_gnu_unique_object=no
26096 if test $in_tree_gas = yes; then
26097 if test $in_tree_gas_is_elf = yes \
26098 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26099 then gcc_cv_as_gnu_unique_object=yes
26101 elif test x$gcc_cv_as != x; then
26102 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26105 (eval $ac_try) 2>&5
26106 ac_status=$?
26107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }; }
26109 then
26110 gcc_cv_as_gnu_unique_object=yes
26111 else
26112 echo "configure: failed program was" >&5
26113 cat conftest.s >&5
26115 rm -f conftest.o conftest.s
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26119 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26120 if test $gcc_cv_as_gnu_unique_object = yes; then
26121 # We need to unquote above to to use the definition from config.gcc.
26122 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26123 if test x$host = x$build -a x$host = x$target &&
26124 ldd --version 2>/dev/null &&
26125 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26126 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26127 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26128 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26129 if test "$glibcnum" -ge 2011 ; then
26130 enable_gnu_unique_object=yes
26136 if test x$enable_gnu_unique_object = xyes; then
26138 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26143 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26144 if test "${gcc_cv_as_line_zero+set}" = set; then :
26145 $as_echo_n "(cached) " >&6
26146 else
26147 gcc_cv_as_line_zero=no
26148 if test $in_tree_gas = yes; then
26149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26150 then gcc_cv_as_line_zero=yes
26152 elif test "x$gcc_cv_as" != x; then
26153 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26154 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26156 (eval $ac_try) 2>&5
26157 ac_status=$?
26158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26159 test $ac_status = 0; }; } &&
26160 test "x`cat conftest.out`" = x
26161 then
26162 gcc_cv_as_line_zero=yes
26163 else
26164 echo "configure: failed program was" >&5
26165 cat conftest.s >&5
26166 echo "configure: error output was" >&5
26167 cat conftest.out >&5
26169 rm -f conftest.o conftest.s conftest.out
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26173 $as_echo "$gcc_cv_as_line_zero" >&6; }
26174 if test "x$gcc_cv_as_line_zero" = xyes; then
26176 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26181 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26182 gcc_cv_ld_eh_frame_hdr=no
26183 if test $in_tree_ld = yes ; then
26184 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 \
26185 && test $in_tree_ld_is_elf = yes; then
26186 gcc_cv_ld_eh_frame_hdr=yes
26188 elif test x$gcc_cv_ld != x; then
26189 if echo "$ld_ver" | grep GNU > /dev/null; then
26190 # Check if linker supports --eh-frame-hdr option
26191 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26192 gcc_cv_ld_eh_frame_hdr=yes
26194 else
26195 case "$target" in
26196 *-*-solaris2*)
26197 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26198 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26199 gcc_cv_ld_eh_frame_hdr=yes
26202 esac
26206 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26208 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26212 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26215 $as_echo_n "checking linker position independent executable support... " >&6; }
26216 gcc_cv_ld_pie=no
26217 if test $in_tree_ld = yes ; then
26218 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 \
26219 && test $in_tree_ld_is_elf = yes; then
26220 gcc_cv_ld_pie=yes
26222 elif test x$gcc_cv_ld != x; then
26223 # Check if linker supports -pie option
26224 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26225 gcc_cv_ld_pie=yes
26228 if test x"$gcc_cv_ld_pie" = xyes; then
26230 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26234 $as_echo "$gcc_cv_ld_pie" >&6; }
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26237 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26238 gcc_cv_ld_eh_gc_sections=no
26239 if test $in_tree_ld = yes ; then
26240 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 \
26241 && test $in_tree_ld_is_elf = yes; then
26242 gcc_cv_ld_eh_gc_sections=yes
26244 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26245 cat > conftest.s <<EOF
26246 .section .text
26247 .globl _start
26248 .type _start, @function
26249 _start:
26250 .long foo
26251 .size _start, .-_start
26252 .section .text.foo,"ax",@progbits
26253 .type foo, @function
26254 foo:
26255 .long 0
26256 .size foo, .-foo
26257 .section .gcc_except_table.foo,"a",@progbits
26258 .L0:
26259 .long 0
26260 .section .eh_frame,"a",@progbits
26261 .long .L0
26263 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26264 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26265 | grep "gc-sections option ignored" > /dev/null; then
26266 gcc_cv_ld_eh_gc_sections=no
26267 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26268 | grep gcc_except_table > /dev/null; then
26269 gcc_cv_ld_eh_gc_sections=yes
26270 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26271 if test x$gcc_cv_as_comdat_group != xyes; then
26272 gcc_cv_ld_eh_gc_sections=no
26273 cat > conftest.s <<EOF
26274 .section .text
26275 .globl _start
26276 .type _start, @function
26277 _start:
26278 .long foo
26279 .size _start, .-_start
26280 .section .gnu.linkonce.t.foo,"ax",@progbits
26281 .type foo, @function
26282 foo:
26283 .long 0
26284 .size foo, .-foo
26285 .section .gcc_except_table.foo,"a",@progbits
26286 .L0:
26287 .long 0
26288 .section .eh_frame,"a",@progbits
26289 .long .L0
26291 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26292 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26293 | grep "gc-sections option ignored" > /dev/null; then
26294 gcc_cv_ld_eh_gc_sections=no
26295 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26296 | grep gcc_except_table > /dev/null; then
26297 gcc_cv_ld_eh_gc_sections=yes
26303 rm -f conftest.s conftest.o conftest
26305 case "$target" in
26306 hppa*-*-linux*)
26307 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26308 gcc_cv_ld_eh_gc_sections=no
26310 esac
26311 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26313 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26317 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26320 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26321 gcc_cv_ld_eh_gc_sections_bug=no
26322 if test $in_tree_ld = yes ; then
26323 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26324 && test $in_tree_ld_is_elf = yes; then
26325 gcc_cv_ld_eh_gc_sections_bug=yes
26327 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
26328 gcc_cv_ld_eh_gc_sections_bug=yes
26329 cat > conftest.s <<EOF
26330 .section .text
26331 .globl _start
26332 .type _start, @function
26333 _start:
26334 .long foo
26335 .size _start, .-_start
26336 .section .text.startup.foo,"ax",@progbits
26337 .type foo, @function
26338 foo:
26339 .long 0
26340 .size foo, .-foo
26341 .section .gcc_except_table.foo,"a",@progbits
26342 .L0:
26343 .long 0
26344 .section .eh_frame,"a",@progbits
26345 .long .L0
26347 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26348 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26349 | grep "gc-sections option ignored" > /dev/null; then
26351 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26352 | grep gcc_except_table > /dev/null; then
26353 gcc_cv_ld_eh_gc_sections_bug=no
26356 rm -f conftest.s conftest.o conftest
26358 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26360 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26364 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26366 # --------
26367 # UNSORTED
26368 # --------
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26371 $as_echo_n "checking linker --as-needed support... " >&6; }
26372 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26373 $as_echo_n "(cached) " >&6
26374 else
26375 gcc_cv_ld_as_needed=no
26376 if test $in_tree_ld = yes ; then
26377 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 \
26378 && test $in_tree_ld_is_elf = yes; then
26379 gcc_cv_ld_as_needed=yes
26381 elif test x$gcc_cv_ld != x; then
26382 # Check if linker supports --as-needed and --no-as-needed options
26383 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26384 gcc_cv_ld_as_needed=yes
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26390 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26391 if test x"$gcc_cv_ld_as_needed" = xyes; then
26393 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26397 case "$target:$tm_file" in
26398 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26399 case "$target" in
26400 *-*-linux*)
26401 emul_name="-melf64ppc"
26403 *-*-freebsd*)
26404 emul_name="-melf64ppc_fbsd"
26406 esac
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26408 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26409 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26410 $as_echo_n "(cached) " >&6
26411 else
26412 gcc_cv_ld_no_dot_syms=no
26413 if test x"$ld_is_gold" = xyes; then
26414 gcc_cv_ld_no_dot_syms=yes
26415 elif test $in_tree_ld = yes ; then
26416 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
26417 gcc_cv_ld_no_dot_syms=yes
26419 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26420 cat > conftest1.s <<EOF
26421 .text
26422 bl .foo
26424 cat > conftest2.s <<EOF
26425 .section ".opd","aw"
26426 .align 3
26427 .globl foo
26428 .type foo,@function
26429 foo:
26430 .quad .LEfoo,.TOC.@tocbase,0
26431 .text
26432 .LEfoo:
26434 .size foo,.-.LEfoo
26436 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26437 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26438 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26439 gcc_cv_ld_no_dot_syms=yes
26441 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26446 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26447 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26449 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26454 $as_echo_n "checking linker large toc support... " >&6; }
26455 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26456 $as_echo_n "(cached) " >&6
26457 else
26458 gcc_cv_ld_large_toc=no
26459 if test x"$ld_is_gold" = xyes; then
26460 gcc_cv_ld_large_toc=yes
26461 elif test $in_tree_ld = yes ; then
26462 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
26463 gcc_cv_ld_large_toc=yes
26465 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26466 cat > conftest.s <<EOF
26467 .section ".tbss","awT",@nobits
26468 .align 3
26469 ie0: .space 8
26470 .global _start
26471 .text
26472 _start:
26473 addis 9,13,ie0@got@tprel@ha
26474 ld 9,ie0@got@tprel@l(9)
26476 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26477 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26478 gcc_cv_ld_large_toc=yes
26480 rm -f conftest conftest.o conftest.s
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26485 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26486 if test x"$gcc_cv_ld_large_toc" = xyes; then
26488 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26492 esac
26494 case "$target" in
26495 *-*-aix*)
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26497 $as_echo_n "checking linker large toc support... " >&6; }
26498 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26499 $as_echo_n "(cached) " >&6
26500 else
26501 gcc_cv_ld_large_toc=no
26502 if test x$gcc_cv_as != x ; then
26503 cat > conftest.s <<EOF
26504 .toc
26505 LC..1:
26506 .tc a[TC],a[RW]
26507 .extern a[RW]
26508 .csect .text[PR]
26509 .largetoctest:
26510 addis 9,LC..1@u(2)
26511 ld 3,LC..1@l(9)
26513 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26514 gcc_cv_ld_large_toc=yes
26516 rm -f conftest conftest.o conftest.s
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26521 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26522 if test x"$gcc_cv_ld_large_toc" = xyes; then
26524 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26528 esac
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26531 $as_echo_n "checking linker --build-id support... " >&6; }
26532 if test "${gcc_cv_ld_buildid+set}" = set; then :
26533 $as_echo_n "(cached) " >&6
26534 else
26535 gcc_cv_ld_buildid=no
26536 if test $in_tree_ld = yes ; then
26537 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26538 "$gcc_cv_gld_minor_version" -ge 18 -o \
26539 "$gcc_cv_gld_major_version" -gt 2 \
26540 && test $in_tree_ld_is_elf = yes; then
26541 gcc_cv_ld_buildid=yes
26543 elif test x$gcc_cv_ld != x; then
26544 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26545 gcc_cv_ld_buildid=yes
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26550 $as_echo "$gcc_cv_ld_buildid" >&6; }
26551 if test x"$gcc_cv_ld_buildid" = xyes; then
26553 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26557 # Check whether --enable-linker-build-id was given.
26558 if test "${enable_linker_build_id+set}" = set; then :
26559 enableval=$enable_linker_build_id;
26560 else
26561 enable_linker_build_id=no
26565 if test x"$enable_linker_build_id" = xyes; then
26566 if test x"$gcc_cv_ld_buildid" = xyes; then
26568 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26570 else
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26572 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26576 # In binutils 2.21, GNU ld gained support for new emulations fully
26577 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26579 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26580 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26581 $as_echo_n "(cached) " >&6
26582 else
26583 gcc_cv_ld_sol2_emulation=no
26584 if test $in_tree_ld = yes ; then
26585 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26586 "$gcc_cv_gld_minor_version" -ge 21 -o \
26587 "$gcc_cv_gld_major_version" -gt 2 \
26588 && test $in_tree_ld_is_elf = yes; then
26589 gcc_cv_ld_sol2_emulation=yes
26591 elif test x$gcc_cv_ld != x; then
26592 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26593 grep _sol2 > /dev/null; then
26594 gcc_cv_ld_sol2_emulation=yes
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26599 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26600 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26602 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26607 $as_echo_n "checking linker --sysroot support... " >&6; }
26608 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26609 $as_echo_n "(cached) " >&6
26610 else
26611 gcc_cv_ld_sysroot=no
26612 if test $in_tree_ld = yes ; then
26613 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
26614 gcc_cv_ld_sysroot=yes
26616 elif test x$gcc_cv_ld != x; then
26617 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26618 gcc_cv_ld_sysroot=yes
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26623 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26624 if test x"$gcc_cv_ld_sysroot" = xyes; then
26626 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26630 if test x$with_sysroot = x && test x$host = x$target \
26631 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26632 && test "$prefix" != "NONE"; then
26634 cat >>confdefs.h <<_ACEOF
26635 #define PREFIX_INCLUDE_DIR "$prefix/include"
26636 _ACEOF
26640 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26641 if test "x$with_headers" != x; then
26642 target_header_dir=$with_headers
26643 elif test "x$with_sysroot" = x; then
26644 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26645 elif test "x$with_build_sysroot" != "x"; then
26646 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26647 elif test "x$with_sysroot" = xyes; then
26648 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26649 else
26650 target_header_dir="${with_sysroot}${native_system_header_dir}"
26652 else
26653 target_header_dir=${native_system_header_dir}
26656 # Test for stack protector support in target C library.
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26658 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26659 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26660 $as_echo_n "(cached) " >&6
26661 else
26662 gcc_cv_libc_provides_ssp=no
26663 case "$target" in
26664 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26665 # glibc 2.4 and later provides __stack_chk_fail and
26666 # either __stack_chk_guard, or TLS access to stack guard canary.
26667 if test -f $target_header_dir/features.h \
26668 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26669 $target_header_dir/features.h > /dev/null; then
26670 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26671 $target_header_dir/features.h > /dev/null; then
26672 gcc_cv_libc_provides_ssp=yes
26673 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26674 $target_header_dir/features.h > /dev/null \
26675 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26676 $target_header_dir/features.h > /dev/null; then
26677 gcc_cv_libc_provides_ssp=yes
26678 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26679 $target_header_dir/features.h > /dev/null && \
26680 test -f $target_header_dir/bits/uClibc_config.h && \
26681 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26682 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26683 gcc_cv_libc_provides_ssp=yes
26685 # all versions of Bionic support stack protector
26686 elif test -f $target_header_dir/sys/cdefs.h \
26687 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26688 $target_header_dir/sys/cdefs.h > /dev/null; then
26689 gcc_cv_libc_provides_ssp=yes
26692 *-*-gnu*)
26693 # Avoid complicated tests (see
26694 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26695 # simply assert that glibc does provide this, which is true for all
26696 # realistically usable GNU/Hurd configurations.
26697 gcc_cv_libc_provides_ssp=yes;;
26698 *-*-darwin* | *-*-freebsd*)
26699 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26700 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26701 gcc_cv_libc_provides_ssp=yes
26702 else
26703 echo "no __stack_chk_fail on this target"
26707 *) gcc_cv_libc_provides_ssp=no ;;
26708 esac
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26711 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26713 if test x$gcc_cv_libc_provides_ssp = xyes; then
26715 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26719 # Test for <sys/sdt.h> on the target.
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26722 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26723 have_sys_sdt_h=no
26724 if test -f $target_header_dir/sys/sdt.h; then
26725 have_sys_sdt_h=yes
26727 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26731 $as_echo "$have_sys_sdt_h" >&6; }
26733 # Check if TFmode long double should be used by default or not.
26734 # Some glibc targets used DFmode long double, but with glibc 2.4
26735 # and later they can use TFmode.
26736 case "$target" in
26737 powerpc*-*-linux* | \
26738 sparc*-*-linux* | \
26739 s390*-*-linux* | \
26740 alpha*-*-linux*)
26742 # Check whether --with-long-double-128 was given.
26743 if test "${with_long_double_128+set}" = set; then :
26744 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26745 else
26746 gcc_cv_target_ldbl128=no
26747 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26748 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26749 && gcc_cv_target_ldbl128=yes
26754 esac
26755 if test x$gcc_cv_target_ldbl128 = xyes; then
26757 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26762 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26763 gcc_cv_target_dl_iterate_phdr=unknown
26764 case "$target" in
26765 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26766 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26767 # libdl there, both complicating its use and breaking compatibility
26768 # between Solaris 10 updates.
26769 *-*-solaris2.1[1-9]*)
26770 # <link.h> needs both a dl_iterate_phdr declaration and support for
26771 # compilation with largefile support.
26772 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26773 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26774 gcc_cv_target_dl_iterate_phdr=yes
26775 else
26776 gcc_cv_target_dl_iterate_phdr=no
26779 esac
26781 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26783 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26787 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26789 # Find out what GC implementation we want, or may, use.
26791 # Check whether --with-gc was given.
26792 if test "${with_gc+set}" = set; then :
26793 withval=$with_gc; case "$withval" in
26794 page)
26795 GGC=ggc-$withval
26797 zone)
26798 GGC=ggc-$withval
26800 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26804 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26806 esac
26807 else
26808 GGC=ggc-page
26812 echo "Using $GGC for garbage collection."
26814 # Libraries to use on the host. This will normally be set by the top
26815 # level Makefile. Here we simply capture the value for our Makefile.
26816 if test -z "${HOST_LIBS+set}"; then
26817 HOST_LIBS=
26821 # Use the system's zlib library.
26822 zlibdir=-L../zlib
26823 zlibinc="-I\$(srcdir)/../zlib"
26825 # Check whether --with-system-zlib was given.
26826 if test "${with_system_zlib+set}" = set; then :
26827 withval=$with_system_zlib; zlibdir=
26828 zlibinc=
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26837 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26838 # Check whether --enable-maintainer-mode was given.
26839 if test "${enable_maintainer_mode+set}" = set; then :
26840 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26841 else
26842 maintainer_mode=no
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26847 $as_echo "$maintainer_mode" >&6; }
26849 if test "$maintainer_mode" = "yes"; then
26850 MAINT=''
26851 else
26852 MAINT='#'
26855 # --------------
26856 # Language hooks
26857 # --------------
26859 # Make empty files to contain the specs and options for each language.
26860 # Then add #include lines to for a compiler that has specs and/or options.
26862 subdirs=
26863 lang_opt_files=
26864 lang_specs_files=
26865 lang_tree_files=
26866 # These (without "all_") are set in each config-lang.in.
26867 # `language' must be a single word so is spelled singularly.
26868 all_languages=
26869 all_compilers=
26870 all_outputs='Makefile'
26871 # List of language makefile fragments.
26872 all_lang_makefrags=
26873 # Additional files for gengtype
26874 all_gtfiles="$target_gtfiles"
26876 # These are the languages that are set in --enable-languages,
26877 # and are available in the GCC tree.
26878 all_selected_languages=
26880 # Add the language fragments.
26881 # Languages are added via two mechanisms. Some information must be
26882 # recorded in makefile variables, these are defined in config-lang.in.
26883 # We accumulate them and plug them into the main Makefile.
26884 # The other mechanism is a set of hooks for each of the main targets
26885 # like `clean', `install', etc.
26887 language_hooks="Make-hooks"
26889 for lang in ${srcdir}/*/config-lang.in
26891 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26893 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26894 if test "x$lang_alias" = x
26895 then
26896 echo "$lang doesn't set \$language." 1>&2
26897 exit 1
26899 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26900 subdirs="$subdirs $subdir"
26902 # $gcc_subdir is where the gcc integration files are to be found
26903 # for a language, both for internal compiler purposes (compiler
26904 # sources implementing front-end to GCC tree converters), and for
26905 # build infrastructure purposes (Make-lang.in, etc.)
26907 # This will be <subdir> (relative to $srcdir) if a line like
26908 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26909 # is found in <langdir>/config-lang.in, and will remain <langdir>
26910 # otherwise.
26912 # Except for the language alias (fetched above), the regular
26913 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26914 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26915 # only this and the language alias.
26917 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26918 if [ "$gcc_subdir" = "" ]; then
26919 gcc_subdir="$subdir"
26922 case ",$enable_languages," in
26923 *,$lang_alias,*)
26924 all_selected_languages="$all_selected_languages $lang_alias"
26925 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26926 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26929 esac
26931 language=
26932 boot_language=
26933 compilers=
26934 outputs=
26935 gtfiles=
26936 subdir_requires=
26937 . ${srcdir}/$gcc_subdir/config-lang.in
26938 if test "x$language" = x
26939 then
26940 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26941 exit 1
26944 ok=:
26945 case ",$enable_languages," in
26946 *,$lang_alias,*) ;;
26948 for i in $subdir_requires; do
26949 test -f "${srcdir}/$i/config-lang.in" && continue
26950 ok=false
26951 break
26952 done
26954 esac
26955 $ok || continue
26957 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26958 if test -f $srcdir/$gcc_subdir/lang.opt; then
26959 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26960 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26962 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26963 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26965 all_languages="$all_languages $language"
26966 all_compilers="$all_compilers $compilers"
26967 all_outputs="$all_outputs $outputs"
26968 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26969 case ",$enable_languages," in
26970 *,lto,*)
26972 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26974 enable_lto=yes
26977 *) ;;
26978 esac
26979 done
26981 check_languages=
26982 for language in $all_selected_languages
26984 check_languages="$check_languages check-$language"
26985 done
26987 # We link each language in with a set of hooks, reached indirectly via
26988 # lang.${target}. Only do so for selected languages.
26990 rm -f Make-hooks
26991 touch Make-hooks
26992 target_list="all.cross start.encap rest.encap tags \
26993 install-common install-man install-info install-pdf install-html dvi \
26994 pdf html uninstall info man srcextra srcman srcinfo \
26995 mostlyclean clean distclean maintainer-clean install-plugin"
26997 for t in $target_list
27000 for lang in $all_selected_languages
27002 x="$x $lang.$t"
27003 done
27004 echo "lang.$t: $x" >> Make-hooks
27005 done
27007 # --------
27008 # Option include files
27009 # --------
27011 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27012 option_includes="option-includes.mk"
27015 # --------
27016 # UNSORTED
27017 # --------
27019 # Create .gdbinit.
27021 echo "dir ." > .gdbinit
27022 echo "dir ${srcdir}" >> .gdbinit
27023 if test x$gdb_needs_out_file_path = xyes
27024 then
27025 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27027 if test "x$subdirs" != x; then
27028 for s in $subdirs
27030 echo "dir ${srcdir}/$s" >> .gdbinit
27031 done
27033 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27035 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27039 # Find a directory in which to install a shared libgcc.
27041 # Check whether --enable-version-specific-runtime-libs was given.
27042 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27043 enableval=$enable_version_specific_runtime_libs;
27047 # Substitute configuration variables
27110 # Echo link setup.
27111 if test x${build} = x${host} ; then
27112 if test x${host} = x${target} ; then
27113 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27114 else
27115 echo "Links are now set up to build a cross-compiler" 1>&2
27116 echo " from ${host} to ${target}." 1>&2
27118 else
27119 if test x${host} = x${target} ; then
27120 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27121 echo " for ${target}." 1>&2
27122 else
27123 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27124 echo " from ${host} to ${target}." 1>&2
27136 if test "x${CLOOGLIBS}" != "x" ; then
27138 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27142 # Check for plugin support
27143 # Check whether --enable-plugin was given.
27144 if test "${enable_plugin+set}" = set; then :
27145 enableval=$enable_plugin; enable_plugin=$enableval
27146 else
27147 enable_plugin=yes; default_plugin=yes
27151 pluginlibs=
27153 case "${host}" in
27154 *-*-darwin*)
27155 if test x$build = x$host; then
27156 export_sym_check="nm${exeext} -g"
27157 elif test x$host = x$target; then
27158 export_sym_check="$gcc_cv_nm -g"
27159 else
27160 export_sym_check=
27164 if test x$build = x$host; then
27165 export_sym_check="objdump${exeext} -T"
27166 elif test x$host = x$target; then
27167 export_sym_check="$gcc_cv_objdump -T"
27168 else
27169 export_sym_check=
27172 esac
27174 if test x"$enable_plugin" = x"yes"; then
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27177 $as_echo_n "checking for exported symbols... " >&6; }
27178 if test "x$export_sym_check" != x; then
27179 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27180 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27181 if $export_sym_check conftest | grep foobar > /dev/null; then
27182 : # No need to use a flag
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27184 $as_echo "yes" >&6; }
27185 else
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27187 $as_echo "yes" >&6; }
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27189 $as_echo_n "checking for -rdynamic... " >&6; }
27190 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27191 if $export_sym_check conftest | grep foobar > /dev/null; then
27192 plugin_rdynamic=yes
27193 pluginlibs="-rdynamic"
27194 else
27195 plugin_rdynamic=no
27196 enable_plugin=no
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27199 $as_echo "$plugin_rdynamic" >&6; }
27201 else
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27203 $as_echo "unable to check" >&6; }
27206 # Check -ldl
27207 saved_LIBS="$LIBS"
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27209 $as_echo_n "checking for library containing dlopen... " >&6; }
27210 if test "${ac_cv_search_dlopen+set}" = set; then :
27211 $as_echo_n "(cached) " >&6
27212 else
27213 ac_func_search_save_LIBS=$LIBS
27214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27215 /* end confdefs.h. */
27217 /* Override any GCC internal prototype to avoid an error.
27218 Use char because int might match the return type of a GCC
27219 builtin and then its argument prototype would still apply. */
27220 #ifdef __cplusplus
27221 extern "C"
27222 #endif
27223 char dlopen ();
27225 main ()
27227 return dlopen ();
27229 return 0;
27231 _ACEOF
27232 for ac_lib in '' dl; do
27233 if test -z "$ac_lib"; then
27234 ac_res="none required"
27235 else
27236 ac_res=-l$ac_lib
27237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27239 if ac_fn_c_try_link "$LINENO"; then :
27240 ac_cv_search_dlopen=$ac_res
27242 rm -f core conftest.err conftest.$ac_objext \
27243 conftest$ac_exeext
27244 if test "${ac_cv_search_dlopen+set}" = set; then :
27245 break
27247 done
27248 if test "${ac_cv_search_dlopen+set}" = set; then :
27250 else
27251 ac_cv_search_dlopen=no
27253 rm conftest.$ac_ext
27254 LIBS=$ac_func_search_save_LIBS
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27257 $as_echo "$ac_cv_search_dlopen" >&6; }
27258 ac_res=$ac_cv_search_dlopen
27259 if test "$ac_res" != no; then :
27260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27264 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27265 pluginlibs="$pluginlibs -ldl"
27267 LIBS="$saved_LIBS"
27269 # Check that we can build shared objects with -fPIC -shared
27270 saved_LDFLAGS="$LDFLAGS"
27271 saved_CFLAGS="$CFLAGS"
27272 case "${host}" in
27273 *-*-darwin*)
27274 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27275 CFLAGS="$CFLAGS -fPIC"
27276 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27279 CFLAGS="$CFLAGS -fPIC"
27280 LDFLAGS="$LDFLAGS -fPIC -shared"
27282 esac
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27284 $as_echo_n "checking for -fPIC -shared... " >&6; }
27285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27286 /* end confdefs.h. */
27287 extern int X;
27289 main ()
27291 return X == 0;
27293 return 0;
27295 _ACEOF
27296 if ac_fn_c_try_link "$LINENO"; then :
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27298 $as_echo "yes" >&6; }; have_pic_shared=yes
27299 else
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27301 $as_echo "no" >&6; }; have_pic_shared=no
27303 rm -f core conftest.err conftest.$ac_objext \
27304 conftest$ac_exeext conftest.$ac_ext
27305 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27306 pluginlibs=
27307 enable_plugin=no
27309 LDFLAGS="$saved_LDFLAGS"
27310 CFLAGS="$saved_CFLAGS"
27312 # If plugin support had been requested but not available, fail.
27313 if test x"$enable_plugin" = x"no" ; then
27314 if test x"$default_plugin" != x"yes"; then
27315 as_fn_error "
27316 Building GCC with plugin support requires a host that supports
27317 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27324 if test x"$enable_plugin" = x"yes"; then
27326 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27331 # Check whether --enable-libquadmath-support was given.
27332 if test "${enable_libquadmath_support+set}" = set; then :
27333 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27334 else
27335 ENABLE_LIBQUADMATH_SUPPORT=yes
27338 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27340 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27345 # Specify what hash style to use by default.
27347 # Check whether --with-linker-hash-style was given.
27348 if test "${with_linker_hash_style+set}" = set; then :
27349 withval=$with_linker_hash_style; case x"$withval" in
27350 xsysv)
27351 LINKER_HASH_STYLE=sysv
27353 xgnu)
27354 LINKER_HASH_STYLE=gnu
27356 xboth)
27357 LINKER_HASH_STYLE=both
27360 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27362 esac
27363 else
27364 LINKER_HASH_STYLE=''
27367 if test x"${LINKER_HASH_STYLE}" != x; then
27369 cat >>confdefs.h <<_ACEOF
27370 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27371 _ACEOF
27375 # Configure the subdirectories
27376 # AC_CONFIG_SUBDIRS($subdirs)
27378 # Create the Makefile
27379 # and configure language subdirectories
27380 ac_config_files="$ac_config_files $all_outputs"
27383 ac_config_commands="$ac_config_commands default"
27385 cat >confcache <<\_ACEOF
27386 # This file is a shell script that caches the results of configure
27387 # tests run on this system so they can be shared between configure
27388 # scripts and configure runs, see configure's option --config-cache.
27389 # It is not useful on other systems. If it contains results you don't
27390 # want to keep, you may remove or edit it.
27392 # config.status only pays attention to the cache file if you give it
27393 # the --recheck option to rerun configure.
27395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27397 # following values.
27399 _ACEOF
27401 # The following way of writing the cache mishandles newlines in values,
27402 # but we know of no workaround that is simple, portable, and efficient.
27403 # So, we kill variables containing newlines.
27404 # Ultrix sh set writes to stderr and can't be redirected directly,
27405 # and sets the high bit in the cache file unless we assign to the vars.
27407 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27408 eval ac_val=\$$ac_var
27409 case $ac_val in #(
27410 *${as_nl}*)
27411 case $ac_var in #(
27412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27413 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27414 esac
27415 case $ac_var in #(
27416 _ | IFS | as_nl) ;; #(
27417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27418 *) { eval $ac_var=; unset $ac_var;} ;;
27419 esac ;;
27420 esac
27421 done
27423 (set) 2>&1 |
27424 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27425 *${as_nl}ac_space=\ *)
27426 # `set' does not quote correctly, so add quotes: double-quote
27427 # substitution turns \\\\ into \\, and sed turns \\ into \.
27428 sed -n \
27429 "s/'/'\\\\''/g;
27430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27431 ;; #(
27433 # `set' quotes correctly as required by POSIX, so do not add quotes.
27434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27436 esac |
27437 sort
27439 sed '
27440 /^ac_cv_env_/b end
27441 t clear
27442 :clear
27443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27444 t end
27445 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27446 :end' >>confcache
27447 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27448 if test -w "$cache_file"; then
27449 test "x$cache_file" != "x/dev/null" &&
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27451 $as_echo "$as_me: updating cache $cache_file" >&6;}
27452 cat confcache >$cache_file
27453 else
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27455 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27458 rm -f confcache
27460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27461 # Let make expand exec_prefix.
27462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27464 DEFS=-DHAVE_CONFIG_H
27466 ac_libobjs=
27467 ac_ltlibobjs=
27468 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27469 # 1. Remove the extension, and $U if already installed.
27470 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27471 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27472 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27473 # will be set to the directory where LIBOBJS objects are built.
27474 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27475 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27476 done
27477 LIBOBJS=$ac_libobjs
27479 LTLIBOBJS=$ac_ltlibobjs
27484 : ${CONFIG_STATUS=./config.status}
27485 ac_write_fail=0
27486 ac_clean_files_save=$ac_clean_files
27487 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27489 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27490 as_write_fail=0
27491 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27492 #! $SHELL
27493 # Generated by $as_me.
27494 # Run this file to recreate the current configuration.
27495 # Compiler output produced by configure, useful for debugging
27496 # configure, is in config.log if it exists.
27498 debug=false
27499 ac_cs_recheck=false
27500 ac_cs_silent=false
27502 SHELL=\${CONFIG_SHELL-$SHELL}
27503 export SHELL
27504 _ASEOF
27505 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27506 ## -------------------- ##
27507 ## M4sh Initialization. ##
27508 ## -------------------- ##
27510 # Be more Bourne compatible
27511 DUALCASE=1; export DUALCASE # for MKS sh
27512 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27513 emulate sh
27514 NULLCMD=:
27515 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27516 # is contrary to our usage. Disable this feature.
27517 alias -g '${1+"$@"}'='"$@"'
27518 setopt NO_GLOB_SUBST
27519 else
27520 case `(set -o) 2>/dev/null` in #(
27521 *posix*) :
27522 set -o posix ;; #(
27523 *) :
27525 esac
27529 as_nl='
27531 export as_nl
27532 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27533 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27534 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27535 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27536 # Prefer a ksh shell builtin over an external printf program on Solaris,
27537 # but without wasting forks for bash or zsh.
27538 if test -z "$BASH_VERSION$ZSH_VERSION" \
27539 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27540 as_echo='print -r --'
27541 as_echo_n='print -rn --'
27542 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27543 as_echo='printf %s\n'
27544 as_echo_n='printf %s'
27545 else
27546 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27547 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27548 as_echo_n='/usr/ucb/echo -n'
27549 else
27550 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27551 as_echo_n_body='eval
27552 arg=$1;
27553 case $arg in #(
27554 *"$as_nl"*)
27555 expr "X$arg" : "X\\(.*\\)$as_nl";
27556 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27557 esac;
27558 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27560 export as_echo_n_body
27561 as_echo_n='sh -c $as_echo_n_body as_echo'
27563 export as_echo_body
27564 as_echo='sh -c $as_echo_body as_echo'
27567 # The user is always right.
27568 if test "${PATH_SEPARATOR+set}" != set; then
27569 PATH_SEPARATOR=:
27570 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27571 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27572 PATH_SEPARATOR=';'
27577 # IFS
27578 # We need space, tab and new line, in precisely that order. Quoting is
27579 # there to prevent editors from complaining about space-tab.
27580 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27581 # splitting by setting IFS to empty value.)
27582 IFS=" "" $as_nl"
27584 # Find who we are. Look in the path if we contain no directory separator.
27585 case $0 in #((
27586 *[\\/]* ) as_myself=$0 ;;
27587 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27588 for as_dir in $PATH
27590 IFS=$as_save_IFS
27591 test -z "$as_dir" && as_dir=.
27592 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27593 done
27594 IFS=$as_save_IFS
27597 esac
27598 # We did not find ourselves, most probably we were run as `sh COMMAND'
27599 # in which case we are not to be found in the path.
27600 if test "x$as_myself" = x; then
27601 as_myself=$0
27603 if test ! -f "$as_myself"; then
27604 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27605 exit 1
27608 # Unset variables that we do not need and which cause bugs (e.g. in
27609 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27610 # suppresses any "Segmentation fault" message there. '((' could
27611 # trigger a bug in pdksh 5.2.14.
27612 for as_var in BASH_ENV ENV MAIL MAILPATH
27613 do eval test x\${$as_var+set} = xset \
27614 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27615 done
27616 PS1='$ '
27617 PS2='> '
27618 PS4='+ '
27620 # NLS nuisances.
27621 LC_ALL=C
27622 export LC_ALL
27623 LANGUAGE=C
27624 export LANGUAGE
27626 # CDPATH.
27627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27630 # as_fn_error ERROR [LINENO LOG_FD]
27631 # ---------------------------------
27632 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27633 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27634 # script with status $?, using 1 if that was 0.
27635 as_fn_error ()
27637 as_status=$?; test $as_status -eq 0 && as_status=1
27638 if test "$3"; then
27639 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27640 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27642 $as_echo "$as_me: error: $1" >&2
27643 as_fn_exit $as_status
27644 } # as_fn_error
27647 # as_fn_set_status STATUS
27648 # -----------------------
27649 # Set $? to STATUS, without forking.
27650 as_fn_set_status ()
27652 return $1
27653 } # as_fn_set_status
27655 # as_fn_exit STATUS
27656 # -----------------
27657 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27658 as_fn_exit ()
27660 set +e
27661 as_fn_set_status $1
27662 exit $1
27663 } # as_fn_exit
27665 # as_fn_unset VAR
27666 # ---------------
27667 # Portably unset VAR.
27668 as_fn_unset ()
27670 { eval $1=; unset $1;}
27672 as_unset=as_fn_unset
27673 # as_fn_append VAR VALUE
27674 # ----------------------
27675 # Append the text in VALUE to the end of the definition contained in VAR. Take
27676 # advantage of any shell optimizations that allow amortized linear growth over
27677 # repeated appends, instead of the typical quadratic growth present in naive
27678 # implementations.
27679 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27680 eval 'as_fn_append ()
27682 eval $1+=\$2
27684 else
27685 as_fn_append ()
27687 eval $1=\$$1\$2
27689 fi # as_fn_append
27691 # as_fn_arith ARG...
27692 # ------------------
27693 # Perform arithmetic evaluation on the ARGs, and store the result in the
27694 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27695 # must be portable across $(()) and expr.
27696 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27697 eval 'as_fn_arith ()
27699 as_val=$(( $* ))
27701 else
27702 as_fn_arith ()
27704 as_val=`expr "$@" || test $? -eq 1`
27706 fi # as_fn_arith
27709 if expr a : '\(a\)' >/dev/null 2>&1 &&
27710 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27711 as_expr=expr
27712 else
27713 as_expr=false
27716 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27717 as_basename=basename
27718 else
27719 as_basename=false
27722 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27723 as_dirname=dirname
27724 else
27725 as_dirname=false
27728 as_me=`$as_basename -- "$0" ||
27729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27730 X"$0" : 'X\(//\)$' \| \
27731 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27732 $as_echo X/"$0" |
27733 sed '/^.*\/\([^/][^/]*\)\/*$/{
27734 s//\1/
27737 /^X\/\(\/\/\)$/{
27738 s//\1/
27741 /^X\/\(\/\).*/{
27742 s//\1/
27745 s/.*/./; q'`
27747 # Avoid depending upon Character Ranges.
27748 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27749 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27750 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27751 as_cr_digits='0123456789'
27752 as_cr_alnum=$as_cr_Letters$as_cr_digits
27754 ECHO_C= ECHO_N= ECHO_T=
27755 case `echo -n x` in #(((((
27756 -n*)
27757 case `echo 'xy\c'` in
27758 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27759 xy) ECHO_C='\c';;
27760 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27761 ECHO_T=' ';;
27762 esac;;
27764 ECHO_N='-n';;
27765 esac
27767 rm -f conf$$ conf$$.exe conf$$.file
27768 if test -d conf$$.dir; then
27769 rm -f conf$$.dir/conf$$.file
27770 else
27771 rm -f conf$$.dir
27772 mkdir conf$$.dir 2>/dev/null
27774 if (echo >conf$$.file) 2>/dev/null; then
27775 if ln -s conf$$.file conf$$ 2>/dev/null; then
27776 as_ln_s='ln -s'
27777 # ... but there are two gotchas:
27778 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27779 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27780 # In both cases, we have to default to `cp -p'.
27781 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27782 as_ln_s='cp -p'
27783 elif ln conf$$.file conf$$ 2>/dev/null; then
27784 as_ln_s=ln
27785 else
27786 as_ln_s='cp -p'
27788 else
27789 as_ln_s='cp -p'
27791 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27792 rmdir conf$$.dir 2>/dev/null
27795 # as_fn_mkdir_p
27796 # -------------
27797 # Create "$as_dir" as a directory, including parents if necessary.
27798 as_fn_mkdir_p ()
27801 case $as_dir in #(
27802 -*) as_dir=./$as_dir;;
27803 esac
27804 test -d "$as_dir" || eval $as_mkdir_p || {
27805 as_dirs=
27806 while :; do
27807 case $as_dir in #(
27808 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27809 *) as_qdir=$as_dir;;
27810 esac
27811 as_dirs="'$as_qdir' $as_dirs"
27812 as_dir=`$as_dirname -- "$as_dir" ||
27813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27814 X"$as_dir" : 'X\(//\)[^/]' \| \
27815 X"$as_dir" : 'X\(//\)$' \| \
27816 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27817 $as_echo X"$as_dir" |
27818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27819 s//\1/
27822 /^X\(\/\/\)[^/].*/{
27823 s//\1/
27826 /^X\(\/\/\)$/{
27827 s//\1/
27830 /^X\(\/\).*/{
27831 s//\1/
27834 s/.*/./; q'`
27835 test -d "$as_dir" && break
27836 done
27837 test -z "$as_dirs" || eval "mkdir $as_dirs"
27838 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27841 } # as_fn_mkdir_p
27842 if mkdir -p . 2>/dev/null; then
27843 as_mkdir_p='mkdir -p "$as_dir"'
27844 else
27845 test -d ./-p && rmdir ./-p
27846 as_mkdir_p=false
27849 if test -x / >/dev/null 2>&1; then
27850 as_test_x='test -x'
27851 else
27852 if ls -dL / >/dev/null 2>&1; then
27853 as_ls_L_option=L
27854 else
27855 as_ls_L_option=
27857 as_test_x='
27858 eval sh -c '\''
27859 if test -d "$1"; then
27860 test -d "$1/.";
27861 else
27862 case $1 in #(
27863 -*)set "./$1";;
27864 esac;
27865 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27866 ???[sx]*):;;*)false;;esac;fi
27867 '\'' sh
27870 as_executable_p=$as_test_x
27872 # Sed expression to map a string onto a valid CPP name.
27873 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27875 # Sed expression to map a string onto a valid variable name.
27876 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27879 exec 6>&1
27880 ## ----------------------------------- ##
27881 ## Main body of $CONFIG_STATUS script. ##
27882 ## ----------------------------------- ##
27883 _ASEOF
27884 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27887 # Save the log message, to keep $0 and so on meaningful, and to
27888 # report actual input values of CONFIG_FILES etc. instead of their
27889 # values after options handling.
27890 ac_log="
27891 This file was extended by $as_me, which was
27892 generated by GNU Autoconf 2.64. Invocation command line was
27894 CONFIG_FILES = $CONFIG_FILES
27895 CONFIG_HEADERS = $CONFIG_HEADERS
27896 CONFIG_LINKS = $CONFIG_LINKS
27897 CONFIG_COMMANDS = $CONFIG_COMMANDS
27898 $ $0 $@
27900 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27903 _ACEOF
27905 case $ac_config_files in *"
27906 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27907 esac
27909 case $ac_config_headers in *"
27910 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27911 esac
27914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27915 # Files that config.status was made for.
27916 config_files="$ac_config_files"
27917 config_headers="$ac_config_headers"
27918 config_commands="$ac_config_commands"
27920 _ACEOF
27922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27923 ac_cs_usage="\
27924 \`$as_me' instantiates files and other configuration actions
27925 from templates according to the current configuration. Unless the files
27926 and actions are specified as TAGs, all are instantiated by default.
27928 Usage: $0 [OPTION]... [TAG]...
27930 -h, --help print this help, then exit
27931 -V, --version print version number and configuration settings, then exit
27932 -q, --quiet, --silent
27933 do not print progress messages
27934 -d, --debug don't remove temporary files
27935 --recheck update $as_me by reconfiguring in the same conditions
27936 --file=FILE[:TEMPLATE]
27937 instantiate the configuration file FILE
27938 --header=FILE[:TEMPLATE]
27939 instantiate the configuration header FILE
27941 Configuration files:
27942 $config_files
27944 Configuration headers:
27945 $config_headers
27947 Configuration commands:
27948 $config_commands
27950 Report bugs to the package provider."
27952 _ACEOF
27953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27954 ac_cs_version="\\
27955 config.status
27956 configured by $0, generated by GNU Autoconf 2.64,
27957 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27959 Copyright (C) 2009 Free Software Foundation, Inc.
27960 This config.status script is free software; the Free Software Foundation
27961 gives unlimited permission to copy, distribute and modify it."
27963 ac_pwd='$ac_pwd'
27964 srcdir='$srcdir'
27965 AWK='$AWK'
27966 test -n "\$AWK" || AWK=awk
27967 _ACEOF
27969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27970 # The default lists apply if the user does not specify any file.
27971 ac_need_defaults=:
27972 while test $# != 0
27974 case $1 in
27975 --*=*)
27976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27977 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27978 ac_shift=:
27981 ac_option=$1
27982 ac_optarg=$2
27983 ac_shift=shift
27985 esac
27987 case $ac_option in
27988 # Handling of the options.
27989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27990 ac_cs_recheck=: ;;
27991 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27992 $as_echo "$ac_cs_version"; exit ;;
27993 --debug | --debu | --deb | --de | --d | -d )
27994 debug=: ;;
27995 --file | --fil | --fi | --f )
27996 $ac_shift
27997 case $ac_optarg in
27998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27999 esac
28000 as_fn_append CONFIG_FILES " '$ac_optarg'"
28001 ac_need_defaults=false;;
28002 --header | --heade | --head | --hea )
28003 $ac_shift
28004 case $ac_optarg in
28005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28006 esac
28007 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28008 ac_need_defaults=false;;
28009 --he | --h)
28010 # Conflict between --help and --header
28011 as_fn_error "ambiguous option: \`$1'
28012 Try \`$0 --help' for more information.";;
28013 --help | --hel | -h )
28014 $as_echo "$ac_cs_usage"; exit ;;
28015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28016 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28017 ac_cs_silent=: ;;
28019 # This is an error.
28020 -*) as_fn_error "unrecognized option: \`$1'
28021 Try \`$0 --help' for more information." ;;
28023 *) as_fn_append ac_config_targets " $1"
28024 ac_need_defaults=false ;;
28026 esac
28027 shift
28028 done
28030 ac_configure_extra_args=
28032 if $ac_cs_silent; then
28033 exec 6>/dev/null
28034 ac_configure_extra_args="$ac_configure_extra_args --silent"
28037 _ACEOF
28038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28039 if \$ac_cs_recheck; then
28040 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28041 shift
28042 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28043 CONFIG_SHELL='$SHELL'
28044 export CONFIG_SHELL
28045 exec "\$@"
28048 _ACEOF
28049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28050 exec 5>>config.log
28052 echo
28053 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28054 ## Running $as_me. ##
28055 _ASBOX
28056 $as_echo "$ac_log"
28057 } >&5
28059 _ACEOF
28060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28062 # INIT-COMMANDS
28064 subdirs='$subdirs'
28066 _ACEOF
28068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28070 # Handling of arguments.
28071 for ac_config_target in $ac_config_targets
28073 case $ac_config_target in
28074 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28075 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28076 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28077 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28078 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28079 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28081 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28082 esac
28083 done
28086 # If the user did not use the arguments to specify the items to instantiate,
28087 # then the envvar interface is used. Set only those that are not.
28088 # We use the long form for the default assignment because of an extremely
28089 # bizarre bug on SunOS 4.1.3.
28090 if $ac_need_defaults; then
28091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28096 # Have a temporary directory for convenience. Make it in the build tree
28097 # simply because there is no reason against having it here, and in addition,
28098 # creating and moving files from /tmp can sometimes cause problems.
28099 # Hook for its removal unless debugging.
28100 # Note that there is a small window in which the directory will not be cleaned:
28101 # after its creation but before its name has been assigned to `$tmp'.
28102 $debug ||
28104 tmp=
28105 trap 'exit_status=$?
28106 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28108 trap 'as_fn_exit 1' 1 2 13 15
28110 # Create a (secure) tmp directory for tmp files.
28113 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28114 test -n "$tmp" && test -d "$tmp"
28115 } ||
28117 tmp=./conf$$-$RANDOM
28118 (umask 077 && mkdir "$tmp")
28119 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28121 # Set up the scripts for CONFIG_FILES section.
28122 # No need to generate them if there are no CONFIG_FILES.
28123 # This happens for instance with `./config.status config.h'.
28124 if test -n "$CONFIG_FILES"; then
28126 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28127 ac_cs_awk_getline=:
28128 ac_cs_awk_pipe_init=
28129 ac_cs_awk_read_file='
28130 while ((getline aline < (F[key])) > 0)
28131 print(aline)
28132 close(F[key])'
28133 ac_cs_awk_pipe_fini=
28134 else
28135 ac_cs_awk_getline=false
28136 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28137 ac_cs_awk_read_file='
28138 print "|#_!!_#|"
28139 print "cat " F[key] " &&"
28140 '$ac_cs_awk_pipe_init
28141 # The final `:' finishes the AND list.
28142 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28144 ac_cr=`echo X | tr X '\015'`
28145 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28146 # But we know of no other shell where ac_cr would be empty at this
28147 # point, so we can use a bashism as a fallback.
28148 if test "x$ac_cr" = x; then
28149 eval ac_cr=\$\'\\r\'
28151 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28152 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28153 ac_cs_awk_cr='\r'
28154 else
28155 ac_cs_awk_cr=$ac_cr
28158 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28159 _ACEOF
28161 # Create commands to substitute file output variables.
28163 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28164 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28165 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28166 echo "_ACAWK" &&
28167 echo "_ACEOF"
28168 } >conf$$files.sh &&
28169 . ./conf$$files.sh ||
28170 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28171 rm -f conf$$files.sh
28174 echo "cat >conf$$subs.awk <<_ACEOF" &&
28175 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28176 echo "_ACEOF"
28177 } >conf$$subs.sh ||
28178 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28179 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28180 ac_delim='%!_!# '
28181 for ac_last_try in false false false false false :; do
28182 . ./conf$$subs.sh ||
28183 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28185 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28186 if test $ac_delim_n = $ac_delim_num; then
28187 break
28188 elif $ac_last_try; then
28189 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28190 else
28191 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28193 done
28194 rm -f conf$$subs.sh
28196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28197 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28198 _ACEOF
28199 sed -n '
28201 s/^/S["/; s/!.*/"]=/
28204 s/^[^!]*!//
28205 :repl
28206 t repl
28207 s/'"$ac_delim"'$//
28208 t delim
28211 s/\(.\{148\}\).*/\1/
28212 t more1
28213 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28216 b repl
28217 :more1
28218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28221 s/.\{148\}//
28222 t nl
28223 :delim
28225 s/\(.\{148\}\).*/\1/
28226 t more2
28227 s/["\\]/\\&/g; s/^/"/; s/$/"/
28230 :more2
28231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28234 s/.\{148\}//
28235 t delim
28236 ' <conf$$subs.awk | sed '
28237 /^[^""]/{
28239 s/\n//
28241 ' >>$CONFIG_STATUS || ac_write_fail=1
28242 rm -f conf$$subs.awk
28243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28244 _ACAWK
28245 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28246 for (key in S) S_is_set[key] = 1
28247 FS = "\a"
28248 \$ac_cs_awk_pipe_init
28251 line = $ 0
28252 nfields = split(line, field, "@")
28253 substed = 0
28254 len = length(field[1])
28255 for (i = 2; i < nfields; i++) {
28256 key = field[i]
28257 keylen = length(key)
28258 if (S_is_set[key]) {
28259 value = S[key]
28260 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28261 len += length(value) + length(field[++i])
28262 substed = 1
28263 } else
28264 len += 1 + keylen
28266 if (nfields == 3 && !substed) {
28267 key = field[2]
28268 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28269 \$ac_cs_awk_read_file
28270 next
28273 print line
28275 \$ac_cs_awk_pipe_fini
28276 _ACAWK
28277 _ACEOF
28278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28279 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28280 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28281 else
28283 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28284 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28285 _ACEOF
28287 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28288 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28289 # trailing colons and then remove the whole line if VPATH becomes empty
28290 # (actually we leave an empty line to preserve line numbers).
28291 if test "x$srcdir" = x.; then
28292 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28293 s/:*\$(srcdir):*/:/
28294 s/:*\${srcdir}:*/:/
28295 s/:*@srcdir@:*/:/
28296 s/^\([^=]*=[ ]*\):*/\1/
28297 s/:*$//
28298 s/^[^=]*=[ ]*$//
28302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28303 fi # test -n "$CONFIG_FILES"
28305 # Set up the scripts for CONFIG_HEADERS section.
28306 # No need to generate them if there are no CONFIG_HEADERS.
28307 # This happens for instance with `./config.status Makefile'.
28308 if test -n "$CONFIG_HEADERS"; then
28309 cat >"$tmp/defines.awk" <<\_ACAWK ||
28310 BEGIN {
28311 _ACEOF
28313 # Transform confdefs.h into an awk script `defines.awk', embedded as
28314 # here-document in config.status, that substitutes the proper values into
28315 # config.h.in to produce config.h.
28317 # Create a delimiter string that does not exist in confdefs.h, to ease
28318 # handling of long lines.
28319 ac_delim='%!_!# '
28320 for ac_last_try in false false :; do
28321 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28322 if test -z "$ac_t"; then
28323 break
28324 elif $ac_last_try; then
28325 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28326 else
28327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28329 done
28331 # For the awk script, D is an array of macro values keyed by name,
28332 # likewise P contains macro parameters if any. Preserve backslash
28333 # newline sequences.
28335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28336 sed -n '
28337 s/.\{148\}/&'"$ac_delim"'/g
28338 t rset
28339 :rset
28340 s/^[ ]*#[ ]*define[ ][ ]*/ /
28341 t def
28343 :def
28344 s/\\$//
28345 t bsnl
28346 s/["\\]/\\&/g
28347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28348 D["\1"]=" \3"/p
28349 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28351 :bsnl
28352 s/["\\]/\\&/g
28353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28354 D["\1"]=" \3\\\\\\n"\\/p
28355 t cont
28356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28357 t cont
28359 :cont
28361 s/.\{148\}/&'"$ac_delim"'/g
28362 t clear
28363 :clear
28364 s/\\$//
28365 t bsnlc
28366 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28368 :bsnlc
28369 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28370 b cont
28371 ' <confdefs.h | sed '
28372 s/'"$ac_delim"'/"\\\
28373 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28376 for (key in D) D_is_set[key] = 1
28377 FS = "\a"
28379 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28380 line = \$ 0
28381 split(line, arg, " ")
28382 if (arg[1] == "#") {
28383 defundef = arg[2]
28384 mac1 = arg[3]
28385 } else {
28386 defundef = substr(arg[1], 2)
28387 mac1 = arg[2]
28389 split(mac1, mac2, "(") #)
28390 macro = mac2[1]
28391 prefix = substr(line, 1, index(line, defundef) - 1)
28392 if (D_is_set[macro]) {
28393 # Preserve the white space surrounding the "#".
28394 print prefix "define", macro P[macro] D[macro]
28395 next
28396 } else {
28397 # Replace #undef with comments. This is necessary, for example,
28398 # in the case of _POSIX_SOURCE, which is predefined and required
28399 # on some systems where configure will not decide to define it.
28400 if (defundef == "undef") {
28401 print "/*", prefix defundef, macro, "*/"
28402 next
28406 { print }
28407 _ACAWK
28408 _ACEOF
28409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28410 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28411 fi # test -n "$CONFIG_HEADERS"
28414 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28415 shift
28416 for ac_tag
28418 case $ac_tag in
28419 :[FHLC]) ac_mode=$ac_tag; continue;;
28420 esac
28421 case $ac_mode$ac_tag in
28422 :[FHL]*:*);;
28423 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28424 :[FH]-) ac_tag=-:-;;
28425 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28426 esac
28427 ac_save_IFS=$IFS
28428 IFS=:
28429 set x $ac_tag
28430 IFS=$ac_save_IFS
28431 shift
28432 ac_file=$1
28433 shift
28435 case $ac_mode in
28436 :L) ac_source=$1;;
28437 :[FH])
28438 ac_file_inputs=
28439 for ac_f
28441 case $ac_f in
28442 -) ac_f="$tmp/stdin";;
28443 *) # Look for the file first in the build tree, then in the source tree
28444 # (if the path is not absolute). The absolute path cannot be DOS-style,
28445 # because $ac_f cannot contain `:'.
28446 test -f "$ac_f" ||
28447 case $ac_f in
28448 [\\/$]*) false;;
28449 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28450 esac ||
28451 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28452 esac
28453 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28454 as_fn_append ac_file_inputs " '$ac_f'"
28455 done
28457 # Let's still pretend it is `configure' which instantiates (i.e., don't
28458 # use $as_me), people would be surprised to read:
28459 # /* config.h. Generated by config.status. */
28460 configure_input='Generated from '`
28461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28462 `' by configure.'
28463 if test x"$ac_file" != x-; then
28464 configure_input="$ac_file. $configure_input"
28465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28466 $as_echo "$as_me: creating $ac_file" >&6;}
28468 # Neutralize special characters interpreted by sed in replacement strings.
28469 case $configure_input in #(
28470 *\&* | *\|* | *\\* )
28471 ac_sed_conf_input=`$as_echo "$configure_input" |
28472 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28473 *) ac_sed_conf_input=$configure_input;;
28474 esac
28476 case $ac_tag in
28477 *:-:* | *:-) cat >"$tmp/stdin" \
28478 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28479 esac
28481 esac
28483 ac_dir=`$as_dirname -- "$ac_file" ||
28484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28485 X"$ac_file" : 'X\(//\)[^/]' \| \
28486 X"$ac_file" : 'X\(//\)$' \| \
28487 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28488 $as_echo X"$ac_file" |
28489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28490 s//\1/
28493 /^X\(\/\/\)[^/].*/{
28494 s//\1/
28497 /^X\(\/\/\)$/{
28498 s//\1/
28501 /^X\(\/\).*/{
28502 s//\1/
28505 s/.*/./; q'`
28506 as_dir="$ac_dir"; as_fn_mkdir_p
28507 ac_builddir=.
28509 case "$ac_dir" in
28510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28513 # A ".." for each directory in $ac_dir_suffix.
28514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28515 case $ac_top_builddir_sub in
28516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28518 esac ;;
28519 esac
28520 ac_abs_top_builddir=$ac_pwd
28521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28522 # for backward compatibility:
28523 ac_top_builddir=$ac_top_build_prefix
28525 case $srcdir in
28526 .) # We are building in place.
28527 ac_srcdir=.
28528 ac_top_srcdir=$ac_top_builddir_sub
28529 ac_abs_top_srcdir=$ac_pwd ;;
28530 [\\/]* | ?:[\\/]* ) # Absolute name.
28531 ac_srcdir=$srcdir$ac_dir_suffix;
28532 ac_top_srcdir=$srcdir
28533 ac_abs_top_srcdir=$srcdir ;;
28534 *) # Relative name.
28535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28536 ac_top_srcdir=$ac_top_build_prefix$srcdir
28537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28538 esac
28539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28542 case $ac_mode in
28545 # CONFIG_FILE
28548 _ACEOF
28550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28551 # If the template does not know about datarootdir, expand it.
28552 # FIXME: This hack should be removed a few years after 2.60.
28553 ac_datarootdir_hack=; ac_datarootdir_seen=
28554 ac_sed_dataroot='
28555 /datarootdir/ {
28559 /@datadir@/p
28560 /@docdir@/p
28561 /@infodir@/p
28562 /@localedir@/p
28563 /@mandir@/p'
28564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28565 *datarootdir*) ac_datarootdir_seen=yes;;
28566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28568 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28569 _ACEOF
28570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28571 ac_datarootdir_hack='
28572 s&@datadir@&$datadir&g
28573 s&@docdir@&$docdir&g
28574 s&@infodir@&$infodir&g
28575 s&@localedir@&$localedir&g
28576 s&@mandir@&$mandir&g
28577 s&\\\${datarootdir}&$datarootdir&g' ;;
28578 esac
28579 _ACEOF
28581 # Neutralize VPATH when `$srcdir' = `.'.
28582 # Shell code in configure.ac might set extrasub.
28583 # FIXME: do we really want to maintain this feature?
28584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28585 ac_sed_extra="$ac_vpsub
28586 $extrasub
28587 _ACEOF
28588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28591 s|@configure_input@|$ac_sed_conf_input|;t t
28592 s&@top_builddir@&$ac_top_builddir_sub&;t t
28593 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28594 s&@srcdir@&$ac_srcdir&;t t
28595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28596 s&@top_srcdir@&$ac_top_srcdir&;t t
28597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28598 s&@builddir@&$ac_builddir&;t t
28599 s&@abs_builddir@&$ac_abs_builddir&;t t
28600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28601 $ac_datarootdir_hack
28603 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28604 if $ac_cs_awk_getline; then
28605 $AWK -f "$tmp/subs.awk"
28606 else
28607 $AWK -f "$tmp/subs.awk" | $SHELL
28608 fi >$tmp/out \
28609 || as_fn_error "could not create $ac_file" "$LINENO" 5
28611 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28612 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28613 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28615 which seems to be undefined. Please make sure it is defined." >&5
28616 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28617 which seems to be undefined. Please make sure it is defined." >&2;}
28619 rm -f "$tmp/stdin"
28620 case $ac_file in
28621 -) cat "$tmp/out" && rm -f "$tmp/out";;
28622 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28623 esac \
28624 || as_fn_error "could not create $ac_file" "$LINENO" 5
28628 # CONFIG_HEADER
28630 if test x"$ac_file" != x-; then
28632 $as_echo "/* $configure_input */" \
28633 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28634 } >"$tmp/config.h" \
28635 || as_fn_error "could not create $ac_file" "$LINENO" 5
28636 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28638 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28639 else
28640 rm -f "$ac_file"
28641 mv "$tmp/config.h" "$ac_file" \
28642 || as_fn_error "could not create $ac_file" "$LINENO" 5
28644 else
28645 $as_echo "/* $configure_input */" \
28646 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28647 || as_fn_error "could not create -" "$LINENO" 5
28651 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28652 $as_echo "$as_me: executing $ac_file commands" >&6;}
28654 esac
28657 case $ac_file$ac_mode in
28658 "as":F) chmod +x as ;;
28659 "collect-ld":F) chmod +x collect-ld ;;
28660 "nm":F) chmod +x nm ;;
28661 "default":C)
28662 case ${CONFIG_HEADERS} in
28663 *auto-host.h:config.in*)
28664 echo > cstamp-h ;;
28665 esac
28666 # Make sure all the subdirs exist.
28667 for d in $subdirs doc build common c-family
28669 test -d $d || mkdir $d
28670 done
28673 esac
28674 done # for ac_tag
28677 as_fn_exit 0
28678 _ACEOF
28679 ac_clean_files=$ac_clean_files_save
28681 test $ac_write_fail = 0 ||
28682 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28685 # configure is writing to config.log, and then calls config.status.
28686 # config.status does its own redirection, appending to config.log.
28687 # Unfortunately, on DOS this fails, as config.log is still kept open
28688 # by configure, so config.status won't be able to write to it; its
28689 # output is simply discarded. So we exec the FD to /dev/null,
28690 # effectively closing config.log, so it can be properly (re)opened and
28691 # appended to by config.status. When coming back to configure, we
28692 # need to make the FD available again.
28693 if test "$no_create" != yes; then
28694 ac_cs_success=:
28695 ac_config_status_args=
28696 test "$silent" = yes &&
28697 ac_config_status_args="$ac_config_status_args --quiet"
28698 exec 5>/dev/null
28699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28700 exec 5>>config.log
28701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28702 # would make configure fail if this is the last instruction.
28703 $ac_cs_success || as_fn_exit $?
28705 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28707 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}