Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / configure
blobea79930b808f271a72d1675d31f309dc96923e0f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 LIBELFINC
606 LIBELFLIBS
607 CLOOGINC
608 CLOOGLIBS
609 PPLINC
610 PPLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 slibdir
671 dollar
672 gcc_tooldir
673 LTO_USE_LIBELF
674 LTO_BINARY_READER
675 enable_lto
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
681 libgcc_visibility
682 gcc_cv_readelf
683 gcc_cv_objdump
684 ORIGINAL_NM_FOR_TARGET
685 gcc_cv_nm
686 ORIGINAL_LD_FOR_TARGET
687 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 gcc_cv_ld
689 ORIGINAL_AS_FOR_TARGET
690 gcc_cv_as
691 enable_fast_install
692 objdir
693 CXXCPP
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
704 FGREP
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CFLAGS
711 CC_FOR_BUILD
712 inhibit_libc
713 SYSTEM_HEADER_DIR
715 CROSS
716 CATOBJEXT
717 GENCAT
718 INSTOBJEXT
719 DATADIRNAME
720 CATALOGS
721 POSUB
722 GMSGFMT
723 XGETTEXT
724 INCINTL
725 LIBINTL_DEP
726 LIBINTL
727 USE_NLS
728 extra_opt_files
729 extra_modes_file
730 gthread_flags
731 objext
732 manext
733 LIBICONV_DEP
734 LTLIBICONV
735 LIBICONV
736 LDEXP_LIB
737 GNAT_LIBEXC
738 COLLECT2_LIBS
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 onestep
761 CONFIGURE_SPECS
762 CROSS_SYSTEM_HEADER_DIR
763 TARGET_SYSTEM_ROOT_DEFINE
764 TARGET_SYSTEM_ROOT
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 enable_multilib
769 ENABLE_BUILD_WITH_CXX
770 coverage_flags
771 valgrind_command
772 valgrind_path_defines
773 valgrind_path
774 TREEBROWSER
775 nocommon_flag
776 warn_cxxflags
777 warn_cflags
778 c_strict_warn
779 strict_warn
780 c_loose_warn
781 loose_warn
782 EGREP
783 GREP
785 OUTPUT_OPTION
786 NO_MINUS_C_MINUS_O
787 GNATMAKE
788 GNATBIND
789 ac_ct_CXX
790 CXXFLAGS
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
799 GENINSRC
800 target_subdir
801 host_subdir
802 build_subdir
803 build_libsubdir
804 target_noncanonical
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files='language_hooks'
856 ac_user_opts='
857 enable_option_checking
858 with_build_libsubdir
859 with_local_prefix
860 with_gxx_include_dir
861 with_cpp_install_dir
862 enable_generated_files_in_srcdir
863 with_gnu_ld
864 with_ld
865 with_demangler_in_ld
866 with_gnu_as
867 with_as
868 enable_werror_always
869 enable_checking
870 enable_coverage
871 enable_gather_detailed_mem_stats
872 enable_build_with_cxx
873 with_stabs
874 enable_multilib
875 enable___cxa_atexit
876 enable_decimal_float
877 enable_fixed_point
878 enable_threads
879 enable_tls
880 enable_objc_gc
881 with_dwarf2
882 enable_shared
883 with_build_sysroot
884 with_sysroot
885 with_specs
886 enable_intermodule
887 with_pkgversion
888 with_bugurl
889 enable_languages
890 with_multilib_list
891 enable_rpath
892 with_libiconv_prefix
893 enable_initfini_array
894 enable_sjlj_exceptions
895 with_system_libunwind
896 enable_secureplt
897 enable_leading_mingw64_underscores
898 enable_cld
899 enable_win32_registry
900 enable_static
901 with_pic
902 enable_fast_install
903 enable_libtool_lock
904 with_plugin_ld
905 enable_comdat
906 enable_gnu_unique_object
907 enable_linker_build_id
908 with_long_double_128
909 with_gc
910 with_system_zlib
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
913 with_slibdir
914 enable_plugin
916 ac_precious_vars='build_alias
917 host_alias
918 target_alias
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
925 CXXFLAGS
928 CXXCPP
929 GMPLIBS
930 GMPINC
931 PPLLIBS
932 PPLINC
933 CLOOGLIBS
934 CLOOGINC
935 LIBELFLIBS
936 LIBELFINC'
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 ac_unrecognized_opts=
943 ac_unrecognized_sep=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
946 cache_file=/dev/null
947 exec_prefix=NONE
948 no_create=
949 no_recursion=
950 prefix=NONE
951 program_prefix=NONE
952 program_suffix=NONE
953 program_transform_name=s,x,x,
954 silent=
955 site=
956 srcdir=
957 verbose=
958 x_includes=NONE
959 x_libraries=NONE
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE}'
978 infodir='${datarootdir}/info'
979 htmldir='${docdir}'
980 dvidir='${docdir}'
981 pdfdir='${docdir}'
982 psdir='${docdir}'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
987 ac_prev=
988 ac_dashdash=
989 for ac_option
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
994 ac_prev=
995 continue
998 case $ac_option in
999 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 *) ac_optarg=yes ;;
1001 esac
1003 # Accept the important Cygnus configure options, so we can diagnose typos.
1005 case $ac_dashdash$ac_option in
1007 ac_dashdash=yes ;;
1009 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010 ac_prev=bindir ;;
1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012 bindir=$ac_optarg ;;
1014 -build | --build | --buil | --bui | --bu)
1015 ac_prev=build_alias ;;
1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017 build_alias=$ac_optarg ;;
1019 -cache-file | --cache-file | --cache-fil | --cache-fi \
1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021 ac_prev=cache_file ;;
1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024 cache_file=$ac_optarg ;;
1026 --config-cache | -C)
1027 cache_file=config.cache ;;
1029 -datadir | --datadir | --datadi | --datad)
1030 ac_prev=datadir ;;
1031 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032 datadir=$ac_optarg ;;
1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035 | --dataroo | --dataro | --datar)
1036 ac_prev=datarootdir ;;
1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039 datarootdir=$ac_optarg ;;
1041 -disable-* | --disable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=no ;;
1057 -docdir | --docdir | --docdi | --doc | --do)
1058 ac_prev=docdir ;;
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 ac_prev=dvidir ;;
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1067 -enable-* | --enable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=\$ac_optarg ;;
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1271 -with-* | --with-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1296 "with_$ac_useropt"
1297 "*) ;;
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1300 esac
1301 eval with_$ac_useropt=no ;;
1303 --x)
1304 # Obsolete; use --with-x.
1305 with_x=yes ;;
1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308 | --x-incl | --x-inc | --x-in | --x-i)
1309 ac_prev=x_includes ;;
1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312 x_includes=$ac_optarg ;;
1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316 ac_prev=x_libraries ;;
1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319 x_libraries=$ac_optarg ;;
1321 -*) as_fn_error "unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information."
1325 *=*)
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 case $ac_envvar in #(
1329 '' | [0-9]* | *[!_$as_cr_alnum]* )
1330 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1331 esac
1332 eval $ac_envvar=\$ac_optarg
1333 export $ac_envvar ;;
1336 # FIXME: should be removed in autoconf 3.0.
1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 esac
1344 done
1346 if test -n "$ac_prev"; then
1347 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348 as_fn_error "missing argument to $ac_option"
1351 if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1353 no) ;;
1354 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356 esac
1359 # Check all directory arguments for consistency.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1366 # Remove trailing slashes.
1367 case $ac_val in
1368 */ )
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
1371 esac
1372 # Be sure to have absolute directory names.
1373 case $ac_val in
1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376 esac
1377 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1378 done
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1383 build=$build_alias
1384 host=$host_alias
1385 target=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1394 cross_compiling=yes
1398 ac_tool_prefix=
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401 test "$silent" = yes && exec 6>/dev/null
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 as_fn_error "working directory cannot be determined"
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409 as_fn_error "pwd does not report name of working directory"
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414 ac_srcdir_defaulted=yes
1415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir=`$as_dirname -- "$as_myself" ||
1417 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418 X"$as_myself" : 'X\(//\)[^/]' \| \
1419 X"$as_myself" : 'X\(//\)$' \| \
1420 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421 $as_echo X"$as_myself" |
1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 s//\1/
1426 /^X\(\/\/\)[^/].*/{
1427 s//\1/
1430 /^X\(\/\/\)$/{
1431 s//\1/
1434 /^X\(\/\).*/{
1435 s//\1/
1438 s/.*/./; q'`
1439 srcdir=$ac_confdir
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 srcdir=..
1443 else
1444 ac_srcdir_defaulted=no
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 ac_abs_confdir=`(
1452 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1453 pwd)`
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 srcdir=.
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1461 case $srcdir in
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 esac
1464 for ac_var in $ac_precious_vars; do
1465 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_${ac_var}_value=\$${ac_var}
1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 done
1472 # Report the --help message.
1474 if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1477 cat <<_ACEOF
1478 \`configure' configures this package to adapt to many kinds of systems.
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1485 Defaults for the options are specified in brackets.
1487 Configuration:
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 [PREFIX]
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1509 For better control, use the options below.
1511 Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1531 _ACEOF
1533 cat <<\_ACEOF
1535 Program names:
1536 --program-prefix=PREFIX prepend PREFIX to installed program names
1537 --program-suffix=SUFFIX append SUFFIX to installed program names
1538 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1540 System types:
1541 --build=BUILD configure for building on BUILD [guessed]
1542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543 --target=TARGET configure for building compilers for TARGET [HOST]
1544 _ACEOF
1547 if test -n "$ac_init_help"; then
1549 cat <<\_ACEOF
1551 Optional Features:
1552 --disable-option-checking ignore unrecognized --enable/--with options
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --enable-generated-files-in-srcdir
1556 put copies of generated files in source dir
1557 intended for creating source tarballs for users
1558 without texinfo bison or flex.
1559 --enable-werror-always enable -Werror despite compiler version
1560 --enable-checking=LIST
1561 enable expensive run-time checks. With LIST,
1562 enable only specific categories of checks.
1563 Categories are: yes,no,all,none,release.
1564 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1565 rtlflag,rtl,runtime,tree,valgrind,types.
1566 --enable-coverage=LEVEL
1567 enable compiler's code coverage collection.
1568 Use to measure compiler performance and locate
1569 unused parts of the compiler. With LEVEL, specify
1570 optimization. Values are opt, noopt,
1571 default is noopt
1572 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1573 --enable-build-with-cxx build with C++ compiler instead of C compiler
1574 --enable-multilib enable library support for multiple ABIs
1575 --enable-__cxa_atexit enable __cxa_atexit for C++
1576 --enable-decimal-float={no,yes,bid,dpd}
1577 enable decimal float extension to C. Selecting 'bid'
1578 or 'dpd' choses which decimal floating point format
1579 to use
1580 --enable-fixed-point enable fixed-point arithmetic extension to C
1581 --enable-threads enable thread usage for target GCC
1582 --enable-threads=LIB use LIB thread package for target GCC
1583 --enable-tls enable or disable generation of tls code
1584 overriding the assembler check for tls support
1585 --enable-objc-gc enable the use of Boehm's garbage collector with
1586 the GNU Objective-C runtime
1587 --disable-shared don't provide a shared libgcc
1588 --enable-intermodule build the compiler in one step
1589 --enable-languages=LIST specify which front-ends to build
1590 --disable-rpath do not hardcode runtime library paths
1591 --enable-initfini-array use .init_array/.fini_array sections
1592 --enable-sjlj-exceptions
1593 arrange to use setjmp/longjmp exception handling
1594 --enable-secureplt enable -msecure-plt by default for PowerPC
1595 --enable-leading-mingw64-underscores
1596 Enable leading underscores on 64 bit mingw targets
1597 --enable-cld enable -mcld by default for 32bit x86
1598 --disable-win32-registry
1599 disable lookup of installation paths in the
1600 Registry on Windows hosts
1601 --enable-win32-registry enable registry lookup (default)
1602 --enable-win32-registry=KEY
1603 use KEY instead of GCC version as the last portion
1604 of the registry key
1605 --enable-shared[=PKGS] build shared libraries [default=yes]
1606 --enable-static[=PKGS] build static libraries [default=yes]
1607 --enable-fast-install[=PKGS]
1608 optimize for fast installation [default=yes]
1609 --disable-libtool-lock avoid locking (might break parallel builds)
1610 --enable-comdat enable COMDAT group support
1611 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1612 glibc systems
1613 --enable-linker-build-id
1614 compiler will always pass --build-id to linker
1615 --enable-maintainer-mode
1616 enable make rules and dependencies not useful
1617 (and sometimes confusing) to the casual installer
1618 --enable-version-specific-runtime-libs
1619 specify that runtime libraries should be
1620 installed in a compiler-specific directory
1621 --enable-plugin enable plugin support
1623 Optional Packages:
1624 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1625 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1626 --with-build-libsubdir=DIR Directory where to find libraries for build system
1627 --with-local-prefix=DIR specifies directory to put local include
1628 --with-gxx-include-dir=DIR
1629 specifies directory to put g++ header files
1630 --with-cpp-install-dir=DIR
1631 install the user visible C preprocessor in DIR
1632 (relative to PREFIX) as well as PREFIX/bin
1633 --with-gnu-ld arrange to work with GNU ld.
1634 --with-ld arrange to use the specified ld (full pathname)
1635 --with-demangler-in-ld try to use demangler in GNU ld.
1636 --with-gnu-as arrange to work with GNU as
1637 --with-as arrange to use the specified as (full pathname)
1638 --with-stabs arrange to use stabs instead of host debug format
1639 --with-dwarf2 force the default debug format to be DWARF 2
1640 --with-build-sysroot=sysroot
1641 use sysroot as the system root during the build
1642 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1643 --with-specs=SPECS add SPECS to driver command-line processing
1644 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1645 --with-bugurl=URL Direct users to URL to report a bug
1646 --with-multilib-list Select multilibs (SH only)
1647 --with-gnu-ld assume the C compiler uses GNU ld default=no
1648 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1649 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1650 --with-system-libunwind use installed libunwind
1651 --with-pic try to use only PIC/non-PIC objects [default=use
1652 both]
1653 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1654 --with-plugin-ld=[ARG] specify the plugin linker
1655 --with-long-double-128 Use 128-bit long double by default.
1656 --with-gc={page,zone} choose the garbage collection mechanism to use
1657 with the compiler
1658 --with-system-zlib use installed libz
1659 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1661 Some influential environment variables:
1662 CC C compiler command
1663 CFLAGS C compiler flags
1664 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1665 nonstandard directory <lib dir>
1666 LIBS libraries to pass to the linker, e.g. -l<library>
1667 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1668 you have headers in a nonstandard directory <include dir>
1669 CXX C++ compiler command
1670 CXXFLAGS C++ compiler flags
1671 CPP C preprocessor
1672 CXXCPP C++ preprocessor
1673 GMPLIBS How to link GMP
1674 GMPINC How to find GMP include files
1675 PPLLIBS How to link PPL
1676 PPLINC How to find PPL include files
1677 CLOOGLIBS How to link CLOOG
1678 CLOOGINC How to find CLOOG include files
1679 LIBELFLIBS How to link libelf
1680 LIBELFINC How to find libelf include files
1682 Use these variables to override the choices made by `configure' or to help
1683 it to find libraries and programs with nonstandard names/locations.
1685 Report bugs to the package provider.
1686 _ACEOF
1687 ac_status=$?
1690 if test "$ac_init_help" = "recursive"; then
1691 # If there are subdirs, report their specific --help.
1692 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1693 test -d "$ac_dir" ||
1694 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695 continue
1696 ac_builddir=.
1698 case "$ac_dir" in
1699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1702 # A ".." for each directory in $ac_dir_suffix.
1703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1704 case $ac_top_builddir_sub in
1705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707 esac ;;
1708 esac
1709 ac_abs_top_builddir=$ac_pwd
1710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711 # for backward compatibility:
1712 ac_top_builddir=$ac_top_build_prefix
1714 case $srcdir in
1715 .) # We are building in place.
1716 ac_srcdir=.
1717 ac_top_srcdir=$ac_top_builddir_sub
1718 ac_abs_top_srcdir=$ac_pwd ;;
1719 [\\/]* | ?:[\\/]* ) # Absolute name.
1720 ac_srcdir=$srcdir$ac_dir_suffix;
1721 ac_top_srcdir=$srcdir
1722 ac_abs_top_srcdir=$srcdir ;;
1723 *) # Relative name.
1724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725 ac_top_srcdir=$ac_top_build_prefix$srcdir
1726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727 esac
1728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1730 cd "$ac_dir" || { ac_status=$?; continue; }
1731 # Check for guested configure.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure" --help=recursive
1738 else
1739 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740 fi || ac_status=$?
1741 cd "$ac_pwd" || { ac_status=$?; break; }
1742 done
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1747 cat <<\_ACEOF
1748 configure
1749 generated by GNU Autoconf 2.64
1751 Copyright (C) 2009 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1754 _ACEOF
1755 exit
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=1
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 return $ac_retval
1798 } # ac_fn_c_try_compile
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1831 ac_retval=1
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 return $ac_retval
1836 } # ac_fn_cxx_try_compile
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_cpp ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } >/dev/null && {
1860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=1
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1873 } # ac_fn_c_try_cpp
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1903 else
1904 ac_header_compiler=no
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1919 else
1920 ac_header_preproc=no
1922 rm -f conftest.err conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 yes:no: )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934 no:yes:* )
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 esac
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 eval "$3=\$ac_header_compiler"
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 } # ac_fn_c_check_header_mongrel
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1966 ac_fn_c_try_run ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_link"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>&5
1977 ac_status=$?
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980 { { case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_try") 2>&5
1987 ac_status=$?
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; }; }; then :
1990 ac_retval=0
1991 else
1992 $as_echo "$as_me: program exited with status $ac_status" >&5
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 ac_retval=$ac_status
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 return $ac_retval
2002 } # ac_fn_c_try_run
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$3=yes"
2023 else
2024 eval "$3=no"
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2036 # --------------------------------------------
2037 # Tries to find the compile-time value of EXPR in a program that includes
2038 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2039 # computed
2040 ac_fn_c_compute_int ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if test "$cross_compiling" = yes; then
2044 # Depending upon the size, compute the lo and hi bounds.
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2049 main ()
2051 static int test_array [1 - 2 * !(($2) >= 0)];
2052 test_array [0] = 0
2055 return 0;
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 ac_lo=0 ac_mid=0
2060 while :; do
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2065 main ()
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068 test_array [0] = 0
2071 return 0;
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=$ac_mid; break
2076 else
2077 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2078 if test $ac_lo -le $ac_mid; then
2079 ac_lo= ac_hi=
2080 break
2082 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 done
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2091 main ()
2093 static int test_array [1 - 2 * !(($2) < 0)];
2094 test_array [0] = 0
2097 return 0;
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_hi=-1 ac_mid=-1
2102 while :; do
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2107 main ()
2109 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2110 test_array [0] = 0
2113 return 0;
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_lo=$ac_mid; break
2118 else
2119 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2120 if test $ac_mid -le $ac_hi; then
2121 ac_lo= ac_hi=
2122 break
2124 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128 else
2129 ac_lo= ac_hi=
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 # Binary search between lo and hi bounds.
2135 while test "x$ac_lo" != "x$ac_hi"; do
2136 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2141 main ()
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 test_array [0] = 0
2147 return 0;
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_hi=$ac_mid
2152 else
2153 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 done
2157 case $ac_lo in #((
2158 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2159 '') ac_retval=1 ;;
2160 esac
2161 else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2167 #include <stdio.h>
2168 #include <stdlib.h>
2170 main ()
2173 FILE *f = fopen ("conftest.val", "w");
2174 if (! f)
2175 return 1;
2176 if (($2) < 0)
2178 long int i = longval ();
2179 if (i != ($2))
2180 return 1;
2181 fprintf (f, "%ld", i);
2183 else
2185 unsigned long int i = ulongval ();
2186 if (i != ($2))
2187 return 1;
2188 fprintf (f, "%lu", i);
2190 /* Do not output a trailing newline, as this causes \r\n confusion
2191 on some platforms. */
2192 return ferror (f) || fclose (f) != 0;
2195 return 0;
2197 _ACEOF
2198 if ac_fn_c_try_run "$LINENO"; then :
2199 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2200 else
2201 ac_retval=1
2203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204 conftest.$ac_objext conftest.beam conftest.$ac_ext
2205 rm -f conftest.val
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 return $ac_retval
2211 } # ac_fn_c_compute_int
2213 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2214 # -------------------------------------------
2215 # Tests whether TYPE exists after having included INCLUDES, setting cache
2216 # variable VAR accordingly.
2217 ac_fn_c_check_type ()
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223 $as_echo_n "(cached) " >&6
2224 else
2225 eval "$3=no"
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2230 main ()
2232 if (sizeof ($2))
2233 return 0;
2235 return 0;
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2243 main ()
2245 if (sizeof (($2)))
2246 return 0;
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2253 else
2254 eval "$3=yes"
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 eval ac_res=\$$3
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 } # ac_fn_c_check_type
2267 # ac_fn_c_find_intX_t LINENO BITS VAR
2268 # -----------------------------------
2269 # Finds a signed integer type with width BITS, setting cache variable VAR
2270 # accordingly.
2271 ac_fn_c_find_intX_t ()
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2275 $as_echo_n "checking for int$2_t... " >&6; }
2276 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2278 else
2279 eval "$3=no"
2280 for ac_type in int$2_t 'int' 'long int' \
2281 'long long int' 'short int' 'signed char'; do
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2284 $ac_includes_default
2286 main ()
2288 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2289 test_array [0] = 0
2292 return 0;
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $ac_includes_default
2300 main ()
2302 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2303 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2304 test_array [0] = 0
2307 return 0;
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2312 else
2313 case $ac_type in #(
2314 int$2_t) :
2315 eval "$3=yes" ;; #(
2316 *) :
2317 eval "$3=\$ac_type" ;;
2318 esac
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 eval as_val=\$$3
2324 if test "x$as_val" = x""no; then :
2326 else
2327 break
2329 done
2331 eval ac_res=\$$3
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2336 } # ac_fn_c_find_intX_t
2338 # ac_fn_c_try_link LINENO
2339 # -----------------------
2340 # Try to link conftest.$ac_ext, and return whether this succeeded.
2341 ac_fn_c_try_link ()
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 rm -f conftest.$ac_objext conftest$ac_exeext
2345 if { { ac_try="$ac_link"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_link") 2>conftest.err
2353 ac_status=$?
2354 if test -s conftest.err; then
2355 grep -v '^ *+' conftest.err >conftest.er1
2356 cat conftest.er1 >&5
2357 mv -f conftest.er1 conftest.err
2359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360 test $ac_status = 0; } && {
2361 test -z "$ac_c_werror_flag" ||
2362 test ! -s conftest.err
2363 } && test -s conftest$ac_exeext && {
2364 test "$cross_compiling" = yes ||
2365 $as_test_x conftest$ac_exeext
2366 }; then :
2367 ac_retval=0
2368 else
2369 $as_echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 ac_retval=1
2374 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2375 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2376 # interfere with the next link command; also delete a directory that is
2377 # left behind by Apple's compiler. We do this before executing the actions.
2378 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2379 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 return $ac_retval
2382 } # ac_fn_c_try_link
2384 # ac_fn_c_find_uintX_t LINENO BITS VAR
2385 # ------------------------------------
2386 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2387 # accordingly.
2388 ac_fn_c_find_uintX_t ()
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2392 $as_echo_n "checking for uint$2_t... " >&6; }
2393 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 eval "$3=no"
2397 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2398 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2401 $ac_includes_default
2403 main ()
2405 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2406 test_array [0] = 0
2409 return 0;
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413 case $ac_type in #(
2414 uint$2_t) :
2415 eval "$3=yes" ;; #(
2416 *) :
2417 eval "$3=\$ac_type" ;;
2418 esac
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 eval as_val=\$$3
2422 if test "x$as_val" = x""no; then :
2424 else
2425 break
2427 done
2429 eval ac_res=\$$3
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2434 } # ac_fn_c_find_uintX_t
2436 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2437 # ----------------------------------------------
2438 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2439 ac_fn_c_check_header_preproc ()
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2449 #include <$2>
2450 _ACEOF
2451 if ac_fn_c_try_cpp "$LINENO"; then :
2452 eval "$3=yes"
2453 else
2454 eval "$3=no"
2456 rm -f conftest.err conftest.$ac_ext
2458 eval ac_res=\$$3
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 } # ac_fn_c_check_header_preproc
2465 # ac_fn_c_check_func LINENO FUNC VAR
2466 # ----------------------------------
2467 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2468 ac_fn_c_check_func ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2480 #define $2 innocuous_$2
2482 /* System header to define __stub macros and hopefully few prototypes,
2483 which can conflict with char $2 (); below.
2484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485 <limits.h> exists even on freestanding compilers. */
2487 #ifdef __STDC__
2488 # include <limits.h>
2489 #else
2490 # include <assert.h>
2491 #endif
2493 #undef $2
2495 /* Override any GCC internal prototype to avoid an error.
2496 Use char because int might match the return type of a GCC
2497 builtin and then its argument prototype would still apply. */
2498 #ifdef __cplusplus
2499 extern "C"
2500 #endif
2501 char $2 ();
2502 /* The GNU C library defines this for functions which it implements
2503 to always fail with ENOSYS. Some functions are actually named
2504 something starting with __ and the normal name is an alias. */
2505 #if defined __stub_$2 || defined __stub___$2
2506 choke me
2507 #endif
2510 main ()
2512 return $2 ();
2514 return 0;
2516 _ACEOF
2517 if ac_fn_c_try_link "$LINENO"; then :
2518 eval "$3=yes"
2519 else
2520 eval "$3=no"
2522 rm -f core conftest.err conftest.$ac_objext \
2523 conftest$ac_exeext conftest.$ac_ext
2525 eval ac_res=\$$3
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2530 } # ac_fn_c_check_func
2532 # ac_fn_cxx_try_cpp LINENO
2533 # ------------------------
2534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2535 ac_fn_cxx_try_cpp ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 if { { ac_try="$ac_cpp conftest.$ac_ext"
2539 case "(($ac_try" in
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2542 esac
2543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2544 $as_echo "$ac_try_echo"; } >&5
2545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2546 ac_status=$?
2547 if test -s conftest.err; then
2548 grep -v '^ *+' conftest.err >conftest.er1
2549 cat conftest.er1 >&5
2550 mv -f conftest.er1 conftest.err
2552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2553 test $ac_status = 0; } >/dev/null && {
2554 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2555 test ! -s conftest.err
2556 }; then :
2557 ac_retval=0
2558 else
2559 $as_echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2562 ac_retval=1
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565 return $ac_retval
2567 } # ac_fn_cxx_try_cpp
2569 # ac_fn_cxx_try_link LINENO
2570 # -------------------------
2571 # Try to link conftest.$ac_ext, and return whether this succeeded.
2572 ac_fn_cxx_try_link ()
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 rm -f conftest.$ac_objext conftest$ac_exeext
2576 if { { ac_try="$ac_link"
2577 case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580 esac
2581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2582 $as_echo "$ac_try_echo"; } >&5
2583 (eval "$ac_link") 2>conftest.err
2584 ac_status=$?
2585 if test -s conftest.err; then
2586 grep -v '^ *+' conftest.err >conftest.er1
2587 cat conftest.er1 >&5
2588 mv -f conftest.er1 conftest.err
2590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2591 test $ac_status = 0; } && {
2592 test -z "$ac_cxx_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest$ac_exeext && {
2595 test "$cross_compiling" = yes ||
2596 $as_test_x conftest$ac_exeext
2597 }; then :
2598 ac_retval=0
2599 else
2600 $as_echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2603 ac_retval=1
2605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2607 # interfere with the next link command; also delete a directory that is
2608 # left behind by Apple's compiler. We do this before executing the actions.
2609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611 return $ac_retval
2613 } # ac_fn_cxx_try_link
2614 cat >config.log <<_ACEOF
2615 This file contains any messages produced by compilers while
2616 running configure, to aid debugging if configure makes a mistake.
2618 It was created by $as_me, which was
2619 generated by GNU Autoconf 2.64. Invocation command line was
2621 $ $0 $@
2623 _ACEOF
2624 exec 5>>config.log
2626 cat <<_ASUNAME
2627 ## --------- ##
2628 ## Platform. ##
2629 ## --------- ##
2631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2638 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2640 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2641 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2643 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2644 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2645 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2646 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2648 _ASUNAME
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 $as_echo "PATH: $as_dir"
2656 done
2657 IFS=$as_save_IFS
2659 } >&5
2661 cat >&5 <<_ACEOF
2664 ## ----------- ##
2665 ## Core tests. ##
2666 ## ----------- ##
2668 _ACEOF
2671 # Keep a trace of the command line.
2672 # Strip out --no-create and --no-recursion so they do not pile up.
2673 # Strip out --silent because we don't want to record it for future runs.
2674 # Also quote any args containing shell meta-characters.
2675 # Make two passes to allow for proper duplicate-argument suppression.
2676 ac_configure_args=
2677 ac_configure_args0=
2678 ac_configure_args1=
2679 ac_must_keep_next=false
2680 for ac_pass in 1 2
2682 for ac_arg
2684 case $ac_arg in
2685 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2687 | -silent | --silent | --silen | --sile | --sil)
2688 continue ;;
2689 *\'*)
2690 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2691 esac
2692 case $ac_pass in
2693 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2695 as_fn_append ac_configure_args1 " '$ac_arg'"
2696 if test $ac_must_keep_next = true; then
2697 ac_must_keep_next=false # Got value, back to normal.
2698 else
2699 case $ac_arg in
2700 *=* | --config-cache | -C | -disable-* | --disable-* \
2701 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2702 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2703 | -with-* | --with-* | -without-* | --without-* | --x)
2704 case "$ac_configure_args0 " in
2705 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2706 esac
2708 -* ) ac_must_keep_next=true ;;
2709 esac
2711 as_fn_append ac_configure_args " '$ac_arg'"
2713 esac
2714 done
2715 done
2716 { ac_configure_args0=; unset ac_configure_args0;}
2717 { ac_configure_args1=; unset ac_configure_args1;}
2719 # When interrupted or exit'd, cleanup temporary files, and complete
2720 # config.log. We remove comments because anyway the quotes in there
2721 # would cause problems or look ugly.
2722 # WARNING: Use '\'' to represent an apostrophe within the trap.
2723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2724 trap 'exit_status=$?
2725 # Save into config.log some information that might help in debugging.
2727 echo
2729 cat <<\_ASBOX
2730 ## ---------------- ##
2731 ## Cache variables. ##
2732 ## ---------------- ##
2733 _ASBOX
2734 echo
2735 # The following way of writing the cache mishandles newlines in values,
2737 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2738 eval ac_val=\$$ac_var
2739 case $ac_val in #(
2740 *${as_nl}*)
2741 case $ac_var in #(
2742 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2744 esac
2745 case $ac_var in #(
2746 _ | IFS | as_nl) ;; #(
2747 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2748 *) { eval $ac_var=; unset $ac_var;} ;;
2749 esac ;;
2750 esac
2751 done
2752 (set) 2>&1 |
2753 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2754 *${as_nl}ac_space=\ *)
2755 sed -n \
2756 "s/'\''/'\''\\\\'\'''\''/g;
2757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2758 ;; #(
2760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2762 esac |
2763 sort
2765 echo
2767 cat <<\_ASBOX
2768 ## ----------------- ##
2769 ## Output variables. ##
2770 ## ----------------- ##
2771 _ASBOX
2772 echo
2773 for ac_var in $ac_subst_vars
2775 eval ac_val=\$$ac_var
2776 case $ac_val in
2777 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2778 esac
2779 $as_echo "$ac_var='\''$ac_val'\''"
2780 done | sort
2781 echo
2783 if test -n "$ac_subst_files"; then
2784 cat <<\_ASBOX
2785 ## ------------------- ##
2786 ## File substitutions. ##
2787 ## ------------------- ##
2788 _ASBOX
2789 echo
2790 for ac_var in $ac_subst_files
2792 eval ac_val=\$$ac_var
2793 case $ac_val in
2794 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2795 esac
2796 $as_echo "$ac_var='\''$ac_val'\''"
2797 done | sort
2798 echo
2801 if test -s confdefs.h; then
2802 cat <<\_ASBOX
2803 ## ----------- ##
2804 ## confdefs.h. ##
2805 ## ----------- ##
2806 _ASBOX
2807 echo
2808 cat confdefs.h
2809 echo
2811 test "$ac_signal" != 0 &&
2812 $as_echo "$as_me: caught signal $ac_signal"
2813 $as_echo "$as_me: exit $exit_status"
2814 } >&5
2815 rm -f core *.core core.conftest.* &&
2816 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2817 exit $exit_status
2819 for ac_signal in 1 2 13 15; do
2820 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2821 done
2822 ac_signal=0
2824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2825 rm -f -r conftest* confdefs.h
2827 $as_echo "/* confdefs.h */" > confdefs.h
2829 # Predefined preprocessor variables.
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_NAME "$PACKAGE_NAME"
2833 _ACEOF
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2837 _ACEOF
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2841 _ACEOF
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_STRING "$PACKAGE_STRING"
2845 _ACEOF
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2849 _ACEOF
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_URL "$PACKAGE_URL"
2853 _ACEOF
2856 # Let the site file select an alternate cache file if it wants to.
2857 # Prefer an explicitly selected file to automatically selected ones.
2858 ac_site_file1=NONE
2859 ac_site_file2=NONE
2860 if test -n "$CONFIG_SITE"; then
2861 ac_site_file1=$CONFIG_SITE
2862 elif test "x$prefix" != xNONE; then
2863 ac_site_file1=$prefix/share/config.site
2864 ac_site_file2=$prefix/etc/config.site
2865 else
2866 ac_site_file1=$ac_default_prefix/share/config.site
2867 ac_site_file2=$ac_default_prefix/etc/config.site
2869 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2871 test "x$ac_site_file" = xNONE && continue
2872 if test -r "$ac_site_file"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2874 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2875 sed 's/^/| /' "$ac_site_file" >&5
2876 . "$ac_site_file"
2878 done
2880 if test -r "$cache_file"; then
2881 # Some versions of bash will fail to source /dev/null (special
2882 # files actually), so we avoid doing that.
2883 if test -f "$cache_file"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2885 $as_echo "$as_me: loading cache $cache_file" >&6;}
2886 case $cache_file in
2887 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2888 *) . "./$cache_file";;
2889 esac
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2893 $as_echo "$as_me: creating cache $cache_file" >&6;}
2894 >$cache_file
2897 # Check that the precious variables saved in the cache have kept the same
2898 # value.
2899 ac_cache_corrupted=false
2900 for ac_var in $ac_precious_vars; do
2901 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2902 eval ac_new_set=\$ac_env_${ac_var}_set
2903 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2904 eval ac_new_val=\$ac_env_${ac_var}_value
2905 case $ac_old_set,$ac_new_set in
2906 set,)
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2908 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2909 ac_cache_corrupted=: ;;
2910 ,set)
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2914 ,);;
2916 if test "x$ac_old_val" != "x$ac_new_val"; then
2917 # differences in whitespace do not lead to failure.
2918 ac_old_val_w=`echo x $ac_old_val`
2919 ac_new_val_w=`echo x $ac_new_val`
2920 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2922 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2923 ac_cache_corrupted=:
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2926 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2927 eval $ac_var=\$ac_old_val
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2930 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2932 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2933 fi;;
2934 esac
2935 # Pass precious variables to config.status.
2936 if test "$ac_new_set" = set; then
2937 case $ac_new_val in
2938 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2939 *) ac_arg=$ac_var=$ac_new_val ;;
2940 esac
2941 case " $ac_configure_args " in
2942 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2943 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2944 esac
2946 done
2947 if $ac_cache_corrupted; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2951 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2952 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2954 ## -------------------- ##
2955 ## Main body of script. ##
2956 ## -------------------- ##
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2972 gcc_version=`cat $srcdir/BASE-VER`
2974 # Determine the host, build, and target systems
2975 ac_aux_dir=
2976 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2977 for ac_t in install-sh install.sh shtool; do
2978 if test -f "$ac_dir/$ac_t"; then
2979 ac_aux_dir=$ac_dir
2980 ac_install_sh="$ac_aux_dir/$ac_t -c"
2981 break 2
2983 done
2984 done
2985 if test -z "$ac_aux_dir"; then
2986 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2989 # These three variables are undocumented and unsupported,
2990 # and are intended to be withdrawn in a future Autoconf release.
2991 # They can cause serious problems if a builder's source tree is in a directory
2992 # whose full name contains unusual characters.
2993 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2994 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2995 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2998 # Make sure we can run config.sub.
2999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3000 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3003 $as_echo_n "checking build system type... " >&6; }
3004 if test "${ac_cv_build+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 ac_build_alias=$build_alias
3008 test "x$ac_build_alias" = x &&
3009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3010 test "x$ac_build_alias" = x &&
3011 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3013 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3017 $as_echo "$ac_cv_build" >&6; }
3018 case $ac_cv_build in
3019 *-*-*) ;;
3020 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3021 esac
3022 build=$ac_cv_build
3023 ac_save_IFS=$IFS; IFS='-'
3024 set x $ac_cv_build
3025 shift
3026 build_cpu=$1
3027 build_vendor=$2
3028 shift; shift
3029 # Remember, the first character of IFS is used to create $*,
3030 # except with old shells:
3031 build_os=$*
3032 IFS=$ac_save_IFS
3033 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3037 $as_echo_n "checking host system type... " >&6; }
3038 if test "${ac_cv_host+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test "x$host_alias" = x; then
3042 ac_cv_host=$ac_cv_build
3043 else
3044 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3045 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3050 $as_echo "$ac_cv_host" >&6; }
3051 case $ac_cv_host in
3052 *-*-*) ;;
3053 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3054 esac
3055 host=$ac_cv_host
3056 ac_save_IFS=$IFS; IFS='-'
3057 set x $ac_cv_host
3058 shift
3059 host_cpu=$1
3060 host_vendor=$2
3061 shift; shift
3062 # Remember, the first character of IFS is used to create $*,
3063 # except with old shells:
3064 host_os=$*
3065 IFS=$ac_save_IFS
3066 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3070 $as_echo_n "checking target system type... " >&6; }
3071 if test "${ac_cv_target+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test "x$target_alias" = x; then
3075 ac_cv_target=$ac_cv_host
3076 else
3077 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3078 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3083 $as_echo "$ac_cv_target" >&6; }
3084 case $ac_cv_target in
3085 *-*-*) ;;
3086 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3087 esac
3088 target=$ac_cv_target
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_target
3091 shift
3092 target_cpu=$1
3093 target_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 target_os=$*
3098 IFS=$ac_save_IFS
3099 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3102 # The aliases save the names the user supplied, while $host etc.
3103 # will get canonicalized.
3104 test -n "$target_alias" &&
3105 test "$program_prefix$program_suffix$program_transform_name" = \
3106 NONENONEs,x,x, &&
3107 program_prefix=${target_alias}-
3109 # Determine the noncanonical target name, for directory use.
3110 case ${build_alias} in
3111 "") build_noncanonical=${build} ;;
3112 *) build_noncanonical=${build_alias} ;;
3113 esac
3115 case ${host_alias} in
3116 "") host_noncanonical=${build_noncanonical} ;;
3117 *) host_noncanonical=${host_alias} ;;
3118 esac
3120 case ${target_alias} in
3121 "") target_noncanonical=${host_noncanonical} ;;
3122 *) target_noncanonical=${target_alias} ;;
3123 esac
3128 # Determine the target- and build-specific subdirectories
3130 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3131 # have matching libraries, they should use host libraries: Makefile.tpl
3132 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3133 # However, they still use the build modules, because the corresponding
3134 # host modules (e.g. bison) are only built for the host when bootstrap
3135 # finishes. So:
3136 # - build_subdir is where we find build modules, and never changes.
3137 # - build_libsubdir is where we find build libraries, and can be overridden.
3139 # Prefix 'build-' so this never conflicts with target_subdir.
3140 build_subdir="build-${build_noncanonical}"
3142 # Check whether --with-build-libsubdir was given.
3143 if test "${with_build_libsubdir+set}" = set; then :
3144 withval=$with_build_libsubdir; build_libsubdir="$withval"
3145 else
3146 build_libsubdir="$build_subdir"
3149 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3150 if ( test $srcdir = . && test -d gcc ) \
3151 || test -d $srcdir/../host-${host_noncanonical}; then
3152 host_subdir="host-${host_noncanonical}"
3153 else
3154 host_subdir=.
3156 # No prefix.
3157 target_subdir=${target_noncanonical}
3160 # Set program_transform_name
3161 test "$program_prefix" != NONE &&
3162 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3166 # Double any \ or $.
3167 # By default was `s,x,x', remove it if useless.
3168 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3169 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3172 # Check for bogus environment variables.
3173 # Test if LIBRARY_PATH contains the notation for the current directory
3174 # since this would lead to problems installing/building glibc.
3175 # LIBRARY_PATH contains the current directory if one of the following
3176 # is true:
3177 # - one of the terminals (":" and ";") is the first or last sign
3178 # - two terminals occur directly after each other
3179 # - the path contains an element with a dot in it
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3181 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3182 case ${LIBRARY_PATH} in
3183 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3184 library_path_setting="contains current directory"
3187 library_path_setting="ok"
3189 esac
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3191 $as_echo "$library_path_setting" >&6; }
3192 if test "$library_path_setting" != "ok"; then
3193 as_fn_error "
3194 *** LIBRARY_PATH shouldn't contain the current directory when
3195 *** building gcc. Please change the environment variable
3196 *** and run configure again." "$LINENO" 5
3199 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3200 # since this would lead to problems installing/building glibc.
3201 # GCC_EXEC_PREFIX contains the current directory if one of the following
3202 # is true:
3203 # - one of the terminals (":" and ";") is the first or last sign
3204 # - two terminals occur directly after each other
3205 # - the path contains an element with a dot in it
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3207 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3208 case ${GCC_EXEC_PREFIX} in
3209 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3210 gcc_exec_prefix_setting="contains current directory"
3213 gcc_exec_prefix_setting="ok"
3215 esac
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3217 $as_echo "$gcc_exec_prefix_setting" >&6; }
3218 if test "$gcc_exec_prefix_setting" != "ok"; then
3219 as_fn_error "
3220 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3221 *** building gcc. Please change the environment variable
3222 *** and run configure again." "$LINENO" 5
3225 # -----------
3226 # Directories
3227 # -----------
3229 # Specify the local prefix
3230 local_prefix=
3232 # Check whether --with-local-prefix was given.
3233 if test "${with_local_prefix+set}" = set; then :
3234 withval=$with_local_prefix; case "${withval}" in
3235 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3236 no) ;;
3237 *) local_prefix=$with_local_prefix ;;
3238 esac
3242 # Default local prefix if it is empty
3243 if test x$local_prefix = x; then
3244 local_prefix=/usr/local
3247 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3248 # passed in by the toplevel make and thus we'd get different behavior
3249 # depending on where we built the sources.
3250 gcc_gxx_include_dir=
3251 # Specify the g++ header file directory
3253 # Check whether --with-gxx-include-dir was given.
3254 if test "${with_gxx_include_dir+set}" = set; then :
3255 withval=$with_gxx_include_dir; case "${withval}" in
3256 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3257 no) ;;
3258 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3259 esac
3263 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3264 if test x${gcc_gxx_include_dir} = x; then
3265 if test x${enable_version_specific_runtime_libs} = xyes; then
3266 gcc_gxx_include_dir='${libsubdir}/include/c++'
3267 else
3268 libstdcxx_incdir='include/c++/$(version)'
3269 if test x$host != x$target; then
3270 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3272 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3277 # Check whether --with-cpp_install_dir was given.
3278 if test "${with_cpp_install_dir+set}" = set; then :
3279 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3280 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3281 elif test x$withval != xno; then
3282 cpp_install_dir=$withval
3287 # We would like to our source tree to be readonly. However when releases or
3288 # pre-releases are generated, the flex/bison generated files as well as the
3289 # various formats of manuals need to be included along with the rest of the
3290 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3291 # just that.
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3294 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3295 # Check whether --enable-generated-files-in-srcdir was given.
3296 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3297 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3298 else
3299 generated_files_in_srcdir=no
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3304 $as_echo "$generated_files_in_srcdir" >&6; }
3306 if test "$generated_files_in_srcdir" = "yes"; then
3307 GENINSRC=''
3308 else
3309 GENINSRC='#'
3313 # -------------------
3314 # Find default linker
3315 # -------------------
3317 # With GNU ld
3319 # Check whether --with-gnu-ld was given.
3320 if test "${with_gnu_ld+set}" = set; then :
3321 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3322 else
3323 gnu_ld_flag=no
3327 # With pre-defined ld
3329 # Check whether --with-ld was given.
3330 if test "${with_ld+set}" = set; then :
3331 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3334 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3335 if test ! -x "$DEFAULT_LINKER"; then
3336 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3337 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3338 gnu_ld_flag=yes
3341 cat >>confdefs.h <<_ACEOF
3342 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3343 _ACEOF
3347 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3349 cat >>confdefs.h <<_ACEOF
3350 #define HAVE_GNU_LD $gnu_ld
3351 _ACEOF
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3355 $as_echo_n "checking whether a default linker was specified... " >&6; }
3356 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3357 if test x"$gnu_ld_flag" = x"no"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3359 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3362 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3364 else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3369 # With demangler in GNU ld
3371 # Check whether --with-demangler-in-ld was given.
3372 if test "${with_demangler_in_ld+set}" = set; then :
3373 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3374 else
3375 demangler_in_ld=no
3379 # ----------------------
3380 # Find default assembler
3381 # ----------------------
3383 # With GNU as
3385 # Check whether --with-gnu-as was given.
3386 if test "${with_gnu_as+set}" = set; then :
3387 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3388 else
3389 gas_flag=no
3394 # Check whether --with-as was given.
3395 if test "${with_as+set}" = set; then :
3396 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3399 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3400 if test ! -x "$DEFAULT_ASSEMBLER"; then
3401 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3402 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3403 gas_flag=yes
3406 cat >>confdefs.h <<_ACEOF
3407 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3408 _ACEOF
3412 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3414 cat >>confdefs.h <<_ACEOF
3415 #define HAVE_GNU_AS $gnu_as
3416 _ACEOF
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3420 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3421 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3422 if test x"$gas_flag" = x"no"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3424 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3427 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3434 # ---------------
3435 # Find C compiler
3436 # ---------------
3438 # If a non-executable a.out is present (e.g. created by GNU as above even if
3439 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3440 # file, even when creating an executable, so an execution test fails.
3441 # Remove possible default executable files to avoid this.
3443 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3444 # Autoconf includes it.
3445 rm -f a.out a.exe b.out
3447 # Find the native compiler
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 if test -n "$ac_tool_prefix"; then
3454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3455 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_CC+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -n "$CC"; then
3462 ac_cv_prog_CC="$CC" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3475 done
3476 done
3477 IFS=$as_save_IFS
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3492 if test -z "$ac_cv_prog_CC"; then
3493 ac_ct_CC=$CC
3494 # Extract the first word of "gcc", so it can be a program name with args.
3495 set dummy gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test -n "$ac_ct_CC"; then
3502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_ac_ct_CC="gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3515 done
3516 done
3517 IFS=$as_save_IFS
3521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3530 if test "x$ac_ct_CC" = x; then
3531 CC=""
3532 else
3533 case $cross_compiling:$ac_tool_warned in
3534 yes:)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned=yes ;;
3538 esac
3539 CC=$ac_ct_CC
3541 else
3542 CC="$ac_cv_prog_CC"
3545 if test -z "$CC"; then
3546 if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3548 set dummy ${ac_tool_prefix}cc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_CC+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_CC="${ac_tool_prefix}cc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3568 done
3569 done
3570 IFS=$as_save_IFS
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3586 if test -z "$CC"; then
3587 # Extract the first word of "cc", so it can be a program name with args.
3588 set dummy cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 ac_prog_rejected=no
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3606 ac_prog_rejected=yes
3607 continue
3609 ac_cv_prog_CC="cc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3613 done
3614 done
3615 IFS=$as_save_IFS
3617 if test $ac_prog_rejected = yes; then
3618 # We found a bogon in the path, so make sure we never use it.
3619 set dummy $ac_cv_prog_CC
3620 shift
3621 if test $# != 0; then
3622 # We chose a different compiler from the bogus one.
3623 # However, it has the same basename, so the bogon will be chosen
3624 # first if we set CC to just the basename; use the full file name.
3625 shift
3626 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 for ac_prog in cl.exe
3646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if test "${ac_cv_prog_CC+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3667 done
3668 done
3669 IFS=$as_save_IFS
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3677 else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3683 test -n "$CC" && break
3684 done
3686 if test -z "$CC"; then
3687 ac_ct_CC=$CC
3688 for ac_prog in cl.exe
3690 # Extract the first word of "$ac_prog", so it can be a program name with args.
3691 set dummy $ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$ac_ct_CC"; then
3698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_ac_ct_CC="$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3720 $as_echo "$ac_ct_CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$ac_ct_CC" && break
3728 done
3730 if test "x$ac_ct_CC" = x; then
3731 CC=""
3732 else
3733 case $cross_compiling:$ac_tool_warned in
3734 yes:)
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned=yes ;;
3738 esac
3739 CC=$ac_ct_CC
3746 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error "no acceptable C compiler found in \$PATH
3749 See \`config.log' for more details." "$LINENO" 5; }
3751 # Provide some information about the compiler.
3752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3753 set X $ac_compile
3754 ac_compiler=$2
3755 for ac_option in --version -v -V -qversion; do
3756 { { ac_try="$ac_compiler $ac_option >&5"
3757 case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3764 ac_status=$?
3765 if test -s conftest.err; then
3766 sed '10a\
3767 ... rest of stderr output deleted ...
3768 10q' conftest.err >conftest.er1
3769 cat conftest.er1 >&5
3770 rm -f conftest.er1 conftest.err
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }
3774 done
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3780 main ()
3784 return 0;
3786 _ACEOF
3787 ac_clean_files_save=$ac_clean_files
3788 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3789 # Try to create an executable without -o first, disregard a.out.
3790 # It will help us diagnose broken compilers, and finding out an intuition
3791 # of exeext.
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3793 $as_echo_n "checking for C compiler default output file name... " >&6; }
3794 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3796 # The possible output files:
3797 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3799 ac_rmfiles=
3800 for ac_file in $ac_files
3802 case $ac_file in
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3805 esac
3806 done
3807 rm -f $ac_rmfiles
3809 if { { ac_try="$ac_link_default"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_link_default") 2>&5
3817 ac_status=$?
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3823 # so that the user can short-circuit this test for compilers unknown to
3824 # Autoconf.
3825 for ac_file in $ac_files ''
3827 test -f "$ac_file" || continue
3828 case $ac_file in
3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3831 [ab].out )
3832 # We found the default executable, but exeext='' is most
3833 # certainly right.
3834 break;;
3835 *.* )
3836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3837 then :; else
3838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3840 # We set ac_cv_exeext here because the later test for it is not
3841 # safe: cross compilers may not add the suffix if given an `-o'
3842 # argument, so we may need to know it at that point already.
3843 # Even if this section looks crufty: it has the advantage of
3844 # actually working.
3845 break;;
3847 break;;
3848 esac
3849 done
3850 test "$ac_cv_exeext" = no && ac_cv_exeext=
3852 else
3853 ac_file=''
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3856 $as_echo "$ac_file" >&6; }
3857 if test -z "$ac_file"; then :
3858 $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 { as_fn_set_status 77
3864 as_fn_error "C compiler cannot create executables
3865 See \`config.log' for more details." "$LINENO" 5; }; }
3867 ac_exeext=$ac_cv_exeext
3869 # Check that the compiler produces executables we can run. If not, either
3870 # the compiler is broken, or we cross compile.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3872 $as_echo_n "checking whether the C compiler works... " >&6; }
3873 # If not cross compiling, check that we can run a simple program.
3874 if test "$cross_compiling" != yes; then
3875 if { ac_try='./$ac_file'
3876 { { case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882 (eval "$ac_try") 2>&5
3883 ac_status=$?
3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; }; }; then
3886 cross_compiling=no
3887 else
3888 if test "$cross_compiling" = maybe; then
3889 cross_compiling=yes
3890 else
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error "cannot run C compiled programs.
3894 If you meant to cross compile, use \`--host'.
3895 See \`config.log' for more details." "$LINENO" 5; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900 $as_echo "yes" >&6; }
3902 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3903 ac_clean_files=$ac_clean_files_save
3904 # Check that the compiler produces executables we can run. If not, either
3905 # the compiler is broken, or we cross compile.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3907 $as_echo_n "checking whether we are cross compiling... " >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3909 $as_echo "$cross_compiling" >&6; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 $as_echo_n "checking for suffix of executables... " >&6; }
3913 if { { ac_try="$ac_link"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_link") 2>&5
3921 ac_status=$?
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; then :
3924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe'), while it won't with
3927 # `rm'.
3928 for ac_file in conftest.exe conftest conftest.*; do
3929 test -f "$ac_file" || continue
3930 case $ac_file in
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933 break;;
3934 * ) break;;
3935 esac
3936 done
3937 else
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details." "$LINENO" 5; }
3943 rm -f conftest$ac_cv_exeext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 $as_echo "$ac_cv_exeext" >&6; }
3947 rm -f conftest.$ac_ext
3948 EXEEXT=$ac_cv_exeext
3949 ac_exeext=$EXEEXT
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3951 $as_echo_n "checking for suffix of object files... " >&6; }
3952 if test "${ac_cv_objext+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3959 main ()
3963 return 0;
3965 _ACEOF
3966 rm -f conftest.o conftest.obj
3967 if { { ac_try="$ac_compile"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_compile") 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 for ac_file in conftest.o conftest.obj conftest.*; do
3979 test -f "$ac_file" || continue;
3980 case $ac_file in
3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3983 break;;
3984 esac
3985 done
3986 else
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error "cannot compute suffix of object files: cannot compile
3993 See \`config.log' for more details." "$LINENO" 5; }
3995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3998 $as_echo "$ac_cv_objext" >&6; }
3999 OBJEXT=$ac_cv_objext
4000 ac_objext=$OBJEXT
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4010 main ()
4012 #ifndef __GNUC__
4013 choke me
4014 #endif
4017 return 0;
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_compiler_gnu=yes
4022 else
4023 ac_compiler_gnu=no
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4030 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4031 if test $ac_compiler_gnu = yes; then
4032 GCC=yes
4033 else
4034 GCC=
4036 ac_test_CFLAGS=${CFLAGS+set}
4037 ac_save_CFLAGS=$CFLAGS
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4039 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4040 if test "${ac_cv_prog_cc_g+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 ac_save_c_werror_flag=$ac_c_werror_flag
4044 ac_c_werror_flag=yes
4045 ac_cv_prog_cc_g=no
4046 CFLAGS="-g"
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4051 main ()
4055 return 0;
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_prog_cc_g=yes
4060 else
4061 CFLAGS=""
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4066 main ()
4070 return 0;
4072 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"; then :
4075 else
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4077 CFLAGS="-g"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4082 main ()
4086 return 0;
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090 ac_cv_prog_cc_g=yes
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_c_werror_flag=$ac_save_c_werror_flag
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4100 $as_echo "$ac_cv_prog_cc_g" >&6; }
4101 if test "$ac_test_CFLAGS" = set; then
4102 CFLAGS=$ac_save_CFLAGS
4103 elif test $ac_cv_prog_cc_g = yes; then
4104 if test "$GCC" = yes; then
4105 CFLAGS="-g -O2"
4106 else
4107 CFLAGS="-g"
4109 else
4110 if test "$GCC" = yes; then
4111 CFLAGS="-O2"
4112 else
4113 CFLAGS=
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4117 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4118 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 ac_cv_prog_cc_c89=no
4122 ac_save_CC=$CC
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #include <stdarg.h>
4126 #include <stdio.h>
4127 #include <sys/types.h>
4128 #include <sys/stat.h>
4129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4130 struct buf { int x; };
4131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4132 static char *e (p, i)
4133 char **p;
4134 int i;
4136 return p[i];
4138 static char *f (char * (*g) (char **, int), char **p, ...)
4140 char *s;
4141 va_list v;
4142 va_start (v,p);
4143 s = g (p, va_arg (v,int));
4144 va_end (v);
4145 return s;
4148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4149 function prototypes and stuff, but not '\xHH' hex character constants.
4150 These don't provoke an error unfortunately, instead are silently treated
4151 as 'x'. The following induces an error, until -std is added to get
4152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4153 array size at least. It's necessary to write '\x00'==0 to get something
4154 that's true only with -std. */
4155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4158 inside strings and character constants. */
4159 #define FOO(x) 'x'
4160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4162 int test (int i, double x);
4163 struct s1 {int (*f) (int a);};
4164 struct s2 {int (*f) (double a);};
4165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4166 int argc;
4167 char **argv;
4169 main ()
4171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4173 return 0;
4175 _ACEOF
4176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4179 CC="$ac_save_CC $ac_arg"
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_prog_cc_c89=$ac_arg
4183 rm -f core conftest.err conftest.$ac_objext
4184 test "x$ac_cv_prog_cc_c89" != "xno" && break
4185 done
4186 rm -f conftest.$ac_ext
4187 CC=$ac_save_CC
4190 # AC_CACHE_VAL
4191 case "x$ac_cv_prog_cc_c89" in
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194 $as_echo "none needed" >&6; } ;;
4195 xno)
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197 $as_echo "unsupported" >&6; } ;;
4199 CC="$CC $ac_cv_prog_cc_c89"
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4202 esac
4203 if test "x$ac_cv_prog_cc_c89" != xno; then :
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213 if test "x$CC" != xcc; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4215 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4216 else
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4218 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4220 set dummy $CC; ac_cc=`$as_echo "$2" |
4221 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4222 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4229 main ()
4233 return 0;
4235 _ACEOF
4236 # Make sure it works both with $CC and with simple cc.
4237 # We do the test twice because some compilers refuse to overwrite an
4238 # existing .o file with -o, though they will create one.
4239 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4240 rm -f conftest2.*
4241 if { { case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_try") 2>&5
4248 ac_status=$?
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; } &&
4251 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; };
4261 then
4262 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4263 if test "x$CC" != xcc; then
4264 # Test first that cc exists at all.
4265 if { ac_try='cc -c conftest.$ac_ext >&5'
4266 { { case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275 test $ac_status = 0; }; }; then
4276 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4277 rm -f conftest2.*
4278 if { { case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; } &&
4288 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
4295 ac_status=$?
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; };
4298 then
4299 # cc works too.
4301 else
4302 # cc exists but doesn't like -o.
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4307 else
4308 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4310 rm -f core conftest*
4313 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4315 $as_echo "yes" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4320 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4324 # expand $ac_aux_dir to an absolute path
4325 am_aux_dir=`cd $ac_aux_dir && pwd`
4327 # FIXME: we rely on the cache variable name because
4328 # there is no other way.
4329 set dummy $CC
4330 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4331 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4332 if test "$am_t" != yes; then
4333 # Losing compiler, so override with the script.
4334 # FIXME: It is wrong to rewrite CC.
4335 # But if we don't then we get into trouble of one sort or another.
4336 # A longer-term fix would be to have automake use am__CC in this case,
4337 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4338 CC="$am_aux_dir/compile $CC"
4342 ac_ext=cpp
4343 ac_cpp='$CXXCPP $CPPFLAGS'
4344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4347 if test -z "$CXX"; then
4348 if test -n "$CCC"; then
4349 CXX=$CCC
4350 else
4351 if test -n "$ac_tool_prefix"; then
4352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if test "${ac_cv_prog_CXX+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -n "$CXX"; then
4362 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4377 IFS=$as_save_IFS
4381 CXX=$ac_cv_prog_CXX
4382 if test -n "$CXX"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4384 $as_echo "$CXX" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4391 test -n "$CXX" && break
4392 done
4394 if test -z "$CXX"; then
4395 ac_ct_CXX=$CXX
4396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4398 # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$ac_ct_CXX"; then
4406 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_ac_ct_CXX="$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4421 IFS=$as_save_IFS
4425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4426 if test -n "$ac_ct_CXX"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4428 $as_echo "$ac_ct_CXX" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$ac_ct_CXX" && break
4436 done
4438 if test "x$ac_ct_CXX" = x; then
4439 CXX="g++"
4440 else
4441 case $cross_compiling:$ac_tool_warned in
4442 yes:)
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4446 esac
4447 CXX=$ac_ct_CXX
4453 # Provide some information about the compiler.
4454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4455 set X $ac_compile
4456 ac_compiler=$2
4457 for ac_option in --version -v -V -qversion; do
4458 { { ac_try="$ac_compiler $ac_option >&5"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4466 ac_status=$?
4467 if test -s conftest.err; then
4468 sed '10a\
4469 ... rest of stderr output deleted ...
4470 10q' conftest.err >conftest.er1
4471 cat conftest.er1 >&5
4472 rm -f conftest.er1 conftest.err
4474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475 test $ac_status = 0; }
4476 done
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4479 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4480 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4487 main ()
4489 #ifndef __GNUC__
4490 choke me
4491 #endif
4494 return 0;
4496 _ACEOF
4497 if ac_fn_cxx_try_compile "$LINENO"; then :
4498 ac_compiler_gnu=yes
4499 else
4500 ac_compiler_gnu=no
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4507 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4508 if test $ac_compiler_gnu = yes; then
4509 GXX=yes
4510 else
4511 GXX=
4513 ac_test_CXXFLAGS=${CXXFLAGS+set}
4514 ac_save_CXXFLAGS=$CXXFLAGS
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4516 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4517 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4521 ac_cxx_werror_flag=yes
4522 ac_cv_prog_cxx_g=no
4523 CXXFLAGS="-g"
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4528 main ()
4532 return 0;
4534 _ACEOF
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4536 ac_cv_prog_cxx_g=yes
4537 else
4538 CXXFLAGS=""
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4543 main ()
4547 return 0;
4549 _ACEOF
4550 if ac_fn_cxx_try_compile "$LINENO"; then :
4552 else
4553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4554 CXXFLAGS="-g"
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4559 main ()
4563 return 0;
4565 _ACEOF
4566 if ac_fn_cxx_try_compile "$LINENO"; then :
4567 ac_cv_prog_cxx_g=yes
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4577 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4578 if test "$ac_test_CXXFLAGS" = set; then
4579 CXXFLAGS=$ac_save_CXXFLAGS
4580 elif test $ac_cv_prog_cxx_g = yes; then
4581 if test "$GXX" = yes; then
4582 CXXFLAGS="-g -O2"
4583 else
4584 CXXFLAGS="-g"
4586 else
4587 if test "$GXX" = yes; then
4588 CXXFLAGS="-O2"
4589 else
4590 CXXFLAGS=
4593 ac_ext=c
4594 ac_cpp='$CPP $CPPFLAGS'
4595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$GNATBIND"; then
4611 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4624 done
4625 done
4626 IFS=$as_save_IFS
4630 GNATBIND=$ac_cv_prog_GNATBIND
4631 if test -n "$GNATBIND"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4633 $as_echo "$GNATBIND" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4641 if test -z "$ac_cv_prog_GNATBIND"; then
4642 ac_ct_GNATBIND=$GNATBIND
4643 # Extract the first word of "gnatbind", so it can be a program name with args.
4644 set dummy gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$ac_ct_GNATBIND"; then
4651 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4670 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4671 if test -n "$ac_ct_GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4673 $as_echo "$ac_ct_GNATBIND" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4679 if test "x$ac_ct_GNATBIND" = x; then
4680 GNATBIND="no"
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688 GNATBIND=$ac_ct_GNATBIND
4690 else
4691 GNATBIND="$ac_cv_prog_GNATBIND"
4694 if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$GNATMAKE"; then
4703 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4722 GNATMAKE=$ac_cv_prog_GNATMAKE
4723 if test -n "$GNATMAKE"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4725 $as_echo "$GNATMAKE" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4733 if test -z "$ac_cv_prog_GNATMAKE"; then
4734 ac_ct_GNATMAKE=$GNATMAKE
4735 # Extract the first word of "gnatmake", so it can be a program name with args.
4736 set dummy gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$ac_ct_GNATMAKE"; then
4743 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4762 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4763 if test -n "$ac_ct_GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4765 $as_echo "$ac_ct_GNATMAKE" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4771 if test "x$ac_ct_GNATMAKE" = x; then
4772 GNATMAKE="no"
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775 yes:)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4779 esac
4780 GNATMAKE=$ac_ct_GNATMAKE
4782 else
4783 GNATMAKE="$ac_cv_prog_GNATMAKE"
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4787 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4788 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 cat >conftest.adb <<EOF
4792 procedure conftest is begin null; end conftest;
4794 acx_cv_cc_gcc_supports_ada=no
4795 # There is a bug in old released versions of GCC which causes the
4796 # driver to exit successfully when the appropriate language module
4797 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4798 # Therefore we must check for the error message as well as an
4799 # unsuccessful exit.
4800 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4801 # given a .adb file, but produce no object file. So we must check
4802 # if an object file was really produced to guard against this.
4803 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4804 if test x"$errors" = x && test -f conftest.$ac_objext; then
4805 acx_cv_cc_gcc_supports_ada=yes
4807 rm -f conftest.*
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4810 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4812 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4813 have_gnat=yes
4814 else
4815 have_gnat=no
4819 # autoconf is lame and doesn't give us any substitution variable for this.
4820 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4821 NO_MINUS_C_MINUS_O=yes
4822 else
4823 OUTPUT_OPTION='-o $@'
4828 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4829 # optimizations to be activated explicitly by the toplevel.
4830 case "$CC" in
4831 */prev-gcc/xgcc*) ;;
4832 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4833 esac
4836 # -------------------------
4837 # Check C compiler features
4838 # -------------------------
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4848 # On Suns, sometimes $CPP names a directory.
4849 if test -n "$CPP" && test -d "$CPP"; then
4850 CPP=
4852 if test -z "$CPP"; then
4853 if test "${ac_cv_prog_CPP+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 # Double quotes because CPP needs to be expanded
4857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4859 ac_preproc_ok=false
4860 for ac_c_preproc_warn_flag in '' yes
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 #ifdef __STDC__
4871 # include <limits.h>
4872 #else
4873 # include <assert.h>
4874 #endif
4875 Syntax error
4876 _ACEOF
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4879 else
4880 # Broken: fails on valid input.
4881 continue
4883 rm -f conftest.err conftest.$ac_ext
4885 # OK, works on sane cases. Now check whether nonexistent headers
4886 # can be detected and how.
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #include <ac_nonexistent.h>
4890 _ACEOF
4891 if ac_fn_c_try_cpp "$LINENO"; then :
4892 # Broken: success on invalid input.
4893 continue
4894 else
4895 # Passes both tests.
4896 ac_preproc_ok=:
4897 break
4899 rm -f conftest.err conftest.$ac_ext
4901 done
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then :
4905 break
4908 done
4909 ac_cv_prog_CPP=$CPP
4912 CPP=$ac_cv_prog_CPP
4913 else
4914 ac_cv_prog_CPP=$CPP
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4917 $as_echo "$CPP" >&6; }
4918 ac_preproc_ok=false
4919 for ac_c_preproc_warn_flag in '' yes
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934 Syntax error
4935 _ACEOF
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4938 else
4939 # Broken: fails on valid input.
4940 continue
4942 rm -f conftest.err conftest.$ac_ext
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <ac_nonexistent.h>
4949 _ACEOF
4950 if ac_fn_c_try_cpp "$LINENO"; then :
4951 # Broken: success on invalid input.
4952 continue
4953 else
4954 # Passes both tests.
4955 ac_preproc_ok=:
4956 break
4958 rm -f conftest.err conftest.$ac_ext
4960 done
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.err conftest.$ac_ext
4963 if $ac_preproc_ok; then :
4965 else
4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4969 See \`config.log' for more details." "$LINENO" 5; }
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4980 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4981 if test "${ac_cv_path_GREP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if test -z "$GREP"; then
4985 ac_path_GREP_found=false
4986 # Loop through the user's path and test for each of PROGNAME-LIST
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_prog in grep ggrep; do
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4995 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4996 # Check for GNU ac_path_GREP and select it if it is found.
4997 # Check for GNU $ac_path_GREP
4998 case `"$ac_path_GREP" --version 2>&1` in
4999 *GNU*)
5000 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5002 ac_count=0
5003 $as_echo_n 0123456789 >"conftest.in"
5004 while :
5006 cat "conftest.in" "conftest.in" >"conftest.tmp"
5007 mv "conftest.tmp" "conftest.in"
5008 cp "conftest.in" "conftest.nl"
5009 $as_echo 'GREP' >> "conftest.nl"
5010 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5012 as_fn_arith $ac_count + 1 && ac_count=$as_val
5013 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5014 # Best one so far, save it but keep looking for a better one
5015 ac_cv_path_GREP="$ac_path_GREP"
5016 ac_path_GREP_max=$ac_count
5018 # 10*(2^10) chars as input seems more than enough
5019 test $ac_count -gt 10 && break
5020 done
5021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022 esac
5024 $ac_path_GREP_found && break 3
5025 done
5026 done
5027 done
5028 IFS=$as_save_IFS
5029 if test -z "$ac_cv_path_GREP"; then
5030 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5032 else
5033 ac_cv_path_GREP=$GREP
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5038 $as_echo "$ac_cv_path_GREP" >&6; }
5039 GREP="$ac_cv_path_GREP"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5043 $as_echo_n "checking for egrep... " >&6; }
5044 if test "${ac_cv_path_EGREP+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5048 then ac_cv_path_EGREP="$GREP -E"
5049 else
5050 if test -z "$EGREP"; then
5051 ac_path_EGREP_found=false
5052 # Loop through the user's path and test for each of PROGNAME-LIST
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_prog in egrep; do
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5062 # Check for GNU ac_path_EGREP and select it if it is found.
5063 # Check for GNU $ac_path_EGREP
5064 case `"$ac_path_EGREP" --version 2>&1` in
5065 *GNU*)
5066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5068 ac_count=0
5069 $as_echo_n 0123456789 >"conftest.in"
5070 while :
5072 cat "conftest.in" "conftest.in" >"conftest.tmp"
5073 mv "conftest.tmp" "conftest.in"
5074 cp "conftest.in" "conftest.nl"
5075 $as_echo 'EGREP' >> "conftest.nl"
5076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5078 as_fn_arith $ac_count + 1 && ac_count=$as_val
5079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5080 # Best one so far, save it but keep looking for a better one
5081 ac_cv_path_EGREP="$ac_path_EGREP"
5082 ac_path_EGREP_max=$ac_count
5084 # 10*(2^10) chars as input seems more than enough
5085 test $ac_count -gt 10 && break
5086 done
5087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5088 esac
5090 $ac_path_EGREP_found && break 3
5091 done
5092 done
5093 done
5094 IFS=$as_save_IFS
5095 if test -z "$ac_cv_path_EGREP"; then
5096 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5098 else
5099 ac_cv_path_EGREP=$EGREP
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5105 $as_echo "$ac_cv_path_EGREP" >&6; }
5106 EGREP="$ac_cv_path_EGREP"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5110 $as_echo_n "checking for ANSI C header files... " >&6; }
5111 if test "${ac_cv_header_stdc+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 #include <stdlib.h>
5117 #include <stdarg.h>
5118 #include <string.h>
5119 #include <float.h>
5122 main ()
5126 return 0;
5128 _ACEOF
5129 if ac_fn_c_try_compile "$LINENO"; then :
5130 ac_cv_header_stdc=yes
5131 else
5132 ac_cv_header_stdc=no
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 if test $ac_cv_header_stdc = yes; then
5137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <string.h>
5142 _ACEOF
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "memchr" >/dev/null 2>&1; then :
5146 else
5147 ac_cv_header_stdc=no
5149 rm -f conftest*
5153 if test $ac_cv_header_stdc = yes; then
5154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #include <stdlib.h>
5159 _ACEOF
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "free" >/dev/null 2>&1; then :
5163 else
5164 ac_cv_header_stdc=no
5166 rm -f conftest*
5170 if test $ac_cv_header_stdc = yes; then
5171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172 if test "$cross_compiling" = yes; then :
5174 else
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 #include <ctype.h>
5178 #include <stdlib.h>
5179 #if ((' ' & 0x0FF) == 0x020)
5180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5182 #else
5183 # define ISLOWER(c) \
5184 (('a' <= (c) && (c) <= 'i') \
5185 || ('j' <= (c) && (c) <= 'r') \
5186 || ('s' <= (c) && (c) <= 'z'))
5187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5188 #endif
5190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5192 main ()
5194 int i;
5195 for (i = 0; i < 256; i++)
5196 if (XOR (islower (i), ISLOWER (i))
5197 || toupper (i) != TOUPPER (i))
5198 return 2;
5199 return 0;
5201 _ACEOF
5202 if ac_fn_c_try_run "$LINENO"; then :
5204 else
5205 ac_cv_header_stdc=no
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5208 conftest.$ac_objext conftest.beam conftest.$ac_ext
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5214 $as_echo "$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5223 inttypes.h stdint.h unistd.h
5224 do :
5225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5228 eval as_val=\$$as_ac_Header
5229 if test "x$as_val" = x""yes; then :
5230 cat >>confdefs.h <<_ACEOF
5231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5232 _ACEOF
5236 done
5240 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5242 MINIX=yes
5243 else
5244 MINIX=
5248 if test "$MINIX" = yes; then
5250 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5253 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5256 $as_echo "#define _MINIX 1" >>confdefs.h
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5262 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5263 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5269 # define __EXTENSIONS__ 1
5270 $ac_includes_default
5272 main ()
5276 return 0;
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_safe_to_define___extensions__=yes
5281 else
5282 ac_cv_safe_to_define___extensions__=no
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5287 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5288 test $ac_cv_safe_to_define___extensions__ = yes &&
5289 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5291 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5293 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5295 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5297 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5300 ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5307 # On Suns, sometimes $CPP names a directory.
5308 if test -n "$CPP" && test -d "$CPP"; then
5309 CPP=
5311 if test -z "$CPP"; then
5312 if test "${ac_cv_prog_CPP+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 # Double quotes because CPP needs to be expanded
5316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5318 ac_preproc_ok=false
5319 for ac_c_preproc_warn_flag in '' yes
5321 # Use a header file that comes with gcc, so configuring glibc
5322 # with a fresh cross-compiler works.
5323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5324 # <limits.h> exists even on freestanding compilers.
5325 # On the NeXT, cc -E runs the code through the compiler's parser,
5326 # not just through cpp. "Syntax error" is here to catch this case.
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 #ifdef __STDC__
5330 # include <limits.h>
5331 #else
5332 # include <assert.h>
5333 #endif
5334 Syntax error
5335 _ACEOF
5336 if ac_fn_c_try_cpp "$LINENO"; then :
5338 else
5339 # Broken: fails on valid input.
5340 continue
5342 rm -f conftest.err conftest.$ac_ext
5344 # OK, works on sane cases. Now check whether nonexistent headers
5345 # can be detected and how.
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 #include <ac_nonexistent.h>
5349 _ACEOF
5350 if ac_fn_c_try_cpp "$LINENO"; then :
5351 # Broken: success on invalid input.
5352 continue
5353 else
5354 # Passes both tests.
5355 ac_preproc_ok=:
5356 break
5358 rm -f conftest.err conftest.$ac_ext
5360 done
5361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5362 rm -f conftest.err conftest.$ac_ext
5363 if $ac_preproc_ok; then :
5364 break
5367 done
5368 ac_cv_prog_CPP=$CPP
5371 CPP=$ac_cv_prog_CPP
5372 else
5373 ac_cv_prog_CPP=$CPP
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5376 $as_echo "$CPP" >&6; }
5377 ac_preproc_ok=false
5378 for ac_c_preproc_warn_flag in '' yes
5380 # Use a header file that comes with gcc, so configuring glibc
5381 # with a fresh cross-compiler works.
5382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383 # <limits.h> exists even on freestanding compilers.
5384 # On the NeXT, cc -E runs the code through the compiler's parser,
5385 # not just through cpp. "Syntax error" is here to catch this case.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #ifdef __STDC__
5389 # include <limits.h>
5390 #else
5391 # include <assert.h>
5392 #endif
5393 Syntax error
5394 _ACEOF
5395 if ac_fn_c_try_cpp "$LINENO"; then :
5397 else
5398 # Broken: fails on valid input.
5399 continue
5401 rm -f conftest.err conftest.$ac_ext
5403 # OK, works on sane cases. Now check whether nonexistent headers
5404 # can be detected and how.
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5408 _ACEOF
5409 if ac_fn_c_try_cpp "$LINENO"; then :
5410 # Broken: success on invalid input.
5411 continue
5412 else
5413 # Passes both tests.
5414 ac_preproc_ok=:
5415 break
5417 rm -f conftest.err conftest.$ac_ext
5419 done
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.$ac_ext
5422 if $ac_preproc_ok; then :
5424 else
5425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5428 See \`config.log' for more details." "$LINENO" 5; }
5431 ac_ext=c
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5438 $as_echo_n "checking for inline... " >&6; }
5439 if test "${ac_cv_c_inline+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 ac_cv_c_inline=no
5443 for ac_kw in inline __inline__ __inline; do
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #ifndef __cplusplus
5447 typedef int foo_t;
5448 static $ac_kw foo_t static_foo () {return 0; }
5449 $ac_kw foo_t foo () {return 0; }
5450 #endif
5452 _ACEOF
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454 ac_cv_c_inline=$ac_kw
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 test "$ac_cv_c_inline" != no && break
5458 done
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5462 $as_echo "$ac_cv_c_inline" >&6; }
5464 case $ac_cv_c_inline in
5465 inline | yes) ;;
5467 case $ac_cv_c_inline in
5468 no) ac_val=;;
5469 *) ac_val=$ac_cv_c_inline;;
5470 esac
5471 cat >>confdefs.h <<_ACEOF
5472 #ifndef __cplusplus
5473 #define inline $ac_val
5474 #endif
5475 _ACEOF
5477 esac
5480 # sizeof(char) is 1 by definition.
5481 # The cast to long int works around a bug in the HP C Compiler
5482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5484 # This bug is HP SR number 8606223364.
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5486 $as_echo_n "checking size of void *... " >&6; }
5487 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5492 else
5493 if test "$ac_cv_type_void_p" = yes; then
5494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5496 { as_fn_set_status 77
5497 as_fn_error "cannot compute sizeof (void *)
5498 See \`config.log' for more details." "$LINENO" 5; }; }
5499 else
5500 ac_cv_sizeof_void_p=0
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5506 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5510 cat >>confdefs.h <<_ACEOF
5511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5512 _ACEOF
5515 # The cast to long int works around a bug in the HP C Compiler
5516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5518 # This bug is HP SR number 8606223364.
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5520 $as_echo_n "checking size of short... " >&6; }
5521 if test "${ac_cv_sizeof_short+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5526 else
5527 if test "$ac_cv_type_short" = yes; then
5528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5530 { as_fn_set_status 77
5531 as_fn_error "cannot compute sizeof (short)
5532 See \`config.log' for more details." "$LINENO" 5; }; }
5533 else
5534 ac_cv_sizeof_short=0
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5540 $as_echo "$ac_cv_sizeof_short" >&6; }
5544 cat >>confdefs.h <<_ACEOF
5545 #define SIZEOF_SHORT $ac_cv_sizeof_short
5546 _ACEOF
5549 # The cast to long int works around a bug in the HP C Compiler
5550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5552 # This bug is HP SR number 8606223364.
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5554 $as_echo_n "checking size of int... " >&6; }
5555 if test "${ac_cv_sizeof_int+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5560 else
5561 if test "$ac_cv_type_int" = yes; then
5562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5564 { as_fn_set_status 77
5565 as_fn_error "cannot compute sizeof (int)
5566 See \`config.log' for more details." "$LINENO" 5; }; }
5567 else
5568 ac_cv_sizeof_int=0
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5574 $as_echo "$ac_cv_sizeof_int" >&6; }
5578 cat >>confdefs.h <<_ACEOF
5579 #define SIZEOF_INT $ac_cv_sizeof_int
5580 _ACEOF
5583 # The cast to long int works around a bug in the HP C Compiler
5584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5586 # This bug is HP SR number 8606223364.
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5588 $as_echo_n "checking size of long... " >&6; }
5589 if test "${ac_cv_sizeof_long+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5594 else
5595 if test "$ac_cv_type_long" = yes; then
5596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5598 { as_fn_set_status 77
5599 as_fn_error "cannot compute sizeof (long)
5600 See \`config.log' for more details." "$LINENO" 5; }; }
5601 else
5602 ac_cv_sizeof_long=0
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5608 $as_echo "$ac_cv_sizeof_long" >&6; }
5612 cat >>confdefs.h <<_ACEOF
5613 #define SIZEOF_LONG $ac_cv_sizeof_long
5614 _ACEOF
5617 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5618 if test "x$ac_cv_type_long_long" = x""yes; then :
5620 cat >>confdefs.h <<_ACEOF
5621 #define HAVE_LONG_LONG 1
5622 _ACEOF
5624 # The cast to long int works around a bug in the HP C Compiler
5625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5627 # This bug is HP SR number 8606223364.
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5629 $as_echo_n "checking size of long long... " >&6; }
5630 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5635 else
5636 if test "$ac_cv_type_long_long" = yes; then
5637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5639 { as_fn_set_status 77
5640 as_fn_error "cannot compute sizeof (long long)
5641 See \`config.log' for more details." "$LINENO" 5; }; }
5642 else
5643 ac_cv_sizeof_long_long=0
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5649 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5653 cat >>confdefs.h <<_ACEOF
5654 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5655 _ACEOF
5660 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5661 if test "x$ac_cv_type___int64" = x""yes; then :
5663 cat >>confdefs.h <<_ACEOF
5664 #define HAVE___INT64 1
5665 _ACEOF
5667 # The cast to long int works around a bug in the HP C Compiler
5668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5670 # This bug is HP SR number 8606223364.
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5672 $as_echo_n "checking size of __int64... " >&6; }
5673 if test "${ac_cv_sizeof___int64+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5678 else
5679 if test "$ac_cv_type___int64" = yes; then
5680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5682 { as_fn_set_status 77
5683 as_fn_error "cannot compute sizeof (__int64)
5684 See \`config.log' for more details." "$LINENO" 5; }; }
5685 else
5686 ac_cv_sizeof___int64=0
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5692 $as_echo "$ac_cv_sizeof___int64" >&6; }
5696 cat >>confdefs.h <<_ACEOF
5697 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5698 _ACEOF
5703 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5704 case $ac_cv_c_int8_t in #(
5705 no|yes) ;; #(
5708 cat >>confdefs.h <<_ACEOF
5709 #define int8_t $ac_cv_c_int8_t
5710 _ACEOF
5712 esac
5714 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5715 case $ac_cv_c_int16_t in #(
5716 no|yes) ;; #(
5719 cat >>confdefs.h <<_ACEOF
5720 #define int16_t $ac_cv_c_int16_t
5721 _ACEOF
5723 esac
5725 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5726 case $ac_cv_c_int32_t in #(
5727 no|yes) ;; #(
5730 cat >>confdefs.h <<_ACEOF
5731 #define int32_t $ac_cv_c_int32_t
5732 _ACEOF
5734 esac
5736 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5737 case $ac_cv_c_int64_t in #(
5738 no|yes) ;; #(
5741 cat >>confdefs.h <<_ACEOF
5742 #define int64_t $ac_cv_c_int64_t
5743 _ACEOF
5745 esac
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5749 $as_echo_n "checking for long long int... " >&6; }
5750 if test "${ac_cv_type_long_long_int+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5756 /* For now, do not test the preprocessor; as of 2007 there are too many
5757 implementations with broken preprocessors. Perhaps this can
5758 be revisited in 2012. In the meantime, code should not expect
5759 #if to work with literals wider than 32 bits. */
5760 /* Test literals. */
5761 long long int ll = 9223372036854775807ll;
5762 long long int nll = -9223372036854775807LL;
5763 unsigned long long int ull = 18446744073709551615ULL;
5764 /* Test constant expressions. */
5765 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5766 ? 1 : -1)];
5767 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5768 ? 1 : -1)];
5769 int i = 63;
5771 main ()
5773 /* Test availability of runtime routines for shift and division. */
5774 long long int llmax = 9223372036854775807ll;
5775 unsigned long long int ullmax = 18446744073709551615ull;
5776 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5777 | (llmax / ll) | (llmax % ll)
5778 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5779 | (ullmax / ull) | (ullmax % ull));
5781 return 0;
5784 _ACEOF
5785 if ac_fn_c_try_link "$LINENO"; then :
5786 if test "$cross_compiling" = yes; then :
5787 ac_cv_type_long_long_int=yes
5788 else
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <limits.h>
5792 #ifndef LLONG_MAX
5793 # define HALF \
5794 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5795 # define LLONG_MAX (HALF - 1 + HALF)
5796 #endif
5798 main ()
5800 long long int n = 1;
5801 int i;
5802 for (i = 0; ; i++)
5804 long long int m = n << i;
5805 if (m >> i != n)
5806 return 1;
5807 if (LLONG_MAX / 2 < m)
5808 break;
5810 return 0;
5812 return 0;
5814 _ACEOF
5815 if ac_fn_c_try_run "$LINENO"; then :
5816 ac_cv_type_long_long_int=yes
5817 else
5818 ac_cv_type_long_long_int=no
5820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5821 conftest.$ac_objext conftest.beam conftest.$ac_ext
5824 else
5825 ac_cv_type_long_long_int=no
5827 rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5831 $as_echo "$ac_cv_type_long_long_int" >&6; }
5832 if test $ac_cv_type_long_long_int = yes; then
5834 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5840 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5841 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5843 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5845 else
5846 test $ac_cv_type_long_long_int = yes \
5847 && ac_type='long long int' \
5848 || ac_type='long int'
5850 cat >>confdefs.h <<_ACEOF
5851 #define intmax_t $ac_type
5852 _ACEOF
5858 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5859 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5861 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5863 else
5864 for ac_type in 'int' 'long int' 'long long int'; do
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 $ac_includes_default
5869 main ()
5871 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5872 test_array [0] = 0
5875 return 0;
5877 _ACEOF
5878 if ac_fn_c_try_compile "$LINENO"; then :
5880 cat >>confdefs.h <<_ACEOF
5881 #define intptr_t $ac_type
5882 _ACEOF
5884 ac_type=
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 test -z "$ac_type" && break
5888 done
5892 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5893 case $ac_cv_c_uint8_t in #(
5894 no|yes) ;; #(
5897 $as_echo "#define _UINT8_T 1" >>confdefs.h
5900 cat >>confdefs.h <<_ACEOF
5901 #define uint8_t $ac_cv_c_uint8_t
5902 _ACEOF
5904 esac
5906 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5907 case $ac_cv_c_uint16_t in #(
5908 no|yes) ;; #(
5912 cat >>confdefs.h <<_ACEOF
5913 #define uint16_t $ac_cv_c_uint16_t
5914 _ACEOF
5916 esac
5918 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5919 case $ac_cv_c_uint32_t in #(
5920 no|yes) ;; #(
5923 $as_echo "#define _UINT32_T 1" >>confdefs.h
5926 cat >>confdefs.h <<_ACEOF
5927 #define uint32_t $ac_cv_c_uint32_t
5928 _ACEOF
5930 esac
5932 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5933 case $ac_cv_c_uint64_t in #(
5934 no|yes) ;; #(
5937 $as_echo "#define _UINT64_T 1" >>confdefs.h
5940 cat >>confdefs.h <<_ACEOF
5941 #define uint64_t $ac_cv_c_uint64_t
5942 _ACEOF
5944 esac
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5948 $as_echo_n "checking for unsigned long long int... " >&6; }
5949 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5955 /* For now, do not test the preprocessor; as of 2007 there are too many
5956 implementations with broken preprocessors. Perhaps this can
5957 be revisited in 2012. In the meantime, code should not expect
5958 #if to work with literals wider than 32 bits. */
5959 /* Test literals. */
5960 long long int ll = 9223372036854775807ll;
5961 long long int nll = -9223372036854775807LL;
5962 unsigned long long int ull = 18446744073709551615ULL;
5963 /* Test constant expressions. */
5964 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5965 ? 1 : -1)];
5966 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5967 ? 1 : -1)];
5968 int i = 63;
5970 main ()
5972 /* Test availability of runtime routines for shift and division. */
5973 long long int llmax = 9223372036854775807ll;
5974 unsigned long long int ullmax = 18446744073709551615ull;
5975 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5976 | (llmax / ll) | (llmax % ll)
5977 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5978 | (ullmax / ull) | (ullmax % ull));
5980 return 0;
5983 _ACEOF
5984 if ac_fn_c_try_link "$LINENO"; then :
5985 ac_cv_type_unsigned_long_long_int=yes
5986 else
5987 ac_cv_type_unsigned_long_long_int=no
5989 rm -f core conftest.err conftest.$ac_objext \
5990 conftest$ac_exeext conftest.$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5993 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5994 if test $ac_cv_type_unsigned_long_long_int = yes; then
5996 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6002 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6003 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6005 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6007 else
6008 test $ac_cv_type_unsigned_long_long_int = yes \
6009 && ac_type='unsigned long long int' \
6010 || ac_type='unsigned long int'
6012 cat >>confdefs.h <<_ACEOF
6013 #define uintmax_t $ac_type
6014 _ACEOF
6020 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6021 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6023 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6025 else
6026 for ac_type in 'unsigned int' 'unsigned long int' \
6027 'unsigned long long int'; do
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 $ac_includes_default
6032 main ()
6034 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6035 test_array [0] = 0
6038 return 0;
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"; then :
6043 cat >>confdefs.h <<_ACEOF
6044 #define uintptr_t $ac_type
6045 _ACEOF
6047 ac_type=
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 test -z "$ac_type" && break
6051 done
6068 # ---------------------
6069 # Warnings and checking
6070 # ---------------------
6072 # Check $CC warning features (if it's GCC).
6073 # We want to use -pedantic, but we don't want warnings about
6074 # * 'long long'
6075 # * variadic macros
6076 # * overlong strings
6077 # So, we only use -pedantic if we can disable those warnings.
6079 loose_warn=
6080 save_CFLAGS="$CFLAGS"
6081 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6082 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6085 $as_echo_n "checking whether $CC supports $option... " >&6; }
6086 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 CFLAGS="$option"
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6094 main ()
6098 return 0;
6100 _ACEOF
6101 if ac_fn_c_try_compile "$LINENO"; then :
6102 eval "$as_acx_Woption=yes"
6103 else
6104 eval "$as_acx_Woption=no"
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 eval ac_res=\$$as_acx_Woption
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6111 $as_echo "$ac_res" >&6; }
6112 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6113 loose_warn="$loose_warn${loose_warn:+ }$option"
6115 done
6116 CFLAGS="$save_CFLAGS"
6118 c_loose_warn=
6119 save_CFLAGS="$CFLAGS"
6120 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6121 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6124 $as_echo_n "checking whether $CC supports $option... " >&6; }
6125 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 CFLAGS="$option"
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6133 main ()
6137 return 0;
6139 _ACEOF
6140 if ac_fn_c_try_compile "$LINENO"; then :
6141 eval "$as_acx_Woption=yes"
6142 else
6143 eval "$as_acx_Woption=no"
6145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 eval ac_res=\$$as_acx_Woption
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6150 $as_echo "$ac_res" >&6; }
6151 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6152 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6154 done
6155 CFLAGS="$save_CFLAGS"
6157 strict_warn=
6158 save_CFLAGS="$CFLAGS"
6159 for option in -Wmissing-format-attribute; do
6160 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6163 $as_echo_n "checking whether $CC supports $option... " >&6; }
6164 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 CFLAGS="$option"
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6172 main ()
6176 return 0;
6178 _ACEOF
6179 if ac_fn_c_try_compile "$LINENO"; then :
6180 eval "$as_acx_Woption=yes"
6181 else
6182 eval "$as_acx_Woption=no"
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 eval ac_res=\$$as_acx_Woption
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6189 $as_echo "$ac_res" >&6; }
6190 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6191 strict_warn="$strict_warn${strict_warn:+ }$option"
6193 done
6194 CFLAGS="$save_CFLAGS"
6196 c_strict_warn=
6197 save_CFLAGS="$CFLAGS"
6198 for option in -Wold-style-definition -Wc++-compat; do
6199 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6202 $as_echo_n "checking whether $CC supports $option... " >&6; }
6203 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 CFLAGS="$option"
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6211 main ()
6215 return 0;
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219 eval "$as_acx_Woption=yes"
6220 else
6221 eval "$as_acx_Woption=no"
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 eval ac_res=\$$as_acx_Woption
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6228 $as_echo "$ac_res" >&6; }
6229 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6230 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6232 done
6233 CFLAGS="$save_CFLAGS"
6235 if test "$GCC" = yes; then :
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6237 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6238 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 save_CFLAGS="$CFLAGS"
6242 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6247 main ()
6251 return 0;
6253 _ACEOF
6254 if ac_fn_c_try_compile "$LINENO"; then :
6255 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6256 else
6257 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 CFLAGS="$save_CFLAGS"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6263 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6264 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6265 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6270 # Check whether --enable-werror-always was given.
6271 if test "${enable_werror_always+set}" = set; then :
6272 enableval=$enable_werror_always;
6273 else
6274 enable_werror_always=no
6277 if test $enable_werror_always = yes; then :
6278 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6283 # The above macros do nothing if the compiler is not GCC. However, the
6284 # Makefile has more goo to add other flags, so these variables are used
6285 # to enable warnings only for GCC.
6286 warn_cflags=
6287 warn_cxxflags=
6288 if test "x$GCC" = "xyes"; then
6289 warn_cflags='$(GCC_WARN_CFLAGS)'
6290 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6295 # Enable expensive internal checks
6296 is_release=
6297 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6298 is_release=yes
6301 # Check whether --enable-checking was given.
6302 if test "${enable_checking+set}" = set; then :
6303 enableval=$enable_checking; ac_checking_flags="${enableval}"
6304 else
6306 # Determine the default checks.
6307 if test x$is_release = x ; then
6308 ac_checking_flags=yes
6309 else
6310 ac_checking_flags=release
6314 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6315 for check in release $ac_checking_flags
6317 case $check in
6318 # these set all the flags to specific states
6319 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6320 ac_fold_checking= ; ac_gc_checking=1 ;
6321 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6322 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6323 ac_tree_checking=1 ; ac_valgrind_checking= ;
6324 ac_types_checking=1 ;;
6325 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6326 ac_fold_checking= ; ac_gc_checking= ;
6327 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6328 ac_rtlflag_checking= ; ac_runtime_checking= ;
6329 ac_tree_checking= ; ac_valgrind_checking= ;
6330 ac_types_checking= ;;
6331 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6332 ac_fold_checking=1 ; ac_gc_checking=1 ;
6333 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6334 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6335 ac_tree_checking=1 ; ac_valgrind_checking= ;
6336 ac_types_checking=1 ;;
6337 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6338 ac_fold_checking= ; ac_gc_checking= ;
6339 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6340 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6341 ac_tree_checking= ; ac_valgrind_checking= ;
6342 ac_types_checking= ;;
6343 # these enable particular checks
6344 assert) ac_assert_checking=1 ;;
6345 df) ac_df_checking=1 ;;
6346 fold) ac_fold_checking=1 ;;
6347 gc) ac_gc_checking=1 ;;
6348 gcac) ac_gc_always_collect=1 ;;
6349 gimple) ac_gimple_checking=1 ;;
6350 misc) ac_checking=1 ;;
6351 rtl) ac_rtl_checking=1 ;;
6352 rtlflag) ac_rtlflag_checking=1 ;;
6353 runtime) ac_runtime_checking=1 ;;
6354 tree) ac_tree_checking=1 ;;
6355 types) ac_types_checking=1 ;;
6356 valgrind) ac_valgrind_checking=1 ;;
6357 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6358 esac
6359 done
6360 IFS="$ac_save_IFS"
6362 nocommon_flag=""
6363 if test x$ac_checking != x ; then
6365 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6367 nocommon_flag=-fno-common
6370 if test x$ac_df_checking != x ; then
6372 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6375 if test x$ac_assert_checking != x ; then
6377 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6380 if test x$ac_gimple_checking != x ; then
6382 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6386 if test x$ac_runtime_checking != x ; then
6388 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6391 if test x$ac_tree_checking != x ; then
6393 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6395 TREEBROWSER=tree-browser.o
6397 if test x$ac_types_checking != x ; then
6399 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6403 if test x$ac_rtl_checking != x ; then
6405 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6408 if test x$ac_rtlflag_checking != x ; then
6410 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6413 if test x$ac_gc_checking != x ; then
6415 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6418 if test x$ac_gc_always_collect != x ; then
6420 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6423 if test x$ac_fold_checking != x ; then
6425 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6428 valgrind_path_defines=
6429 valgrind_command=
6431 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6432 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6433 have_valgrind_h=yes
6434 else
6435 have_valgrind_h=no
6440 if test x$ac_valgrind_checking != x ; then
6441 # It is certainly possible that there's valgrind but no valgrind.h.
6442 # GCC relies on making annotations so we must have both.
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6444 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 #include <valgrind/memcheck.h>
6448 #ifndef VALGRIND_DISCARD
6449 #error VALGRIND_DISCARD not defined
6450 #endif
6451 _ACEOF
6452 if ac_fn_c_try_cpp "$LINENO"; then :
6453 gcc_cv_header_valgrind_memcheck_h=yes
6454 else
6455 gcc_cv_header_valgrind_memcheck_h=no
6457 rm -f conftest.err conftest.$ac_ext
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6459 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6461 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <memcheck.h>
6465 #ifndef VALGRIND_DISCARD
6466 #error VALGRIND_DISCARD not defined
6467 #endif
6468 _ACEOF
6469 if ac_fn_c_try_cpp "$LINENO"; then :
6470 gcc_cv_header_memcheck_h=yes
6471 else
6472 gcc_cv_header_memcheck_h=no
6474 rm -f conftest.err conftest.$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6476 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6478 # Prepare PATH_SEPARATOR.
6479 # The user is always right.
6480 if test "${PATH_SEPARATOR+set}" != set; then
6481 echo "#! /bin/sh" >conf$$.sh
6482 echo "exit 0" >>conf$$.sh
6483 chmod +x conf$$.sh
6484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6485 PATH_SEPARATOR=';'
6486 else
6487 PATH_SEPARATOR=:
6489 rm -f conf$$.sh
6492 # Find out how to test for executable files. Don't use a zero-byte file,
6493 # as systems may use methods other than mode bits to determine executability.
6494 cat >conf$$.file <<_ASEOF
6495 #! /bin/sh
6496 exit 0
6497 _ASEOF
6498 chmod +x conf$$.file
6499 if test -x conf$$.file >/dev/null 2>&1; then
6500 ac_executable_p="test -x"
6501 else
6502 ac_executable_p="test -f"
6504 rm -f conf$$.file
6506 # Extract the first word of "valgrind", so it can be a program name with args.
6507 set dummy valgrind; ac_word=$2
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 case "$valgrind_path" in
6514 [\\/]* | ?:[\\/]*)
6515 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6518 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6519 for ac_dir in $PATH; do
6520 IFS="$ac_save_IFS"
6521 test -z "$ac_dir" && ac_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6524 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6525 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6526 break 2
6529 done
6530 done
6531 IFS="$ac_save_IFS"
6533 esac
6535 valgrind_path="$ac_cv_path_valgrind_path"
6536 if test -n "$valgrind_path"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6538 $as_echo "$valgrind_path" >&6; }
6539 else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6544 if test "x$valgrind_path" = "x" \
6545 || (test $have_valgrind_h = no \
6546 && test $gcc_cv_header_memcheck_h = no \
6547 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6548 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6550 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6551 valgrind_command="$valgrind_path -q"
6553 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6555 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6557 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6560 if test $gcc_cv_header_memcheck_h = yes; then
6562 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6569 # Enable code coverage collection
6570 # Check whether --enable-coverage was given.
6571 if test "${enable_coverage+set}" = set; then :
6572 enableval=$enable_coverage; case "${enableval}" in
6573 yes|noopt)
6574 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6576 opt)
6577 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6580 # a.k.a. --disable-coverage
6581 coverage_flags=""
6584 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6586 esac
6587 else
6588 coverage_flags=""
6593 # Check whether --enable-gather-detailed-mem-stats was given.
6594 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6595 enableval=$enable_gather_detailed_mem_stats;
6596 else
6597 enable_gather_detailed_mem_stats=no
6600 if test x$enable_gather_detailed_mem_stats = xyes ; then
6602 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6606 # -------------------------------
6607 # Miscenalleous configure options
6608 # -------------------------------
6610 # See if we are building gcc with C++.
6611 # Check whether --enable-build-with-cxx was given.
6612 if test "${enable_build_with_cxx+set}" = set; then :
6613 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6614 else
6615 ENABLE_BUILD_WITH_CXX=no
6620 # With stabs
6622 # Check whether --with-stabs was given.
6623 if test "${with_stabs+set}" = set; then :
6624 withval=$with_stabs; stabs="$with_stabs"
6625 else
6626 stabs=no
6630 # Determine whether or not multilibs are enabled.
6631 # Check whether --enable-multilib was given.
6632 if test "${enable_multilib+set}" = set; then :
6633 enableval=$enable_multilib;
6634 else
6635 enable_multilib=yes
6640 # Enable __cxa_atexit for C++.
6641 # Check whether --enable-__cxa_atexit was given.
6642 if test "${enable___cxa_atexit+set}" = set; then :
6643 enableval=$enable___cxa_atexit;
6647 # Enable C extension for decimal float if target supports it.
6648 # Check whether --enable-decimal-float was given.
6649 if test "${enable_decimal_float+set}" = set; then :
6650 enableval=$enable_decimal_float;
6651 case $enable_decimal_float in
6652 yes | no | bid | dpd) ;;
6653 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6654 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6655 esac
6657 else
6659 case $target in
6660 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6661 enable_decimal_float=yes
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6665 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6666 enable_decimal_float=no
6668 esac
6673 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6675 cat >>confdefs.h <<_ACEOF
6676 #define ENABLE_DECIMAL_FLOAT $dfp
6677 _ACEOF
6680 # x86's use BID format instead of DPD
6681 case x$enable_decimal_float in
6682 xyes)
6683 case $target in
6684 i?86*-*-linux* | x86_64*-*-linux*)
6685 enable_decimal_float=bid
6688 enable_decimal_float=dpd
6690 esac
6692 xno)
6693 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6694 # dependency on libdecnumber.
6695 enable_decimal_float=dpd
6697 esac
6700 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6702 cat >>confdefs.h <<_ACEOF
6703 #define ENABLE_DECIMAL_BID_FORMAT $bid
6704 _ACEOF
6707 # Enable C extension for fixed-point arithmetic.
6708 # Check whether --enable-fixed-point was given.
6709 if test "${enable_fixed_point+set}" = set; then :
6710 enableval=$enable_fixed_point;
6712 else
6714 case $target in
6715 mips*-*-*)
6716 case $host in
6717 mips*-sgi-irix*)
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6719 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6720 enable_fixed_point=no
6723 enable_fixed_point=yes
6725 esac
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6729 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6730 enable_fixed_point=no
6732 esac
6738 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6740 cat >>confdefs.h <<_ACEOF
6741 #define ENABLE_FIXED_POINT $fixedpoint
6742 _ACEOF
6745 # Enable threads
6746 # Pass with no value to take the default
6747 # Pass with a value to specify a thread package
6748 # Check whether --enable-threads was given.
6749 if test "${enable_threads+set}" = set; then :
6750 enableval=$enable_threads;
6751 else
6752 enable_threads=''
6756 # Check whether --enable-tls was given.
6757 if test "${enable_tls+set}" = set; then :
6758 enableval=$enable_tls;
6759 case $enable_tls in
6760 yes | no) ;;
6761 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6762 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6763 esac
6765 else
6766 enable_tls=''
6770 # Check whether --enable-objc-gc was given.
6771 if test "${enable_objc_gc+set}" = set; then :
6772 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6773 objc_boehm_gc=''
6774 else
6775 objc_boehm_gc=1
6777 else
6778 objc_boehm_gc=''
6783 # Check whether --with-dwarf2 was given.
6784 if test "${with_dwarf2+set}" = set; then :
6785 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6786 else
6787 dwarf2=no
6791 # Check whether --enable-shared was given.
6792 if test "${enable_shared+set}" = set; then :
6793 enableval=$enable_shared;
6794 case $enable_shared in
6795 yes | no) ;;
6797 enable_shared=no
6798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6799 for pkg in $enableval; do
6800 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6801 enable_shared=yes
6803 done
6804 IFS="$ac_save_ifs"
6806 esac
6808 else
6809 enable_shared=yes
6815 # Check whether --with-build-sysroot was given.
6816 if test "${with_build_sysroot+set}" = set; then :
6817 withval=$with_build_sysroot;
6822 # Check whether --with-sysroot was given.
6823 if test "${with_sysroot+set}" = set; then :
6824 withval=$with_sysroot;
6825 case ${with_sysroot} in
6826 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6827 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6828 esac
6830 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6831 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6833 if test "x$prefix" = xNONE; then
6834 test_prefix=/usr/local
6835 else
6836 test_prefix=$prefix
6838 if test "x$exec_prefix" = xNONE; then
6839 test_exec_prefix=$test_prefix
6840 else
6841 test_exec_prefix=$exec_prefix
6843 case ${TARGET_SYSTEM_ROOT} in
6844 "${test_prefix}"|"${test_prefix}/"*|\
6845 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6846 '${prefix}'|'${prefix}/'*|\
6847 '${exec_prefix}'|'${exec_prefix}/'*)
6848 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6849 TARGET_SYSTEM_ROOT_DEFINE="$t"
6851 esac
6853 else
6855 TARGET_SYSTEM_ROOT=
6856 TARGET_SYSTEM_ROOT_DEFINE=
6857 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6866 # Check whether --with-specs was given.
6867 if test "${with_specs+set}" = set; then :
6868 withval=$with_specs; CONFIGURE_SPECS=$withval
6869 else
6870 CONFIGURE_SPECS=
6876 # Build with intermodule optimisations
6877 # Check whether --enable-intermodule was given.
6878 if test "${enable_intermodule+set}" = set; then :
6879 enableval=$enable_intermodule; case ${enable_intermodule} in
6880 yes) onestep="-onestep";;
6881 *) onestep="";;
6882 esac
6883 else
6884 onestep=""
6891 # Check whether --with-pkgversion was given.
6892 if test "${with_pkgversion+set}" = set; then :
6893 withval=$with_pkgversion; case "$withval" in
6894 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6895 no) PKGVERSION= ;;
6896 *) PKGVERSION="($withval) " ;;
6897 esac
6898 else
6899 PKGVERSION="(GCC) "
6907 # Check whether --with-bugurl was given.
6908 if test "${with_bugurl+set}" = set; then :
6909 withval=$with_bugurl; case "$withval" in
6910 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6911 no) BUGURL=
6913 *) BUGURL="$withval"
6915 esac
6916 else
6917 BUGURL="http://gcc.gnu.org/bugs.html"
6921 case ${BUGURL} in
6923 REPORT_BUGS_TO=
6924 REPORT_BUGS_TEXI=
6927 REPORT_BUGS_TO="<$BUGURL>"
6928 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6930 esac;
6935 # Sanity check enable_languages in case someone does not run the toplevel
6936 # configure # script.
6937 # Check whether --enable-languages was given.
6938 if test "${enable_languages+set}" = set; then :
6939 enableval=$enable_languages; case ,${enable_languages}, in
6940 ,,|,yes,)
6941 # go safe -- we cannot be much sure without the toplevel
6942 # configure's
6943 # analysis of which target libs are present and usable
6944 enable_languages=c
6946 *,all,*)
6947 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6949 *,c,*)
6952 enable_languages=c,${enable_languages}
6954 esac
6955 else
6956 enable_languages=c
6961 # Check whether --with-multilib-list was given.
6962 if test "${with_multilib_list+set}" = set; then :
6963 withval=$with_multilib_list; :
6964 else
6965 with_multilib_list=default
6969 # -------------------------
6970 # Checks for other programs
6971 # -------------------------
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6975 set x ${MAKE-make}
6976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6977 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 cat >conftest.make <<\_ACEOF
6981 SHELL = /bin/sh
6982 all:
6983 @echo '@@@%%%=$(MAKE)=@@@%%%'
6984 _ACEOF
6985 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6987 *@@@%%%=?*=@@@%%%*)
6988 eval ac_cv_prog_make_${ac_make}_set=yes;;
6990 eval ac_cv_prog_make_${ac_make}_set=no;;
6991 esac
6992 rm -f conftest.make
6994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6996 $as_echo "yes" >&6; }
6997 SET_MAKE=
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 SET_MAKE="MAKE=${MAKE-make}"
7005 # Find some useful tools
7006 for ac_prog in gawk mawk nawk awk
7008 # Extract the first word of "$ac_prog", so it can be a program name with args.
7009 set dummy $ac_prog; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_AWK+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$AWK"; then
7016 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_AWK="$ac_prog"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7029 done
7030 done
7031 IFS=$as_save_IFS
7035 AWK=$ac_cv_prog_AWK
7036 if test -n "$AWK"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7038 $as_echo "$AWK" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7045 test -n "$AWK" && break
7046 done
7048 # We need awk to create options.c and options.h.
7049 # Bail out if it's missing.
7050 case ${AWK} in
7051 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7052 esac
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7055 $as_echo_n "checking whether ln -s works... " >&6; }
7056 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 rm -f conftestdata_t
7060 echo >conftestdata_f
7061 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7062 then
7063 gcc_cv_prog_LN_S="ln -s"
7064 else
7065 if ln conftestdata_f conftestdata_t 2>/dev/null
7066 then
7067 gcc_cv_prog_LN_S=ln
7068 else
7069 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7070 then
7071 gcc_cv_prog_LN_S="cp -p"
7072 else
7073 gcc_cv_prog_LN_S=cp
7077 rm -f conftestdata_f conftestdata_t
7080 LN_S="$gcc_cv_prog_LN_S"
7081 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7083 $as_echo "yes" >&6; }
7084 else
7085 if test "$gcc_cv_prog_LN_S" = "ln"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7087 $as_echo "no, using ln" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7090 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7095 $as_echo_n "checking whether ln works... " >&6; }
7096 if test "${acx_cv_prog_LN+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 rm -f conftestdata_t
7100 echo >conftestdata_f
7101 if ln conftestdata_f conftestdata_t 2>/dev/null
7102 then
7103 acx_cv_prog_LN=ln
7104 else
7105 acx_cv_prog_LN=no
7107 rm -f conftestdata_f conftestdata_t
7110 if test $acx_cv_prog_LN = no; then
7111 LN="$LN_S"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7113 $as_echo "no, using $LN" >&6; }
7114 else
7115 LN="$acx_cv_prog_LN"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7117 $as_echo "yes" >&6; }
7120 if test -n "$ac_tool_prefix"; then
7121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 if test -n "$RANLIB"; then
7129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7142 done
7143 done
7144 IFS=$as_save_IFS
7148 RANLIB=$ac_cv_prog_RANLIB
7149 if test -n "$RANLIB"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7151 $as_echo "$RANLIB" >&6; }
7152 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7159 if test -z "$ac_cv_prog_RANLIB"; then
7160 ac_ct_RANLIB=$RANLIB
7161 # Extract the first word of "ranlib", so it can be a program name with args.
7162 set dummy ranlib; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 if test -n "$ac_ct_RANLIB"; then
7169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_prog_ac_ct_RANLIB="ranlib"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7182 done
7183 done
7184 IFS=$as_save_IFS
7188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7189 if test -n "$ac_ct_RANLIB"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7191 $as_echo "$ac_ct_RANLIB" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7197 if test "x$ac_ct_RANLIB" = x; then
7198 RANLIB=":"
7199 else
7200 case $cross_compiling:$ac_tool_warned in
7201 yes:)
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204 ac_tool_warned=yes ;;
7205 esac
7206 RANLIB=$ac_ct_RANLIB
7208 else
7209 RANLIB="$ac_cv_prog_RANLIB"
7212 case "${host}" in
7213 *-*-darwin*)
7214 # By default, the Darwin ranlib will not treat common symbols as
7215 # definitions when building the archive table of contents. Other
7216 # ranlibs do that; pass an option to the Darwin ranlib that makes
7217 # it behave similarly.
7218 ranlib_flags="-c"
7221 ranlib_flags=""
7222 esac
7225 # Find a good install program. We prefer a C program (faster),
7226 # so one script is as good as another. But avoid the broken or
7227 # incompatible versions:
7228 # SysV /etc/install, /usr/sbin/install
7229 # SunOS /usr/etc/install
7230 # IRIX /sbin/install
7231 # AIX /bin/install
7232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7234 # ./install, which can be erroneously created by make from ./install.sh.
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7236 $as_echo_n "checking for a BSD compatible install... " >&6; }
7237 if test -z "$INSTALL"; then
7238 if test "${ac_cv_path_install+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7242 for ac_dir in $PATH; do
7243 # Account for people who put trailing slashes in PATH elements.
7244 case "$ac_dir/" in
7245 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7247 # OSF1 and SCO ODT 3.0 have their own names for install.
7248 for ac_prog in ginstall scoinst install; do
7249 if test -f $ac_dir/$ac_prog; then
7250 if test $ac_prog = install &&
7251 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7252 # AIX install. It has an incompatible calling convention.
7253 # OSF/1 installbsd also uses dspmsg, but is usable.
7255 else
7256 ac_cv_path_install="$ac_dir/$ac_prog -c"
7257 break 2
7260 done
7262 esac
7263 done
7264 IFS="$ac_save_IFS"
7267 if test "${ac_cv_path_install+set}" = set; then
7268 INSTALL="$ac_cv_path_install"
7269 else
7270 # As a last resort, use the slow shell script. We don't cache a
7271 # path for INSTALL within a source directory, because that will
7272 # break other packages using the cache if that directory is
7273 # removed, or if the path is relative.
7274 INSTALL="$ac_install_sh"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7278 $as_echo "$INSTALL" >&6; }
7280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7281 # It thinks the first close brace ends the variable substitution.
7282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7287 # See if cmp has --ignore-initial.
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7289 $as_echo_n "checking for cmp's capabilities... " >&6; }
7290 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 echo abfoo >t1
7294 echo cdfoo >t2
7295 gcc_cv_prog_cmp_skip=slowcompare
7296 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7297 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7299 else
7300 gcc_cv_prog_cmp_skip=gnucompare
7303 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7304 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7305 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7307 else
7308 gcc_cv_prog_cmp_skip=fastcompare
7312 rm t1 t2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7316 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7317 make_compare_target=$gcc_cv_prog_cmp_skip
7321 # See if we have the mktemp command.
7322 # Extract the first word of "mktemp", so it can be a program name with args.
7323 set dummy mktemp; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 if test -n "$have_mktemp_command"; then
7330 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_prog_have_mktemp_command="yes"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7343 done
7344 done
7345 IFS=$as_save_IFS
7347 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7350 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7351 if test -n "$have_mktemp_command"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7353 $as_echo "$have_mktemp_command" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7361 # See if makeinfo has been installed and is modern enough
7362 # that we can use it.
7364 # Extract the first word of "makeinfo", so it can be a program name with args.
7365 set dummy makeinfo; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$MAKEINFO"; then
7372 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_MAKEINFO="makeinfo"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7385 done
7386 done
7387 IFS=$as_save_IFS
7391 MAKEINFO=$ac_cv_prog_MAKEINFO
7392 if test -n "$MAKEINFO"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7394 $as_echo "$MAKEINFO" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7401 if test -n "$MAKEINFO"; then
7402 # Found it, now check the version.
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7404 $as_echo_n "checking for modern makeinfo... " >&6; }
7405 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7409 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7411 case $ac_prog_version in
7412 '') gcc_cv_prog_makeinfo_modern=no;;
7413 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7414 *) gcc_cv_prog_makeinfo_modern=no;;
7415 esac
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7419 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7420 else
7421 gcc_cv_prog_makeinfo_modern=no
7423 if test $gcc_cv_prog_makeinfo_modern = no; then
7424 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7427 if test $gcc_cv_prog_makeinfo_modern = no; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7429 *** Makeinfo is missing or too old.
7430 *** Info documentation will not be built." >&5
7431 $as_echo "$as_me: WARNING:
7432 *** Makeinfo is missing or too old.
7433 *** Info documentation will not be built." >&2;}
7434 BUILD_INFO=
7435 else
7436 BUILD_INFO=info
7440 # Is pod2man recent enough to regenerate manpages?
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7442 $as_echo_n "checking for recent Pod::Man... " >&6; }
7443 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7445 $as_echo "yes" >&6; }
7446 GENERATED_MANPAGES=generated-manpages
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 GENERATED_MANPAGES=
7454 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7456 # How about lex?
7457 for ac_prog in flex
7459 # Extract the first word of "$ac_prog", so it can be a program name with args.
7460 set dummy $ac_prog; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_FLEX+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$FLEX"; then
7467 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_FLEX="$ac_prog"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7480 done
7481 done
7482 IFS=$as_save_IFS
7486 FLEX=$ac_cv_prog_FLEX
7487 if test -n "$FLEX"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7489 $as_echo "$FLEX" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7496 test -n "$FLEX" && break
7497 done
7498 test -n "$FLEX" || FLEX="$MISSING flex"
7501 # Bison?
7502 for ac_prog in bison
7504 # Extract the first word of "$ac_prog", so it can be a program name with args.
7505 set dummy $ac_prog; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if test "${ac_cv_prog_BISON+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$BISON"; then
7512 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_BISON="$ac_prog"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7525 done
7526 done
7527 IFS=$as_save_IFS
7531 BISON=$ac_cv_prog_BISON
7532 if test -n "$BISON"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7534 $as_echo "$BISON" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7541 test -n "$BISON" && break
7542 done
7543 test -n "$BISON" || BISON="$MISSING bison"
7546 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7547 # check for build == host before using them.
7549 # NM
7550 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7551 && test -d ../binutils ; then
7552 NM='$(objdir)/../binutils/nm-new'
7553 else
7554 # Extract the first word of "nm", so it can be a program name with args.
7555 set dummy nm; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_NM+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$NM"; then
7562 ac_cv_prog_NM="$NM" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_NM="nm"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7579 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7582 NM=$ac_cv_prog_NM
7583 if test -n "$NM"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7585 $as_echo "$NM" >&6; }
7586 else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7594 # AR
7595 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7596 && test -d ../binutils ; then
7597 AR='$(objdir)/../binutils/ar'
7598 else
7599 # Extract the first word of "ar", so it can be a program name with args.
7600 set dummy ar; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_AR+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$AR"; then
7607 ac_cv_prog_AR="$AR" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_AR="ar"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7620 done
7621 done
7622 IFS=$as_save_IFS
7624 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7627 AR=$ac_cv_prog_AR
7628 if test -n "$AR"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7630 $as_echo "$AR" >&6; }
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7640 # --------------------
7641 # Checks for C headers
7642 # --------------------
7644 # Need to reject headers which give warnings, so that the -Werror bootstrap
7645 # works later. *sigh* This needs to come before all header checks.
7647 ac_c_preproc_warn_flag=yes
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7650 $as_echo_n "checking for ANSI C header files... " >&6; }
7651 if test "${ac_cv_header_stdc+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 #include <stdlib.h>
7657 #include <stdarg.h>
7658 #include <string.h>
7659 #include <float.h>
7662 main ()
7666 return 0;
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670 ac_cv_header_stdc=yes
7671 else
7672 ac_cv_header_stdc=no
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 if test $ac_cv_header_stdc = yes; then
7677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 #include <string.h>
7682 _ACEOF
7683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7684 $EGREP "memchr" >/dev/null 2>&1; then :
7686 else
7687 ac_cv_header_stdc=no
7689 rm -f conftest*
7693 if test $ac_cv_header_stdc = yes; then
7694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 #include <stdlib.h>
7699 _ACEOF
7700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7701 $EGREP "free" >/dev/null 2>&1; then :
7703 else
7704 ac_cv_header_stdc=no
7706 rm -f conftest*
7710 if test $ac_cv_header_stdc = yes; then
7711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7712 if test "$cross_compiling" = yes; then :
7714 else
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 #include <ctype.h>
7718 #include <stdlib.h>
7719 #if ((' ' & 0x0FF) == 0x020)
7720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7722 #else
7723 # define ISLOWER(c) \
7724 (('a' <= (c) && (c) <= 'i') \
7725 || ('j' <= (c) && (c) <= 'r') \
7726 || ('s' <= (c) && (c) <= 'z'))
7727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7728 #endif
7730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7732 main ()
7734 int i;
7735 for (i = 0; i < 256; i++)
7736 if (XOR (islower (i), ISLOWER (i))
7737 || toupper (i) != TOUPPER (i))
7738 return 2;
7739 return 0;
7741 _ACEOF
7742 if ac_fn_c_try_run "$LINENO"; then :
7744 else
7745 ac_cv_header_stdc=no
7747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7748 conftest.$ac_objext conftest.beam conftest.$ac_ext
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7754 $as_echo "$ac_cv_header_stdc" >&6; }
7755 if test $ac_cv_header_stdc = yes; then
7757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7762 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7763 if test "${ac_cv_header_time+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768 #include <sys/types.h>
7769 #include <sys/time.h>
7770 #include <time.h>
7773 main ()
7775 if ((struct tm *) 0)
7776 return 0;
7778 return 0;
7780 _ACEOF
7781 if ac_fn_c_try_compile "$LINENO"; then :
7782 ac_cv_header_time=yes
7783 else
7784 ac_cv_header_time=no
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7789 $as_echo "$ac_cv_header_time" >&6; }
7790 if test $ac_cv_header_time = yes; then
7792 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7797 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7798 if test "${gcc_cv_header_string+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7803 #include <string.h>
7804 #include <strings.h>
7806 main ()
7810 return 0;
7812 _ACEOF
7813 if ac_fn_c_try_compile "$LINENO"; then :
7814 gcc_cv_header_string=yes
7815 else
7816 gcc_cv_header_string=no
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7821 $as_echo "$gcc_cv_header_string" >&6; }
7822 if test $gcc_cv_header_string = yes; then
7824 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7829 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7830 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #include <sys/types.h>
7836 #include <sys/wait.h>
7837 #ifndef WEXITSTATUS
7838 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7839 #endif
7840 #ifndef WIFEXITED
7841 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7842 #endif
7845 main ()
7847 int s;
7848 wait (&s);
7849 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7851 return 0;
7853 _ACEOF
7854 if ac_fn_c_try_compile "$LINENO"; then :
7855 ac_cv_header_sys_wait_h=yes
7856 else
7857 ac_cv_header_sys_wait_h=no
7859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7862 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7863 if test $ac_cv_header_sys_wait_h = yes; then
7865 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7869 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7870 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7871 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7872 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7873 do :
7874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7875 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7876 eval as_val=\$$as_ac_Header
7877 if test "x$as_val" = x""yes; then :
7878 cat >>confdefs.h <<_ACEOF
7879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7880 _ACEOF
7883 done
7886 # Check for thread headers.
7887 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7888 if test "x$ac_cv_header_thread_h" = x""yes; then :
7889 have_thread_h=yes
7890 else
7891 have_thread_h=
7894 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7895 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7896 have_pthread_h=yes
7897 else
7898 have_pthread_h=
7902 # These tests can't be done till we know if we have limits.h.
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7904 $as_echo_n "checking for CHAR_BIT... " >&6; }
7905 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910 #ifdef HAVE_LIMITS_H
7911 #include <limits.h>
7912 #endif
7913 #ifdef CHAR_BIT
7914 found
7915 #endif
7916 _ACEOF
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918 $EGREP "found" >/dev/null 2>&1; then :
7919 gcc_cv_decl_char_bit=yes
7920 else
7921 gcc_cv_decl_char_bit=no
7923 rm -f conftest*
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7928 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7929 if test $gcc_cv_decl_char_bit = no; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7931 $as_echo_n "checking number of bits in a byte... " >&6; }
7932 if test "${gcc_cv_c_nbby+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7936 gcc_cv_c_nbby=
7937 while test $i -lt 65; do
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7942 main ()
7944 switch(0) {
7945 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7946 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7949 return 0;
7951 _ACEOF
7952 if ac_fn_c_try_compile "$LINENO"; then :
7953 gcc_cv_c_nbby=$i; break
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 i=`expr $i + 1`
7957 done
7958 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7962 $as_echo "$gcc_cv_c_nbby" >&6; }
7963 if test $gcc_cv_c_nbby = failed; then
7964 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7965 else
7967 cat >>confdefs.h <<_ACEOF
7968 #define CHAR_BIT $gcc_cv_c_nbby
7969 _ACEOF
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7974 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7975 if test "${ac_cv_c_bigendian+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 ac_cv_c_bigendian=unknown
7979 # See if we're dealing with a universal compiler.
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #ifndef __APPLE_CC__
7983 not a universal capable compiler
7984 #endif
7985 typedef int dummy;
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"; then :
7990 # Check for potential -arch flags. It is not universal unless
7991 # there are at least two -arch flags with different values.
7992 ac_arch=
7993 ac_prev=
7994 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7995 if test -n "$ac_prev"; then
7996 case $ac_word in
7997 i?86 | x86_64 | ppc | ppc64)
7998 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7999 ac_arch=$ac_word
8000 else
8001 ac_cv_c_bigendian=universal
8002 break
8005 esac
8006 ac_prev=
8007 elif test "x$ac_word" = "x-arch"; then
8008 ac_prev=arch
8010 done
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 if test $ac_cv_c_bigendian = unknown; then
8014 # See if sys/param.h defines the BYTE_ORDER macro.
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 #include <sys/types.h>
8018 #include <sys/param.h>
8021 main ()
8023 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8024 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8025 && LITTLE_ENDIAN)
8026 bogus endian macros
8027 #endif
8030 return 0;
8032 _ACEOF
8033 if ac_fn_c_try_compile "$LINENO"; then :
8034 # It does; now see whether it defined to BIG_ENDIAN or not.
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 #include <sys/types.h>
8038 #include <sys/param.h>
8041 main ()
8043 #if BYTE_ORDER != BIG_ENDIAN
8044 not big endian
8045 #endif
8048 return 0;
8050 _ACEOF
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052 ac_cv_c_bigendian=yes
8053 else
8054 ac_cv_c_bigendian=no
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 if test $ac_cv_c_bigendian = unknown; then
8061 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 #include <limits.h>
8067 main ()
8069 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8070 bogus endian macros
8071 #endif
8074 return 0;
8076 _ACEOF
8077 if ac_fn_c_try_compile "$LINENO"; then :
8078 # It does; now see whether it defined to _BIG_ENDIAN or not.
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 #include <limits.h>
8084 main ()
8086 #ifndef _BIG_ENDIAN
8087 not big endian
8088 #endif
8091 return 0;
8093 _ACEOF
8094 if ac_fn_c_try_compile "$LINENO"; then :
8095 ac_cv_c_bigendian=yes
8096 else
8097 ac_cv_c_bigendian=no
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 if test $ac_cv_c_bigendian = unknown; then
8104 # Compile a test program.
8105 if test "$cross_compiling" = yes; then :
8106 # Try to guess by grepping values from an object file.
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 short int ascii_mm[] =
8110 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8111 short int ascii_ii[] =
8112 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8113 int use_ascii (int i) {
8114 return ascii_mm[i] + ascii_ii[i];
8116 short int ebcdic_ii[] =
8117 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8118 short int ebcdic_mm[] =
8119 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8120 int use_ebcdic (int i) {
8121 return ebcdic_mm[i] + ebcdic_ii[i];
8123 extern int foo;
8126 main ()
8128 return use_ascii (foo) == use_ebcdic (foo);
8130 return 0;
8132 _ACEOF
8133 if ac_fn_c_try_compile "$LINENO"; then :
8134 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8135 ac_cv_c_bigendian=yes
8137 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8138 if test "$ac_cv_c_bigendian" = unknown; then
8139 ac_cv_c_bigendian=no
8140 else
8141 # finding both strings is unlikely to happen, but who knows?
8142 ac_cv_c_bigendian=unknown
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 $ac_includes_default
8152 main ()
8155 /* Are we little or big endian? From Harbison&Steele. */
8156 union
8158 long int l;
8159 char c[sizeof (long int)];
8160 } u;
8161 u.l = 1;
8162 return u.c[sizeof (long int) - 1] == 1;
8165 return 0;
8167 _ACEOF
8168 if ac_fn_c_try_run "$LINENO"; then :
8169 ac_cv_c_bigendian=no
8170 else
8171 ac_cv_c_bigendian=yes
8173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8174 conftest.$ac_objext conftest.beam conftest.$ac_ext
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8180 $as_echo "$ac_cv_c_bigendian" >&6; }
8181 case $ac_cv_c_bigendian in #(
8182 yes)
8183 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8184 ;; #(
8186 ;; #(
8187 universal)
8189 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8191 ;; #(
8193 as_fn_error "unknown endianness
8194 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8195 esac
8198 # --------
8199 # UNSORTED
8200 # --------
8203 # These libraries may be used by collect2.
8204 # We may need a special search path to get them linked.
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8206 $as_echo_n "checking for collect2 libraries... " >&6; }
8207 if test "${gcc_cv_collect2_libs+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 save_LIBS="$LIBS"
8211 for libs in '' -lld -lmld \
8212 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8213 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8215 LIBS="$libs"
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8219 /* Override any GCC internal prototype to avoid an error.
8220 Use char because int might match the return type of a GCC
8221 builtin and then its argument prototype would still apply. */
8222 #ifdef __cplusplus
8223 extern "C"
8224 #endif
8225 char ldopen ();
8227 main ()
8229 return ldopen ();
8231 return 0;
8233 _ACEOF
8234 if ac_fn_c_try_link "$LINENO"; then :
8235 gcc_cv_collect2_libs="$libs"; break
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 done
8240 LIBS="$save_LIBS"
8241 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8244 $as_echo "$gcc_cv_collect2_libs" >&6; }
8245 case $gcc_cv_collect2_libs in
8246 "none required") ;;
8247 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8248 esac
8251 # When building Ada code on Alpha, we need exc_resume which is usually in
8252 # -lexc. So test for it.
8253 save_LIBS="$LIBS"
8254 LIBS=
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8256 $as_echo_n "checking for library containing exc_resume... " >&6; }
8257 if test "${ac_cv_search_exc_resume+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 ac_func_search_save_LIBS=$LIBS
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8264 /* Override any GCC internal prototype to avoid an error.
8265 Use char because int might match the return type of a GCC
8266 builtin and then its argument prototype would still apply. */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 char exc_resume ();
8272 main ()
8274 return exc_resume ();
8276 return 0;
8278 _ACEOF
8279 for ac_lib in '' exc; do
8280 if test -z "$ac_lib"; then
8281 ac_res="none required"
8282 else
8283 ac_res=-l$ac_lib
8284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8286 if ac_fn_c_try_link "$LINENO"; then :
8287 ac_cv_search_exc_resume=$ac_res
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext
8291 if test "${ac_cv_search_exc_resume+set}" = set; then :
8292 break
8294 done
8295 if test "${ac_cv_search_exc_resume+set}" = set; then :
8297 else
8298 ac_cv_search_exc_resume=no
8300 rm conftest.$ac_ext
8301 LIBS=$ac_func_search_save_LIBS
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8304 $as_echo "$ac_cv_search_exc_resume" >&6; }
8305 ac_res=$ac_cv_search_exc_resume
8306 if test "$ac_res" != no; then :
8307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8311 GNAT_LIBEXC="$LIBS"
8312 LIBS="$save_LIBS"
8315 # Some systems put ldexp and frexp in libm instead of libc; assume
8316 # they're both in the same place. jcf-dump needs them.
8317 save_LIBS="$LIBS"
8318 LIBS=
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8320 $as_echo_n "checking for library containing ldexp... " >&6; }
8321 if test "${ac_cv_search_ldexp+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 ac_func_search_save_LIBS=$LIBS
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8328 /* Override any GCC internal prototype to avoid an error.
8329 Use char because int might match the return type of a GCC
8330 builtin and then its argument prototype would still apply. */
8331 #ifdef __cplusplus
8332 extern "C"
8333 #endif
8334 char ldexp ();
8336 main ()
8338 return ldexp ();
8340 return 0;
8342 _ACEOF
8343 for ac_lib in '' m; do
8344 if test -z "$ac_lib"; then
8345 ac_res="none required"
8346 else
8347 ac_res=-l$ac_lib
8348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8350 if ac_fn_c_try_link "$LINENO"; then :
8351 ac_cv_search_ldexp=$ac_res
8353 rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext
8355 if test "${ac_cv_search_ldexp+set}" = set; then :
8356 break
8358 done
8359 if test "${ac_cv_search_ldexp+set}" = set; then :
8361 else
8362 ac_cv_search_ldexp=no
8364 rm conftest.$ac_ext
8365 LIBS=$ac_func_search_save_LIBS
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8368 $as_echo "$ac_cv_search_ldexp" >&6; }
8369 ac_res=$ac_cv_search_ldexp
8370 if test "$ac_res" != no; then :
8371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8375 LDEXP_LIB="$LIBS"
8376 LIBS="$save_LIBS"
8379 # Use <inttypes.h> only if it exists,
8380 # doesn't clash with <sys/types.h>, and declares intmax_t.
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8382 $as_echo_n "checking for inttypes.h... " >&6; }
8383 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 #include <sys/types.h>
8389 #include <inttypes.h>
8391 main ()
8393 intmax_t i = -1;
8395 return 0;
8397 _ACEOF
8398 if ac_fn_c_try_compile "$LINENO"; then :
8399 gcc_cv_header_inttypes_h=yes
8400 else
8401 gcc_cv_header_inttypes_h=no
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8407 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8408 if test $gcc_cv_header_inttypes_h = yes; then
8410 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8416 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8417 sysconf strsignal getrusage nl_langinfo \
8418 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8419 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
8420 do :
8421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8422 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8423 eval as_val=\$$as_ac_var
8424 if test "x$as_val" = x""yes; then :
8425 cat >>confdefs.h <<_ACEOF
8426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8427 _ACEOF
8430 done
8433 save_CPPFLAGS="$CPPFLAGS"
8434 save_LIBS="$LIBS"
8435 LIBS="$LIBS $LIBELFLIBS"
8436 for ac_func in elf_getshdrstrndx
8437 do :
8438 ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8439 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8440 cat >>confdefs.h <<_ACEOF
8441 #define HAVE_ELF_GETSHDRSTRNDX 1
8442 _ACEOF
8444 else
8445 for ac_func in elf_getshstrndx
8446 do :
8447 ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8448 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8449 cat >>confdefs.h <<_ACEOF
8450 #define HAVE_ELF_GETSHSTRNDX 1
8451 _ACEOF
8452 if test "$cross_compiling" = yes; then :
8453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8455 as_fn_error "cannot run test program while cross compiling
8456 See \`config.log' for more details." "$LINENO" 5; }
8457 else
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <stdlib.h>
8461 #include <libelf.h>
8462 int main()
8464 return elf_getshstrndx (NULL, 0) == 0;
8466 _ACEOF
8467 if ac_fn_c_try_run "$LINENO"; then :
8469 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8473 conftest.$ac_objext conftest.beam conftest.$ac_ext
8477 done
8481 done
8483 LIBS="$save_LIBS"
8484 CPPFLAGS="$save_CPPFLAGS"
8486 if test x$ac_cv_func_mbstowcs = xyes; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8488 $as_echo_n "checking whether mbstowcs works... " >&6; }
8489 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 if test "$cross_compiling" = yes; then :
8493 gcc_cv_func_mbstowcs_works=yes
8494 else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 #include <stdlib.h>
8498 int main()
8500 mbstowcs(0, "", 0);
8501 return 0;
8503 _ACEOF
8504 if ac_fn_c_try_run "$LINENO"; then :
8505 gcc_cv_func_mbstowcs_works=yes
8506 else
8507 gcc_cv_func_mbstowcs_works=no
8509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8510 conftest.$ac_objext conftest.beam conftest.$ac_ext
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8515 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8516 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8518 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8523 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8524 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8526 else
8528 cat >>confdefs.h <<_ACEOF
8529 #define ssize_t int
8530 _ACEOF
8534 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8535 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8537 else
8539 cat >>confdefs.h <<_ACEOF
8540 #define caddr_t char *
8541 _ACEOF
8547 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8548 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8549 gcc_header_sys_mman_h=yes
8550 else
8551 gcc_header_sys_mman_h=no
8554 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8555 if test "x$ac_cv_func_mmap" = x""yes; then :
8556 gcc_func_mmap=yes
8557 else
8558 gcc_func_mmap=no
8561 if test "$gcc_header_sys_mman_h" != yes \
8562 || test "$gcc_func_mmap" != yes; then
8563 gcc_cv_func_mmap_file=no
8564 gcc_cv_func_mmap_dev_zero=no
8565 gcc_cv_func_mmap_anon=no
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8568 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8569 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 # Add a system to this blacklist if
8573 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8574 # memory area containing the same data that you'd get if you applied
8575 # read() to the same fd. The only system known to have a problem here
8576 # is VMS, where text files have record structure.
8577 case "$host_os" in
8578 vms* | ultrix*)
8579 gcc_cv_func_mmap_file=no ;;
8581 gcc_cv_func_mmap_file=yes;;
8582 esac
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8585 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8587 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8588 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 # Add a system to this blacklist if it has mmap() but /dev/zero
8592 # does not exist, or if mmapping /dev/zero does not give anonymous
8593 # zeroed pages with both the following properties:
8594 # 1. If you map N consecutive pages in with one call, and then
8595 # unmap any subset of those pages, the pages that were not
8596 # explicitly unmapped remain accessible.
8597 # 2. If you map two adjacent blocks of memory and then unmap them
8598 # both at once, they must both go away.
8599 # Systems known to be in this category are Windows (all variants),
8600 # VMS, and Darwin.
8601 case "$host_os" in
8602 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8603 gcc_cv_func_mmap_dev_zero=no ;;
8605 gcc_cv_func_mmap_dev_zero=yes;;
8606 esac
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8609 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8611 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8613 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8614 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <sys/types.h>
8620 #include <sys/mman.h>
8621 #include <unistd.h>
8623 #ifndef MAP_ANONYMOUS
8624 #define MAP_ANONYMOUS MAP_ANON
8625 #endif
8628 main ()
8630 int n = MAP_ANONYMOUS;
8632 return 0;
8634 _ACEOF
8635 if ac_fn_c_try_compile "$LINENO"; then :
8636 gcc_cv_decl_map_anon=yes
8637 else
8638 gcc_cv_decl_map_anon=no
8640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8643 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8645 if test $gcc_cv_decl_map_anon = no; then
8646 gcc_cv_func_mmap_anon=no
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8649 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8650 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8654 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8655 # doesn't give anonymous zeroed pages with the same properties listed
8656 # above for use of /dev/zero.
8657 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8658 case "$host_os" in
8659 vms* | cygwin* | pe | mingw* | sco* | udk* )
8660 gcc_cv_func_mmap_anon=no ;;
8662 gcc_cv_func_mmap_anon=yes;;
8663 esac
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8666 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8670 if test $gcc_cv_func_mmap_file = yes; then
8672 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8675 if test $gcc_cv_func_mmap_dev_zero = yes; then
8677 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8680 if test $gcc_cv_func_mmap_anon = yes; then
8682 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8687 case "${host}" in
8688 *-*-*vms*)
8689 # Under VMS, vfork works very differently than on Unix. The standard test
8690 # won't work, and it isn't easily adaptable. It makes more sense to
8691 # just force it.
8692 ac_cv_func_vfork_works=yes
8694 esac
8695 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8696 if test "x$ac_cv_type_pid_t" = x""yes; then :
8698 else
8700 cat >>confdefs.h <<_ACEOF
8701 #define pid_t int
8702 _ACEOF
8706 for ac_header in vfork.h
8707 do :
8708 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8709 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_VFORK_H 1
8712 _ACEOF
8715 done
8717 for ac_func in fork vfork
8718 do :
8719 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8721 eval as_val=\$$as_ac_var
8722 if test "x$as_val" = x""yes; then :
8723 cat >>confdefs.h <<_ACEOF
8724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8725 _ACEOF
8728 done
8730 if test "x$ac_cv_func_fork" = xyes; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8732 $as_echo_n "checking for working fork... " >&6; }
8733 if test "${ac_cv_func_fork_works+set}" = set; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 if test "$cross_compiling" = yes; then :
8737 ac_cv_func_fork_works=cross
8738 else
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 $ac_includes_default
8743 main ()
8746 /* By Ruediger Kuhlmann. */
8747 return fork () < 0;
8750 return 0;
8752 _ACEOF
8753 if ac_fn_c_try_run "$LINENO"; then :
8754 ac_cv_func_fork_works=yes
8755 else
8756 ac_cv_func_fork_works=no
8758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8759 conftest.$ac_objext conftest.beam conftest.$ac_ext
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8764 $as_echo "$ac_cv_func_fork_works" >&6; }
8766 else
8767 ac_cv_func_fork_works=$ac_cv_func_fork
8769 if test "x$ac_cv_func_fork_works" = xcross; then
8770 case $host in
8771 *-*-amigaos* | *-*-msdosdjgpp*)
8772 # Override, as these systems have only a dummy fork() stub
8773 ac_cv_func_fork_works=no
8776 ac_cv_func_fork_works=yes
8778 esac
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8780 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8782 ac_cv_func_vfork_works=$ac_cv_func_vfork
8783 if test "x$ac_cv_func_vfork" = xyes; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8785 $as_echo_n "checking for working vfork... " >&6; }
8786 if test "${ac_cv_func_vfork_works+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 if test "$cross_compiling" = yes; then :
8790 ac_cv_func_vfork_works=cross
8791 else
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 /* Thanks to Paul Eggert for this test. */
8795 $ac_includes_default
8796 #include <sys/wait.h>
8797 #ifdef HAVE_VFORK_H
8798 # include <vfork.h>
8799 #endif
8800 /* On some sparc systems, changes by the child to local and incoming
8801 argument registers are propagated back to the parent. The compiler
8802 is told about this with #include <vfork.h>, but some compilers
8803 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8804 static variable whose address is put into a register that is
8805 clobbered by the vfork. */
8806 static void
8807 #ifdef __cplusplus
8808 sparc_address_test (int arg)
8809 # else
8810 sparc_address_test (arg) int arg;
8811 #endif
8813 static pid_t child;
8814 if (!child) {
8815 child = vfork ();
8816 if (child < 0) {
8817 perror ("vfork");
8818 _exit(2);
8820 if (!child) {
8821 arg = getpid();
8822 write(-1, "", 0);
8823 _exit (arg);
8829 main ()
8831 pid_t parent = getpid ();
8832 pid_t child;
8834 sparc_address_test (0);
8836 child = vfork ();
8838 if (child == 0) {
8839 /* Here is another test for sparc vfork register problems. This
8840 test uses lots of local variables, at least as many local
8841 variables as main has allocated so far including compiler
8842 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8843 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8844 reuse the register of parent for one of the local variables,
8845 since it will think that parent can't possibly be used any more
8846 in this routine. Assigning to the local variable will thus
8847 munge parent in the parent process. */
8848 pid_t
8849 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8850 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8851 /* Convince the compiler that p..p7 are live; otherwise, it might
8852 use the same hardware register for all 8 local variables. */
8853 if (p != p1 || p != p2 || p != p3 || p != p4
8854 || p != p5 || p != p6 || p != p7)
8855 _exit(1);
8857 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8858 from child file descriptors. If the child closes a descriptor
8859 before it execs or exits, this munges the parent's descriptor
8860 as well. Test for this by closing stdout in the child. */
8861 _exit(close(fileno(stdout)) != 0);
8862 } else {
8863 int status;
8864 struct stat st;
8866 while (wait(&status) != child)
8868 return (
8869 /* Was there some problem with vforking? */
8870 child < 0
8872 /* Did the child fail? (This shouldn't happen.) */
8873 || status
8875 /* Did the vfork/compiler bug occur? */
8876 || parent != getpid()
8878 /* Did the file descriptor bug occur? */
8879 || fstat(fileno(stdout), &st) != 0
8883 _ACEOF
8884 if ac_fn_c_try_run "$LINENO"; then :
8885 ac_cv_func_vfork_works=yes
8886 else
8887 ac_cv_func_vfork_works=no
8889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8890 conftest.$ac_objext conftest.beam conftest.$ac_ext
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8895 $as_echo "$ac_cv_func_vfork_works" >&6; }
8898 if test "x$ac_cv_func_fork_works" = xcross; then
8899 ac_cv_func_vfork_works=$ac_cv_func_vfork
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8901 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8904 if test "x$ac_cv_func_vfork_works" = xyes; then
8906 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8908 else
8910 $as_echo "#define vfork fork" >>confdefs.h
8913 if test "x$ac_cv_func_fork_works" = xyes; then
8915 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8921 if test "X$prefix" = "XNONE"; then
8922 acl_final_prefix="$ac_default_prefix"
8923 else
8924 acl_final_prefix="$prefix"
8926 if test "X$exec_prefix" = "XNONE"; then
8927 acl_final_exec_prefix='${prefix}'
8928 else
8929 acl_final_exec_prefix="$exec_prefix"
8931 acl_save_prefix="$prefix"
8932 prefix="$acl_final_prefix"
8933 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8934 prefix="$acl_save_prefix"
8937 # Check whether --with-gnu-ld was given.
8938 if test "${with_gnu_ld+set}" = set; then :
8939 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8940 else
8941 with_gnu_ld=no
8944 # Prepare PATH_SEPARATOR.
8945 # The user is always right.
8946 if test "${PATH_SEPARATOR+set}" != set; then
8947 echo "#! /bin/sh" >conf$$.sh
8948 echo "exit 0" >>conf$$.sh
8949 chmod +x conf$$.sh
8950 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8951 PATH_SEPARATOR=';'
8952 else
8953 PATH_SEPARATOR=:
8955 rm -f conf$$.sh
8957 ac_prog=ld
8958 if test "$GCC" = yes; then
8959 # Check if gcc -print-prog-name=ld gives a path.
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8961 $as_echo_n "checking for ld used by GCC... " >&6; }
8962 case $host in
8963 *-*-mingw*)
8964 # gcc leaves a trailing carriage return which upsets mingw
8965 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8967 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8968 esac
8969 case $ac_prog in
8970 # Accept absolute paths.
8971 [\\/]* | [A-Za-z]:[\\/]*)
8972 re_direlt='/[^/][^/]*/\.\./'
8973 # Canonicalize the path of ld
8974 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8975 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8976 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8977 done
8978 test -z "$LD" && LD="$ac_prog"
8981 # If it fails, then pretend we aren't using GCC.
8982 ac_prog=ld
8985 # If it is relative, then search for the first ld in PATH.
8986 with_gnu_ld=unknown
8988 esac
8989 elif test "$with_gnu_ld" = yes; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8991 $as_echo_n "checking for GNU ld... " >&6; }
8992 else
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8994 $as_echo_n "checking for non-GNU ld... " >&6; }
8996 if test "${acl_cv_path_LD+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 if test -z "$LD"; then
9000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9001 for ac_dir in $PATH; do
9002 test -z "$ac_dir" && ac_dir=.
9003 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9004 acl_cv_path_LD="$ac_dir/$ac_prog"
9005 # Check to see if the program is GNU ld. I'd rather use --version,
9006 # but apparently some GNU ld's only accept -v.
9007 # Break only if it was the GNU/non-GNU ld that we prefer.
9008 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9009 test "$with_gnu_ld" != no && break
9010 else
9011 test "$with_gnu_ld" != yes && break
9014 done
9015 IFS="$ac_save_ifs"
9016 else
9017 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9021 LD="$acl_cv_path_LD"
9022 if test -n "$LD"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9024 $as_echo "$LD" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9029 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9031 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9032 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9036 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9037 acl_cv_prog_gnu_ld=yes
9038 else
9039 acl_cv_prog_gnu_ld=no
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9043 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9044 with_gnu_ld=$acl_cv_prog_gnu_ld
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9049 $as_echo_n "checking for shared library run path origin... " >&6; }
9050 if test "${acl_cv_rpath+set}" = set; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9054 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9055 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9056 . ./conftest.sh
9057 rm -f ./conftest.sh
9058 acl_cv_rpath=done
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9062 $as_echo "$acl_cv_rpath" >&6; }
9063 wl="$acl_cv_wl"
9064 libext="$acl_cv_libext"
9065 shlibext="$acl_cv_shlibext"
9066 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9067 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9068 hardcode_direct="$acl_cv_hardcode_direct"
9069 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9070 # Check whether --enable-rpath was given.
9071 if test "${enable_rpath+set}" = set; then :
9072 enableval=$enable_rpath; :
9073 else
9074 enable_rpath=yes
9084 use_additional=yes
9086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9091 eval additional_includedir=\"$includedir\"
9092 eval additional_libdir=\"$libdir\"
9094 exec_prefix="$acl_save_exec_prefix"
9095 prefix="$acl_save_prefix"
9098 # Check whether --with-libiconv-prefix was given.
9099 if test "${with_libiconv_prefix+set}" = set; then :
9100 withval=$with_libiconv_prefix;
9101 if test "X$withval" = "Xno"; then
9102 use_additional=no
9103 else
9104 if test "X$withval" = "X"; then
9106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9111 eval additional_includedir=\"$includedir\"
9112 eval additional_libdir=\"$libdir\"
9114 exec_prefix="$acl_save_exec_prefix"
9115 prefix="$acl_save_prefix"
9117 else
9118 additional_includedir="$withval/include"
9119 additional_libdir="$withval/lib"
9125 LIBICONV=
9126 LTLIBICONV=
9127 INCICONV=
9128 rpathdirs=
9129 ltrpathdirs=
9130 names_already_handled=
9131 names_next_round='iconv '
9132 while test -n "$names_next_round"; do
9133 names_this_round="$names_next_round"
9134 names_next_round=
9135 for name in $names_this_round; do
9136 already_handled=
9137 for n in $names_already_handled; do
9138 if test "$n" = "$name"; then
9139 already_handled=yes
9140 break
9142 done
9143 if test -z "$already_handled"; then
9144 names_already_handled="$names_already_handled $name"
9145 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9146 eval value=\"\$HAVE_LIB$uppername\"
9147 if test -n "$value"; then
9148 if test "$value" = yes; then
9149 eval value=\"\$LIB$uppername\"
9150 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9151 eval value=\"\$LTLIB$uppername\"
9152 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9153 else
9156 else
9157 found_dir=
9158 found_la=
9159 found_so=
9160 found_a=
9161 if test $use_additional = yes; then
9162 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9163 found_dir="$additional_libdir"
9164 found_so="$additional_libdir/lib$name.$shlibext"
9165 if test -f "$additional_libdir/lib$name.la"; then
9166 found_la="$additional_libdir/lib$name.la"
9168 else
9169 if test -f "$additional_libdir/lib$name.$libext"; then
9170 found_dir="$additional_libdir"
9171 found_a="$additional_libdir/lib$name.$libext"
9172 if test -f "$additional_libdir/lib$name.la"; then
9173 found_la="$additional_libdir/lib$name.la"
9178 if test "X$found_dir" = "X"; then
9179 for x in $LDFLAGS $LTLIBICONV; do
9181 acl_save_prefix="$prefix"
9182 prefix="$acl_final_prefix"
9183 acl_save_exec_prefix="$exec_prefix"
9184 exec_prefix="$acl_final_exec_prefix"
9185 eval x=\"$x\"
9186 exec_prefix="$acl_save_exec_prefix"
9187 prefix="$acl_save_prefix"
9189 case "$x" in
9190 -L*)
9191 dir=`echo "X$x" | sed -e 's/^X-L//'`
9192 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9193 found_dir="$dir"
9194 found_so="$dir/lib$name.$shlibext"
9195 if test -f "$dir/lib$name.la"; then
9196 found_la="$dir/lib$name.la"
9198 else
9199 if test -f "$dir/lib$name.$libext"; then
9200 found_dir="$dir"
9201 found_a="$dir/lib$name.$libext"
9202 if test -f "$dir/lib$name.la"; then
9203 found_la="$dir/lib$name.la"
9208 esac
9209 if test "X$found_dir" != "X"; then
9210 break
9212 done
9214 if test "X$found_dir" != "X"; then
9215 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9216 if test "X$found_so" != "X"; then
9217 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9218 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9219 else
9220 haveit=
9221 for x in $ltrpathdirs; do
9222 if test "X$x" = "X$found_dir"; then
9223 haveit=yes
9224 break
9226 done
9227 if test -z "$haveit"; then
9228 ltrpathdirs="$ltrpathdirs $found_dir"
9230 if test "$hardcode_direct" = yes; then
9231 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9232 else
9233 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9234 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9235 haveit=
9236 for x in $rpathdirs; do
9237 if test "X$x" = "X$found_dir"; then
9238 haveit=yes
9239 break
9241 done
9242 if test -z "$haveit"; then
9243 rpathdirs="$rpathdirs $found_dir"
9245 else
9246 haveit=
9247 for x in $LDFLAGS $LIBICONV; do
9249 acl_save_prefix="$prefix"
9250 prefix="$acl_final_prefix"
9251 acl_save_exec_prefix="$exec_prefix"
9252 exec_prefix="$acl_final_exec_prefix"
9253 eval x=\"$x\"
9254 exec_prefix="$acl_save_exec_prefix"
9255 prefix="$acl_save_prefix"
9257 if test "X$x" = "X-L$found_dir"; then
9258 haveit=yes
9259 break
9261 done
9262 if test -z "$haveit"; then
9263 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9265 if test "$hardcode_minus_L" != no; then
9266 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9267 else
9268 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9273 else
9274 if test "X$found_a" != "X"; then
9275 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9276 else
9277 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9280 additional_includedir=
9281 case "$found_dir" in
9282 */lib | */lib/)
9283 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9284 additional_includedir="$basedir/include"
9286 esac
9287 if test "X$additional_includedir" != "X"; then
9288 if test "X$additional_includedir" != "X/usr/include"; then
9289 haveit=
9290 if test "X$additional_includedir" = "X/usr/local/include"; then
9291 if test -n "$GCC"; then
9292 case $host_os in
9293 linux*) haveit=yes;;
9294 esac
9297 if test -z "$haveit"; then
9298 for x in $CPPFLAGS $INCICONV; do
9300 acl_save_prefix="$prefix"
9301 prefix="$acl_final_prefix"
9302 acl_save_exec_prefix="$exec_prefix"
9303 exec_prefix="$acl_final_exec_prefix"
9304 eval x=\"$x\"
9305 exec_prefix="$acl_save_exec_prefix"
9306 prefix="$acl_save_prefix"
9308 if test "X$x" = "X-I$additional_includedir"; then
9309 haveit=yes
9310 break
9312 done
9313 if test -z "$haveit"; then
9314 if test -d "$additional_includedir"; then
9315 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9321 if test -n "$found_la"; then
9322 save_libdir="$libdir"
9323 case "$found_la" in
9324 */* | *\\*) . "$found_la" ;;
9325 *) . "./$found_la" ;;
9326 esac
9327 libdir="$save_libdir"
9328 for dep in $dependency_libs; do
9329 case "$dep" in
9330 -L*)
9331 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9332 if test "X$additional_libdir" != "X/usr/lib"; then
9333 haveit=
9334 if test "X$additional_libdir" = "X/usr/local/lib"; then
9335 if test -n "$GCC"; then
9336 case $host_os in
9337 linux*) haveit=yes;;
9338 esac
9341 if test -z "$haveit"; then
9342 haveit=
9343 for x in $LDFLAGS $LIBICONV; do
9345 acl_save_prefix="$prefix"
9346 prefix="$acl_final_prefix"
9347 acl_save_exec_prefix="$exec_prefix"
9348 exec_prefix="$acl_final_exec_prefix"
9349 eval x=\"$x\"
9350 exec_prefix="$acl_save_exec_prefix"
9351 prefix="$acl_save_prefix"
9353 if test "X$x" = "X-L$additional_libdir"; then
9354 haveit=yes
9355 break
9357 done
9358 if test -z "$haveit"; then
9359 if test -d "$additional_libdir"; then
9360 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9363 haveit=
9364 for x in $LDFLAGS $LTLIBICONV; do
9366 acl_save_prefix="$prefix"
9367 prefix="$acl_final_prefix"
9368 acl_save_exec_prefix="$exec_prefix"
9369 exec_prefix="$acl_final_exec_prefix"
9370 eval x=\"$x\"
9371 exec_prefix="$acl_save_exec_prefix"
9372 prefix="$acl_save_prefix"
9374 if test "X$x" = "X-L$additional_libdir"; then
9375 haveit=yes
9376 break
9378 done
9379 if test -z "$haveit"; then
9380 if test -d "$additional_libdir"; then
9381 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9387 -R*)
9388 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9389 if test "$enable_rpath" != no; then
9390 haveit=
9391 for x in $rpathdirs; do
9392 if test "X$x" = "X$dir"; then
9393 haveit=yes
9394 break
9396 done
9397 if test -z "$haveit"; then
9398 rpathdirs="$rpathdirs $dir"
9400 haveit=
9401 for x in $ltrpathdirs; do
9402 if test "X$x" = "X$dir"; then
9403 haveit=yes
9404 break
9406 done
9407 if test -z "$haveit"; then
9408 ltrpathdirs="$ltrpathdirs $dir"
9412 -l*)
9413 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9415 *.la)
9416 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9419 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9420 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9422 esac
9423 done
9425 else
9426 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9431 done
9432 done
9433 if test "X$rpathdirs" != "X"; then
9434 if test -n "$hardcode_libdir_separator"; then
9435 alldirs=
9436 for found_dir in $rpathdirs; do
9437 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9438 done
9439 acl_save_libdir="$libdir"
9440 libdir="$alldirs"
9441 eval flag=\"$hardcode_libdir_flag_spec\"
9442 libdir="$acl_save_libdir"
9443 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9444 else
9445 for found_dir in $rpathdirs; do
9446 acl_save_libdir="$libdir"
9447 libdir="$found_dir"
9448 eval flag=\"$hardcode_libdir_flag_spec\"
9449 libdir="$acl_save_libdir"
9450 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9451 done
9454 if test "X$ltrpathdirs" != "X"; then
9455 for found_dir in $ltrpathdirs; do
9456 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9457 done
9466 am_save_CPPFLAGS="$CPPFLAGS"
9468 for element in $INCICONV; do
9469 haveit=
9470 for x in $CPPFLAGS; do
9472 acl_save_prefix="$prefix"
9473 prefix="$acl_final_prefix"
9474 acl_save_exec_prefix="$exec_prefix"
9475 exec_prefix="$acl_final_exec_prefix"
9476 eval x=\"$x\"
9477 exec_prefix="$acl_save_exec_prefix"
9478 prefix="$acl_save_prefix"
9480 if test "X$x" = "X$element"; then
9481 haveit=yes
9482 break
9484 done
9485 if test -z "$haveit"; then
9486 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9488 done
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9492 $as_echo_n "checking for iconv... " >&6; }
9493 if test "${am_cv_func_iconv+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9497 am_cv_func_iconv="no, consider installing GNU libiconv"
9498 am_cv_lib_iconv=no
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 #include <stdlib.h>
9502 #include <iconv.h>
9504 main ()
9506 iconv_t cd = iconv_open("","");
9507 iconv(cd,NULL,NULL,NULL,NULL);
9508 iconv_close(cd);
9510 return 0;
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"; then :
9514 am_cv_func_iconv=yes
9516 rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 if test "$am_cv_func_iconv" != yes; then
9519 am_save_LIBS="$LIBS"
9520 LIBS="$LIBS $LIBICONV"
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 #include <stdlib.h>
9524 #include <iconv.h>
9526 main ()
9528 iconv_t cd = iconv_open("","");
9529 iconv(cd,NULL,NULL,NULL,NULL);
9530 iconv_close(cd);
9532 return 0;
9534 _ACEOF
9535 if ac_fn_c_try_link "$LINENO"; then :
9536 am_cv_lib_iconv=yes
9537 am_cv_func_iconv=yes
9539 rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
9541 LIBS="$am_save_LIBS"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9546 $as_echo "$am_cv_func_iconv" >&6; }
9547 if test "$am_cv_func_iconv" = yes; then
9549 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9552 if test "$am_cv_lib_iconv" = yes; then
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9554 $as_echo_n "checking how to link with libiconv... " >&6; }
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9556 $as_echo "$LIBICONV" >&6; }
9557 else
9558 CPPFLAGS="$am_save_CPPFLAGS"
9559 LIBICONV=
9560 LTLIBICONV=
9565 if test "$am_cv_func_iconv" = yes; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9567 $as_echo_n "checking for iconv declaration... " >&6; }
9568 if test "${am_cv_proto_iconv+set}" = set; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9575 #include <stdlib.h>
9576 #include <iconv.h>
9577 extern
9578 #ifdef __cplusplus
9580 #endif
9581 #if defined(__STDC__) || defined(__cplusplus)
9582 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9583 #else
9584 size_t iconv();
9585 #endif
9588 main ()
9592 return 0;
9594 _ACEOF
9595 if ac_fn_c_try_compile "$LINENO"; then :
9596 am_cv_proto_iconv_arg1=""
9597 else
9598 am_cv_proto_iconv_arg1="const"
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601 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);"
9604 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9606 }$am_cv_proto_iconv" >&5
9607 $as_echo "${ac_t:-
9608 }$am_cv_proto_iconv" >&6; }
9610 cat >>confdefs.h <<_ACEOF
9611 #define ICONV_CONST $am_cv_proto_iconv_arg1
9612 _ACEOF
9616 # Until we have in-tree GNU iconv:
9617 LIBICONV_DEP=
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9622 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9623 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 #include <locale.h>
9630 main ()
9632 return LC_MESSAGES
9634 return 0;
9636 _ACEOF
9637 if ac_fn_c_try_link "$LINENO"; then :
9638 am_cv_val_LC_MESSAGES=yes
9639 else
9640 am_cv_val_LC_MESSAGES=no
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9646 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9647 if test $am_cv_val_LC_MESSAGES = yes; then
9649 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9656 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9657 if test "${am_cv_langinfo_codeset+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 #include <langinfo.h>
9664 main ()
9666 char* cs = nl_langinfo(CODESET);
9668 return 0;
9670 _ACEOF
9671 if ac_fn_c_try_link "$LINENO"; then :
9672 am_cv_langinfo_codeset=yes
9673 else
9674 am_cv_langinfo_codeset=no
9676 rm -f core conftest.err conftest.$ac_objext \
9677 conftest$ac_exeext conftest.$ac_ext
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9681 $as_echo "$am_cv_langinfo_codeset" >&6; }
9682 if test $am_cv_langinfo_codeset = yes; then
9684 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9689 # We will need to find libiberty.h and ansidecl.h
9690 saved_CFLAGS="$CFLAGS"
9691 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9692 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9693 strsignal strstr strverscmp \
9694 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9695 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9697 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9699 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9700 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9701 $as_echo_n "(cached) " >&6
9702 else
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 #undef $ac_tr_decl
9706 #define $ac_tr_decl 1
9708 #include "ansidecl.h"
9709 #include "system.h"
9712 main ()
9714 #ifndef $ac_func
9715 char *(*pfn) = (char *(*)) $ac_func ;
9716 #endif
9718 return 0;
9720 _ACEOF
9721 if ac_fn_c_try_compile "$LINENO"; then :
9722 eval "gcc_cv_have_decl_$ac_func=yes"
9723 else
9724 eval "gcc_cv_have_decl_$ac_func=no"
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9731 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9732 #define $ac_tr_decl 1
9733 _ACEOF
9735 else
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9738 #define $ac_tr_decl 0
9739 _ACEOF
9743 done
9746 for ac_func in getrlimit setrlimit getrusage
9748 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9750 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9751 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756 #undef $ac_tr_decl
9757 #define $ac_tr_decl 1
9759 #include "ansidecl.h"
9760 #include "system.h"
9761 #ifdef HAVE_SYS_RESOURCE_H
9762 #include <sys/resource.h>
9763 #endif
9767 main ()
9769 #ifndef $ac_func
9770 char *(*pfn) = (char *(*)) $ac_func ;
9771 #endif
9773 return 0;
9775 _ACEOF
9776 if ac_fn_c_try_compile "$LINENO"; then :
9777 eval "gcc_cv_have_decl_$ac_func=yes"
9778 else
9779 eval "gcc_cv_have_decl_$ac_func=no"
9781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9786 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9787 #define $ac_tr_decl 1
9788 _ACEOF
9790 else
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9793 #define $ac_tr_decl 0
9794 _ACEOF
9798 done
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9804 #include "ansidecl.h"
9805 #include "system.h"
9806 #ifdef HAVE_SYS_RESOURCE_H
9807 #include <sys/resource.h>
9808 #endif
9811 main ()
9813 rlim_t l = 0;
9815 return 0;
9817 _ACEOF
9818 if ac_fn_c_try_compile "$LINENO"; then :
9820 else
9822 $as_echo "#define rlim_t long" >>confdefs.h
9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9828 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9829 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9830 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9831 for ac_func in ldgetname
9833 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9835 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9836 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 #undef $ac_tr_decl
9842 #define $ac_tr_decl 1
9844 #include "ansidecl.h"
9845 #include "system.h"
9846 #ifdef HAVE_LDFCN_H
9847 #undef FREAD
9848 #undef FWRITE
9849 #include <ldfcn.h>
9850 #endif
9854 main ()
9856 #ifndef $ac_func
9857 char *(*pfn) = (char *(*)) $ac_func ;
9858 #endif
9860 return 0;
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"; then :
9864 eval "gcc_cv_have_decl_$ac_func=yes"
9865 else
9866 eval "gcc_cv_have_decl_$ac_func=no"
9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9873 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9874 #define $ac_tr_decl 1
9875 _ACEOF
9877 else
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9880 #define $ac_tr_decl 0
9881 _ACEOF
9885 done
9888 for ac_func in times
9890 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9892 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9893 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 #undef $ac_tr_decl
9899 #define $ac_tr_decl 1
9901 #include "ansidecl.h"
9902 #include "system.h"
9903 #ifdef HAVE_SYS_TIMES_H
9904 #include <sys/times.h>
9905 #endif
9909 main ()
9911 #ifndef $ac_func
9912 char *(*pfn) = (char *(*)) $ac_func ;
9913 #endif
9915 return 0;
9917 _ACEOF
9918 if ac_fn_c_try_compile "$LINENO"; then :
9919 eval "gcc_cv_have_decl_$ac_func=yes"
9920 else
9921 eval "gcc_cv_have_decl_$ac_func=no"
9923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9928 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9929 #define $ac_tr_decl 1
9930 _ACEOF
9932 else
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9935 #define $ac_tr_decl 0
9936 _ACEOF
9940 done
9943 for ac_func in sigaltstack
9945 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9947 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9948 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9953 #undef $ac_tr_decl
9954 #define $ac_tr_decl 1
9956 #include "ansidecl.h"
9957 #include "system.h"
9958 #include <signal.h>
9962 main ()
9964 #ifndef $ac_func
9965 char *(*pfn) = (char *(*)) $ac_func ;
9966 #endif
9968 return 0;
9970 _ACEOF
9971 if ac_fn_c_try_compile "$LINENO"; then :
9972 eval "gcc_cv_have_decl_$ac_func=yes"
9973 else
9974 eval "gcc_cv_have_decl_$ac_func=no"
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9981 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9982 #define $ac_tr_decl 1
9983 _ACEOF
9985 else
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9988 #define $ac_tr_decl 0
9989 _ACEOF
9993 done
9996 # More time-related stuff.
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9998 $as_echo_n "checking for struct tms... " >&6; }
9999 if test "${ac_cv_struct_tms+set}" = set; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10006 #include "ansidecl.h"
10007 #include "system.h"
10008 #ifdef HAVE_SYS_TIMES_H
10009 #include <sys/times.h>
10010 #endif
10013 main ()
10015 struct tms tms;
10017 return 0;
10019 _ACEOF
10020 if ac_fn_c_try_compile "$LINENO"; then :
10021 ac_cv_struct_tms=yes
10022 else
10023 ac_cv_struct_tms=no
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10028 $as_echo "$ac_cv_struct_tms" >&6; }
10029 if test $ac_cv_struct_tms = yes; then
10031 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10035 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10036 # revisit after autoconf 2.50.
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10038 $as_echo_n "checking for clock_t... " >&6; }
10039 if test "${gcc_cv_type_clock_t+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
10041 else
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10046 #include "ansidecl.h"
10047 #include "system.h"
10050 main ()
10052 clock_t x;
10054 return 0;
10056 _ACEOF
10057 if ac_fn_c_try_compile "$LINENO"; then :
10058 gcc_cv_type_clock_t=yes
10059 else
10060 gcc_cv_type_clock_t=no
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10065 $as_echo "$gcc_cv_type_clock_t" >&6; }
10066 if test $gcc_cv_type_clock_t = yes; then
10068 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10072 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10073 CFLAGS="$saved_CFLAGS"
10075 # Check whether --enable-initfini-array was given.
10076 if test "${enable_initfini_array+set}" = set; then :
10077 enableval=$enable_initfini_array;
10078 else
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10081 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10082 if test "${gcc_cv_initfini_array+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 if test "$cross_compiling" = yes; then :
10086 gcc_cv_initfini_array=no
10087 else
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10091 static int x = -1;
10092 int main (void) { return x; }
10093 int foo (void) { x = 0; }
10094 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10095 _ACEOF
10096 if ac_fn_c_try_run "$LINENO"; then :
10097 gcc_cv_initfini_array=yes
10098 else
10099 gcc_cv_initfini_array=no
10101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10102 conftest.$ac_objext conftest.beam conftest.$ac_ext
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10107 $as_echo "$gcc_cv_initfini_array" >&6; }
10108 enable_initfini_array=$gcc_cv_initfini_array
10112 if test $enable_initfini_array = yes; then
10114 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10118 # mkdir takes a single argument on some systems.
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10120 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10121 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10127 #include <sys/types.h>
10128 #ifdef HAVE_SYS_STAT_H
10129 # include <sys/stat.h>
10130 #endif
10131 #ifdef HAVE_UNISTD_H
10132 # include <unistd.h>
10133 #endif
10134 #ifdef HAVE_DIRECT_H
10135 # include <direct.h>
10136 #endif
10138 main ()
10140 mkdir ("foo", 0);
10142 return 0;
10144 _ACEOF
10145 if ac_fn_c_try_compile "$LINENO"; then :
10146 gcc_cv_mkdir_takes_one_arg=no
10147 else
10148 gcc_cv_mkdir_takes_one_arg=yes
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10153 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10154 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10156 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10161 # File extensions
10162 manext='.1'
10163 objext='.o'
10167 # With Setjmp/Longjmp based exception handling.
10168 # Check whether --enable-sjlj-exceptions was given.
10169 if test "${enable_sjlj_exceptions+set}" = set; then :
10170 enableval=$enable_sjlj_exceptions; case $target in
10171 *-*-hpux10*)
10172 if test $enableval != yes; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10174 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10175 enableval=yes
10178 esac
10179 force_sjlj_exceptions=yes
10180 else
10181 case $target in
10182 *-*-hpux10*)
10183 force_sjlj_exceptions=yes
10184 enableval=yes
10187 force_sjlj_exceptions=no
10189 esac
10192 if test $force_sjlj_exceptions = yes; then
10193 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10195 cat >>confdefs.h <<_ACEOF
10196 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10197 _ACEOF
10201 # For platforms with the unwind ABI which includes an unwind library,
10202 # libunwind, we can choose to use the system libunwind.
10203 # config.gcc also contains tests of with_system_libunwind.
10206 # Check whether --with-system-libunwind was given.
10207 if test "${with_system_libunwind+set}" = set; then :
10208 withval=$with_system_libunwind;
10211 # If system-libunwind was not specifically set, pick a default setting.
10212 if test x$with_system_libunwind = x; then
10213 case ${target} in
10214 ia64-*-hpux*) with_system_libunwind=yes ;;
10215 *) with_system_libunwind=no ;;
10216 esac
10218 # Based on system-libunwind and target, do we have ipinfo?
10219 if test x$with_system_libunwind = xyes; then
10220 case ${target} in
10221 ia64-*-*) have_unwind_getipinfo=no ;;
10222 *) have_unwind_getipinfo=yes ;;
10223 esac
10224 else
10225 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10227 case ${target} in
10228 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10229 *) have_unwind_getipinfo=yes ;;
10230 esac
10234 if test x$have_unwind_getipinfo = xyes; then
10236 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10241 # --------------------------------------------------------
10242 # Build, host, and target specific configuration fragments
10243 # --------------------------------------------------------
10245 # Collect build-machine-specific information.
10246 . ${srcdir}/config.build
10248 # Collect host-machine-specific information.
10249 . ${srcdir}/config.host
10251 target_gtfiles=
10253 # Collect target-machine-specific information.
10254 . ${srcdir}/config.gcc
10256 extra_objs="${host_extra_objs} ${extra_objs}"
10257 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10259 # Default the target-machine variables that were not explicitly set.
10260 if test x"$tm_file" = x
10261 then tm_file=$cpu_type/$cpu_type.h; fi
10263 if test x"$extra_headers" = x
10264 then extra_headers=; fi
10266 if test x$md_file = x
10267 then md_file=$cpu_type/$cpu_type.md; fi
10269 if test x$out_file = x
10270 then out_file=$cpu_type/$cpu_type.c; fi
10272 if test x"$tmake_file" = x
10273 then tmake_file=$cpu_type/t-$cpu_type
10276 if test x"$dwarf2" = xyes
10277 then tm_file="$tm_file tm-dwarf2.h"
10280 # Say what files are being used for the output code and MD file.
10281 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10282 echo "Using \`$srcdir/config/$md_file' as machine description file."
10284 # If any of the xm_file variables contain nonexistent files, warn
10285 # about them and drop them.
10288 for x in $build_xm_file; do
10289 if test -f $srcdir/config/$x
10290 then bx="$bx $x"
10291 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10292 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10294 done
10295 build_xm_file="$bx"
10298 for x in $host_xm_file; do
10299 if test -f $srcdir/config/$x
10300 then hx="$hx $x"
10301 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10302 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10304 done
10305 host_xm_file="$hx"
10308 for x in $xm_file; do
10309 if test -f $srcdir/config/$x
10310 then tx="$tx $x"
10311 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10312 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10314 done
10315 xm_file="$tx"
10317 count=a
10318 for f in $tm_file; do
10319 count=${count}x
10320 done
10321 if test $count = ax; then
10322 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10323 else
10324 echo "Using the following target machine macro files:"
10325 for f in $tm_file; do
10326 echo " $srcdir/config/$f"
10327 done
10330 if test x$need_64bit_hwint = xyes; then
10332 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10336 if test x$use_long_long_for_widest_fast_int = xyes; then
10338 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10342 count=a
10343 for f in $host_xm_file; do
10344 count=${count}x
10345 done
10346 if test $count = a; then
10348 elif test $count = ax; then
10349 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10350 else
10351 echo "Using the following host machine macro files:"
10352 for f in $host_xm_file; do
10353 echo " $srcdir/config/$f"
10354 done
10356 echo "Using ${out_host_hook_obj} for host machine hooks."
10358 if test "$host_xm_file" != "$build_xm_file"; then
10359 count=a
10360 for f in $build_xm_file; do
10361 count=${count}x
10362 done
10363 if test $count = a; then
10365 elif test $count = ax; then
10366 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10367 else
10368 echo "Using the following build machine macro files:"
10369 for f in $build_xm_file; do
10370 echo " $srcdir/config/$f"
10371 done
10375 case ${host} in
10376 powerpc*-*-darwin*)
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10378 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10379 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10385 #include <sys/cdefs.h>
10386 #include <sys/signal.h>
10387 #include <ucontext.h>
10388 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10390 _ACEOF
10391 if ac_fn_c_try_compile "$LINENO"; then :
10392 gcc_cv_mcontext_underscores=no
10393 else
10394 gcc_cv_mcontext_underscores=yes
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10399 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10400 if test $gcc_cv_mcontext_underscores = yes; then
10402 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10406 esac
10408 # ---------
10409 # Threading
10410 # ---------
10412 # Check if a valid thread package
10413 case ${enable_threads} in
10414 "" | no)
10415 # No threads
10416 target_thread_file='single'
10418 yes)
10419 # default
10420 target_thread_file='single'
10422 aix | dce | gnat | irix | posix | posix95 | rtems | \
10423 single | solaris | vxworks | win32 | mipssde)
10424 target_thread_file=${enable_threads}
10427 echo "${enable_threads} is an unknown thread package" 1>&2
10428 exit 1
10430 esac
10432 if test x${thread_file} = x; then
10433 # No thread file set by target-specific clauses in config.gcc,
10434 # so use file chosen by default logic above
10435 thread_file=${target_thread_file}
10438 # Make gthr-default.h if we have a thread file.
10439 gthread_flags=
10440 if test $thread_file != single; then
10441 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10442 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10443 rm -f gthr-default.h-t
10444 else
10445 mv -f gthr-default.h-t gthr-default.h
10447 gthread_flags=-DHAVE_GTHR_DEFAULT
10451 # --------
10452 # UNSORTED
10453 # --------
10455 use_cxa_atexit=no
10456 if test x$enable___cxa_atexit = xyes || \
10457 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10458 if test x$host = x$target; then
10459 case $host in
10460 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10461 # keyed to flag_use_cxa_atexit
10462 *-*-mingw32*)
10463 use_cxa_atexit=yes
10466 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10467 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10468 use_cxa_atexit=yes
10469 else
10470 echo "__cxa_atexit can't be enabled on this target"
10474 esac
10475 else
10476 # We can't check for __cxa_atexit when building a cross, so assume
10477 # it is available
10478 use_cxa_atexit=yes
10480 if test x$use_cxa_atexit = xyes; then
10482 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10487 # Look for a file containing extra machine modes.
10488 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10489 extra_modes_file='$(srcdir)'/config/${extra_modes}
10492 cat >>confdefs.h <<_ACEOF
10493 #define EXTRA_MODES_FILE "config/$extra_modes"
10494 _ACEOF
10498 # Convert extra_options into a form suitable for Makefile use.
10499 extra_opt_files=
10500 for f in $extra_options; do
10501 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10502 done
10505 # auto-host.h is the file containing items generated by autoconf and is
10506 # the first file included by config.h.
10507 # If host=build, it is correct to have bconfig include auto-host.h
10508 # as well. If host!=build, we are in error and need to do more
10509 # work to find out the build config parameters.
10510 if test x$host = x$build
10511 then
10512 build_auto=auto-host.h
10513 else
10514 # We create a subdir, then run autoconf in the subdir.
10515 # To prevent recursion we set host and build for the new
10516 # invocation of configure to the build for this invocation
10517 # of configure.
10518 tempdir=build.$$
10519 rm -rf $tempdir
10520 mkdir $tempdir
10521 cd $tempdir
10522 case ${srcdir} in
10523 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10524 *) realsrcdir=../${srcdir};;
10525 esac
10526 saved_CFLAGS="${CFLAGS}"
10527 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10528 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10529 ${realsrcdir}/configure \
10530 --enable-languages=${enable_languages-all} \
10531 --target=$target_alias --host=$build_alias --build=$build_alias
10532 CFLAGS="${saved_CFLAGS}"
10534 # We just finished tests for the build machine, so rename
10535 # the file auto-build.h in the gcc directory.
10536 mv auto-host.h ../auto-build.h
10537 cd ..
10538 rm -rf $tempdir
10539 build_auto=auto-build.h
10543 tm_file="${tm_file} defaults.h"
10544 tm_p_file="${tm_p_file} tm-preds.h"
10545 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10546 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10547 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10548 # put this back in temporarily.
10549 xm_file="auto-host.h ansidecl.h ${xm_file}"
10551 # --------
10552 # UNSORTED
10553 # --------
10555 # Compile in configure arguments.
10556 if test -f configargs.h ; then
10557 # Being re-configured.
10558 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10559 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10560 else
10561 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10564 # Double all backslashes and backslash all quotes to turn
10565 # gcc_config_arguments into a C string.
10566 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10567 $gcc_config_arguments
10569 gcc_config_arguments_str=`cat conftest.out`
10570 rm -f conftest.out
10572 cat > configargs.h <<EOF
10573 /* Generated automatically. */
10574 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10575 static const char thread_model[] = "$thread_file";
10577 static const struct {
10578 const char *name, *value;
10579 } configure_default_options[] = $configure_default_options;
10582 gcc_BASEVER=`cat $srcdir/BASE-VER`
10583 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10584 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10585 if test -f $srcdir/REVISION ; then
10586 gcc_REVISION=`cat $srcdir/REVISION`
10587 else
10588 gcc_REVISION=""
10590 cat > plugin-version.h <<EOF
10591 #include "configargs.h"
10593 static char basever[] = "$gcc_BASEVER";
10594 static char datestamp[] = "$gcc_DATESTAMP";
10595 static char devphase[] = "$gcc_DEVPHASE";
10596 static char revision[] = "$gcc_REVISION";
10598 /* FIXME plugins: We should make the version information more precise.
10599 One way to do is to add a checksum. */
10601 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10602 devphase, revision,
10603 configuration_arguments};
10606 # Internationalization
10607 # If we haven't got the data from the intl directory,
10608 # assume NLS is disabled.
10609 USE_NLS=no
10610 LIBINTL=
10611 LIBINTL_DEP=
10612 INCINTL=
10613 XGETTEXT=
10614 GMSGFMT=
10615 POSUB=
10617 if test -f ../intl/config.intl; then
10618 . ../intl/config.intl
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10621 $as_echo_n "checking whether NLS is requested... " >&6; }
10622 if test x"$USE_NLS" != xyes; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10627 $as_echo "yes" >&6; }
10629 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10633 $as_echo_n "checking for catalogs to be installed... " >&6; }
10634 # Look for .po and .gmo files in the source directory.
10635 CATALOGS=
10636 XLINGUAS=
10637 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10638 # If there aren't any .gmo files the shell will give us the
10639 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10640 # weeded out.
10641 case "$cat" in *\**)
10642 continue;;
10643 esac
10644 # The quadruple backslash is collapsed to a double backslash
10645 # by the backticks, then collapsed again by the double quotes,
10646 # leaving us with one backslash in the sed expression (right
10647 # before the dot that mustn't act as a wildcard).
10648 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10649 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10650 # The user is allowed to set LINGUAS to a list of languages to
10651 # install catalogs for. If it's empty that means "all of them."
10652 if test "x$LINGUAS" = x; then
10653 CATALOGS="$CATALOGS $cat"
10654 XLINGUAS="$XLINGUAS $lang"
10655 else
10656 case "$LINGUAS" in *$lang*)
10657 CATALOGS="$CATALOGS $cat"
10658 XLINGUAS="$XLINGUAS $lang"
10660 esac
10662 done
10663 LINGUAS="$XLINGUAS"
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10665 $as_echo "$LINGUAS" >&6; }
10668 DATADIRNAME=share
10670 INSTOBJEXT=.mo
10672 GENCAT=gencat
10674 CATOBJEXT=.gmo
10678 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10679 # -liconv on the link line twice.
10680 case "$LIBINTL" in *$LIBICONV*)
10681 LIBICONV= ;;
10682 esac
10684 # Check whether --enable-secureplt was given.
10685 if test "${enable_secureplt+set}" = set; then :
10686 enableval=$enable_secureplt;
10690 # Check whether --enable-leading-mingw64-underscores was given.
10691 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10692 enableval=$enable_leading_mingw64_underscores;
10695 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
10697 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10701 # Check whether --enable-cld was given.
10702 if test "${enable_cld+set}" = set; then :
10703 enableval=$enable_cld;
10704 else
10705 enable_cld=no
10709 # Windows32 Registry support for specifying GCC installation paths.
10710 # Check whether --enable-win32-registry was given.
10711 if test "${enable_win32_registry+set}" = set; then :
10712 enableval=$enable_win32_registry;
10716 case $host_os in
10717 win32 | pe | cygwin* | mingw32* | uwin*)
10718 if test "x$enable_win32_registry" != xno; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10720 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10721 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 ac_func_search_save_LIBS=$LIBS
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char RegOpenKeyExA ();
10736 main ()
10738 return RegOpenKeyExA ();
10740 return 0;
10742 _ACEOF
10743 for ac_lib in '' advapi32; do
10744 if test -z "$ac_lib"; then
10745 ac_res="none required"
10746 else
10747 ac_res=-l$ac_lib
10748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10750 if ac_fn_c_try_link "$LINENO"; then :
10751 ac_cv_search_RegOpenKeyExA=$ac_res
10753 rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext
10755 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10756 break
10758 done
10759 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10761 else
10762 ac_cv_search_RegOpenKeyExA=no
10764 rm conftest.$ac_ext
10765 LIBS=$ac_func_search_save_LIBS
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10768 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10769 ac_res=$ac_cv_search_RegOpenKeyExA
10770 if test "$ac_res" != no; then :
10771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10773 else
10774 enable_win32_registry=no
10779 if test "x$enable_win32_registry" != xno; then
10781 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10784 if test "x$enable_win32_registry" != xyes \
10785 && test "x$enable_win32_registry" != x; then
10787 cat >>confdefs.h <<_ACEOF
10788 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10789 _ACEOF
10794 esac
10796 # Get an absolute path to the GCC top-level source directory
10797 holddir=`${PWDCMD-pwd}`
10798 cd $srcdir
10799 topdir=`${PWDCMD-pwd}`
10800 cd $holddir
10802 # Conditionalize the makefile for this host machine.
10803 xmake_file=
10804 for f in ${host_xmake_file}
10806 if test -f ${srcdir}/config/$f
10807 then
10808 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10810 done
10812 # Conditionalize the makefile for this target machine.
10813 tmake_file_=
10814 for f in ${tmake_file}
10816 if test -f ${srcdir}/config/$f
10817 then
10818 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10820 done
10821 tmake_file="${tmake_file_}"
10823 out_object_file=`basename $out_file .c`.o
10825 tm_file_list="options.h"
10826 tm_include_list="options.h"
10827 for f in $tm_file; do
10828 case $f in
10829 ./* )
10830 f=`echo $f | sed 's/^..//'`
10831 tm_file_list="${tm_file_list} $f"
10832 tm_include_list="${tm_include_list} $f"
10834 defaults.h )
10835 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10836 tm_include_list="${tm_include_list} $f"
10839 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10840 tm_include_list="${tm_include_list} config/$f"
10842 esac
10843 done
10845 tm_p_file_list=
10846 tm_p_include_list=
10847 for f in $tm_p_file; do
10848 case $f in
10849 tm-preds.h )
10850 tm_p_file_list="${tm_p_file_list} $f"
10851 tm_p_include_list="${tm_p_include_list} $f"
10854 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10855 tm_p_include_list="${tm_p_include_list} config/$f"
10856 esac
10857 done
10859 xm_file_list=
10860 xm_include_list=
10861 for f in $xm_file; do
10862 case $f in
10863 ansidecl.h )
10864 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10865 xm_include_list="${xm_include_list} $f"
10867 auto-host.h )
10868 xm_file_list="${xm_file_list} $f"
10869 xm_include_list="${xm_include_list} $f"
10872 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10873 xm_include_list="${xm_include_list} config/$f"
10875 esac
10876 done
10878 host_xm_file_list=
10879 host_xm_include_list=
10880 for f in $host_xm_file; do
10881 case $f in
10882 ansidecl.h )
10883 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10884 host_xm_include_list="${host_xm_include_list} $f"
10886 auto-host.h )
10887 host_xm_file_list="${host_xm_file_list} $f"
10888 host_xm_include_list="${host_xm_include_list} $f"
10891 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10892 host_xm_include_list="${host_xm_include_list} config/$f"
10894 esac
10895 done
10897 build_xm_file_list=
10898 for f in $build_xm_file; do
10899 case $f in
10900 ansidecl.h )
10901 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10902 build_xm_include_list="${build_xm_include_list} $f"
10904 auto-build.h | auto-host.h )
10905 build_xm_file_list="${build_xm_file_list} $f"
10906 build_xm_include_list="${build_xm_include_list} $f"
10909 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10910 build_xm_include_list="${build_xm_include_list} config/$f"
10912 esac
10913 done
10915 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10916 # cross-compiler which does not use the native headers and libraries.
10917 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10918 CROSS=
10919 ALL=all.internal
10920 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10922 if test "x$with_build_sysroot" != x; then
10923 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10924 else
10925 # This value is used, even on a native system, because
10926 # CROSS_SYSTEM_HEADER_DIR is just
10927 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10928 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10931 if test x$host != x$target
10932 then
10933 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10934 ALL=all.cross
10935 SYSTEM_HEADER_DIR=$build_system_header_dir
10936 case "$host","$target" in
10937 # Darwin crosses can use the host system's libraries and headers,
10938 # because of the fat library support. Of course, it must be the
10939 # same version of Darwin on both sides. Allow the user to
10940 # just say --target=foo-darwin without a version number to mean
10941 # "the version on this system".
10942 *-*-darwin*,*-*-darwin*)
10943 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10944 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10945 if test $hostos = $targetos -o $targetos = darwin ; then
10946 CROSS=
10947 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10948 with_headers=yes
10952 i?86-*-*,x86_64-*-* \
10953 | powerpc*-*-*,powerpc64*-*-*)
10954 CROSS="$CROSS -DNATIVE_CROSS" ;;
10955 esac
10956 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10957 SYSTEM_HEADER_DIR=$build_system_header_dir
10960 # If this is a cross-compiler that does not
10961 # have its own set of headers then define
10962 # inhibit_libc
10964 # If this is using newlib, without having the headers available now,
10965 # then define inhibit_libc in LIBGCC2_CFLAGS.
10966 # This prevents libgcc2 from containing any code which requires libc
10967 # support.
10968 : ${inhibit_libc=false}
10969 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10970 test x$with_newlib = xyes ; } &&
10971 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10972 inhibit_libc=true
10976 # When building gcc with a cross-compiler, we need to adjust things so
10977 # that the generator programs are still built with the native compiler.
10978 # Also, we cannot run fixincludes.
10980 # These are the normal (build=host) settings:
10981 CC_FOR_BUILD='$(CC)'
10982 BUILD_CFLAGS='$(ALL_CFLAGS)'
10983 BUILD_LDFLAGS='$(LDFLAGS)'
10984 STMP_FIXINC=stmp-fixinc
10986 # And these apply if build != host, or we are generating coverage data
10987 if test x$build != x$host || test "x$coverage_flags" != x
10988 then
10989 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10990 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10993 # Expand extra_headers to include complete path.
10994 # This substitutes for lots of t-* files.
10995 extra_headers_list=
10996 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10997 for file in ${extra_headers} ; do
10998 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10999 done
11001 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11002 if test x"$use_gcc_tgmath" = xyes
11003 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11006 # Define collect2 in Makefile.
11007 case $host_can_use_collect2 in
11008 no) collect2= ;;
11009 *) collect2='collect2$(exeext)' ;;
11010 esac
11013 # Add a definition of USE_COLLECT2 if system wants one.
11014 case $use_collect2 in
11015 no) use_collect2= ;;
11016 "") ;;
11018 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11019 xm_defines="${xm_defines} USE_COLLECT2"
11020 case $host_can_use_collect2 in
11022 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11024 esac
11026 esac
11028 # ---------------------------
11029 # Assembler & linker features
11030 # ---------------------------
11032 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11033 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11034 # However when ld-new is first executed from the build tree, libtool will
11035 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11036 # to the build tree. While doing this we need to use the previous-stage
11037 # linker, or we have an infinite loop. The presence of a shell script as
11038 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11039 # the gcc/collect-ld script. So we need to know how libtool works, or
11040 # exec-tool will fail.
11043 case `pwd` in
11044 *\ * | *\ *)
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11046 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11047 esac
11051 macro_version='2.2.7a'
11052 macro_revision='1.3134'
11066 ltmain="$ac_aux_dir/ltmain.sh"
11068 # Backslashify metacharacters that are still active within
11069 # double-quoted strings.
11070 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11072 # Same as above, but do not quote variable references.
11073 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11075 # Sed substitution to delay expansion of an escaped shell variable in a
11076 # double_quote_subst'ed string.
11077 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11079 # Sed substitution to delay expansion of an escaped single quote.
11080 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11082 # Sed substitution to avoid accidental globbing in evaled expressions
11083 no_glob_subst='s/\*/\\\*/g'
11085 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11086 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11087 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11090 $as_echo_n "checking how to print strings... " >&6; }
11091 # Test print first, because it will be a builtin if present.
11092 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11093 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11094 ECHO='print -r --'
11095 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11096 ECHO='printf %s\n'
11097 else
11098 # Use this function as a fallback that always works.
11099 func_fallback_echo ()
11101 eval 'cat <<_LTECHO_EOF
11103 _LTECHO_EOF'
11105 ECHO='func_fallback_echo'
11108 # func_echo_all arg...
11109 # Invoke $ECHO with all args, space-separated.
11110 func_echo_all ()
11112 $ECHO ""
11115 case "$ECHO" in
11116 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11117 $as_echo "printf" >&6; } ;;
11118 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11119 $as_echo "print -r" >&6; } ;;
11120 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11121 $as_echo "cat" >&6; } ;;
11122 esac
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11138 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11139 if test "${ac_cv_path_SED+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11143 for ac_i in 1 2 3 4 5 6 7; do
11144 ac_script="$ac_script$as_nl$ac_script"
11145 done
11146 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11147 { ac_script=; unset ac_script;}
11148 if test -z "$SED"; then
11149 ac_path_SED_found=false
11150 # Loop through the user's path and test for each of PROGNAME-LIST
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11154 IFS=$as_save_IFS
11155 test -z "$as_dir" && as_dir=.
11156 for ac_prog in sed gsed; do
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11159 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11160 # Check for GNU ac_path_SED and select it if it is found.
11161 # Check for GNU $ac_path_SED
11162 case `"$ac_path_SED" --version 2>&1` in
11163 *GNU*)
11164 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11166 ac_count=0
11167 $as_echo_n 0123456789 >"conftest.in"
11168 while :
11170 cat "conftest.in" "conftest.in" >"conftest.tmp"
11171 mv "conftest.tmp" "conftest.in"
11172 cp "conftest.in" "conftest.nl"
11173 $as_echo '' >> "conftest.nl"
11174 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11176 as_fn_arith $ac_count + 1 && ac_count=$as_val
11177 if test $ac_count -gt ${ac_path_SED_max-0}; then
11178 # Best one so far, save it but keep looking for a better one
11179 ac_cv_path_SED="$ac_path_SED"
11180 ac_path_SED_max=$ac_count
11182 # 10*(2^10) chars as input seems more than enough
11183 test $ac_count -gt 10 && break
11184 done
11185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11186 esac
11188 $ac_path_SED_found && break 3
11189 done
11190 done
11191 done
11192 IFS=$as_save_IFS
11193 if test -z "$ac_cv_path_SED"; then
11194 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11196 else
11197 ac_cv_path_SED=$SED
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11202 $as_echo "$ac_cv_path_SED" >&6; }
11203 SED="$ac_cv_path_SED"
11204 rm -f conftest.sed
11206 test -z "$SED" && SED=sed
11207 Xsed="$SED -e 1s/^X//"
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11220 $as_echo_n "checking for fgrep... " >&6; }
11221 if test "${ac_cv_path_FGREP+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11225 then ac_cv_path_FGREP="$GREP -F"
11226 else
11227 if test -z "$FGREP"; then
11228 ac_path_FGREP_found=false
11229 # Loop through the user's path and test for each of PROGNAME-LIST
11230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_prog in fgrep; do
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11238 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11239 # Check for GNU ac_path_FGREP and select it if it is found.
11240 # Check for GNU $ac_path_FGREP
11241 case `"$ac_path_FGREP" --version 2>&1` in
11242 *GNU*)
11243 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11245 ac_count=0
11246 $as_echo_n 0123456789 >"conftest.in"
11247 while :
11249 cat "conftest.in" "conftest.in" >"conftest.tmp"
11250 mv "conftest.tmp" "conftest.in"
11251 cp "conftest.in" "conftest.nl"
11252 $as_echo 'FGREP' >> "conftest.nl"
11253 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11255 as_fn_arith $ac_count + 1 && ac_count=$as_val
11256 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11257 # Best one so far, save it but keep looking for a better one
11258 ac_cv_path_FGREP="$ac_path_FGREP"
11259 ac_path_FGREP_max=$ac_count
11261 # 10*(2^10) chars as input seems more than enough
11262 test $ac_count -gt 10 && break
11263 done
11264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11265 esac
11267 $ac_path_FGREP_found && break 3
11268 done
11269 done
11270 done
11271 IFS=$as_save_IFS
11272 if test -z "$ac_cv_path_FGREP"; then
11273 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11275 else
11276 ac_cv_path_FGREP=$FGREP
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11282 $as_echo "$ac_cv_path_FGREP" >&6; }
11283 FGREP="$ac_cv_path_FGREP"
11286 test -z "$GREP" && GREP=grep
11306 # Check whether --with-gnu-ld was given.
11307 if test "${with_gnu_ld+set}" = set; then :
11308 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11309 else
11310 with_gnu_ld=no
11313 ac_prog=ld
11314 if test "$GCC" = yes; then
11315 # Check if gcc -print-prog-name=ld gives a path.
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11317 $as_echo_n "checking for ld used by $CC... " >&6; }
11318 case $host in
11319 *-*-mingw*)
11320 # gcc leaves a trailing carriage return which upsets mingw
11321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11324 esac
11325 case $ac_prog in
11326 # Accept absolute paths.
11327 [\\/]* | ?:[\\/]*)
11328 re_direlt='/[^/][^/]*/\.\./'
11329 # Canonicalize the pathname of ld
11330 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11331 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11332 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11333 done
11334 test -z "$LD" && LD="$ac_prog"
11337 # If it fails, then pretend we aren't using GCC.
11338 ac_prog=ld
11341 # If it is relative, then search for the first ld in PATH.
11342 with_gnu_ld=unknown
11344 esac
11345 elif test "$with_gnu_ld" = yes; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11347 $as_echo_n "checking for GNU ld... " >&6; }
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11350 $as_echo_n "checking for non-GNU ld... " >&6; }
11352 if test "${lt_cv_path_LD+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 if test -z "$LD"; then
11356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11357 for ac_dir in $PATH; do
11358 IFS="$lt_save_ifs"
11359 test -z "$ac_dir" && ac_dir=.
11360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11361 lt_cv_path_LD="$ac_dir/$ac_prog"
11362 # Check to see if the program is GNU ld. I'd rather use --version,
11363 # but apparently some variants of GNU ld only accept -v.
11364 # Break only if it was the GNU/non-GNU ld that we prefer.
11365 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11366 *GNU* | *'with BFD'*)
11367 test "$with_gnu_ld" != no && break
11370 test "$with_gnu_ld" != yes && break
11372 esac
11374 done
11375 IFS="$lt_save_ifs"
11376 else
11377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11381 LD="$lt_cv_path_LD"
11382 if test -n "$LD"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11384 $as_echo "$LD" >&6; }
11385 else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11389 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11391 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11392 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11396 case `$LD -v 2>&1 </dev/null` in
11397 *GNU* | *'with BFD'*)
11398 lt_cv_prog_gnu_ld=yes
11401 lt_cv_prog_gnu_ld=no
11403 esac
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11406 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11407 with_gnu_ld=$lt_cv_prog_gnu_ld
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11418 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11419 if test "${lt_cv_path_NM+set}" = set; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 if test -n "$NM"; then
11423 # Let the user override the test.
11424 lt_cv_path_NM="$NM"
11425 else
11426 lt_nm_to_check="${ac_tool_prefix}nm"
11427 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11428 lt_nm_to_check="$lt_nm_to_check nm"
11430 for lt_tmp_nm in $lt_nm_to_check; do
11431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11432 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11433 IFS="$lt_save_ifs"
11434 test -z "$ac_dir" && ac_dir=.
11435 tmp_nm="$ac_dir/$lt_tmp_nm"
11436 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11437 # Check to see if the nm accepts a BSD-compat flag.
11438 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11439 # nm: unknown option "B" ignored
11440 # Tru64's nm complains that /dev/null is an invalid object file
11441 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11442 */dev/null* | *'Invalid file or object type'*)
11443 lt_cv_path_NM="$tmp_nm -B"
11444 break
11447 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11448 */dev/null*)
11449 lt_cv_path_NM="$tmp_nm -p"
11450 break
11453 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11454 continue # so that we can try to find one that supports BSD flags
11456 esac
11458 esac
11460 done
11461 IFS="$lt_save_ifs"
11462 done
11463 : ${lt_cv_path_NM=no}
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11467 $as_echo "$lt_cv_path_NM" >&6; }
11468 if test "$lt_cv_path_NM" != "no"; then
11469 NM="$lt_cv_path_NM"
11470 else
11471 # Didn't find any BSD compatible name lister, look for dumpbin.
11472 if test -n "$DUMPBIN"; then :
11473 # Let the user override the test.
11474 else
11475 if test -n "$ac_tool_prefix"; then
11476 for ac_prog in dumpbin "link -dump"
11478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 if test -n "$DUMPBIN"; then
11486 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11487 else
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11495 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 break 2
11499 done
11500 done
11501 IFS=$as_save_IFS
11505 DUMPBIN=$ac_cv_prog_DUMPBIN
11506 if test -n "$DUMPBIN"; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11508 $as_echo "$DUMPBIN" >&6; }
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511 $as_echo "no" >&6; }
11515 test -n "$DUMPBIN" && break
11516 done
11518 if test -z "$DUMPBIN"; then
11519 ac_ct_DUMPBIN=$DUMPBIN
11520 for ac_prog in dumpbin "link -dump"
11522 # Extract the first word of "$ac_prog", so it can be a program name with args.
11523 set dummy $ac_prog; ac_word=$2
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11525 $as_echo_n "checking for $ac_word... " >&6; }
11526 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 if test -n "$ac_ct_DUMPBIN"; then
11530 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11531 else
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH
11535 IFS=$as_save_IFS
11536 test -z "$as_dir" && as_dir=.
11537 for ac_exec_ext in '' $ac_executable_extensions; do
11538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11539 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 break 2
11543 done
11544 done
11545 IFS=$as_save_IFS
11549 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11550 if test -n "$ac_ct_DUMPBIN"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11552 $as_echo "$ac_ct_DUMPBIN" >&6; }
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11559 test -n "$ac_ct_DUMPBIN" && break
11560 done
11562 if test "x$ac_ct_DUMPBIN" = x; then
11563 DUMPBIN=":"
11564 else
11565 case $cross_compiling:$ac_tool_warned in
11566 yes:)
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11569 ac_tool_warned=yes ;;
11570 esac
11571 DUMPBIN=$ac_ct_DUMPBIN
11575 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11576 *COFF*)
11577 DUMPBIN="$DUMPBIN -symbols"
11580 DUMPBIN=:
11582 esac
11585 if test "$DUMPBIN" != ":"; then
11586 NM="$DUMPBIN"
11589 test -z "$NM" && NM=nm
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11597 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11598 if test "${lt_cv_nm_interface+set}" = set; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 lt_cv_nm_interface="BSD nm"
11602 echo "int some_variable = 0;" > conftest.$ac_ext
11603 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11604 (eval "$ac_compile" 2>conftest.err)
11605 cat conftest.err >&5
11606 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11607 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11608 cat conftest.err >&5
11609 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11610 cat conftest.out >&5
11611 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11612 lt_cv_nm_interface="MS dumpbin"
11614 rm -f conftest*
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11617 $as_echo "$lt_cv_nm_interface" >&6; }
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11620 $as_echo_n "checking whether ln -s works... " >&6; }
11621 LN_S=$as_ln_s
11622 if test "$LN_S" = "ln -s"; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11624 $as_echo "yes" >&6; }
11625 else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11627 $as_echo "no, using $LN_S" >&6; }
11630 # find the maximum length of command line arguments
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11632 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11633 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11637 teststring="ABCD"
11639 case $build_os in
11640 msdosdjgpp*)
11641 # On DJGPP, this test can blow up pretty badly due to problems in libc
11642 # (any single argument exceeding 2000 bytes causes a buffer overrun
11643 # during glob expansion). Even if it were fixed, the result of this
11644 # check would be larger than it should be.
11645 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11648 gnu*)
11649 # Under GNU Hurd, this test is not required because there is
11650 # no limit to the length of command line arguments.
11651 # Libtool will interpret -1 as no limit whatsoever
11652 lt_cv_sys_max_cmd_len=-1;
11655 cygwin* | mingw* | cegcc*)
11656 # On Win9x/ME, this test blows up -- it succeeds, but takes
11657 # about 5 minutes as the teststring grows exponentially.
11658 # Worse, since 9x/ME are not pre-emptively multitasking,
11659 # you end up with a "frozen" computer, even though with patience
11660 # the test eventually succeeds (with a max line length of 256k).
11661 # Instead, let's just punt: use the minimum linelength reported by
11662 # all of the supported platforms: 8192 (on NT/2K/XP).
11663 lt_cv_sys_max_cmd_len=8192;
11666 mint*)
11667 # On MiNT this can take a long time and run out of memory.
11668 lt_cv_sys_max_cmd_len=8192;
11671 amigaos*)
11672 # On AmigaOS with pdksh, this test takes hours, literally.
11673 # So we just punt and use a minimum line length of 8192.
11674 lt_cv_sys_max_cmd_len=8192;
11677 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11678 # This has been around since 386BSD, at least. Likely further.
11679 if test -x /sbin/sysctl; then
11680 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11681 elif test -x /usr/sbin/sysctl; then
11682 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11683 else
11684 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11686 # And add a safety zone
11687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11691 interix*)
11692 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11693 lt_cv_sys_max_cmd_len=196608
11696 osf*)
11697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11699 # nice to cause kernel panics so lets avoid the loop below.
11700 # First set a reasonable default.
11701 lt_cv_sys_max_cmd_len=16384
11703 if test -x /sbin/sysconfig; then
11704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11706 esac
11709 sco3.2v5*)
11710 lt_cv_sys_max_cmd_len=102400
11712 sysv5* | sco5v6* | sysv4.2uw2*)
11713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11714 if test -n "$kargmax"; then
11715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11716 else
11717 lt_cv_sys_max_cmd_len=32768
11721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11722 if test -n "$lt_cv_sys_max_cmd_len"; then
11723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11725 else
11726 # Make teststring a little bigger before we do anything with it.
11727 # a 1K string should be a reasonable start.
11728 for i in 1 2 3 4 5 6 7 8 ; do
11729 teststring=$teststring$teststring
11730 done
11731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11732 # If test is not a shell built-in, we'll probably end up computing a
11733 # maximum length that is only half of the actual maximum length, but
11734 # we can't tell.
11735 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11736 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11737 test $i != 17 # 1/2 MB should be enough
11739 i=`expr $i + 1`
11740 teststring=$teststring$teststring
11741 done
11742 # Only check the string length outside the loop.
11743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11744 teststring=
11745 # Add a significant safety factor because C++ compilers can tack on
11746 # massive amounts of additional arguments before passing them to the
11747 # linker. It appears as though 1/2 is a usable value.
11748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11751 esac
11755 if test -n $lt_cv_sys_max_cmd_len ; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11758 else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11760 $as_echo "none" >&6; }
11762 max_cmd_len=$lt_cv_sys_max_cmd_len
11769 : ${CP="cp -f"}
11770 : ${MV="mv -f"}
11771 : ${RM="rm -f"}
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11774 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11775 # Try some XSI features
11776 xsi_shell=no
11777 ( _lt_dummy="a/b/c"
11778 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11779 = c,a/b,, \
11780 && eval 'test $(( 1 + 1 )) -eq 2 \
11781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11782 && xsi_shell=yes
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11784 $as_echo "$xsi_shell" >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11788 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11789 lt_shell_append=no
11790 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11791 >/dev/null 2>&1 \
11792 && lt_shell_append=yes
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11794 $as_echo "$lt_shell_append" >&6; }
11797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11798 lt_unset=unset
11799 else
11800 lt_unset=false
11807 # test EBCDIC or ASCII
11808 case `echo X|tr X '\101'` in
11809 A) # ASCII based system
11810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11811 lt_SP2NL='tr \040 \012'
11812 lt_NL2SP='tr \015\012 \040\040'
11814 *) # EBCDIC based system
11815 lt_SP2NL='tr \100 \n'
11816 lt_NL2SP='tr \r\n \100\100'
11818 esac
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11829 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11830 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 lt_cv_ld_reload_flag='-r'
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11836 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11837 reload_flag=$lt_cv_ld_reload_flag
11838 case $reload_flag in
11839 "" | " "*) ;;
11840 *) reload_flag=" $reload_flag" ;;
11841 esac
11842 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11843 case $host_os in
11844 darwin*)
11845 if test "$GCC" = yes; then
11846 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11847 else
11848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11851 esac
11861 if test -n "$ac_tool_prefix"; then
11862 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11863 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 if test -n "$OBJDUMP"; then
11870 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11871 else
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11883 done
11884 done
11885 IFS=$as_save_IFS
11889 OBJDUMP=$ac_cv_prog_OBJDUMP
11890 if test -n "$OBJDUMP"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11892 $as_echo "$OBJDUMP" >&6; }
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11900 if test -z "$ac_cv_prog_OBJDUMP"; then
11901 ac_ct_OBJDUMP=$OBJDUMP
11902 # Extract the first word of "objdump", so it can be a program name with args.
11903 set dummy objdump; ac_word=$2
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905 $as_echo_n "checking for $ac_word... " >&6; }
11906 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 if test -n "$ac_ct_OBJDUMP"; then
11910 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11911 else
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11919 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11923 done
11924 done
11925 IFS=$as_save_IFS
11929 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11930 if test -n "$ac_ct_OBJDUMP"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11932 $as_echo "$ac_ct_OBJDUMP" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11938 if test "x$ac_ct_OBJDUMP" = x; then
11939 OBJDUMP="false"
11940 else
11941 case $cross_compiling:$ac_tool_warned in
11942 yes:)
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11945 ac_tool_warned=yes ;;
11946 esac
11947 OBJDUMP=$ac_ct_OBJDUMP
11949 else
11950 OBJDUMP="$ac_cv_prog_OBJDUMP"
11953 test -z "$OBJDUMP" && OBJDUMP=objdump
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11964 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11965 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 lt_cv_file_magic_cmd='$MAGIC_CMD'
11969 lt_cv_file_magic_test_file=
11970 lt_cv_deplibs_check_method='unknown'
11971 # Need to set the preceding variable on all platforms that support
11972 # interlibrary dependencies.
11973 # 'none' -- dependencies not supported.
11974 # `unknown' -- same as none, but documents that we really don't know.
11975 # 'pass_all' -- all dependencies passed with no checks.
11976 # 'test_compile' -- check by making test program.
11977 # 'file_magic [[regex]]' -- check by looking for files in library path
11978 # which responds to the $file_magic_cmd with a given extended regex.
11979 # If you have `file' or equivalent on your system and you're not sure
11980 # whether `pass_all' will *always* work, you probably want this one.
11982 case $host_os in
11983 aix[4-9]*)
11984 lt_cv_deplibs_check_method=pass_all
11987 beos*)
11988 lt_cv_deplibs_check_method=pass_all
11991 bsdi[45]*)
11992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11993 lt_cv_file_magic_cmd='/usr/bin/file -L'
11994 lt_cv_file_magic_test_file=/shlib/libc.so
11997 cygwin*)
11998 # func_win32_libid is a shell function defined in ltmain.sh
11999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12000 lt_cv_file_magic_cmd='func_win32_libid'
12003 mingw* | pw32*)
12004 # Base MSYS/MinGW do not provide the 'file' command needed by
12005 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12006 # unless we find 'file', for example because we are cross-compiling.
12007 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12008 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12010 lt_cv_file_magic_cmd='func_win32_libid'
12011 else
12012 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12013 lt_cv_file_magic_cmd='$OBJDUMP -f'
12017 cegcc*)
12018 # use the weaker test based on 'objdump'. See mingw*.
12019 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12020 lt_cv_file_magic_cmd='$OBJDUMP -f'
12023 darwin* | rhapsody*)
12024 lt_cv_deplibs_check_method=pass_all
12027 freebsd* | dragonfly*)
12028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12029 case $host_cpu in
12030 i*86 )
12031 # Not sure whether the presence of OpenBSD here was a mistake.
12032 # Let's accept both of them until this is cleared up.
12033 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12034 lt_cv_file_magic_cmd=/usr/bin/file
12035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12037 esac
12038 else
12039 lt_cv_deplibs_check_method=pass_all
12043 gnu*)
12044 lt_cv_deplibs_check_method=pass_all
12047 haiku*)
12048 lt_cv_deplibs_check_method=pass_all
12051 hpux10.20* | hpux11*)
12052 lt_cv_file_magic_cmd=/usr/bin/file
12053 case $host_cpu in
12054 ia64*)
12055 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12056 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12058 hppa*64*)
12059 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]'
12060 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12063 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12064 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12066 esac
12069 interix[3-9]*)
12070 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12074 irix5* | irix6* | nonstopux*)
12075 case $LD in
12076 *-32|*"-32 ") libmagic=32-bit;;
12077 *-n32|*"-n32 ") libmagic=N32;;
12078 *-64|*"-64 ") libmagic=64-bit;;
12079 *) libmagic=never-match;;
12080 esac
12081 lt_cv_deplibs_check_method=pass_all
12084 # This must be Linux ELF.
12085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12086 lt_cv_deplibs_check_method=pass_all
12089 netbsd*)
12090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12092 else
12093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12097 newos6*)
12098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12099 lt_cv_file_magic_cmd=/usr/bin/file
12100 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12103 *nto* | *qnx*)
12104 lt_cv_deplibs_check_method=pass_all
12107 openbsd*)
12108 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12110 else
12111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12115 osf3* | osf4* | osf5*)
12116 lt_cv_deplibs_check_method=pass_all
12119 rdos*)
12120 lt_cv_deplibs_check_method=pass_all
12123 solaris*)
12124 lt_cv_deplibs_check_method=pass_all
12127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12128 lt_cv_deplibs_check_method=pass_all
12131 sysv4 | sysv4.3*)
12132 case $host_vendor in
12133 motorola)
12134 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]'
12135 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12137 ncr)
12138 lt_cv_deplibs_check_method=pass_all
12140 sequent)
12141 lt_cv_file_magic_cmd='/bin/file'
12142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12144 sni)
12145 lt_cv_file_magic_cmd='/bin/file'
12146 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12147 lt_cv_file_magic_test_file=/lib/libc.so
12149 siemens)
12150 lt_cv_deplibs_check_method=pass_all
12153 lt_cv_deplibs_check_method=pass_all
12155 esac
12158 tpf*)
12159 lt_cv_deplibs_check_method=pass_all
12161 esac
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12165 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12166 file_magic_cmd=$lt_cv_file_magic_cmd
12167 deplibs_check_method=$lt_cv_deplibs_check_method
12168 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12181 if test -n "$ac_tool_prefix"; then
12182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12183 set dummy ${ac_tool_prefix}ar; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if test "${ac_cv_prog_AR+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
12188 else
12189 if test -n "$AR"; then
12190 ac_cv_prog_AR="$AR" # Let the user override the test.
12191 else
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12199 ac_cv_prog_AR="${ac_tool_prefix}ar"
12200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12201 break 2
12203 done
12204 done
12205 IFS=$as_save_IFS
12209 AR=$ac_cv_prog_AR
12210 if test -n "$AR"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12212 $as_echo "$AR" >&6; }
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12220 if test -z "$ac_cv_prog_AR"; then
12221 ac_ct_AR=$AR
12222 # Extract the first word of "ar", so it can be a program name with args.
12223 set dummy ar; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 if test -n "$ac_ct_AR"; then
12230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12231 else
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_prog_ac_ct_AR="ar"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12243 done
12244 done
12245 IFS=$as_save_IFS
12249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12250 if test -n "$ac_ct_AR"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12252 $as_echo "$ac_ct_AR" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12258 if test "x$ac_ct_AR" = x; then
12259 AR="false"
12260 else
12261 case $cross_compiling:$ac_tool_warned in
12262 yes:)
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12265 ac_tool_warned=yes ;;
12266 esac
12267 AR=$ac_ct_AR
12269 else
12270 AR="$ac_cv_prog_AR"
12273 test -z "$AR" && AR=ar
12274 test -z "$AR_FLAGS" && AR_FLAGS=cru
12286 if test -n "$ac_tool_prefix"; then
12287 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12288 set dummy ${ac_tool_prefix}strip; ac_word=$2
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12290 $as_echo_n "checking for $ac_word... " >&6; }
12291 if test "${ac_cv_prog_STRIP+set}" = set; then :
12292 $as_echo_n "(cached) " >&6
12293 else
12294 if test -n "$STRIP"; then
12295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12296 else
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in $PATH
12300 IFS=$as_save_IFS
12301 test -z "$as_dir" && as_dir=.
12302 for ac_exec_ext in '' $ac_executable_extensions; do
12303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12304 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12306 break 2
12308 done
12309 done
12310 IFS=$as_save_IFS
12314 STRIP=$ac_cv_prog_STRIP
12315 if test -n "$STRIP"; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12317 $as_echo "$STRIP" >&6; }
12318 else
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12325 if test -z "$ac_cv_prog_STRIP"; then
12326 ac_ct_STRIP=$STRIP
12327 # Extract the first word of "strip", so it can be a program name with args.
12328 set dummy strip; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 if test -n "$ac_ct_STRIP"; then
12335 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12336 else
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12340 IFS=$as_save_IFS
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12344 ac_cv_prog_ac_ct_STRIP="strip"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346 break 2
12348 done
12349 done
12350 IFS=$as_save_IFS
12354 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12355 if test -n "$ac_ct_STRIP"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12357 $as_echo "$ac_ct_STRIP" >&6; }
12358 else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12363 if test "x$ac_ct_STRIP" = x; then
12364 STRIP=":"
12365 else
12366 case $cross_compiling:$ac_tool_warned in
12367 yes:)
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12370 ac_tool_warned=yes ;;
12371 esac
12372 STRIP=$ac_ct_STRIP
12374 else
12375 STRIP="$ac_cv_prog_STRIP"
12378 test -z "$STRIP" && STRIP=:
12385 if test -n "$ac_tool_prefix"; then
12386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 if test -n "$RANLIB"; then
12394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12395 else
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12399 IFS=$as_save_IFS
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 break 2
12407 done
12408 done
12409 IFS=$as_save_IFS
12413 RANLIB=$ac_cv_prog_RANLIB
12414 if test -n "$RANLIB"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12416 $as_echo "$RANLIB" >&6; }
12417 else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12424 if test -z "$ac_cv_prog_RANLIB"; then
12425 ac_ct_RANLIB=$RANLIB
12426 # Extract the first word of "ranlib", so it can be a program name with args.
12427 set dummy ranlib; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 if test -n "$ac_ct_RANLIB"; then
12434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12435 else
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_prog_ac_ct_RANLIB="ranlib"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445 break 2
12447 done
12448 done
12449 IFS=$as_save_IFS
12453 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12454 if test -n "$ac_ct_RANLIB"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12456 $as_echo "$ac_ct_RANLIB" >&6; }
12457 else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12462 if test "x$ac_ct_RANLIB" = x; then
12463 RANLIB=":"
12464 else
12465 case $cross_compiling:$ac_tool_warned in
12466 yes:)
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12469 ac_tool_warned=yes ;;
12470 esac
12471 RANLIB=$ac_ct_RANLIB
12473 else
12474 RANLIB="$ac_cv_prog_RANLIB"
12477 test -z "$RANLIB" && RANLIB=:
12484 # Determine commands to create old-style static archives.
12485 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12486 old_postinstall_cmds='chmod 644 $oldlib'
12487 old_postuninstall_cmds=
12489 if test -n "$RANLIB"; then
12490 case $host_os in
12491 openbsd*)
12492 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12495 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12497 esac
12498 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12501 case $host_os in
12502 darwin*)
12503 lock_old_archive_extraction=yes ;;
12505 lock_old_archive_extraction=no ;;
12506 esac
12546 # If no C compiler was specified, use CC.
12547 LTCC=${LTCC-"$CC"}
12549 # If no C compiler flags were specified, use CFLAGS.
12550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12552 # Allow CC to be a program name with arguments.
12553 compiler=$CC
12556 # Check for command to grab the raw symbol name followed by C symbol from nm.
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12558 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12559 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12563 # These are sane defaults that work on at least a few old systems.
12564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12566 # Character class describing NM global symbol codes.
12567 symcode='[BCDEGRST]'
12569 # Regexp to match symbols that can be accessed directly from C.
12570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12572 # Define system-specific variables.
12573 case $host_os in
12574 aix*)
12575 symcode='[BCDT]'
12577 cygwin* | mingw* | pw32* | cegcc*)
12578 symcode='[ABCDGISTW]'
12580 hpux*)
12581 if test "$host_cpu" = ia64; then
12582 symcode='[ABCDEGRST]'
12585 irix* | nonstopux*)
12586 symcode='[BCDEGRST]'
12588 osf*)
12589 symcode='[BCDEGQRST]'
12591 solaris*)
12592 symcode='[BDRT]'
12594 sco3.2v5*)
12595 symcode='[DT]'
12597 sysv4.2uw2*)
12598 symcode='[DT]'
12600 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12601 symcode='[ABDT]'
12603 sysv4)
12604 symcode='[DFNSTU]'
12606 esac
12608 # If we're using GNU nm, then use its standard symbol codes.
12609 case `$NM -V 2>&1` in
12610 *GNU* | *'with BFD'*)
12611 symcode='[ABCDGIRSTW]' ;;
12612 esac
12614 # Transform an extracted symbol line into a proper C declaration.
12615 # Some systems (esp. on ia64) link data and code symbols differently,
12616 # so use this general approach.
12617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12619 # Transform an extracted symbol line into symbol name and symbol address
12620 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12621 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'"
12623 # Handle CRLF in mingw tool chain
12624 opt_cr=
12625 case $build_os in
12626 mingw*)
12627 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12629 esac
12631 # Try without a prefix underscore, then with it.
12632 for ac_symprfx in "" "_"; do
12634 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12635 symxfrm="\\1 $ac_symprfx\\2 \\2"
12637 # Write the raw and C identifiers.
12638 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12639 # Fake it for dumpbin and say T for any non-static function
12640 # and D for any global variable.
12641 # Also find C++ and __fastcall symbols from MSVC++,
12642 # which start with @ or ?.
12643 lt_cv_sys_global_symbol_pipe="$AWK '"\
12644 " {last_section=section; section=\$ 3};"\
12645 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12646 " \$ 0!~/External *\|/{next};"\
12647 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12648 " {if(hide[section]) next};"\
12649 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12650 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12651 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12652 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12653 " ' prfx=^$ac_symprfx"
12654 else
12655 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12658 # Check to see that the pipe works correctly.
12659 pipe_works=no
12661 rm -f conftest*
12662 cat > conftest.$ac_ext <<_LT_EOF
12663 #ifdef __cplusplus
12664 extern "C" {
12665 #endif
12666 char nm_test_var;
12667 void nm_test_func(void);
12668 void nm_test_func(void){}
12669 #ifdef __cplusplus
12671 #endif
12672 int main(){nm_test_var='a';nm_test_func();return(0);}
12673 _LT_EOF
12675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12676 (eval $ac_compile) 2>&5
12677 ac_status=$?
12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12679 test $ac_status = 0; }; then
12680 # Now try to grab the symbols.
12681 nlist=conftest.nm
12682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12683 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12684 ac_status=$?
12685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12686 test $ac_status = 0; } && test -s "$nlist"; then
12687 # Try sorting and uniquifying the output.
12688 if sort "$nlist" | uniq > "$nlist"T; then
12689 mv -f "$nlist"T "$nlist"
12690 else
12691 rm -f "$nlist"T
12694 # Make sure that we snagged all the symbols we need.
12695 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12696 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12697 cat <<_LT_EOF > conftest.$ac_ext
12698 #ifdef __cplusplus
12699 extern "C" {
12700 #endif
12702 _LT_EOF
12703 # Now generate the symbol file.
12704 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12706 cat <<_LT_EOF >> conftest.$ac_ext
12708 /* The mapping between symbol names and symbols. */
12709 const struct {
12710 const char *name;
12711 void *address;
12713 lt__PROGRAM__LTX_preloaded_symbols[] =
12715 { "@PROGRAM@", (void *) 0 },
12716 _LT_EOF
12717 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12718 cat <<\_LT_EOF >> conftest.$ac_ext
12719 {0, (void *) 0}
12722 /* This works around a problem in FreeBSD linker */
12723 #ifdef FREEBSD_WORKAROUND
12724 static const void *lt_preloaded_setup() {
12725 return lt__PROGRAM__LTX_preloaded_symbols;
12727 #endif
12729 #ifdef __cplusplus
12731 #endif
12732 _LT_EOF
12733 # Now try linking the two files.
12734 mv conftest.$ac_objext conftstm.$ac_objext
12735 lt_save_LIBS="$LIBS"
12736 lt_save_CFLAGS="$CFLAGS"
12737 LIBS="conftstm.$ac_objext"
12738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12740 (eval $ac_link) 2>&5
12741 ac_status=$?
12742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12743 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12744 pipe_works=yes
12746 LIBS="$lt_save_LIBS"
12747 CFLAGS="$lt_save_CFLAGS"
12748 else
12749 echo "cannot find nm_test_func in $nlist" >&5
12751 else
12752 echo "cannot find nm_test_var in $nlist" >&5
12754 else
12755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12757 else
12758 echo "$progname: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12761 rm -rf conftest* conftst*
12763 # Do not use the global_symbol_pipe unless it works.
12764 if test "$pipe_works" = yes; then
12765 break
12766 else
12767 lt_cv_sys_global_symbol_pipe=
12769 done
12773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12774 lt_cv_sys_global_symbol_to_cdecl=
12776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12778 $as_echo "failed" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12781 $as_echo "ok" >&6; }
12805 # Check whether --enable-libtool-lock was given.
12806 if test "${enable_libtool_lock+set}" = set; then :
12807 enableval=$enable_libtool_lock;
12810 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12812 # Some flags need to be propagated to the compiler or linker for good
12813 # libtool support.
12814 case $host in
12815 ia64-*-hpux*)
12816 # Find out which ABI we are using.
12817 echo 'int i;' > conftest.$ac_ext
12818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12819 (eval $ac_compile) 2>&5
12820 ac_status=$?
12821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12822 test $ac_status = 0; }; then
12823 case `/usr/bin/file conftest.$ac_objext` in
12824 *ELF-32*)
12825 HPUX_IA64_MODE="32"
12827 *ELF-64*)
12828 HPUX_IA64_MODE="64"
12830 esac
12832 rm -rf conftest*
12834 *-*-irix6*)
12835 # Find out which ABI we are using.
12836 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12838 (eval $ac_compile) 2>&5
12839 ac_status=$?
12840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12841 test $ac_status = 0; }; then
12842 if test "$lt_cv_prog_gnu_ld" = yes; then
12843 case `/usr/bin/file conftest.$ac_objext` in
12844 *32-bit*)
12845 LD="${LD-ld} -melf32bsmip"
12847 *N32*)
12848 LD="${LD-ld} -melf32bmipn32"
12850 *64-bit*)
12851 LD="${LD-ld} -melf64bmip"
12853 esac
12854 else
12855 case `/usr/bin/file conftest.$ac_objext` in
12856 *32-bit*)
12857 LD="${LD-ld} -32"
12859 *N32*)
12860 LD="${LD-ld} -n32"
12862 *64-bit*)
12863 LD="${LD-ld} -64"
12865 esac
12868 rm -rf conftest*
12871 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12872 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12873 # Find out which ABI we are using.
12874 echo 'int i;' > conftest.$ac_ext
12875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12876 (eval $ac_compile) 2>&5
12877 ac_status=$?
12878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12879 test $ac_status = 0; }; then
12880 case `/usr/bin/file conftest.o` in
12881 *32-bit*)
12882 case $host in
12883 x86_64-*kfreebsd*-gnu)
12884 LD="${LD-ld} -m elf_i386_fbsd"
12886 x86_64-*linux*)
12887 LD="${LD-ld} -m elf_i386"
12889 ppc64-*linux*|powerpc64-*linux*)
12890 LD="${LD-ld} -m elf32ppclinux"
12892 s390x-*linux*)
12893 LD="${LD-ld} -m elf_s390"
12895 sparc64-*linux*)
12896 LD="${LD-ld} -m elf32_sparc"
12898 esac
12900 *64-bit*)
12901 case $host in
12902 x86_64-*kfreebsd*-gnu)
12903 LD="${LD-ld} -m elf_x86_64_fbsd"
12905 x86_64-*linux*)
12906 LD="${LD-ld} -m elf_x86_64"
12908 ppc*-*linux*|powerpc*-*linux*)
12909 LD="${LD-ld} -m elf64ppc"
12911 s390*-*linux*|s390*-*tpf*)
12912 LD="${LD-ld} -m elf64_s390"
12914 sparc*-*linux*)
12915 LD="${LD-ld} -m elf64_sparc"
12917 esac
12919 esac
12921 rm -rf conftest*
12924 *-*-sco3.2v5*)
12925 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12926 SAVE_CFLAGS="$CFLAGS"
12927 CFLAGS="$CFLAGS -belf"
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12929 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12930 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12931 $as_echo_n "(cached) " >&6
12932 else
12933 ac_ext=c
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12943 main ()
12947 return 0;
12949 _ACEOF
12950 if ac_fn_c_try_link "$LINENO"; then :
12951 lt_cv_cc_needs_belf=yes
12952 else
12953 lt_cv_cc_needs_belf=no
12955 rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12957 ac_ext=c
12958 ac_cpp='$CPP $CPPFLAGS'
12959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12965 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12966 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12967 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12968 CFLAGS="$SAVE_CFLAGS"
12971 sparc*-*solaris*)
12972 # Find out which ABI we are using.
12973 echo 'int i;' > conftest.$ac_ext
12974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12975 (eval $ac_compile) 2>&5
12976 ac_status=$?
12977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12978 test $ac_status = 0; }; then
12979 case `/usr/bin/file conftest.o` in
12980 *64-bit*)
12981 case $lt_cv_prog_gnu_ld in
12982 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12984 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12985 LD="${LD-ld} -64"
12988 esac
12990 esac
12992 rm -rf conftest*
12994 esac
12996 need_locks="$enable_libtool_lock"
12999 case $host_os in
13000 rhapsody* | darwin*)
13001 if test -n "$ac_tool_prefix"; then
13002 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13003 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 if test -n "$DSYMUTIL"; then
13010 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13011 else
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13023 done
13024 done
13025 IFS=$as_save_IFS
13029 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13030 if test -n "$DSYMUTIL"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13032 $as_echo "$DSYMUTIL" >&6; }
13033 else
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13040 if test -z "$ac_cv_prog_DSYMUTIL"; then
13041 ac_ct_DSYMUTIL=$DSYMUTIL
13042 # Extract the first word of "dsymutil", so it can be a program name with args.
13043 set dummy dsymutil; ac_word=$2
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13045 $as_echo_n "checking for $ac_word... " >&6; }
13046 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 if test -n "$ac_ct_DSYMUTIL"; then
13050 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13051 else
13052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053 for as_dir in $PATH
13055 IFS=$as_save_IFS
13056 test -z "$as_dir" && as_dir=.
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13059 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061 break 2
13063 done
13064 done
13065 IFS=$as_save_IFS
13069 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13070 if test -n "$ac_ct_DSYMUTIL"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13072 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13078 if test "x$ac_ct_DSYMUTIL" = x; then
13079 DSYMUTIL=":"
13080 else
13081 case $cross_compiling:$ac_tool_warned in
13082 yes:)
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13085 ac_tool_warned=yes ;;
13086 esac
13087 DSYMUTIL=$ac_ct_DSYMUTIL
13089 else
13090 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13093 if test -n "$ac_tool_prefix"; then
13094 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13095 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 if test -n "$NMEDIT"; then
13102 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13103 else
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113 break 2
13115 done
13116 done
13117 IFS=$as_save_IFS
13121 NMEDIT=$ac_cv_prog_NMEDIT
13122 if test -n "$NMEDIT"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13124 $as_echo "$NMEDIT" >&6; }
13125 else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13132 if test -z "$ac_cv_prog_NMEDIT"; then
13133 ac_ct_NMEDIT=$NMEDIT
13134 # Extract the first word of "nmedit", so it can be a program name with args.
13135 set dummy nmedit; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 if test -n "$ac_ct_NMEDIT"; then
13142 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13143 else
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 break 2
13155 done
13156 done
13157 IFS=$as_save_IFS
13161 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13162 if test -n "$ac_ct_NMEDIT"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13164 $as_echo "$ac_ct_NMEDIT" >&6; }
13165 else
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13170 if test "x$ac_ct_NMEDIT" = x; then
13171 NMEDIT=":"
13172 else
13173 case $cross_compiling:$ac_tool_warned in
13174 yes:)
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13177 ac_tool_warned=yes ;;
13178 esac
13179 NMEDIT=$ac_ct_NMEDIT
13181 else
13182 NMEDIT="$ac_cv_prog_NMEDIT"
13185 if test -n "$ac_tool_prefix"; then
13186 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13187 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189 $as_echo_n "checking for $ac_word... " >&6; }
13190 if test "${ac_cv_prog_LIPO+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 if test -n "$LIPO"; then
13194 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13195 else
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13203 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 break 2
13207 done
13208 done
13209 IFS=$as_save_IFS
13213 LIPO=$ac_cv_prog_LIPO
13214 if test -n "$LIPO"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13216 $as_echo "$LIPO" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13224 if test -z "$ac_cv_prog_LIPO"; then
13225 ac_ct_LIPO=$LIPO
13226 # Extract the first word of "lipo", so it can be a program name with args.
13227 set dummy lipo; ac_word=$2
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13229 $as_echo_n "checking for $ac_word... " >&6; }
13230 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13231 $as_echo_n "(cached) " >&6
13232 else
13233 if test -n "$ac_ct_LIPO"; then
13234 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13235 else
13236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237 for as_dir in $PATH
13239 IFS=$as_save_IFS
13240 test -z "$as_dir" && as_dir=.
13241 for ac_exec_ext in '' $ac_executable_extensions; do
13242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13243 ac_cv_prog_ac_ct_LIPO="lipo"
13244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13245 break 2
13247 done
13248 done
13249 IFS=$as_save_IFS
13253 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13254 if test -n "$ac_ct_LIPO"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13256 $as_echo "$ac_ct_LIPO" >&6; }
13257 else
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 $as_echo "no" >&6; }
13262 if test "x$ac_ct_LIPO" = x; then
13263 LIPO=":"
13264 else
13265 case $cross_compiling:$ac_tool_warned in
13266 yes:)
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13269 ac_tool_warned=yes ;;
13270 esac
13271 LIPO=$ac_ct_LIPO
13273 else
13274 LIPO="$ac_cv_prog_LIPO"
13277 if test -n "$ac_tool_prefix"; then
13278 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13279 set dummy ${ac_tool_prefix}otool; ac_word=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13281 $as_echo_n "checking for $ac_word... " >&6; }
13282 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13285 if test -n "$OTOOL"; then
13286 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13287 else
13288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289 for as_dir in $PATH
13291 IFS=$as_save_IFS
13292 test -z "$as_dir" && as_dir=.
13293 for ac_exec_ext in '' $ac_executable_extensions; do
13294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13295 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13297 break 2
13299 done
13300 done
13301 IFS=$as_save_IFS
13305 OTOOL=$ac_cv_prog_OTOOL
13306 if test -n "$OTOOL"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13308 $as_echo "$OTOOL" >&6; }
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13316 if test -z "$ac_cv_prog_OTOOL"; then
13317 ac_ct_OTOOL=$OTOOL
13318 # Extract the first word of "otool", so it can be a program name with args.
13319 set dummy otool; ac_word=$2
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321 $as_echo_n "checking for $ac_word... " >&6; }
13322 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13323 $as_echo_n "(cached) " >&6
13324 else
13325 if test -n "$ac_ct_OTOOL"; then
13326 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13327 else
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13331 IFS=$as_save_IFS
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13335 ac_cv_prog_ac_ct_OTOOL="otool"
13336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13337 break 2
13339 done
13340 done
13341 IFS=$as_save_IFS
13345 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13346 if test -n "$ac_ct_OTOOL"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13348 $as_echo "$ac_ct_OTOOL" >&6; }
13349 else
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13354 if test "x$ac_ct_OTOOL" = x; then
13355 OTOOL=":"
13356 else
13357 case $cross_compiling:$ac_tool_warned in
13358 yes:)
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13361 ac_tool_warned=yes ;;
13362 esac
13363 OTOOL=$ac_ct_OTOOL
13365 else
13366 OTOOL="$ac_cv_prog_OTOOL"
13369 if test -n "$ac_tool_prefix"; then
13370 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13371 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373 $as_echo_n "checking for $ac_word... " >&6; }
13374 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 if test -n "$OTOOL64"; then
13378 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13379 else
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13391 done
13392 done
13393 IFS=$as_save_IFS
13397 OTOOL64=$ac_cv_prog_OTOOL64
13398 if test -n "$OTOOL64"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13400 $as_echo "$OTOOL64" >&6; }
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13408 if test -z "$ac_cv_prog_OTOOL64"; then
13409 ac_ct_OTOOL64=$OTOOL64
13410 # Extract the first word of "otool64", so it can be a program name with args.
13411 set dummy otool64; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 if test -n "$ac_ct_OTOOL64"; then
13418 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13419 else
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427 ac_cv_prog_ac_ct_OTOOL64="otool64"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 break 2
13431 done
13432 done
13433 IFS=$as_save_IFS
13437 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13438 if test -n "$ac_ct_OTOOL64"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13440 $as_echo "$ac_ct_OTOOL64" >&6; }
13441 else
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13446 if test "x$ac_ct_OTOOL64" = x; then
13447 OTOOL64=":"
13448 else
13449 case $cross_compiling:$ac_tool_warned in
13450 yes:)
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13453 ac_tool_warned=yes ;;
13454 esac
13455 OTOOL64=$ac_ct_OTOOL64
13457 else
13458 OTOOL64="$ac_cv_prog_OTOOL64"
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13488 $as_echo_n "checking for -single_module linker flag... " >&6; }
13489 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 lt_cv_apple_cc_single_mod=no
13493 if test -z "${LT_MULTI_MODULE}"; then
13494 # By default we will add the -single_module flag. You can override
13495 # by either setting the environment variable LT_MULTI_MODULE
13496 # non-empty at configure time, or by adding -multi_module to the
13497 # link flags.
13498 rm -rf libconftest.dylib*
13499 echo "int foo(void){return 1;}" > conftest.c
13500 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13501 -dynamiclib -Wl,-single_module conftest.c" >&5
13502 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13503 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13504 _lt_result=$?
13505 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13506 lt_cv_apple_cc_single_mod=yes
13507 else
13508 cat conftest.err >&5
13510 rm -rf libconftest.dylib*
13511 rm -f conftest.*
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13515 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13517 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13518 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 lt_cv_ld_exported_symbols_list=no
13522 save_LDFLAGS=$LDFLAGS
13523 echo "_main" > conftest.sym
13524 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13529 main ()
13533 return 0;
13535 _ACEOF
13536 if ac_fn_c_try_link "$LINENO"; then :
13537 lt_cv_ld_exported_symbols_list=yes
13538 else
13539 lt_cv_ld_exported_symbols_list=no
13541 rm -f core conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext conftest.$ac_ext
13543 LDFLAGS="$save_LDFLAGS"
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13547 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13549 $as_echo_n "checking for -force_load linker flag... " >&6; }
13550 if test "${lt_cv_ld_force_load+set}" = set; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 lt_cv_ld_force_load=no
13554 cat > conftest.c << _LT_EOF
13555 int forced_loaded() { return 2;}
13556 _LT_EOF
13557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13559 echo "$AR cru libconftest.a conftest.o" >&5
13560 $AR cru libconftest.a conftest.o 2>&5
13561 cat > conftest.c << _LT_EOF
13562 int main() { return 0;}
13563 _LT_EOF
13564 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13565 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13566 _lt_result=$?
13567 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13568 lt_cv_ld_force_load=yes
13569 else
13570 cat conftest.err >&5
13572 rm -f conftest.err libconftest.a conftest conftest.c
13573 rm -rf conftest.dSYM
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13577 $as_echo "$lt_cv_ld_force_load" >&6; }
13578 case $host_os in
13579 rhapsody* | darwin1.[012])
13580 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13581 darwin1.*)
13582 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13583 darwin*) # darwin 5.x on
13584 # if running on 10.5 or later, the deployment target defaults
13585 # to the OS version, if on x86, and 10.4, the deployment
13586 # target defaults to 10.4. Don't you love it?
13587 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13588 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13589 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13590 10.[012]*)
13591 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13592 10.*)
13593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13594 esac
13596 esac
13597 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13598 _lt_dar_single_mod='$single_module'
13600 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13601 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13602 else
13603 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13605 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13606 _lt_dsymutil='~$DSYMUTIL $lib || :'
13607 else
13608 _lt_dsymutil=
13611 esac
13613 for ac_header in dlfcn.h
13614 do :
13615 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13616 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13617 cat >>confdefs.h <<_ACEOF
13618 #define HAVE_DLFCN_H 1
13619 _ACEOF
13622 done
13629 # Set options
13633 enable_dlopen=no
13636 enable_win32_dll=no
13639 # Check whether --enable-shared was given.
13640 if test "${enable_shared+set}" = set; then :
13641 enableval=$enable_shared; p=${PACKAGE-default}
13642 case $enableval in
13643 yes) enable_shared=yes ;;
13644 no) enable_shared=no ;;
13646 enable_shared=no
13647 # Look at the argument we got. We use all the common list separators.
13648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13649 for pkg in $enableval; do
13650 IFS="$lt_save_ifs"
13651 if test "X$pkg" = "X$p"; then
13652 enable_shared=yes
13654 done
13655 IFS="$lt_save_ifs"
13657 esac
13658 else
13659 enable_shared=yes
13670 # Check whether --enable-static was given.
13671 if test "${enable_static+set}" = set; then :
13672 enableval=$enable_static; p=${PACKAGE-default}
13673 case $enableval in
13674 yes) enable_static=yes ;;
13675 no) enable_static=no ;;
13677 enable_static=no
13678 # Look at the argument we got. We use all the common list separators.
13679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13680 for pkg in $enableval; do
13681 IFS="$lt_save_ifs"
13682 if test "X$pkg" = "X$p"; then
13683 enable_static=yes
13685 done
13686 IFS="$lt_save_ifs"
13688 esac
13689 else
13690 enable_static=yes
13702 # Check whether --with-pic was given.
13703 if test "${with_pic+set}" = set; then :
13704 withval=$with_pic; pic_mode="$withval"
13705 else
13706 pic_mode=default
13710 test -z "$pic_mode" && pic_mode=default
13718 # Check whether --enable-fast-install was given.
13719 if test "${enable_fast_install+set}" = set; then :
13720 enableval=$enable_fast_install; p=${PACKAGE-default}
13721 case $enableval in
13722 yes) enable_fast_install=yes ;;
13723 no) enable_fast_install=no ;;
13725 enable_fast_install=no
13726 # Look at the argument we got. We use all the common list separators.
13727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13728 for pkg in $enableval; do
13729 IFS="$lt_save_ifs"
13730 if test "X$pkg" = "X$p"; then
13731 enable_fast_install=yes
13733 done
13734 IFS="$lt_save_ifs"
13736 esac
13737 else
13738 enable_fast_install=yes
13751 # This can be used to rebuild libtool when needed
13752 LIBTOOL_DEPS="$ltmain"
13754 # Always use our own libtool.
13755 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13782 test -z "$LN_S" && LN_S="ln -s"
13797 if test -n "${ZSH_VERSION+set}" ; then
13798 setopt NO_GLOB_SUBST
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13802 $as_echo_n "checking for objdir... " >&6; }
13803 if test "${lt_cv_objdir+set}" = set; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 rm -f .libs 2>/dev/null
13807 mkdir .libs 2>/dev/null
13808 if test -d .libs; then
13809 lt_cv_objdir=.libs
13810 else
13811 # MS-DOS does not allow filenames that begin with a dot.
13812 lt_cv_objdir=_libs
13814 rmdir .libs 2>/dev/null
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13817 $as_echo "$lt_cv_objdir" >&6; }
13818 objdir=$lt_cv_objdir
13824 cat >>confdefs.h <<_ACEOF
13825 #define LT_OBJDIR "$lt_cv_objdir/"
13826 _ACEOF
13831 case $host_os in
13832 aix3*)
13833 # AIX sometimes has problems with the GCC collect2 program. For some
13834 # reason, if we set the COLLECT_NAMES environment variable, the problems
13835 # vanish in a puff of smoke.
13836 if test "X${COLLECT_NAMES+set}" != Xset; then
13837 COLLECT_NAMES=
13838 export COLLECT_NAMES
13841 esac
13843 # Global variables:
13844 ofile=libtool
13845 can_build_shared=yes
13847 # All known linkers require a `.a' archive for static linking (except MSVC,
13848 # which needs '.lib').
13849 libext=a
13851 with_gnu_ld="$lt_cv_prog_gnu_ld"
13853 old_CC="$CC"
13854 old_CFLAGS="$CFLAGS"
13856 # Set sane defaults for various variables
13857 test -z "$CC" && CC=cc
13858 test -z "$LTCC" && LTCC=$CC
13859 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13860 test -z "$LD" && LD=ld
13861 test -z "$ac_objext" && ac_objext=o
13863 for cc_temp in $compiler""; do
13864 case $cc_temp in
13865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13867 \-*) ;;
13868 *) break;;
13869 esac
13870 done
13871 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13874 # Only perform the check for file, if the check method requires it
13875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13876 case $deplibs_check_method in
13877 file_magic*)
13878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13880 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13881 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 case $MAGIC_CMD in
13885 [\\/*] | ?:[\\/]*)
13886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13889 lt_save_MAGIC_CMD="$MAGIC_CMD"
13890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13892 for ac_dir in $ac_dummy; do
13893 IFS="$lt_save_ifs"
13894 test -z "$ac_dir" && ac_dir=.
13895 if test -f $ac_dir/${ac_tool_prefix}file; then
13896 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13897 if test -n "$file_magic_test_file"; then
13898 case $deplibs_check_method in
13899 "file_magic "*)
13900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13903 $EGREP "$file_magic_regex" > /dev/null; then
13905 else
13906 cat <<_LT_EOF 1>&2
13908 *** Warning: the command libtool uses to detect shared libraries,
13909 *** $file_magic_cmd, produces output that libtool cannot recognize.
13910 *** The result is that libtool may fail to recognize shared libraries
13911 *** as such. This will affect the creation of libtool libraries that
13912 *** depend on shared libraries, but programs linked with such libtool
13913 *** libraries will work regardless of this problem. Nevertheless, you
13914 *** may want to report the problem to your system manager and/or to
13915 *** bug-libtool@gnu.org
13917 _LT_EOF
13918 fi ;;
13919 esac
13921 break
13923 done
13924 IFS="$lt_save_ifs"
13925 MAGIC_CMD="$lt_save_MAGIC_CMD"
13927 esac
13930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13931 if test -n "$MAGIC_CMD"; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13933 $as_echo "$MAGIC_CMD" >&6; }
13934 else
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936 $as_echo "no" >&6; }
13943 if test -z "$lt_cv_path_MAGIC_CMD"; then
13944 if test -n "$ac_tool_prefix"; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13946 $as_echo_n "checking for file... " >&6; }
13947 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 case $MAGIC_CMD in
13951 [\\/*] | ?:[\\/]*)
13952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13955 lt_save_MAGIC_CMD="$MAGIC_CMD"
13956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13958 for ac_dir in $ac_dummy; do
13959 IFS="$lt_save_ifs"
13960 test -z "$ac_dir" && ac_dir=.
13961 if test -f $ac_dir/file; then
13962 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13963 if test -n "$file_magic_test_file"; then
13964 case $deplibs_check_method in
13965 "file_magic "*)
13966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13969 $EGREP "$file_magic_regex" > /dev/null; then
13971 else
13972 cat <<_LT_EOF 1>&2
13974 *** Warning: the command libtool uses to detect shared libraries,
13975 *** $file_magic_cmd, produces output that libtool cannot recognize.
13976 *** The result is that libtool may fail to recognize shared libraries
13977 *** as such. This will affect the creation of libtool libraries that
13978 *** depend on shared libraries, but programs linked with such libtool
13979 *** libraries will work regardless of this problem. Nevertheless, you
13980 *** may want to report the problem to your system manager and/or to
13981 *** bug-libtool@gnu.org
13983 _LT_EOF
13984 fi ;;
13985 esac
13987 break
13989 done
13990 IFS="$lt_save_ifs"
13991 MAGIC_CMD="$lt_save_MAGIC_CMD"
13993 esac
13996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13997 if test -n "$MAGIC_CMD"; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13999 $as_echo "$MAGIC_CMD" >&6; }
14000 else
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002 $as_echo "no" >&6; }
14006 else
14007 MAGIC_CMD=:
14013 esac
14015 # Use C for the default configuration in the libtool script
14017 lt_save_CC="$CC"
14018 ac_ext=c
14019 ac_cpp='$CPP $CPPFLAGS'
14020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14025 # Source file extension for C test sources.
14026 ac_ext=c
14028 # Object file extension for compiled C test sources.
14029 objext=o
14030 objext=$objext
14032 # Code to be used in simple compile tests
14033 lt_simple_compile_test_code="int some_variable = 0;"
14035 # Code to be used in simple link tests
14036 lt_simple_link_test_code='int main(){return(0);}'
14044 # If no C compiler was specified, use CC.
14045 LTCC=${LTCC-"$CC"}
14047 # If no C compiler flags were specified, use CFLAGS.
14048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14050 # Allow CC to be a program name with arguments.
14051 compiler=$CC
14053 # Save the default compiler, since it gets overwritten when the other
14054 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14055 compiler_DEFAULT=$CC
14057 # save warnings/boilerplate of simple test code
14058 ac_outfile=conftest.$ac_objext
14059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14061 _lt_compiler_boilerplate=`cat conftest.err`
14062 $RM conftest*
14064 ac_outfile=conftest.$ac_objext
14065 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14067 _lt_linker_boilerplate=`cat conftest.err`
14068 $RM -r conftest*
14071 ## CAVEAT EMPTOR:
14072 ## There is no encapsulation within the following macros, do not change
14073 ## the running order or otherwise move them around unless you know exactly
14074 ## what you are doing...
14075 if test -n "$compiler"; then
14077 lt_prog_compiler_no_builtin_flag=
14079 if test "$GCC" = yes; then
14080 case $cc_basename in
14081 nvcc*)
14082 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14084 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14085 esac
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14088 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 lt_cv_prog_compiler_rtti_exceptions=no
14093 ac_outfile=conftest.$ac_objext
14094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14095 lt_compiler_flag="-fno-rtti -fno-exceptions"
14096 # Insert the option either (1) after the last *FLAGS variable, or
14097 # (2) before a word containing "conftest.", or (3) at the end.
14098 # Note that $ac_compile itself does not contain backslashes and begins
14099 # with a dollar sign (not a hyphen), so the echo should work correctly.
14100 # The option is referenced via a variable to avoid confusing sed.
14101 lt_compile=`echo "$ac_compile" | $SED \
14102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14104 -e 's:$: $lt_compiler_flag:'`
14105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14106 (eval "$lt_compile" 2>conftest.err)
14107 ac_status=$?
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 if (exit $ac_status) && test -s "$ac_outfile"; then
14111 # The compiler can only warn and ignore the option if not recognized
14112 # So say no if there are warnings other than the usual output.
14113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14116 lt_cv_prog_compiler_rtti_exceptions=yes
14119 $RM conftest*
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14123 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14125 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14127 else
14138 lt_prog_compiler_wl=
14139 lt_prog_compiler_pic=
14140 lt_prog_compiler_static=
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14143 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14145 if test "$GCC" = yes; then
14146 lt_prog_compiler_wl='-Wl,'
14147 lt_prog_compiler_static='-static'
14149 case $host_os in
14150 aix*)
14151 # All AIX code is PIC.
14152 if test "$host_cpu" = ia64; then
14153 # AIX 5 now supports IA64 processor
14154 lt_prog_compiler_static='-Bstatic'
14158 amigaos*)
14159 case $host_cpu in
14160 powerpc)
14161 # see comment about AmigaOS4 .so support
14162 lt_prog_compiler_pic='-fPIC'
14164 m68k)
14165 # FIXME: we need at least 68020 code to build shared libraries, but
14166 # adding the `-m68020' flag to GCC prevents building anything better,
14167 # like `-m68040'.
14168 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14170 esac
14173 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14174 # PIC is the default for these OSes.
14177 mingw* | cygwin* | pw32* | os2* | cegcc*)
14178 # This hack is so that the source file can tell whether it is being
14179 # built for inclusion in a dll (and should export symbols for example).
14180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14181 # (--disable-auto-import) libraries
14182 lt_prog_compiler_pic='-DDLL_EXPORT'
14185 darwin* | rhapsody*)
14186 # PIC is the default on this platform
14187 # Common symbols not allowed in MH_DYLIB files
14188 lt_prog_compiler_pic='-fno-common'
14191 haiku*)
14192 # PIC is the default for Haiku.
14193 # The "-static" flag exists, but is broken.
14194 lt_prog_compiler_static=
14197 hpux*)
14198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14200 # sets the default TLS model and affects inlining.
14201 case $host_cpu in
14202 hppa*64*)
14203 # +Z the default
14206 lt_prog_compiler_pic='-fPIC'
14208 esac
14211 interix[3-9]*)
14212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14213 # Instead, we relocate shared libraries at runtime.
14216 msdosdjgpp*)
14217 # Just because we use GCC doesn't mean we suddenly get shared libraries
14218 # on systems that don't support them.
14219 lt_prog_compiler_can_build_shared=no
14220 enable_shared=no
14223 *nto* | *qnx*)
14224 # QNX uses GNU C++, but need to define -shared option too, otherwise
14225 # it will coredump.
14226 lt_prog_compiler_pic='-fPIC -shared'
14229 sysv4*MP*)
14230 if test -d /usr/nec; then
14231 lt_prog_compiler_pic=-Kconform_pic
14236 lt_prog_compiler_pic='-fPIC'
14238 esac
14240 case $cc_basename in
14241 nvcc*) # Cuda Compiler Driver 2.2
14242 lt_prog_compiler_wl='-Xlinker '
14243 lt_prog_compiler_pic='-Xcompiler -fPIC'
14245 esac
14246 else
14247 # PORTME Check for flag to pass linker flags through the system compiler.
14248 case $host_os in
14249 aix*)
14250 lt_prog_compiler_wl='-Wl,'
14251 if test "$host_cpu" = ia64; then
14252 # AIX 5 now supports IA64 processor
14253 lt_prog_compiler_static='-Bstatic'
14254 else
14255 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14259 mingw* | cygwin* | pw32* | os2* | cegcc*)
14260 # This hack is so that the source file can tell whether it is being
14261 # built for inclusion in a dll (and should export symbols for example).
14262 lt_prog_compiler_pic='-DDLL_EXPORT'
14265 hpux9* | hpux10* | hpux11*)
14266 lt_prog_compiler_wl='-Wl,'
14267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14268 # not for PA HP-UX.
14269 case $host_cpu in
14270 hppa*64*|ia64*)
14271 # +Z the default
14274 lt_prog_compiler_pic='+Z'
14276 esac
14277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14278 lt_prog_compiler_static='${wl}-a ${wl}archive'
14281 irix5* | irix6* | nonstopux*)
14282 lt_prog_compiler_wl='-Wl,'
14283 # PIC (with -KPIC) is the default.
14284 lt_prog_compiler_static='-non_shared'
14287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14288 case $cc_basename in
14289 # old Intel for x86_64 which still supported -KPIC.
14290 ecc*)
14291 lt_prog_compiler_wl='-Wl,'
14292 lt_prog_compiler_pic='-KPIC'
14293 lt_prog_compiler_static='-static'
14295 # icc used to be incompatible with GCC.
14296 # ICC 10 doesn't accept -KPIC any more.
14297 icc* | ifort*)
14298 lt_prog_compiler_wl='-Wl,'
14299 lt_prog_compiler_pic='-fPIC'
14300 lt_prog_compiler_static='-static'
14302 # Lahey Fortran 8.1.
14303 lf95*)
14304 lt_prog_compiler_wl='-Wl,'
14305 lt_prog_compiler_pic='--shared'
14306 lt_prog_compiler_static='--static'
14308 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14309 # Portland Group compilers (*not* the Pentium gcc compiler,
14310 # which looks to be a dead project)
14311 lt_prog_compiler_wl='-Wl,'
14312 lt_prog_compiler_pic='-fpic'
14313 lt_prog_compiler_static='-Bstatic'
14315 ccc*)
14316 lt_prog_compiler_wl='-Wl,'
14317 # All Alpha code is PIC.
14318 lt_prog_compiler_static='-non_shared'
14320 xl* | bgxl* | bgf* | mpixl*)
14321 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14322 lt_prog_compiler_wl='-Wl,'
14323 lt_prog_compiler_pic='-qpic'
14324 lt_prog_compiler_static='-qstaticlink'
14327 case `$CC -V 2>&1 | sed 5q` in
14328 *Sun\ F* | *Sun*Fortran*)
14329 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14330 lt_prog_compiler_pic='-KPIC'
14331 lt_prog_compiler_static='-Bstatic'
14332 lt_prog_compiler_wl=''
14334 *Sun\ C*)
14335 # Sun C 5.9
14336 lt_prog_compiler_pic='-KPIC'
14337 lt_prog_compiler_static='-Bstatic'
14338 lt_prog_compiler_wl='-Wl,'
14340 esac
14342 esac
14345 newsos6)
14346 lt_prog_compiler_pic='-KPIC'
14347 lt_prog_compiler_static='-Bstatic'
14350 *nto* | *qnx*)
14351 # QNX uses GNU C++, but need to define -shared option too, otherwise
14352 # it will coredump.
14353 lt_prog_compiler_pic='-fPIC -shared'
14356 osf3* | osf4* | osf5*)
14357 lt_prog_compiler_wl='-Wl,'
14358 # All OSF/1 code is PIC.
14359 lt_prog_compiler_static='-non_shared'
14362 rdos*)
14363 lt_prog_compiler_static='-non_shared'
14366 solaris*)
14367 lt_prog_compiler_pic='-KPIC'
14368 lt_prog_compiler_static='-Bstatic'
14369 case $cc_basename in
14370 f77* | f90* | f95*)
14371 lt_prog_compiler_wl='-Qoption ld ';;
14373 lt_prog_compiler_wl='-Wl,';;
14374 esac
14377 sunos4*)
14378 lt_prog_compiler_wl='-Qoption ld '
14379 lt_prog_compiler_pic='-PIC'
14380 lt_prog_compiler_static='-Bstatic'
14383 sysv4 | sysv4.2uw2* | sysv4.3*)
14384 lt_prog_compiler_wl='-Wl,'
14385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-Bstatic'
14389 sysv4*MP*)
14390 if test -d /usr/nec ;then
14391 lt_prog_compiler_pic='-Kconform_pic'
14392 lt_prog_compiler_static='-Bstatic'
14396 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14397 lt_prog_compiler_wl='-Wl,'
14398 lt_prog_compiler_pic='-KPIC'
14399 lt_prog_compiler_static='-Bstatic'
14402 unicos*)
14403 lt_prog_compiler_wl='-Wl,'
14404 lt_prog_compiler_can_build_shared=no
14407 uts4*)
14408 lt_prog_compiler_pic='-pic'
14409 lt_prog_compiler_static='-Bstatic'
14413 lt_prog_compiler_can_build_shared=no
14415 esac
14418 case $host_os in
14419 # For platforms which do not support PIC, -DPIC is meaningless:
14420 *djgpp*)
14421 lt_prog_compiler_pic=
14424 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14426 esac
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14428 $as_echo "$lt_prog_compiler_pic" >&6; }
14436 # Check to make sure the PIC flag actually works.
14438 if test -n "$lt_prog_compiler_pic"; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14440 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14441 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 lt_cv_prog_compiler_pic_works=no
14445 ac_outfile=conftest.$ac_objext
14446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14447 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14448 # Insert the option either (1) after the last *FLAGS variable, or
14449 # (2) before a word containing "conftest.", or (3) at the end.
14450 # Note that $ac_compile itself does not contain backslashes and begins
14451 # with a dollar sign (not a hyphen), so the echo should work correctly.
14452 # The option is referenced via a variable to avoid confusing sed.
14453 lt_compile=`echo "$ac_compile" | $SED \
14454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14456 -e 's:$: $lt_compiler_flag:'`
14457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14458 (eval "$lt_compile" 2>conftest.err)
14459 ac_status=$?
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 if (exit $ac_status) && test -s "$ac_outfile"; then
14463 # The compiler can only warn and ignore the option if not recognized
14464 # So say no if there are warnings other than the usual output.
14465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14468 lt_cv_prog_compiler_pic_works=yes
14471 $RM conftest*
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14475 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14477 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14478 case $lt_prog_compiler_pic in
14479 "" | " "*) ;;
14480 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14481 esac
14482 else
14483 lt_prog_compiler_pic=
14484 lt_prog_compiler_can_build_shared=no
14495 # Check to make sure the static flag actually works.
14497 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14499 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14500 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14502 else
14503 lt_cv_prog_compiler_static_works=no
14504 save_LDFLAGS="$LDFLAGS"
14505 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14506 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14508 # The linker can only warn and ignore the option if not recognized
14509 # So say no if there are warnings
14510 if test -s conftest.err; then
14511 # Append any errors to the config.log.
14512 cat conftest.err 1>&5
14513 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14515 if diff conftest.exp conftest.er2 >/dev/null; then
14516 lt_cv_prog_compiler_static_works=yes
14518 else
14519 lt_cv_prog_compiler_static_works=yes
14522 $RM -r conftest*
14523 LDFLAGS="$save_LDFLAGS"
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14527 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14529 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14531 else
14532 lt_prog_compiler_static=
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14542 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14543 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 lt_cv_prog_compiler_c_o=no
14547 $RM -r conftest 2>/dev/null
14548 mkdir conftest
14549 cd conftest
14550 mkdir out
14551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14553 lt_compiler_flag="-o out/conftest2.$ac_objext"
14554 # Insert the option either (1) after the last *FLAGS variable, or
14555 # (2) before a word containing "conftest.", or (3) at the end.
14556 # Note that $ac_compile itself does not contain backslashes and begins
14557 # with a dollar sign (not a hyphen), so the echo should work correctly.
14558 lt_compile=`echo "$ac_compile" | $SED \
14559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14561 -e 's:$: $lt_compiler_flag:'`
14562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14563 (eval "$lt_compile" 2>out/conftest.err)
14564 ac_status=$?
14565 cat out/conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14568 then
14569 # The compiler can only warn and ignore the option if not recognized
14570 # So say no if there are warnings
14571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14574 lt_cv_prog_compiler_c_o=yes
14577 chmod u+w . 2>&5
14578 $RM conftest*
14579 # SGI C++ compiler will create directory out/ii_files/ for
14580 # template instantiation
14581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14582 $RM out/* && rmdir out
14583 cd ..
14584 $RM -r conftest
14585 $RM conftest*
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14589 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14597 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14598 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 lt_cv_prog_compiler_c_o=no
14602 $RM -r conftest 2>/dev/null
14603 mkdir conftest
14604 cd conftest
14605 mkdir out
14606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14608 lt_compiler_flag="-o out/conftest2.$ac_objext"
14609 # Insert the option either (1) after the last *FLAGS variable, or
14610 # (2) before a word containing "conftest.", or (3) at the end.
14611 # Note that $ac_compile itself does not contain backslashes and begins
14612 # with a dollar sign (not a hyphen), so the echo should work correctly.
14613 lt_compile=`echo "$ac_compile" | $SED \
14614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14616 -e 's:$: $lt_compiler_flag:'`
14617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14618 (eval "$lt_compile" 2>out/conftest.err)
14619 ac_status=$?
14620 cat out/conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14623 then
14624 # The compiler can only warn and ignore the option if not recognized
14625 # So say no if there are warnings
14626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14629 lt_cv_prog_compiler_c_o=yes
14632 chmod u+w . 2>&5
14633 $RM conftest*
14634 # SGI C++ compiler will create directory out/ii_files/ for
14635 # template instantiation
14636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14637 $RM out/* && rmdir out
14638 cd ..
14639 $RM -r conftest
14640 $RM conftest*
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14644 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14649 hard_links="nottested"
14650 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14651 # do not overwrite the value of need_locks provided by the user
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14653 $as_echo_n "checking if we can lock with hard links... " >&6; }
14654 hard_links=yes
14655 $RM conftest*
14656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14657 touch conftest.a
14658 ln conftest.a conftest.b 2>&5 || hard_links=no
14659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14661 $as_echo "$hard_links" >&6; }
14662 if test "$hard_links" = no; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14664 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14665 need_locks=warn
14667 else
14668 need_locks=no
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14679 runpath_var=
14680 allow_undefined_flag=
14681 always_export_symbols=no
14682 archive_cmds=
14683 archive_expsym_cmds=
14684 compiler_needs_object=no
14685 enable_shared_with_static_runtimes=no
14686 export_dynamic_flag_spec=
14687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14688 hardcode_automatic=no
14689 hardcode_direct=no
14690 hardcode_direct_absolute=no
14691 hardcode_libdir_flag_spec=
14692 hardcode_libdir_flag_spec_ld=
14693 hardcode_libdir_separator=
14694 hardcode_minus_L=no
14695 hardcode_shlibpath_var=unsupported
14696 inherit_rpath=no
14697 link_all_deplibs=unknown
14698 module_cmds=
14699 module_expsym_cmds=
14700 old_archive_from_new_cmds=
14701 old_archive_from_expsyms_cmds=
14702 thread_safe_flag_spec=
14703 whole_archive_flag_spec=
14704 # include_expsyms should be a list of space-separated symbols to be *always*
14705 # included in the symbol list
14706 include_expsyms=
14707 # exclude_expsyms can be an extended regexp of symbols to exclude
14708 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14710 # as well as any symbol that contains `d'.
14711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14713 # platforms (ab)use it in PIC code, but their linkers get confused if
14714 # the symbol is explicitly referenced. Since portable code cannot
14715 # rely on this symbol name, it's probably fine to never include it in
14716 # preloaded symbol tables.
14717 # Exclude shared library initialization/finalization symbols.
14718 extract_expsyms_cmds=
14720 case $host_os in
14721 cygwin* | mingw* | pw32* | cegcc*)
14722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14723 # When not using gcc, we currently assume that we are using
14724 # Microsoft Visual C++.
14725 if test "$GCC" != yes; then
14726 with_gnu_ld=no
14729 interix*)
14730 # we just hope/assume this is gcc and not c89 (= MSVC++)
14731 with_gnu_ld=yes
14733 openbsd*)
14734 with_gnu_ld=no
14736 esac
14738 ld_shlibs=yes
14740 # On some targets, GNU ld is compatible enough with the native linker
14741 # that we're better off using the native interface for both.
14742 lt_use_gnu_ld_interface=no
14743 if test "$with_gnu_ld" = yes; then
14744 case $host_os in
14745 aix*)
14746 # The AIX port of GNU ld has always aspired to compatibility
14747 # with the native linker. However, as the warning in the GNU ld
14748 # block says, versions before 2.19.5* couldn't really create working
14749 # shared libraries, regardless of the interface used.
14750 case `$LD -v 2>&1` in
14751 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14752 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14753 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14755 lt_use_gnu_ld_interface=yes
14757 esac
14760 lt_use_gnu_ld_interface=yes
14762 esac
14765 if test "$lt_use_gnu_ld_interface" = yes; then
14766 # If archive_cmds runs LD, not CC, wlarc should be empty
14767 wlarc='${wl}'
14769 # Set some defaults for GNU ld with shared library support. These
14770 # are reset later if shared libraries are not supported. Putting them
14771 # here allows them to be overridden if necessary.
14772 runpath_var=LD_RUN_PATH
14773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14774 export_dynamic_flag_spec='${wl}--export-dynamic'
14775 # ancient GNU ld didn't support --whole-archive et. al.
14776 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14777 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14778 else
14779 whole_archive_flag_spec=
14781 supports_anon_versioning=no
14782 case `$LD -v 2>&1` in
14783 *GNU\ gold*) supports_anon_versioning=yes ;;
14784 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14787 *\ 2.11.*) ;; # other 2.11 versions
14788 *) supports_anon_versioning=yes ;;
14789 esac
14791 # See if GNU ld supports shared libraries.
14792 case $host_os in
14793 aix[3-9]*)
14794 # On AIX/PPC, the GNU linker is very broken
14795 if test "$host_cpu" != ia64; then
14796 ld_shlibs=no
14797 cat <<_LT_EOF 1>&2
14799 *** Warning: the GNU linker, at least up to release 2.19, is reported
14800 *** to be unable to reliably create shared libraries on AIX.
14801 *** Therefore, libtool is disabling shared libraries support. If you
14802 *** really care for shared libraries, you may want to install binutils
14803 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14804 *** You will then need to restart the configuration process.
14806 _LT_EOF
14810 amigaos*)
14811 case $host_cpu in
14812 powerpc)
14813 # see comment about AmigaOS4 .so support
14814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14815 archive_expsym_cmds=''
14817 m68k)
14818 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)'
14819 hardcode_libdir_flag_spec='-L$libdir'
14820 hardcode_minus_L=yes
14822 esac
14825 beos*)
14826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14827 allow_undefined_flag=unsupported
14828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14829 # support --undefined. This deserves some investigation. FIXME
14830 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14831 else
14832 ld_shlibs=no
14836 cygwin* | mingw* | pw32* | cegcc*)
14837 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14838 # as there is no search path for DLLs.
14839 hardcode_libdir_flag_spec='-L$libdir'
14840 export_dynamic_flag_spec='${wl}--export-all-symbols'
14841 allow_undefined_flag=unsupported
14842 always_export_symbols=no
14843 enable_shared_with_static_runtimes=yes
14844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14848 # If the export-symbols file already is a .def file (1st line
14849 # is EXPORTS), use it as is; otherwise, prepend...
14850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14851 cp $export_symbols $output_objdir/$soname.def;
14852 else
14853 echo EXPORTS > $output_objdir/$soname.def;
14854 cat $export_symbols >> $output_objdir/$soname.def;
14856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14857 else
14858 ld_shlibs=no
14862 haiku*)
14863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864 link_all_deplibs=yes
14867 interix[3-9]*)
14868 hardcode_direct=no
14869 hardcode_shlibpath_var=no
14870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14871 export_dynamic_flag_spec='${wl}-E'
14872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14873 # Instead, shared libraries are loaded at an image base (0x10000000 by
14874 # default) and relocated if they conflict, which is a slow very memory
14875 # consuming and fragmenting process. To avoid this, we pick a random,
14876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14879 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'
14882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14883 tmp_diet=no
14884 if test "$host_os" = linux-dietlibc; then
14885 case $cc_basename in
14886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14887 esac
14889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14890 && test "$tmp_diet" = no
14891 then
14892 tmp_addflag=
14893 tmp_sharedflag='-shared'
14894 case $cc_basename,$host_cpu in
14895 pgcc*) # Portland Group C compiler
14896 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'
14897 tmp_addflag=' $pic_flag'
14899 pgf77* | pgf90* | pgf95* | pgfortran*)
14900 # Portland Group f77 and f90 compilers
14901 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14902 tmp_addflag=' $pic_flag -Mnomain' ;;
14903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14904 tmp_addflag=' -i_dynamic' ;;
14905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14906 tmp_addflag=' -i_dynamic -nofor_main' ;;
14907 ifc* | ifort*) # Intel Fortran compiler
14908 tmp_addflag=' -nofor_main' ;;
14909 lf95*) # Lahey Fortran 8.1
14910 whole_archive_flag_spec=
14911 tmp_sharedflag='--shared' ;;
14912 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14913 tmp_sharedflag='-qmkshrobj'
14914 tmp_addflag= ;;
14915 nvcc*) # Cuda Compiler Driver 2.2
14916 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'
14917 compiler_needs_object=yes
14919 esac
14920 case `$CC -V 2>&1 | sed 5q` in
14921 *Sun\ C*) # Sun C 5.9
14922 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'
14923 compiler_needs_object=yes
14924 tmp_sharedflag='-G' ;;
14925 *Sun\ F*) # Sun Fortran 8.3
14926 tmp_sharedflag='-G' ;;
14927 esac
14928 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930 if test "x$supports_anon_versioning" = xyes; then
14931 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14933 echo "local: *; };" >> $output_objdir/$libname.ver~
14934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14937 case $cc_basename in
14938 xlf* | bgf* | bgxlf* | mpixlf*)
14939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14940 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14941 hardcode_libdir_flag_spec=
14942 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14943 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14944 if test "x$supports_anon_versioning" = xyes; then
14945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947 echo "local: *; };" >> $output_objdir/$libname.ver~
14948 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14951 esac
14952 else
14953 ld_shlibs=no
14957 netbsd*)
14958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14959 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14960 wlarc=
14961 else
14962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14967 solaris*)
14968 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14969 ld_shlibs=no
14970 cat <<_LT_EOF 1>&2
14972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14973 *** create shared libraries on Solaris systems. Therefore, libtool
14974 *** is disabling shared libraries support. We urge you to upgrade GNU
14975 *** binutils to release 2.9.1 or newer. Another option is to modify
14976 *** your PATH or compiler configuration so that the native linker is
14977 *** used, and then restart.
14979 _LT_EOF
14980 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14983 else
14984 ld_shlibs=no
14988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14989 case `$LD -v 2>&1` in
14990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14991 ld_shlibs=no
14992 cat <<_LT_EOF 1>&2
14994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14995 *** reliably create shared libraries on SCO systems. Therefore, libtool
14996 *** is disabling shared libraries support. We urge you to upgrade GNU
14997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14998 *** your PATH or compiler configuration so that the native linker is
14999 *** used, and then restart.
15001 _LT_EOF
15004 # For security reasons, it is highly recommended that you always
15005 # use absolute paths for naming shared libraries, and exclude the
15006 # DT_RUNPATH tag from executables and libraries. But doing so
15007 # requires that you compile everything twice, which is a pain.
15008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15012 else
15013 ld_shlibs=no
15016 esac
15019 sunos4*)
15020 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15021 wlarc=
15022 hardcode_direct=yes
15023 hardcode_shlibpath_var=no
15027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15030 else
15031 ld_shlibs=no
15034 esac
15036 if test "$ld_shlibs" = no; then
15037 runpath_var=
15038 hardcode_libdir_flag_spec=
15039 export_dynamic_flag_spec=
15040 whole_archive_flag_spec=
15042 else
15043 # PORTME fill in a description of your system's linker (not GNU ld)
15044 case $host_os in
15045 aix3*)
15046 allow_undefined_flag=unsupported
15047 always_export_symbols=yes
15048 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'
15049 # Note: this linker hardcodes the directories in LIBPATH if there
15050 # are no directories specified by -L.
15051 hardcode_minus_L=yes
15052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15053 # Neither direct hardcoding nor static linking is supported with a
15054 # broken collect2.
15055 hardcode_direct=unsupported
15059 aix[4-9]*)
15060 if test "$host_cpu" = ia64; then
15061 # On IA64, the linker does run time linking by default, so we don't
15062 # have to do anything special.
15063 aix_use_runtimelinking=no
15064 exp_sym_flag='-Bexport'
15065 no_entry_flag=""
15066 else
15067 # If we're using GNU nm, then we don't want the "-C" option.
15068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15069 # Also, AIX nm treats weak defined symbols like other global
15070 # defined symbols, whereas GNU nm marks them as "W".
15071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15072 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'
15073 else
15074 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'
15076 aix_use_runtimelinking=no
15078 # Test if we are trying to use run time linking or normal
15079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15080 # need to do runtime linking.
15081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15082 for ld_flag in $LDFLAGS; do
15083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15084 aix_use_runtimelinking=yes
15085 break
15087 done
15089 esac
15091 exp_sym_flag='-bexport'
15092 no_entry_flag='-bnoentry'
15095 # When large executables or shared objects are built, AIX ld can
15096 # have problems creating the table of contents. If linking a library
15097 # or program results in "error TOC overflow" add -mminimal-toc to
15098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15101 archive_cmds=''
15102 hardcode_direct=yes
15103 hardcode_direct_absolute=yes
15104 hardcode_libdir_separator=':'
15105 link_all_deplibs=yes
15106 file_list_spec='${wl}-f,'
15108 if test "$GCC" = yes; then
15109 case $host_os in aix4.[012]|aix4.[012].*)
15110 # We only want to do this on AIX 4.2 and lower, the check
15111 # below for broken collect2 doesn't work under 4.3+
15112 collect2name=`${CC} -print-prog-name=collect2`
15113 if test -f "$collect2name" &&
15114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15115 then
15116 # We have reworked collect2
15118 else
15119 # We have old collect2
15120 hardcode_direct=unsupported
15121 # It fails to find uninstalled libraries when the uninstalled
15122 # path is not listed in the libpath. Setting hardcode_minus_L
15123 # to unsupported forces relinking
15124 hardcode_minus_L=yes
15125 hardcode_libdir_flag_spec='-L$libdir'
15126 hardcode_libdir_separator=
15129 esac
15130 shared_flag='-shared'
15131 if test "$aix_use_runtimelinking" = yes; then
15132 shared_flag="$shared_flag "'${wl}-G'
15134 else
15135 # not using gcc
15136 if test "$host_cpu" = ia64; then
15137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15138 # chokes on -Wl,-G. The following line is correct:
15139 shared_flag='-G'
15140 else
15141 if test "$aix_use_runtimelinking" = yes; then
15142 shared_flag='${wl}-G'
15143 else
15144 shared_flag='${wl}-bM:SRE'
15149 export_dynamic_flag_spec='${wl}-bexpall'
15150 # It seems that -bexpall does not export symbols beginning with
15151 # underscore (_), so it is better to generate a list of symbols to export.
15152 always_export_symbols=yes
15153 if test "$aix_use_runtimelinking" = yes; then
15154 # Warning - without using the other runtime loading flags (-brtl),
15155 # -berok will link without error, but may produce a broken library.
15156 allow_undefined_flag='-berok'
15157 # Determine the default libpath from the value encoded in an
15158 # empty executable.
15159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15163 main ()
15167 return 0;
15169 _ACEOF
15170 if ac_fn_c_try_link "$LINENO"; then :
15172 lt_aix_libpath_sed='
15173 /Import File Strings/,/^$/ {
15174 /^0/ {
15175 s/^0 *\(.*\)$/\1/
15179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15180 # Check for a 64-bit object if we didn't find anything.
15181 if test -z "$aix_libpath"; then
15182 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15185 rm -f core conftest.err conftest.$ac_objext \
15186 conftest$ac_exeext conftest.$ac_ext
15187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15190 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"
15191 else
15192 if test "$host_cpu" = ia64; then
15193 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15194 allow_undefined_flag="-z nodefs"
15195 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"
15196 else
15197 # Determine the default libpath from the value encoded in an
15198 # empty executable.
15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200 /* end confdefs.h. */
15203 main ()
15207 return 0;
15209 _ACEOF
15210 if ac_fn_c_try_link "$LINENO"; then :
15212 lt_aix_libpath_sed='
15213 /Import File Strings/,/^$/ {
15214 /^0/ {
15215 s/^0 *\(.*\)$/\1/
15219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15220 # Check for a 64-bit object if we didn't find anything.
15221 if test -z "$aix_libpath"; then
15222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15225 rm -f core conftest.err conftest.$ac_objext \
15226 conftest$ac_exeext conftest.$ac_ext
15227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15230 # Warning - without using the other run time loading flags,
15231 # -berok will link without error, but may produce a broken library.
15232 no_undefined_flag=' ${wl}-bernotok'
15233 allow_undefined_flag=' ${wl}-berok'
15234 if test "$with_gnu_ld" = yes; then
15235 # We only use this code for GNU lds that support --whole-archive.
15236 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15237 else
15238 # Exported symbols can be pulled into shared objects from archives
15239 whole_archive_flag_spec='$convenience'
15241 archive_cmds_need_lc=yes
15242 # This is similar to how AIX traditionally builds its shared libraries.
15243 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'
15248 amigaos*)
15249 case $host_cpu in
15250 powerpc)
15251 # see comment about AmigaOS4 .so support
15252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15253 archive_expsym_cmds=''
15255 m68k)
15256 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)'
15257 hardcode_libdir_flag_spec='-L$libdir'
15258 hardcode_minus_L=yes
15260 esac
15263 bsdi[45]*)
15264 export_dynamic_flag_spec=-rdynamic
15267 cygwin* | mingw* | pw32* | cegcc*)
15268 # When not using gcc, we currently assume that we are using
15269 # Microsoft Visual C++.
15270 # hardcode_libdir_flag_spec is actually meaningless, as there is
15271 # no search path for DLLs.
15272 hardcode_libdir_flag_spec=' '
15273 allow_undefined_flag=unsupported
15274 # Tell ltmain to make .lib files, not .a files.
15275 libext=lib
15276 # Tell ltmain to make .dll files, not .so files.
15277 shrext_cmds=".dll"
15278 # FIXME: Setting linknames here is a bad hack.
15279 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15280 # The linker will automatically build a .lib file if we build a DLL.
15281 old_archive_from_new_cmds='true'
15282 # FIXME: Should let the user specify the lib program.
15283 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15284 fix_srcfile_path='`cygpath -w "$srcfile"`'
15285 enable_shared_with_static_runtimes=yes
15288 darwin* | rhapsody*)
15291 archive_cmds_need_lc=no
15292 hardcode_direct=no
15293 hardcode_automatic=yes
15294 hardcode_shlibpath_var=unsupported
15295 if test "$lt_cv_ld_force_load" = "yes"; then
15296 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\"`'
15297 else
15298 whole_archive_flag_spec=''
15300 link_all_deplibs=yes
15301 allow_undefined_flag="$_lt_dar_allow_undefined"
15302 case $cc_basename in
15303 ifort*) _lt_dar_can_shared=yes ;;
15304 *) _lt_dar_can_shared=$GCC ;;
15305 esac
15306 if test "$_lt_dar_can_shared" = "yes"; then
15307 output_verbose_link_cmd=func_echo_all
15308 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15309 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15310 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}"
15311 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}"
15313 else
15314 ld_shlibs=no
15319 dgux*)
15320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15321 hardcode_libdir_flag_spec='-L$libdir'
15322 hardcode_shlibpath_var=no
15325 freebsd1*)
15326 ld_shlibs=no
15329 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15330 # support. Future versions do this automatically, but an explicit c++rt0.o
15331 # does not break anything, and helps significantly (at the cost of a little
15332 # extra space).
15333 freebsd2.2*)
15334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15335 hardcode_libdir_flag_spec='-R$libdir'
15336 hardcode_direct=yes
15337 hardcode_shlibpath_var=no
15340 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15341 freebsd2*)
15342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15343 hardcode_direct=yes
15344 hardcode_minus_L=yes
15345 hardcode_shlibpath_var=no
15348 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15349 freebsd* | dragonfly*)
15350 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15351 hardcode_libdir_flag_spec='-R$libdir'
15352 hardcode_direct=yes
15353 hardcode_shlibpath_var=no
15356 hpux9*)
15357 if test "$GCC" = yes; then
15358 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'
15359 else
15360 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'
15362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15363 hardcode_libdir_separator=:
15364 hardcode_direct=yes
15366 # hardcode_minus_L: Not really in the search PATH,
15367 # but as the default location of the library.
15368 hardcode_minus_L=yes
15369 export_dynamic_flag_spec='${wl}-E'
15372 hpux10*)
15373 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15374 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15375 else
15376 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15378 if test "$with_gnu_ld" = no; then
15379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15380 hardcode_libdir_flag_spec_ld='+b $libdir'
15381 hardcode_libdir_separator=:
15382 hardcode_direct=yes
15383 hardcode_direct_absolute=yes
15384 export_dynamic_flag_spec='${wl}-E'
15385 # hardcode_minus_L: Not really in the search PATH,
15386 # but as the default location of the library.
15387 hardcode_minus_L=yes
15391 hpux11*)
15392 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15393 case $host_cpu in
15394 hppa*64*)
15395 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15397 ia64*)
15398 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15403 esac
15404 else
15405 case $host_cpu in
15406 hppa*64*)
15407 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15409 ia64*)
15410 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15414 # Older versions of the 11.00 compiler do not understand -b yet
15415 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15417 $as_echo_n "checking if $CC understands -b... " >&6; }
15418 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15419 $as_echo_n "(cached) " >&6
15420 else
15421 lt_cv_prog_compiler__b=no
15422 save_LDFLAGS="$LDFLAGS"
15423 LDFLAGS="$LDFLAGS -b"
15424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15426 # The linker can only warn and ignore the option if not recognized
15427 # So say no if there are warnings
15428 if test -s conftest.err; then
15429 # Append any errors to the config.log.
15430 cat conftest.err 1>&5
15431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15433 if diff conftest.exp conftest.er2 >/dev/null; then
15434 lt_cv_prog_compiler__b=yes
15436 else
15437 lt_cv_prog_compiler__b=yes
15440 $RM -r conftest*
15441 LDFLAGS="$save_LDFLAGS"
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15445 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15447 if test x"$lt_cv_prog_compiler__b" = xyes; then
15448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15449 else
15450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15454 esac
15456 if test "$with_gnu_ld" = no; then
15457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15458 hardcode_libdir_separator=:
15460 case $host_cpu in
15461 hppa*64*|ia64*)
15462 hardcode_direct=no
15463 hardcode_shlibpath_var=no
15466 hardcode_direct=yes
15467 hardcode_direct_absolute=yes
15468 export_dynamic_flag_spec='${wl}-E'
15470 # hardcode_minus_L: Not really in the search PATH,
15471 # but as the default location of the library.
15472 hardcode_minus_L=yes
15474 esac
15478 irix5* | irix6* | nonstopux*)
15479 if test "$GCC" = yes; then
15480 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'
15481 # Try to use the -exported_symbol ld option, if it does not
15482 # work, assume that -exports_file does not work either and
15483 # implicitly export all symbols.
15484 save_LDFLAGS="$LDFLAGS"
15485 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15488 int foo(void) {}
15489 _ACEOF
15490 if ac_fn_c_try_link "$LINENO"; then :
15491 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'
15494 rm -f core conftest.err conftest.$ac_objext \
15495 conftest$ac_exeext conftest.$ac_ext
15496 LDFLAGS="$save_LDFLAGS"
15497 else
15498 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'
15499 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'
15501 archive_cmds_need_lc='no'
15502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15503 hardcode_libdir_separator=:
15504 inherit_rpath=yes
15505 link_all_deplibs=yes
15508 netbsd*)
15509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15511 else
15512 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15514 hardcode_libdir_flag_spec='-R$libdir'
15515 hardcode_direct=yes
15516 hardcode_shlibpath_var=no
15519 newsos6)
15520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct=yes
15522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15523 hardcode_libdir_separator=:
15524 hardcode_shlibpath_var=no
15527 *nto* | *qnx*)
15530 openbsd*)
15531 if test -f /usr/libexec/ld.so; then
15532 hardcode_direct=yes
15533 hardcode_shlibpath_var=no
15534 hardcode_direct_absolute=yes
15535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15537 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15538 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15539 export_dynamic_flag_spec='${wl}-E'
15540 else
15541 case $host_os in
15542 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15544 hardcode_libdir_flag_spec='-R$libdir'
15547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15550 esac
15552 else
15553 ld_shlibs=no
15557 os2*)
15558 hardcode_libdir_flag_spec='-L$libdir'
15559 hardcode_minus_L=yes
15560 allow_undefined_flag=unsupported
15561 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'
15562 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15565 osf3*)
15566 if test "$GCC" = yes; then
15567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15568 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'
15569 else
15570 allow_undefined_flag=' -expect_unresolved \*'
15571 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'
15573 archive_cmds_need_lc='no'
15574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575 hardcode_libdir_separator=:
15578 osf4* | osf5*) # as osf3* with the addition of -msym flag
15579 if test "$GCC" = yes; then
15580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15581 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'
15582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15583 else
15584 allow_undefined_flag=' -expect_unresolved \*'
15585 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'
15586 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~
15587 $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'
15589 # Both c and cxx compiler support -rpath directly
15590 hardcode_libdir_flag_spec='-rpath $libdir'
15592 archive_cmds_need_lc='no'
15593 hardcode_libdir_separator=:
15596 solaris*)
15597 no_undefined_flag=' -z defs'
15598 if test "$GCC" = yes; then
15599 wlarc='${wl}'
15600 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15602 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15603 else
15604 case `$CC -V 2>&1` in
15605 *"Compilers 5.0"*)
15606 wlarc=''
15607 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15612 wlarc='${wl}'
15613 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15614 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15615 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15617 esac
15619 hardcode_libdir_flag_spec='-R$libdir'
15620 hardcode_shlibpath_var=no
15621 case $host_os in
15622 solaris2.[0-5] | solaris2.[0-5].*) ;;
15624 # The compiler driver will combine and reorder linker options,
15625 # but understands `-z linker_flag'. GCC discards it without `$wl',
15626 # but is careful enough not to reorder.
15627 # Supported since Solaris 2.6 (maybe 2.5.1?)
15628 if test "$GCC" = yes; then
15629 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15630 else
15631 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15634 esac
15635 link_all_deplibs=yes
15638 sunos4*)
15639 if test "x$host_vendor" = xsequent; then
15640 # Use $CC to link under sequent, because it throws in some extra .o
15641 # files that make .init and .fini sections work.
15642 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15643 else
15644 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15646 hardcode_libdir_flag_spec='-L$libdir'
15647 hardcode_direct=yes
15648 hardcode_minus_L=yes
15649 hardcode_shlibpath_var=no
15652 sysv4)
15653 case $host_vendor in
15654 sni)
15655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15656 hardcode_direct=yes # is this really true???
15658 siemens)
15659 ## LD is ld it makes a PLAMLIB
15660 ## CC just makes a GrossModule.
15661 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15662 reload_cmds='$CC -r -o $output$reload_objs'
15663 hardcode_direct=no
15665 motorola)
15666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15667 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15669 esac
15670 runpath_var='LD_RUN_PATH'
15671 hardcode_shlibpath_var=no
15674 sysv4.3*)
15675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15676 hardcode_shlibpath_var=no
15677 export_dynamic_flag_spec='-Bexport'
15680 sysv4*MP*)
15681 if test -d /usr/nec; then
15682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15683 hardcode_shlibpath_var=no
15684 runpath_var=LD_RUN_PATH
15685 hardcode_runpath_var=yes
15686 ld_shlibs=yes
15690 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15691 no_undefined_flag='${wl}-z,text'
15692 archive_cmds_need_lc=no
15693 hardcode_shlibpath_var=no
15694 runpath_var='LD_RUN_PATH'
15696 if test "$GCC" = yes; then
15697 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15698 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15699 else
15700 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15701 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15705 sysv5* | sco3.2v5* | sco5v6*)
15706 # Note: We can NOT use -z defs as we might desire, because we do not
15707 # link with -lc, and that would cause any symbols used from libc to
15708 # always be unresolved, which means just about no library would
15709 # ever link correctly. If we're not using GNU ld we use -z text
15710 # though, which does catch some bad symbols but isn't as heavy-handed
15711 # as -z defs.
15712 no_undefined_flag='${wl}-z,text'
15713 allow_undefined_flag='${wl}-z,nodefs'
15714 archive_cmds_need_lc=no
15715 hardcode_shlibpath_var=no
15716 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15717 hardcode_libdir_separator=':'
15718 link_all_deplibs=yes
15719 export_dynamic_flag_spec='${wl}-Bexport'
15720 runpath_var='LD_RUN_PATH'
15722 if test "$GCC" = yes; then
15723 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725 else
15726 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731 uts4*)
15732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_libdir_flag_spec='-L$libdir'
15734 hardcode_shlibpath_var=no
15738 ld_shlibs=no
15740 esac
15742 if test x$host_vendor = xsni; then
15743 case $host in
15744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15745 export_dynamic_flag_spec='${wl}-Blargedynsym'
15747 esac
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15752 $as_echo "$ld_shlibs" >&6; }
15753 test "$ld_shlibs" = no && can_build_shared=no
15755 with_gnu_ld=$with_gnu_ld
15772 # Do we need to explicitly link libc?
15774 case "x$archive_cmds_need_lc" in
15775 x|xyes)
15776 # Assume -lc should be added
15777 archive_cmds_need_lc=yes
15779 if test "$enable_shared" = yes && test "$GCC" = yes; then
15780 case $archive_cmds in
15781 *'~'*)
15782 # FIXME: we may have to deal with multi-command sequences.
15784 '$CC '*)
15785 # Test whether the compiler implicitly links with -lc since on some
15786 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15787 # to ld, don't add -lc before -lgcc.
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15789 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15790 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15791 $as_echo_n "(cached) " >&6
15792 else
15793 $RM conftest*
15794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15797 (eval $ac_compile) 2>&5
15798 ac_status=$?
15799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15800 test $ac_status = 0; } 2>conftest.err; then
15801 soname=conftest
15802 lib=conftest
15803 libobjs=conftest.$ac_objext
15804 deplibs=
15805 wl=$lt_prog_compiler_wl
15806 pic_flag=$lt_prog_compiler_pic
15807 compiler_flags=-v
15808 linker_flags=-v
15809 verstring=
15810 output_objdir=.
15811 libname=conftest
15812 lt_save_allow_undefined_flag=$allow_undefined_flag
15813 allow_undefined_flag=
15814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15815 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15816 ac_status=$?
15817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15818 test $ac_status = 0; }
15819 then
15820 lt_cv_archive_cmds_need_lc=no
15821 else
15822 lt_cv_archive_cmds_need_lc=yes
15824 allow_undefined_flag=$lt_save_allow_undefined_flag
15825 else
15826 cat conftest.err 1>&5
15828 $RM conftest*
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15832 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15833 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15835 esac
15838 esac
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15997 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15999 if test "$GCC" = yes; then
16000 case $host_os in
16001 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16002 *) lt_awk_arg="/^libraries:/" ;;
16003 esac
16004 case $host_os in
16005 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16006 *) lt_sed_strip_eq="s,=/,/,g" ;;
16007 esac
16008 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16009 case $lt_search_path_spec in
16010 *\;*)
16011 # if the path contains ";" then we assume it to be the separator
16012 # otherwise default to the standard path separator (i.e. ":") - it is
16013 # assumed that no part of a normal pathname contains ";" but that should
16014 # okay in the real world where ";" in dirpaths is itself problematic.
16015 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16020 esac
16021 # Ok, now we have the path, separated by spaces, we can step through it
16022 # and add multilib dir if necessary.
16023 lt_tmp_lt_search_path_spec=
16024 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16025 for lt_sys_path in $lt_search_path_spec; do
16026 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16027 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16028 else
16029 test -d "$lt_sys_path" && \
16030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16032 done
16033 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16034 BEGIN {RS=" "; FS="/|\n";} {
16035 lt_foo="";
16036 lt_count=0;
16037 for (lt_i = NF; lt_i > 0; lt_i--) {
16038 if ($lt_i != "" && $lt_i != ".") {
16039 if ($lt_i == "..") {
16040 lt_count++;
16041 } else {
16042 if (lt_count == 0) {
16043 lt_foo="/" $lt_i lt_foo;
16044 } else {
16045 lt_count--;
16050 if (lt_foo != "") { lt_freq[lt_foo]++; }
16051 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16053 # AWK program above erroneously prepends '/' to C:/dos/paths
16054 # for these hosts.
16055 case $host_os in
16056 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16057 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16058 esac
16059 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16060 else
16061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16063 library_names_spec=
16064 libname_spec='lib$name'
16065 soname_spec=
16066 shrext_cmds=".so"
16067 postinstall_cmds=
16068 postuninstall_cmds=
16069 finish_cmds=
16070 finish_eval=
16071 shlibpath_var=
16072 shlibpath_overrides_runpath=unknown
16073 version_type=none
16074 dynamic_linker="$host_os ld.so"
16075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16076 need_lib_prefix=unknown
16077 hardcode_into_libs=no
16079 # when you set need_version to no, make sure it does not cause -set_version
16080 # flags to be left without arguments
16081 need_version=unknown
16083 case $host_os in
16084 aix3*)
16085 version_type=linux
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16087 shlibpath_var=LIBPATH
16089 # AIX 3 has no versioning support, so we append a major version to the name.
16090 soname_spec='${libname}${release}${shared_ext}$major'
16093 aix[4-9]*)
16094 version_type=linux
16095 need_lib_prefix=no
16096 need_version=no
16097 hardcode_into_libs=yes
16098 if test "$host_cpu" = ia64; then
16099 # AIX 5 supports IA64
16100 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 else
16103 # With GCC up to 2.95.x, collect2 would create an import file
16104 # for dependence libraries. The import file would start with
16105 # the line `#! .'. This would cause the generated library to
16106 # depend on `.', always an invalid library. This was fixed in
16107 # development snapshots of GCC prior to 3.0.
16108 case $host_os in
16109 aix4 | aix4.[01] | aix4.[01].*)
16110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16111 echo ' yes '
16112 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16114 else
16115 can_build_shared=no
16118 esac
16119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16120 # soname into executable. Probably we can add versioning support to
16121 # collect2, so additional links can be useful in future.
16122 if test "$aix_use_runtimelinking" = yes; then
16123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16124 # instead of lib<name>.a to let people know that these are not
16125 # typical AIX shared libraries.
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 else
16128 # We preserve .a as extension for shared libraries through AIX4.2
16129 # and later when we are not doing run time linking.
16130 library_names_spec='${libname}${release}.a $libname.a'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16133 shlibpath_var=LIBPATH
16137 amigaos*)
16138 case $host_cpu in
16139 powerpc)
16140 # Since July 2007 AmigaOS4 officially supports .so libraries.
16141 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144 m68k)
16145 library_names_spec='$libname.ixlibrary $libname.a'
16146 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16147 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'
16149 esac
16152 beos*)
16153 library_names_spec='${libname}${shared_ext}'
16154 dynamic_linker="$host_os ld.so"
16155 shlibpath_var=LIBRARY_PATH
16158 bsdi[45]*)
16159 version_type=linux
16160 need_version=no
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16167 # the default ld.so.conf also contains /usr/contrib/lib and
16168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16169 # libtool to hard-code these into programs
16172 cygwin* | mingw* | pw32* | cegcc*)
16173 version_type=windows
16174 shrext_cmds=".dll"
16175 need_version=no
16176 need_lib_prefix=no
16178 case $GCC,$host_os in
16179 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16180 library_names_spec='$libname.dll.a'
16181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16182 postinstall_cmds='base_file=`basename \${file}`~
16183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16184 dldir=$destdir/`dirname \$dlpath`~
16185 test -d \$dldir || mkdir -p \$dldir~
16186 $install_prog $dir/$dlname \$dldir/$dlname~
16187 chmod a+x \$dldir/$dlname~
16188 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16189 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16191 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16192 dlpath=$dir/\$dldll~
16193 $RM \$dlpath'
16194 shlibpath_overrides_runpath=yes
16196 case $host_os in
16197 cygwin*)
16198 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16199 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16203 mingw* | cegcc*)
16204 # MinGW DLLs use traditional 'lib' prefix
16205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16207 pw32*)
16208 # pw32 DLLs use 'pw' prefix rather than 'lib'
16209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16211 esac
16215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16217 esac
16218 dynamic_linker='Win32 ld.exe'
16219 # FIXME: first we should search . and the directory the executable is in
16220 shlibpath_var=PATH
16223 darwin* | rhapsody*)
16224 dynamic_linker="$host_os dyld"
16225 version_type=darwin
16226 need_lib_prefix=no
16227 need_version=no
16228 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16229 soname_spec='${libname}${release}${major}$shared_ext'
16230 shlibpath_overrides_runpath=yes
16231 shlibpath_var=DYLD_LIBRARY_PATH
16232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16238 dgux*)
16239 version_type=linux
16240 need_lib_prefix=no
16241 need_version=no
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LD_LIBRARY_PATH
16247 freebsd1*)
16248 dynamic_linker=no
16251 freebsd* | dragonfly*)
16252 # DragonFly does not have aout. When/if they implement a new
16253 # versioning mechanism, adjust this.
16254 if test -x /usr/bin/objformat; then
16255 objformat=`/usr/bin/objformat`
16256 else
16257 case $host_os in
16258 freebsd[123]*) objformat=aout ;;
16259 *) objformat=elf ;;
16260 esac
16262 version_type=freebsd-$objformat
16263 case $version_type in
16264 freebsd-elf*)
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16266 need_version=no
16267 need_lib_prefix=no
16269 freebsd-*)
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16271 need_version=yes
16273 esac
16274 shlibpath_var=LD_LIBRARY_PATH
16275 case $host_os in
16276 freebsd2*)
16277 shlibpath_overrides_runpath=yes
16279 freebsd3.[01]* | freebsdelf3.[01]*)
16280 shlibpath_overrides_runpath=yes
16281 hardcode_into_libs=yes
16283 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16284 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16285 shlibpath_overrides_runpath=no
16286 hardcode_into_libs=yes
16288 *) # from 4.6 on, and DragonFly
16289 shlibpath_overrides_runpath=yes
16290 hardcode_into_libs=yes
16292 esac
16295 gnu*)
16296 version_type=linux
16297 need_lib_prefix=no
16298 need_version=no
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16300 soname_spec='${libname}${release}${shared_ext}$major'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 hardcode_into_libs=yes
16305 haiku*)
16306 version_type=linux
16307 need_lib_prefix=no
16308 need_version=no
16309 dynamic_linker="$host_os runtime_loader"
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 shlibpath_var=LIBRARY_PATH
16313 shlibpath_overrides_runpath=yes
16314 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16315 hardcode_into_libs=yes
16318 hpux9* | hpux10* | hpux11*)
16319 # Give a soname corresponding to the major version so that dld.sl refuses to
16320 # link against other versions.
16321 version_type=sunos
16322 need_lib_prefix=no
16323 need_version=no
16324 case $host_cpu in
16325 ia64*)
16326 shrext_cmds='.so'
16327 hardcode_into_libs=yes
16328 dynamic_linker="$host_os dld.so"
16329 shlibpath_var=LD_LIBRARY_PATH
16330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 if test "X$HPUX_IA64_MODE" = X32; then
16334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16335 else
16336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16340 hppa*64*)
16341 shrext_cmds='.sl'
16342 hardcode_into_libs=yes
16343 dynamic_linker="$host_os dld.sl"
16344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16352 shrext_cmds='.sl'
16353 dynamic_linker="$host_os dld.sl"
16354 shlibpath_var=SHLIB_PATH
16355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16359 esac
16360 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16361 postinstall_cmds='chmod 555 $lib'
16362 # or fails outright, so override atomically:
16363 install_override_mode=555
16366 interix[3-9]*)
16367 version_type=linux
16368 need_lib_prefix=no
16369 need_version=no
16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16371 soname_spec='${libname}${release}${shared_ext}$major'
16372 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 shlibpath_overrides_runpath=no
16375 hardcode_into_libs=yes
16378 irix5* | irix6* | nonstopux*)
16379 case $host_os in
16380 nonstopux*) version_type=nonstopux ;;
16382 if test "$lt_cv_prog_gnu_ld" = yes; then
16383 version_type=linux
16384 else
16385 version_type=irix
16386 fi ;;
16387 esac
16388 need_lib_prefix=no
16389 need_version=no
16390 soname_spec='${libname}${release}${shared_ext}$major'
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16392 case $host_os in
16393 irix5* | nonstopux*)
16394 libsuff= shlibsuff=
16397 case $LD in # libtool.m4 will add one of these switches to LD
16398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16399 libsuff= shlibsuff= libmagic=32-bit;;
16400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16401 libsuff=32 shlibsuff=N32 libmagic=N32;;
16402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16403 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16404 *) libsuff= shlibsuff= libmagic=never-match;;
16405 esac
16407 esac
16408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16409 shlibpath_overrides_runpath=no
16410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16412 hardcode_into_libs=yes
16415 # No shared lib support for Linux oldld, aout, or coff.
16416 linux*oldld* | linux*aout* | linux*coff*)
16417 dynamic_linker=no
16420 # This must be Linux ELF.
16421 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16422 version_type=linux
16423 need_lib_prefix=no
16424 need_version=no
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath=no
16431 # Some binutils ld are patched to set DT_RUNPATH
16432 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16433 $as_echo_n "(cached) " >&6
16434 else
16435 lt_cv_shlibpath_overrides_runpath=no
16436 save_LDFLAGS=$LDFLAGS
16437 save_libdir=$libdir
16438 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16439 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h. */
16444 main ()
16448 return 0;
16450 _ACEOF
16451 if ac_fn_c_try_link "$LINENO"; then :
16452 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16453 lt_cv_shlibpath_overrides_runpath=yes
16456 rm -f core conftest.err conftest.$ac_objext \
16457 conftest$ac_exeext conftest.$ac_ext
16458 LDFLAGS=$save_LDFLAGS
16459 libdir=$save_libdir
16463 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16465 # This implies no fast_install, which is unacceptable.
16466 # Some rework will be needed to allow for fast_install
16467 # before this can be enabled.
16468 hardcode_into_libs=yes
16470 # Append ld.so.conf contents to the search path
16471 if test -f /etc/ld.so.conf; then
16472 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' ' '`
16473 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16476 # We used to test for /lib/ld.so.1 and disable shared libraries on
16477 # powerpc, because MkLinux only supported shared libraries with the
16478 # GNU dynamic linker. Since this was broken with cross compilers,
16479 # most powerpc-linux boxes support dynamic linking these days and
16480 # people can always --disable-shared, the test was removed, and we
16481 # assume the GNU/Linux dynamic linker is in use.
16482 dynamic_linker='GNU/Linux ld.so'
16485 netbsd*)
16486 version_type=sunos
16487 need_lib_prefix=no
16488 need_version=no
16489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16492 dynamic_linker='NetBSD (a.out) ld.so'
16493 else
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16495 soname_spec='${libname}${release}${shared_ext}$major'
16496 dynamic_linker='NetBSD ld.elf_so'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 shlibpath_overrides_runpath=yes
16500 hardcode_into_libs=yes
16503 newsos6)
16504 version_type=linux
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 shlibpath_var=LD_LIBRARY_PATH
16507 shlibpath_overrides_runpath=yes
16510 *nto* | *qnx*)
16511 version_type=qnx
16512 need_lib_prefix=no
16513 need_version=no
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515 soname_spec='${libname}${release}${shared_ext}$major'
16516 shlibpath_var=LD_LIBRARY_PATH
16517 shlibpath_overrides_runpath=no
16518 hardcode_into_libs=yes
16519 dynamic_linker='ldqnx.so'
16522 openbsd*)
16523 version_type=sunos
16524 sys_lib_dlsearch_path_spec="/usr/lib"
16525 need_lib_prefix=no
16526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16527 case $host_os in
16528 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16529 *) need_version=no ;;
16530 esac
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16535 case $host_os in
16536 openbsd2.[89] | openbsd2.[89].*)
16537 shlibpath_overrides_runpath=no
16540 shlibpath_overrides_runpath=yes
16542 esac
16543 else
16544 shlibpath_overrides_runpath=yes
16548 os2*)
16549 libname_spec='$name'
16550 shrext_cmds=".dll"
16551 need_lib_prefix=no
16552 library_names_spec='$libname${shared_ext} $libname.a'
16553 dynamic_linker='OS/2 ld.exe'
16554 shlibpath_var=LIBPATH
16557 osf3* | osf4* | osf5*)
16558 version_type=osf
16559 need_lib_prefix=no
16560 need_version=no
16561 soname_spec='${libname}${release}${shared_ext}$major'
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16568 rdos*)
16569 dynamic_linker=no
16572 solaris*)
16573 version_type=linux
16574 need_lib_prefix=no
16575 need_version=no
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577 soname_spec='${libname}${release}${shared_ext}$major'
16578 shlibpath_var=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath=yes
16580 hardcode_into_libs=yes
16581 # ldd complains unless libraries are executable
16582 postinstall_cmds='chmod +x $lib'
16585 sunos4*)
16586 version_type=sunos
16587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 shlibpath_overrides_runpath=yes
16591 if test "$with_gnu_ld" = yes; then
16592 need_lib_prefix=no
16594 need_version=yes
16597 sysv4 | sysv4.3*)
16598 version_type=linux
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 shlibpath_var=LD_LIBRARY_PATH
16602 case $host_vendor in
16603 sni)
16604 shlibpath_overrides_runpath=no
16605 need_lib_prefix=no
16606 runpath_var=LD_RUN_PATH
16608 siemens)
16609 need_lib_prefix=no
16611 motorola)
16612 need_lib_prefix=no
16613 need_version=no
16614 shlibpath_overrides_runpath=no
16615 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16617 esac
16620 sysv4*MP*)
16621 if test -d /usr/nec ;then
16622 version_type=linux
16623 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16624 soname_spec='$libname${shared_ext}.$major'
16625 shlibpath_var=LD_LIBRARY_PATH
16629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16630 version_type=freebsd-elf
16631 need_lib_prefix=no
16632 need_version=no
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16634 soname_spec='${libname}${release}${shared_ext}$major'
16635 shlibpath_var=LD_LIBRARY_PATH
16636 shlibpath_overrides_runpath=yes
16637 hardcode_into_libs=yes
16638 if test "$with_gnu_ld" = yes; then
16639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16640 else
16641 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16642 case $host_os in
16643 sco3.2v5*)
16644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16646 esac
16648 sys_lib_dlsearch_path_spec='/usr/lib'
16651 tpf*)
16652 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16653 version_type=linux
16654 need_lib_prefix=no
16655 need_version=no
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657 shlibpath_var=LD_LIBRARY_PATH
16658 shlibpath_overrides_runpath=no
16659 hardcode_into_libs=yes
16662 uts4*)
16663 version_type=linux
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 soname_spec='${libname}${release}${shared_ext}$major'
16666 shlibpath_var=LD_LIBRARY_PATH
16670 dynamic_linker=no
16672 esac
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16674 $as_echo "$dynamic_linker" >&6; }
16675 test "$dynamic_linker" = no && can_build_shared=no
16677 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16678 if test "$GCC" = yes; then
16679 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16682 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16683 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16685 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16686 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16781 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16782 hardcode_action=
16783 if test -n "$hardcode_libdir_flag_spec" ||
16784 test -n "$runpath_var" ||
16785 test "X$hardcode_automatic" = "Xyes" ; then
16787 # We can hardcode non-existent directories.
16788 if test "$hardcode_direct" != no &&
16789 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16790 # have to relink, otherwise we might link with an installed library
16791 # when we should be linking with a yet-to-be-installed one
16792 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16793 test "$hardcode_minus_L" != no; then
16794 # Linking always hardcodes the temporary library directory.
16795 hardcode_action=relink
16796 else
16797 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16798 hardcode_action=immediate
16800 else
16801 # We cannot hardcode anything, or else we can only hardcode existing
16802 # directories.
16803 hardcode_action=unsupported
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16806 $as_echo "$hardcode_action" >&6; }
16808 if test "$hardcode_action" = relink ||
16809 test "$inherit_rpath" = yes; then
16810 # Fast installation is not supported
16811 enable_fast_install=no
16812 elif test "$shlibpath_overrides_runpath" = yes ||
16813 test "$enable_shared" = no; then
16814 # Fast installation is not necessary
16815 enable_fast_install=needless
16823 if test "x$enable_dlopen" != xyes; then
16824 enable_dlopen=unknown
16825 enable_dlopen_self=unknown
16826 enable_dlopen_self_static=unknown
16827 else
16828 lt_cv_dlopen=no
16829 lt_cv_dlopen_libs=
16831 case $host_os in
16832 beos*)
16833 lt_cv_dlopen="load_add_on"
16834 lt_cv_dlopen_libs=
16835 lt_cv_dlopen_self=yes
16838 mingw* | pw32* | cegcc*)
16839 lt_cv_dlopen="LoadLibrary"
16840 lt_cv_dlopen_libs=
16843 cygwin*)
16844 lt_cv_dlopen="dlopen"
16845 lt_cv_dlopen_libs=
16848 darwin*)
16849 # if libdl is installed we need to link against it
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16851 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16852 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 ac_check_lib_save_LIBS=$LIBS
16856 LIBS="-ldl $LIBS"
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16860 /* Override any GCC internal prototype to avoid an error.
16861 Use char because int might match the return type of a GCC
16862 builtin and then its argument prototype would still apply. */
16863 #ifdef __cplusplus
16864 extern "C"
16865 #endif
16866 char dlopen ();
16868 main ()
16870 return dlopen ();
16872 return 0;
16874 _ACEOF
16875 if ac_fn_c_try_link "$LINENO"; then :
16876 ac_cv_lib_dl_dlopen=yes
16877 else
16878 ac_cv_lib_dl_dlopen=no
16880 rm -f core conftest.err conftest.$ac_objext \
16881 conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16885 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16886 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16888 else
16890 lt_cv_dlopen="dyld"
16891 lt_cv_dlopen_libs=
16892 lt_cv_dlopen_self=yes
16899 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16900 if test "x$ac_cv_func_shl_load" = x""yes; then :
16901 lt_cv_dlopen="shl_load"
16902 else
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16904 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16905 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16906 $as_echo_n "(cached) " >&6
16907 else
16908 ac_check_lib_save_LIBS=$LIBS
16909 LIBS="-ldld $LIBS"
16910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h. */
16913 /* Override any GCC internal prototype to avoid an error.
16914 Use char because int might match the return type of a GCC
16915 builtin and then its argument prototype would still apply. */
16916 #ifdef __cplusplus
16917 extern "C"
16918 #endif
16919 char shl_load ();
16921 main ()
16923 return shl_load ();
16925 return 0;
16927 _ACEOF
16928 if ac_fn_c_try_link "$LINENO"; then :
16929 ac_cv_lib_dld_shl_load=yes
16930 else
16931 ac_cv_lib_dld_shl_load=no
16933 rm -f core conftest.err conftest.$ac_objext \
16934 conftest$ac_exeext conftest.$ac_ext
16935 LIBS=$ac_check_lib_save_LIBS
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16938 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16939 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16940 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16941 else
16942 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16943 if test "x$ac_cv_func_dlopen" = x""yes; then :
16944 lt_cv_dlopen="dlopen"
16945 else
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16947 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16949 $as_echo_n "(cached) " >&6
16950 else
16951 ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-ldl $LIBS"
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16956 /* Override any GCC internal prototype to avoid an error.
16957 Use char because int might match the return type of a GCC
16958 builtin and then its argument prototype would still apply. */
16959 #ifdef __cplusplus
16960 extern "C"
16961 #endif
16962 char dlopen ();
16964 main ()
16966 return dlopen ();
16968 return 0;
16970 _ACEOF
16971 if ac_fn_c_try_link "$LINENO"; then :
16972 ac_cv_lib_dl_dlopen=yes
16973 else
16974 ac_cv_lib_dl_dlopen=no
16976 rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978 LIBS=$ac_check_lib_save_LIBS
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16981 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16982 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16984 else
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16986 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16987 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16988 $as_echo_n "(cached) " >&6
16989 else
16990 ac_check_lib_save_LIBS=$LIBS
16991 LIBS="-lsvld $LIBS"
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16995 /* Override any GCC internal prototype to avoid an error.
16996 Use char because int might match the return type of a GCC
16997 builtin and then its argument prototype would still apply. */
16998 #ifdef __cplusplus
16999 extern "C"
17000 #endif
17001 char dlopen ();
17003 main ()
17005 return dlopen ();
17007 return 0;
17009 _ACEOF
17010 if ac_fn_c_try_link "$LINENO"; then :
17011 ac_cv_lib_svld_dlopen=yes
17012 else
17013 ac_cv_lib_svld_dlopen=no
17015 rm -f core conftest.err conftest.$ac_objext \
17016 conftest$ac_exeext conftest.$ac_ext
17017 LIBS=$ac_check_lib_save_LIBS
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17020 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17021 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17023 else
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17025 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17026 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17027 $as_echo_n "(cached) " >&6
17028 else
17029 ac_check_lib_save_LIBS=$LIBS
17030 LIBS="-ldld $LIBS"
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17034 /* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17037 #ifdef __cplusplus
17038 extern "C"
17039 #endif
17040 char dld_link ();
17042 main ()
17044 return dld_link ();
17046 return 0;
17048 _ACEOF
17049 if ac_fn_c_try_link "$LINENO"; then :
17050 ac_cv_lib_dld_dld_link=yes
17051 else
17052 ac_cv_lib_dld_dld_link=no
17054 rm -f core conftest.err conftest.$ac_objext \
17055 conftest$ac_exeext conftest.$ac_ext
17056 LIBS=$ac_check_lib_save_LIBS
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17059 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17060 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17061 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17080 esac
17082 if test "x$lt_cv_dlopen" != xno; then
17083 enable_dlopen=yes
17084 else
17085 enable_dlopen=no
17088 case $lt_cv_dlopen in
17089 dlopen)
17090 save_CPPFLAGS="$CPPFLAGS"
17091 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17093 save_LDFLAGS="$LDFLAGS"
17094 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17096 save_LIBS="$LIBS"
17097 LIBS="$lt_cv_dlopen_libs $LIBS"
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17100 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17101 if test "${lt_cv_dlopen_self+set}" = set; then :
17102 $as_echo_n "(cached) " >&6
17103 else
17104 if test "$cross_compiling" = yes; then :
17105 lt_cv_dlopen_self=cross
17106 else
17107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17108 lt_status=$lt_dlunknown
17109 cat > conftest.$ac_ext <<_LT_EOF
17110 #line 17110 "configure"
17111 #include "confdefs.h"
17113 #if HAVE_DLFCN_H
17114 #include <dlfcn.h>
17115 #endif
17117 #include <stdio.h>
17119 #ifdef RTLD_GLOBAL
17120 # define LT_DLGLOBAL RTLD_GLOBAL
17121 #else
17122 # ifdef DL_GLOBAL
17123 # define LT_DLGLOBAL DL_GLOBAL
17124 # else
17125 # define LT_DLGLOBAL 0
17126 # endif
17127 #endif
17129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17130 find out it does not work in some platform. */
17131 #ifndef LT_DLLAZY_OR_NOW
17132 # ifdef RTLD_LAZY
17133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17134 # else
17135 # ifdef DL_LAZY
17136 # define LT_DLLAZY_OR_NOW DL_LAZY
17137 # else
17138 # ifdef RTLD_NOW
17139 # define LT_DLLAZY_OR_NOW RTLD_NOW
17140 # else
17141 # ifdef DL_NOW
17142 # define LT_DLLAZY_OR_NOW DL_NOW
17143 # else
17144 # define LT_DLLAZY_OR_NOW 0
17145 # endif
17146 # endif
17147 # endif
17148 # endif
17149 #endif
17151 /* When -fvisbility=hidden is used, assume the code has been annotated
17152 correspondingly for the symbols needed. */
17153 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17154 void fnord () __attribute__((visibility("default")));
17155 #endif
17157 void fnord () { int i=42; }
17158 int main ()
17160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17161 int status = $lt_dlunknown;
17163 if (self)
17165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17166 else
17168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17169 else puts (dlerror ());
17171 /* dlclose (self); */
17173 else
17174 puts (dlerror ());
17176 return status;
17178 _LT_EOF
17179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17180 (eval $ac_link) 2>&5
17181 ac_status=$?
17182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17183 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17184 (./conftest; exit; ) >&5 2>/dev/null
17185 lt_status=$?
17186 case x$lt_status in
17187 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17188 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17189 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17190 esac
17191 else :
17192 # compilation failed
17193 lt_cv_dlopen_self=no
17196 rm -fr conftest*
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17201 $as_echo "$lt_cv_dlopen_self" >&6; }
17203 if test "x$lt_cv_dlopen_self" = xyes; then
17204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17206 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17207 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17208 $as_echo_n "(cached) " >&6
17209 else
17210 if test "$cross_compiling" = yes; then :
17211 lt_cv_dlopen_self_static=cross
17212 else
17213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17214 lt_status=$lt_dlunknown
17215 cat > conftest.$ac_ext <<_LT_EOF
17216 #line 17216 "configure"
17217 #include "confdefs.h"
17219 #if HAVE_DLFCN_H
17220 #include <dlfcn.h>
17221 #endif
17223 #include <stdio.h>
17225 #ifdef RTLD_GLOBAL
17226 # define LT_DLGLOBAL RTLD_GLOBAL
17227 #else
17228 # ifdef DL_GLOBAL
17229 # define LT_DLGLOBAL DL_GLOBAL
17230 # else
17231 # define LT_DLGLOBAL 0
17232 # endif
17233 #endif
17235 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17236 find out it does not work in some platform. */
17237 #ifndef LT_DLLAZY_OR_NOW
17238 # ifdef RTLD_LAZY
17239 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17240 # else
17241 # ifdef DL_LAZY
17242 # define LT_DLLAZY_OR_NOW DL_LAZY
17243 # else
17244 # ifdef RTLD_NOW
17245 # define LT_DLLAZY_OR_NOW RTLD_NOW
17246 # else
17247 # ifdef DL_NOW
17248 # define LT_DLLAZY_OR_NOW DL_NOW
17249 # else
17250 # define LT_DLLAZY_OR_NOW 0
17251 # endif
17252 # endif
17253 # endif
17254 # endif
17255 #endif
17257 /* When -fvisbility=hidden is used, assume the code has been annotated
17258 correspondingly for the symbols needed. */
17259 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17260 void fnord () __attribute__((visibility("default")));
17261 #endif
17263 void fnord () { int i=42; }
17264 int main ()
17266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17267 int status = $lt_dlunknown;
17269 if (self)
17271 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17272 else
17274 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17275 else puts (dlerror ());
17277 /* dlclose (self); */
17279 else
17280 puts (dlerror ());
17282 return status;
17284 _LT_EOF
17285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17286 (eval $ac_link) 2>&5
17287 ac_status=$?
17288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17289 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17290 (./conftest; exit; ) >&5 2>/dev/null
17291 lt_status=$?
17292 case x$lt_status in
17293 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17294 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17295 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17296 esac
17297 else :
17298 # compilation failed
17299 lt_cv_dlopen_self_static=no
17302 rm -fr conftest*
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17307 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17310 CPPFLAGS="$save_CPPFLAGS"
17311 LDFLAGS="$save_LDFLAGS"
17312 LIBS="$save_LIBS"
17314 esac
17316 case $lt_cv_dlopen_self in
17317 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17318 *) enable_dlopen_self=unknown ;;
17319 esac
17321 case $lt_cv_dlopen_self_static in
17322 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17323 *) enable_dlopen_self_static=unknown ;;
17324 esac
17343 striplib=
17344 old_striplib=
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17346 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17347 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17349 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17351 $as_echo "yes" >&6; }
17352 else
17353 # FIXME - insert some real tests, host_os isn't really good enough
17354 case $host_os in
17355 darwin*)
17356 if test -n "$STRIP" ; then
17357 striplib="$STRIP -x"
17358 old_striplib="$STRIP -S"
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17361 else
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17363 $as_echo "no" >&6; }
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368 $as_echo "no" >&6; }
17370 esac
17384 # Report which library types will actually be built
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17386 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17388 $as_echo "$can_build_shared" >&6; }
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17391 $as_echo_n "checking whether to build shared libraries... " >&6; }
17392 test "$can_build_shared" = "no" && enable_shared=no
17394 # On AIX, shared libraries and static libraries use the same namespace, and
17395 # are all built from PIC.
17396 case $host_os in
17397 aix3*)
17398 test "$enable_shared" = yes && enable_static=no
17399 if test -n "$RANLIB"; then
17400 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17401 postinstall_cmds='$RANLIB $lib'
17405 aix[4-9]*)
17406 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17407 test "$enable_shared" = yes && enable_static=no
17410 esac
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17412 $as_echo "$enable_shared" >&6; }
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17415 $as_echo_n "checking whether to build static libraries... " >&6; }
17416 # Make sure either enable_shared or enable_static is yes.
17417 test "$enable_shared" = yes || enable_static=yes
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17419 $as_echo "$enable_static" >&6; }
17425 ac_ext=c
17426 ac_cpp='$CPP $CPPFLAGS'
17427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17431 CC="$lt_save_CC"
17433 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17434 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17435 (test "X$CXX" != "Xg++"))) ; then
17436 ac_ext=cpp
17437 ac_cpp='$CXXCPP $CPPFLAGS'
17438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17442 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17443 if test -z "$CXXCPP"; then
17444 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17445 $as_echo_n "(cached) " >&6
17446 else
17447 # Double quotes because CXXCPP needs to be expanded
17448 for CXXCPP in "$CXX -E" "/lib/cpp"
17450 ac_preproc_ok=false
17451 for ac_cxx_preproc_warn_flag in '' yes
17453 # Use a header file that comes with gcc, so configuring glibc
17454 # with a fresh cross-compiler works.
17455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17456 # <limits.h> exists even on freestanding compilers.
17457 # On the NeXT, cc -E runs the code through the compiler's parser,
17458 # not just through cpp. "Syntax error" is here to catch this case.
17459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17461 #ifdef __STDC__
17462 # include <limits.h>
17463 #else
17464 # include <assert.h>
17465 #endif
17466 Syntax error
17467 _ACEOF
17468 if ac_fn_cxx_try_cpp "$LINENO"; then :
17470 else
17471 # Broken: fails on valid input.
17472 continue
17474 rm -f conftest.err conftest.$ac_ext
17476 # OK, works on sane cases. Now check whether nonexistent headers
17477 # can be detected and how.
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 #include <ac_nonexistent.h>
17481 _ACEOF
17482 if ac_fn_cxx_try_cpp "$LINENO"; then :
17483 # Broken: success on invalid input.
17484 continue
17485 else
17486 # Passes both tests.
17487 ac_preproc_ok=:
17488 break
17490 rm -f conftest.err conftest.$ac_ext
17492 done
17493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17494 rm -f conftest.err conftest.$ac_ext
17495 if $ac_preproc_ok; then :
17496 break
17499 done
17500 ac_cv_prog_CXXCPP=$CXXCPP
17503 CXXCPP=$ac_cv_prog_CXXCPP
17504 else
17505 ac_cv_prog_CXXCPP=$CXXCPP
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17508 $as_echo "$CXXCPP" >&6; }
17509 ac_preproc_ok=false
17510 for ac_cxx_preproc_warn_flag in '' yes
17512 # Use a header file that comes with gcc, so configuring glibc
17513 # with a fresh cross-compiler works.
17514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17515 # <limits.h> exists even on freestanding compilers.
17516 # On the NeXT, cc -E runs the code through the compiler's parser,
17517 # not just through cpp. "Syntax error" is here to catch this case.
17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17520 #ifdef __STDC__
17521 # include <limits.h>
17522 #else
17523 # include <assert.h>
17524 #endif
17525 Syntax error
17526 _ACEOF
17527 if ac_fn_cxx_try_cpp "$LINENO"; then :
17529 else
17530 # Broken: fails on valid input.
17531 continue
17533 rm -f conftest.err conftest.$ac_ext
17535 # OK, works on sane cases. Now check whether nonexistent headers
17536 # can be detected and how.
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17539 #include <ac_nonexistent.h>
17540 _ACEOF
17541 if ac_fn_cxx_try_cpp "$LINENO"; then :
17542 # Broken: success on invalid input.
17543 continue
17544 else
17545 # Passes both tests.
17546 ac_preproc_ok=:
17547 break
17549 rm -f conftest.err conftest.$ac_ext
17551 done
17552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17553 rm -f conftest.err conftest.$ac_ext
17554 if $ac_preproc_ok; then :
17556 else
17557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17559 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17560 See \`config.log' for more details." "$LINENO" 5; }
17563 ac_ext=c
17564 ac_cpp='$CPP $CPPFLAGS'
17565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17569 else
17570 _lt_caught_CXX_error=yes
17573 ac_ext=cpp
17574 ac_cpp='$CXXCPP $CPPFLAGS'
17575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17579 archive_cmds_need_lc_CXX=no
17580 allow_undefined_flag_CXX=
17581 always_export_symbols_CXX=no
17582 archive_expsym_cmds_CXX=
17583 compiler_needs_object_CXX=no
17584 export_dynamic_flag_spec_CXX=
17585 hardcode_direct_CXX=no
17586 hardcode_direct_absolute_CXX=no
17587 hardcode_libdir_flag_spec_CXX=
17588 hardcode_libdir_flag_spec_ld_CXX=
17589 hardcode_libdir_separator_CXX=
17590 hardcode_minus_L_CXX=no
17591 hardcode_shlibpath_var_CXX=unsupported
17592 hardcode_automatic_CXX=no
17593 inherit_rpath_CXX=no
17594 module_cmds_CXX=
17595 module_expsym_cmds_CXX=
17596 link_all_deplibs_CXX=unknown
17597 old_archive_cmds_CXX=$old_archive_cmds
17598 reload_flag_CXX=$reload_flag
17599 reload_cmds_CXX=$reload_cmds
17600 no_undefined_flag_CXX=
17601 whole_archive_flag_spec_CXX=
17602 enable_shared_with_static_runtimes_CXX=no
17604 # Source file extension for C++ test sources.
17605 ac_ext=cpp
17607 # Object file extension for compiled C++ test sources.
17608 objext=o
17609 objext_CXX=$objext
17611 # No sense in running all these tests if we already determined that
17612 # the CXX compiler isn't working. Some variables (like enable_shared)
17613 # are currently assumed to apply to all compilers on this platform,
17614 # and will be corrupted by setting them based on a non-working compiler.
17615 if test "$_lt_caught_CXX_error" != yes; then
17616 # Code to be used in simple compile tests
17617 lt_simple_compile_test_code="int some_variable = 0;"
17619 # Code to be used in simple link tests
17620 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17629 # If no C compiler was specified, use CC.
17630 LTCC=${LTCC-"$CC"}
17632 # If no C compiler flags were specified, use CFLAGS.
17633 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17635 # Allow CC to be a program name with arguments.
17636 compiler=$CC
17639 # save warnings/boilerplate of simple test code
17640 ac_outfile=conftest.$ac_objext
17641 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17642 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17643 _lt_compiler_boilerplate=`cat conftest.err`
17644 $RM conftest*
17646 ac_outfile=conftest.$ac_objext
17647 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17648 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17649 _lt_linker_boilerplate=`cat conftest.err`
17650 $RM -r conftest*
17653 # Allow CC to be a program name with arguments.
17654 lt_save_CC=$CC
17655 lt_save_LD=$LD
17656 lt_save_GCC=$GCC
17657 GCC=$GXX
17658 lt_save_with_gnu_ld=$with_gnu_ld
17659 lt_save_path_LD=$lt_cv_path_LD
17660 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17661 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17662 else
17663 $as_unset lt_cv_prog_gnu_ld
17665 if test -n "${lt_cv_path_LDCXX+set}"; then
17666 lt_cv_path_LD=$lt_cv_path_LDCXX
17667 else
17668 $as_unset lt_cv_path_LD
17670 test -z "${LDCXX+set}" || LD=$LDCXX
17671 CC=${CXX-"c++"}
17672 compiler=$CC
17673 compiler_CXX=$CC
17674 for cc_temp in $compiler""; do
17675 case $cc_temp in
17676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17678 \-*) ;;
17679 *) break;;
17680 esac
17681 done
17682 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17685 if test -n "$compiler"; then
17686 # We don't want -fno-exception when compiling C++ code, so set the
17687 # no_builtin_flag separately
17688 if test "$GXX" = yes; then
17689 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17690 else
17691 lt_prog_compiler_no_builtin_flag_CXX=
17694 if test "$GXX" = yes; then
17695 # Set up default GNU C++ configuration
17699 # Check whether --with-gnu-ld was given.
17700 if test "${with_gnu_ld+set}" = set; then :
17701 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17702 else
17703 with_gnu_ld=no
17706 ac_prog=ld
17707 if test "$GCC" = yes; then
17708 # Check if gcc -print-prog-name=ld gives a path.
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17710 $as_echo_n "checking for ld used by $CC... " >&6; }
17711 case $host in
17712 *-*-mingw*)
17713 # gcc leaves a trailing carriage return which upsets mingw
17714 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17716 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17717 esac
17718 case $ac_prog in
17719 # Accept absolute paths.
17720 [\\/]* | ?:[\\/]*)
17721 re_direlt='/[^/][^/]*/\.\./'
17722 # Canonicalize the pathname of ld
17723 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17724 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17725 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17726 done
17727 test -z "$LD" && LD="$ac_prog"
17730 # If it fails, then pretend we aren't using GCC.
17731 ac_prog=ld
17734 # If it is relative, then search for the first ld in PATH.
17735 with_gnu_ld=unknown
17737 esac
17738 elif test "$with_gnu_ld" = yes; then
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17740 $as_echo_n "checking for GNU ld... " >&6; }
17741 else
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17743 $as_echo_n "checking for non-GNU ld... " >&6; }
17745 if test "${lt_cv_path_LD+set}" = set; then :
17746 $as_echo_n "(cached) " >&6
17747 else
17748 if test -z "$LD"; then
17749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17750 for ac_dir in $PATH; do
17751 IFS="$lt_save_ifs"
17752 test -z "$ac_dir" && ac_dir=.
17753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17754 lt_cv_path_LD="$ac_dir/$ac_prog"
17755 # Check to see if the program is GNU ld. I'd rather use --version,
17756 # but apparently some variants of GNU ld only accept -v.
17757 # Break only if it was the GNU/non-GNU ld that we prefer.
17758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17759 *GNU* | *'with BFD'*)
17760 test "$with_gnu_ld" != no && break
17763 test "$with_gnu_ld" != yes && break
17765 esac
17767 done
17768 IFS="$lt_save_ifs"
17769 else
17770 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17774 LD="$lt_cv_path_LD"
17775 if test -n "$LD"; then
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17777 $as_echo "$LD" >&6; }
17778 else
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17780 $as_echo "no" >&6; }
17782 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17784 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17785 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17786 $as_echo_n "(cached) " >&6
17787 else
17788 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17789 case `$LD -v 2>&1 </dev/null` in
17790 *GNU* | *'with BFD'*)
17791 lt_cv_prog_gnu_ld=yes
17794 lt_cv_prog_gnu_ld=no
17796 esac
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17799 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17800 with_gnu_ld=$lt_cv_prog_gnu_ld
17808 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17809 # archiving commands below assume that GNU ld is being used.
17810 if test "$with_gnu_ld" = yes; then
17811 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17812 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'
17814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17817 # If archive_cmds runs LD, not CC, wlarc should be empty
17818 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17819 # investigate it a little bit more. (MM)
17820 wlarc='${wl}'
17822 # ancient GNU ld didn't support --whole-archive et. al.
17823 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17824 $GREP 'no-whole-archive' > /dev/null; then
17825 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17826 else
17827 whole_archive_flag_spec_CXX=
17829 else
17830 with_gnu_ld=no
17831 wlarc=
17833 # A generic and very simple default shared library creation
17834 # command for GNU C++ for the case where it uses the native
17835 # linker, instead of GNU ld. If possible, this setting should
17836 # overridden to take advantage of the native linker features on
17837 # the platform it is being used on.
17838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17841 # Commands to make compiler produce verbose output that lists
17842 # what "hidden" libraries, object files and flags are used when
17843 # linking a shared library.
17844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17846 else
17847 GXX=no
17848 with_gnu_ld=no
17849 wlarc=
17852 # PORTME: fill in a description of your system's C++ link characteristics
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17855 ld_shlibs_CXX=yes
17856 case $host_os in
17857 aix3*)
17858 # FIXME: insert proper C++ library support
17859 ld_shlibs_CXX=no
17861 aix[4-9]*)
17862 if test "$host_cpu" = ia64; then
17863 # On IA64, the linker does run time linking by default, so we don't
17864 # have to do anything special.
17865 aix_use_runtimelinking=no
17866 exp_sym_flag='-Bexport'
17867 no_entry_flag=""
17868 else
17869 aix_use_runtimelinking=no
17871 # Test if we are trying to use run time linking or normal
17872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17873 # need to do runtime linking.
17874 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17875 for ld_flag in $LDFLAGS; do
17876 case $ld_flag in
17877 *-brtl*)
17878 aix_use_runtimelinking=yes
17879 break
17881 esac
17882 done
17884 esac
17886 exp_sym_flag='-bexport'
17887 no_entry_flag='-bnoentry'
17890 # When large executables or shared objects are built, AIX ld can
17891 # have problems creating the table of contents. If linking a library
17892 # or program results in "error TOC overflow" add -mminimal-toc to
17893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17896 archive_cmds_CXX=''
17897 hardcode_direct_CXX=yes
17898 hardcode_direct_absolute_CXX=yes
17899 hardcode_libdir_separator_CXX=':'
17900 link_all_deplibs_CXX=yes
17901 file_list_spec_CXX='${wl}-f,'
17903 if test "$GXX" = yes; then
17904 case $host_os in aix4.[012]|aix4.[012].*)
17905 # We only want to do this on AIX 4.2 and lower, the check
17906 # below for broken collect2 doesn't work under 4.3+
17907 collect2name=`${CC} -print-prog-name=collect2`
17908 if test -f "$collect2name" &&
17909 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17910 then
17911 # We have reworked collect2
17913 else
17914 # We have old collect2
17915 hardcode_direct_CXX=unsupported
17916 # It fails to find uninstalled libraries when the uninstalled
17917 # path is not listed in the libpath. Setting hardcode_minus_L
17918 # to unsupported forces relinking
17919 hardcode_minus_L_CXX=yes
17920 hardcode_libdir_flag_spec_CXX='-L$libdir'
17921 hardcode_libdir_separator_CXX=
17923 esac
17924 shared_flag='-shared'
17925 if test "$aix_use_runtimelinking" = yes; then
17926 shared_flag="$shared_flag "'${wl}-G'
17928 else
17929 # not using gcc
17930 if test "$host_cpu" = ia64; then
17931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17932 # chokes on -Wl,-G. The following line is correct:
17933 shared_flag='-G'
17934 else
17935 if test "$aix_use_runtimelinking" = yes; then
17936 shared_flag='${wl}-G'
17937 else
17938 shared_flag='${wl}-bM:SRE'
17943 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17944 # It seems that -bexpall does not export symbols beginning with
17945 # underscore (_), so it is better to generate a list of symbols to
17946 # export.
17947 always_export_symbols_CXX=yes
17948 if test "$aix_use_runtimelinking" = yes; then
17949 # Warning - without using the other runtime loading flags (-brtl),
17950 # -berok will link without error, but may produce a broken library.
17951 allow_undefined_flag_CXX='-berok'
17952 # Determine the default libpath from the value encoded in an empty
17953 # executable.
17954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955 /* end confdefs.h. */
17958 main ()
17962 return 0;
17964 _ACEOF
17965 if ac_fn_cxx_try_link "$LINENO"; then :
17967 lt_aix_libpath_sed='
17968 /Import File Strings/,/^$/ {
17969 /^0/ {
17970 s/^0 *\(.*\)$/\1/
17974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17975 # Check for a 64-bit object if we didn't find anything.
17976 if test -z "$aix_libpath"; then
17977 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17986 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"
17987 else
17988 if test "$host_cpu" = ia64; then
17989 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17990 allow_undefined_flag_CXX="-z nodefs"
17991 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"
17992 else
17993 # Determine the default libpath from the value encoded in an
17994 # empty executable.
17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17999 main ()
18003 return 0;
18005 _ACEOF
18006 if ac_fn_cxx_try_link "$LINENO"; then :
18008 lt_aix_libpath_sed='
18009 /Import File Strings/,/^$/ {
18010 /^0/ {
18011 s/^0 *\(.*\)$/\1/
18015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18016 # Check for a 64-bit object if we didn't find anything.
18017 if test -z "$aix_libpath"; then
18018 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18021 rm -f core conftest.err conftest.$ac_objext \
18022 conftest$ac_exeext conftest.$ac_ext
18023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18025 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18026 # Warning - without using the other run time loading flags,
18027 # -berok will link without error, but may produce a broken library.
18028 no_undefined_flag_CXX=' ${wl}-bernotok'
18029 allow_undefined_flag_CXX=' ${wl}-berok'
18030 if test "$with_gnu_ld" = yes; then
18031 # We only use this code for GNU lds that support --whole-archive.
18032 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18033 else
18034 # Exported symbols can be pulled into shared objects from archives
18035 whole_archive_flag_spec_CXX='$convenience'
18037 archive_cmds_need_lc_CXX=yes
18038 # This is similar to how AIX traditionally builds its shared
18039 # libraries.
18040 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'
18045 beos*)
18046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18047 allow_undefined_flag_CXX=unsupported
18048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18049 # support --undefined. This deserves some investigation. FIXME
18050 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18051 else
18052 ld_shlibs_CXX=no
18056 chorus*)
18057 case $cc_basename in
18059 # FIXME: insert proper C++ library support
18060 ld_shlibs_CXX=no
18062 esac
18065 cygwin* | mingw* | pw32* | cegcc*)
18066 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18067 # as there is no search path for DLLs.
18068 hardcode_libdir_flag_spec_CXX='-L$libdir'
18069 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18070 allow_undefined_flag_CXX=unsupported
18071 always_export_symbols_CXX=no
18072 enable_shared_with_static_runtimes_CXX=yes
18074 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18075 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'
18076 # If the export-symbols file already is a .def file (1st line
18077 # is EXPORTS), use it as is; otherwise, prepend...
18078 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18079 cp $export_symbols $output_objdir/$soname.def;
18080 else
18081 echo EXPORTS > $output_objdir/$soname.def;
18082 cat $export_symbols >> $output_objdir/$soname.def;
18084 $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'
18085 else
18086 ld_shlibs_CXX=no
18089 darwin* | rhapsody*)
18092 archive_cmds_need_lc_CXX=no
18093 hardcode_direct_CXX=no
18094 hardcode_automatic_CXX=yes
18095 hardcode_shlibpath_var_CXX=unsupported
18096 if test "$lt_cv_ld_force_load" = "yes"; then
18097 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\"`'
18098 else
18099 whole_archive_flag_spec_CXX=''
18101 link_all_deplibs_CXX=yes
18102 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18103 case $cc_basename in
18104 ifort*) _lt_dar_can_shared=yes ;;
18105 *) _lt_dar_can_shared=$GCC ;;
18106 esac
18107 if test "$_lt_dar_can_shared" = "yes"; then
18108 output_verbose_link_cmd=func_echo_all
18109 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}"
18110 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18111 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}"
18112 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}"
18113 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18114 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}"
18115 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}"
18118 else
18119 ld_shlibs_CXX=no
18124 dgux*)
18125 case $cc_basename in
18126 ec++*)
18127 # FIXME: insert proper C++ library support
18128 ld_shlibs_CXX=no
18130 ghcx*)
18131 # Green Hills C++ Compiler
18132 # FIXME: insert proper C++ library support
18133 ld_shlibs_CXX=no
18136 # FIXME: insert proper C++ library support
18137 ld_shlibs_CXX=no
18139 esac
18142 freebsd[12]*)
18143 # C++ shared libraries reported to be fairly broken before
18144 # switch to ELF
18145 ld_shlibs_CXX=no
18148 freebsd-elf*)
18149 archive_cmds_need_lc_CXX=no
18152 freebsd* | dragonfly*)
18153 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18154 # conventions
18155 ld_shlibs_CXX=yes
18158 gnu*)
18161 haiku*)
18162 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18163 link_all_deplibs_CXX=yes
18166 hpux9*)
18167 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18168 hardcode_libdir_separator_CXX=:
18169 export_dynamic_flag_spec_CXX='${wl}-E'
18170 hardcode_direct_CXX=yes
18171 hardcode_minus_L_CXX=yes # Not in the search PATH,
18172 # but as the default
18173 # location of the library.
18175 case $cc_basename in
18176 CC*)
18177 # FIXME: insert proper C++ library support
18178 ld_shlibs_CXX=no
18180 aCC*)
18181 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'
18182 # Commands to make compiler produce verbose output that lists
18183 # what "hidden" libraries, object files and flags are used when
18184 # linking a shared library.
18186 # There doesn't appear to be a way to prevent this compiler from
18187 # explicitly linking system object files so we need to strip them
18188 # from the output so that they don't get included in the library
18189 # dependencies.
18190 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"'
18193 if test "$GXX" = yes; then
18194 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'
18195 else
18196 # FIXME: insert proper C++ library support
18197 ld_shlibs_CXX=no
18200 esac
18203 hpux10*|hpux11*)
18204 if test $with_gnu_ld = no; then
18205 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18206 hardcode_libdir_separator_CXX=:
18208 case $host_cpu in
18209 hppa*64*|ia64*)
18212 export_dynamic_flag_spec_CXX='${wl}-E'
18214 esac
18216 case $host_cpu in
18217 hppa*64*|ia64*)
18218 hardcode_direct_CXX=no
18219 hardcode_shlibpath_var_CXX=no
18222 hardcode_direct_CXX=yes
18223 hardcode_direct_absolute_CXX=yes
18224 hardcode_minus_L_CXX=yes # Not in the search PATH,
18225 # but as the default
18226 # location of the library.
18228 esac
18230 case $cc_basename in
18231 CC*)
18232 # FIXME: insert proper C++ library support
18233 ld_shlibs_CXX=no
18235 aCC*)
18236 case $host_cpu in
18237 hppa*64*)
18238 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18240 ia64*)
18241 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18244 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18246 esac
18247 # Commands to make compiler produce verbose output that lists
18248 # what "hidden" libraries, object files and flags are used when
18249 # linking a shared library.
18251 # There doesn't appear to be a way to prevent this compiler from
18252 # explicitly linking system object files so we need to strip them
18253 # from the output so that they don't get included in the library
18254 # dependencies.
18255 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"'
18258 if test "$GXX" = yes; then
18259 if test $with_gnu_ld = no; then
18260 case $host_cpu in
18261 hppa*64*)
18262 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18264 ia64*)
18265 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18268 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'
18270 esac
18272 else
18273 # FIXME: insert proper C++ library support
18274 ld_shlibs_CXX=no
18277 esac
18280 interix[3-9]*)
18281 hardcode_direct_CXX=no
18282 hardcode_shlibpath_var_CXX=no
18283 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18284 export_dynamic_flag_spec_CXX='${wl}-E'
18285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18286 # Instead, shared libraries are loaded at an image base (0x10000000 by
18287 # default) and relocated if they conflict, which is a slow very memory
18288 # consuming and fragmenting process. To avoid this, we pick a random,
18289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18291 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'
18292 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'
18294 irix5* | irix6*)
18295 case $cc_basename in
18296 CC*)
18297 # SGI C++
18298 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'
18300 # Archives containing C++ object files must be created using
18301 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18302 # necessary to make sure instantiated templates are included
18303 # in the archive.
18304 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18307 if test "$GXX" = yes; then
18308 if test "$with_gnu_ld" = no; then
18309 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'
18310 else
18311 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'
18314 link_all_deplibs_CXX=yes
18316 esac
18317 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18318 hardcode_libdir_separator_CXX=:
18319 inherit_rpath_CXX=yes
18322 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18323 case $cc_basename in
18324 KCC*)
18325 # Kuck and Associates, Inc. (KAI) C++ Compiler
18327 # KCC will only create a shared library if the output file
18328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18329 # to its proper name (with version) after linking.
18330 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'
18331 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'
18332 # Commands to make compiler produce verbose output that lists
18333 # what "hidden" libraries, object files and flags are used when
18334 # linking a shared library.
18336 # There doesn't appear to be a way to prevent this compiler from
18337 # explicitly linking system object files so we need to strip them
18338 # from the output so that they don't get included in the library
18339 # dependencies.
18340 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"'
18342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18345 # Archives containing C++ object files must be created using
18346 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18347 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18349 icpc* | ecpc* )
18350 # Intel C++
18351 with_gnu_ld=yes
18352 # version 8.0 and above of icpc choke on multiply defined symbols
18353 # if we add $predep_objects and $postdep_objects, however 7.1 and
18354 # earlier do not add the objects themselves.
18355 case `$CC -V 2>&1` in
18356 *"Version 7."*)
18357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18358 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'
18360 *) # Version 8.0 or newer
18361 tmp_idyn=
18362 case $host_cpu in
18363 ia64*) tmp_idyn=' -i_dynamic';;
18364 esac
18365 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18366 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'
18368 esac
18369 archive_cmds_need_lc_CXX=no
18370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18372 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18374 pgCC* | pgcpp*)
18375 # Portland Group C++ compiler
18376 case `$CC -V` in
18377 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18378 prelink_cmds_CXX='tpldir=Template.dir~
18379 rm -rf $tpldir~
18380 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18381 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18382 old_archive_cmds_CXX='tpldir=Template.dir~
18383 rm -rf $tpldir~
18384 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18385 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18386 $RANLIB $oldlib'
18387 archive_cmds_CXX='tpldir=Template.dir~
18388 rm -rf $tpldir~
18389 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18390 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18391 archive_expsym_cmds_CXX='tpldir=Template.dir~
18392 rm -rf $tpldir~
18393 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18394 $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'
18396 *) # Version 6 and above use weak symbols
18397 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18398 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'
18400 esac
18402 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18404 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'
18406 cxx*)
18407 # Compaq C++
18408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18409 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'
18411 runpath_var=LD_RUN_PATH
18412 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18413 hardcode_libdir_separator_CXX=:
18415 # Commands to make compiler produce verbose output that lists
18416 # what "hidden" libraries, object files and flags are used when
18417 # linking a shared library.
18419 # There doesn't appear to be a way to prevent this compiler from
18420 # explicitly linking system object files so we need to strip them
18421 # from the output so that they don't get included in the library
18422 # dependencies.
18423 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'
18425 xl* | mpixl* | bgxl*)
18426 # IBM XL 8.0 on PPC, with GNU ld
18427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18429 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18430 if test "x$supports_anon_versioning" = xyes; then
18431 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18433 echo "local: *; };" >> $output_objdir/$libname.ver~
18434 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18438 case `$CC -V 2>&1 | sed 5q` in
18439 *Sun\ C*)
18440 # Sun C++ 5.9
18441 no_undefined_flag_CXX=' -zdefs'
18442 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18443 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'
18444 hardcode_libdir_flag_spec_CXX='-R$libdir'
18445 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'
18446 compiler_needs_object_CXX=yes
18448 # Not sure whether something based on
18449 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18450 # would be better.
18451 output_verbose_link_cmd='func_echo_all'
18453 # Archives containing C++ object files must be created using
18454 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18455 # necessary to make sure instantiated templates are included
18456 # in the archive.
18457 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18459 esac
18461 esac
18464 lynxos*)
18465 # FIXME: insert proper C++ library support
18466 ld_shlibs_CXX=no
18469 m88k*)
18470 # FIXME: insert proper C++ library support
18471 ld_shlibs_CXX=no
18474 mvs*)
18475 case $cc_basename in
18476 cxx*)
18477 # FIXME: insert proper C++ library support
18478 ld_shlibs_CXX=no
18481 # FIXME: insert proper C++ library support
18482 ld_shlibs_CXX=no
18484 esac
18487 netbsd*)
18488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18489 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18490 wlarc=
18491 hardcode_libdir_flag_spec_CXX='-R$libdir'
18492 hardcode_direct_CXX=yes
18493 hardcode_shlibpath_var_CXX=no
18495 # Workaround some broken pre-1.5 toolchains
18496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18499 *nto* | *qnx*)
18500 ld_shlibs_CXX=yes
18503 openbsd2*)
18504 # C++ shared libraries are fairly broken
18505 ld_shlibs_CXX=no
18508 openbsd*)
18509 if test -f /usr/libexec/ld.so; then
18510 hardcode_direct_CXX=yes
18511 hardcode_shlibpath_var_CXX=no
18512 hardcode_direct_absolute_CXX=yes
18513 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18514 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18516 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18517 export_dynamic_flag_spec_CXX='${wl}-E'
18518 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18520 output_verbose_link_cmd=func_echo_all
18521 else
18522 ld_shlibs_CXX=no
18526 osf3* | osf4* | osf5*)
18527 case $cc_basename in
18528 KCC*)
18529 # Kuck and Associates, Inc. (KAI) C++ Compiler
18531 # KCC will only create a shared library if the output file
18532 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18533 # to its proper name (with version) after linking.
18534 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'
18536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18537 hardcode_libdir_separator_CXX=:
18539 # Archives containing C++ object files must be created using
18540 # the KAI C++ compiler.
18541 case $host in
18542 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18543 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18544 esac
18546 RCC*)
18547 # Rational C++ 2.4.1
18548 # FIXME: insert proper C++ library support
18549 ld_shlibs_CXX=no
18551 cxx*)
18552 case $host in
18553 osf3*)
18554 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18555 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'
18556 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18559 allow_undefined_flag_CXX=' -expect_unresolved \*'
18560 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'
18561 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18562 echo "-hidden">> $lib.exp~
18563 $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~
18564 $RM $lib.exp'
18565 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18567 esac
18569 hardcode_libdir_separator_CXX=:
18571 # Commands to make compiler produce verbose output that lists
18572 # what "hidden" libraries, object files and flags are used when
18573 # linking a shared library.
18575 # There doesn't appear to be a way to prevent this compiler from
18576 # explicitly linking system object files so we need to strip them
18577 # from the output so that they don't get included in the library
18578 # dependencies.
18579 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"'
18582 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18583 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18584 case $host in
18585 osf3*)
18586 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'
18589 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'
18591 esac
18593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18594 hardcode_libdir_separator_CXX=:
18596 # Commands to make compiler produce verbose output that lists
18597 # what "hidden" libraries, object files and flags are used when
18598 # linking a shared library.
18599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18601 else
18602 # FIXME: insert proper C++ library support
18603 ld_shlibs_CXX=no
18606 esac
18609 psos*)
18610 # FIXME: insert proper C++ library support
18611 ld_shlibs_CXX=no
18614 sunos4*)
18615 case $cc_basename in
18616 CC*)
18617 # Sun C++ 4.x
18618 # FIXME: insert proper C++ library support
18619 ld_shlibs_CXX=no
18621 lcc*)
18622 # Lucid
18623 # FIXME: insert proper C++ library support
18624 ld_shlibs_CXX=no
18627 # FIXME: insert proper C++ library support
18628 ld_shlibs_CXX=no
18630 esac
18633 solaris*)
18634 case $cc_basename in
18635 CC*)
18636 # Sun C++ 4.2, 5.x and Centerline C++
18637 archive_cmds_need_lc_CXX=yes
18638 no_undefined_flag_CXX=' -zdefs'
18639 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18640 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18641 $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'
18643 hardcode_libdir_flag_spec_CXX='-R$libdir'
18644 hardcode_shlibpath_var_CXX=no
18645 case $host_os in
18646 solaris2.[0-5] | solaris2.[0-5].*) ;;
18648 # The compiler driver will combine and reorder linker options,
18649 # but understands `-z linker_flag'.
18650 # Supported since Solaris 2.6 (maybe 2.5.1?)
18651 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18653 esac
18654 link_all_deplibs_CXX=yes
18656 output_verbose_link_cmd='func_echo_all'
18658 # Archives containing C++ object files must be created using
18659 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18660 # necessary to make sure instantiated templates are included
18661 # in the archive.
18662 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18664 gcx*)
18665 # Green Hills C++ Compiler
18666 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18668 # The C++ compiler must be used to create the archive.
18669 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18672 # GNU C++ compiler with Solaris linker
18673 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18674 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18675 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18676 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18677 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18678 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18680 # Commands to make compiler produce verbose output that lists
18681 # what "hidden" libraries, object files and flags are used when
18682 # linking a shared library.
18683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18684 else
18685 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18686 # platform.
18687 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18688 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18689 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18691 # Commands to make compiler produce verbose output that lists
18692 # what "hidden" libraries, object files and flags are used when
18693 # linking a shared library.
18694 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18697 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18698 case $host_os in
18699 solaris2.[0-5] | solaris2.[0-5].*) ;;
18701 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18703 esac
18706 esac
18709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18710 no_undefined_flag_CXX='${wl}-z,text'
18711 archive_cmds_need_lc_CXX=no
18712 hardcode_shlibpath_var_CXX=no
18713 runpath_var='LD_RUN_PATH'
18715 case $cc_basename in
18716 CC*)
18717 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18718 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18721 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18722 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18724 esac
18727 sysv5* | sco3.2v5* | sco5v6*)
18728 # Note: We can NOT use -z defs as we might desire, because we do not
18729 # link with -lc, and that would cause any symbols used from libc to
18730 # always be unresolved, which means just about no library would
18731 # ever link correctly. If we're not using GNU ld we use -z text
18732 # though, which does catch some bad symbols but isn't as heavy-handed
18733 # as -z defs.
18734 no_undefined_flag_CXX='${wl}-z,text'
18735 allow_undefined_flag_CXX='${wl}-z,nodefs'
18736 archive_cmds_need_lc_CXX=no
18737 hardcode_shlibpath_var_CXX=no
18738 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18739 hardcode_libdir_separator_CXX=':'
18740 link_all_deplibs_CXX=yes
18741 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18742 runpath_var='LD_RUN_PATH'
18744 case $cc_basename in
18745 CC*)
18746 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18747 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18748 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18749 '"$old_archive_cmds_CXX"
18750 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18751 '"$reload_cmds_CXX"
18754 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18755 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18757 esac
18760 tandem*)
18761 case $cc_basename in
18762 NCC*)
18763 # NonStop-UX NCC 3.20
18764 # FIXME: insert proper C++ library support
18765 ld_shlibs_CXX=no
18768 # FIXME: insert proper C++ library support
18769 ld_shlibs_CXX=no
18771 esac
18774 vxworks*)
18775 # FIXME: insert proper C++ library support
18776 ld_shlibs_CXX=no
18780 # FIXME: insert proper C++ library support
18781 ld_shlibs_CXX=no
18783 esac
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18786 $as_echo "$ld_shlibs_CXX" >&6; }
18787 test "$ld_shlibs_CXX" = no && can_build_shared=no
18789 GCC_CXX="$GXX"
18790 LD_CXX="$LD"
18792 ## CAVEAT EMPTOR:
18793 ## There is no encapsulation within the following macros, do not change
18794 ## the running order or otherwise move them around unless you know exactly
18795 ## what you are doing...
18796 # Dependencies to place before and after the object being linked:
18797 predep_objects_CXX=
18798 postdep_objects_CXX=
18799 predeps_CXX=
18800 postdeps_CXX=
18801 compiler_lib_search_path_CXX=
18803 cat > conftest.$ac_ext <<_LT_EOF
18804 class Foo
18806 public:
18807 Foo (void) { a = 0; }
18808 private:
18809 int a;
18811 _LT_EOF
18813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18814 (eval $ac_compile) 2>&5
18815 ac_status=$?
18816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18817 test $ac_status = 0; }; then
18818 # Parse the compiler output and extract the necessary
18819 # objects, libraries and library flags.
18821 # Sentinel used to keep track of whether or not we are before
18822 # the conftest object file.
18823 pre_test_object_deps_done=no
18825 for p in `eval "$output_verbose_link_cmd"`; do
18826 case $p in
18828 -L* | -R* | -l*)
18829 # Some compilers place space between "-{L,R}" and the path.
18830 # Remove the space.
18831 if test $p = "-L" ||
18832 test $p = "-R"; then
18833 prev=$p
18834 continue
18835 else
18836 prev=
18839 if test "$pre_test_object_deps_done" = no; then
18840 case $p in
18841 -L* | -R*)
18842 # Internal compiler library paths should come after those
18843 # provided the user. The postdeps already come after the
18844 # user supplied libs so there is no need to process them.
18845 if test -z "$compiler_lib_search_path_CXX"; then
18846 compiler_lib_search_path_CXX="${prev}${p}"
18847 else
18848 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18851 # The "-l" case would never come before the object being
18852 # linked, so don't bother handling this case.
18853 esac
18854 else
18855 if test -z "$postdeps_CXX"; then
18856 postdeps_CXX="${prev}${p}"
18857 else
18858 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18863 *.$objext)
18864 # This assumes that the test object file only shows up
18865 # once in the compiler output.
18866 if test "$p" = "conftest.$objext"; then
18867 pre_test_object_deps_done=yes
18868 continue
18871 if test "$pre_test_object_deps_done" = no; then
18872 if test -z "$predep_objects_CXX"; then
18873 predep_objects_CXX="$p"
18874 else
18875 predep_objects_CXX="$predep_objects_CXX $p"
18877 else
18878 if test -z "$postdep_objects_CXX"; then
18879 postdep_objects_CXX="$p"
18880 else
18881 postdep_objects_CXX="$postdep_objects_CXX $p"
18886 *) ;; # Ignore the rest.
18888 esac
18889 done
18891 # Clean up.
18892 rm -f a.out a.exe
18893 else
18894 echo "libtool.m4: error: problem compiling CXX test program"
18897 $RM -f confest.$objext
18899 # PORTME: override above test on systems where it is broken
18900 case $host_os in
18901 interix[3-9]*)
18902 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18903 # hack all around it, let's just trust "g++" to DTRT.
18904 predep_objects_CXX=
18905 postdep_objects_CXX=
18906 postdeps_CXX=
18909 linux*)
18910 case `$CC -V 2>&1 | sed 5q` in
18911 *Sun\ C*)
18912 # Sun C++ 5.9
18914 # The more standards-conforming stlport4 library is
18915 # incompatible with the Cstd library. Avoid specifying
18916 # it if it's in CXXFLAGS. Ignore libCrun as
18917 # -library=stlport4 depends on it.
18918 case " $CXX $CXXFLAGS " in
18919 *" -library=stlport4 "*)
18920 solaris_use_stlport4=yes
18922 esac
18924 if test "$solaris_use_stlport4" != yes; then
18925 postdeps_CXX='-library=Cstd -library=Crun'
18928 esac
18931 solaris*)
18932 case $cc_basename in
18933 CC*)
18934 # The more standards-conforming stlport4 library is
18935 # incompatible with the Cstd library. Avoid specifying
18936 # it if it's in CXXFLAGS. Ignore libCrun as
18937 # -library=stlport4 depends on it.
18938 case " $CXX $CXXFLAGS " in
18939 *" -library=stlport4 "*)
18940 solaris_use_stlport4=yes
18942 esac
18944 # Adding this requires a known-good setup of shared libraries for
18945 # Sun compiler versions before 5.6, else PIC objects from an old
18946 # archive will be linked into the output, leading to subtle bugs.
18947 if test "$solaris_use_stlport4" != yes; then
18948 postdeps_CXX='-library=Cstd -library=Crun'
18951 esac
18953 esac
18956 case " $postdeps_CXX " in
18957 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18958 esac
18959 compiler_lib_search_dirs_CXX=
18960 if test -n "${compiler_lib_search_path_CXX}"; then
18961 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18994 lt_prog_compiler_wl_CXX=
18995 lt_prog_compiler_pic_CXX=
18996 lt_prog_compiler_static_CXX=
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18999 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19001 # C++ specific cases for pic, static, wl, etc.
19002 if test "$GXX" = yes; then
19003 lt_prog_compiler_wl_CXX='-Wl,'
19004 lt_prog_compiler_static_CXX='-static'
19006 case $host_os in
19007 aix*)
19008 # All AIX code is PIC.
19009 if test "$host_cpu" = ia64; then
19010 # AIX 5 now supports IA64 processor
19011 lt_prog_compiler_static_CXX='-Bstatic'
19015 amigaos*)
19016 case $host_cpu in
19017 powerpc)
19018 # see comment about AmigaOS4 .so support
19019 lt_prog_compiler_pic_CXX='-fPIC'
19021 m68k)
19022 # FIXME: we need at least 68020 code to build shared libraries, but
19023 # adding the `-m68020' flag to GCC prevents building anything better,
19024 # like `-m68040'.
19025 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19027 esac
19030 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19031 # PIC is the default for these OSes.
19033 mingw* | cygwin* | os2* | pw32* | cegcc*)
19034 # This hack is so that the source file can tell whether it is being
19035 # built for inclusion in a dll (and should export symbols for example).
19036 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19037 # (--disable-auto-import) libraries
19038 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19040 darwin* | rhapsody*)
19041 # PIC is the default on this platform
19042 # Common symbols not allowed in MH_DYLIB files
19043 lt_prog_compiler_pic_CXX='-fno-common'
19045 *djgpp*)
19046 # DJGPP does not support shared libraries at all
19047 lt_prog_compiler_pic_CXX=
19049 haiku*)
19050 # PIC is the default for Haiku.
19051 # The "-static" flag exists, but is broken.
19052 lt_prog_compiler_static_CXX=
19054 interix[3-9]*)
19055 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19056 # Instead, we relocate shared libraries at runtime.
19058 sysv4*MP*)
19059 if test -d /usr/nec; then
19060 lt_prog_compiler_pic_CXX=-Kconform_pic
19063 hpux*)
19064 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19065 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19066 # sets the default TLS model and affects inlining.
19067 case $host_cpu in
19068 hppa*64*)
19071 lt_prog_compiler_pic_CXX='-fPIC'
19073 esac
19075 *qnx* | *nto*)
19076 # QNX uses GNU C++, but need to define -shared option too, otherwise
19077 # it will coredump.
19078 lt_prog_compiler_pic_CXX='-fPIC -shared'
19081 lt_prog_compiler_pic_CXX='-fPIC'
19083 esac
19084 else
19085 case $host_os in
19086 aix[4-9]*)
19087 # All AIX code is PIC.
19088 if test "$host_cpu" = ia64; then
19089 # AIX 5 now supports IA64 processor
19090 lt_prog_compiler_static_CXX='-Bstatic'
19091 else
19092 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19095 chorus*)
19096 case $cc_basename in
19097 cxch68*)
19098 # Green Hills C++ Compiler
19099 # _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"
19101 esac
19103 dgux*)
19104 case $cc_basename in
19105 ec++*)
19106 lt_prog_compiler_pic_CXX='-KPIC'
19108 ghcx*)
19109 # Green Hills C++ Compiler
19110 lt_prog_compiler_pic_CXX='-pic'
19114 esac
19116 freebsd* | dragonfly*)
19117 # FreeBSD uses GNU C++
19119 hpux9* | hpux10* | hpux11*)
19120 case $cc_basename in
19121 CC*)
19122 lt_prog_compiler_wl_CXX='-Wl,'
19123 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19124 if test "$host_cpu" != ia64; then
19125 lt_prog_compiler_pic_CXX='+Z'
19128 aCC*)
19129 lt_prog_compiler_wl_CXX='-Wl,'
19130 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19131 case $host_cpu in
19132 hppa*64*|ia64*)
19133 # +Z the default
19136 lt_prog_compiler_pic_CXX='+Z'
19138 esac
19142 esac
19144 interix*)
19145 # This is c89, which is MS Visual C++ (no shared libs)
19146 # Anyone wants to do a port?
19148 irix5* | irix6* | nonstopux*)
19149 case $cc_basename in
19150 CC*)
19151 lt_prog_compiler_wl_CXX='-Wl,'
19152 lt_prog_compiler_static_CXX='-non_shared'
19153 # CC pic flag -KPIC is the default.
19157 esac
19159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19160 case $cc_basename in
19161 KCC*)
19162 # KAI C++ Compiler
19163 lt_prog_compiler_wl_CXX='--backend -Wl,'
19164 lt_prog_compiler_pic_CXX='-fPIC'
19166 ecpc* )
19167 # old Intel C++ for x86_64 which still supported -KPIC.
19168 lt_prog_compiler_wl_CXX='-Wl,'
19169 lt_prog_compiler_pic_CXX='-KPIC'
19170 lt_prog_compiler_static_CXX='-static'
19172 icpc* )
19173 # Intel C++, used to be incompatible with GCC.
19174 # ICC 10 doesn't accept -KPIC any more.
19175 lt_prog_compiler_wl_CXX='-Wl,'
19176 lt_prog_compiler_pic_CXX='-fPIC'
19177 lt_prog_compiler_static_CXX='-static'
19179 pgCC* | pgcpp*)
19180 # Portland Group C++ compiler
19181 lt_prog_compiler_wl_CXX='-Wl,'
19182 lt_prog_compiler_pic_CXX='-fpic'
19183 lt_prog_compiler_static_CXX='-Bstatic'
19185 cxx*)
19186 # Compaq C++
19187 # Make sure the PIC flag is empty. It appears that all Alpha
19188 # Linux and Compaq Tru64 Unix objects are PIC.
19189 lt_prog_compiler_pic_CXX=
19190 lt_prog_compiler_static_CXX='-non_shared'
19192 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19193 # IBM XL 8.0, 9.0 on PPC and BlueGene
19194 lt_prog_compiler_wl_CXX='-Wl,'
19195 lt_prog_compiler_pic_CXX='-qpic'
19196 lt_prog_compiler_static_CXX='-qstaticlink'
19199 case `$CC -V 2>&1 | sed 5q` in
19200 *Sun\ C*)
19201 # Sun C++ 5.9
19202 lt_prog_compiler_pic_CXX='-KPIC'
19203 lt_prog_compiler_static_CXX='-Bstatic'
19204 lt_prog_compiler_wl_CXX='-Qoption ld '
19206 esac
19208 esac
19210 lynxos*)
19212 m88k*)
19214 mvs*)
19215 case $cc_basename in
19216 cxx*)
19217 lt_prog_compiler_pic_CXX='-W c,exportall'
19221 esac
19223 netbsd*)
19225 *qnx* | *nto*)
19226 # QNX uses GNU C++, but need to define -shared option too, otherwise
19227 # it will coredump.
19228 lt_prog_compiler_pic_CXX='-fPIC -shared'
19230 osf3* | osf4* | osf5*)
19231 case $cc_basename in
19232 KCC*)
19233 lt_prog_compiler_wl_CXX='--backend -Wl,'
19235 RCC*)
19236 # Rational C++ 2.4.1
19237 lt_prog_compiler_pic_CXX='-pic'
19239 cxx*)
19240 # Digital/Compaq C++
19241 lt_prog_compiler_wl_CXX='-Wl,'
19242 # Make sure the PIC flag is empty. It appears that all Alpha
19243 # Linux and Compaq Tru64 Unix objects are PIC.
19244 lt_prog_compiler_pic_CXX=
19245 lt_prog_compiler_static_CXX='-non_shared'
19249 esac
19251 psos*)
19253 solaris*)
19254 case $cc_basename in
19255 CC*)
19256 # Sun C++ 4.2, 5.x and Centerline C++
19257 lt_prog_compiler_pic_CXX='-KPIC'
19258 lt_prog_compiler_static_CXX='-Bstatic'
19259 lt_prog_compiler_wl_CXX='-Qoption ld '
19261 gcx*)
19262 # Green Hills C++ Compiler
19263 lt_prog_compiler_pic_CXX='-PIC'
19267 esac
19269 sunos4*)
19270 case $cc_basename in
19271 CC*)
19272 # Sun C++ 4.x
19273 lt_prog_compiler_pic_CXX='-pic'
19274 lt_prog_compiler_static_CXX='-Bstatic'
19276 lcc*)
19277 # Lucid
19278 lt_prog_compiler_pic_CXX='-pic'
19282 esac
19284 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19285 case $cc_basename in
19286 CC*)
19287 lt_prog_compiler_wl_CXX='-Wl,'
19288 lt_prog_compiler_pic_CXX='-KPIC'
19289 lt_prog_compiler_static_CXX='-Bstatic'
19291 esac
19293 tandem*)
19294 case $cc_basename in
19295 NCC*)
19296 # NonStop-UX NCC 3.20
19297 lt_prog_compiler_pic_CXX='-KPIC'
19301 esac
19303 vxworks*)
19306 lt_prog_compiler_can_build_shared_CXX=no
19308 esac
19311 case $host_os in
19312 # For platforms which do not support PIC, -DPIC is meaningless:
19313 *djgpp*)
19314 lt_prog_compiler_pic_CXX=
19317 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19319 esac
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19321 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19326 # Check to make sure the PIC flag actually works.
19328 if test -n "$lt_prog_compiler_pic_CXX"; then
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19330 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19331 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19332 $as_echo_n "(cached) " >&6
19333 else
19334 lt_cv_prog_compiler_pic_works_CXX=no
19335 ac_outfile=conftest.$ac_objext
19336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19337 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19338 # Insert the option either (1) after the last *FLAGS variable, or
19339 # (2) before a word containing "conftest.", or (3) at the end.
19340 # Note that $ac_compile itself does not contain backslashes and begins
19341 # with a dollar sign (not a hyphen), so the echo should work correctly.
19342 # The option is referenced via a variable to avoid confusing sed.
19343 lt_compile=`echo "$ac_compile" | $SED \
19344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19346 -e 's:$: $lt_compiler_flag:'`
19347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19348 (eval "$lt_compile" 2>conftest.err)
19349 ac_status=$?
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 if (exit $ac_status) && test -s "$ac_outfile"; then
19353 # The compiler can only warn and ignore the option if not recognized
19354 # So say no if there are warnings other than the usual output.
19355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19357 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19358 lt_cv_prog_compiler_pic_works_CXX=yes
19361 $RM conftest*
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19365 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19367 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19368 case $lt_prog_compiler_pic_CXX in
19369 "" | " "*) ;;
19370 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19371 esac
19372 else
19373 lt_prog_compiler_pic_CXX=
19374 lt_prog_compiler_can_build_shared_CXX=no
19382 # Check to make sure the static flag actually works.
19384 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19386 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19387 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19388 $as_echo_n "(cached) " >&6
19389 else
19390 lt_cv_prog_compiler_static_works_CXX=no
19391 save_LDFLAGS="$LDFLAGS"
19392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19393 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19395 # The linker can only warn and ignore the option if not recognized
19396 # So say no if there are warnings
19397 if test -s conftest.err; then
19398 # Append any errors to the config.log.
19399 cat conftest.err 1>&5
19400 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19402 if diff conftest.exp conftest.er2 >/dev/null; then
19403 lt_cv_prog_compiler_static_works_CXX=yes
19405 else
19406 lt_cv_prog_compiler_static_works_CXX=yes
19409 $RM -r conftest*
19410 LDFLAGS="$save_LDFLAGS"
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19414 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19416 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19418 else
19419 lt_prog_compiler_static_CXX=
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19427 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19428 $as_echo_n "(cached) " >&6
19429 else
19430 lt_cv_prog_compiler_c_o_CXX=no
19431 $RM -r conftest 2>/dev/null
19432 mkdir conftest
19433 cd conftest
19434 mkdir out
19435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19437 lt_compiler_flag="-o out/conftest2.$ac_objext"
19438 # Insert the option either (1) after the last *FLAGS variable, or
19439 # (2) before a word containing "conftest.", or (3) at the end.
19440 # Note that $ac_compile itself does not contain backslashes and begins
19441 # with a dollar sign (not a hyphen), so the echo should work correctly.
19442 lt_compile=`echo "$ac_compile" | $SED \
19443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19445 -e 's:$: $lt_compiler_flag:'`
19446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19447 (eval "$lt_compile" 2>out/conftest.err)
19448 ac_status=$?
19449 cat out/conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19452 then
19453 # The compiler can only warn and ignore the option if not recognized
19454 # So say no if there are warnings
19455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19458 lt_cv_prog_compiler_c_o_CXX=yes
19461 chmod u+w . 2>&5
19462 $RM conftest*
19463 # SGI C++ compiler will create directory out/ii_files/ for
19464 # template instantiation
19465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19466 $RM out/* && rmdir out
19467 cd ..
19468 $RM -r conftest
19469 $RM conftest*
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19473 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19478 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19479 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19480 $as_echo_n "(cached) " >&6
19481 else
19482 lt_cv_prog_compiler_c_o_CXX=no
19483 $RM -r conftest 2>/dev/null
19484 mkdir conftest
19485 cd conftest
19486 mkdir out
19487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19489 lt_compiler_flag="-o out/conftest2.$ac_objext"
19490 # Insert the option either (1) after the last *FLAGS variable, or
19491 # (2) before a word containing "conftest.", or (3) at the end.
19492 # Note that $ac_compile itself does not contain backslashes and begins
19493 # with a dollar sign (not a hyphen), so the echo should work correctly.
19494 lt_compile=`echo "$ac_compile" | $SED \
19495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19497 -e 's:$: $lt_compiler_flag:'`
19498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19499 (eval "$lt_compile" 2>out/conftest.err)
19500 ac_status=$?
19501 cat out/conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19504 then
19505 # The compiler can only warn and ignore the option if not recognized
19506 # So say no if there are warnings
19507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19510 lt_cv_prog_compiler_c_o_CXX=yes
19513 chmod u+w . 2>&5
19514 $RM conftest*
19515 # SGI C++ compiler will create directory out/ii_files/ for
19516 # template instantiation
19517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19518 $RM out/* && rmdir out
19519 cd ..
19520 $RM -r conftest
19521 $RM conftest*
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19525 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19530 hard_links="nottested"
19531 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19532 # do not overwrite the value of need_locks provided by the user
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19534 $as_echo_n "checking if we can lock with hard links... " >&6; }
19535 hard_links=yes
19536 $RM conftest*
19537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19538 touch conftest.a
19539 ln conftest.a conftest.b 2>&5 || hard_links=no
19540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19542 $as_echo "$hard_links" >&6; }
19543 if test "$hard_links" = no; then
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19545 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19546 need_locks=warn
19548 else
19549 need_locks=no
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19555 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19558 case $host_os in
19559 aix[4-9]*)
19560 # If we're using GNU nm, then we don't want the "-C" option.
19561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19562 # Also, AIX nm treats weak defined symbols like other global defined
19563 # symbols, whereas GNU nm marks them as "W".
19564 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19565 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'
19566 else
19567 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'
19570 pw32*)
19571 export_symbols_cmds_CXX="$ltdll_cmds"
19573 cygwin* | mingw* | cegcc*)
19574 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'
19577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19579 esac
19580 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19583 $as_echo "$ld_shlibs_CXX" >&6; }
19584 test "$ld_shlibs_CXX" = no && can_build_shared=no
19586 with_gnu_ld_CXX=$with_gnu_ld
19594 # Do we need to explicitly link libc?
19596 case "x$archive_cmds_need_lc_CXX" in
19597 x|xyes)
19598 # Assume -lc should be added
19599 archive_cmds_need_lc_CXX=yes
19601 if test "$enable_shared" = yes && test "$GCC" = yes; then
19602 case $archive_cmds_CXX in
19603 *'~'*)
19604 # FIXME: we may have to deal with multi-command sequences.
19606 '$CC '*)
19607 # Test whether the compiler implicitly links with -lc since on some
19608 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19609 # to ld, don't add -lc before -lgcc.
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19611 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19612 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615 $RM conftest*
19616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19619 (eval $ac_compile) 2>&5
19620 ac_status=$?
19621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19622 test $ac_status = 0; } 2>conftest.err; then
19623 soname=conftest
19624 lib=conftest
19625 libobjs=conftest.$ac_objext
19626 deplibs=
19627 wl=$lt_prog_compiler_wl_CXX
19628 pic_flag=$lt_prog_compiler_pic_CXX
19629 compiler_flags=-v
19630 linker_flags=-v
19631 verstring=
19632 output_objdir=.
19633 libname=conftest
19634 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19635 allow_undefined_flag_CXX=
19636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19637 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19638 ac_status=$?
19639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19640 test $ac_status = 0; }
19641 then
19642 lt_cv_archive_cmds_need_lc_CXX=no
19643 else
19644 lt_cv_archive_cmds_need_lc_CXX=yes
19646 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19647 else
19648 cat conftest.err 1>&5
19650 $RM conftest*
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19654 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19655 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19657 esac
19660 esac
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19726 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19728 library_names_spec=
19729 libname_spec='lib$name'
19730 soname_spec=
19731 shrext_cmds=".so"
19732 postinstall_cmds=
19733 postuninstall_cmds=
19734 finish_cmds=
19735 finish_eval=
19736 shlibpath_var=
19737 shlibpath_overrides_runpath=unknown
19738 version_type=none
19739 dynamic_linker="$host_os ld.so"
19740 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19741 need_lib_prefix=unknown
19742 hardcode_into_libs=no
19744 # when you set need_version to no, make sure it does not cause -set_version
19745 # flags to be left without arguments
19746 need_version=unknown
19748 case $host_os in
19749 aix3*)
19750 version_type=linux
19751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19752 shlibpath_var=LIBPATH
19754 # AIX 3 has no versioning support, so we append a major version to the name.
19755 soname_spec='${libname}${release}${shared_ext}$major'
19758 aix[4-9]*)
19759 version_type=linux
19760 need_lib_prefix=no
19761 need_version=no
19762 hardcode_into_libs=yes
19763 if test "$host_cpu" = ia64; then
19764 # AIX 5 supports IA64
19765 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19766 shlibpath_var=LD_LIBRARY_PATH
19767 else
19768 # With GCC up to 2.95.x, collect2 would create an import file
19769 # for dependence libraries. The import file would start with
19770 # the line `#! .'. This would cause the generated library to
19771 # depend on `.', always an invalid library. This was fixed in
19772 # development snapshots of GCC prior to 3.0.
19773 case $host_os in
19774 aix4 | aix4.[01] | aix4.[01].*)
19775 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19776 echo ' yes '
19777 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19779 else
19780 can_build_shared=no
19783 esac
19784 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19785 # soname into executable. Probably we can add versioning support to
19786 # collect2, so additional links can be useful in future.
19787 if test "$aix_use_runtimelinking" = yes; then
19788 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19789 # instead of lib<name>.a to let people know that these are not
19790 # typical AIX shared libraries.
19791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19792 else
19793 # We preserve .a as extension for shared libraries through AIX4.2
19794 # and later when we are not doing run time linking.
19795 library_names_spec='${libname}${release}.a $libname.a'
19796 soname_spec='${libname}${release}${shared_ext}$major'
19798 shlibpath_var=LIBPATH
19802 amigaos*)
19803 case $host_cpu in
19804 powerpc)
19805 # Since July 2007 AmigaOS4 officially supports .so libraries.
19806 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19809 m68k)
19810 library_names_spec='$libname.ixlibrary $libname.a'
19811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19812 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'
19814 esac
19817 beos*)
19818 library_names_spec='${libname}${shared_ext}'
19819 dynamic_linker="$host_os ld.so"
19820 shlibpath_var=LIBRARY_PATH
19823 bsdi[45]*)
19824 version_type=linux
19825 need_version=no
19826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19827 soname_spec='${libname}${release}${shared_ext}$major'
19828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19829 shlibpath_var=LD_LIBRARY_PATH
19830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19832 # the default ld.so.conf also contains /usr/contrib/lib and
19833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19834 # libtool to hard-code these into programs
19837 cygwin* | mingw* | pw32* | cegcc*)
19838 version_type=windows
19839 shrext_cmds=".dll"
19840 need_version=no
19841 need_lib_prefix=no
19843 case $GCC,$host_os in
19844 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19845 library_names_spec='$libname.dll.a'
19846 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19847 postinstall_cmds='base_file=`basename \${file}`~
19848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19849 dldir=$destdir/`dirname \$dlpath`~
19850 test -d \$dldir || mkdir -p \$dldir~
19851 $install_prog $dir/$dlname \$dldir/$dlname~
19852 chmod a+x \$dldir/$dlname~
19853 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19854 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19856 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19857 dlpath=$dir/\$dldll~
19858 $RM \$dlpath'
19859 shlibpath_overrides_runpath=yes
19861 case $host_os in
19862 cygwin*)
19863 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19864 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19867 mingw* | cegcc*)
19868 # MinGW DLLs use traditional 'lib' prefix
19869 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19871 pw32*)
19872 # pw32 DLLs use 'pw' prefix rather than 'lib'
19873 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19875 esac
19879 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19881 esac
19882 dynamic_linker='Win32 ld.exe'
19883 # FIXME: first we should search . and the directory the executable is in
19884 shlibpath_var=PATH
19887 darwin* | rhapsody*)
19888 dynamic_linker="$host_os dyld"
19889 version_type=darwin
19890 need_lib_prefix=no
19891 need_version=no
19892 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19893 soname_spec='${libname}${release}${major}$shared_ext'
19894 shlibpath_overrides_runpath=yes
19895 shlibpath_var=DYLD_LIBRARY_PATH
19896 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19901 dgux*)
19902 version_type=linux
19903 need_lib_prefix=no
19904 need_version=no
19905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19906 soname_spec='${libname}${release}${shared_ext}$major'
19907 shlibpath_var=LD_LIBRARY_PATH
19910 freebsd1*)
19911 dynamic_linker=no
19914 freebsd* | dragonfly*)
19915 # DragonFly does not have aout. When/if they implement a new
19916 # versioning mechanism, adjust this.
19917 if test -x /usr/bin/objformat; then
19918 objformat=`/usr/bin/objformat`
19919 else
19920 case $host_os in
19921 freebsd[123]*) objformat=aout ;;
19922 *) objformat=elf ;;
19923 esac
19925 version_type=freebsd-$objformat
19926 case $version_type in
19927 freebsd-elf*)
19928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19929 need_version=no
19930 need_lib_prefix=no
19932 freebsd-*)
19933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19934 need_version=yes
19936 esac
19937 shlibpath_var=LD_LIBRARY_PATH
19938 case $host_os in
19939 freebsd2*)
19940 shlibpath_overrides_runpath=yes
19942 freebsd3.[01]* | freebsdelf3.[01]*)
19943 shlibpath_overrides_runpath=yes
19944 hardcode_into_libs=yes
19946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19948 shlibpath_overrides_runpath=no
19949 hardcode_into_libs=yes
19951 *) # from 4.6 on, and DragonFly
19952 shlibpath_overrides_runpath=yes
19953 hardcode_into_libs=yes
19955 esac
19958 gnu*)
19959 version_type=linux
19960 need_lib_prefix=no
19961 need_version=no
19962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19963 soname_spec='${libname}${release}${shared_ext}$major'
19964 shlibpath_var=LD_LIBRARY_PATH
19965 hardcode_into_libs=yes
19968 haiku*)
19969 version_type=linux
19970 need_lib_prefix=no
19971 need_version=no
19972 dynamic_linker="$host_os runtime_loader"
19973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19974 soname_spec='${libname}${release}${shared_ext}$major'
19975 shlibpath_var=LIBRARY_PATH
19976 shlibpath_overrides_runpath=yes
19977 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19978 hardcode_into_libs=yes
19981 hpux9* | hpux10* | hpux11*)
19982 # Give a soname corresponding to the major version so that dld.sl refuses to
19983 # link against other versions.
19984 version_type=sunos
19985 need_lib_prefix=no
19986 need_version=no
19987 case $host_cpu in
19988 ia64*)
19989 shrext_cmds='.so'
19990 hardcode_into_libs=yes
19991 dynamic_linker="$host_os dld.so"
19992 shlibpath_var=LD_LIBRARY_PATH
19993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19995 soname_spec='${libname}${release}${shared_ext}$major'
19996 if test "X$HPUX_IA64_MODE" = X32; then
19997 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19998 else
19999 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20003 hppa*64*)
20004 shrext_cmds='.sl'
20005 hardcode_into_libs=yes
20006 dynamic_linker="$host_os dld.sl"
20007 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20010 soname_spec='${libname}${release}${shared_ext}$major'
20011 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20015 shrext_cmds='.sl'
20016 dynamic_linker="$host_os dld.sl"
20017 shlibpath_var=SHLIB_PATH
20018 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20020 soname_spec='${libname}${release}${shared_ext}$major'
20022 esac
20023 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20024 postinstall_cmds='chmod 555 $lib'
20025 # or fails outright, so override atomically:
20026 install_override_mode=555
20029 interix[3-9]*)
20030 version_type=linux
20031 need_lib_prefix=no
20032 need_version=no
20033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20035 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20036 shlibpath_var=LD_LIBRARY_PATH
20037 shlibpath_overrides_runpath=no
20038 hardcode_into_libs=yes
20041 irix5* | irix6* | nonstopux*)
20042 case $host_os in
20043 nonstopux*) version_type=nonstopux ;;
20045 if test "$lt_cv_prog_gnu_ld" = yes; then
20046 version_type=linux
20047 else
20048 version_type=irix
20049 fi ;;
20050 esac
20051 need_lib_prefix=no
20052 need_version=no
20053 soname_spec='${libname}${release}${shared_ext}$major'
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20055 case $host_os in
20056 irix5* | nonstopux*)
20057 libsuff= shlibsuff=
20060 case $LD in # libtool.m4 will add one of these switches to LD
20061 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20062 libsuff= shlibsuff= libmagic=32-bit;;
20063 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20064 libsuff=32 shlibsuff=N32 libmagic=N32;;
20065 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20066 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20067 *) libsuff= shlibsuff= libmagic=never-match;;
20068 esac
20070 esac
20071 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20072 shlibpath_overrides_runpath=no
20073 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20074 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20075 hardcode_into_libs=yes
20078 # No shared lib support for Linux oldld, aout, or coff.
20079 linux*oldld* | linux*aout* | linux*coff*)
20080 dynamic_linker=no
20083 # This must be Linux ELF.
20084 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20085 version_type=linux
20086 need_lib_prefix=no
20087 need_version=no
20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20089 soname_spec='${libname}${release}${shared_ext}$major'
20090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20091 shlibpath_var=LD_LIBRARY_PATH
20092 shlibpath_overrides_runpath=no
20094 # Some binutils ld are patched to set DT_RUNPATH
20095 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20096 $as_echo_n "(cached) " >&6
20097 else
20098 lt_cv_shlibpath_overrides_runpath=no
20099 save_LDFLAGS=$LDFLAGS
20100 save_libdir=$libdir
20101 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20102 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h. */
20107 main ()
20111 return 0;
20113 _ACEOF
20114 if ac_fn_cxx_try_link "$LINENO"; then :
20115 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20116 lt_cv_shlibpath_overrides_runpath=yes
20119 rm -f core conftest.err conftest.$ac_objext \
20120 conftest$ac_exeext conftest.$ac_ext
20121 LDFLAGS=$save_LDFLAGS
20122 libdir=$save_libdir
20126 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20128 # This implies no fast_install, which is unacceptable.
20129 # Some rework will be needed to allow for fast_install
20130 # before this can be enabled.
20131 hardcode_into_libs=yes
20133 # Append ld.so.conf contents to the search path
20134 if test -f /etc/ld.so.conf; then
20135 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' ' '`
20136 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20139 # We used to test for /lib/ld.so.1 and disable shared libraries on
20140 # powerpc, because MkLinux only supported shared libraries with the
20141 # GNU dynamic linker. Since this was broken with cross compilers,
20142 # most powerpc-linux boxes support dynamic linking these days and
20143 # people can always --disable-shared, the test was removed, and we
20144 # assume the GNU/Linux dynamic linker is in use.
20145 dynamic_linker='GNU/Linux ld.so'
20148 netbsd*)
20149 version_type=sunos
20150 need_lib_prefix=no
20151 need_version=no
20152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20155 dynamic_linker='NetBSD (a.out) ld.so'
20156 else
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20158 soname_spec='${libname}${release}${shared_ext}$major'
20159 dynamic_linker='NetBSD ld.elf_so'
20161 shlibpath_var=LD_LIBRARY_PATH
20162 shlibpath_overrides_runpath=yes
20163 hardcode_into_libs=yes
20166 newsos6)
20167 version_type=linux
20168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20169 shlibpath_var=LD_LIBRARY_PATH
20170 shlibpath_overrides_runpath=yes
20173 *nto* | *qnx*)
20174 version_type=qnx
20175 need_lib_prefix=no
20176 need_version=no
20177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20178 soname_spec='${libname}${release}${shared_ext}$major'
20179 shlibpath_var=LD_LIBRARY_PATH
20180 shlibpath_overrides_runpath=no
20181 hardcode_into_libs=yes
20182 dynamic_linker='ldqnx.so'
20185 openbsd*)
20186 version_type=sunos
20187 sys_lib_dlsearch_path_spec="/usr/lib"
20188 need_lib_prefix=no
20189 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20190 case $host_os in
20191 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20192 *) need_version=no ;;
20193 esac
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20196 shlibpath_var=LD_LIBRARY_PATH
20197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20198 case $host_os in
20199 openbsd2.[89] | openbsd2.[89].*)
20200 shlibpath_overrides_runpath=no
20203 shlibpath_overrides_runpath=yes
20205 esac
20206 else
20207 shlibpath_overrides_runpath=yes
20211 os2*)
20212 libname_spec='$name'
20213 shrext_cmds=".dll"
20214 need_lib_prefix=no
20215 library_names_spec='$libname${shared_ext} $libname.a'
20216 dynamic_linker='OS/2 ld.exe'
20217 shlibpath_var=LIBPATH
20220 osf3* | osf4* | osf5*)
20221 version_type=osf
20222 need_lib_prefix=no
20223 need_version=no
20224 soname_spec='${libname}${release}${shared_ext}$major'
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20226 shlibpath_var=LD_LIBRARY_PATH
20227 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20228 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20231 rdos*)
20232 dynamic_linker=no
20235 solaris*)
20236 version_type=linux
20237 need_lib_prefix=no
20238 need_version=no
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240 soname_spec='${libname}${release}${shared_ext}$major'
20241 shlibpath_var=LD_LIBRARY_PATH
20242 shlibpath_overrides_runpath=yes
20243 hardcode_into_libs=yes
20244 # ldd complains unless libraries are executable
20245 postinstall_cmds='chmod +x $lib'
20248 sunos4*)
20249 version_type=sunos
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20251 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath=yes
20254 if test "$with_gnu_ld" = yes; then
20255 need_lib_prefix=no
20257 need_version=yes
20260 sysv4 | sysv4.3*)
20261 version_type=linux
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 case $host_vendor in
20266 sni)
20267 shlibpath_overrides_runpath=no
20268 need_lib_prefix=no
20269 runpath_var=LD_RUN_PATH
20271 siemens)
20272 need_lib_prefix=no
20274 motorola)
20275 need_lib_prefix=no
20276 need_version=no
20277 shlibpath_overrides_runpath=no
20278 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20280 esac
20283 sysv4*MP*)
20284 if test -d /usr/nec ;then
20285 version_type=linux
20286 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20287 soname_spec='$libname${shared_ext}.$major'
20288 shlibpath_var=LD_LIBRARY_PATH
20292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20293 version_type=freebsd-elf
20294 need_lib_prefix=no
20295 need_version=no
20296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20297 soname_spec='${libname}${release}${shared_ext}$major'
20298 shlibpath_var=LD_LIBRARY_PATH
20299 shlibpath_overrides_runpath=yes
20300 hardcode_into_libs=yes
20301 if test "$with_gnu_ld" = yes; then
20302 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20303 else
20304 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20305 case $host_os in
20306 sco3.2v5*)
20307 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20309 esac
20311 sys_lib_dlsearch_path_spec='/usr/lib'
20314 tpf*)
20315 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20316 version_type=linux
20317 need_lib_prefix=no
20318 need_version=no
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20320 shlibpath_var=LD_LIBRARY_PATH
20321 shlibpath_overrides_runpath=no
20322 hardcode_into_libs=yes
20325 uts4*)
20326 version_type=linux
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 shlibpath_var=LD_LIBRARY_PATH
20333 dynamic_linker=no
20335 esac
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20337 $as_echo "$dynamic_linker" >&6; }
20338 test "$dynamic_linker" = no && can_build_shared=no
20340 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20341 if test "$GCC" = yes; then
20342 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20345 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20346 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20348 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20349 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20390 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20391 hardcode_action_CXX=
20392 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20393 test -n "$runpath_var_CXX" ||
20394 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20396 # We can hardcode non-existent directories.
20397 if test "$hardcode_direct_CXX" != no &&
20398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20399 # have to relink, otherwise we might link with an installed library
20400 # when we should be linking with a yet-to-be-installed one
20401 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20402 test "$hardcode_minus_L_CXX" != no; then
20403 # Linking always hardcodes the temporary library directory.
20404 hardcode_action_CXX=relink
20405 else
20406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20407 hardcode_action_CXX=immediate
20409 else
20410 # We cannot hardcode anything, or else we can only hardcode existing
20411 # directories.
20412 hardcode_action_CXX=unsupported
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20415 $as_echo "$hardcode_action_CXX" >&6; }
20417 if test "$hardcode_action_CXX" = relink ||
20418 test "$inherit_rpath_CXX" = yes; then
20419 # Fast installation is not supported
20420 enable_fast_install=no
20421 elif test "$shlibpath_overrides_runpath" = yes ||
20422 test "$enable_shared" = no; then
20423 # Fast installation is not necessary
20424 enable_fast_install=needless
20433 fi # test -n "$compiler"
20435 CC=$lt_save_CC
20436 LDCXX=$LD
20437 LD=$lt_save_LD
20438 GCC=$lt_save_GCC
20439 with_gnu_ld=$lt_save_with_gnu_ld
20440 lt_cv_path_LDCXX=$lt_cv_path_LD
20441 lt_cv_path_LD=$lt_save_path_LD
20442 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20443 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20444 fi # test "$_lt_caught_CXX_error" != yes
20446 ac_ext=c
20447 ac_cpp='$CPP $CPPFLAGS'
20448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20467 # Only expand once:
20473 # Identify the assembler which will work hand-in-glove with the newly
20474 # built GCC, so that we can examine its features. This is the assembler
20475 # which will be driven by the driver program.
20477 # If build != host, and we aren't building gas in-tree, we identify a
20478 # build->target assembler and hope that it will have the same features
20479 # as the host->target assembler we'll be using.
20480 gcc_cv_gas_major_version=
20481 gcc_cv_gas_minor_version=
20482 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20484 if test "${gcc_cv_as+set}" = set; then :
20486 else
20488 if test -x "$DEFAULT_ASSEMBLER"; then
20489 gcc_cv_as="$DEFAULT_ASSEMBLER"
20490 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20491 && test -f ../gas/Makefile \
20492 && test x$build = x$host; then
20493 gcc_cv_as=../gas/as-new$build_exeext
20494 elif test -x as$build_exeext; then
20495 # Build using assembler in the current directory.
20496 gcc_cv_as=./as$build_exeext
20497 elif test -x $AS_FOR_TARGET; then
20498 gcc_cv_as="$AS_FOR_TARGET"
20499 else
20500 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20501 set dummy $AS_FOR_TARGET; ac_word=$2
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20503 $as_echo_n "checking for $ac_word... " >&6; }
20504 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20505 $as_echo_n "(cached) " >&6
20506 else
20507 case $gcc_cv_as in
20508 [\\/]* | ?:[\\/]*)
20509 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20513 for as_dir in $PATH
20515 IFS=$as_save_IFS
20516 test -z "$as_dir" && as_dir=.
20517 for ac_exec_ext in '' $ac_executable_extensions; do
20518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20519 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20521 break 2
20523 done
20524 done
20525 IFS=$as_save_IFS
20528 esac
20530 gcc_cv_as=$ac_cv_path_gcc_cv_as
20531 if test -n "$gcc_cv_as"; then
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20533 $as_echo "$gcc_cv_as" >&6; }
20534 else
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20536 $as_echo "no" >&6; }
20543 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20545 case "$ORIGINAL_AS_FOR_TARGET" in
20546 ./as | ./as$build_exeext) ;;
20547 *) ac_config_files="$ac_config_files as:exec-tool.in"
20549 esac
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20552 $as_echo_n "checking what assembler to use... " >&6; }
20553 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20554 # Single tree build which includes gas. We want to prefer it
20555 # over whatever linker top-level may have detected, since
20556 # we'll use what we're building after installation anyway.
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20558 $as_echo "newly built gas" >&6; }
20559 in_tree_gas=yes
20560 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20561 for f in $gcc_cv_as_bfd_srcdir/configure \
20562 $gcc_cv_as_gas_srcdir/configure \
20563 $gcc_cv_as_gas_srcdir/configure.in \
20564 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20565 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20566 if test x$gcc_cv_gas_version != x; then
20567 break
20569 done
20570 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20571 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20572 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20573 case $gcc_cv_gas_patch_version in
20574 "") gcc_cv_gas_patch_version="0" ;;
20575 esac
20576 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20577 + $gcc_cv_gas_minor_version \) \* 1000 \
20578 + $gcc_cv_gas_patch_version`
20580 in_tree_gas_is_elf=no
20581 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20582 || (grep 'obj_format = multi' ../gas/Makefile \
20583 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20584 then
20585 in_tree_gas_is_elf=yes
20587 else
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20589 $as_echo "$gcc_cv_as" >&6; }
20590 in_tree_gas=no
20593 # Identify the linker which will work hand-in-glove with the newly
20594 # built GCC, so that we can examine its features. This is the linker
20595 # which will be driven by the driver program.
20597 # If build != host, and we aren't building gas in-tree, we identify a
20598 # build->target linker and hope that it will have the same features
20599 # as the host->target linker we'll be using.
20600 gcc_cv_gld_major_version=
20601 gcc_cv_gld_minor_version=
20602 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20603 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20605 if test "${gcc_cv_ld+set}" = set; then :
20607 else
20609 if test -x "$DEFAULT_LINKER"; then
20610 gcc_cv_ld="$DEFAULT_LINKER"
20611 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20612 && test -f ../ld/Makefile \
20613 && test x$build = x$host; then
20614 gcc_cv_ld=../ld/ld-new$build_exeext
20615 elif test -x collect-ld$build_exeext; then
20616 # Build using linker in the current directory.
20617 gcc_cv_ld=./collect-ld$build_exeext
20618 elif test -x $LD_FOR_TARGET; then
20619 gcc_cv_ld="$LD_FOR_TARGET"
20620 else
20621 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20622 set dummy $LD_FOR_TARGET; ac_word=$2
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20624 $as_echo_n "checking for $ac_word... " >&6; }
20625 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20626 $as_echo_n "(cached) " >&6
20627 else
20628 case $gcc_cv_ld in
20629 [\\/]* | ?:[\\/]*)
20630 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20634 for as_dir in $PATH
20636 IFS=$as_save_IFS
20637 test -z "$as_dir" && as_dir=.
20638 for ac_exec_ext in '' $ac_executable_extensions; do
20639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20640 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20642 break 2
20644 done
20645 done
20646 IFS=$as_save_IFS
20649 esac
20651 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20652 if test -n "$gcc_cv_ld"; then
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20654 $as_echo "$gcc_cv_ld" >&6; }
20655 else
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20657 $as_echo "no" >&6; }
20664 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20665 PLUGIN_LD=`basename $gcc_cv_ld`
20667 # Check whether --with-plugin-ld was given.
20668 if test "${with_plugin_ld+set}" = set; then :
20669 withval=$with_plugin_ld; if test x"$withval" != x; then
20670 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20671 PLUGIN_LD="$withval"
20677 cat >>confdefs.h <<_ACEOF
20678 #define PLUGIN_LD "$PLUGIN_LD"
20679 _ACEOF
20682 # Check to see if we are using gold instead of ld
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20684 $as_echo_n "checking whether we are using gold... " >&6; }
20685 ld_is_gold=no
20686 if test x$gcc_cv_ld != x; then
20687 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20688 | grep "GNU gold" > /dev/null; then
20689 ld_is_gold=yes
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20693 $as_echo "$ld_is_gold" >&6; }
20695 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20697 case "$ORIGINAL_LD_FOR_TARGET" in
20698 ./collect-ld | ./collect-ld$build_exeext) ;;
20699 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20701 esac
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20704 $as_echo_n "checking what linker to use... " >&6; }
20705 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20706 # Single tree build which includes ld. We want to prefer it
20707 # over whatever linker top-level may have detected, since
20708 # we'll use what we're building after installation anyway.
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20710 $as_echo "newly built ld" >&6; }
20711 in_tree_ld=yes
20712 in_tree_ld_is_elf=no
20713 if (grep 'EMUL = .*elf' ../ld/Makefile \
20714 || grep 'EMUL = .*linux' ../ld/Makefile \
20715 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20716 in_tree_ld_is_elf=yes
20718 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
20720 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20721 if test x$gcc_cv_gld_version != x; then
20722 break
20724 done
20725 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20726 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20727 else
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20729 $as_echo "$gcc_cv_ld" >&6; }
20730 in_tree_ld=no
20733 # Figure out what nm we will be using.
20734 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20735 if test "${gcc_cv_nm+set}" = set; then :
20737 else
20739 if test -f $gcc_cv_binutils_srcdir/configure.in \
20740 && test -f ../binutils/Makefile \
20741 && test x$build = x$host; then
20742 gcc_cv_nm=../binutils/nm-new$build_exeext
20743 elif test -x nm$build_exeext; then
20744 gcc_cv_nm=./nm$build_exeext
20745 elif test -x $NM_FOR_TARGET; then
20746 gcc_cv_nm="$NM_FOR_TARGET"
20747 else
20748 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20749 set dummy $NM_FOR_TARGET; ac_word=$2
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20751 $as_echo_n "checking for $ac_word... " >&6; }
20752 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20753 $as_echo_n "(cached) " >&6
20754 else
20755 case $gcc_cv_nm in
20756 [\\/]* | ?:[\\/]*)
20757 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20761 for as_dir in $PATH
20763 IFS=$as_save_IFS
20764 test -z "$as_dir" && as_dir=.
20765 for ac_exec_ext in '' $ac_executable_extensions; do
20766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20767 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20769 break 2
20771 done
20772 done
20773 IFS=$as_save_IFS
20776 esac
20778 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20779 if test -n "$gcc_cv_nm"; then
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20781 $as_echo "$gcc_cv_nm" >&6; }
20782 else
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20784 $as_echo "no" >&6; }
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20792 $as_echo_n "checking what nm to use... " >&6; }
20793 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20794 # Single tree build which includes binutils.
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20796 $as_echo "newly built nm" >&6; }
20797 in_tree_nm=yes
20798 else
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20800 $as_echo "$gcc_cv_nm" >&6; }
20801 in_tree_nm=no
20804 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20806 case "$ORIGINAL_NM_FOR_TARGET" in
20807 ./nm | ./nm$build_exeext) ;;
20808 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20810 esac
20813 # Figure out what objdump we will be using.
20814 if test "${gcc_cv_objdump+set}" = set; then :
20816 else
20818 if test -f $gcc_cv_binutils_srcdir/configure.in \
20819 && test -f ../binutils/Makefile \
20820 && test x$build = x$host; then
20821 # Single tree build which includes binutils.
20822 gcc_cv_objdump=../binutils/objdump$build_exeext
20823 elif test -x objdump$build_exeext; then
20824 gcc_cv_objdump=./objdump$build_exeext
20825 elif test -x $OBJDUMP_FOR_TARGET; then
20826 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20827 else
20828 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20829 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20831 $as_echo_n "checking for $ac_word... " >&6; }
20832 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20833 $as_echo_n "(cached) " >&6
20834 else
20835 case $gcc_cv_objdump in
20836 [\\/]* | ?:[\\/]*)
20837 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20841 for as_dir in $PATH
20843 IFS=$as_save_IFS
20844 test -z "$as_dir" && as_dir=.
20845 for ac_exec_ext in '' $ac_executable_extensions; do
20846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20847 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20849 break 2
20851 done
20852 done
20853 IFS=$as_save_IFS
20856 esac
20858 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20859 if test -n "$gcc_cv_objdump"; then
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20861 $as_echo "$gcc_cv_objdump" >&6; }
20862 else
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20864 $as_echo "no" >&6; }
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20872 $as_echo_n "checking what objdump to use... " >&6; }
20873 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20874 # Single tree build which includes binutils.
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20876 $as_echo "newly built objdump" >&6; }
20877 elif test x$gcc_cv_objdump = x; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20879 $as_echo "not found" >&6; }
20880 else
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20882 $as_echo "$gcc_cv_objdump" >&6; }
20885 # Figure out what readelf we will be using.
20886 if test "${gcc_cv_readelf+set}" = set; then :
20888 else
20890 if test -f $gcc_cv_binutils_srcdir/configure.in \
20891 && test -f ../binutils/Makefile \
20892 && test x$build = x$host; then
20893 # Single tree build which includes binutils.
20894 gcc_cv_readelf=../binutils/readelf$build_exeext
20895 elif test -x readelf$build_exeext; then
20896 gcc_cv_readelf=./readelf$build_exeext
20897 else
20898 # Extract the first word of "readelf", so it can be a program name with args.
20899 set dummy readelf; ac_word=$2
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20901 $as_echo_n "checking for $ac_word... " >&6; }
20902 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20903 $as_echo_n "(cached) " >&6
20904 else
20905 case $gcc_cv_readelf in
20906 [\\/]* | ?:[\\/]*)
20907 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20911 for as_dir in $PATH
20913 IFS=$as_save_IFS
20914 test -z "$as_dir" && as_dir=.
20915 for ac_exec_ext in '' $ac_executable_extensions; do
20916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20917 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20919 break 2
20921 done
20922 done
20923 IFS=$as_save_IFS
20926 esac
20928 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20929 if test -n "$gcc_cv_readelf"; then
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20931 $as_echo "$gcc_cv_readelf" >&6; }
20932 else
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20934 $as_echo "no" >&6; }
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20942 $as_echo_n "checking what readelf to use... " >&6; }
20943 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20944 # Single tree build which includes binutils.
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20946 $as_echo "newly built readelf" >&6; }
20947 elif test x$gcc_cv_readelf = x; then
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20949 $as_echo "not found" >&6; }
20950 else
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20952 $as_echo "$gcc_cv_readelf" >&6; }
20955 # Figure out what assembler alignment features are present.
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20957 $as_echo_n "checking assembler flags... " >&6; }
20958 if test "${gcc_cv_as_flags+set}" = set; then :
20959 $as_echo_n "(cached) " >&6
20960 else
20961 case "$target" in
20962 i[34567]86-*-linux*)
20963 gcc_cv_as_flags="--32"
20966 gcc_cv_as_flags=" "
20968 esac
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20971 $as_echo "$gcc_cv_as_flags" >&6; }
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20974 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20975 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20976 $as_echo_n "(cached) " >&6
20977 else
20978 gcc_cv_as_balign_and_p2align=no
20979 if test $in_tree_gas = yes; then
20980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20981 then gcc_cv_as_balign_and_p2align=yes
20983 elif test x$gcc_cv_as != x; then
20984 echo '.balign 4
20985 .p2align 2' > conftest.s
20986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20988 (eval $ac_try) 2>&5
20989 ac_status=$?
20990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20991 test $ac_status = 0; }; }
20992 then
20993 gcc_cv_as_balign_and_p2align=yes
20994 else
20995 echo "configure: failed program was" >&5
20996 cat conftest.s >&5
20998 rm -f conftest.o conftest.s
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21002 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21003 if test $gcc_cv_as_balign_and_p2align = yes; then
21005 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21010 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21011 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21012 $as_echo_n "(cached) " >&6
21013 else
21014 gcc_cv_as_max_skip_p2align=no
21015 if test $in_tree_gas = yes; then
21016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21017 then gcc_cv_as_max_skip_p2align=yes
21019 elif test x$gcc_cv_as != x; then
21020 echo '.p2align 4,,7' > conftest.s
21021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21026 test $ac_status = 0; }; }
21027 then
21028 gcc_cv_as_max_skip_p2align=yes
21029 else
21030 echo "configure: failed program was" >&5
21031 cat conftest.s >&5
21033 rm -f conftest.o conftest.s
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21037 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21038 if test $gcc_cv_as_max_skip_p2align = yes; then
21040 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21045 $as_echo_n "checking assembler for .literal16... " >&6; }
21046 if test "${gcc_cv_as_literal16+set}" = set; then :
21047 $as_echo_n "(cached) " >&6
21048 else
21049 gcc_cv_as_literal16=no
21050 if test $in_tree_gas = yes; then
21051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21052 then gcc_cv_as_literal16=yes
21054 elif test x$gcc_cv_as != x; then
21055 echo '.literal16' > conftest.s
21056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21058 (eval $ac_try) 2>&5
21059 ac_status=$?
21060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21061 test $ac_status = 0; }; }
21062 then
21063 gcc_cv_as_literal16=yes
21064 else
21065 echo "configure: failed program was" >&5
21066 cat conftest.s >&5
21068 rm -f conftest.o conftest.s
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21072 $as_echo "$gcc_cv_as_literal16" >&6; }
21073 if test $gcc_cv_as_literal16 = yes; then
21075 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21080 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21081 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21083 else
21084 gcc_cv_as_subsection_m1=no
21085 if test $in_tree_gas = yes; then
21086 if test $in_tree_gas_is_elf = yes \
21087 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21088 then gcc_cv_as_subsection_m1=yes
21090 elif test x$gcc_cv_as != x; then
21091 echo 'conftest_label1: .word 0
21092 .subsection -1
21093 conftest_label2: .word 0
21094 .previous' > conftest.s
21095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21100 test $ac_status = 0; }; }
21101 then
21102 if test x$gcc_cv_nm != x; then
21103 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21104 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21105 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21106 then :
21107 else gcc_cv_as_subsection_m1=yes
21109 rm -f conftest.nm1 conftest.nm2
21111 else
21112 echo "configure: failed program was" >&5
21113 cat conftest.s >&5
21115 rm -f conftest.o conftest.s
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21119 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21120 if test $gcc_cv_as_subsection_m1 = yes; then
21122 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21127 $as_echo_n "checking assembler for .weak... " >&6; }
21128 if test "${gcc_cv_as_weak+set}" = set; then :
21129 $as_echo_n "(cached) " >&6
21130 else
21131 gcc_cv_as_weak=no
21132 if test $in_tree_gas = yes; then
21133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21134 then gcc_cv_as_weak=yes
21136 elif test x$gcc_cv_as != x; then
21137 echo ' .weak foobar' > conftest.s
21138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21143 test $ac_status = 0; }; }
21144 then
21145 gcc_cv_as_weak=yes
21146 else
21147 echo "configure: failed program was" >&5
21148 cat conftest.s >&5
21150 rm -f conftest.o conftest.s
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21154 $as_echo "$gcc_cv_as_weak" >&6; }
21155 if test $gcc_cv_as_weak = yes; then
21157 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21162 $as_echo_n "checking assembler for .weakref... " >&6; }
21163 if test "${gcc_cv_as_weakref+set}" = set; then :
21164 $as_echo_n "(cached) " >&6
21165 else
21166 gcc_cv_as_weakref=no
21167 if test $in_tree_gas = yes; then
21168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21169 then gcc_cv_as_weakref=yes
21171 elif test x$gcc_cv_as != x; then
21172 echo ' .weakref foobar, barfnot' > conftest.s
21173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21178 test $ac_status = 0; }; }
21179 then
21180 gcc_cv_as_weakref=yes
21181 else
21182 echo "configure: failed program was" >&5
21183 cat conftest.s >&5
21185 rm -f conftest.o conftest.s
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21189 $as_echo "$gcc_cv_as_weakref" >&6; }
21190 if test $gcc_cv_as_weakref = yes; then
21192 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21197 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21198 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21199 $as_echo_n "(cached) " >&6
21200 else
21201 gcc_cv_as_nsubspa_comdat=no
21202 if test $in_tree_gas = yes; then
21203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21204 then gcc_cv_as_nsubspa_comdat=yes
21206 elif test x$gcc_cv_as != x; then
21207 echo ' .SPACE $TEXT$
21208 .NSUBSPA $CODE$,COMDAT' > conftest.s
21209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21214 test $ac_status = 0; }; }
21215 then
21216 gcc_cv_as_nsubspa_comdat=yes
21217 else
21218 echo "configure: failed program was" >&5
21219 cat conftest.s >&5
21221 rm -f conftest.o conftest.s
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21225 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21226 if test $gcc_cv_as_nsubspa_comdat = yes; then
21228 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21232 # .hidden needs to be supported in both the assembler and the linker,
21233 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21234 # This is irritatingly difficult to feature test for; we have to check the
21235 # date string after the version number. If we've got an in-tree
21236 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21237 # to be safe.
21238 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21240 $as_echo_n "checking assembler for .hidden... " >&6; }
21241 if test "${gcc_cv_as_hidden+set}" = set; then :
21242 $as_echo_n "(cached) " >&6
21243 else
21244 gcc_cv_as_hidden=no
21245 if test $in_tree_gas = yes; then
21246 if test $in_tree_gas_is_elf = yes \
21247 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21248 then gcc_cv_as_hidden=yes
21250 elif test x$gcc_cv_as != x; then
21251 echo ' .hidden foobar
21252 foobar:' > conftest.s
21253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21258 test $ac_status = 0; }; }
21259 then
21261 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21262 # STV_HIDDEN, so disable .hidden support if so.
21263 case "${target}" in
21264 i?86-*-solaris2*)
21265 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21266 cat > conftest.s <<EOF
21267 .globl hidden
21268 .hidden hidden
21269 hidden:
21270 .globl default
21271 .set default,hidden
21273 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21274 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21275 grep '\.hidden default' > /dev/null; then
21276 gcc_cv_as_hidden=no
21277 else
21278 gcc_cv_as_hidden=yes
21280 else
21281 # Assume bug is present if objdump is missing.
21282 gcc_cv_as_hidden=no
21286 gcc_cv_as_hidden=yes
21288 esac
21289 else
21290 echo "configure: failed program was" >&5
21291 cat conftest.s >&5
21293 rm -f conftest.o conftest.s
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21297 $as_echo "$gcc_cv_as_hidden" >&6; }
21300 if test $in_tree_ld != yes ; then
21301 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21302 if test x"$ld_is_gold" = xyes; then
21303 gcc_cv_ld_hidden=yes
21304 elif echo "$ld_ver" | grep GNU > /dev/null; then
21305 ld_vers=`echo $ld_ver | sed -n \
21306 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21307 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'`
21308 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21309 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21310 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21311 else
21312 case "${target}" in
21313 *-*-solaris2*)
21315 # Solaris 2 ld -V output looks like this for a regular version:
21317 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21319 # but test versions add stuff at the end:
21321 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21323 ld_ver=`$gcc_cv_ld -V 2>&1`
21324 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21325 ld_vers=`echo $ld_ver | sed -n \
21326 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21327 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21328 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21331 esac
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21336 $as_echo_n "checking linker for .hidden support... " >&6; }
21337 if test "${gcc_cv_ld_hidden+set}" = set; then :
21338 $as_echo_n "(cached) " >&6
21339 else
21340 if test $in_tree_ld = yes ; then
21341 gcc_cv_ld_hidden=no
21342 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 \
21343 && test $in_tree_ld_is_elf = yes; then
21344 gcc_cv_ld_hidden=yes
21346 else
21347 gcc_cv_ld_hidden=yes
21348 if echo "$ld_ver" | grep GNU > /dev/null; then
21349 if test 0"$ld_date" -lt 20020404; then
21350 if test -n "$ld_date"; then
21351 # If there was date string, but was earlier than 2002-04-04, fail
21352 gcc_cv_ld_hidden=no
21353 elif test -z "$ld_vers"; then
21354 # If there was no date string nor ld version number, something is wrong
21355 gcc_cv_ld_hidden=no
21356 else
21357 test -z "$ld_vers_patch" && ld_vers_patch=0
21358 if test "$ld_vers_major" -lt 2; then
21359 gcc_cv_ld_hidden=no
21360 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21361 gcc_cv_ld_hidden="no"
21362 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21363 gcc_cv_ld_hidden=no
21367 else
21368 case "${target}" in
21369 hppa64*-*-hpux* | ia64*-*-hpux*)
21370 gcc_cv_ld_hidden=yes
21372 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21373 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21374 # .symbolic was only added in Solaris 9 12/02.
21375 gcc_cv_ld_hidden=yes
21378 gcc_cv_ld_hidden=no
21380 esac
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21385 $as_echo "$gcc_cv_ld_hidden" >&6; }
21386 libgcc_visibility=no
21389 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21390 libgcc_visibility=yes
21392 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21397 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21398 gcc_cv_ld_ro_rw_mix=unknown
21399 if test $in_tree_ld = yes ; then
21400 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 \
21401 && test $in_tree_ld_is_elf = yes; then
21402 gcc_cv_ld_ro_rw_mix=read-write
21404 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21405 echo '.section myfoosect, "a"' > conftest1.s
21406 echo '.section myfoosect, "aw"' > conftest2.s
21407 echo '.byte 1' >> conftest2.s
21408 echo '.section myfoosect, "a"' > conftest3.s
21409 echo '.byte 0' >> conftest3.s
21410 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21411 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21412 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21413 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21414 conftest2.o conftest3.o > /dev/null 2>&1; then
21415 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21416 | sed -e '/myfoosect/!d' -e N`
21417 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21418 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21419 gcc_cv_ld_ro_rw_mix=read-only
21420 else
21421 gcc_cv_ld_ro_rw_mix=read-write
21425 rm -f conftest.* conftest[123].*
21427 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21429 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21433 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21435 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21437 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21438 if test "${gcc_cv_as_leb128+set}" = set; then :
21439 $as_echo_n "(cached) " >&6
21440 else
21441 gcc_cv_as_leb128=no
21442 if test $in_tree_gas = yes; then
21443 if test $in_tree_gas_is_elf = yes \
21444 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21445 then gcc_cv_as_leb128=yes
21447 elif test x$gcc_cv_as != x; then
21448 echo ' .data
21449 .uleb128 L2 - L1
21451 .uleb128 1280
21452 .sleb128 -1010
21453 L2:' > conftest.s
21454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21456 (eval $ac_try) 2>&5
21457 ac_status=$?
21458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21459 test $ac_status = 0; }; }
21460 then
21461 # GAS versions before 2.11 do not support uleb128,
21462 # despite appearing to.
21463 # ??? There exists an elf-specific test that will crash
21464 # the assembler. Perhaps it's better to figure out whether
21465 # arbitrary sections are supported and try the test.
21466 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21467 if echo "$as_ver" | grep GNU > /dev/null; then
21468 as_vers=`echo $as_ver | sed -n \
21469 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21470 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21471 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21472 if test $as_major -eq 2 && test $as_minor -lt 11
21473 then :
21474 else gcc_cv_as_leb128=yes
21477 else
21478 echo "configure: failed program was" >&5
21479 cat conftest.s >&5
21481 rm -f conftest.o conftest.s
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21485 $as_echo "$gcc_cv_as_leb128" >&6; }
21486 if test $gcc_cv_as_leb128 = yes; then
21488 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21492 # Check if we have assembler support for unwind directives.
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21494 $as_echo_n "checking assembler for cfi directives... " >&6; }
21495 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21496 $as_echo_n "(cached) " >&6
21497 else
21498 gcc_cv_as_cfi_directive=no
21499 if test x$gcc_cv_as != x; then
21500 echo ' .text
21501 .cfi_startproc
21502 .cfi_offset 0, 0
21503 .cfi_same_value 1
21504 .cfi_def_cfa 1, 2
21505 .cfi_escape 1, 2, 3, 4, 5
21506 .cfi_endproc' > conftest.s
21507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21509 (eval $ac_try) 2>&5
21510 ac_status=$?
21511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21512 test $ac_status = 0; }; }
21513 then
21514 case "$target" in
21515 *-*-solaris*)
21516 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21517 # read-only and read-write sections, we need to make sure that the
21518 # assembler used emits read-write .eh_frame sections.
21519 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21520 if test "x$gcc_cv_objdump" != x; then
21521 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21522 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21523 gcc_cv_as_cfi_directive=no
21524 else
21525 case "$target" in
21526 i?86-*-solaris2.1[0-9]*)
21527 # On Solaris/x86, make sure that GCC and gas agree on using
21528 # read-only .eh_frame sections for 64-bit.
21529 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21530 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21531 sed -e /.eh_frame/!d -e N | \
21532 grep READONLY > /dev/null; then
21533 gcc_cv_as_cfi_directive=yes
21534 else
21535 gcc_cv_as_cfi_directive=no
21539 gcc_cv_as_cfi_directive=yes
21541 esac
21543 else
21544 # no objdump, err on the side of caution
21545 gcc_cv_as_cfi_directive=no
21547 else
21548 gcc_cv_as_cfi_directive=yes
21551 *-*-*)
21552 gcc_cv_as_cfi_directive=yes
21554 esac
21555 else
21556 echo "configure: failed program was" >&5
21557 cat conftest.s >&5
21559 rm -f conftest.o conftest.s
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21563 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21565 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21567 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21568 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21569 $as_echo_n "(cached) " >&6
21570 else
21571 gcc_cv_as_cfi_advance_working=no
21572 if test x$gcc_cv_as != x; then
21573 echo ' .text
21574 .cfi_startproc
21575 .cfi_adjust_cfa_offset 64
21576 .skip 75040, 0
21577 .cfi_adjust_cfa_offset 128
21578 .cfi_endproc' > conftest.s
21579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21581 (eval $ac_try) 2>&5
21582 ac_status=$?
21583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21584 test $ac_status = 0; }; }
21585 then
21587 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21588 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21589 gcc_cv_as_cfi_advance_working=yes
21592 else
21593 echo "configure: failed program was" >&5
21594 cat conftest.s >&5
21596 rm -f conftest.o conftest.s
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21600 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21602 else
21603 # no readelf, err on the side of caution
21604 gcc_cv_as_cfi_advance_working=no
21607 cat >>confdefs.h <<_ACEOF
21608 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21609 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21610 _ACEOF
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21614 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21615 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21616 $as_echo_n "(cached) " >&6
21617 else
21618 gcc_cv_as_cfi_personality_directive=no
21619 if test x$gcc_cv_as != x; then
21620 echo ' .text
21621 .cfi_startproc
21622 .cfi_personality 0, symbol
21623 .cfi_endproc' > conftest.s
21624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21626 (eval $ac_try) 2>&5
21627 ac_status=$?
21628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21629 test $ac_status = 0; }; }
21630 then
21631 gcc_cv_as_cfi_personality_directive=yes
21632 else
21633 echo "configure: failed program was" >&5
21634 cat conftest.s >&5
21636 rm -f conftest.o conftest.s
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21640 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21643 cat >>confdefs.h <<_ACEOF
21644 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21645 then echo 1; else echo 0; fi`
21646 _ACEOF
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21650 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21651 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21652 $as_echo_n "(cached) " >&6
21653 else
21654 gcc_cv_as_cfi_sections_directive=no
21655 if test x$gcc_cv_as != x; then
21656 echo ' .text
21657 .cfi_sections .debug_frame, .eh_frame
21658 .cfi_startproc
21659 .cfi_endproc' > conftest.s
21660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21665 test $ac_status = 0; }; }
21666 then
21667 gcc_cv_as_cfi_sections_directive=yes
21668 else
21669 echo "configure: failed program was" >&5
21670 cat conftest.s >&5
21672 rm -f conftest.o conftest.s
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21676 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21681 then echo 1; else echo 0; fi`
21682 _ACEOF
21685 # GAS versions up to and including 2.11.0 may mis-optimize
21686 # .eh_frame data.
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21688 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21689 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21690 $as_echo_n "(cached) " >&6
21691 else
21692 gcc_cv_as_eh_frame=no
21693 if test $in_tree_gas = yes; then
21694 if test $in_tree_gas_is_elf = yes \
21695 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21696 then gcc_cv_as_eh_frame=yes
21698 elif test x$gcc_cv_as != x; then
21699 echo ' .text
21700 .LFB1:
21701 .4byte 0
21702 .L1:
21703 .4byte 0
21704 .LFE1:
21705 .section .eh_frame,"aw",@progbits
21706 __FRAME_BEGIN__:
21707 .4byte .LECIE1-.LSCIE1
21708 .LSCIE1:
21709 .4byte 0x0
21710 .byte 0x1
21711 .ascii "z\0"
21712 .byte 0x1
21713 .byte 0x78
21714 .byte 0x1a
21715 .byte 0x0
21716 .byte 0x4
21717 .4byte 1
21718 .p2align 1
21719 .LECIE1:
21720 .LSFDE1:
21721 .4byte .LEFDE1-.LASFDE1
21722 .LASFDE1:
21723 .4byte .LASFDE1-__FRAME_BEGIN__
21724 .4byte .LFB1
21725 .4byte .LFE1-.LFB1
21726 .byte 0x4
21727 .4byte .LFE1-.LFB1
21728 .byte 0x4
21729 .4byte .L1-.LFB1
21730 .LEFDE1:' > conftest.s
21731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21733 (eval $ac_try) 2>&5
21734 ac_status=$?
21735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21736 test $ac_status = 0; }; }
21737 then
21738 cat > conftest.lit <<EOF
21739 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21740 0010 01000000 12000000 18000000 00000000 ................
21741 0020 08000000 04080000 0044 .........D
21743 cat > conftest.big <<EOF
21744 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21745 0010 00000001 00000012 00000018 00000000 ................
21746 0020 00000008 04000000 0844 .........D
21748 # If the assembler didn't choke, and we can objdump,
21749 # and we got the correct data, then succeed.
21750 # The text in the here-document typically retains its unix-style line
21751 # endings, while the output of objdump will use host line endings.
21752 # Therefore, use diff -b for the comparisons.
21753 if test x$gcc_cv_objdump != x \
21754 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21755 | tail -3 > conftest.got \
21756 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21757 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21758 then
21759 gcc_cv_as_eh_frame=yes
21760 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21765 test $ac_status = 0; }; }; then
21766 gcc_cv_as_eh_frame=buggy
21767 else
21768 # Uh oh, what do we do now?
21769 gcc_cv_as_eh_frame=no
21771 else
21772 echo "configure: failed program was" >&5
21773 cat conftest.s >&5
21775 rm -f conftest.o conftest.s
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21779 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21782 if test $gcc_cv_as_eh_frame = buggy; then
21784 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21789 $as_echo_n "checking assembler for section merging support... " >&6; }
21790 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21791 $as_echo_n "(cached) " >&6
21792 else
21793 gcc_cv_as_shf_merge=no
21794 if test $in_tree_gas = yes; then
21795 if test $in_tree_gas_is_elf = yes \
21796 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21797 then gcc_cv_as_shf_merge=yes
21799 elif test x$gcc_cv_as != x; then
21800 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21806 test $ac_status = 0; }; }
21807 then
21808 gcc_cv_as_shf_merge=yes
21809 else
21810 echo "configure: failed program was" >&5
21811 cat conftest.s >&5
21813 rm -f conftest.o conftest.s
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21817 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21819 if test $gcc_cv_as_shf_merge = no; then
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21821 $as_echo_n "checking assembler for section merging support... " >&6; }
21822 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21823 $as_echo_n "(cached) " >&6
21824 else
21825 gcc_cv_as_shf_merge=no
21826 if test $in_tree_gas = yes; then
21827 if test $in_tree_gas_is_elf = yes \
21828 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21829 then gcc_cv_as_shf_merge=yes
21831 elif test x$gcc_cv_as != x; then
21832 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21838 test $ac_status = 0; }; }
21839 then
21840 gcc_cv_as_shf_merge=yes
21841 else
21842 echo "configure: failed program was" >&5
21843 cat conftest.s >&5
21845 rm -f conftest.o conftest.s
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21849 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21853 cat >>confdefs.h <<_ACEOF
21854 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21855 _ACEOF
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21859 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21860 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21861 $as_echo_n "(cached) " >&6
21862 else
21863 gcc_cv_as_comdat_group=no
21864 if test $in_tree_gas = yes; then
21865 if test $in_tree_gas_is_elf = yes \
21866 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21867 then gcc_cv_as_comdat_group=yes
21869 elif test x$gcc_cv_as != x; then
21870 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21873 (eval $ac_try) 2>&5
21874 ac_status=$?
21875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21876 test $ac_status = 0; }; }
21877 then
21878 gcc_cv_as_comdat_group=yes
21879 else
21880 echo "configure: failed program was" >&5
21881 cat conftest.s >&5
21883 rm -f conftest.o conftest.s
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21887 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21889 if test $gcc_cv_as_comdat_group = yes; then
21890 gcc_cv_as_comdat_group_percent=no
21891 else
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21893 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21894 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21896 else
21897 gcc_cv_as_comdat_group_percent=no
21898 if test $in_tree_gas = yes; then
21899 if test $in_tree_gas_is_elf = yes \
21900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21901 then gcc_cv_as_comdat_group_percent=yes
21903 elif test x$gcc_cv_as != x; then
21904 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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_comdat_group_percent=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_comdat_group_percent" >&5
21921 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21924 if test x"$ld_is_gold" = xyes; then
21925 comdat_group=yes
21926 elif test $in_tree_ld = yes ; then
21927 comdat_group=no
21928 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 \
21929 && test $in_tree_ld_is_elf = yes; then
21930 comdat_group=yes
21932 elif echo "$ld_ver" | grep GNU > /dev/null; then
21933 comdat_group=yes
21934 if test 0"$ld_date" -lt 20050308; then
21935 if test -n "$ld_date"; then
21936 # If there was date string, but was earlier than 2005-03-08, fail
21937 comdat_group=no
21938 elif test "$ld_vers_major" -lt 2; then
21939 comdat_group=no
21940 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21941 comdat_group=no
21944 else
21945 case "${target}" in
21946 *-*-solaris2.1[1-9]*)
21947 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21948 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21949 # version 1.688.
21951 # FIXME: Maybe need to refine later when COMDAT group support with
21952 # Sun as is implemented.
21953 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21954 comdat_group=yes
21955 else
21956 comdat_group=no
21960 # Assume linkers other than GNU ld don't support COMDAT group.
21961 comdat_group=no
21963 esac
21965 # Allow overriding the automatic COMDAT group tests above.
21966 # Check whether --enable-comdat was given.
21967 if test "${enable_comdat+set}" = set; then :
21968 enableval=$enable_comdat; comdat_group="$enable_comdat"
21971 if test $comdat_group = no; then
21972 gcc_cv_as_comdat_group=no
21973 gcc_cv_as_comdat_group_percent=no
21976 cat >>confdefs.h <<_ACEOF
21977 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21978 _ACEOF
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21982 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21983 if test "${gcc_cv_as_discriminator+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21985 else
21986 gcc_cv_as_discriminator=no
21987 if test $in_tree_gas = yes; then
21988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21989 then gcc_cv_as_discriminator=yes
21991 elif test x$gcc_cv_as != x; then
21992 echo ' .text
21993 .file 1 "conf.c"
21994 .loc 1 1 0 discriminator 1' > conftest.s
21995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22000 test $ac_status = 0; }; }
22001 then
22002 gcc_cv_as_discriminator=yes
22003 else
22004 echo "configure: failed program was" >&5
22005 cat conftest.s >&5
22007 rm -f conftest.o conftest.s
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22011 $as_echo "$gcc_cv_as_discriminator" >&6; }
22012 if test $gcc_cv_as_discriminator = yes; then
22014 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22018 # Thread-local storage - the check is heavily parameterized.
22019 conftest_s=
22020 tls_first_major=
22021 tls_first_minor=
22022 tls_as_opt=
22023 case "$target" in
22024 alpha*-*-*)
22025 conftest_s='
22026 .section ".tdata","awT",@progbits
22027 foo: .long 25
22028 .text
22029 ldq $27,__tls_get_addr($29) !literal!1
22030 lda $16,foo($29) !tlsgd!1
22031 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22032 ldq $27,__tls_get_addr($29) !literal!2
22033 lda $16,foo($29) !tlsldm!2
22034 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22035 ldq $1,foo($29) !gotdtprel
22036 ldah $2,foo($29) !dtprelhi
22037 lda $3,foo($2) !dtprello
22038 lda $4,foo($29) !dtprel
22039 ldq $1,foo($29) !gottprel
22040 ldah $2,foo($29) !tprelhi
22041 lda $3,foo($2) !tprello
22042 lda $4,foo($29) !tprel'
22043 tls_first_major=2
22044 tls_first_minor=13
22045 tls_as_opt=--fatal-warnings
22047 cris-*-*|crisv32-*-*)
22048 conftest_s='
22049 .section ".tdata","awT",@progbits
22050 x: .long 25
22051 .text
22052 move.d x:IE,$r10
22053 nop'
22054 tls_first_major=2
22055 tls_first_minor=20
22056 tls_as_opt=--fatal-warnings
22058 frv*-*-*)
22059 conftest_s='
22060 .section ".tdata","awT",@progbits
22061 x: .long 25
22062 .text
22063 call #gettlsoff(x)'
22064 tls_first_major=2
22065 tls_first_minor=14
22067 hppa*-*-linux*)
22068 conftest_s='
22069 t1: .reg %r20
22070 t2: .reg %r21
22071 gp: .reg %r19
22072 .section ".tdata","awT",@progbits
22073 foo: .long 25
22074 .text
22075 .align 4
22076 addil LT%foo-$tls_gdidx$,gp
22077 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22078 b __tls_get_addr
22080 addil LT%foo-$tls_ldidx$,gp
22081 b __tls_get_addr
22082 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22083 addil LR%foo-$tls_dtpoff$,%ret0
22084 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22085 mfctl %cr27,%t1
22086 addil LT%foo-$tls_ieoff$,gp
22087 ldw RT%foo-$tls_ieoff$(%r1),%t2
22088 add %t1,%t2,%t3
22089 mfctl %cr27,%t1
22090 addil LR%foo-$tls_leoff$,%t1
22091 ldo RR%foo-$tls_leoff$(%r1),%t2'
22092 tls_first_major=2
22093 tls_first_minor=15
22094 tls_as_opt=--fatal-warnings
22096 arm*-*-*)
22097 conftest_s='
22098 .section ".tdata","awT",%progbits
22099 foo: .long 25
22100 .text
22101 .word foo(gottpoff)
22102 .word foo(tpoff)
22103 .word foo(tlsgd)
22104 .word foo(tlsldm)
22105 .word foo(tlsldo)'
22106 tls_first_major=2
22107 tls_first_minor=17
22109 i[34567]86-*-*)
22110 case "$target" in
22111 i[34567]86-*-solaris2.[89]*)
22112 # TLS was introduced in the Solaris 9 4/04 release but
22113 # we do not enable it by default on Solaris 9 either.
22114 if test "x$enable_tls" = xyes ; then
22115 on_solaris=yes
22116 else
22117 enable_tls=no;
22120 i[34567]86-*-solaris2.*)
22121 on_solaris=yes
22124 on_solaris=no
22126 esac
22127 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22128 conftest_s='
22129 .section .tdata,"awt",@progbits'
22130 tls_first_major=0
22131 tls_first_minor=0
22133 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22135 else
22136 conftest_s='
22137 .section ".tdata","awT",@progbits'
22138 tls_first_major=2
22139 tls_first_minor=14
22140 tls_as_opt="--fatal-warnings"
22142 conftest_s="$conftest_s
22143 foo: .long 25
22144 .text
22145 movl %gs:0, %eax
22146 leal foo@tlsgd(,%ebx,1), %eax
22147 leal foo@tlsldm(%ebx), %eax
22148 leal foo@dtpoff(%eax), %edx
22149 movl foo@gottpoff(%ebx), %eax
22150 subl foo@gottpoff(%ebx), %eax
22151 addl foo@gotntpoff(%ebx), %eax
22152 movl foo@indntpoff, %eax
22153 movl \$foo@tpoff, %eax
22154 subl \$foo@tpoff, %eax
22155 leal foo@ntpoff(%ecx), %eax"
22157 x86_64-*-*)
22158 conftest_s='
22159 .section ".tdata","awT",@progbits
22160 foo: .long 25
22161 .text
22162 movq %fs:0, %rax
22163 leaq foo@TLSGD(%rip), %rdi
22164 leaq foo@TLSLD(%rip), %rdi
22165 leaq foo@DTPOFF(%rax), %rdx
22166 movq foo@GOTTPOFF(%rip), %rax
22167 movq $foo@TPOFF, %rax'
22168 tls_first_major=2
22169 tls_first_minor=14
22170 tls_as_opt=--fatal-warnings
22172 ia64-*-*)
22173 conftest_s='
22174 .section ".tdata","awT",@progbits
22175 foo: data8 25
22176 .text
22177 addl r16 = @ltoff(@dtpmod(foo#)), gp
22178 addl r17 = @ltoff(@dtprel(foo#)), gp
22179 addl r18 = @ltoff(@tprel(foo#)), gp
22180 addl r19 = @dtprel(foo#), gp
22181 adds r21 = @dtprel(foo#), r13
22182 movl r23 = @dtprel(foo#)
22183 addl r20 = @tprel(foo#), gp
22184 adds r22 = @tprel(foo#), r13
22185 movl r24 = @tprel(foo#)'
22186 tls_first_major=2
22187 tls_first_minor=13
22188 tls_as_opt=--fatal-warnings
22190 mips*-*-*)
22191 conftest_s='
22192 .section .tdata,"awT",@progbits
22194 .word 2
22195 .text
22196 addiu $4, $28, %tlsgd(x)
22197 addiu $4, $28, %tlsldm(x)
22198 lui $4, %dtprel_hi(x)
22199 addiu $4, $4, %dtprel_lo(x)
22200 lw $4, %gottprel(x)($28)
22201 lui $4, %tprel_hi(x)
22202 addiu $4, $4, %tprel_lo(x)'
22203 tls_first_major=2
22204 tls_first_minor=16
22205 tls_as_opt='-32 --fatal-warnings'
22207 m68k-*-*)
22208 conftest_s='
22209 .section .tdata,"awT",@progbits
22211 .word 2
22212 .text
22213 foo:
22214 move.l x@TLSGD(%a5),%a0
22215 move.l x@TLSLDM(%a5),%a0
22216 move.l x@TLSLDO(%a5),%a0
22217 move.l x@TLSIE(%a5),%a0
22218 move.l x@TLSLE(%a5),%a0'
22219 tls_first_major=2
22220 tls_first_minor=19
22221 tls_as_opt='--fatal-warnings'
22223 powerpc-*-*)
22224 conftest_s='
22225 .section ".tdata","awT",@progbits
22226 .align 2
22227 ld0: .space 4
22228 ld1: .space 4
22229 x1: .space 4
22230 x2: .space 4
22231 x3: .space 4
22232 .text
22233 addi 3,31,ld0@got@tlsgd
22234 bl __tls_get_addr
22235 addi 3,31,x1@got@tlsld
22236 bl __tls_get_addr
22237 addi 9,3,x1@dtprel
22238 addis 9,3,x2@dtprel@ha
22239 addi 9,9,x2@dtprel@l
22240 lwz 9,x3@got@tprel(31)
22241 add 9,9,x@tls
22242 addi 9,2,x1@tprel
22243 addis 9,2,x2@tprel@ha
22244 addi 9,9,x2@tprel@l'
22245 tls_first_major=2
22246 tls_first_minor=14
22247 tls_as_opt="-a32 --fatal-warnings"
22249 powerpc64-*-*)
22250 conftest_s='
22251 .section ".tdata","awT",@progbits
22252 .align 3
22253 ld0: .space 8
22254 ld1: .space 8
22255 x1: .space 8
22256 x2: .space 8
22257 x3: .space 8
22258 .text
22259 addi 3,2,ld0@got@tlsgd
22260 bl .__tls_get_addr
22262 addi 3,2,ld1@toc
22263 bl .__tls_get_addr
22265 addi 3,2,x1@got@tlsld
22266 bl .__tls_get_addr
22268 addi 9,3,x1@dtprel
22269 bl .__tls_get_addr
22271 addis 9,3,x2@dtprel@ha
22272 addi 9,9,x2@dtprel@l
22273 bl .__tls_get_addr
22275 ld 9,x3@got@dtprel(2)
22276 add 9,9,3
22277 bl .__tls_get_addr
22278 nop'
22279 tls_first_major=2
22280 tls_first_minor=14
22281 tls_as_opt="-a64 --fatal-warnings"
22283 s390-*-*)
22284 conftest_s='
22285 .section ".tdata","awT",@progbits
22286 foo: .long 25
22287 .text
22288 .long foo@TLSGD
22289 .long foo@TLSLDM
22290 .long foo@DTPOFF
22291 .long foo@NTPOFF
22292 .long foo@GOTNTPOFF
22293 .long foo@INDNTPOFF
22294 l %r1,foo@GOTNTPOFF(%r12)
22295 l %r1,0(%r1):tls_load:foo
22296 bas %r14,0(%r1,%r13):tls_gdcall:foo
22297 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22298 tls_first_major=2
22299 tls_first_minor=14
22300 tls_as_opt="-m31 --fatal-warnings"
22302 s390x-*-*)
22303 conftest_s='
22304 .section ".tdata","awT",@progbits
22305 foo: .long 25
22306 .text
22307 .quad foo@TLSGD
22308 .quad foo@TLSLDM
22309 .quad foo@DTPOFF
22310 .quad foo@NTPOFF
22311 .quad foo@GOTNTPOFF
22312 lg %r1,foo@GOTNTPOFF(%r12)
22313 larl %r1,foo@INDNTPOFF
22314 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22315 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22316 tls_first_major=2
22317 tls_first_minor=14
22318 tls_as_opt="-m64 -Aesame --fatal-warnings"
22320 sh-*-* | sh[34]-*-*)
22321 conftest_s='
22322 .section ".tdata","awT",@progbits
22323 foo: .long 25
22324 .text
22325 .long foo@TLSGD
22326 .long foo@TLSLDM
22327 .long foo@DTPOFF
22328 .long foo@GOTTPOFF
22329 .long foo@TPOFF'
22330 tls_first_major=2
22331 tls_first_minor=13
22332 tls_as_opt=--fatal-warnings
22334 sparc*-*-*)
22335 case "$target" in
22336 sparc*-sun-solaris2.[89]*)
22337 # TLS was introduced in the Solaris 9 4/04 release but
22338 # we do not enable it by default on Solaris 9 either.
22339 if test "x$enable_tls" = xyes ; then
22340 on_solaris=yes
22341 else
22342 enable_tls=no;
22345 sparc*-sun-solaris2.*)
22346 on_solaris=yes
22349 on_solaris=no
22351 esac
22352 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22353 conftest_s='
22354 .section ".tdata",#alloc,#write,#tls
22355 foo: .long 25
22356 .text
22357 sethi %tgd_hi22(foo), %o0
22358 add %o0, %tgd_lo10(foo), %o1
22359 add %l7, %o1, %o0, %tgd_add(foo)
22360 call __tls_get_addr, %tgd_call(foo)
22361 sethi %tldm_hi22(foo), %l1
22362 add %l1, %tldm_lo10(foo), %l2
22363 add %l7, %l2, %o0, %tldm_add(foo)
22364 call __tls_get_addr, %tldm_call(foo)
22365 sethi %tldo_hix22(foo), %l3
22366 xor %l3, %tldo_lox10(foo), %l4
22367 add %o0, %l4, %l5, %tldo_add(foo)
22368 sethi %tie_hi22(foo), %o3
22369 add %o3, %tie_lo10(foo), %o3
22370 ld [%l7 + %o3], %o2, %tie_ld(foo)
22371 add %g7, %o2, %o4, %tie_add(foo)
22372 sethi %tle_hix22(foo), %l1
22373 xor %l1, %tle_lox10(foo), %o5
22374 ld [%g7 + %o5], %o1'
22375 tls_first_major=0
22376 tls_first_minor=0
22377 else
22378 conftest_s='
22379 .section ".tdata","awT",@progbits
22380 foo: .long 25
22381 .text
22382 sethi %tgd_hi22(foo), %o0
22383 add %o0, %tgd_lo10(foo), %o1
22384 add %l7, %o1, %o0, %tgd_add(foo)
22385 call __tls_get_addr, %tgd_call(foo)
22386 sethi %tldm_hi22(foo), %l1
22387 add %l1, %tldm_lo10(foo), %l2
22388 add %l7, %l2, %o0, %tldm_add(foo)
22389 call __tls_get_addr, %tldm_call(foo)
22390 sethi %tldo_hix22(foo), %l3
22391 xor %l3, %tldo_lox10(foo), %l4
22392 add %o0, %l4, %l5, %tldo_add(foo)
22393 sethi %tie_hi22(foo), %o3
22394 add %o3, %tie_lo10(foo), %o3
22395 ld [%l7 + %o3], %o2, %tie_ld(foo)
22396 add %g7, %o2, %o4, %tie_add(foo)
22397 sethi %tle_hix22(foo), %l1
22398 xor %l1, %tle_lox10(foo), %o5
22399 ld [%g7 + %o5], %o1'
22400 tls_first_major=2
22401 tls_first_minor=14
22402 tls_as_opt="-32 --fatal-warnings"
22405 xtensa*-*-*)
22406 conftest_s='
22407 .section ".tdata","awT",@progbits
22408 foo: .long 25
22409 .text
22410 movi a8, foo@TLSFUNC
22411 movi a10, foo@TLSARG
22412 callx8.tls a8, foo@TLSCALL'
22413 tls_first_major=2
22414 tls_first_minor=19
22416 esac
22417 set_have_as_tls=no
22418 if test "x$enable_tls" = xno ; then
22419 : # TLS explicitly disabled.
22420 elif test "x$enable_tls" = xyes ; then
22421 set_have_as_tls=yes # TLS explicitly enabled.
22422 elif test -z "$tls_first_major"; then
22423 : # If we don't have a check, assume no support.
22424 else
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22426 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22427 if test "${gcc_cv_as_tls+set}" = set; then :
22428 $as_echo_n "(cached) " >&6
22429 else
22430 gcc_cv_as_tls=no
22431 if test $in_tree_gas = yes; then
22432 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22433 then gcc_cv_as_tls=yes
22435 elif test x$gcc_cv_as != x; then
22436 echo "$conftest_s" > conftest.s
22437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22439 (eval $ac_try) 2>&5
22440 ac_status=$?
22441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22442 test $ac_status = 0; }; }
22443 then
22444 gcc_cv_as_tls=yes
22445 else
22446 echo "configure: failed program was" >&5
22447 cat conftest.s >&5
22449 rm -f conftest.o conftest.s
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22453 $as_echo "$gcc_cv_as_tls" >&6; }
22454 if test $gcc_cv_as_tls = yes; then
22455 set_have_as_tls=yes
22458 if test $set_have_as_tls = yes ; then
22460 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22464 # Target-specific assembler checks.
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22467 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22468 gcc_cv_ld_static_dynamic=no
22469 if test $in_tree_ld = yes ; then
22470 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
22471 gcc_cv_ld_static_dynamic=yes
22473 elif test x$gcc_cv_ld != x; then
22474 # Check if linker supports -Bstatic/-Bdynamic option
22475 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22476 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22477 gcc_cv_ld_static_dynamic=yes
22480 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22482 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22486 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22488 if test x"$demangler_in_ld" = xyes; then
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22490 $as_echo_n "checking linker --demangle support... " >&6; }
22491 gcc_cv_ld_demangle=no
22492 if test $in_tree_ld = yes; then
22493 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 \
22494 gcc_cv_ld_demangle=yes
22496 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22497 # Check if the GNU linker supports --demangle option
22498 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22499 gcc_cv_ld_demangle=yes
22502 if test x"$gcc_cv_ld_demangle" = xyes; then
22504 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22508 $as_echo "$gcc_cv_ld_demangle" >&6; }
22511 case "$target" in
22512 # All TARGET_ABI_OSF targets.
22513 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22515 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22516 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22517 $as_echo_n "(cached) " >&6
22518 else
22519 gcc_cv_as_alpha_explicit_relocs=no
22520 if test $in_tree_gas = yes; then
22521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22522 then gcc_cv_as_alpha_explicit_relocs=yes
22524 elif test x$gcc_cv_as != x; then
22525 echo ' .set nomacro
22526 .text
22527 extbl $3, $2, $3 !lituse_bytoff!1
22528 ldq $2, a($29) !literal!1
22529 ldq $4, b($29) !literal!2
22530 ldq_u $3, 0($2) !lituse_base!1
22531 ldq $27, f($29) !literal!5
22532 jsr $26, ($27), f !lituse_jsr!5
22533 ldah $29, 0($26) !gpdisp!3
22534 lda $0, c($29) !gprel
22535 ldah $1, d($29) !gprelhigh
22536 lda $1, d($1) !gprellow
22537 lda $29, 0($29) !gpdisp!3' > conftest.s
22538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22543 test $ac_status = 0; }; }
22544 then
22545 gcc_cv_as_alpha_explicit_relocs=yes
22546 else
22547 echo "configure: failed program was" >&5
22548 cat conftest.s >&5
22550 rm -f conftest.o conftest.s
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22554 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22555 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22557 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22561 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22562 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22563 $as_echo_n "(cached) " >&6
22564 else
22565 gcc_cv_as_alpha_jsrdirect_relocs=no
22566 if test $in_tree_gas = yes; then
22567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22568 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22570 elif test x$gcc_cv_as != x; then
22571 echo ' .set nomacro
22572 .text
22573 ldq $27, a($29) !literal!1
22574 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22580 test $ac_status = 0; }; }
22581 then
22582 gcc_cv_as_alpha_jsrdirect_relocs=yes
22583 else
22584 echo "configure: failed program was" >&5
22585 cat conftest.s >&5
22587 rm -f conftest.o conftest.s
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22591 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22592 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22594 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22599 cris-*-*)
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22601 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22602 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22603 $as_echo_n "(cached) " >&6
22604 else
22605 gcc_cv_as_cris_no_mul_bug=no
22606 if test $in_tree_gas = yes; then
22607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22608 then gcc_cv_as_cris_no_mul_bug=yes
22610 elif test x$gcc_cv_as != x; then
22611 echo '.text' > conftest.s
22612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22614 (eval $ac_try) 2>&5
22615 ac_status=$?
22616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617 test $ac_status = 0; }; }
22618 then
22619 gcc_cv_as_cris_no_mul_bug=yes
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_cris_no_mul_bug" >&5
22628 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22629 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22631 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22636 sparc*-*-*)
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22638 $as_echo_n "checking assembler for .register... " >&6; }
22639 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22641 else
22642 gcc_cv_as_sparc_register_op=no
22643 if test x$gcc_cv_as != x; then
22644 echo '.register %g2, #scratch' > conftest.s
22645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22647 (eval $ac_try) 2>&5
22648 ac_status=$?
22649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22650 test $ac_status = 0; }; }
22651 then
22652 gcc_cv_as_sparc_register_op=yes
22653 else
22654 echo "configure: failed program was" >&5
22655 cat conftest.s >&5
22657 rm -f conftest.o conftest.s
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22661 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22662 if test $gcc_cv_as_sparc_register_op = yes; then
22664 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22669 $as_echo_n "checking assembler for -relax option... " >&6; }
22670 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22671 $as_echo_n "(cached) " >&6
22672 else
22673 gcc_cv_as_sparc_relax=no
22674 if test x$gcc_cv_as != x; then
22675 echo '.text' > conftest.s
22676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22678 (eval $ac_try) 2>&5
22679 ac_status=$?
22680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22681 test $ac_status = 0; }; }
22682 then
22683 gcc_cv_as_sparc_relax=yes
22684 else
22685 echo "configure: failed program was" >&5
22686 cat conftest.s >&5
22688 rm -f conftest.o conftest.s
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22692 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22693 if test $gcc_cv_as_sparc_relax = yes; then
22695 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22700 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22701 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22702 $as_echo_n "(cached) " >&6
22703 else
22704 gcc_cv_as_sparc_gotdata_op=no
22705 if test x$gcc_cv_as != x; then
22706 echo '.text
22707 foo:
22709 bar:
22710 sethi %gdop_hix22(foo), %g1
22711 xor %g1, %gdop_lox10(foo), %g1
22712 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
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; }; }
22719 then
22720 if test x$gcc_cv_ld != x \
22721 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22722 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22723 if test x$gcc_cv_objdump != x; then
22724 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22725 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22726 gcc_cv_as_sparc_gotdata_op=no
22727 else
22728 gcc_cv_as_sparc_gotdata_op=yes
22731 else
22732 gcc_cv_as_sparc_gotdata_op=yes
22735 rm -f conftest
22736 else
22737 echo "configure: failed program was" >&5
22738 cat conftest.s >&5
22740 rm -f conftest.o conftest.s
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22744 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22745 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22747 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22752 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22753 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22754 $as_echo_n "(cached) " >&6
22755 else
22756 gcc_cv_as_sparc_ua_pcrel=no
22757 if test x$gcc_cv_as != x; then
22758 echo '.text
22759 foo:
22761 .data
22762 .align 4
22763 .byte 0
22764 .uaword %r_disp32(foo)' > conftest.s
22765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }
22771 then
22772 if test x$gcc_cv_ld != x \
22773 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22774 gcc_cv_as_sparc_ua_pcrel=yes
22776 rm -f conftest
22777 else
22778 echo "configure: failed program was" >&5
22779 cat conftest.s >&5
22781 rm -f conftest.o conftest.s
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22785 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22786 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22788 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22792 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22793 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22794 $as_echo_n "(cached) " >&6
22795 else
22796 gcc_cv_as_sparc_ua_pcrel_hidden=no
22797 if test x$gcc_cv_as != x; then
22798 echo '.data
22799 .align 4
22800 .byte 0x31
22801 .uaword %r_disp32(foo)
22802 .byte 0x32, 0x33, 0x34
22803 .global foo
22804 .hidden foo
22805 foo:
22806 .skip 4' > conftest.s
22807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22809 (eval $ac_try) 2>&5
22810 ac_status=$?
22811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22812 test $ac_status = 0; }; }
22813 then
22814 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22815 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22816 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22817 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22818 if $gcc_cv_objdump -R conftest 2> /dev/null \
22819 | grep 'DISP32' > /dev/null 2>&1; then
22821 else
22822 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22825 rm -f conftest
22826 else
22827 echo "configure: failed program was" >&5
22828 cat conftest.s >&5
22830 rm -f conftest.o conftest.s
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22834 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22835 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22837 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22841 fi # unaligned pcrel relocs
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22844 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22845 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22846 $as_echo_n "(cached) " >&6
22847 else
22848 gcc_cv_as_sparc_offsetable_lo10=no
22849 if test x$gcc_cv_as != x; then
22850 echo '.text
22851 or %g1, %lo(ab) + 12, %g1
22852 or %g1, %lo(ab + 12), %g1' > conftest.s
22853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22855 (eval $ac_try) 2>&5
22856 ac_status=$?
22857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22858 test $ac_status = 0; }; }
22859 then
22860 if test x$gcc_cv_objdump != x \
22861 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22862 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22863 gcc_cv_as_sparc_offsetable_lo10=yes
22865 else
22866 echo "configure: failed program was" >&5
22867 cat conftest.s >&5
22869 rm -f conftest.o conftest.s
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22873 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22874 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22876 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22881 i[34567]86-*-* | x86_64-*-*)
22882 case $target_os in
22883 cygwin*)
22884 # Full C++ conformance when using a shared libstdc++-v3 requires some
22885 # support from the Cygwin DLL, which in more recent versions exports
22886 # wrappers to aid in interposing and redirecting operators new, delete,
22887 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22888 # are configuring for a version of Cygwin that exports the wrappers.
22889 if test x$host = x$target; then
22890 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22891 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
22892 gcc_ac_cygwin_dll_wrappers=yes
22893 else
22894 gcc_ac_cygwin_dll_wrappers=no
22897 else
22898 # Can't check presence of libc functions during cross-compile, so
22899 # we just have to assume we're building for an up-to-date target.
22900 gcc_ac_cygwin_dll_wrappers=yes
22903 cat >>confdefs.h <<_ACEOF
22904 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22905 _ACEOF
22907 esac
22908 case $target_os in
22909 cygwin* | pe | mingw32*)
22910 # Recent binutils allows the three-operand form of ".comm" on PE. This
22911 # definition is used unconditionally to initialise the default state of
22912 # the target option variable that governs usage of the feature.
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22914 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22915 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22916 $as_echo_n "(cached) " >&6
22917 else
22918 gcc_cv_as_comm_has_align=no
22919 if test $in_tree_gas = yes; then
22920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22921 then gcc_cv_as_comm_has_align=yes
22923 elif test x$gcc_cv_as != x; then
22924 echo '.comm foo,1,32' > conftest.s
22925 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22927 (eval $ac_try) 2>&5
22928 ac_status=$?
22929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22930 test $ac_status = 0; }; }
22931 then
22932 gcc_cv_as_comm_has_align=yes
22933 else
22934 echo "configure: failed program was" >&5
22935 cat conftest.s >&5
22937 rm -f conftest.o conftest.s
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22941 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22944 cat >>confdefs.h <<_ACEOF
22945 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22946 _ACEOF
22948 # Used for DWARF 2 in PE
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22950 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22951 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22952 $as_echo_n "(cached) " >&6
22953 else
22954 gcc_cv_as_ix86_pe_secrel32=no
22955 if test $in_tree_gas = yes; then
22956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22957 then gcc_cv_as_ix86_pe_secrel32=yes
22959 elif test x$gcc_cv_as != x; then
22960 echo '.text
22961 foo: nop
22962 .data
22963 .secrel32 foo' > conftest.s
22964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22969 test $ac_status = 0; }; }
22970 then
22971 if test x$gcc_cv_ld != x \
22972 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22973 gcc_cv_as_ix86_pe_secrel32=yes
22975 rm -f conftest
22976 else
22977 echo "configure: failed program was" >&5
22978 cat conftest.s >&5
22980 rm -f conftest.o conftest.s
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22984 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22985 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22987 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22990 # Test if the assembler supports the extended form of the .section
22991 # directive that specifies section alignment. LTO support uses this,
22992 # but normally only after installation, so we warn but don't fail the
22993 # configure if LTO is enabled but the assembler does not support it.
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
22995 $as_echo_n "checking assembler for .section with alignment... " >&6; }
22996 if test "${gcc_cv_as_section_has_align+set}" = set; then :
22997 $as_echo_n "(cached) " >&6
22998 else
22999 gcc_cv_as_section_has_align=no
23000 if test $in_tree_gas = yes; then
23001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23002 then gcc_cv_as_section_has_align=yes
23004 elif test x$gcc_cv_as != x; then
23005 echo '.section lto_test,"dr0"' > conftest.s
23006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23008 (eval $ac_try) 2>&5
23009 ac_status=$?
23010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23011 test $ac_status = 0; }; }
23012 then
23013 gcc_cv_as_section_has_align=yes
23014 else
23015 echo "configure: failed program was" >&5
23016 cat conftest.s >&5
23018 rm -f conftest.o conftest.s
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23022 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23024 if test x$gcc_cv_as_section_has_align != xyes; then
23025 case ",$enable_languages," in
23026 *,lto,*)
23027 { $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
23028 $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;}
23030 esac
23033 esac
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23036 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23037 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23038 $as_echo_n "(cached) " >&6
23039 else
23040 gcc_cv_as_ix86_filds=no
23041 if test x$gcc_cv_as != x; then
23042 echo 'filds mem; fists mem' > conftest.s
23043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23045 (eval $ac_try) 2>&5
23046 ac_status=$?
23047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23048 test $ac_status = 0; }; }
23049 then
23050 gcc_cv_as_ix86_filds=yes
23051 else
23052 echo "configure: failed program was" >&5
23053 cat conftest.s >&5
23055 rm -f conftest.o conftest.s
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23059 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23060 if test $gcc_cv_as_ix86_filds = yes; then
23062 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23067 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23068 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23069 $as_echo_n "(cached) " >&6
23070 else
23071 gcc_cv_as_ix86_fildq=no
23072 if test x$gcc_cv_as != x; then
23073 echo 'fildq mem; fistpq mem' > conftest.s
23074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23079 test $ac_status = 0; }; }
23080 then
23081 gcc_cv_as_ix86_fildq=yes
23082 else
23083 echo "configure: failed program was" >&5
23084 cat conftest.s >&5
23086 rm -f conftest.o conftest.s
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23090 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23091 if test $gcc_cv_as_ix86_fildq = yes; then
23093 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23098 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23099 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23100 $as_echo_n "(cached) " >&6
23101 else
23102 gcc_cv_as_ix86_cmov_sun_syntax=no
23103 if test x$gcc_cv_as != x; then
23104 echo 'cmovl.l %edx, %eax' > conftest.s
23105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23107 (eval $ac_try) 2>&5
23108 ac_status=$?
23109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23110 test $ac_status = 0; }; }
23111 then
23112 gcc_cv_as_ix86_cmov_sun_syntax=yes
23113 else
23114 echo "configure: failed program was" >&5
23115 cat conftest.s >&5
23117 rm -f conftest.o conftest.s
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23121 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23122 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23124 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23129 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23130 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23131 $as_echo_n "(cached) " >&6
23132 else
23133 gcc_cv_as_ix86_ffreep=no
23134 if test x$gcc_cv_as != x; then
23135 echo 'ffreep %st(1)' > conftest.s
23136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23141 test $ac_status = 0; }; }
23142 then
23143 gcc_cv_as_ix86_ffreep=yes
23144 else
23145 echo "configure: failed program was" >&5
23146 cat conftest.s >&5
23148 rm -f conftest.o conftest.s
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23152 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23153 if test $gcc_cv_as_ix86_ffreep = yes; then
23155 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23160 $as_echo_n "checking assembler for .quad directive... " >&6; }
23161 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23162 $as_echo_n "(cached) " >&6
23163 else
23164 gcc_cv_as_ix86_quad=no
23165 if test x$gcc_cv_as != x; then
23166 echo '.quad 0' > conftest.s
23167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23172 test $ac_status = 0; }; }
23173 then
23174 gcc_cv_as_ix86_quad=yes
23175 else
23176 echo "configure: failed program was" >&5
23177 cat conftest.s >&5
23179 rm -f conftest.o conftest.s
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23183 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23184 if test $gcc_cv_as_ix86_quad = yes; then
23186 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23191 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23192 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23193 $as_echo_n "(cached) " >&6
23194 else
23195 gcc_cv_as_ix86_sahf=no
23196 if test x$gcc_cv_as != x; then
23197 echo '.code64
23198 sahf' > conftest.s
23199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23205 then
23206 gcc_cv_as_ix86_sahf=yes
23207 else
23208 echo "configure: failed program was" >&5
23209 cat conftest.s >&5
23211 rm -f conftest.o conftest.s
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23215 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23216 if test $gcc_cv_as_ix86_sahf = yes; then
23218 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23223 $as_echo_n "checking assembler for swap suffix... " >&6; }
23224 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23225 $as_echo_n "(cached) " >&6
23226 else
23227 gcc_cv_as_ix86_swap=no
23228 if test x$gcc_cv_as != x; then
23229 echo 'movl.s %esp, %ebp' > conftest.s
23230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23235 test $ac_status = 0; }; }
23236 then
23237 gcc_cv_as_ix86_swap=yes
23238 else
23239 echo "configure: failed program was" >&5
23240 cat conftest.s >&5
23242 rm -f conftest.o conftest.s
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23246 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23247 if test $gcc_cv_as_ix86_swap = yes; then
23249 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23254 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23255 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23256 $as_echo_n "(cached) " >&6
23257 else
23258 gcc_cv_as_ix86_diff_sect_delta=no
23259 if test x$gcc_cv_as != x; then
23260 echo '.section .rodata
23261 .L1:
23262 .long .L2-.L1
23263 .long .L3-.L1
23264 .text
23265 .L3: nop
23266 .L2: nop' > conftest.s
23267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23270 ac_status=$?
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }
23273 then
23274 gcc_cv_as_ix86_diff_sect_delta=yes
23275 else
23276 echo "configure: failed program was" >&5
23277 cat conftest.s >&5
23279 rm -f conftest.o conftest.s
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23283 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23284 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23286 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23290 # These two are used unconditionally by i386.[ch]; it is to be defined
23291 # to 1 if the feature is present, 0 otherwise.
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23293 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23294 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23295 $as_echo_n "(cached) " >&6
23296 else
23297 gcc_cv_as_ix86_gotoff_in_data=no
23298 if test $in_tree_gas = yes; then
23299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23300 then gcc_cv_as_ix86_gotoff_in_data=yes
23302 elif test x$gcc_cv_as != x; then
23303 echo ' .text
23304 .L0:
23306 .data
23307 .long .L0@GOTOFF' > conftest.s
23308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23311 ac_status=$?
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; }
23314 then
23315 gcc_cv_as_ix86_gotoff_in_data=yes
23316 else
23317 echo "configure: failed program was" >&5
23318 cat conftest.s >&5
23320 rm -f conftest.o conftest.s
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23324 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23327 cat >>confdefs.h <<_ACEOF
23328 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23329 _ACEOF
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23333 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23334 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23335 $as_echo_n "(cached) " >&6
23336 else
23337 gcc_cv_as_ix86_rep_lock_prefix=no
23338 if test x$gcc_cv_as != x; then
23339 echo 'rep movsl
23340 lock orl $0, (%esp)' > conftest.s
23341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23346 test $ac_status = 0; }; }
23347 then
23348 gcc_cv_as_ix86_rep_lock_prefix=yes
23349 else
23350 echo "configure: failed program was" >&5
23351 cat conftest.s >&5
23353 rm -f conftest.o conftest.s
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23357 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23360 cat >>confdefs.h <<_ACEOF
23361 #define HAVE_AS_IX86_REP_LOCK_PREFIX `if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then echo 1; else echo 0; fi`
23362 _ACEOF
23367 ia64*-*-*)
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23369 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23370 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23371 $as_echo_n "(cached) " >&6
23372 else
23373 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23374 if test $in_tree_gas = yes; then
23375 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23376 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23378 elif test x$gcc_cv_as != x; then
23379 echo ' .text
23380 addl r15 = @ltoffx(x#), gp
23382 ld8.mov r16 = [r15], x#' > conftest.s
23383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23385 (eval $ac_try) 2>&5
23386 ac_status=$?
23387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23388 test $ac_status = 0; }; }
23389 then
23390 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23391 else
23392 echo "configure: failed program was" >&5
23393 cat conftest.s >&5
23395 rm -f conftest.o conftest.s
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23399 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23400 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23402 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23408 powerpc*-*-*)
23409 case $target in
23410 *-*-aix*) conftest_s=' .machine "pwr5"
23411 .csect .text[PR]
23412 mfcr 3,128';;
23413 *-*-darwin*)
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23415 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23416 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23417 $as_echo_n "(cached) " >&6
23418 else
23419 gcc_cv_as_machine_directive=no
23420 if test x$gcc_cv_as != x; then
23421 echo ' .machine ppc7400' > conftest.s
23422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23424 (eval $ac_try) 2>&5
23425 ac_status=$?
23426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23427 test $ac_status = 0; }; }
23428 then
23429 gcc_cv_as_machine_directive=yes
23430 else
23431 echo "configure: failed program was" >&5
23432 cat conftest.s >&5
23434 rm -f conftest.o conftest.s
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23438 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23440 if test x$gcc_cv_as_machine_directive != xyes; then
23441 echo "*** This target requires an assembler supporting \".machine\"" >&2
23442 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23443 test x$build = x$target && exit 1
23445 conftest_s=' .text
23446 mfcr r3,128';;
23447 *) conftest_s=' .machine power4
23448 .text
23449 mfcr 3,128';;
23450 esac
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23453 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23454 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23456 else
23457 gcc_cv_as_powerpc_mfcrf=no
23458 if test $in_tree_gas = yes; then
23459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23460 then gcc_cv_as_powerpc_mfcrf=yes
23462 elif test x$gcc_cv_as != x; then
23463 echo "$conftest_s" > conftest.s
23464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23466 (eval $ac_try) 2>&5
23467 ac_status=$?
23468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23469 test $ac_status = 0; }; }
23470 then
23471 gcc_cv_as_powerpc_mfcrf=yes
23472 else
23473 echo "configure: failed program was" >&5
23474 cat conftest.s >&5
23476 rm -f conftest.o conftest.s
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23480 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23481 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23483 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23487 case $target in
23488 *-*-aix*) conftest_s=' .machine "pwr5"
23489 .csect .text[PR]
23490 popcntb 3,3';;
23491 *) conftest_s=' .machine power5
23492 .text
23493 popcntb 3,3';;
23494 esac
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23497 $as_echo_n "checking assembler for popcntb support... " >&6; }
23498 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23499 $as_echo_n "(cached) " >&6
23500 else
23501 gcc_cv_as_powerpc_popcntb=no
23502 if test $in_tree_gas = yes; then
23503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23504 then gcc_cv_as_powerpc_popcntb=yes
23506 elif test x$gcc_cv_as != x; then
23507 echo "$conftest_s" > conftest.s
23508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23510 (eval $ac_try) 2>&5
23511 ac_status=$?
23512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23513 test $ac_status = 0; }; }
23514 then
23515 gcc_cv_as_powerpc_popcntb=yes
23516 else
23517 echo "configure: failed program was" >&5
23518 cat conftest.s >&5
23520 rm -f conftest.o conftest.s
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23524 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23525 if test $gcc_cv_as_powerpc_popcntb = yes; then
23527 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23531 case $target in
23532 *-*-aix*) conftest_s=' .machine "pwr5x"
23533 .csect .text[PR]
23534 frin 1,1';;
23535 *) conftest_s=' .machine power5
23536 .text
23537 frin 1,1';;
23538 esac
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23541 $as_echo_n "checking assembler for fp round support... " >&6; }
23542 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23543 $as_echo_n "(cached) " >&6
23544 else
23545 gcc_cv_as_powerpc_fprnd=no
23546 if test $in_tree_gas = yes; then
23547 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23548 then gcc_cv_as_powerpc_fprnd=yes
23550 elif test x$gcc_cv_as != x; then
23551 echo "$conftest_s" > conftest.s
23552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23554 (eval $ac_try) 2>&5
23555 ac_status=$?
23556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23557 test $ac_status = 0; }; }
23558 then
23559 gcc_cv_as_powerpc_fprnd=yes
23560 else
23561 echo "configure: failed program was" >&5
23562 cat conftest.s >&5
23564 rm -f conftest.o conftest.s
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23568 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23569 if test $gcc_cv_as_powerpc_fprnd = yes; then
23571 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23575 case $target in
23576 *-*-aix*) conftest_s=' .machine "pwr6"
23577 .csect .text[PR]
23578 mffgpr 1,3';;
23579 *) conftest_s=' .machine power6
23580 .text
23581 mffgpr 1,3';;
23582 esac
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23585 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23586 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23587 $as_echo_n "(cached) " >&6
23588 else
23589 gcc_cv_as_powerpc_mfpgpr=no
23590 if test $in_tree_gas = yes; then
23591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23592 then gcc_cv_as_powerpc_mfpgpr=yes
23594 elif test x$gcc_cv_as != x; then
23595 echo "$conftest_s" > conftest.s
23596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23598 (eval $ac_try) 2>&5
23599 ac_status=$?
23600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23601 test $ac_status = 0; }; }
23602 then
23603 gcc_cv_as_powerpc_mfpgpr=yes
23604 else
23605 echo "configure: failed program was" >&5
23606 cat conftest.s >&5
23608 rm -f conftest.o conftest.s
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23612 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23613 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23615 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23619 case $target in
23620 *-*-aix*) conftest_s=' .csect .text[PR]
23621 LCF..0:
23622 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23623 *-*-darwin*)
23624 conftest_s=' .text
23625 LCF0:
23626 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23627 *) conftest_s=' .text
23628 .LCF0:
23629 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23630 esac
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23633 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23634 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23635 $as_echo_n "(cached) " >&6
23636 else
23637 gcc_cv_as_powerpc_rel16=no
23638 if test $in_tree_gas = yes; then
23639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23640 then gcc_cv_as_powerpc_rel16=yes
23642 elif test x$gcc_cv_as != x; then
23643 echo "$conftest_s" > conftest.s
23644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23646 (eval $ac_try) 2>&5
23647 ac_status=$?
23648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23649 test $ac_status = 0; }; }
23650 then
23651 gcc_cv_as_powerpc_rel16=yes
23652 else
23653 echo "configure: failed program was" >&5
23654 cat conftest.s >&5
23656 rm -f conftest.o conftest.s
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23660 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23661 if test $gcc_cv_as_powerpc_rel16 = yes; then
23663 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23667 case $target in
23668 *-*-aix*) conftest_s=' .machine "pwr6"
23669 .csect .text[PR]
23670 cmpb 3,4,5';;
23671 *) conftest_s=' .machine power6
23672 .text
23673 cmpb 3,4,5';;
23674 esac
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23677 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23678 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23679 $as_echo_n "(cached) " >&6
23680 else
23681 gcc_cv_as_powerpc_cmpb=no
23682 if test $in_tree_gas = yes; then
23683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23684 then gcc_cv_as_powerpc_cmpb=yes
23686 elif test x$gcc_cv_as != x; then
23687 echo "$conftest_s" > conftest.s
23688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23690 (eval $ac_try) 2>&5
23691 ac_status=$?
23692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693 test $ac_status = 0; }; }
23694 then
23695 gcc_cv_as_powerpc_cmpb=yes
23696 else
23697 echo "configure: failed program was" >&5
23698 cat conftest.s >&5
23700 rm -f conftest.o conftest.s
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23704 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23705 if test $gcc_cv_as_powerpc_cmpb = yes; then
23707 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23711 case $target in
23712 *-*-aix*) conftest_s=' .machine "pwr6"
23713 .csect .text[PR]
23714 dadd 1,2,3';;
23715 *) conftest_s=' .machine power6
23716 .text
23717 dadd 1,2,3';;
23718 esac
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23721 $as_echo_n "checking assembler for decimal float support... " >&6; }
23722 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23723 $as_echo_n "(cached) " >&6
23724 else
23725 gcc_cv_as_powerpc_dfp=no
23726 if test $in_tree_gas = yes; then
23727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23728 then gcc_cv_as_powerpc_dfp=yes
23730 elif test x$gcc_cv_as != x; then
23731 echo "$conftest_s" > conftest.s
23732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23734 (eval $ac_try) 2>&5
23735 ac_status=$?
23736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23737 test $ac_status = 0; }; }
23738 then
23739 gcc_cv_as_powerpc_dfp=yes
23740 else
23741 echo "configure: failed program was" >&5
23742 cat conftest.s >&5
23744 rm -f conftest.o conftest.s
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23748 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23749 if test $gcc_cv_as_powerpc_dfp = yes; then
23751 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23755 case $target in
23756 *-*-aix*) conftest_s=' .machine "pwr7"
23757 .csect .text[PR]
23758 lxvd2x 1,2,3';;
23759 *) conftest_s=' .machine power7
23760 .text
23761 lxvd2x 1,2,3';;
23762 esac
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23765 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23766 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23767 $as_echo_n "(cached) " >&6
23768 else
23769 gcc_cv_as_powerpc_vsx=no
23770 if test $in_tree_gas = yes; then
23771 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23772 then gcc_cv_as_powerpc_vsx=yes
23774 elif test x$gcc_cv_as != x; then
23775 echo "$conftest_s" > conftest.s
23776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23778 (eval $ac_try) 2>&5
23779 ac_status=$?
23780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23781 test $ac_status = 0; }; }
23782 then
23783 gcc_cv_as_powerpc_vsx=yes
23784 else
23785 echo "configure: failed program was" >&5
23786 cat conftest.s >&5
23788 rm -f conftest.o conftest.s
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23792 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23793 if test $gcc_cv_as_powerpc_vsx = yes; then
23795 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23799 case $target in
23800 *-*-aix*) conftest_s=' .machine "pwr7"
23801 .csect .text[PR]
23802 popcntd 3,3';;
23803 *) conftest_s=' .machine power7
23804 .text
23805 popcntd 3,3';;
23806 esac
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23809 $as_echo_n "checking assembler for popcntd support... " >&6; }
23810 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23811 $as_echo_n "(cached) " >&6
23812 else
23813 gcc_cv_as_powerpc_popcntd=no
23814 if test $in_tree_gas = yes; then
23815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23816 then gcc_cv_as_powerpc_popcntd=yes
23818 elif test x$gcc_cv_as != x; then
23819 echo "$conftest_s" > conftest.s
23820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23822 (eval $ac_try) 2>&5
23823 ac_status=$?
23824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23825 test $ac_status = 0; }; }
23826 then
23827 gcc_cv_as_powerpc_popcntd=yes
23828 else
23829 echo "configure: failed program was" >&5
23830 cat conftest.s >&5
23832 rm -f conftest.o conftest.s
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23836 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23837 if test $gcc_cv_as_powerpc_popcntd = yes; then
23839 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23843 case $target in
23844 *-*-aix*) conftest_s=' .csect .text[PR]
23845 lwsync';;
23846 *) conftest_s=' .text
23847 lwsync';;
23848 esac
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23851 $as_echo_n "checking assembler for lwsync support... " >&6; }
23852 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23853 $as_echo_n "(cached) " >&6
23854 else
23855 gcc_cv_as_powerpc_lwsync=no
23856 if test $in_tree_gas = yes; then
23857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23858 then gcc_cv_as_powerpc_lwsync=yes
23860 elif test x$gcc_cv_as != x; then
23861 echo "$conftest_s" > conftest.s
23862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23864 (eval $ac_try) 2>&5
23865 ac_status=$?
23866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23867 test $ac_status = 0; }; }
23868 then
23869 gcc_cv_as_powerpc_lwsync=yes
23870 else
23871 echo "configure: failed program was" >&5
23872 cat conftest.s >&5
23874 rm -f conftest.o conftest.s
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23878 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23879 if test $gcc_cv_as_powerpc_lwsync = yes; then
23881 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23885 case $target in
23886 *-*-aix*) conftest_s=' .machine "476"
23887 .csect .text[PR]
23888 dci 0';;
23889 *) conftest_s=' .machine "476"
23890 .text
23891 dci 0';;
23892 esac
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23895 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23896 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23897 $as_echo_n "(cached) " >&6
23898 else
23899 gcc_cv_as_powerpc_dci=no
23900 if test $in_tree_gas = yes; then
23901 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23902 then gcc_cv_as_powerpc_dci=yes
23904 elif test x$gcc_cv_as != x; then
23905 echo "$conftest_s" > conftest.s
23906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23908 (eval $ac_try) 2>&5
23909 ac_status=$?
23910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23911 test $ac_status = 0; }; }
23912 then
23913 gcc_cv_as_powerpc_dci=yes
23914 else
23915 echo "configure: failed program was" >&5
23916 cat conftest.s >&5
23918 rm -f conftest.o conftest.s
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23922 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23923 if test $gcc_cv_as_powerpc_dci = yes; then
23925 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23930 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23931 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23932 $as_echo_n "(cached) " >&6
23933 else
23934 gcc_cv_as_powerpc_gnu_attribute=no
23935 if test $in_tree_gas = yes; then
23936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23937 then gcc_cv_as_powerpc_gnu_attribute=yes
23939 elif test x$gcc_cv_as != x; then
23940 echo '.gnu_attribute 4,1' > conftest.s
23941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23943 (eval $ac_try) 2>&5
23944 ac_status=$?
23945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23946 test $ac_status = 0; }; }
23947 then
23948 gcc_cv_as_powerpc_gnu_attribute=yes
23949 else
23950 echo "configure: failed program was" >&5
23951 cat conftest.s >&5
23953 rm -f conftest.o conftest.s
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23957 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23958 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23960 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23965 $as_echo_n "checking assembler for tls marker support... " >&6; }
23966 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23967 $as_echo_n "(cached) " >&6
23968 else
23969 gcc_cv_as_powerpc_tls_markers=no
23970 if test $in_tree_gas = yes; then
23971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23972 then gcc_cv_as_powerpc_tls_markers=yes
23974 elif test x$gcc_cv_as != x; then
23975 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23978 (eval $ac_try) 2>&5
23979 ac_status=$?
23980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23981 test $ac_status = 0; }; }
23982 then
23983 gcc_cv_as_powerpc_tls_markers=yes
23984 else
23985 echo "configure: failed program was" >&5
23986 cat conftest.s >&5
23988 rm -f conftest.o conftest.s
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23992 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23993 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23995 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23999 case $target in
24000 *-*-aix*)
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24002 $as_echo_n "checking assembler for .ref support... " >&6; }
24003 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24004 $as_echo_n "(cached) " >&6
24005 else
24006 gcc_cv_as_aix_ref=no
24007 if test $in_tree_gas = yes; then
24008 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24009 then :
24011 elif test x$gcc_cv_as != x; then
24012 echo ' .csect stuff[rw]
24013 stuff:
24014 .long 1
24015 .extern sym
24016 .ref sym
24017 ' > conftest.s
24018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24020 (eval $ac_try) 2>&5
24021 ac_status=$?
24022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24023 test $ac_status = 0; }; }
24024 then
24025 gcc_cv_as_aix_ref=yes
24026 else
24027 echo "configure: failed program was" >&5
24028 cat conftest.s >&5
24030 rm -f conftest.o conftest.s
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24034 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24035 if test $gcc_cv_as_aix_ref = yes; then
24037 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24041 esac
24044 mips*-*-*)
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24046 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24047 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24048 $as_echo_n "(cached) " >&6
24049 else
24050 gcc_cv_as_mips_explicit_relocs=no
24051 if test $in_tree_gas = yes; then
24052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24053 then gcc_cv_as_mips_explicit_relocs=yes
24055 elif test x$gcc_cv_as != x; then
24056 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24059 (eval $ac_try) 2>&5
24060 ac_status=$?
24061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24062 test $ac_status = 0; }; }
24063 then
24064 gcc_cv_as_mips_explicit_relocs=yes
24065 else
24066 echo "configure: failed program was" >&5
24067 cat conftest.s >&5
24069 rm -f conftest.o conftest.s
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24073 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24074 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24075 if test x$target_cpu_default = x
24076 then target_cpu_default=MASK_EXPLICIT_RELOCS
24077 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24081 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24082 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24083 $as_echo_n "(cached) " >&6
24084 else
24085 gcc_cv_as_mips_no_shared=no
24086 if test $in_tree_gas = yes; then
24087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24088 then gcc_cv_as_mips_no_shared=yes
24090 elif test x$gcc_cv_as != x; then
24091 echo 'nop' > conftest.s
24092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24094 (eval $ac_try) 2>&5
24095 ac_status=$?
24096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24097 test $ac_status = 0; }; }
24098 then
24099 gcc_cv_as_mips_no_shared=yes
24100 else
24101 echo "configure: failed program was" >&5
24102 cat conftest.s >&5
24104 rm -f conftest.o conftest.s
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24108 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24109 if test $gcc_cv_as_mips_no_shared = yes; then
24111 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24116 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24117 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24118 $as_echo_n "(cached) " >&6
24119 else
24120 gcc_cv_as_mips_gnu_attribute=no
24121 if test $in_tree_gas = yes; then
24122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24123 then gcc_cv_as_mips_gnu_attribute=yes
24125 elif test x$gcc_cv_as != x; then
24126 echo '.gnu_attribute 4,1' > conftest.s
24127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_mips_gnu_attribute=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_mips_gnu_attribute" >&5
24143 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24144 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24146 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24151 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24152 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24153 $as_echo_n "(cached) " >&6
24154 else
24155 gcc_cv_as_mips_dtprelword=no
24156 if test $in_tree_gas = yes; then
24157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24158 then gcc_cv_as_mips_dtprelword=yes
24160 elif test x$gcc_cv_as != x; then
24161 echo '.section .tdata,"awT",@progbits
24163 .word 2
24164 .text
24165 .dtprelword x+0x8000' > conftest.s
24166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24172 then
24173 gcc_cv_as_mips_dtprelword=yes
24174 else
24175 echo "configure: failed program was" >&5
24176 cat conftest.s >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24182 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24183 if test $gcc_cv_as_mips_dtprelword = yes; then
24185 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24190 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24191 gcc_cv_as_ld_jalr_reloc=no
24192 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24193 if test $in_tree_ld = yes ; then
24194 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 \
24195 && test $in_tree_ld_is_elf = yes; then
24196 gcc_cv_as_ld_jalr_reloc=yes
24198 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24199 echo ' .ent x' > conftest.s
24200 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24201 echo ' ld $25,%call16(y)($28)' >> conftest.s
24202 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24203 echo '1: jalr $25' >> conftest.s
24204 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24205 echo '1: jalr $25' >> conftest.s
24206 echo ' .end x' >> conftest.s
24207 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24208 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24209 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24210 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24211 gcc_cv_as_ld_jalr_reloc=yes
24214 rm -f conftest.*
24217 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24218 if test x$target_cpu_default = x; then
24219 target_cpu_default=MASK_RELAX_PIC_CALLS
24220 else
24221 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24225 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24228 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24229 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24230 $as_echo_n "(cached) " >&6
24231 else
24232 gcc_cv_ld_mips_personality_relaxation=no
24233 if test $in_tree_ld = yes ; then
24234 if test "$gcc_cv_gld_major_version" -eq 2 \
24235 -a "$gcc_cv_gld_minor_version" -ge 21 \
24236 -o "$gcc_cv_gld_major_version" -gt 2; then
24237 gcc_cv_ld_mips_personality_relaxation=yes
24239 elif test x$gcc_cv_as != x \
24240 -a x$gcc_cv_ld != x \
24241 -a x$gcc_cv_readelf != x ; then
24242 cat > conftest.s <<EOF
24243 .cfi_startproc
24244 .cfi_personality 0x80,indirect_ptr
24245 .ent test
24246 test:
24248 .end test
24249 .cfi_endproc
24251 .section .data,"aw",@progbits
24252 indirect_ptr:
24253 .dc.a personality
24255 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24256 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24257 if $gcc_cv_readelf -d conftest 2>&1 \
24258 | grep TEXTREL > /dev/null 2>&1; then
24260 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24261 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24263 else
24264 gcc_cv_ld_mips_personality_relaxation=yes
24268 rm -f conftest.s conftest.o conftest
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24271 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24272 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24274 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24278 esac
24280 # Mips and HP-UX need the GNU assembler.
24281 # Linux on IA64 might be able to use the Intel assembler.
24283 case "$target" in
24284 mips*-*-* | *-*-hpux* )
24285 if test x$gas_flag = xyes \
24286 || test x"$host" != x"$build" \
24287 || test ! -x "$gcc_cv_as" \
24288 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24290 else
24291 echo "*** This configuration requires the GNU assembler" >&2
24292 exit 1
24295 esac
24297 # ??? Not all targets support dwarf2 debug_line, even within a version
24298 # of gas. Moreover, we need to emit a valid instruction to trigger any
24299 # info to the output file. So, as supported targets are added to gas 2.11,
24300 # add some instruction here to (also) show we expect this might work.
24301 # ??? Once 2.11 is released, probably need to add first known working
24302 # version to the per-target configury.
24303 case "$target" in
24304 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24305 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24306 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24307 | spu-*-* | fido*-*-* | m32c-*-*)
24308 insn="nop"
24310 ia64*-*-* | s390*-*-*)
24311 insn="nop 0"
24313 mmix-*-*)
24314 insn="swym 0"
24316 esac
24317 if test x"$insn" != x; then
24318 conftest_s="\
24319 .file 1 \"conftest.s\"
24320 .loc 1 3 0
24321 $insn"
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24323 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24324 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24326 else
24327 gcc_cv_as_dwarf2_debug_line=no
24328 if test $in_tree_gas = yes; then
24329 if test $in_tree_gas_is_elf = yes \
24330 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24331 then gcc_cv_as_dwarf2_debug_line=yes
24333 elif test x$gcc_cv_as != x; then
24334 echo "$conftest_s" > conftest.s
24335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; }
24341 then
24342 if test x$gcc_cv_objdump != x \
24343 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24344 | grep debug_line > /dev/null 2>&1; then
24345 gcc_cv_as_dwarf2_debug_line=yes
24347 else
24348 echo "configure: failed program was" >&5
24349 cat conftest.s >&5
24351 rm -f conftest.o conftest.s
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24355 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24358 # The .debug_line file table must be in the exact order that
24359 # we specified the files, since these indices are also used
24360 # by DW_AT_decl_file. Approximate this test by testing if
24361 # the assembler bitches if the same index is assigned twice.
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24363 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24364 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24365 $as_echo_n "(cached) " >&6
24366 else
24367 gcc_cv_as_dwarf2_file_buggy=no
24368 if test x$gcc_cv_as != x; then
24369 echo ' .file 1 "foo.s"
24370 .file 1 "bar.s"' > conftest.s
24371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24376 test $ac_status = 0; }; }
24377 then
24378 gcc_cv_as_dwarf2_file_buggy=yes
24379 else
24380 echo "configure: failed program was" >&5
24381 cat conftest.s >&5
24383 rm -f conftest.o conftest.s
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24387 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24390 if test $gcc_cv_as_dwarf2_debug_line = yes \
24391 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24393 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24398 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24399 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24400 $as_echo_n "(cached) " >&6
24401 else
24402 gcc_cv_as_gdwarf2_flag=no
24403 if test $in_tree_gas = yes; then
24404 if test $in_tree_gas_is_elf = yes \
24405 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24406 then gcc_cv_as_gdwarf2_flag=yes
24408 elif test x$gcc_cv_as != x; then
24409 echo "$insn" > conftest.s
24410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24412 (eval $ac_try) 2>&5
24413 ac_status=$?
24414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24415 test $ac_status = 0; }; }
24416 then
24417 gcc_cv_as_gdwarf2_flag=yes
24418 else
24419 echo "configure: failed program was" >&5
24420 cat conftest.s >&5
24422 rm -f conftest.o conftest.s
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24426 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24427 if test $gcc_cv_as_gdwarf2_flag = yes; then
24429 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24434 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24435 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24436 $as_echo_n "(cached) " >&6
24437 else
24438 gcc_cv_as_gstabs_flag=no
24439 if test $in_tree_gas = yes; then
24440 if test $in_tree_gas_is_elf = yes \
24441 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24442 then gcc_cv_as_gstabs_flag=yes
24444 elif test x$gcc_cv_as != x; then
24445 echo "$insn" > conftest.s
24446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24448 (eval $ac_try) 2>&5
24449 ac_status=$?
24450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24451 test $ac_status = 0; }; }
24452 then
24453 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24454 # and warns about it, but still exits successfully. So check for
24455 # this.
24456 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24458 (eval $ac_try) 2>&5
24459 ac_status=$?
24460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24461 test $ac_status = 0; }; }
24462 then :
24463 else gcc_cv_as_gstabs_flag=yes
24465 else
24466 echo "configure: failed program was" >&5
24467 cat conftest.s >&5
24469 rm -f conftest.o conftest.s
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24473 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24474 if test $gcc_cv_as_gstabs_flag = yes; then
24476 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24481 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24482 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24483 $as_echo_n "(cached) " >&6
24484 else
24485 gcc_cv_as_debug_prefix_map_flag=no
24486 if test $in_tree_gas = yes; then
24487 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24488 then gcc_cv_as_debug_prefix_map_flag=yes
24490 elif test x$gcc_cv_as != x; then
24491 echo "$insn" > conftest.s
24492 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24494 (eval $ac_try) 2>&5
24495 ac_status=$?
24496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24497 test $ac_status = 0; }; }
24498 then
24499 gcc_cv_as_debug_prefix_map_flag=yes
24500 else
24501 echo "configure: failed program was" >&5
24502 cat conftest.s >&5
24504 rm -f conftest.o conftest.s
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24508 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24509 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24511 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24517 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24518 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24519 $as_echo_n "(cached) " >&6
24520 else
24521 gcc_cv_as_lcomm_with_alignment=no
24522 if test x$gcc_cv_as != x; then
24523 echo '.lcomm bar,4,16' > conftest.s
24524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24530 then
24531 gcc_cv_as_lcomm_with_alignment=yes
24532 else
24533 echo "configure: failed program was" >&5
24534 cat conftest.s >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24540 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24541 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24543 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24547 # Check whether --enable-gnu-unique-object was given.
24548 if test "${enable_gnu_unique_object+set}" = set; then :
24549 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24550 yes | no) ;;
24551 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24552 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24553 esac
24554 else
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24556 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24557 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24558 $as_echo_n "(cached) " >&6
24559 else
24560 gcc_cv_as_gnu_unique_object=no
24561 if test $in_tree_gas = yes; then
24562 if test $in_tree_gas_is_elf = yes \
24563 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24564 then gcc_cv_as_gnu_unique_object=yes
24566 elif test x$gcc_cv_as != x; then
24567 echo '.type foo, @gnu_unique_object' > conftest.s
24568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24570 (eval $ac_try) 2>&5
24571 ac_status=$?
24572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24573 test $ac_status = 0; }; }
24574 then
24575 gcc_cv_as_gnu_unique_object=yes
24576 else
24577 echo "configure: failed program was" >&5
24578 cat conftest.s >&5
24580 rm -f conftest.o conftest.s
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24584 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24585 if test $gcc_cv_as_gnu_unique_object = yes; then
24586 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24587 if test x$host = x$build -a x$host = x$target &&
24588 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24589 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24590 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24591 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24592 if test "$glibcnum" -ge 2011 ; then
24593 enable_gnu_unique_object=yes
24599 if test x$enable_gnu_unique_object = xyes; then
24601 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24606 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24607 if test "${gcc_cv_as_line_zero+set}" = set; then :
24608 $as_echo_n "(cached) " >&6
24609 else
24610 gcc_cv_as_line_zero=no
24611 if test $in_tree_gas = yes; then
24612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24613 then gcc_cv_as_line_zero=yes
24615 elif test "x$gcc_cv_as" != x; then
24616 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24617 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24619 (eval $ac_try) 2>&5
24620 ac_status=$?
24621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24622 test $ac_status = 0; }; } &&
24623 test "x`cat conftest.out`" = x
24624 then
24625 gcc_cv_as_line_zero=yes
24626 else
24627 echo "configure: failed program was" >&5
24628 cat conftest.s >&5
24629 echo "configure: error output was" >&5
24630 cat conftest.out >&5
24632 rm -f conftest.o conftest.s conftest.out
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24636 $as_echo "$gcc_cv_as_line_zero" >&6; }
24637 if test "x$gcc_cv_as_line_zero" = xyes; then
24639 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24644 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24645 gcc_cv_ld_eh_frame_hdr=no
24646 if test $in_tree_ld = yes ; then
24647 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 \
24648 && test $in_tree_ld_is_elf = yes; then
24649 gcc_cv_ld_eh_frame_hdr=yes
24651 elif test x$gcc_cv_ld != x; then
24652 # Check if linker supports --eh-frame-hdr option
24653 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24654 gcc_cv_ld_eh_frame_hdr=yes
24658 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24660 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24664 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24667 $as_echo_n "checking linker position independent executable support... " >&6; }
24668 gcc_cv_ld_pie=no
24669 if test $in_tree_ld = yes ; then
24670 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 \
24671 && test $in_tree_ld_is_elf = yes; then
24672 gcc_cv_ld_pie=yes
24674 elif test x$gcc_cv_ld != x; then
24675 # Check if linker supports -pie option
24676 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24677 gcc_cv_ld_pie=yes
24680 if test x"$gcc_cv_ld_pie" = xyes; then
24682 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24686 $as_echo "$gcc_cv_ld_pie" >&6; }
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24689 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24690 gcc_cv_ld_eh_gc_sections=no
24691 if test $in_tree_ld = yes ; then
24692 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 \
24693 && test $in_tree_ld_is_elf = yes; then
24694 gcc_cv_ld_eh_gc_sections=yes
24696 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24697 cat > conftest.s <<EOF
24698 .section .text
24699 .globl _start
24700 .type _start, @function
24701 _start:
24702 .long foo
24703 .size _start, .-_start
24704 .section .text.foo,"ax",@progbits
24705 .type foo, @function
24706 foo:
24707 .long 0
24708 .size foo, .-foo
24709 .section .gcc_except_table.foo,"a",@progbits
24710 .L0:
24711 .long 0
24712 .section .eh_frame,"a",@progbits
24713 .long .L0
24715 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24716 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24717 | grep "gc-sections option ignored" > /dev/null; then
24718 gcc_cv_ld_eh_gc_sections=no
24719 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24720 | grep gcc_except_table > /dev/null; then
24721 gcc_cv_ld_eh_gc_sections=yes
24722 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24723 if test x$gcc_cv_as_comdat_group != xyes; then
24724 gcc_cv_ld_eh_gc_sections=no
24725 cat > conftest.s <<EOF
24726 .section .text
24727 .globl _start
24728 .type _start, @function
24729 _start:
24730 .long foo
24731 .size _start, .-_start
24732 .section .gnu.linkonce.t.foo,"ax",@progbits
24733 .type foo, @function
24734 foo:
24735 .long 0
24736 .size foo, .-foo
24737 .section .gcc_except_table.foo,"a",@progbits
24738 .L0:
24739 .long 0
24740 .section .eh_frame,"a",@progbits
24741 .long .L0
24743 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24744 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24745 | grep "gc-sections option ignored" > /dev/null; then
24746 gcc_cv_ld_eh_gc_sections=no
24747 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24748 | grep gcc_except_table > /dev/null; then
24749 gcc_cv_ld_eh_gc_sections=yes
24755 rm -f conftest.s conftest.o conftest
24757 case "$target" in
24758 hppa*-*-linux*)
24759 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24760 gcc_cv_ld_eh_gc_sections=no
24762 esac
24763 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24765 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24769 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24771 # --------
24772 # UNSORTED
24773 # --------
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24776 $as_echo_n "checking linker --as-needed support... " >&6; }
24777 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24778 $as_echo_n "(cached) " >&6
24779 else
24780 gcc_cv_ld_as_needed=no
24781 if test $in_tree_ld = yes ; then
24782 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 \
24783 && test $in_tree_ld_is_elf = yes; then
24784 gcc_cv_ld_as_needed=yes
24786 elif test x$gcc_cv_ld != x; then
24787 # Check if linker supports --as-needed and --no-as-needed options
24788 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24789 gcc_cv_ld_as_needed=yes
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24795 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24796 if test x"$gcc_cv_ld_as_needed" = xyes; then
24798 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24802 case "$target:$tm_file" in
24803 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24805 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24806 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24808 else
24809 gcc_cv_ld_no_dot_syms=no
24810 if test $in_tree_ld = yes ; then
24811 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
24812 gcc_cv_ld_no_dot_syms=yes
24814 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24815 cat > conftest1.s <<EOF
24816 .text
24817 bl .foo
24819 cat > conftest2.s <<EOF
24820 .section ".opd","aw"
24821 .align 3
24822 .globl foo
24823 .type foo,@function
24824 foo:
24825 .quad .LEfoo,.TOC.@tocbase,0
24826 .text
24827 .LEfoo:
24829 .size foo,.-.LEfoo
24831 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24832 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24833 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24834 gcc_cv_ld_no_dot_syms=yes
24836 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24841 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24842 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24844 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24848 esac
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24851 $as_echo_n "checking linker --build-id support... " >&6; }
24852 if test "${gcc_cv_ld_buildid+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24854 else
24855 gcc_cv_ld_buildid=no
24856 if test $in_tree_ld = yes ; then
24857 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24858 "$gcc_cv_gld_minor_version" -ge 18 -o \
24859 "$gcc_cv_gld_major_version" -gt 2 \
24860 && test $in_tree_ld_is_elf = yes; then
24861 gcc_cv_ld_buildid=yes
24863 elif test x$gcc_cv_ld != x; then
24864 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24865 gcc_cv_ld_buildid=yes
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24870 $as_echo "$gcc_cv_ld_buildid" >&6; }
24871 if test x"$gcc_cv_ld_buildid" = xyes; then
24873 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24877 # Check whether --enable-linker-build-id was given.
24878 if test "${enable_linker_build_id+set}" = set; then :
24879 enableval=$enable_linker_build_id;
24880 else
24881 enable_linker_build_id=no
24885 if test x"$enable_linker_build_id" = xyes; then
24886 if test x"$gcc_cv_ld_buildid" = xyes; then
24888 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24890 else
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24892 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24896 # In binutils 2.21, GNU ld gained support for new emulations fully
24897 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
24899 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
24900 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
24901 $as_echo_n "(cached) " >&6
24902 else
24903 gcc_cv_ld_sol2_emulation=no
24904 if test $in_tree_ld = yes ; then
24905 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24906 "$gcc_cv_gld_minor_version" -ge 21 -o \
24907 "$gcc_cv_gld_major_version" -gt 2 \
24908 && test $in_tree_ld_is_elf = yes; then
24909 gcc_cv_ld_sol2_emulation=yes
24911 elif test x$gcc_cv_ld != x; then
24912 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
24913 grep _sol2 > /dev/null; then
24914 gcc_cv_ld_sol2_emulation=yes
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
24919 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
24920 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
24922 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24927 $as_echo_n "checking linker --sysroot support... " >&6; }
24928 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24929 $as_echo_n "(cached) " >&6
24930 else
24931 gcc_cv_ld_sysroot=no
24932 if test $in_tree_ld = yes ; then
24933 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
24934 gcc_cv_ld_sysroot=yes
24936 elif test x$gcc_cv_ld != x; then
24937 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24938 gcc_cv_ld_sysroot=yes
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24943 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24944 if test x"$gcc_cv_ld_sysroot" = xyes; then
24946 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24950 if test x$with_sysroot = x && test x$host = x$target \
24951 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24952 && test "$prefix" != "NONE"; then
24954 cat >>confdefs.h <<_ACEOF
24955 #define PREFIX_INCLUDE_DIR "$prefix/include"
24956 _ACEOF
24960 # Test for stack protector support in target C library.
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24962 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24963 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24964 $as_echo_n "(cached) " >&6
24965 else
24966 gcc_cv_libc_provides_ssp=no
24967 case "$target" in
24968 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24969 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24970 if test "x$with_headers" != x; then
24971 glibc_header_dir=$with_headers
24972 elif test "x$with_sysroot" = x; then
24973 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24974 elif test "x$with_build_sysroot" != "x"; then
24975 glibc_header_dir="${with_build_sysroot}/usr/include"
24976 elif test "x$with_sysroot" = xyes; then
24977 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24978 else
24979 glibc_header_dir="${with_sysroot}/usr/include"
24981 else
24982 glibc_header_dir=/usr/include
24984 # glibc 2.4 and later provides __stack_chk_fail and
24985 # either __stack_chk_guard, or TLS access to stack guard canary.
24986 if test -f $glibc_header_dir/features.h \
24987 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24988 $glibc_header_dir/features.h > /dev/null; then
24989 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24990 $glibc_header_dir/features.h > /dev/null; then
24991 gcc_cv_libc_provides_ssp=yes
24992 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24993 $glibc_header_dir/features.h > /dev/null \
24994 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24995 $glibc_header_dir/features.h > /dev/null; then
24996 gcc_cv_libc_provides_ssp=yes
24997 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24998 $glibc_header_dir/features.h > /dev/null && \
24999 test -f $glibc_header_dir/bits/uClibc_config.h && \
25000 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25001 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25002 gcc_cv_libc_provides_ssp=yes
25006 *-*-gnu*)
25007 # Avoid complicated tests (see
25008 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25009 # simply assert that glibc does provide this, which is true for all
25010 # realistically usable GNU/Hurd configurations.
25011 gcc_cv_libc_provides_ssp=yes;;
25012 *-*-darwin* | *-*-freebsd*)
25013 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25014 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25015 gcc_cv_libc_provides_ssp=yes
25016 else
25017 echo "no __stack_chk_fail on this target"
25021 *) gcc_cv_libc_provides_ssp=no ;;
25022 esac
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25025 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25027 if test x$gcc_cv_libc_provides_ssp = xyes; then
25029 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25033 # Check if TFmode long double should be used by default or not.
25034 # Some glibc targets used DFmode long double, but with glibc 2.4
25035 # and later they can use TFmode.
25036 case "$target" in
25037 powerpc*-*-linux* | \
25038 powerpc*-*-gnu* | \
25039 sparc*-*-linux* | \
25040 s390*-*-linux* | \
25041 alpha*-*-linux*)
25043 # Check whether --with-long-double-128 was given.
25044 if test "${with_long_double_128+set}" = set; then :
25045 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25046 else
25047 gcc_cv_target_ldbl128=no
25048 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25049 if test "x$with_sysroot" = x; then
25050 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25051 elif test "x$with_build_sysroot" != "x"; then
25052 glibc_header_dir="${with_build_sysroot}/usr/include"
25053 elif test "x$with_sysroot" = xyes; then
25054 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25055 else
25056 glibc_header_dir="${with_sysroot}/usr/include"
25058 else
25059 glibc_header_dir=/usr/include
25061 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25062 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25063 && gcc_cv_target_ldbl128=yes
25068 esac
25069 if test x$gcc_cv_target_ldbl128 = xyes; then
25071 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25075 # Find out what GC implementation we want, or may, use.
25077 # Check whether --with-gc was given.
25078 if test "${with_gc+set}" = set; then :
25079 withval=$with_gc; case "$withval" in
25080 page)
25081 GGC=ggc-$withval
25083 zone)
25084 GGC=ggc-$withval
25086 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25090 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25092 esac
25093 else
25094 GGC=ggc-page
25098 echo "Using $GGC for garbage collection."
25100 # Libraries to use on the host. This will normally be set by the top
25101 # level Makefile. Here we simply capture the value for our Makefile.
25102 if test -z "${HOST_LIBS+set}"; then
25103 HOST_LIBS=
25107 # Use the system's zlib library.
25108 zlibdir=-L../zlib
25109 zlibinc="-I\$(srcdir)/../zlib"
25111 # Check whether --with-system-zlib was given.
25112 if test "${with_system_zlib+set}" = set; then :
25113 withval=$with_system_zlib; zlibdir=
25114 zlibinc=
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25123 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25124 # Check whether --enable-maintainer-mode was given.
25125 if test "${enable_maintainer_mode+set}" = set; then :
25126 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25127 else
25128 maintainer_mode=no
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25133 $as_echo "$maintainer_mode" >&6; }
25135 if test "$maintainer_mode" = "yes"; then
25136 MAINT=''
25137 else
25138 MAINT='#'
25141 # --------------
25142 # Language hooks
25143 # --------------
25145 # Make empty files to contain the specs and options for each language.
25146 # Then add #include lines to for a compiler that has specs and/or options.
25148 subdirs=
25149 lang_opt_files=
25150 lang_specs_files=
25151 lang_tree_files=
25152 # These (without "all_") are set in each config-lang.in.
25153 # `language' must be a single word so is spelled singularly.
25154 all_languages=
25155 all_compilers=
25156 all_outputs='Makefile gccbug'
25157 # List of language makefile fragments.
25158 all_lang_makefrags=
25159 # Additional files for gengtype
25160 all_gtfiles="$target_gtfiles"
25162 # These are the languages that are set in --enable-languages,
25163 # and are available in the GCC tree.
25164 all_selected_languages=
25166 # Add the language fragments.
25167 # Languages are added via two mechanisms. Some information must be
25168 # recorded in makefile variables, these are defined in config-lang.in.
25169 # We accumulate them and plug them into the main Makefile.
25170 # The other mechanism is a set of hooks for each of the main targets
25171 # like `clean', `install', etc.
25173 language_hooks="Make-hooks"
25175 for lang in ${srcdir}/*/config-lang.in
25177 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25179 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25180 if test "x$lang_alias" = x
25181 then
25182 echo "$lang doesn't set \$language." 1>&2
25183 exit 1
25185 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25186 subdirs="$subdirs $subdir"
25188 # $gcc_subdir is where the gcc integration files are to be found
25189 # for a language, both for internal compiler purposes (compiler
25190 # sources implementing front-end to GCC tree converters), and for
25191 # build infrastructure purposes (Make-lang.in, etc.)
25193 # This will be <subdir> (relative to $srcdir) if a line like
25194 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25195 # is found in <langdir>/config-lang.in, and will remain <langdir>
25196 # otherwise.
25198 # Except for the language alias (fetched above), the regular
25199 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25200 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25201 # only this and the language alias.
25203 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25204 if [ "$gcc_subdir" = "" ]; then
25205 gcc_subdir="$subdir"
25208 case ",$enable_languages," in
25209 *,$lang_alias,*)
25210 all_selected_languages="$all_selected_languages $lang_alias"
25211 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25212 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25215 esac
25217 language=
25218 boot_language=
25219 compilers=
25220 outputs=
25221 gtfiles=
25222 subdir_requires=
25223 . ${srcdir}/$gcc_subdir/config-lang.in
25224 if test "x$language" = x
25225 then
25226 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25227 exit 1
25230 ok=:
25231 case ",$enable_languages," in
25232 *,$lang_alias,*) ;;
25234 for i in $subdir_requires; do
25235 test -f "${srcdir}/$i/config-lang.in" && continue
25236 ok=false
25237 break
25238 done
25240 esac
25241 $ok || continue
25243 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25244 if test -f $srcdir/$gcc_subdir/lang.opt; then
25245 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25247 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25248 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25250 all_languages="$all_languages $language"
25251 all_compilers="$all_compilers $compilers"
25252 all_outputs="$all_outputs $outputs"
25253 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25254 case ",$enable_languages," in
25255 *,lto,*)
25257 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25259 enable_lto=yes
25261 # LTO needs to speak the platform's object file format, and has a
25262 # number of implementations of the required binary file access APIs.
25263 # ELF is the most common, and default. We only link libelf if ELF
25264 # is indeed the selected format.
25265 LTO_BINARY_READER=${lto_binary_reader}
25266 LTO_USE_LIBELF=-lelf
25267 if test "x$lto_binary_reader" != "xlto-elf" ; then
25268 LTO_USE_LIBELF=
25273 *) ;;
25274 esac
25275 done
25277 # Pick up gtfiles for c
25278 gtfiles=
25279 . ${srcdir}/c-config-lang.in
25280 all_gtfiles="$all_gtfiles [c] $gtfiles"
25282 check_languages=
25283 for language in $all_selected_languages
25285 check_languages="$check_languages check-$language"
25286 done
25288 # We link each language in with a set of hooks, reached indirectly via
25289 # lang.${target}. Only do so for selected languages.
25291 rm -f Make-hooks
25292 touch Make-hooks
25293 target_list="all.cross start.encap rest.encap tags \
25294 install-common install-man install-info install-pdf install-html dvi \
25295 pdf html uninstall info man srcextra srcman srcinfo \
25296 mostlyclean clean distclean maintainer-clean install-plugin"
25298 for t in $target_list
25301 for lang in $all_selected_languages
25303 x="$x $lang.$t"
25304 done
25305 echo "lang.$t: $x" >> Make-hooks
25306 done
25308 # --------
25309 # UNSORTED
25310 # --------
25312 # Create .gdbinit.
25314 echo "dir ." > .gdbinit
25315 echo "dir ${srcdir}" >> .gdbinit
25316 if test x$gdb_needs_out_file_path = xyes
25317 then
25318 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25320 if test "x$subdirs" != x; then
25321 for s in $subdirs
25323 echo "dir ${srcdir}/$s" >> .gdbinit
25324 done
25326 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25328 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25332 # Find a directory in which to install a shared libgcc.
25334 # Check whether --enable-version-specific-runtime-libs was given.
25335 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25336 enableval=$enable_version_specific_runtime_libs;
25341 # Check whether --with-slibdir was given.
25342 if test "${with_slibdir+set}" = set; then :
25343 withval=$with_slibdir; slibdir="$with_slibdir"
25344 else
25345 if test "${enable_version_specific_runtime_libs+set}" = set; then
25346 slibdir='$(libsubdir)'
25347 elif test "$host" != "$target"; then
25348 slibdir='$(build_tooldir)/lib'
25349 else
25350 slibdir='$(libdir)'
25356 # Substitute configuration variables
25417 # Echo link setup.
25418 if test x${build} = x${host} ; then
25419 if test x${host} = x${target} ; then
25420 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25421 else
25422 echo "Links are now set up to build a cross-compiler" 1>&2
25423 echo " from ${host} to ${target}." 1>&2
25425 else
25426 if test x${host} = x${target} ; then
25427 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25428 echo " for ${target}." 1>&2
25429 else
25430 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25431 echo " from ${host} to ${target}." 1>&2
25443 if test "x${CLOOGLIBS}" != "x" ; then
25445 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25451 if test "x${LIBELFLIBS}" != "x" ; then
25453 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25457 # Check for plugin support
25458 # Check whether --enable-plugin was given.
25459 if test "${enable_plugin+set}" = set; then :
25460 enableval=$enable_plugin; enable_plugin=$enableval
25461 else
25462 enable_plugin=yes; default_plugin=yes
25466 pluginlibs=
25467 if test x"$enable_plugin" = x"yes"; then
25469 case "${host}" in
25470 *-*-darwin*)
25471 export_sym_check="$gcc_cv_nm -g"
25474 export_sym_check="$gcc_cv_objdump -T"
25476 esac
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25478 $as_echo_n "checking for exported symbols... " >&6; }
25479 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25480 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25481 if $export_sym_check conftest | grep foobar > /dev/null; then
25482 : # No need to use a flag
25483 else
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25485 $as_echo_n "checking for -rdynamic... " >&6; }
25486 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25487 if $export_sym_check conftest | grep foobar > /dev/null; then
25488 plugin_rdynamic=yes
25489 pluginlibs="-rdynamic"
25490 else
25491 plugin_rdynamic=no
25492 enable_plugin=no
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25495 $as_echo "$plugin_rdynamic" >&6; }
25498 # Check -ldl
25499 saved_LIBS="$LIBS"
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25501 $as_echo_n "checking for library containing dlopen... " >&6; }
25502 if test "${ac_cv_search_dlopen+set}" = set; then :
25503 $as_echo_n "(cached) " >&6
25504 else
25505 ac_func_search_save_LIBS=$LIBS
25506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25507 /* end confdefs.h. */
25509 /* Override any GCC internal prototype to avoid an error.
25510 Use char because int might match the return type of a GCC
25511 builtin and then its argument prototype would still apply. */
25512 #ifdef __cplusplus
25513 extern "C"
25514 #endif
25515 char dlopen ();
25517 main ()
25519 return dlopen ();
25521 return 0;
25523 _ACEOF
25524 for ac_lib in '' dl; do
25525 if test -z "$ac_lib"; then
25526 ac_res="none required"
25527 else
25528 ac_res=-l$ac_lib
25529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25531 if ac_fn_c_try_link "$LINENO"; then :
25532 ac_cv_search_dlopen=$ac_res
25534 rm -f core conftest.err conftest.$ac_objext \
25535 conftest$ac_exeext
25536 if test "${ac_cv_search_dlopen+set}" = set; then :
25537 break
25539 done
25540 if test "${ac_cv_search_dlopen+set}" = set; then :
25542 else
25543 ac_cv_search_dlopen=no
25545 rm conftest.$ac_ext
25546 LIBS=$ac_func_search_save_LIBS
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25549 $as_echo "$ac_cv_search_dlopen" >&6; }
25550 ac_res=$ac_cv_search_dlopen
25551 if test "$ac_res" != no; then :
25552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25556 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25557 pluginlibs="$pluginlibs -ldl"
25559 LIBS="$saved_LIBS"
25561 # Check that we can build shared objects with -fPIC -shared
25562 saved_LDFLAGS="$LDFLAGS"
25563 case "${host}" in
25564 *-*-darwin*)
25565 LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25568 LDFLAGS="$LDFLAGS -fPIC -shared"
25570 esac
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25572 $as_echo_n "checking for -fPIC -shared... " >&6; }
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h. */
25575 extern int X;
25577 main ()
25579 return X == 0;
25581 return 0;
25583 _ACEOF
25584 if ac_fn_c_try_link "$LINENO"; then :
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25586 $as_echo "yes" >&6; }; have_pic_shared=yes
25587 else
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25589 $as_echo "no" >&6; }; have_pic_shared=no
25591 rm -f core conftest.err conftest.$ac_objext \
25592 conftest$ac_exeext conftest.$ac_ext
25593 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25594 pluginlibs=
25595 enable_plugin=no
25597 LDFLAGS="$saved_LDFLAGS"
25599 # If plugin support had been requested but not available, fail.
25600 if test x"$enable_plugin" = x"no" ; then
25601 if test x"$default_plugin" != x"yes"; then
25602 as_fn_error "
25603 Building GCC with plugin support requires a host that supports
25604 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25611 if test x"$enable_plugin" = x"yes"; then
25613 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25617 # Configure the subdirectories
25618 # AC_CONFIG_SUBDIRS($subdirs)
25620 # Create the Makefile
25621 # and configure language subdirectories
25622 ac_config_files="$ac_config_files $all_outputs"
25625 ac_config_commands="$ac_config_commands default"
25627 cat >confcache <<\_ACEOF
25628 # This file is a shell script that caches the results of configure
25629 # tests run on this system so they can be shared between configure
25630 # scripts and configure runs, see configure's option --config-cache.
25631 # It is not useful on other systems. If it contains results you don't
25632 # want to keep, you may remove or edit it.
25634 # config.status only pays attention to the cache file if you give it
25635 # the --recheck option to rerun configure.
25637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25639 # following values.
25641 _ACEOF
25643 # The following way of writing the cache mishandles newlines in values,
25644 # but we know of no workaround that is simple, portable, and efficient.
25645 # So, we kill variables containing newlines.
25646 # Ultrix sh set writes to stderr and can't be redirected directly,
25647 # and sets the high bit in the cache file unless we assign to the vars.
25649 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25650 eval ac_val=\$$ac_var
25651 case $ac_val in #(
25652 *${as_nl}*)
25653 case $ac_var in #(
25654 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25655 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25656 esac
25657 case $ac_var in #(
25658 _ | IFS | as_nl) ;; #(
25659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25660 *) { eval $ac_var=; unset $ac_var;} ;;
25661 esac ;;
25662 esac
25663 done
25665 (set) 2>&1 |
25666 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25667 *${as_nl}ac_space=\ *)
25668 # `set' does not quote correctly, so add quotes: double-quote
25669 # substitution turns \\\\ into \\, and sed turns \\ into \.
25670 sed -n \
25671 "s/'/'\\\\''/g;
25672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25673 ;; #(
25675 # `set' quotes correctly as required by POSIX, so do not add quotes.
25676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25678 esac |
25679 sort
25681 sed '
25682 /^ac_cv_env_/b end
25683 t clear
25684 :clear
25685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25686 t end
25687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25688 :end' >>confcache
25689 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25690 if test -w "$cache_file"; then
25691 test "x$cache_file" != "x/dev/null" &&
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25693 $as_echo "$as_me: updating cache $cache_file" >&6;}
25694 cat confcache >$cache_file
25695 else
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25697 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25700 rm -f confcache
25702 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25703 # Let make expand exec_prefix.
25704 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25706 DEFS=-DHAVE_CONFIG_H
25708 ac_libobjs=
25709 ac_ltlibobjs=
25710 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25711 # 1. Remove the extension, and $U if already installed.
25712 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25713 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25714 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25715 # will be set to the directory where LIBOBJS objects are built.
25716 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25717 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25718 done
25719 LIBOBJS=$ac_libobjs
25721 LTLIBOBJS=$ac_ltlibobjs
25726 : ${CONFIG_STATUS=./config.status}
25727 ac_write_fail=0
25728 ac_clean_files_save=$ac_clean_files
25729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25732 as_write_fail=0
25733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25734 #! $SHELL
25735 # Generated by $as_me.
25736 # Run this file to recreate the current configuration.
25737 # Compiler output produced by configure, useful for debugging
25738 # configure, is in config.log if it exists.
25740 debug=false
25741 ac_cs_recheck=false
25742 ac_cs_silent=false
25744 SHELL=\${CONFIG_SHELL-$SHELL}
25745 export SHELL
25746 _ASEOF
25747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25748 ## -------------------- ##
25749 ## M4sh Initialization. ##
25750 ## -------------------- ##
25752 # Be more Bourne compatible
25753 DUALCASE=1; export DUALCASE # for MKS sh
25754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25755 emulate sh
25756 NULLCMD=:
25757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25758 # is contrary to our usage. Disable this feature.
25759 alias -g '${1+"$@"}'='"$@"'
25760 setopt NO_GLOB_SUBST
25761 else
25762 case `(set -o) 2>/dev/null` in #(
25763 *posix*) :
25764 set -o posix ;; #(
25765 *) :
25767 esac
25771 as_nl='
25773 export as_nl
25774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25778 # Prefer a ksh shell builtin over an external printf program on Solaris,
25779 # but without wasting forks for bash or zsh.
25780 if test -z "$BASH_VERSION$ZSH_VERSION" \
25781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25782 as_echo='print -r --'
25783 as_echo_n='print -rn --'
25784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25785 as_echo='printf %s\n'
25786 as_echo_n='printf %s'
25787 else
25788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25789 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25790 as_echo_n='/usr/ucb/echo -n'
25791 else
25792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25793 as_echo_n_body='eval
25794 arg=$1;
25795 case $arg in #(
25796 *"$as_nl"*)
25797 expr "X$arg" : "X\\(.*\\)$as_nl";
25798 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25799 esac;
25800 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25802 export as_echo_n_body
25803 as_echo_n='sh -c $as_echo_n_body as_echo'
25805 export as_echo_body
25806 as_echo='sh -c $as_echo_body as_echo'
25809 # The user is always right.
25810 if test "${PATH_SEPARATOR+set}" != set; then
25811 PATH_SEPARATOR=:
25812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25813 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25814 PATH_SEPARATOR=';'
25819 # IFS
25820 # We need space, tab and new line, in precisely that order. Quoting is
25821 # there to prevent editors from complaining about space-tab.
25822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25823 # splitting by setting IFS to empty value.)
25824 IFS=" "" $as_nl"
25826 # Find who we are. Look in the path if we contain no directory separator.
25827 case $0 in #((
25828 *[\\/]* ) as_myself=$0 ;;
25829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25830 for as_dir in $PATH
25832 IFS=$as_save_IFS
25833 test -z "$as_dir" && as_dir=.
25834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25835 done
25836 IFS=$as_save_IFS
25839 esac
25840 # We did not find ourselves, most probably we were run as `sh COMMAND'
25841 # in which case we are not to be found in the path.
25842 if test "x$as_myself" = x; then
25843 as_myself=$0
25845 if test ! -f "$as_myself"; then
25846 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25847 exit 1
25850 # Unset variables that we do not need and which cause bugs (e.g. in
25851 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25852 # suppresses any "Segmentation fault" message there. '((' could
25853 # trigger a bug in pdksh 5.2.14.
25854 for as_var in BASH_ENV ENV MAIL MAILPATH
25855 do eval test x\${$as_var+set} = xset \
25856 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25857 done
25858 PS1='$ '
25859 PS2='> '
25860 PS4='+ '
25862 # NLS nuisances.
25863 LC_ALL=C
25864 export LC_ALL
25865 LANGUAGE=C
25866 export LANGUAGE
25868 # CDPATH.
25869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25872 # as_fn_error ERROR [LINENO LOG_FD]
25873 # ---------------------------------
25874 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25875 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25876 # script with status $?, using 1 if that was 0.
25877 as_fn_error ()
25879 as_status=$?; test $as_status -eq 0 && as_status=1
25880 if test "$3"; then
25881 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25882 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25884 $as_echo "$as_me: error: $1" >&2
25885 as_fn_exit $as_status
25886 } # as_fn_error
25889 # as_fn_set_status STATUS
25890 # -----------------------
25891 # Set $? to STATUS, without forking.
25892 as_fn_set_status ()
25894 return $1
25895 } # as_fn_set_status
25897 # as_fn_exit STATUS
25898 # -----------------
25899 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25900 as_fn_exit ()
25902 set +e
25903 as_fn_set_status $1
25904 exit $1
25905 } # as_fn_exit
25907 # as_fn_unset VAR
25908 # ---------------
25909 # Portably unset VAR.
25910 as_fn_unset ()
25912 { eval $1=; unset $1;}
25914 as_unset=as_fn_unset
25915 # as_fn_append VAR VALUE
25916 # ----------------------
25917 # Append the text in VALUE to the end of the definition contained in VAR. Take
25918 # advantage of any shell optimizations that allow amortized linear growth over
25919 # repeated appends, instead of the typical quadratic growth present in naive
25920 # implementations.
25921 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25922 eval 'as_fn_append ()
25924 eval $1+=\$2
25926 else
25927 as_fn_append ()
25929 eval $1=\$$1\$2
25931 fi # as_fn_append
25933 # as_fn_arith ARG...
25934 # ------------------
25935 # Perform arithmetic evaluation on the ARGs, and store the result in the
25936 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25937 # must be portable across $(()) and expr.
25938 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25939 eval 'as_fn_arith ()
25941 as_val=$(( $* ))
25943 else
25944 as_fn_arith ()
25946 as_val=`expr "$@" || test $? -eq 1`
25948 fi # as_fn_arith
25951 if expr a : '\(a\)' >/dev/null 2>&1 &&
25952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25953 as_expr=expr
25954 else
25955 as_expr=false
25958 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25959 as_basename=basename
25960 else
25961 as_basename=false
25964 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25965 as_dirname=dirname
25966 else
25967 as_dirname=false
25970 as_me=`$as_basename -- "$0" ||
25971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25972 X"$0" : 'X\(//\)$' \| \
25973 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25974 $as_echo X/"$0" |
25975 sed '/^.*\/\([^/][^/]*\)\/*$/{
25976 s//\1/
25979 /^X\/\(\/\/\)$/{
25980 s//\1/
25983 /^X\/\(\/\).*/{
25984 s//\1/
25987 s/.*/./; q'`
25989 # Avoid depending upon Character Ranges.
25990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25993 as_cr_digits='0123456789'
25994 as_cr_alnum=$as_cr_Letters$as_cr_digits
25996 ECHO_C= ECHO_N= ECHO_T=
25997 case `echo -n x` in #(((((
25998 -n*)
25999 case `echo 'xy\c'` in
26000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26001 xy) ECHO_C='\c';;
26002 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26003 ECHO_T=' ';;
26004 esac;;
26006 ECHO_N='-n';;
26007 esac
26009 rm -f conf$$ conf$$.exe conf$$.file
26010 if test -d conf$$.dir; then
26011 rm -f conf$$.dir/conf$$.file
26012 else
26013 rm -f conf$$.dir
26014 mkdir conf$$.dir 2>/dev/null
26016 if (echo >conf$$.file) 2>/dev/null; then
26017 if ln -s conf$$.file conf$$ 2>/dev/null; then
26018 as_ln_s='ln -s'
26019 # ... but there are two gotchas:
26020 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26021 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26022 # In both cases, we have to default to `cp -p'.
26023 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26024 as_ln_s='cp -p'
26025 elif ln conf$$.file conf$$ 2>/dev/null; then
26026 as_ln_s=ln
26027 else
26028 as_ln_s='cp -p'
26030 else
26031 as_ln_s='cp -p'
26033 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26034 rmdir conf$$.dir 2>/dev/null
26037 # as_fn_mkdir_p
26038 # -------------
26039 # Create "$as_dir" as a directory, including parents if necessary.
26040 as_fn_mkdir_p ()
26043 case $as_dir in #(
26044 -*) as_dir=./$as_dir;;
26045 esac
26046 test -d "$as_dir" || eval $as_mkdir_p || {
26047 as_dirs=
26048 while :; do
26049 case $as_dir in #(
26050 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26051 *) as_qdir=$as_dir;;
26052 esac
26053 as_dirs="'$as_qdir' $as_dirs"
26054 as_dir=`$as_dirname -- "$as_dir" ||
26055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26056 X"$as_dir" : 'X\(//\)[^/]' \| \
26057 X"$as_dir" : 'X\(//\)$' \| \
26058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26059 $as_echo X"$as_dir" |
26060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26061 s//\1/
26064 /^X\(\/\/\)[^/].*/{
26065 s//\1/
26068 /^X\(\/\/\)$/{
26069 s//\1/
26072 /^X\(\/\).*/{
26073 s//\1/
26076 s/.*/./; q'`
26077 test -d "$as_dir" && break
26078 done
26079 test -z "$as_dirs" || eval "mkdir $as_dirs"
26080 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26083 } # as_fn_mkdir_p
26084 if mkdir -p . 2>/dev/null; then
26085 as_mkdir_p='mkdir -p "$as_dir"'
26086 else
26087 test -d ./-p && rmdir ./-p
26088 as_mkdir_p=false
26091 if test -x / >/dev/null 2>&1; then
26092 as_test_x='test -x'
26093 else
26094 if ls -dL / >/dev/null 2>&1; then
26095 as_ls_L_option=L
26096 else
26097 as_ls_L_option=
26099 as_test_x='
26100 eval sh -c '\''
26101 if test -d "$1"; then
26102 test -d "$1/.";
26103 else
26104 case $1 in #(
26105 -*)set "./$1";;
26106 esac;
26107 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26108 ???[sx]*):;;*)false;;esac;fi
26109 '\'' sh
26112 as_executable_p=$as_test_x
26114 # Sed expression to map a string onto a valid CPP name.
26115 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26117 # Sed expression to map a string onto a valid variable name.
26118 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26121 exec 6>&1
26122 ## ----------------------------------- ##
26123 ## Main body of $CONFIG_STATUS script. ##
26124 ## ----------------------------------- ##
26125 _ASEOF
26126 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26129 # Save the log message, to keep $0 and so on meaningful, and to
26130 # report actual input values of CONFIG_FILES etc. instead of their
26131 # values after options handling.
26132 ac_log="
26133 This file was extended by $as_me, which was
26134 generated by GNU Autoconf 2.64. Invocation command line was
26136 CONFIG_FILES = $CONFIG_FILES
26137 CONFIG_HEADERS = $CONFIG_HEADERS
26138 CONFIG_LINKS = $CONFIG_LINKS
26139 CONFIG_COMMANDS = $CONFIG_COMMANDS
26140 $ $0 $@
26142 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26145 _ACEOF
26147 case $ac_config_files in *"
26148 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26149 esac
26151 case $ac_config_headers in *"
26152 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26153 esac
26156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26157 # Files that config.status was made for.
26158 config_files="$ac_config_files"
26159 config_headers="$ac_config_headers"
26160 config_commands="$ac_config_commands"
26162 _ACEOF
26164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26165 ac_cs_usage="\
26166 \`$as_me' instantiates files and other configuration actions
26167 from templates according to the current configuration. Unless the files
26168 and actions are specified as TAGs, all are instantiated by default.
26170 Usage: $0 [OPTION]... [TAG]...
26172 -h, --help print this help, then exit
26173 -V, --version print version number and configuration settings, then exit
26174 -q, --quiet, --silent
26175 do not print progress messages
26176 -d, --debug don't remove temporary files
26177 --recheck update $as_me by reconfiguring in the same conditions
26178 --file=FILE[:TEMPLATE]
26179 instantiate the configuration file FILE
26180 --header=FILE[:TEMPLATE]
26181 instantiate the configuration header FILE
26183 Configuration files:
26184 $config_files
26186 Configuration headers:
26187 $config_headers
26189 Configuration commands:
26190 $config_commands
26192 Report bugs to the package provider."
26194 _ACEOF
26195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26196 ac_cs_version="\\
26197 config.status
26198 configured by $0, generated by GNU Autoconf 2.64,
26199 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26201 Copyright (C) 2009 Free Software Foundation, Inc.
26202 This config.status script is free software; the Free Software Foundation
26203 gives unlimited permission to copy, distribute and modify it."
26205 ac_pwd='$ac_pwd'
26206 srcdir='$srcdir'
26207 AWK='$AWK'
26208 test -n "\$AWK" || AWK=awk
26209 _ACEOF
26211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26212 # The default lists apply if the user does not specify any file.
26213 ac_need_defaults=:
26214 while test $# != 0
26216 case $1 in
26217 --*=*)
26218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26220 ac_shift=:
26223 ac_option=$1
26224 ac_optarg=$2
26225 ac_shift=shift
26227 esac
26229 case $ac_option in
26230 # Handling of the options.
26231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26232 ac_cs_recheck=: ;;
26233 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26234 $as_echo "$ac_cs_version"; exit ;;
26235 --debug | --debu | --deb | --de | --d | -d )
26236 debug=: ;;
26237 --file | --fil | --fi | --f )
26238 $ac_shift
26239 case $ac_optarg in
26240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26241 esac
26242 as_fn_append CONFIG_FILES " '$ac_optarg'"
26243 ac_need_defaults=false;;
26244 --header | --heade | --head | --hea )
26245 $ac_shift
26246 case $ac_optarg in
26247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26248 esac
26249 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26250 ac_need_defaults=false;;
26251 --he | --h)
26252 # Conflict between --help and --header
26253 as_fn_error "ambiguous option: \`$1'
26254 Try \`$0 --help' for more information.";;
26255 --help | --hel | -h )
26256 $as_echo "$ac_cs_usage"; exit ;;
26257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26258 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26259 ac_cs_silent=: ;;
26261 # This is an error.
26262 -*) as_fn_error "unrecognized option: \`$1'
26263 Try \`$0 --help' for more information." ;;
26265 *) as_fn_append ac_config_targets " $1"
26266 ac_need_defaults=false ;;
26268 esac
26269 shift
26270 done
26272 ac_configure_extra_args=
26274 if $ac_cs_silent; then
26275 exec 6>/dev/null
26276 ac_configure_extra_args="$ac_configure_extra_args --silent"
26279 _ACEOF
26280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26281 if \$ac_cs_recheck; then
26282 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26283 shift
26284 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26285 CONFIG_SHELL='$SHELL'
26286 export CONFIG_SHELL
26287 exec "\$@"
26290 _ACEOF
26291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26292 exec 5>>config.log
26294 echo
26295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26296 ## Running $as_me. ##
26297 _ASBOX
26298 $as_echo "$ac_log"
26299 } >&5
26301 _ACEOF
26302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26304 # INIT-COMMANDS
26306 subdirs='$subdirs'
26308 _ACEOF
26310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26312 # Handling of arguments.
26313 for ac_config_target in $ac_config_targets
26315 case $ac_config_target in
26316 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26317 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26318 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26319 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26320 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26321 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26323 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26324 esac
26325 done
26328 # If the user did not use the arguments to specify the items to instantiate,
26329 # then the envvar interface is used. Set only those that are not.
26330 # We use the long form for the default assignment because of an extremely
26331 # bizarre bug on SunOS 4.1.3.
26332 if $ac_need_defaults; then
26333 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26334 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26335 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26338 # Have a temporary directory for convenience. Make it in the build tree
26339 # simply because there is no reason against having it here, and in addition,
26340 # creating and moving files from /tmp can sometimes cause problems.
26341 # Hook for its removal unless debugging.
26342 # Note that there is a small window in which the directory will not be cleaned:
26343 # after its creation but before its name has been assigned to `$tmp'.
26344 $debug ||
26346 tmp=
26347 trap 'exit_status=$?
26348 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26350 trap 'as_fn_exit 1' 1 2 13 15
26352 # Create a (secure) tmp directory for tmp files.
26355 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26356 test -n "$tmp" && test -d "$tmp"
26357 } ||
26359 tmp=./conf$$-$RANDOM
26360 (umask 077 && mkdir "$tmp")
26361 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26363 # Set up the scripts for CONFIG_FILES section.
26364 # No need to generate them if there are no CONFIG_FILES.
26365 # This happens for instance with `./config.status config.h'.
26366 if test -n "$CONFIG_FILES"; then
26368 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26369 ac_cs_awk_getline=:
26370 ac_cs_awk_pipe_init=
26371 ac_cs_awk_read_file='
26372 while ((getline aline < (F[key])) > 0)
26373 print(aline)
26374 close(F[key])'
26375 ac_cs_awk_pipe_fini=
26376 else
26377 ac_cs_awk_getline=false
26378 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26379 ac_cs_awk_read_file='
26380 print "|#_!!_#|"
26381 print "cat " F[key] " &&"
26382 '$ac_cs_awk_pipe_init
26383 # The final `:' finishes the AND list.
26384 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26386 ac_cr=`echo X | tr X '\015'`
26387 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26388 # But we know of no other shell where ac_cr would be empty at this
26389 # point, so we can use a bashism as a fallback.
26390 if test "x$ac_cr" = x; then
26391 eval ac_cr=\$\'\\r\'
26393 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26394 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26395 ac_cs_awk_cr='\r'
26396 else
26397 ac_cs_awk_cr=$ac_cr
26400 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26401 _ACEOF
26403 # Create commands to substitute file output variables.
26405 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26406 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26407 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26408 echo "_ACAWK" &&
26409 echo "_ACEOF"
26410 } >conf$$files.sh &&
26411 . ./conf$$files.sh ||
26412 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26413 rm -f conf$$files.sh
26416 echo "cat >conf$$subs.awk <<_ACEOF" &&
26417 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26418 echo "_ACEOF"
26419 } >conf$$subs.sh ||
26420 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26421 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26422 ac_delim='%!_!# '
26423 for ac_last_try in false false false false false :; do
26424 . ./conf$$subs.sh ||
26425 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26427 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26428 if test $ac_delim_n = $ac_delim_num; then
26429 break
26430 elif $ac_last_try; then
26431 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26432 else
26433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26435 done
26436 rm -f conf$$subs.sh
26438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26439 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26440 _ACEOF
26441 sed -n '
26443 s/^/S["/; s/!.*/"]=/
26446 s/^[^!]*!//
26447 :repl
26448 t repl
26449 s/'"$ac_delim"'$//
26450 t delim
26453 s/\(.\{148\}\).*/\1/
26454 t more1
26455 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26458 b repl
26459 :more1
26460 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26463 s/.\{148\}//
26464 t nl
26465 :delim
26467 s/\(.\{148\}\).*/\1/
26468 t more2
26469 s/["\\]/\\&/g; s/^/"/; s/$/"/
26472 :more2
26473 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26476 s/.\{148\}//
26477 t delim
26478 ' <conf$$subs.awk | sed '
26479 /^[^""]/{
26481 s/\n//
26483 ' >>$CONFIG_STATUS || ac_write_fail=1
26484 rm -f conf$$subs.awk
26485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26486 _ACAWK
26487 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26488 for (key in S) S_is_set[key] = 1
26489 FS = "\a"
26490 \$ac_cs_awk_pipe_init
26493 line = $ 0
26494 nfields = split(line, field, "@")
26495 substed = 0
26496 len = length(field[1])
26497 for (i = 2; i < nfields; i++) {
26498 key = field[i]
26499 keylen = length(key)
26500 if (S_is_set[key]) {
26501 value = S[key]
26502 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26503 len += length(value) + length(field[++i])
26504 substed = 1
26505 } else
26506 len += 1 + keylen
26508 if (nfields == 3 && !substed) {
26509 key = field[2]
26510 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26511 \$ac_cs_awk_read_file
26512 next
26515 print line
26517 \$ac_cs_awk_pipe_fini
26518 _ACAWK
26519 _ACEOF
26520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26521 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26522 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26523 else
26525 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26526 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26527 _ACEOF
26529 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26530 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26531 # trailing colons and then remove the whole line if VPATH becomes empty
26532 # (actually we leave an empty line to preserve line numbers).
26533 if test "x$srcdir" = x.; then
26534 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26535 s/:*\$(srcdir):*/:/
26536 s/:*\${srcdir}:*/:/
26537 s/:*@srcdir@:*/:/
26538 s/^\([^=]*=[ ]*\):*/\1/
26539 s/:*$//
26540 s/^[^=]*=[ ]*$//
26544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26545 fi # test -n "$CONFIG_FILES"
26547 # Set up the scripts for CONFIG_HEADERS section.
26548 # No need to generate them if there are no CONFIG_HEADERS.
26549 # This happens for instance with `./config.status Makefile'.
26550 if test -n "$CONFIG_HEADERS"; then
26551 cat >"$tmp/defines.awk" <<\_ACAWK ||
26552 BEGIN {
26553 _ACEOF
26555 # Transform confdefs.h into an awk script `defines.awk', embedded as
26556 # here-document in config.status, that substitutes the proper values into
26557 # config.h.in to produce config.h.
26559 # Create a delimiter string that does not exist in confdefs.h, to ease
26560 # handling of long lines.
26561 ac_delim='%!_!# '
26562 for ac_last_try in false false :; do
26563 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26564 if test -z "$ac_t"; then
26565 break
26566 elif $ac_last_try; then
26567 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26568 else
26569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26571 done
26573 # For the awk script, D is an array of macro values keyed by name,
26574 # likewise P contains macro parameters if any. Preserve backslash
26575 # newline sequences.
26577 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26578 sed -n '
26579 s/.\{148\}/&'"$ac_delim"'/g
26580 t rset
26581 :rset
26582 s/^[ ]*#[ ]*define[ ][ ]*/ /
26583 t def
26585 :def
26586 s/\\$//
26587 t bsnl
26588 s/["\\]/\\&/g
26589 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26590 D["\1"]=" \3"/p
26591 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26593 :bsnl
26594 s/["\\]/\\&/g
26595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26596 D["\1"]=" \3\\\\\\n"\\/p
26597 t cont
26598 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26599 t cont
26601 :cont
26603 s/.\{148\}/&'"$ac_delim"'/g
26604 t clear
26605 :clear
26606 s/\\$//
26607 t bsnlc
26608 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26610 :bsnlc
26611 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26612 b cont
26613 ' <confdefs.h | sed '
26614 s/'"$ac_delim"'/"\\\
26615 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26618 for (key in D) D_is_set[key] = 1
26619 FS = "\a"
26621 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26622 line = \$ 0
26623 split(line, arg, " ")
26624 if (arg[1] == "#") {
26625 defundef = arg[2]
26626 mac1 = arg[3]
26627 } else {
26628 defundef = substr(arg[1], 2)
26629 mac1 = arg[2]
26631 split(mac1, mac2, "(") #)
26632 macro = mac2[1]
26633 prefix = substr(line, 1, index(line, defundef) - 1)
26634 if (D_is_set[macro]) {
26635 # Preserve the white space surrounding the "#".
26636 print prefix "define", macro P[macro] D[macro]
26637 next
26638 } else {
26639 # Replace #undef with comments. This is necessary, for example,
26640 # in the case of _POSIX_SOURCE, which is predefined and required
26641 # on some systems where configure will not decide to define it.
26642 if (defundef == "undef") {
26643 print "/*", prefix defundef, macro, "*/"
26644 next
26648 { print }
26649 _ACAWK
26650 _ACEOF
26651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26652 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26653 fi # test -n "$CONFIG_HEADERS"
26656 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26657 shift
26658 for ac_tag
26660 case $ac_tag in
26661 :[FHLC]) ac_mode=$ac_tag; continue;;
26662 esac
26663 case $ac_mode$ac_tag in
26664 :[FHL]*:*);;
26665 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26666 :[FH]-) ac_tag=-:-;;
26667 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26668 esac
26669 ac_save_IFS=$IFS
26670 IFS=:
26671 set x $ac_tag
26672 IFS=$ac_save_IFS
26673 shift
26674 ac_file=$1
26675 shift
26677 case $ac_mode in
26678 :L) ac_source=$1;;
26679 :[FH])
26680 ac_file_inputs=
26681 for ac_f
26683 case $ac_f in
26684 -) ac_f="$tmp/stdin";;
26685 *) # Look for the file first in the build tree, then in the source tree
26686 # (if the path is not absolute). The absolute path cannot be DOS-style,
26687 # because $ac_f cannot contain `:'.
26688 test -f "$ac_f" ||
26689 case $ac_f in
26690 [\\/$]*) false;;
26691 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26692 esac ||
26693 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26694 esac
26695 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26696 as_fn_append ac_file_inputs " '$ac_f'"
26697 done
26699 # Let's still pretend it is `configure' which instantiates (i.e., don't
26700 # use $as_me), people would be surprised to read:
26701 # /* config.h. Generated by config.status. */
26702 configure_input='Generated from '`
26703 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26704 `' by configure.'
26705 if test x"$ac_file" != x-; then
26706 configure_input="$ac_file. $configure_input"
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26708 $as_echo "$as_me: creating $ac_file" >&6;}
26710 # Neutralize special characters interpreted by sed in replacement strings.
26711 case $configure_input in #(
26712 *\&* | *\|* | *\\* )
26713 ac_sed_conf_input=`$as_echo "$configure_input" |
26714 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26715 *) ac_sed_conf_input=$configure_input;;
26716 esac
26718 case $ac_tag in
26719 *:-:* | *:-) cat >"$tmp/stdin" \
26720 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26721 esac
26723 esac
26725 ac_dir=`$as_dirname -- "$ac_file" ||
26726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26727 X"$ac_file" : 'X\(//\)[^/]' \| \
26728 X"$ac_file" : 'X\(//\)$' \| \
26729 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26730 $as_echo X"$ac_file" |
26731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26732 s//\1/
26735 /^X\(\/\/\)[^/].*/{
26736 s//\1/
26739 /^X\(\/\/\)$/{
26740 s//\1/
26743 /^X\(\/\).*/{
26744 s//\1/
26747 s/.*/./; q'`
26748 as_dir="$ac_dir"; as_fn_mkdir_p
26749 ac_builddir=.
26751 case "$ac_dir" in
26752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26755 # A ".." for each directory in $ac_dir_suffix.
26756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26757 case $ac_top_builddir_sub in
26758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26760 esac ;;
26761 esac
26762 ac_abs_top_builddir=$ac_pwd
26763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26764 # for backward compatibility:
26765 ac_top_builddir=$ac_top_build_prefix
26767 case $srcdir in
26768 .) # We are building in place.
26769 ac_srcdir=.
26770 ac_top_srcdir=$ac_top_builddir_sub
26771 ac_abs_top_srcdir=$ac_pwd ;;
26772 [\\/]* | ?:[\\/]* ) # Absolute name.
26773 ac_srcdir=$srcdir$ac_dir_suffix;
26774 ac_top_srcdir=$srcdir
26775 ac_abs_top_srcdir=$srcdir ;;
26776 *) # Relative name.
26777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26778 ac_top_srcdir=$ac_top_build_prefix$srcdir
26779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26780 esac
26781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26784 case $ac_mode in
26787 # CONFIG_FILE
26790 _ACEOF
26792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26793 # If the template does not know about datarootdir, expand it.
26794 # FIXME: This hack should be removed a few years after 2.60.
26795 ac_datarootdir_hack=; ac_datarootdir_seen=
26796 ac_sed_dataroot='
26797 /datarootdir/ {
26801 /@datadir@/p
26802 /@docdir@/p
26803 /@infodir@/p
26804 /@localedir@/p
26805 /@mandir@/p'
26806 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26807 *datarootdir*) ac_datarootdir_seen=yes;;
26808 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26810 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26811 _ACEOF
26812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26813 ac_datarootdir_hack='
26814 s&@datadir@&$datadir&g
26815 s&@docdir@&$docdir&g
26816 s&@infodir@&$infodir&g
26817 s&@localedir@&$localedir&g
26818 s&@mandir@&$mandir&g
26819 s&\\\${datarootdir}&$datarootdir&g' ;;
26820 esac
26821 _ACEOF
26823 # Neutralize VPATH when `$srcdir' = `.'.
26824 # Shell code in configure.ac might set extrasub.
26825 # FIXME: do we really want to maintain this feature?
26826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26827 ac_sed_extra="$ac_vpsub
26828 $extrasub
26829 _ACEOF
26830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26833 s|@configure_input@|$ac_sed_conf_input|;t t
26834 s&@top_builddir@&$ac_top_builddir_sub&;t t
26835 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26836 s&@srcdir@&$ac_srcdir&;t t
26837 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26838 s&@top_srcdir@&$ac_top_srcdir&;t t
26839 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26840 s&@builddir@&$ac_builddir&;t t
26841 s&@abs_builddir@&$ac_abs_builddir&;t t
26842 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26843 $ac_datarootdir_hack
26845 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26846 if $ac_cs_awk_getline; then
26847 $AWK -f "$tmp/subs.awk"
26848 else
26849 $AWK -f "$tmp/subs.awk" | $SHELL
26850 fi >$tmp/out \
26851 || as_fn_error "could not create $ac_file" "$LINENO" 5
26853 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26854 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26855 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26857 which seems to be undefined. Please make sure it is defined." >&5
26858 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26859 which seems to be undefined. Please make sure it is defined." >&2;}
26861 rm -f "$tmp/stdin"
26862 case $ac_file in
26863 -) cat "$tmp/out" && rm -f "$tmp/out";;
26864 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26865 esac \
26866 || as_fn_error "could not create $ac_file" "$LINENO" 5
26870 # CONFIG_HEADER
26872 if test x"$ac_file" != x-; then
26874 $as_echo "/* $configure_input */" \
26875 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26876 } >"$tmp/config.h" \
26877 || as_fn_error "could not create $ac_file" "$LINENO" 5
26878 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26880 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26881 else
26882 rm -f "$ac_file"
26883 mv "$tmp/config.h" "$ac_file" \
26884 || as_fn_error "could not create $ac_file" "$LINENO" 5
26886 else
26887 $as_echo "/* $configure_input */" \
26888 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26889 || as_fn_error "could not create -" "$LINENO" 5
26893 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26894 $as_echo "$as_me: executing $ac_file commands" >&6;}
26896 esac
26899 case $ac_file$ac_mode in
26900 "as":F) chmod +x as ;;
26901 "collect-ld":F) chmod +x collect-ld ;;
26902 "nm":F) chmod +x nm ;;
26903 "default":C)
26904 case ${CONFIG_HEADERS} in
26905 *auto-host.h:config.in*)
26906 echo > cstamp-h ;;
26907 esac
26908 # Make sure all the subdirs exist.
26909 for d in $subdirs doc build
26911 test -d $d || mkdir $d
26912 done
26915 esac
26916 done # for ac_tag
26919 as_fn_exit 0
26920 _ACEOF
26921 ac_clean_files=$ac_clean_files_save
26923 test $ac_write_fail = 0 ||
26924 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26927 # configure is writing to config.log, and then calls config.status.
26928 # config.status does its own redirection, appending to config.log.
26929 # Unfortunately, on DOS this fails, as config.log is still kept open
26930 # by configure, so config.status won't be able to write to it; its
26931 # output is simply discarded. So we exec the FD to /dev/null,
26932 # effectively closing config.log, so it can be properly (re)opened and
26933 # appended to by config.status. When coming back to configure, we
26934 # need to make the FD available again.
26935 if test "$no_create" != yes; then
26936 ac_cs_success=:
26937 ac_config_status_args=
26938 test "$silent" = yes &&
26939 ac_config_status_args="$ac_config_status_args --quiet"
26940 exec 5>/dev/null
26941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26942 exec 5>>config.log
26943 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26944 # would make configure fail if this is the last instruction.
26945 $ac_cs_success || as_fn_exit $?
26947 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26949 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}