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
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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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 :
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+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
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"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL
=${CONFIG_SHELL-/bin/sh}
533 # Remove one level of quotation (which was required for Make).
534 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 if test "X$1" = X--no-reexec
; then
540 # Discard the --no-reexec flag, and continue.
542 elif test "X$1" = X--fallback-echo
; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo
; then
554 # used as fallback echo
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset
; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
591 for dir
in $PATH /usr
/ucb
; do
593 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
603 if test "X$ECHO" = Xecho
; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
610 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL
=/bin
/ksh
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
626 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
632 SHELL
="$CONFIG_SHELL"
634 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
641 # maybe with a smaller string...
644 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string
=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 # Oops. We lost completely, so just stick with echo.
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev
/null
6>&1
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
686 ac_default_prefix
=/usr
/local
688 ac_config_libobj_dir
=.
695 # Identity of this package.
703 ac_unique_file
="tree.c"
704 # Factoring default headers for most tests.
705 ac_includes_default
="\
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
717 # ifdef HAVE_STDLIB_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
740 ac_subst_vars
='LTLIBOBJS
789 TM_MULTILIB_EXCEPTIONS_CONFIG
798 build_xm_include_list
800 build_install_headers_dir
802 all_selected_languages
822 ORIGINAL_NM_FOR_TARGET
824 ORIGINAL_LD_FOR_TARGET
826 ORIGINAL_AS_FOR_TARGET
899 CROSS_SYSTEM_HEADER_DIR
900 TARGET_SYSTEM_ROOT_DEFINE
906 ENABLE_BUILD_WITH_CXX
909 valgrind_path_defines
981 program_transform_name
992 ac_subst_files
='language_hooks'
994 enable_option_checking
999 enable_generated_files_in_srcdir
1002 with_demangler_in_ld
1005 enable_werror_always
1008 enable_gather_detailed_mem_stats
1009 enable_build_with_cxx
1013 enable_decimal_float
1028 with_libiconv_prefix
1029 enable_initfini_array
1030 enable_sjlj_exceptions
1031 with_system_libunwind
1034 enable_win32_registry
1039 enable_gnu_unique_object
1040 enable_linker_build_id
1041 with_long_double_128
1044 enable_maintainer_mode
1045 enable_version_specific_runtime_libs
1049 ac_precious_vars
='build_alias
1072 # Initialize some variables set by options.
1074 ac_init_version
=false
1075 ac_unrecognized_opts
=
1076 ac_unrecognized_sep
=
1077 # The variables have the same names as the options, with
1078 # dashes changed to underlines.
1079 cache_file
=/dev
/null
1086 program_transform_name
=s
,x
,x
,
1094 # Installation directory options.
1095 # These are left unexpanded so users can "make install exec_prefix=/foo"
1096 # and all the variables that are supposed to be based on exec_prefix
1097 # by default will actually change.
1098 # Use braces instead of parens because sh, perl, etc. also accept them.
1099 # (The list follows the same order as the GNU Coding Standards.)
1100 bindir
='${exec_prefix}/bin'
1101 sbindir
='${exec_prefix}/sbin'
1102 libexecdir
='${exec_prefix}/libexec'
1103 datarootdir
='${prefix}/share'
1104 datadir
='${datarootdir}'
1105 sysconfdir
='${prefix}/etc'
1106 sharedstatedir
='${prefix}/com'
1107 localstatedir
='${prefix}/var'
1108 includedir
='${prefix}/include'
1109 oldincludedir
='/usr/include'
1110 docdir
='${datarootdir}/doc/${PACKAGE}'
1111 infodir
='${datarootdir}/info'
1116 libdir
='${exec_prefix}/lib'
1117 localedir
='${datarootdir}/locale'
1118 mandir
='${datarootdir}/man'
1124 # If the previous option needs an argument, assign it.
1125 if test -n "$ac_prev"; then
1126 eval $ac_prev=\
$ac_option
1132 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1136 # Accept the important Cygnus configure options, so we can diagnose typos.
1138 case $ac_dashdash$ac_option in
1142 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1144 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1145 bindir
=$ac_optarg ;;
1147 -build |
--build |
--buil |
--bui |
--bu)
1148 ac_prev
=build_alias
;;
1149 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1150 build_alias
=$ac_optarg ;;
1152 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1153 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1154 ac_prev
=cache_file
;;
1155 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1156 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1157 cache_file
=$ac_optarg ;;
1159 --config-cache |
-C)
1160 cache_file
=config.cache
;;
1162 -datadir |
--datadir |
--datadi |
--datad)
1164 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1165 datadir
=$ac_optarg ;;
1167 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1168 |
--dataroo |
--dataro |
--datar)
1169 ac_prev
=datarootdir
;;
1170 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1171 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1172 datarootdir
=$ac_optarg ;;
1174 -disable-* |
--disable-*)
1175 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1178 as_fn_error
"invalid feature name: $ac_useropt"
1179 ac_useropt_orig
=$ac_useropt
1180 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "enable_
$ac_useropt"
1185 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1186 ac_unrecognized_sep
=', ';;
1188 eval enable_
$ac_useropt=no
;;
1190 -docdir |
--docdir |
--docdi |
--doc |
--do)
1192 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1193 docdir
=$ac_optarg ;;
1195 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1197 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1198 dvidir
=$ac_optarg ;;
1200 -enable-* |
--enable-*)
1201 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1204 as_fn_error
"invalid feature name: $ac_useropt"
1205 ac_useropt_orig
=$ac_useropt
1206 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1209 "enable_
$ac_useropt"
1211 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1212 ac_unrecognized_sep
=', ';;
1214 eval enable_
$ac_useropt=\
$ac_optarg ;;
1216 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1217 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1218 |
--exec |
--exe |
--ex)
1219 ac_prev
=exec_prefix
;;
1220 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1221 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1222 |
--exec=* |
--exe=* |
--ex=*)
1223 exec_prefix
=$ac_optarg ;;
1225 -gas |
--gas |
--ga |
--g)
1226 # Obsolete; use --with-gas.
1229 -help |
--help |
--hel |
--he |
-h)
1230 ac_init_help
=long
;;
1231 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1232 ac_init_help
=recursive
;;
1233 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1234 ac_init_help
=short
;;
1236 -host |
--host |
--hos |
--ho)
1237 ac_prev
=host_alias
;;
1238 -host=* |
--host=* |
--hos=* |
--ho=*)
1239 host_alias
=$ac_optarg ;;
1241 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1243 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1245 htmldir
=$ac_optarg ;;
1247 -includedir |
--includedir |
--includedi |
--included |
--include \
1248 |
--includ |
--inclu |
--incl |
--inc)
1249 ac_prev
=includedir
;;
1250 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1251 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1252 includedir
=$ac_optarg ;;
1254 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1256 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1257 infodir
=$ac_optarg ;;
1259 -libdir |
--libdir |
--libdi |
--libd)
1261 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1262 libdir
=$ac_optarg ;;
1264 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1265 |
--libexe |
--libex |
--libe)
1266 ac_prev
=libexecdir
;;
1267 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1268 |
--libexe=* |
--libex=* |
--libe=*)
1269 libexecdir
=$ac_optarg ;;
1271 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1272 ac_prev
=localedir
;;
1273 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1274 localedir
=$ac_optarg ;;
1276 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1277 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1278 ac_prev
=localstatedir
;;
1279 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1280 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1281 localstatedir
=$ac_optarg ;;
1283 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1285 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1286 mandir
=$ac_optarg ;;
1288 -nfp |
--nfp |
--nf)
1289 # Obsolete; use --without-fp.
1292 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1293 |
--no-cr |
--no-c |
-n)
1296 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1297 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1300 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1301 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1302 |
--oldin |
--oldi |
--old |
--ol |
--o)
1303 ac_prev
=oldincludedir
;;
1304 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1305 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1306 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1307 oldincludedir
=$ac_optarg ;;
1309 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1311 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1312 prefix
=$ac_optarg ;;
1314 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1315 |
--program-pre |
--program-pr |
--program-p)
1316 ac_prev
=program_prefix
;;
1317 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1318 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1319 program_prefix
=$ac_optarg ;;
1321 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1322 |
--program-suf |
--program-su |
--program-s)
1323 ac_prev
=program_suffix
;;
1324 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1325 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1326 program_suffix
=$ac_optarg ;;
1328 -program-transform-name |
--program-transform-name \
1329 |
--program-transform-nam |
--program-transform-na \
1330 |
--program-transform-n |
--program-transform- \
1331 |
--program-transform |
--program-transfor \
1332 |
--program-transfo |
--program-transf \
1333 |
--program-trans |
--program-tran \
1334 |
--progr-tra |
--program-tr |
--program-t)
1335 ac_prev
=program_transform_name
;;
1336 -program-transform-name=* |
--program-transform-name=* \
1337 |
--program-transform-nam=* |
--program-transform-na=* \
1338 |
--program-transform-n=* |
--program-transform-=* \
1339 |
--program-transform=* |
--program-transfor=* \
1340 |
--program-transfo=* |
--program-transf=* \
1341 |
--program-trans=* |
--program-tran=* \
1342 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1343 program_transform_name
=$ac_optarg ;;
1345 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1347 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1348 pdfdir
=$ac_optarg ;;
1350 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1352 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1355 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1356 |
-silent |
--silent |
--silen |
--sile |
--sil)
1359 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1361 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1363 sbindir
=$ac_optarg ;;
1365 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1366 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1367 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1369 ac_prev
=sharedstatedir
;;
1370 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1371 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1372 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1374 sharedstatedir
=$ac_optarg ;;
1376 -site |
--site |
--sit)
1378 -site=* |
--site=* |
--sit=*)
1381 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1383 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1384 srcdir
=$ac_optarg ;;
1386 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1387 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1388 ac_prev
=sysconfdir
;;
1389 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1390 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1391 sysconfdir
=$ac_optarg ;;
1393 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1394 ac_prev
=target_alias
;;
1395 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1396 target_alias
=$ac_optarg ;;
1398 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1401 -version |
--version |
--versio |
--versi |
--vers |
-V)
1402 ac_init_version
=: ;;
1405 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1408 as_fn_error
"invalid package name: $ac_useropt"
1409 ac_useropt_orig
=$ac_useropt
1410 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1415 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1416 ac_unrecognized_sep
=', ';;
1418 eval with_
$ac_useropt=\
$ac_optarg ;;
1420 -without-* |
--without-*)
1421 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1422 # Reject names that are not valid shell variable names.
1423 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1424 as_fn_error
"invalid package name: $ac_useropt"
1425 ac_useropt_orig
=$ac_useropt
1426 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1427 case $ac_user_opts in
1431 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1432 ac_unrecognized_sep
=', ';;
1434 eval with_
$ac_useropt=no
;;
1437 # Obsolete; use --with-x.
1440 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1441 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1442 ac_prev
=x_includes
;;
1443 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1444 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1445 x_includes
=$ac_optarg ;;
1447 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1448 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1449 ac_prev
=x_libraries
;;
1450 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1451 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1452 x_libraries
=$ac_optarg ;;
1454 -*) as_fn_error
"unrecognized option: \`$ac_option'
1455 Try \`$0 --help' for more information."
1459 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1460 # Reject names that are not valid shell variable names.
1461 case $ac_envvar in #(
1462 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1463 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1465 eval $ac_envvar=\
$ac_optarg
1466 export $ac_envvar ;;
1469 # FIXME: should be removed in autoconf 3.0.
1470 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1471 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1472 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1473 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1479 if test -n "$ac_prev"; then
1480 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1481 as_fn_error
"missing argument to $ac_option"
1484 if test -n "$ac_unrecognized_opts"; then
1485 case $enable_option_checking in
1487 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1488 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1492 # Check all directory arguments for consistency.
1493 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1494 datadir sysconfdir sharedstatedir localstatedir includedir \
1495 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1496 libdir localedir mandir
1498 eval ac_val
=\$
$ac_var
1499 # Remove trailing slashes.
1502 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1503 eval $ac_var=\
$ac_val;;
1505 # Be sure to have absolute directory names.
1507 [\\/$
]* | ?
:[\\/]* ) continue;;
1508 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1510 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1513 # There might be people who depend on the old broken behavior: `$host'
1514 # used to hold the argument of --host etc.
1515 # FIXME: To remove some day.
1518 target
=$target_alias
1520 # FIXME: To remove some day.
1521 if test "x$host_alias" != x
; then
1522 if test "x$build_alias" = x
; then
1523 cross_compiling
=maybe
1524 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1525 If a cross compiler is detected then cross compile mode will be used." >&2
1526 elif test "x$build_alias" != "x$host_alias"; then
1532 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1534 test "$silent" = yes && exec 6>/dev
/null
1537 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1538 ac_ls_di
=`ls -di .` &&
1539 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1540 as_fn_error
"working directory cannot be determined"
1541 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1542 as_fn_error
"pwd does not report name of working directory"
1545 # Find the source files, if location was not specified.
1546 if test -z "$srcdir"; then
1547 ac_srcdir_defaulted
=yes
1548 # Try the directory containing this script, then the parent directory.
1549 ac_confdir
=`$as_dirname -- "$as_myself" ||
1550 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1551 X"$as_myself" : 'X\(//\)[^/]' \| \
1552 X"$as_myself" : 'X\(//\)$' \| \
1553 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1554 $as_echo X"$as_myself" |
1555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1573 if test ! -r "$srcdir/$ac_unique_file"; then
1577 ac_srcdir_defaulted
=no
1579 if test ! -r "$srcdir/$ac_unique_file"; then
1580 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1581 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1583 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1585 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1587 # When building in place, set srcdir=.
1588 if test "$ac_abs_confdir" = "$ac_pwd"; then
1591 # Remove unnecessary trailing slashes from srcdir.
1592 # Double slashes in file names in object file debugging info
1593 # mess up M-x gdb in Emacs.
1595 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1597 for ac_var
in $ac_precious_vars; do
1598 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1599 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1600 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1601 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1605 # Report the --help message.
1607 if test "$ac_init_help" = "long"; then
1608 # Omit some internal or obsolete options to make the list less imposing.
1609 # This message is too long to be a string in the A/UX 3.1 sh.
1611 \`configure' configures this package to adapt to many kinds of systems.
1613 Usage: $0 [OPTION]... [VAR=VALUE]...
1615 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1616 VAR=VALUE. See below for descriptions of some of the useful variables.
1618 Defaults for the options are specified in brackets.
1621 -h, --help display this help and exit
1622 --help=short display options specific to this package
1623 --help=recursive display the short help of all the included packages
1624 -V, --version display version information and exit
1625 -q, --quiet, --silent do not print \`checking...' messages
1626 --cache-file=FILE cache test results in FILE [disabled]
1627 -C, --config-cache alias for \`--cache-file=config.cache'
1628 -n, --no-create do not create output files
1629 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1631 Installation directories:
1632 --prefix=PREFIX install architecture-independent files in PREFIX
1633 [$ac_default_prefix]
1634 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1637 By default, \`make install' will install all the files in
1638 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1639 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1640 for instance \`--prefix=\$HOME'.
1642 For better control, use the options below.
1644 Fine tuning of the installation directories:
1645 --bindir=DIR user executables [EPREFIX/bin]
1646 --sbindir=DIR system admin executables [EPREFIX/sbin]
1647 --libexecdir=DIR program executables [EPREFIX/libexec]
1648 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1649 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1650 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1651 --libdir=DIR object code libraries [EPREFIX/lib]
1652 --includedir=DIR C header files [PREFIX/include]
1653 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1654 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1655 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1656 --infodir=DIR info documentation [DATAROOTDIR/info]
1657 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1658 --mandir=DIR man documentation [DATAROOTDIR/man]
1659 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1660 --htmldir=DIR html documentation [DOCDIR]
1661 --dvidir=DIR dvi documentation [DOCDIR]
1662 --pdfdir=DIR pdf documentation [DOCDIR]
1663 --psdir=DIR ps documentation [DOCDIR]
1669 --program-prefix=PREFIX prepend PREFIX to installed program names
1670 --program-suffix=SUFFIX append SUFFIX to installed program names
1671 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1674 --build=BUILD configure
for building on BUILD
[guessed
]
1675 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1676 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1680 if test -n "$ac_init_help"; then
1685 --disable-option-checking ignore unrecognized
--enable/--with options
1686 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1687 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1688 --enable-generated-files-in-srcdir
1689 put copies of generated files
in source dir
1690 intended
for creating
source tarballs
for users
1691 without texinfo bison or flex.
1692 --enable-werror-always enable -Werror despite compiler version
1693 --enable-checking=LIST
1694 enable expensive run-time checks. With LIST
,
1695 enable only specific categories of checks.
1696 Categories are
: yes,no
,all
,none
,release.
1697 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1698 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1699 --enable-coverage=LEVEL
1700 enable compiler
's code coverage collection.
1701 Use to measure compiler performance and locate
1702 unused parts of the compiler. With LEVEL, specify
1703 optimization. Values are opt, noopt,
1705 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1706 --enable-build-with-cxx build with C++ compiler instead of C compiler
1707 --enable-multilib enable library support for multiple ABIs
1708 --enable-__cxa_atexit enable __cxa_atexit for C++
1709 --enable-decimal-float={no,yes,bid,dpd}
1710 enable decimal float extension to C. Selecting 'bid
'
1711 or 'dpd
' choses which decimal floating point format
1713 --enable-fixed-point enable fixed-point arithmetic extension to C
1714 --enable-threads enable thread usage for target GCC
1715 --enable-threads=LIB use LIB thread package for target GCC
1716 --enable-tls enable or disable generation of tls code
1717 overriding the assembler check for tls support
1718 --enable-objc-gc enable the use of Boehm's garbage collector with
1719 the GNU Objective-C runtime
1720 --disable-shared don
't provide a shared libgcc
1721 --enable-intermodule build the compiler in one step
1722 --enable-languages=LIST specify which front-ends to build
1723 --disable-rpath do not hardcode runtime library paths
1724 --enable-initfini-array use .init_array/.fini_array sections
1725 --enable-sjlj-exceptions
1726 arrange to use setjmp/longjmp exception handling
1727 --enable-secureplt enable -msecure-plt by default for PowerPC
1728 --enable-cld enable -mcld by default for 32bit x86
1729 --disable-win32-registry
1730 disable lookup of installation paths in the
1731 Registry on Windows hosts
1732 --enable-win32-registry enable registry lookup (default)
1733 --enable-win32-registry=KEY
1734 use KEY instead of GCC version as the last portion
1736 --enable-shared[=PKGS] build shared libraries [default=yes]
1737 --enable-static[=PKGS] build static libraries [default=yes]
1738 --enable-fast-install[=PKGS]
1739 optimize for fast installation [default=yes]
1740 --disable-libtool-lock avoid locking (might break parallel builds)
1741 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1743 --enable-linker-build-id
1744 compiler will always pass --build-id to linker
1745 --enable-maintainer-mode
1746 enable make rules and dependencies not useful
1747 (and sometimes confusing) to the casual installer
1748 --enable-version-specific-runtime-libs
1749 specify that runtime libraries should be
1750 installed in a compiler-specific directory
1751 --enable-plugin enable plugin support
1754 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1755 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1756 --with-build-libsubdir=DIR Directory where to find libraries for build system
1757 --with-local-prefix=DIR specifies directory to put local include
1758 --with-gxx-include-dir=DIR
1759 specifies directory to put g++ header files
1760 --with-cpp-install-dir=DIR
1761 install the user visible C preprocessor in DIR
1762 (relative to PREFIX) as well as PREFIX/bin
1763 --with-gnu-ld arrange to work with GNU ld.
1764 --with-ld arrange to use the specified ld (full pathname)
1765 --with-demangler-in-ld try to use demangler in GNU ld.
1766 --with-gnu-as arrange to work with GNU as
1767 --with-as arrange to use the specified as (full pathname)
1768 --with-stabs arrange to use stabs instead of host debug format
1769 --with-dwarf2 force the default debug format to be DWARF 2
1770 --with-build-sysroot=sysroot
1771 use sysroot as the system root during the build
1772 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1773 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1774 --with-bugurl=URL Direct users to URL to report a bug
1775 --with-multilib-list Select multilibs (SH only)
1776 --with-gnu-ld assume the C compiler uses GNU ld default=no
1777 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1778 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1779 --with-system-libunwind use installed libunwind
1780 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1782 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1783 --with-long-double-128 Use
128-bit long double by default.
1784 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1786 --with-system-zlib use installed libz
1787 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1789 Some influential environment variables
:
1790 CC C compiler
command
1791 CFLAGS C compiler flags
1792 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1793 nonstandard directory
<lib dir
>
1794 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1795 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1796 you have headers
in a nonstandard directory
<include dir
>
1797 CXX C
++ compiler
command
1798 CXXFLAGS C
++ compiler flags
1800 CXXCPP C
++ preprocessor
1801 GMPLIBS How to link GMP
1802 GMPINC How to
find GMP include files
1803 PPLLIBS How to link PPL
1804 PPLINC How to
find PPL include files
1805 CLOOGLIBS How to link CLOOG
1806 CLOOGINC How to
find CLOOG include files
1807 LIBELFLIBS How to link libelf
1808 LIBELFINC How to
find libelf include files
1810 Use these variables to override the choices made by
`configure' or to help
1811 it to find libraries and programs with nonstandard names/locations.
1813 Report bugs to the package provider.
1818 if test "$ac_init_help" = "recursive"; then
1819 # If there are subdirs, report their specific --help.
1820 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1821 test -d "$ac_dir" ||
1822 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1827 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1829 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1830 # A ".." for each directory in $ac_dir_suffix.
1831 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1832 case $ac_top_builddir_sub in
1833 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1834 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1837 ac_abs_top_builddir=$ac_pwd
1838 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1839 # for backward compatibility:
1840 ac_top_builddir=$ac_top_build_prefix
1843 .) # We are building in place.
1845 ac_top_srcdir=$ac_top_builddir_sub
1846 ac_abs_top_srcdir=$ac_pwd ;;
1847 [\\/]* | ?:[\\/]* ) # Absolute name.
1848 ac_srcdir=$srcdir$ac_dir_suffix;
1849 ac_top_srcdir=$srcdir
1850 ac_abs_top_srcdir=$srcdir ;;
1852 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1853 ac_top_srcdir=$ac_top_build_prefix$srcdir
1854 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1856 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1858 cd "$ac_dir" || { ac_status=$?; continue; }
1859 # Check for guested configure.
1860 if test -f "$ac_srcdir/configure.gnu"; then
1862 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1863 elif test -f "$ac_srcdir/configure"; then
1865 $SHELL "$ac_srcdir/configure" --help=recursive
1867 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1869 cd "$ac_pwd" || { ac_status=$?; break; }
1873 test -n "$ac_init_help" && exit $ac_status
1874 if $ac_init_version; then
1877 generated by GNU Autoconf 2.64
1879 Copyright (C) 2009 Free Software Foundation, Inc.
1880 This configure script is free software; the Free Software Foundation
1881 gives unlimited permission to copy, distribute and modify it.
1886 ## ------------------------ ##
1887 ## Autoconf initialization. ##
1888 ## ------------------------ ##
1890 # ac_fn_c_try_compile LINENO
1891 # --------------------------
1892 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_c_try_compile ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext
1897 if { { ac_try="$ac_compile"
1899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1900 *) ac_try_echo
=$ac_try;;
1902 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_compile") 2>conftest.err
1906 if test -s conftest.err
; then
1907 grep -v '^ *+' conftest.err
>conftest.er1
1908 cat conftest.er1
>&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest.
$ac_objext; then :
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.
$ac_ext >&5
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1926 } # ac_fn_c_try_compile
1928 # ac_fn_cxx_try_compile LINENO
1929 # ----------------------------
1930 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_cxx_try_compile
()
1933 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1934 rm -f conftest.
$ac_objext
1935 if { { ac_try
="$ac_compile"
1937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_compile") 2>conftest.err
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_cxx_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest.$ac_objext; then :
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 } # ac_fn_cxx_try_compile
1966 # ac_fn_c_try_cpp LINENO
1967 # ----------------------
1968 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if { { ac_try="$ac_cpp conftest.$ac_ext"
1974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1975 *) ac_try_echo
=$ac_try;;
1977 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1981 if test -s conftest.err
; then
1982 grep -v '^ *+' conftest.err
>conftest.er1
1983 cat conftest.er1
>&5
1984 mv -f conftest.er1 conftest.err
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } >/dev
/null
&& {
1988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1989 test ! -s conftest.err
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.
$ac_ext >&5
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2008 ac_fn_c_check_header_mongrel
()
2010 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2011 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 $as_echo_n "(cached) " >&6
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2029 if ac_fn_c_try_compile
"$LINENO"; then :
2030 ac_header_compiler
=yes
2032 ac_header_compiler
=no
2034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2045 if ac_fn_c_try_cpp
"$LINENO"; then :
2046 ac_header_preproc
=yes
2048 ac_header_preproc
=no
2050 rm -f conftest.err conftest.
$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076 $as_echo_n "checking for $2... " >&6; }
2077 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078 $as_echo_n "(cached) " >&6
2080 eval "$3=\$ac_header_compiler"
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2088 } # ac_fn_c_check_header_mongrel
2090 # ac_fn_c_try_run LINENO
2091 # ----------------------
2092 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2093 # that executables *can* be run.
2096 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2097 if { { ac_try
="$ac_link"
2099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103 $as_echo "$ac_try_echo"; } >&5
2104 (eval "$ac_link") 2>&5
2106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2107 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2108 { { case "(($ac_try" in
2109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2110 *) ac_try_echo
=$ac_try;;
2112 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113 $as_echo "$ac_try_echo"; } >&5
2114 (eval "$ac_try") 2>&5
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; }; }; then :
2120 $as_echo "$as_me: program exited with status $ac_status" >&5
2121 $as_echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.
$ac_ext >&5
2124 ac_retval
=$ac_status
2126 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2132 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2133 # -------------------------------------------------------
2134 # Tests whether HEADER exists and can be compiled using the include files in
2135 # INCLUDES, setting the cache variable VAR accordingly.
2136 ac_fn_c_check_header_compile
()
2138 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2142 $as_echo_n "(cached) " >&6
2144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2149 if ac_fn_c_try_compile
"$LINENO"; then :
2154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2161 } # ac_fn_c_check_header_compile
2163 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2164 # --------------------------------------------
2165 # Tries to find the compile-time value of EXPR in a program that includes
2166 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2168 ac_fn_c_compute_int
()
2170 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2171 if test "$cross_compiling" = yes; then
2172 # Depending upon the size, compute the lo and hi bounds.
2173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2179 static int test_array [1 - 2 * !(($2) >= 0)];
2186 if ac_fn_c_try_compile
"$LINENO"; then :
2189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2195 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2202 if ac_fn_c_try_compile
"$LINENO"; then :
2203 ac_hi
=$ac_mid; break
2205 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2206 if test $ac_lo -le $ac_mid; then
2210 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2221 static int test_array [1 - 2 * !(($2) < 0)];
2228 if ac_fn_c_try_compile
"$LINENO"; then :
2231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2237 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2244 if ac_fn_c_try_compile
"$LINENO"; then :
2245 ac_lo
=$ac_mid; break
2247 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2248 if test $ac_mid -le $ac_hi; then
2252 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2262 # Binary search between lo and hi bounds.
2263 while test "x$ac_lo" != "x$ac_hi"; do
2264 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2271 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2278 if ac_fn_c_try_compile
"$LINENO"; then :
2281 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2286 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2293 static long int longval () { return $2; }
2294 static unsigned long int ulongval () { return $2; }
2301 FILE *f = fopen ("conftest.val", "w");
2306 long int i = longval ();
2309 fprintf (f, "%ld", i);
2313 unsigned long int i = ulongval ();
2316 fprintf (f, "%lu", i);
2318 /* Do not output a trailing newline, as this causes \r\n confusion
2319 on some platforms. */
2320 return ferror (f) || fclose (f) != 0;
2326 if ac_fn_c_try_run
"$LINENO"; then :
2327 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2336 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2339 } # ac_fn_c_compute_int
2341 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2342 # -------------------------------------------
2343 # Tests whether TYPE exists after having included INCLUDES, setting cache
2344 # variable VAR accordingly.
2345 ac_fn_c_check_type
()
2347 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2349 $as_echo_n "checking for $2... " >&6; }
2350 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2351 $as_echo_n "(cached) " >&6
2354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2366 if ac_fn_c_try_compile
"$LINENO"; then :
2367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2379 if ac_fn_c_try_compile
"$LINENO"; then :
2384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390 $as_echo "$ac_res" >&6; }
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2393 } # ac_fn_c_check_type
2395 # ac_fn_c_find_intX_t LINENO BITS VAR
2396 # -----------------------------------
2397 # Finds a signed integer type with width BITS, setting cache variable VAR
2399 ac_fn_c_find_intX_t
()
2401 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2403 $as_echo_n "checking for int$2_t... " >&6; }
2404 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2408 for ac_type
in int
$2_t 'int' 'long int' \
2409 'long long int' 'short int' 'signed char'; do
2410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2416 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2423 if ac_fn_c_try_compile
"$LINENO"; then :
2424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $ac_includes_default
2430 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2431 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2438 if ac_fn_c_try_compile
"$LINENO"; then :
2445 eval "$3=\$ac_type" ;;
2448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2452 if test "x$as_val" = x
""no
; then :
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2461 $as_echo "$ac_res" >&6; }
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2464 } # ac_fn_c_find_intX_t
2466 # ac_fn_c_try_link LINENO
2467 # -----------------------
2468 # Try to link conftest.$ac_ext, and return whether this succeeded.
2471 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2472 rm -f conftest.
$ac_objext conftest
$ac_exeext
2473 if { { ac_try
="$ac_link"
2475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2479 $as_echo "$ac_try_echo"; } >&5
2480 (eval "$ac_link") 2>conftest.err
2482 if test -s conftest.err; then
2483 grep -v '^ *+' conftest.err >conftest.er1
2484 cat conftest.er1 >&5
2485 mv -f conftest.er1 conftest.err
2487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2488 test $ac_status = 0; } && {
2489 test -z "$ac_c_werror_flag" ||
2490 test ! -s conftest.err
2491 } && test -s conftest$ac_exeext && {
2492 test "$cross_compiling" = yes ||
2493 $as_test_x conftest$ac_exeext
2497 $as_echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2502 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2503 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2504 # interfere with the next link command; also delete a directory that is
2505 # left behind by Apple's compiler. We do this before executing the actions.
2506 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510 } # ac_fn_c_try_link
2512 # ac_fn_c_find_uintX_t LINENO BITS VAR
2513 # ------------------------------------
2514 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2516 ac_fn_c_find_uintX_t ()
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2520 $as_echo_n "checking for uint$2_t... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2525 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2526 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2529 $ac_includes_default
2533 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2540 if ac_fn_c_try_compile "$LINENO"; then :
2545 eval "$3=\$ac_type" ;;
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 if test "x$as_val" = x""no; then :
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559 $as_echo "$ac_res" >&6; }
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562 } # ac_fn_c_find_uintX_t
2564 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2565 # ----------------------------------------------
2566 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2567 ac_fn_c_check_header_preproc ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2579 if ac_fn_c_try_cpp "$LINENO"; then :
2584 rm -f conftest.err conftest.$ac_ext
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2591 } # ac_fn_c_check_header_preproc
2593 # ac_fn_c_check_func LINENO FUNC VAR
2594 # ----------------------------------
2595 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2596 ac_fn_c_check_func ()
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 $as_echo_n "checking for $2... " >&6; }
2601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2602 $as_echo_n "(cached) " >&6
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2606 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2608 #define $2 innocuous_$2
2610 /* System header to define __stub macros and hopefully few prototypes,
2611 which can conflict with char $2 (); below.
2612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2613 <limits.h> exists even on freestanding compilers. */
2616 # include <limits.h>
2618 # include <assert.h>
2623 /* Override any GCC internal prototype to avoid an error.
2624 Use char because int might match the return type of a GCC
2625 builtin and then its argument prototype would still apply. */
2630 /* The GNU C library defines this for functions which it implements
2631 to always fail with ENOSYS. Some functions are actually named
2632 something starting with __ and the normal name is an alias. */
2633 #if defined __stub_$2 || defined __stub___$2
2645 if ac_fn_c_try_link "$LINENO"; then :
2650 rm -f core conftest.err conftest.$ac_objext \
2651 conftest$ac_exeext conftest.$ac_ext
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2655 $as_echo "$ac_res" >&6; }
2656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2658 } # ac_fn_c_check_func
2660 # ac_fn_cxx_try_cpp LINENO
2661 # ------------------------
2662 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2663 ac_fn_cxx_try_cpp ()
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 if { { ac_try="$ac_cpp conftest.$ac_ext"
2668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2669 *) ac_try_echo
=$ac_try;;
2671 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2675 if test -s conftest.err
; then
2676 grep -v '^ *+' conftest.err
>conftest.er1
2677 cat conftest.er1
>&5
2678 mv -f conftest.er1 conftest.err
2680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681 test $ac_status = 0; } >/dev
/null
&& {
2682 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2683 test ! -s conftest.err
2687 $as_echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.
$ac_ext >&5
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2695 } # ac_fn_cxx_try_cpp
2697 # ac_fn_cxx_try_link LINENO
2698 # -------------------------
2699 # Try to link conftest.$ac_ext, and return whether this succeeded.
2700 ac_fn_cxx_try_link
()
2702 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2703 rm -f conftest.
$ac_objext conftest
$ac_exeext
2704 if { { ac_try
="$ac_link"
2706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_link") 2>conftest.err
2713 if test -s conftest.err; then
2714 grep -v '^ *+' conftest.err >conftest.er1
2715 cat conftest.er1 >&5
2716 mv -f conftest.er1 conftest.err
2718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2719 test $ac_status = 0; } && {
2720 test -z "$ac_cxx_werror_flag" ||
2721 test ! -s conftest.err
2722 } && test -s conftest$ac_exeext && {
2723 test "$cross_compiling" = yes ||
2724 $as_test_x conftest$ac_exeext
2728 $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2733 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2734 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2735 # interfere with the next link command; also delete a directory that is
2736 # left behind by Apple's compiler. We do this before executing the actions.
2737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2741 } # ac_fn_cxx_try_link
2742 cat >config.log <<_ACEOF
2743 This file contains any messages produced by compilers while
2744 running configure, to aid debugging if configure makes a mistake.
2746 It was created by $as_me, which was
2747 generated by GNU Autoconf 2.64. Invocation command line was
2759 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2760 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2761 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2762 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2763 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2765 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2766 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2768 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2769 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2770 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2771 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2772 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2773 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2774 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 $as_echo "PATH: $as_dir"
2799 # Keep a trace of the command line.
2800 # Strip out --no-create and --no-recursion so they do not pile up.
2801 # Strip out --silent because we don't want to record it for future runs.
2802 # Also quote any args containing shell meta-characters.
2803 # Make two passes to allow for proper duplicate-argument suppression.
2807 ac_must_keep_next=false
2813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2815 | -silent | --silent | --silen | --sile | --sil)
2818 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2821 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2823 as_fn_append ac_configure_args1 " '$ac_arg'"
2824 if test $ac_must_keep_next = true; then
2825 ac_must_keep_next=false # Got value, back to normal.
2828 *=* | --config-cache | -C | -disable-* | --disable-* \
2829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2831 | -with-* | --with-* | -without-* | --without-* | --x)
2832 case "$ac_configure_args0 " in
2833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2836 -* ) ac_must_keep_next=true ;;
2839 as_fn_append ac_configure_args " '$ac_arg'"
2844 { ac_configure_args0=; unset ac_configure_args0;}
2845 { ac_configure_args1=; unset ac_configure_args1;}
2847 # When interrupted or exit'd, cleanup temporary files, and complete
2848 # config.log. We remove comments because anyway the quotes in there
2849 # would cause problems or look ugly.
2850 # WARNING: Use '\'' to represent an apostrophe within the trap.
2851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2852 trap 'exit_status=$?
2853 # Save into config.log some information that might help in debugging.
2858 ## ---------------- ##
2859 ## Cache variables. ##
2860 ## ---------------- ##
2863 # The following way of writing the cache mishandles newlines in values,
2865 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2866 eval ac_val=\$$ac_var
2870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2874 _ | IFS | as_nl) ;; #(
2875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876 *) { eval $ac_var=; unset $ac_var;} ;;
2881 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2882 *${as_nl}ac_space=\ *)
2884 "s/'\''/'\''\\\\'\'''\''/g;
2885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2896 ## ----------------- ##
2897 ## Output variables. ##
2898 ## ----------------- ##
2901 for ac_var in $ac_subst_vars
2903 eval ac_val=\$$ac_var
2905 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2907 $as_echo "$ac_var='\''$ac_val'\''"
2911 if test -n "$ac_subst_files"; then
2913 ## ------------------- ##
2914 ## File substitutions. ##
2915 ## ------------------- ##
2918 for ac_var in $ac_subst_files
2920 eval ac_val=\$$ac_var
2922 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2924 $as_echo "$ac_var='\''$ac_val'\''"
2929 if test -s confdefs.h; then
2939 test "$ac_signal" != 0 &&
2940 $as_echo "$as_me: caught signal $ac_signal"
2941 $as_echo "$as_me: exit $exit_status"
2943 rm -f core *.core core.conftest.* &&
2944 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2947 for ac_signal in 1 2 13 15; do
2948 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2952 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2953 rm -f -r conftest* confdefs.h
2955 $as_echo "/* confdefs.h */" > confdefs.h
2957 # Predefined preprocessor variables.
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_NAME "$PACKAGE_NAME"
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_STRING "$PACKAGE_STRING"
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_URL "$PACKAGE_URL"
2984 # Let the site file select an alternate cache file if it wants to.
2985 # Prefer an explicitly selected file to automatically selected ones.
2988 if test -n "$CONFIG_SITE"; then
2989 ac_site_file1=$CONFIG_SITE
2990 elif test "x$prefix" != xNONE; then
2991 ac_site_file1=$prefix/share/config.site
2992 ac_site_file2=$prefix/etc/config.site
2994 ac_site_file1=$ac_default_prefix/share/config.site
2995 ac_site_file2=$ac_default_prefix/etc/config.site
2997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2999 test "x$ac_site_file" = xNONE && continue
3000 if test -r "$ac_site_file"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3003 sed 's/^/| /' "$ac_site_file" >&5
3008 if test -r "$cache_file"; then
3009 # Some versions of bash will fail to source /dev/null (special
3010 # files actually), so we avoid doing that.
3011 if test -f "$cache_file"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3013 $as_echo "$as_me: loading cache $cache_file" >&6;}
3015 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3016 *) . "./$cache_file";;
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3021 $as_echo "$as_me: creating cache $cache_file" >&6;}
3025 # Check that the precious variables saved in the cache have kept the same
3027 ac_cache_corrupted=false
3028 for ac_var in $ac_precious_vars; do
3029 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3030 eval ac_new_set=\$ac_env_${ac_var}_set
3031 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3032 eval ac_new_val=\$ac_env_${ac_var}_value
3033 case $ac_old_set,$ac_new_set in
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3036 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3037 ac_cache_corrupted=: ;;
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3040 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3041 ac_cache_corrupted=: ;;
3044 if test "x$ac_old_val" != "x$ac_new_val"; then
3045 # differences in whitespace do not lead to failure.
3046 ac_old_val_w=`echo x
$ac_old_val`
3047 ac_new_val_w=`echo x
$ac_new_val`
3048 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3050 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3051 ac_cache_corrupted=:
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3054 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3055 eval $ac_var=\$ac_old_val
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3058 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3060 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3063 # Pass precious variables to config.status.
3064 if test "$ac_new_set" = set; then
3066 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3067 *) ac_arg=$ac_var=$ac_new_val ;;
3069 case " $ac_configure_args " in
3070 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3071 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3075 if $ac_cache_corrupted; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3079 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3080 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3082 ## -------------------- ##
3083 ## Main body of script. ##
3084 ## -------------------- ##
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3100 gcc_version=`cat $srcdir/BASE-VER
`
3102 # Determine the host, build, and target systems
3104 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3105 for ac_t in install-sh install.sh shtool; do
3106 if test -f "$ac_dir/$ac_t"; then
3108 ac_install_sh="$ac_aux_dir/$ac_t -c"
3113 if test -z "$ac_aux_dir"; then
3114 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3117 # These three variables are undocumented and unsupported,
3118 # and are intended to be withdrawn in a future Autoconf release.
3119 # They can cause serious problems if a builder's source tree is in a directory
3120 # whose full name contains unusual characters.
3121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3126 # Make sure we can run config.sub.
3127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3128 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3131 $as_echo_n "checking build system type... " >&6; }
3132 if test "${ac_cv_build+set}" = set; then :
3133 $as_echo_n "(cached) " >&6
3135 ac_build_alias=$build_alias
3136 test "x$ac_build_alias" = x &&
3137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3138 test "x$ac_build_alias" = x &&
3139 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3141 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3145 $as_echo "$ac_cv_build" >&6; }
3146 case $ac_cv_build in
3148 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3151 ac_save_IFS=$IFS; IFS='-'
3157 # Remember, the first character of IFS is used to create $*,
3158 # except with old shells:
3161 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3165 $as_echo_n "checking host system type... " >&6; }
3166 if test "${ac_cv_host+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3169 if test "x$host_alias" = x; then
3170 ac_cv_host=$ac_cv_build
3172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3173 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3178 $as_echo "$ac_cv_host" >&6; }
3181 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3184 ac_save_IFS=$IFS; IFS='-'
3190 # Remember, the first character of IFS is used to create $*,
3191 # except with old shells:
3194 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3198 $as_echo_n "checking target system type... " >&6; }
3199 if test "${ac_cv_target+set}" = set; then :
3200 $as_echo_n "(cached) " >&6
3202 if test "x$target_alias" = x; then
3203 ac_cv_target=$ac_cv_host
3205 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3206 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3211 $as_echo "$ac_cv_target" >&6; }
3212 case $ac_cv_target in
3214 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3216 target=$ac_cv_target
3217 ac_save_IFS=$IFS; IFS='-'
3223 # Remember, the first character of IFS is used to create $*,
3224 # except with old shells:
3227 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3230 # The aliases save the names the user supplied, while $host etc.
3231 # will get canonicalized.
3232 test -n "$target_alias" &&
3233 test "$program_prefix$program_suffix$program_transform_name" = \
3235 program_prefix=${target_alias}-
3237 # Determine the noncanonical target name, for directory use.
3238 case ${build_alias} in
3239 "") build_noncanonical=${build} ;;
3240 *) build_noncanonical=${build_alias} ;;
3243 case ${host_alias} in
3244 "") host_noncanonical=${build_noncanonical} ;;
3245 *) host_noncanonical=${host_alias} ;;
3248 case ${target_alias} in
3249 "") target_noncanonical=${host_noncanonical} ;;
3250 *) target_noncanonical=${target_alias} ;;
3256 # Determine the target- and build-specific subdirectories
3258 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3259 # have matching libraries, they should use host libraries: Makefile.tpl
3260 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3261 # However, they still use the build modules, because the corresponding
3262 # host modules (e.g. bison) are only built for the host when bootstrap
3264 # - build_subdir is where we find build modules, and never changes.
3265 # - build_libsubdir is where we find build libraries, and can be overridden.
3267 # Prefix 'build-' so this never conflicts with target_subdir.
3268 build_subdir="build-${build_noncanonical}"
3270 # Check whether --with-build-libsubdir was given.
3271 if test "${with_build_libsubdir+set}" = set; then :
3272 withval=$with_build_libsubdir; build_libsubdir="$withval"
3274 build_libsubdir="$build_subdir"
3277 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3278 if ( test $srcdir = . && test -d gcc ) \
3279 || test -d $srcdir/../host-${host_noncanonical}; then
3280 host_subdir="host-${host_noncanonical}"
3285 target_subdir=${target_noncanonical}
3288 # Set program_transform_name
3289 test "$program_prefix" != NONE &&
3290 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3291 # Use a double $ so make ignores it.
3292 test "$program_suffix" != NONE &&
3293 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3294 # Double any \ or $.
3295 # By default was `s
,x
,x
', remove it if useless.
3296 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3297 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3300 # Check for bogus environment variables.
3301 # Test if LIBRARY_PATH contains the notation for the current directory
3302 # since this would lead to problems installing/building glibc.
3303 # LIBRARY_PATH contains the current directory if one of the following
3305 # - one of the terminals (":" and ";") is the first or last sign
3306 # - two terminals occur directly after each other
3307 # - the path contains an element with a dot in it
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3309 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3310 case ${LIBRARY_PATH} in
3311 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3312 library_path_setting="contains current directory"
3315 library_path_setting="ok"
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3319 $as_echo "$library_path_setting" >&6; }
3320 if test "$library_path_setting" != "ok"; then
3322 *** LIBRARY_PATH shouldn't contain the current directory when
3323 *** building gcc. Please change the environment variable
3324 *** and run configure again.
" "$LINENO" 5
3327 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3328 # since this would lead to problems installing/building glibc.
3329 # GCC_EXEC_PREFIX contains the current directory if one of the following
3331 # - one of the terminals (":" and ";") is the first or last sign
3332 # - two terminals occur directly after each other
3333 # - the path contains an element with a dot in it
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3335 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3336 case ${GCC_EXEC_PREFIX} in
3337 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3338 gcc_exec_prefix_setting="contains current directory
"
3341 gcc_exec_prefix_setting="ok
"
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3345 $as_echo "$gcc_exec_prefix_setting" >&6; }
3346 if test "$gcc_exec_prefix_setting" != "ok
"; then
3348 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3349 *** building gcc. Please change the environment variable
3350 *** and run configure again." "$LINENO" 5
3357 # Specify the local prefix
3360 # Check whether --with-local-prefix was given.
3361 if test "${with_local_prefix+set}" = set; then :
3362 withval=$with_local_prefix; case "${withval}" in
3363 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3365 *) local_prefix=$with_local_prefix ;;
3370 # Default local prefix if it is empty
3371 if test x$local_prefix = x; then
3372 local_prefix=/usr/local
3375 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3376 # passed in by the toplevel make and thus we'd get different behavior
3377 # depending on where we built the sources.
3378 gcc_gxx_include_dir
=
3379 # Specify the g++ header file directory
3381 # Check whether --with-gxx-include-dir was given.
3382 if test "${with_gxx_include_dir+set}" = set; then :
3383 withval
=$with_gxx_include_dir; case "${withval}" in
3384 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3386 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3391 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3392 if test x
${gcc_gxx_include_dir} = x
; then
3393 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3394 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3396 libstdcxx_incdir
='include/c++/$(version)'
3397 if test x
$host != x
$target; then
3398 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3400 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3405 # Check whether --with-cpp_install_dir was given.
3406 if test "${with_cpp_install_dir+set}" = set; then :
3407 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3408 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3409 elif test x
$withval != xno
; then
3410 cpp_install_dir
=$withval
3415 # We would like to our source tree to be readonly. However when releases or
3416 # pre-releases are generated, the flex/bison generated files as well as the
3417 # various formats of manuals need to be included along with the rest of the
3418 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3422 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3423 # Check whether --enable-generated-files-in-srcdir was given.
3424 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3425 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3427 generated_files_in_srcdir
=no
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3432 $as_echo "$generated_files_in_srcdir" >&6; }
3434 if test "$generated_files_in_srcdir" = "yes"; then
3441 # -------------------
3442 # Find default linker
3443 # -------------------
3447 # Check whether --with-gnu-ld was given.
3448 if test "${with_gnu_ld+set}" = set; then :
3449 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3455 # With pre-defined ld
3457 # Check whether --with-ld was given.
3458 if test "${with_ld+set}" = set; then :
3459 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3462 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3463 if test ! -x "$DEFAULT_LINKER"; then
3464 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3465 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3469 cat >>confdefs.h
<<_ACEOF
3470 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3475 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3477 cat >>confdefs.h
<<_ACEOF
3478 #define HAVE_GNU_LD $gnu_ld
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3483 $as_echo_n "checking whether a default linker was specified... " >&6; }
3484 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3485 if test x
"$gnu_ld_flag" = x
"no"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3487 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3490 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3497 # With demangler in GNU ld
3499 # Check whether --with-demangler-in-ld was given.
3500 if test "${with_demangler_in_ld+set}" = set; then :
3501 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3507 # ----------------------
3508 # Find default assembler
3509 # ----------------------
3513 # Check whether --with-gnu-as was given.
3514 if test "${with_gnu_as+set}" = set; then :
3515 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3522 # Check whether --with-as was given.
3523 if test "${with_as+set}" = set; then :
3524 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3527 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3528 if test ! -x "$DEFAULT_ASSEMBLER"; then
3529 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3530 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3534 cat >>confdefs.h
<<_ACEOF
3535 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3540 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3542 cat >>confdefs.h
<<_ACEOF
3543 #define HAVE_GNU_AS $gnu_as
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3548 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3549 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3550 if test x
"$gas_flag" = x
"no"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3552 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3555 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3566 # If a non-executable a.out is present (e.g. created by GNU as above even if
3567 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3568 # file, even when creating an executable, so an execution test fails.
3569 # Remove possible default executable files to avoid this.
3571 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3572 # Autoconf includes it.
3573 rm -f a.out a.exe b.out
3575 # Find the native compiler
3577 ac_cpp
='$CPP $CPPFLAGS'
3578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3581 if test -n "$ac_tool_prefix"; then
3582 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3583 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if test "${ac_cv_prog_CC+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC
="$CC" # Let the user override the test.
3592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir
=.
3597 for ac_exec_ext
in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test -n "$CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3620 if test -z "$ac_cv_prog_CC"; then
3622 # Extract the first word of "gcc", so it can be a program name with args.
3623 set dummy gcc
; ac_word
=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3629 if test -n "$ac_ct_CC"; then
3630 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir
=.
3637 for ac_exec_ext
in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 ac_cv_prog_ac_ct_CC
="gcc"
3640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3650 if test -n "$ac_ct_CC"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3652 $as_echo "$ac_ct_CC" >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3658 if test "x$ac_ct_CC" = x
; then
3661 case $cross_compiling:$ac_tool_warned in
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned
=yes ;;
3673 if test -z "$CC"; then
3674 if test -n "$ac_tool_prefix"; then
3675 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3676 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC
="$CC" # Let the user override the test.
3685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir
=.
3690 for ac_exec_ext
in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3714 if test -z "$CC"; then
3715 # Extract the first word of "cc", so it can be a program name with args.
3716 set dummy cc
; ac_word
=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if test "${ac_cv_prog_CC+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3722 if test -n "$CC"; then
3723 ac_cv_prog_CC
="$CC" # Let the user override the test.
3726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir
=.
3731 for ac_exec_ext
in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3734 ac_prog_rejected
=yes
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 if test $ac_prog_rejected = yes; then
3746 # We found a bogon in the path, so make sure we never use it.
3747 set dummy
$ac_cv_prog_CC
3749 if test $# != 0; then
3750 # We chose a different compiler from the bogus one.
3751 # However, it has the same basename, so the bogon will be chosen
3752 # first if we set CC to just the basename; use the full file name.
3754 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3770 if test -z "$CC"; then
3771 if test -n "$ac_tool_prefix"; then
3772 for ac_prog
in cl.exe
3774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if test "${ac_cv_prog_CC+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3781 if test -n "$CC"; then
3782 ac_cv_prog_CC
="$CC" # Let the user override the test.
3784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir
=.
3789 for ac_exec_ext
in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 if test -n "$CC"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3804 $as_echo "$CC" >&6; }
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3811 test -n "$CC" && break
3814 if test -z "$CC"; then
3816 for ac_prog
in cl.exe
3818 # Extract the first word of "$ac_prog", so it can be a program name with args.
3819 set dummy
$ac_prog; ac_word
=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3825 if test -n "$ac_ct_CC"; then
3826 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir
=.
3833 for ac_exec_ext
in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_ac_ct_CC
="$ac_prog"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3846 if test -n "$ac_ct_CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848 $as_echo "$ac_ct_CC" >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3855 test -n "$ac_ct_CC" && break
3858 if test "x$ac_ct_CC" = x
; then
3861 case $cross_compiling:$ac_tool_warned in
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865 ac_tool_warned
=yes ;;
3874 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error
"no acceptable C compiler found in \$PATH
3877 See \`config.log' for more details." "$LINENO" 5; }
3879 # Provide some information about the compiler.
3880 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3883 for ac_option
in --version -v -V -qversion; do
3884 { { ac_try
="$ac_compiler $ac_option >&5"
3886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3893 if test -s conftest.err; then
3895 ... rest of stderr output deleted ...
3896 10q' conftest.err >conftest.er1
3897 cat conftest.er1 >&5
3898 rm -f conftest.er1 conftest.err
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3915 ac_clean_files_save=$ac_clean_files
3916 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3917 # Try to create an executable without -o first, disregard a.out.
3918 # It will help us diagnose broken compilers, and finding out an intuition
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3921 $as_echo_n "checking for C compiler default output file name... " >&6; }
3922 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3924 # The possible output files:
3925 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3928 for ac_file in $ac_files
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3937 if { { ac_try="$ac_link_default"
3939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3940 *) ac_try_echo
=$ac_try;;
3942 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_link_default") 2>&5
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }; then :
3948 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3949 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3950 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3951 # so that the user can short-circuit this test for compilers unknown to
3953 for ac_file
in $ac_files ''
3955 test -f "$ac_file" ||
continue
3957 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3960 # We found the default executable, but exeext='' is most
3964 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3966 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3968 # We set ac_cv_exeext here because the later test for it is not
3969 # safe: cross compilers may not add the suffix if given an `-o'
3970 # argument, so we may need to know it at that point already.
3971 # Even if this section looks crufty: it has the advantage of
3978 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3984 $as_echo "$ac_file" >&6; }
3985 if test -z "$ac_file"; then :
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.
$ac_ext >&5
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 { as_fn_set_status
77
3992 as_fn_error
"C compiler cannot create executables
3993 See \`config.log' for more details." "$LINENO" 5; }; }
3995 ac_exeext
=$ac_cv_exeext
3997 # Check that the compiler produces executables we can run. If not, either
3998 # the compiler is broken, or we cross compile.
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4000 $as_echo_n "checking whether the C compiler works... " >&6; }
4001 # If not cross compiling, check that we can run a simple program.
4002 if test "$cross_compiling" != yes; then
4003 if { ac_try
='./$ac_file'
4004 { { case "(($ac_try" in
4005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_try") 2>&5
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; }; then
4016 if test "$cross_compiling" = maybe; then
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error "cannot run C compiled programs.
4022 If you meant to cross compile
, use \
`--host'.
4023 See \`config.log
' for more details." "$LINENO" 5; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4028 $as_echo "yes" >&6; }
4030 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4031 ac_clean_files=$ac_clean_files_save
4032 # Check that the compiler produces executables we can run. If not, either
4033 # the compiler is broken, or we cross compile.
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4035 $as_echo_n "checking whether we are cross compiling... " >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4037 $as_echo "$cross_compiling" >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4040 $as_echo_n "checking for suffix of executables... " >&6; }
4041 if { { ac_try="$ac_link"
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_link") 2>&5
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }; then :
4052 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4053 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4054 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4056 for ac_file
in conftest.exe conftest conftest.
*; do
4057 test -f "$ac_file" ||
continue
4059 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4060 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4068 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4069 See \`config.log' for more details." "$LINENO" 5; }
4071 rm -f conftest
$ac_cv_exeext
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4073 $as_echo "$ac_cv_exeext" >&6; }
4075 rm -f conftest.
$ac_ext
4076 EXEEXT
=$ac_cv_exeext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4079 $as_echo_n "checking for suffix of object files... " >&6; }
4080 if test "${ac_cv_objext+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4094 rm -f conftest.o conftest.obj
4095 if { { ac_try
="$ac_compile"
4097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_compile") 2>&5
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 for ac_file in conftest.o conftest.obj conftest.*; do
4107 test -f "$ac_file" || continue;
4109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4115 $as_echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4120 as_fn_error "cannot compute suffix of object files
: cannot compile
4121 See \
`config.log' for more details." "$LINENO" 5; }
4123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4126 $as_echo "$ac_cv_objext" >&6; }
4127 OBJEXT=$ac_cv_objext
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4130 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4131 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4148 if ac_fn_c_try_compile "$LINENO"; then :
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4158 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4159 if test $ac_compiler_gnu = yes; then
4164 ac_test_CFLAGS=${CFLAGS+set}
4165 ac_save_CFLAGS=$CFLAGS
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4167 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4168 if test "${ac_cv_prog_cc_g+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4171 ac_save_c_werror_flag=$ac_c_werror_flag
4172 ac_c_werror_flag=yes
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4186 if ac_fn_c_try_compile "$LINENO"; then :
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4201 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4217 if ac_fn_c_try_compile "$LINENO"; then :
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 ac_c_werror_flag=$ac_save_c_werror_flag
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4228 $as_echo "$ac_cv_prog_cc_g" >&6; }
4229 if test "$ac_test_CFLAGS" = set; then
4230 CFLAGS=$ac_save_CFLAGS
4231 elif test $ac_cv_prog_cc_g = yes; then
4232 if test "$GCC" = yes; then
4238 if test "$GCC" = yes; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4245 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4246 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4249 ac_cv_prog_cc_c89=no
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4255 #include <sys/types.h>
4256 #include <sys/stat.h>
4257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4258 struct buf { int x; };
4259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4260 static char *e (p, i)
4266 static char *f (char * (*g) (char **, int), char **p, ...)
4271 s = g (p, va_arg (v,int));
4276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4277 function prototypes and stuff, but not '\xHH' hex character constants.
4278 These don't provoke an error unfortunately, instead are silently treated
4279 as 'x'. The following induces an error, until -std is added to get
4280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4281 array size at least. It's necessary to write '\x00'==0 to get something
4282 that's true only with -std. */
4283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4286 inside strings and character constants. */
4288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4290 int test (int i, double x);
4291 struct s1 {int (*f) (int a);};
4292 struct s2 {int (*f) (double a);};
4293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4307 CC="$ac_save_CC $ac_arg"
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 ac_cv_prog_cc_c89=$ac_arg
4311 rm -f core conftest.err conftest.$ac_objext
4312 test "x$ac_cv_prog_cc_c89" != "xno" && break
4314 rm -f conftest.$ac_ext
4319 case "x$ac_cv_prog_cc_c89" in
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4322 $as_echo "none needed" >&6; } ;;
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4325 $as_echo "unsupported" >&6; } ;;
4327 CC="$CC $ac_cv_prog_cc_c89"
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4329 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4331 if test "x$ac_cv_prog_cc_c89" != xno; then :
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 if test "x$CC" != xcc; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4343 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4346 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4348 set dummy $CC; ac_cc=`$as_echo "$2" |
4349 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4350 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4351 $as_echo_n "(cached) " >&6
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4364 # Make sure it works both with $CC and with simple cc.
4365 # We do the test twice because some compilers refuse to overwrite an
4366 # existing .o file with -o, though they will create one.
4367 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4369 if { { case "(($ac_try" in
4370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4371 *) ac_try_echo
=$ac_try;;
4373 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374 $as_echo "$ac_try_echo"; } >&5
4375 (eval "$ac_try") 2>&5
4377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; } &&
4379 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_try") 2>&5
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; };
4390 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4391 if test "x$CC" != xcc; then
4392 # Test first that cc exists at all.
4393 if { ac_try='cc -c conftest.$ac_ext >&5'
4394 { { case "(($ac_try" in
4395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4396 *) ac_try_echo
=$ac_try;;
4398 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; }; then
4404 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4406 if { { case "(($ac_try" in
4407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 $as_echo "$ac_try_echo"; } >&5
4412 (eval "$ac_try") 2>&5
4414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4415 test $ac_status = 0; } &&
4416 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4418 *) ac_try_echo
=$ac_try;;
4420 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422 (eval "$ac_try") 2>&5
4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; };
4430 # cc exists but doesn't like -o.
4431 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4436 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4438 rm -f core conftest
*
4441 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443 $as_echo "yes" >&6; }
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4448 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4452 # expand $ac_aux_dir to an absolute path
4453 am_aux_dir
=`cd $ac_aux_dir && pwd`
4455 # FIXME: we rely on the cache variable name because
4456 # there is no other way.
4458 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4459 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4460 if test "$am_t" != yes; then
4461 # Losing compiler, so override with the script.
4462 # FIXME: It is wrong to rewrite CC.
4463 # But if we don't then we get into trouble of one sort or another.
4464 # A longer-term fix would be to have automake use am__CC in this case,
4465 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4466 CC
="$am_aux_dir/compile $CC"
4471 ac_cpp
='$CXXCPP $CPPFLAGS'
4472 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4475 if test -z "$CXX"; then
4476 if test -n "$CCC"; then
4479 if test -n "$ac_tool_prefix"; then
4480 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4483 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if test "${ac_cv_prog_CXX+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4489 if test -n "$CXX"; then
4490 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir
=.
4497 for ac_exec_ext
in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 if test -n "$CXX"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4512 $as_echo "$CXX" >&6; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4519 test -n "$CXX" && break
4522 if test -z "$CXX"; then
4524 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy
$ac_prog; ac_word
=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4533 if test -n "$ac_ct_CXX"; then
4534 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir
=.
4541 for ac_exec_ext
in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4554 if test -n "$ac_ct_CXX"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4556 $as_echo "$ac_ct_CXX" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 test -n "$ac_ct_CXX" && break
4566 if test "x$ac_ct_CXX" = x
; then
4569 case $cross_compiling:$ac_tool_warned in
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4573 ac_tool_warned
=yes ;;
4581 # Provide some information about the compiler.
4582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4585 for ac_option
in --version -v -V -qversion; do
4586 { { ac_try
="$ac_compiler $ac_option >&5"
4588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4595 if test -s conftest.err; then
4597 ... rest of stderr output deleted ...
4598 10q' conftest.err >conftest.er1
4599 cat conftest.er1 >&5
4600 rm -f conftest.er1 conftest.err
4602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603 test $ac_status = 0; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4607 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4608 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4625 if ac_fn_cxx_try_compile "$LINENO"; then :
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4635 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4636 if test $ac_compiler_gnu = yes; then
4641 ac_test_CXXFLAGS=${CXXFLAGS+set}
4642 ac_save_CXXFLAGS=$CXXFLAGS
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4644 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4645 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4648 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4649 ac_cxx_werror_flag=yes
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4663 if ac_fn_cxx_try_compile "$LINENO"; then :
4664 ac_cv_prog_cxx_g=yes
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4678 if ac_fn_cxx_try_compile "$LINENO"; then :
4681 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4694 if ac_fn_cxx_try_compile "$LINENO"; then :
4695 ac_cv_prog_cxx_g=yes
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4705 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4706 if test "$ac_test_CXXFLAGS" = set; then
4707 CXXFLAGS=$ac_save_CXXFLAGS
4708 elif test $ac_cv_prog_cxx_g = yes; then
4709 if test "$GXX" = yes; then
4715 if test "$GXX" = yes; then
4722 ac_cpp='$CPP $CPPFLAGS'
4723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730 if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$GNATBIND"; then
4739 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 GNATBIND=$ac_cv_prog_GNATBIND
4759 if test -n "$GNATBIND"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4761 $as_echo "$GNATBIND" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4769 if test -z "$ac_cv_prog_GNATBIND"; then
4770 ac_ct_GNATBIND=$GNATBIND
4771 # Extract the first word of "gnatbind", so it can be a program name with args.
4772 set dummy gnatbind; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4778 if test -n "$ac_ct_GNATBIND"; then
4779 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4799 if test -n "$ac_ct_GNATBIND"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4801 $as_echo "$ac_ct_GNATBIND" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4807 if test "x$ac_ct_GNATBIND" = x; then
4810 case $cross_compiling:$ac_tool_warned in
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4814 ac_tool_warned=yes ;;
4816 GNATBIND=$ac_ct_GNATBIND
4819 GNATBIND="$ac_cv_prog_GNATBIND"
4822 if test -n "$ac_tool_prefix"; then
4823 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4824 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4830 if test -n "$GNATMAKE"; then
4831 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 GNATMAKE=$ac_cv_prog_GNATMAKE
4851 if test -n "$GNATMAKE"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4853 $as_echo "$GNATMAKE" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4861 if test -z "$ac_cv_prog_GNATMAKE"; then
4862 ac_ct_GNATMAKE=$GNATMAKE
4863 # Extract the first word of "gnatmake", so it can be a program name with args.
4864 set dummy gnatmake; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4870 if test -n "$ac_ct_GNATMAKE"; then
4871 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4891 if test -n "$ac_ct_GNATMAKE"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4893 $as_echo "$ac_ct_GNATMAKE" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4899 if test "x$ac_ct_GNATMAKE" = x; then
4902 case $cross_compiling:$ac_tool_warned in
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4908 GNATMAKE=$ac_ct_GNATMAKE
4911 GNATMAKE="$ac_cv_prog_GNATMAKE"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4915 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4916 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4919 cat >conftest.adb <<EOF
4920 procedure conftest is begin null; end conftest;
4922 acx_cv_cc_gcc_supports_ada=no
4923 # There is a bug in old released versions of GCC which causes the
4924 # driver to exit successfully when the appropriate language module
4925 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4926 # Therefore we must check for the error message as well as an
4927 # unsuccessful exit.
4928 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4929 # given a .adb file, but produce no object file. So we must check
4930 # if an object file was really produced to guard against this.
4931 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4932 if test x"$errors" = x && test -f conftest.$ac_objext; then
4933 acx_cv_cc_gcc_supports_ada=yes
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4938 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4940 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4947 # autoconf is lame and doesn't give us any substitution variable for this.
4948 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4949 NO_MINUS_C_MINUS_O=yes
4951 OUTPUT_OPTION='-o $@'
4956 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4957 # optimizations to be activated explicitly by the toplevel.
4959 */prev-gcc/xgcc*) ;;
4960 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4964 # -------------------------
4965 # Check C compiler features
4966 # -------------------------
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4975 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4976 # On Suns, sometimes $CPP names a directory.
4977 if test -n "$CPP" && test -d "$CPP"; then
4980 if test -z "$CPP"; then
4981 if test "${ac_cv_prog_CPP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4984 # Double quotes because CPP needs to be expanded
4985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4988 for ac_c_preproc_warn_flag in '' yes
4990 # Use a header file that comes with gcc, so configuring glibc
4991 # with a fresh cross-compiler works.
4992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
4994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4999 # include <limits.h>
5001 # include <assert.h>
5005 if ac_fn_c_try_cpp "$LINENO"; then :
5008 # Broken: fails on valid input.
5011 rm -f conftest.err conftest.$ac_ext
5013 # OK, works on sane cases. Now check whether nonexistent headers
5014 # can be detected and how.
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 #include <ac_nonexistent.h>
5019 if ac_fn_c_try_cpp "$LINENO"; then :
5020 # Broken: success on invalid input.
5023 # Passes both tests.
5027 rm -f conftest.err conftest.$ac_ext
5030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031 rm -f conftest.err conftest.
$ac_ext
5032 if $ac_preproc_ok; then :
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5045 $as_echo "$CPP" >&6; }
5047 for ac_c_preproc_warn_flag
in '' yes
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5058 # include <limits.h>
5060 # include <assert.h>
5064 if ac_fn_c_try_cpp
"$LINENO"; then :
5067 # Broken: fails on valid input.
5070 rm -f conftest.err conftest.
$ac_ext
5072 # OK, works on sane cases. Now check whether nonexistent headers
5073 # can be detected and how.
5074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #include <ac_nonexistent.h>
5078 if ac_fn_c_try_cpp
"$LINENO"; then :
5079 # Broken: success on invalid input.
5082 # Passes both tests.
5086 rm -f conftest.err conftest.
$ac_ext
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.
$ac_ext
5091 if $ac_preproc_ok; then :
5094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5096 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5097 See \`config.log' for more details." "$LINENO" 5; }
5101 ac_cpp
='$CPP $CPPFLAGS'
5102 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5109 if test "${ac_cv_path_GREP+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5112 if test -z "$GREP"; then
5113 ac_path_GREP_found
=false
5114 # Loop through the user's path and test for each of PROGNAME-LIST
5115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5116 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5119 test -z "$as_dir" && as_dir
=.
5120 for ac_prog
in grep ggrep
; do
5121 for ac_exec_ext
in '' $ac_executable_extensions; do
5122 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5123 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5124 # Check for GNU ac_path_GREP and select it if it is found.
5125 # Check for GNU $ac_path_GREP
5126 case `"$ac_path_GREP" --version 2>&1` in
5128 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5131 $as_echo_n 0123456789 >"conftest.in"
5134 cat "conftest.in" "conftest.in" >"conftest.tmp"
5135 mv "conftest.tmp" "conftest.in"
5136 cp "conftest.in" "conftest.nl"
5137 $as_echo 'GREP' >> "conftest.nl"
5138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5139 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5140 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5142 # Best one so far, save it but keep looking for a better one
5143 ac_cv_path_GREP
="$ac_path_GREP"
5144 ac_path_GREP_max
=$ac_count
5146 # 10*(2^10) chars as input seems more than enough
5147 test $ac_count -gt 10 && break
5149 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5152 $ac_path_GREP_found && break 3
5157 if test -z "$ac_cv_path_GREP"; then
5158 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5161 ac_cv_path_GREP
=$GREP
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5166 $as_echo "$ac_cv_path_GREP" >&6; }
5167 GREP
="$ac_cv_path_GREP"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5171 $as_echo_n "checking for egrep... " >&6; }
5172 if test "${ac_cv_path_EGREP+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5175 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5176 then ac_cv_path_EGREP
="$GREP -E"
5178 if test -z "$EGREP"; then
5179 ac_path_EGREP_found
=false
5180 # Loop through the user's path and test for each of PROGNAME-LIST
5181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5182 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5185 test -z "$as_dir" && as_dir
=.
5186 for ac_prog
in egrep; do
5187 for ac_exec_ext
in '' $ac_executable_extensions; do
5188 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5189 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5190 # Check for GNU ac_path_EGREP and select it if it is found.
5191 # Check for GNU $ac_path_EGREP
5192 case `"$ac_path_EGREP" --version 2>&1` in
5194 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5197 $as_echo_n 0123456789 >"conftest.in"
5200 cat "conftest.in" "conftest.in" >"conftest.tmp"
5201 mv "conftest.tmp" "conftest.in"
5202 cp "conftest.in" "conftest.nl"
5203 $as_echo 'EGREP' >> "conftest.nl"
5204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5205 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5206 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5208 # Best one so far, save it but keep looking for a better one
5209 ac_cv_path_EGREP
="$ac_path_EGREP"
5210 ac_path_EGREP_max
=$ac_count
5212 # 10*(2^10) chars as input seems more than enough
5213 test $ac_count -gt 10 && break
5215 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5218 $ac_path_EGREP_found && break 3
5223 if test -z "$ac_cv_path_EGREP"; then
5224 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5227 ac_cv_path_EGREP
=$EGREP
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5233 $as_echo "$ac_cv_path_EGREP" >&6; }
5234 EGREP
="$ac_cv_path_EGREP"
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5238 $as_echo_n "checking for ANSI C header files... " >&6; }
5239 if test "${ac_cv_header_stdc+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5257 if ac_fn_c_try_compile
"$LINENO"; then :
5258 ac_cv_header_stdc
=yes
5260 ac_cv_header_stdc
=no
5262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5264 if test $ac_cv_header_stdc = yes; then
5265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5272 $EGREP "memchr" >/dev
/null
2>&1; then :
5275 ac_cv_header_stdc
=no
5281 if test $ac_cv_header_stdc = yes; then
5282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "free" >/dev
/null
2>&1; then :
5292 ac_cv_header_stdc
=no
5298 if test $ac_cv_header_stdc = yes; then
5299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5300 if test "$cross_compiling" = yes; then :
5303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5307 #if ((' ' & 0x0FF) == 0x020)
5308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5311 # define ISLOWER(c) \
5312 (('a' <= (c) && (c) <= 'i') \
5313 || ('j' <= (c) && (c) <= 'r') \
5314 || ('s' <= (c) && (c) <= 'z'))
5315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5323 for (i = 0; i < 256; i++)
5324 if (XOR (islower (i), ISLOWER (i))
5325 || toupper (i) != TOUPPER (i))
5330 if ac_fn_c_try_run
"$LINENO"; then :
5333 ac_cv_header_stdc
=no
5335 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5336 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5342 $as_echo "$ac_cv_header_stdc" >&6; }
5343 if test $ac_cv_header_stdc = yes; then
5345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5350 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5351 inttypes.h stdint.h unistd.h
5353 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5354 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5356 eval as_val
=\$
$as_ac_Header
5357 if test "x$as_val" = x
""yes; then :
5358 cat >>confdefs.h
<<_ACEOF
5359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5369 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5376 if test "$MINIX" = yes; then
5378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5384 $as_echo "#define _MINIX 1" >>confdefs.h
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5397 # define __EXTENSIONS__ 1
5398 $ac_includes_default
5407 if ac_fn_c_try_compile
"$LINENO"; then :
5408 ac_cv_safe_to_define___extensions__
=yes
5410 ac_cv_safe_to_define___extensions__
=no
5412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5416 test $ac_cv_safe_to_define___extensions__ = yes &&
5417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5421 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5423 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5425 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5429 ac_cpp
='$CPP $CPPFLAGS'
5430 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5434 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5435 # On Suns, sometimes $CPP names a directory.
5436 if test -n "$CPP" && test -d "$CPP"; then
5439 if test -z "$CPP"; then
5440 if test "${ac_cv_prog_CPP+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5443 # Double quotes because CPP needs to be expanded
5444 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5447 for ac_c_preproc_warn_flag
in '' yes
5449 # Use a header file that comes with gcc, so configuring glibc
5450 # with a fresh cross-compiler works.
5451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452 # <limits.h> exists even on freestanding compilers.
5453 # On the NeXT, cc -E runs the code through the compiler's parser,
5454 # not just through cpp. "Syntax error" is here to catch this case.
5455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5458 # include <limits.h>
5460 # include <assert.h>
5464 if ac_fn_c_try_cpp
"$LINENO"; then :
5467 # Broken: fails on valid input.
5470 rm -f conftest.err conftest.
$ac_ext
5472 # OK, works on sane cases. Now check whether nonexistent headers
5473 # can be detected and how.
5474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 #include <ac_nonexistent.h>
5478 if ac_fn_c_try_cpp
"$LINENO"; then :
5479 # Broken: success on invalid input.
5482 # Passes both tests.
5486 rm -f conftest.err conftest.
$ac_ext
5489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490 rm -f conftest.err conftest.
$ac_ext
5491 if $ac_preproc_ok; then :
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5504 $as_echo "$CPP" >&6; }
5506 for ac_c_preproc_warn_flag
in '' yes
5508 # Use a header file that comes with gcc, so configuring glibc
5509 # with a fresh cross-compiler works.
5510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511 # <limits.h> exists even on freestanding compilers.
5512 # On the NeXT, cc -E runs the code through the compiler's parser,
5513 # not just through cpp. "Syntax error" is here to catch this case.
5514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5517 # include <limits.h>
5519 # include <assert.h>
5523 if ac_fn_c_try_cpp
"$LINENO"; then :
5526 # Broken: fails on valid input.
5529 rm -f conftest.err conftest.
$ac_ext
5531 # OK, works on sane cases. Now check whether nonexistent headers
5532 # can be detected and how.
5533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include <ac_nonexistent.h>
5537 if ac_fn_c_try_cpp
"$LINENO"; then :
5538 # Broken: success on invalid input.
5541 # Passes both tests.
5545 rm -f conftest.err conftest.
$ac_ext
5548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5549 rm -f conftest.err conftest.
$ac_ext
5550 if $ac_preproc_ok; then :
5553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5555 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." "$LINENO" 5; }
5560 ac_cpp
='$CPP $CPPFLAGS'
5561 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5566 $as_echo_n "checking for inline... " >&6; }
5567 if test "${ac_cv_c_inline+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5571 for ac_kw
in inline __inline__ __inline
; do
5572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5576 static $ac_kw foo_t static_foo () {return 0; }
5577 $ac_kw foo_t foo () {return 0; }
5581 if ac_fn_c_try_compile
"$LINENO"; then :
5582 ac_cv_c_inline
=$ac_kw
5584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5585 test "$ac_cv_c_inline" != no
&& break
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5590 $as_echo "$ac_cv_c_inline" >&6; }
5592 case $ac_cv_c_inline in
5595 case $ac_cv_c_inline in
5597 *) ac_val
=$ac_cv_c_inline;;
5599 cat >>confdefs.h
<<_ACEOF
5601 #define inline $ac_val
5608 # sizeof(char) is 1 by definition.
5609 # The cast to long int works around a bug in the HP C Compiler
5610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5612 # This bug is HP SR number 8606223364.
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5614 $as_echo_n "checking size of void *... " >&6; }
5615 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5618 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5621 if test "$ac_cv_type_void_p" = yes; then
5622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5624 { as_fn_set_status
77
5625 as_fn_error
"cannot compute sizeof (void *)
5626 See \`config.log' for more details." "$LINENO" 5; }; }
5628 ac_cv_sizeof_void_p
=0
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5634 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5638 cat >>confdefs.h
<<_ACEOF
5639 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5643 # The cast to long int works around a bug in the HP C Compiler
5644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5646 # This bug is HP SR number 8606223364.
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5648 $as_echo_n "checking size of short... " >&6; }
5649 if test "${ac_cv_sizeof_short+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5652 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5655 if test "$ac_cv_type_short" = yes; then
5656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658 { as_fn_set_status
77
5659 as_fn_error
"cannot compute sizeof (short)
5660 See \`config.log' for more details." "$LINENO" 5; }; }
5662 ac_cv_sizeof_short
=0
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5668 $as_echo "$ac_cv_sizeof_short" >&6; }
5672 cat >>confdefs.h
<<_ACEOF
5673 #define SIZEOF_SHORT $ac_cv_sizeof_short
5677 # The cast to long int works around a bug in the HP C Compiler
5678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5680 # This bug is HP SR number 8606223364.
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5682 $as_echo_n "checking size of int... " >&6; }
5683 if test "${ac_cv_sizeof_int+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5686 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5689 if test "$ac_cv_type_int" = yes; then
5690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5692 { as_fn_set_status
77
5693 as_fn_error
"cannot compute sizeof (int)
5694 See \`config.log' for more details." "$LINENO" 5; }; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5702 $as_echo "$ac_cv_sizeof_int" >&6; }
5706 cat >>confdefs.h
<<_ACEOF
5707 #define SIZEOF_INT $ac_cv_sizeof_int
5711 # The cast to long int works around a bug in the HP C Compiler
5712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5714 # This bug is HP SR number 8606223364.
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5716 $as_echo_n "checking size of long... " >&6; }
5717 if test "${ac_cv_sizeof_long+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5720 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5723 if test "$ac_cv_type_long" = yes; then
5724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5726 { as_fn_set_status
77
5727 as_fn_error
"cannot compute sizeof (long)
5728 See \`config.log' for more details." "$LINENO" 5; }; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5736 $as_echo "$ac_cv_sizeof_long" >&6; }
5740 cat >>confdefs.h
<<_ACEOF
5741 #define SIZEOF_LONG $ac_cv_sizeof_long
5745 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5746 if test "x$ac_cv_type_long_long" = x
""yes; then :
5748 cat >>confdefs.h
<<_ACEOF
5749 #define HAVE_LONG_LONG 1
5752 # The cast to long int works around a bug in the HP C Compiler
5753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5755 # This bug is HP SR number 8606223364.
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5757 $as_echo_n "checking size of long long... " >&6; }
5758 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5761 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5764 if test "$ac_cv_type_long_long" = yes; then
5765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5767 { as_fn_set_status
77
5768 as_fn_error
"cannot compute sizeof (long long)
5769 See \`config.log' for more details." "$LINENO" 5; }; }
5771 ac_cv_sizeof_long_long
=0
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5777 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5781 cat >>confdefs.h
<<_ACEOF
5782 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5788 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5789 if test "x$ac_cv_type___int64" = x
""yes; then :
5791 cat >>confdefs.h
<<_ACEOF
5792 #define HAVE___INT64 1
5795 # The cast to long int works around a bug in the HP C Compiler
5796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5798 # This bug is HP SR number 8606223364.
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5800 $as_echo_n "checking size of __int64... " >&6; }
5801 if test "${ac_cv_sizeof___int64+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5804 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5807 if test "$ac_cv_type___int64" = yes; then
5808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5810 { as_fn_set_status
77
5811 as_fn_error
"cannot compute sizeof (__int64)
5812 See \`config.log' for more details." "$LINENO" 5; }; }
5814 ac_cv_sizeof___int64
=0
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5820 $as_echo "$ac_cv_sizeof___int64" >&6; }
5824 cat >>confdefs.h
<<_ACEOF
5825 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5831 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5832 case $ac_cv_c_int8_t in #(
5836 cat >>confdefs.h
<<_ACEOF
5837 #define int8_t $ac_cv_c_int8_t
5842 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5843 case $ac_cv_c_int16_t in #(
5847 cat >>confdefs.h
<<_ACEOF
5848 #define int16_t $ac_cv_c_int16_t
5853 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5854 case $ac_cv_c_int32_t in #(
5858 cat >>confdefs.h
<<_ACEOF
5859 #define int32_t $ac_cv_c_int32_t
5864 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5865 case $ac_cv_c_int64_t in #(
5869 cat >>confdefs.h
<<_ACEOF
5870 #define int64_t $ac_cv_c_int64_t
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5877 $as_echo_n "checking for long long int... " >&6; }
5878 if test "${ac_cv_type_long_long_int+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5884 /* For now, do not test the preprocessor; as of 2007 there are too many
5885 implementations with broken preprocessors. Perhaps this can
5886 be revisited in 2012. In the meantime, code should not expect
5887 #if to work with literals wider than 32 bits. */
5888 /* Test literals. */
5889 long long int ll = 9223372036854775807ll;
5890 long long int nll = -9223372036854775807LL;
5891 unsigned long long int ull = 18446744073709551615ULL;
5892 /* Test constant expressions. */
5893 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5895 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5901 /* Test availability of runtime routines for shift and division. */
5902 long long int llmax = 9223372036854775807ll;
5903 unsigned long long int ullmax = 18446744073709551615ull;
5904 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5905 | (llmax / ll) | (llmax % ll)
5906 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5907 | (ullmax / ull) | (ullmax % ull));
5913 if ac_fn_c_try_link
"$LINENO"; then :
5914 if test "$cross_compiling" = yes; then :
5915 ac_cv_type_long_long_int
=yes
5917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5922 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5923 # define LLONG_MAX (HALF - 1 + HALF)
5928 long long int n = 1;
5932 long long int m = n << i;
5935 if (LLONG_MAX / 2 < m)
5943 if ac_fn_c_try_run
"$LINENO"; then :
5944 ac_cv_type_long_long_int
=yes
5946 ac_cv_type_long_long_int
=no
5948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5949 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5953 ac_cv_type_long_long_int
=no
5955 rm -f core conftest.err conftest.
$ac_objext \
5956 conftest
$ac_exeext conftest.
$ac_ext
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5959 $as_echo "$ac_cv_type_long_long_int" >&6; }
5960 if test $ac_cv_type_long_long_int = yes; then
5962 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5968 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5969 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
5971 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5974 test $ac_cv_type_long_long_int = yes \
5975 && ac_type
='long long int' \
5976 || ac_type
='long int'
5978 cat >>confdefs.h
<<_ACEOF
5979 #define intmax_t $ac_type
5986 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5987 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
5989 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5992 for ac_type
in 'int' 'long int' 'long long int'; do
5993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 $ac_includes_default
5999 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6006 if ac_fn_c_try_compile
"$LINENO"; then :
6008 cat >>confdefs.h
<<_ACEOF
6009 #define intptr_t $ac_type
6014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6015 test -z "$ac_type" && break
6020 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6021 case $ac_cv_c_uint8_t in #(
6025 $as_echo "#define _UINT8_T 1" >>confdefs.h
6028 cat >>confdefs.h
<<_ACEOF
6029 #define uint8_t $ac_cv_c_uint8_t
6034 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6035 case $ac_cv_c_uint16_t in #(
6040 cat >>confdefs.h
<<_ACEOF
6041 #define uint16_t $ac_cv_c_uint16_t
6046 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6047 case $ac_cv_c_uint32_t in #(
6051 $as_echo "#define _UINT32_T 1" >>confdefs.h
6054 cat >>confdefs.h
<<_ACEOF
6055 #define uint32_t $ac_cv_c_uint32_t
6060 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6061 case $ac_cv_c_uint64_t in #(
6065 $as_echo "#define _UINT64_T 1" >>confdefs.h
6068 cat >>confdefs.h
<<_ACEOF
6069 #define uint64_t $ac_cv_c_uint64_t
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6076 $as_echo_n "checking for unsigned long long int... " >&6; }
6077 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6083 /* For now, do not test the preprocessor; as of 2007 there are too many
6084 implementations with broken preprocessors. Perhaps this can
6085 be revisited in 2012. In the meantime, code should not expect
6086 #if to work with literals wider than 32 bits. */
6087 /* Test literals. */
6088 long long int ll = 9223372036854775807ll;
6089 long long int nll = -9223372036854775807LL;
6090 unsigned long long int ull = 18446744073709551615ULL;
6091 /* Test constant expressions. */
6092 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6094 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6100 /* Test availability of runtime routines for shift and division. */
6101 long long int llmax = 9223372036854775807ll;
6102 unsigned long long int ullmax = 18446744073709551615ull;
6103 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6104 | (llmax / ll) | (llmax % ll)
6105 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6106 | (ullmax / ull) | (ullmax % ull));
6112 if ac_fn_c_try_link
"$LINENO"; then :
6113 ac_cv_type_unsigned_long_long_int
=yes
6115 ac_cv_type_unsigned_long_long_int
=no
6117 rm -f core conftest.err conftest.
$ac_objext \
6118 conftest
$ac_exeext conftest.
$ac_ext
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6121 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6122 if test $ac_cv_type_unsigned_long_long_int = yes; then
6124 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6130 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6131 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6133 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6136 test $ac_cv_type_unsigned_long_long_int = yes \
6137 && ac_type
='unsigned long long int' \
6138 || ac_type
='unsigned long int'
6140 cat >>confdefs.h
<<_ACEOF
6141 #define uintmax_t $ac_type
6148 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6149 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6151 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6154 for ac_type
in 'unsigned int' 'unsigned long int' \
6155 'unsigned long long int'; do
6156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6158 $ac_includes_default
6162 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6169 if ac_fn_c_try_compile
"$LINENO"; then :
6171 cat >>confdefs.h
<<_ACEOF
6172 #define uintptr_t $ac_type
6177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6178 test -z "$ac_type" && break
6196 # ---------------------
6197 # Warnings and checking
6198 # ---------------------
6200 # Check $CC warning features (if it's GCC).
6201 # We want to use -pedantic, but we don't want warnings about
6204 # * overlong strings
6205 # So, we only use -pedantic if we can disable those warnings.
6208 save_CFLAGS
="$CFLAGS"
6209 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6210 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6213 $as_echo_n "checking whether $CC supports $option... " >&6; }
6214 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6215 $as_echo_n "(cached) " >&6
6218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6229 if ac_fn_c_try_compile
"$LINENO"; then :
6230 eval "$as_acx_Woption=yes"
6232 eval "$as_acx_Woption=no"
6234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6237 eval ac_res
=\$
$as_acx_Woption
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6239 $as_echo "$ac_res" >&6; }
6240 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6241 loose_warn
="$loose_warn${loose_warn:+ }$option"
6244 CFLAGS
="$save_CFLAGS"
6247 save_CFLAGS
="$CFLAGS"
6248 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6249 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6252 $as_echo_n "checking whether $CC supports $option... " >&6; }
6253 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6254 $as_echo_n "(cached) " >&6
6257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6268 if ac_fn_c_try_compile
"$LINENO"; then :
6269 eval "$as_acx_Woption=yes"
6271 eval "$as_acx_Woption=no"
6273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6276 eval ac_res
=\$
$as_acx_Woption
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6278 $as_echo "$ac_res" >&6; }
6279 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6280 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6283 CFLAGS
="$save_CFLAGS"
6286 save_CFLAGS
="$CFLAGS"
6287 for option
in -Wmissing-format-attribute; do
6288 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6291 $as_echo_n "checking whether $CC supports $option... " >&6; }
6292 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6293 $as_echo_n "(cached) " >&6
6296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6307 if ac_fn_c_try_compile
"$LINENO"; then :
6308 eval "$as_acx_Woption=yes"
6310 eval "$as_acx_Woption=no"
6312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6315 eval ac_res
=\$
$as_acx_Woption
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6317 $as_echo "$ac_res" >&6; }
6318 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6319 strict_warn
="$strict_warn${strict_warn:+ }$option"
6322 CFLAGS
="$save_CFLAGS"
6325 save_CFLAGS
="$CFLAGS"
6326 for option
in -Wold-style-definition -Wc++-compat; do
6327 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6330 $as_echo_n "checking whether $CC supports $option... " >&6; }
6331 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6332 $as_echo_n "(cached) " >&6
6335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6346 if ac_fn_c_try_compile
"$LINENO"; then :
6347 eval "$as_acx_Woption=yes"
6349 eval "$as_acx_Woption=no"
6351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6354 eval ac_res
=\$
$as_acx_Woption
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6356 $as_echo "$ac_res" >&6; }
6357 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6358 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6361 CFLAGS
="$save_CFLAGS"
6363 if test "$GCC" = yes; then :
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6365 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6366 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6369 save_CFLAGS
="$CFLAGS"
6370 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6382 if ac_fn_c_try_compile
"$LINENO"; then :
6383 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6385 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6388 CFLAGS
="$save_CFLAGS"
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6391 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6392 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6393 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6398 # Check whether --enable-werror-always was given.
6399 if test "${enable_werror_always+set}" = set; then :
6400 enableval
=$enable_werror_always;
6402 enable_werror_always
=no
6405 if test $enable_werror_always = yes; then :
6406 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6411 # The above macros do nothing if the compiler is not GCC. However, the
6412 # Makefile has more goo to add other flags, so these variables are used
6413 # to enable warnings only for GCC.
6416 if test "x$GCC" = "xyes"; then
6417 warn_cflags
='$(GCC_WARN_CFLAGS)'
6418 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6423 # Enable expensive internal checks
6425 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6429 # Check whether --enable-checking was given.
6430 if test "${enable_checking+set}" = set; then :
6431 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6434 # Determine the default checks.
6435 if test x
$is_release = x
; then
6436 ac_checking_flags
=yes
6438 ac_checking_flags
=release
6442 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6443 for check
in release
$ac_checking_flags
6446 # these set all the flags to specific states
6447 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6448 ac_fold_checking
= ; ac_gc_checking
=1 ;
6449 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6450 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6451 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6452 ac_types_checking
=1 ;;
6453 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6454 ac_fold_checking
= ; ac_gc_checking
= ;
6455 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6456 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6457 ac_tree_checking
= ; ac_valgrind_checking
= ;
6458 ac_types_checking
= ;;
6459 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6460 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6461 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6462 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6463 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6464 ac_types_checking
=1 ;;
6465 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6466 ac_fold_checking
= ; ac_gc_checking
= ;
6467 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6468 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6469 ac_tree_checking
= ; ac_valgrind_checking
= ;
6470 ac_types_checking
= ;;
6471 # these enable particular checks
6472 assert
) ac_assert_checking
=1 ;;
6473 df
) ac_df_checking
=1 ;;
6474 fold) ac_fold_checking
=1 ;;
6475 gc
) ac_gc_checking
=1 ;;
6476 gcac
) ac_gc_always_collect
=1 ;;
6477 gimple
) ac_gimple_checking
=1 ;;
6478 misc
) ac_checking
=1 ;;
6479 rtl
) ac_rtl_checking
=1 ;;
6480 rtlflag
) ac_rtlflag_checking
=1 ;;
6481 runtime
) ac_runtime_checking
=1 ;;
6482 tree
) ac_tree_checking
=1 ;;
6483 types
) ac_types_checking
=1 ;;
6484 valgrind
) ac_valgrind_checking
=1 ;;
6485 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6491 if test x
$ac_checking != x
; then
6493 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6495 nocommon_flag
=-fno-common
6498 if test x
$ac_df_checking != x
; then
6500 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6503 if test x
$ac_assert_checking != x
; then
6505 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6508 if test x
$ac_gimple_checking != x
; then
6510 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6514 if test x
$ac_runtime_checking != x
; then
6516 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6519 if test x
$ac_tree_checking != x
; then
6521 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6523 TREEBROWSER
=tree-browser.o
6525 if test x
$ac_types_checking != x
; then
6527 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6531 if test x
$ac_rtl_checking != x
; then
6533 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6536 if test x
$ac_rtlflag_checking != x
; then
6538 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6541 if test x
$ac_gc_checking != x
; then
6543 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6546 if test x
$ac_gc_always_collect != x
; then
6548 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6551 if test x
$ac_fold_checking != x
; then
6553 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6556 valgrind_path_defines
=
6559 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6560 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6568 if test x
$ac_valgrind_checking != x
; then
6569 # It is certainly possible that there's valgrind but no valgrind.h.
6570 # GCC relies on making annotations so we must have both.
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6572 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <valgrind/memcheck.h>
6576 #ifndef VALGRIND_DISCARD
6577 #error VALGRIND_DISCARD not defined
6580 if ac_fn_c_try_cpp
"$LINENO"; then :
6581 gcc_cv_header_valgrind_memcheck_h
=yes
6583 gcc_cv_header_valgrind_memcheck_h
=no
6585 rm -f conftest.err conftest.
$ac_ext
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6587 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6589 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 #include <memcheck.h>
6593 #ifndef VALGRIND_DISCARD
6594 #error VALGRIND_DISCARD not defined
6597 if ac_fn_c_try_cpp
"$LINENO"; then :
6598 gcc_cv_header_memcheck_h
=yes
6600 gcc_cv_header_memcheck_h
=no
6602 rm -f conftest.err conftest.
$ac_ext
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6604 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6606 # Prepare PATH_SEPARATOR.
6607 # The user is always right.
6608 if test "${PATH_SEPARATOR+set}" != set; then
6609 echo "#! /bin/sh" >conf$$.sh
6610 echo "exit 0" >>conf$$.sh
6612 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6620 # Find out how to test for executable files. Don't use a zero-byte file,
6621 # as systems may use methods other than mode bits to determine executability.
6622 cat >conf$$.
file <<_ASEOF
6626 chmod +x conf$$.
file
6627 if test -x conf$$.
file >/dev
/null
2>&1; then
6628 ac_executable_p
="test -x"
6630 ac_executable_p
="test -f"
6634 # Extract the first word of "valgrind", so it can be a program name with args.
6635 set dummy valgrind
; ac_word
=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6641 case "$valgrind_path" in
6643 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6646 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6647 for ac_dir
in $PATH; do
6649 test -z "$ac_dir" && ac_dir
=.
6650 for ac_exec_ext
in '' $ac_executable_extensions; do
6651 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6652 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6653 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6663 valgrind_path
="$ac_cv_path_valgrind_path"
6664 if test -n "$valgrind_path"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6666 $as_echo "$valgrind_path" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6672 if test "x$valgrind_path" = "x" \
6673 ||
(test $have_valgrind_h = no \
6674 && test $gcc_cv_header_memcheck_h = no \
6675 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6676 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6678 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6679 valgrind_command
="$valgrind_path -q"
6681 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6683 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6685 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6688 if test $gcc_cv_header_memcheck_h = yes; then
6690 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6697 # Enable code coverage collection
6698 # Check whether --enable-coverage was given.
6699 if test "${enable_coverage+set}" = set; then :
6700 enableval
=$enable_coverage; case "${enableval}" in
6702 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6705 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6708 # a.k.a. --disable-coverage
6712 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6721 # Check whether --enable-gather-detailed-mem-stats was given.
6722 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6723 enableval
=$enable_gather_detailed_mem_stats;
6725 enable_gather_detailed_mem_stats
=no
6728 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6730 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6734 # -------------------------------
6735 # Miscenalleous configure options
6736 # -------------------------------
6738 # See if we are building gcc with C++.
6739 # Check whether --enable-build-with-cxx was given.
6740 if test "${enable_build_with_cxx+set}" = set; then :
6741 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6743 ENABLE_BUILD_WITH_CXX
=no
6750 # Check whether --with-stabs was given.
6751 if test "${with_stabs+set}" = set; then :
6752 withval
=$with_stabs; stabs
="$with_stabs"
6758 # Determine whether or not multilibs are enabled.
6759 # Check whether --enable-multilib was given.
6760 if test "${enable_multilib+set}" = set; then :
6761 enableval
=$enable_multilib;
6768 # Enable __cxa_atexit for C++.
6769 # Check whether --enable-__cxa_atexit was given.
6770 if test "${enable___cxa_atexit+set}" = set; then :
6771 enableval
=$enable___cxa_atexit;
6775 # Enable C extension for decimal float if target supports it.
6776 # Check whether --enable-decimal-float was given.
6777 if test "${enable_decimal_float+set}" = set; then :
6778 enableval
=$enable_decimal_float;
6779 case $enable_decimal_float in
6780 yes | no | bid | dpd
) ;;
6781 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6782 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6788 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
6789 enable_decimal_float
=yes
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6793 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6794 enable_decimal_float
=no
6801 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6803 cat >>confdefs.h
<<_ACEOF
6804 #define ENABLE_DECIMAL_FLOAT $dfp
6808 # x86's use BID format instead of DPD
6809 case x
$enable_decimal_float in
6812 i?
86*-*-linux* | x86_64
*-*-linux*)
6813 enable_decimal_float
=bid
6816 enable_decimal_float
=dpd
6821 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6822 # dependency on libdecnumber.
6823 enable_decimal_float
=dpd
6828 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6830 cat >>confdefs.h
<<_ACEOF
6831 #define ENABLE_DECIMAL_BID_FORMAT $bid
6835 # Enable C extension for fixed-point arithmetic.
6836 # Check whether --enable-fixed-point was given.
6837 if test "${enable_fixed_point+set}" = set; then :
6838 enableval
=$enable_fixed_point;
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6847 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6848 enable_fixed_point
=no
6851 enable_fixed_point
=yes
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6857 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6858 enable_fixed_point
=no
6866 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6868 cat >>confdefs.h
<<_ACEOF
6869 #define ENABLE_FIXED_POINT $fixedpoint
6874 # Pass with no value to take the default
6875 # Pass with a value to specify a thread package
6876 # Check whether --enable-threads was given.
6877 if test "${enable_threads+set}" = set; then :
6878 enableval
=$enable_threads;
6884 # Check whether --enable-tls was given.
6885 if test "${enable_tls+set}" = set; then :
6886 enableval
=$enable_tls;
6889 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
6890 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6898 # Check whether --enable-objc-gc was given.
6899 if test "${enable_objc_gc+set}" = set; then :
6900 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
6911 # Check whether --with-dwarf2 was given.
6912 if test "${with_dwarf2+set}" = set; then :
6913 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
6919 # Check whether --enable-shared was given.
6920 if test "${enable_shared+set}" = set; then :
6921 enableval
=$enable_shared;
6922 case $enable_shared in
6926 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6927 for pkg
in $enableval; do
6928 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6943 # Check whether --with-build-sysroot was given.
6944 if test "${with_build_sysroot+set}" = set; then :
6945 withval
=$with_build_sysroot;
6950 # Check whether --with-sysroot was given.
6951 if test "${with_sysroot+set}" = set; then :
6952 withval
=$with_sysroot;
6953 case ${with_sysroot} in
6954 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6955 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6958 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6959 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6961 if test "x$prefix" = xNONE
; then
6962 test_prefix
=/usr
/local
6966 if test "x$exec_prefix" = xNONE
; then
6967 test_exec_prefix
=$test_prefix
6969 test_exec_prefix
=$exec_prefix
6971 case ${TARGET_SYSTEM_ROOT} in
6972 "${test_prefix}"|
"${test_prefix}/"*|\
6973 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
6974 '${prefix}'|
'${prefix}/'*|\
6975 '${exec_prefix}'|
'${exec_prefix}/'*)
6976 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6977 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6984 TARGET_SYSTEM_ROOT_DEFINE
=
6985 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6993 # Build with intermodule optimisations
6994 # Check whether --enable-intermodule was given.
6995 if test "${enable_intermodule+set}" = set; then :
6996 enableval
=$enable_intermodule; case ${enable_intermodule} in
6997 yes) onestep
="-onestep";;
7008 # Check whether --with-pkgversion was given.
7009 if test "${with_pkgversion+set}" = set; then :
7010 withval
=$with_pkgversion; case "$withval" in
7011 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7013 *) PKGVERSION
="($withval) " ;;
7024 # Check whether --with-bugurl was given.
7025 if test "${with_bugurl+set}" = set; then :
7026 withval
=$with_bugurl; case "$withval" in
7027 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7030 *) BUGURL
="$withval"
7034 BUGURL
="http://gcc.gnu.org/bugs.html"
7044 REPORT_BUGS_TO
="<$BUGURL>"
7045 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7052 # Sanity check enable_languages in case someone does not run the toplevel
7053 # configure # script.
7054 # Check whether --enable-languages was given.
7055 if test "${enable_languages+set}" = set; then :
7056 enableval
=$enable_languages; case ,${enable_languages}, in
7058 # go safe -- we cannot be much sure without the toplevel
7060 # analysis of which target libs are present and usable
7064 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7069 enable_languages
=c
,${enable_languages}
7078 # Check whether --with-multilib-list was given.
7079 if test "${with_multilib_list+set}" = set; then :
7080 withval
=$with_multilib_list; :
7082 with_multilib_list
=default
7086 # -------------------------
7087 # Checks for other programs
7088 # -------------------------
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7091 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7093 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7094 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7095 $as_echo_n "(cached) " >&6
7097 cat >conftest.
make <<\_ACEOF
7100 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7103 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7105 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7107 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7111 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 SET_MAKE
="MAKE=${MAKE-make}"
7122 # Find some useful tools
7123 for ac_prog
in gawk mawk nawk
awk
7125 # Extract the first word of "$ac_prog", so it can be a program name with args.
7126 set dummy
$ac_prog; ac_word
=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_AWK+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7132 if test -n "$AWK"; then
7133 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir
=.
7140 for ac_exec_ext
in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_AWK
="$ac_prog"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 if test -n "$AWK"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7155 $as_echo "$AWK" >&6; }
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7162 test -n "$AWK" && break
7165 # We need awk to create options.c and options.h.
7166 # Bail out if it's missing.
7168 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7172 $as_echo_n "checking whether ln -s works... " >&6; }
7173 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7176 rm -f conftestdata_t
7177 echo >conftestdata_f
7178 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7180 gcc_cv_prog_LN_S
="ln -s"
7182 if ln conftestdata_f conftestdata_t
2>/dev
/null
7186 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7188 gcc_cv_prog_LN_S
="cp -p"
7194 rm -f conftestdata_f conftestdata_t
7197 LN_S
="$gcc_cv_prog_LN_S"
7198 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7200 $as_echo "yes" >&6; }
7202 if test "$gcc_cv_prog_LN_S" = "ln"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7204 $as_echo "no, using ln" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7207 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7212 $as_echo_n "checking whether ln works... " >&6; }
7213 if test "${acx_cv_prog_LN+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7216 rm -f conftestdata_t
7217 echo >conftestdata_f
7218 if ln conftestdata_f conftestdata_t
2>/dev
/null
7224 rm -f conftestdata_f conftestdata_t
7227 if test $acx_cv_prog_LN = no
; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7230 $as_echo "no, using $LN" >&6; }
7232 LN
="$acx_cv_prog_LN"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7234 $as_echo "yes" >&6; }
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7239 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7245 if test -n "$RANLIB"; then
7246 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir
=.
7253 for ac_exec_ext
in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 RANLIB
=$ac_cv_prog_RANLIB
7266 if test -n "$RANLIB"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7268 $as_echo "$RANLIB" >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7276 if test -z "$ac_cv_prog_RANLIB"; then
7277 ac_ct_RANLIB
=$RANLIB
7278 # Extract the first word of "ranlib", so it can be a program name with args.
7279 set dummy ranlib
; ac_word
=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7285 if test -n "$ac_ct_RANLIB"; then
7286 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir
=.
7293 for ac_exec_ext
in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7306 if test -n "$ac_ct_RANLIB"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7308 $as_echo "$ac_ct_RANLIB" >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7314 if test "x$ac_ct_RANLIB" = x
; then
7317 case $cross_compiling:$ac_tool_warned in
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned
=yes ;;
7323 RANLIB
=$ac_ct_RANLIB
7326 RANLIB
="$ac_cv_prog_RANLIB"
7331 # By default, the Darwin ranlib will not treat common symbols as
7332 # definitions when building the archive table of contents. Other
7333 # ranlibs do that; pass an option to the Darwin ranlib that makes
7334 # it behave similarly.
7342 # Find a good install program. We prefer a C program (faster),
7343 # so one script is as good as another. But avoid the broken or
7344 # incompatible versions:
7345 # SysV /etc/install, /usr/sbin/install
7346 # SunOS /usr/etc/install
7347 # IRIX /sbin/install
7349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7351 # ./install, which can be erroneously created by make from ./install.sh.
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7353 $as_echo_n "checking for a BSD compatible install... " >&6; }
7354 if test -z "$INSTALL"; then
7355 if test "${ac_cv_path_install+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7358 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7359 for ac_dir
in $PATH; do
7360 # Account for people who put trailing slashes in PATH elements.
7362 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7364 # OSF1 and SCO ODT 3.0 have their own names for install.
7365 for ac_prog
in ginstall scoinst
install; do
7366 if test -f $ac_dir/$ac_prog; then
7367 if test $ac_prog = install &&
7368 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7369 # AIX install. It has an incompatible calling convention.
7370 # OSF/1 installbsd also uses dspmsg, but is usable.
7373 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7384 if test "${ac_cv_path_install+set}" = set; then
7385 INSTALL
="$ac_cv_path_install"
7387 # As a last resort, use the slow shell script. We don't cache a
7388 # path for INSTALL within a source directory, because that will
7389 # break other packages using the cache if that directory is
7390 # removed, or if the path is relative.
7391 INSTALL
="$ac_install_sh"
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7395 $as_echo "$INSTALL" >&6; }
7397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7398 # It thinks the first close brace ends the variable substitution.
7399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7401 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7404 # See if cmp has --ignore-initial.
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7406 $as_echo_n "checking for cmp's capabilities... " >&6; }
7407 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7412 gcc_cv_prog_cmp_skip
=slowcompare
7413 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7414 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7417 gcc_cv_prog_cmp_skip
=gnucompare
7420 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7421 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7422 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7425 gcc_cv_prog_cmp_skip
=fastcompare
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7433 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7434 make_compare_target
=$gcc_cv_prog_cmp_skip
7438 # See if we have the mktemp command.
7439 # Extract the first word of "mktemp", so it can be a program name with args.
7440 set dummy mktemp
; ac_word
=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7446 if test -n "$have_mktemp_command"; then
7447 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir
=.
7454 for ac_exec_ext
in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_prog_have_mktemp_command
="yes"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7467 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7468 if test -n "$have_mktemp_command"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7470 $as_echo "$have_mktemp_command" >&6; }
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7478 # See if makeinfo has been installed and is modern enough
7479 # that we can use it.
7481 # Extract the first word of "makeinfo", so it can be a program name with args.
7482 set dummy makeinfo
; ac_word
=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7488 if test -n "$MAKEINFO"; then
7489 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir
=.
7496 for ac_exec_ext
in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_MAKEINFO
="makeinfo"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 MAKEINFO
=$ac_cv_prog_MAKEINFO
7509 if test -n "$MAKEINFO"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7511 $as_echo "$MAKEINFO" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7518 if test -n "$MAKEINFO"; then
7519 # Found it, now check the version.
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7521 $as_echo_n "checking for modern makeinfo... " >&6; }
7522 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7525 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7526 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7528 case $ac_prog_version in
7529 '') gcc_cv_prog_makeinfo_modern
=no
;;
7530 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7531 *) gcc_cv_prog_makeinfo_modern
=no
;;
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7536 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7538 gcc_cv_prog_makeinfo_modern
=no
7540 if test $gcc_cv_prog_makeinfo_modern = no
; then
7541 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7544 if test $gcc_cv_prog_makeinfo_modern = no
; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7546 *** Makeinfo is missing or too old.
7547 *** Info documentation will not be built." >&5
7548 $as_echo "$as_me: WARNING:
7549 *** Makeinfo is missing or too old.
7550 *** Info documentation will not be built." >&2;}
7557 # Is pod2man recent enough to regenerate manpages?
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7559 $as_echo_n "checking for recent Pod::Man... " >&6; }
7560 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7562 $as_echo "yes" >&6; }
7563 GENERATED_MANPAGES
=generated-manpages
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7571 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
7577 set dummy
$ac_prog; ac_word
=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_FLEX+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7583 if test -n "$FLEX"; then
7584 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir
=.
7591 for ac_exec_ext
in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_prog_FLEX
="$ac_prog"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 FLEX
=$ac_cv_prog_FLEX
7604 if test -n "$FLEX"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7606 $as_echo "$FLEX" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7613 test -n "$FLEX" && break
7615 test -n "$FLEX" || FLEX
="$MISSING flex"
7619 for ac_prog
in bison
7621 # Extract the first word of "$ac_prog", so it can be a program name with args.
7622 set dummy
$ac_prog; ac_word
=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_BISON+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7628 if test -n "$BISON"; then
7629 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7635 test -z "$as_dir" && as_dir
=.
7636 for ac_exec_ext
in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_BISON
="$ac_prog"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 BISON
=$ac_cv_prog_BISON
7649 if test -n "$BISON"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7651 $as_echo "$BISON" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7658 test -n "$BISON" && break
7660 test -n "$BISON" || BISON
="$MISSING bison"
7663 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7664 # check for build == host before using them.
7667 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7668 && test -d ..
/binutils
; then
7669 NM
='$(objdir)/../binutils/nm-new'
7671 # Extract the first word of "nm", so it can be a program name with args.
7672 set dummy nm
; ac_word
=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if test "${ac_cv_prog_NM+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7678 if test -n "$NM"; then
7679 ac_cv_prog_NM
="$NM" # Let the user override the test.
7681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir
=.
7686 for ac_exec_ext
in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7700 if test -n "$NM"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7702 $as_echo "$NM" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7712 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7713 && test -d ..
/binutils
; then
7714 AR
='$(objdir)/../binutils/ar'
7716 # Extract the first word of "ar", so it can be a program name with args.
7717 set dummy
ar; ac_word
=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if test "${ac_cv_prog_AR+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7723 if test -n "$AR"; then
7724 ac_cv_prog_AR
="$AR" # Let the user override the test.
7726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir
=.
7731 for ac_exec_ext
in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7745 if test -n "$AR"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7747 $as_echo "$AR" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7757 # --------------------
7758 # Checks for C headers
7759 # --------------------
7761 # Need to reject headers which give warnings, so that the -Werror bootstrap
7762 # works later. *sigh* This needs to come before all header checks.
7764 ac_c_preproc_warn_flag
=yes
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7767 $as_echo_n "checking for ANSI C header files... " >&6; }
7768 if test "${ac_cv_header_stdc+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7786 if ac_fn_c_try_compile
"$LINENO"; then :
7787 ac_cv_header_stdc
=yes
7789 ac_cv_header_stdc
=no
7791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7793 if test $ac_cv_header_stdc = yes; then
7794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7801 $EGREP "memchr" >/dev
/null
2>&1; then :
7804 ac_cv_header_stdc
=no
7810 if test $ac_cv_header_stdc = yes; then
7811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "free" >/dev
/null
2>&1; then :
7821 ac_cv_header_stdc
=no
7827 if test $ac_cv_header_stdc = yes; then
7828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7829 if test "$cross_compiling" = yes; then :
7832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7836 #if ((' ' & 0x0FF) == 0x020)
7837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7840 # define ISLOWER(c) \
7841 (('a' <= (c) && (c) <= 'i') \
7842 || ('j' <= (c) && (c) <= 'r') \
7843 || ('s' <= (c) && (c) <= 'z'))
7844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7852 for (i = 0; i < 256; i++)
7853 if (XOR (islower (i), ISLOWER (i))
7854 || toupper (i) != TOUPPER (i))
7859 if ac_fn_c_try_run
"$LINENO"; then :
7862 ac_cv_header_stdc
=no
7864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7871 $as_echo "$ac_cv_header_stdc" >&6; }
7872 if test $ac_cv_header_stdc = yes; then
7874 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7879 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7880 if test "${ac_cv_header_time+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 #include <sys/types.h>
7886 #include <sys/time.h>
7892 if ((struct tm *) 0)
7898 if ac_fn_c_try_compile
"$LINENO"; then :
7899 ac_cv_header_time
=yes
7901 ac_cv_header_time
=no
7903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7906 $as_echo "$ac_cv_header_time" >&6; }
7907 if test $ac_cv_header_time = yes; then
7909 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7914 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7915 if test "${gcc_cv_header_string+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7921 #include <strings.h>
7930 if ac_fn_c_try_compile
"$LINENO"; then :
7931 gcc_cv_header_string
=yes
7933 gcc_cv_header_string
=no
7935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7938 $as_echo "$gcc_cv_header_string" >&6; }
7939 if test $gcc_cv_header_string = yes; then
7941 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7946 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7947 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952 #include <sys/types.h>
7953 #include <sys/wait.h>
7955 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7958 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7966 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7971 if ac_fn_c_try_compile
"$LINENO"; then :
7972 ac_cv_header_sys_wait_h
=yes
7974 ac_cv_header_sys_wait_h
=no
7976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7979 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7980 if test $ac_cv_header_sys_wait_h = yes; then
7982 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7986 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
7987 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
7988 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
7989 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7991 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7992 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7993 eval as_val
=\$
$as_ac_Header
7994 if test "x$as_val" = x
""yes; then :
7995 cat >>confdefs.h
<<_ACEOF
7996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8003 # Check for thread headers.
8004 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8005 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8011 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8012 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8019 # These tests can't be done till we know if we have limits.h.
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8021 $as_echo_n "checking for CHAR_BIT... " >&6; }
8022 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 #ifdef HAVE_LIMITS_H
8034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8035 $EGREP "found" >/dev
/null
2>&1; then :
8036 gcc_cv_decl_char_bit
=yes
8038 gcc_cv_decl_char_bit
=no
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8045 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8046 if test $gcc_cv_decl_char_bit = no
; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8048 $as_echo_n "checking number of bits in a byte... " >&6; }
8049 if test "${gcc_cv_c_nbby+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
8054 while test $i -lt 65; do
8055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8062 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8063 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8069 if ac_fn_c_try_compile
"$LINENO"; then :
8070 gcc_cv_c_nbby
=$i; break
8072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8075 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8079 $as_echo "$gcc_cv_c_nbby" >&6; }
8080 if test $gcc_cv_c_nbby = failed
; then
8081 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8084 cat >>confdefs.h
<<_ACEOF
8085 #define CHAR_BIT $gcc_cv_c_nbby
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8091 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8092 if test "${ac_cv_c_bigendian+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8095 ac_cv_c_bigendian
=unknown
8096 # See if we're dealing with a universal compiler.
8097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 #ifndef __APPLE_CC__
8100 not a universal capable compiler
8105 if ac_fn_c_try_compile
"$LINENO"; then :
8107 # Check for potential -arch flags. It is not universal unless
8108 # there are at least two -arch flags with different values.
8111 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8112 if test -n "$ac_prev"; then
8114 i?
86 | x86_64 | ppc | ppc64
)
8115 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8118 ac_cv_c_bigendian
=universal
8124 elif test "x$ac_word" = "x-arch"; then
8129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8130 if test $ac_cv_c_bigendian = unknown
; then
8131 # See if sys/param.h defines the BYTE_ORDER macro.
8132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134 #include <sys/types.h>
8135 #include <sys/param.h>
8140 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8141 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8150 if ac_fn_c_try_compile
"$LINENO"; then :
8151 # It does; now see whether it defined to BIG_ENDIAN or not.
8152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 #include <sys/types.h>
8155 #include <sys/param.h>
8160 #if BYTE_ORDER != BIG_ENDIAN
8168 if ac_fn_c_try_compile
"$LINENO"; then :
8169 ac_cv_c_bigendian
=yes
8171 ac_cv_c_bigendian
=no
8173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8177 if test $ac_cv_c_bigendian = unknown
; then
8178 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8186 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8194 if ac_fn_c_try_compile
"$LINENO"; then :
8195 # It does; now see whether it defined to _BIG_ENDIAN or not.
8196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8211 if ac_fn_c_try_compile
"$LINENO"; then :
8212 ac_cv_c_bigendian
=yes
8214 ac_cv_c_bigendian
=no
8216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8220 if test $ac_cv_c_bigendian = unknown
; then
8221 # Compile a test program.
8222 if test "$cross_compiling" = yes; then :
8223 # Try to guess by grepping values from an object file.
8224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 short int ascii_mm[] =
8227 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8228 short int ascii_ii[] =
8229 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8230 int use_ascii (int i) {
8231 return ascii_mm[i] + ascii_ii[i];
8233 short int ebcdic_ii[] =
8234 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8235 short int ebcdic_mm[] =
8236 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8237 int use_ebcdic (int i) {
8238 return ebcdic_mm[i] + ebcdic_ii[i];
8245 return use_ascii (foo) == use_ebcdic (foo);
8250 if ac_fn_c_try_compile
"$LINENO"; then :
8251 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8252 ac_cv_c_bigendian
=yes
8254 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8255 if test "$ac_cv_c_bigendian" = unknown
; then
8256 ac_cv_c_bigendian
=no
8258 # finding both strings is unlikely to happen, but who knows?
8259 ac_cv_c_bigendian
=unknown
8263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 $ac_includes_default
8272 /* Are we little or big endian? From Harbison&Steele. */
8276 char c[sizeof (long int)];
8279 return u.c[sizeof (long int) - 1] == 1;
8285 if ac_fn_c_try_run
"$LINENO"; then :
8286 ac_cv_c_bigendian
=no
8288 ac_cv_c_bigendian
=yes
8290 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8291 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8297 $as_echo "$ac_cv_c_bigendian" >&6; }
8298 case $ac_cv_c_bigendian in #(
8300 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8306 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8310 as_fn_error
"unknown endianness
8311 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8320 # These libraries may be used by collect2.
8321 # We may need a special search path to get them linked.
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8323 $as_echo_n "checking for collect2 libraries... " >&6; }
8324 if test "${gcc_cv_collect2_libs+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8328 for libs
in '' -lld -lmld \
8329 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8330 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8336 /* Override any GCC internal prototype to avoid an error.
8337 Use char because int might match the return type of a GCC
8338 builtin and then its argument prototype would still apply. */
8351 if ac_fn_c_try_link
"$LINENO"; then :
8352 gcc_cv_collect2_libs
="$libs"; break
8354 rm -f core conftest.err conftest.
$ac_objext \
8355 conftest
$ac_exeext conftest.
$ac_ext
8358 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8361 $as_echo "$gcc_cv_collect2_libs" >&6; }
8362 case $gcc_cv_collect2_libs in
8364 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8368 # When building Ada code on Alpha, we need exc_resume which is usually in
8369 # -lexc. So test for it.
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8373 $as_echo_n "checking for library containing exc_resume... " >&6; }
8374 if test "${ac_cv_search_exc_resume+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8377 ac_func_search_save_LIBS
=$LIBS
8378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8381 /* Override any GCC internal prototype to avoid an error.
8382 Use char because int might match the return type of a GCC
8383 builtin and then its argument prototype would still apply. */
8391 return exc_resume ();
8396 for ac_lib
in '' exc
; do
8397 if test -z "$ac_lib"; then
8398 ac_res
="none required"
8401 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8403 if ac_fn_c_try_link
"$LINENO"; then :
8404 ac_cv_search_exc_resume
=$ac_res
8406 rm -f core conftest.err conftest.
$ac_objext \
8408 if test "${ac_cv_search_exc_resume+set}" = set; then :
8412 if test "${ac_cv_search_exc_resume+set}" = set; then :
8415 ac_cv_search_exc_resume
=no
8418 LIBS
=$ac_func_search_save_LIBS
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8421 $as_echo "$ac_cv_search_exc_resume" >&6; }
8422 ac_res
=$ac_cv_search_exc_resume
8423 if test "$ac_res" != no
; then :
8424 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8432 # Some systems put ldexp and frexp in libm instead of libc; assume
8433 # they're both in the same place. jcf-dump needs them.
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8437 $as_echo_n "checking for library containing ldexp... " >&6; }
8438 if test "${ac_cv_search_ldexp+set}" = set; then :
8439 $as_echo_n "(cached) " >&6
8441 ac_func_search_save_LIBS
=$LIBS
8442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8445 /* Override any GCC internal prototype to avoid an error.
8446 Use char because int might match the return type of a GCC
8447 builtin and then its argument prototype would still apply. */
8460 for ac_lib
in '' m
; do
8461 if test -z "$ac_lib"; then
8462 ac_res
="none required"
8465 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8467 if ac_fn_c_try_link
"$LINENO"; then :
8468 ac_cv_search_ldexp
=$ac_res
8470 rm -f core conftest.err conftest.
$ac_objext \
8472 if test "${ac_cv_search_ldexp+set}" = set; then :
8476 if test "${ac_cv_search_ldexp+set}" = set; then :
8479 ac_cv_search_ldexp
=no
8482 LIBS
=$ac_func_search_save_LIBS
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8485 $as_echo "$ac_cv_search_ldexp" >&6; }
8486 ac_res
=$ac_cv_search_ldexp
8487 if test "$ac_res" != no
; then :
8488 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8496 # Use <inttypes.h> only if it exists,
8497 # doesn't clash with <sys/types.h>, and declares intmax_t.
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8499 $as_echo_n "checking for inttypes.h... " >&6; }
8500 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <sys/types.h>
8506 #include <inttypes.h>
8515 if ac_fn_c_try_compile
"$LINENO"; then :
8516 gcc_cv_header_inttypes_h
=yes
8518 gcc_cv_header_inttypes_h
=no
8520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8524 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8525 if test $gcc_cv_header_inttypes_h = yes; then
8527 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8533 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8534 sysconf strsignal getrusage nl_langinfo \
8535 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8536 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
8538 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8539 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8540 eval as_val
=\$
$as_ac_var
8541 if test "x$as_val" = x
""yes; then :
8542 cat >>confdefs.h
<<_ACEOF
8543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8550 if test x
$ac_cv_func_mbstowcs = xyes
; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8552 $as_echo_n "checking whether mbstowcs works... " >&6; }
8553 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8554 $as_echo_n "(cached) " >&6
8556 if test "$cross_compiling" = yes; then :
8557 gcc_cv_func_mbstowcs_works
=yes
8559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8568 if ac_fn_c_try_run
"$LINENO"; then :
8569 gcc_cv_func_mbstowcs_works
=yes
8571 gcc_cv_func_mbstowcs_works
=no
8573 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8574 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8579 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8580 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8582 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8587 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8588 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8592 cat >>confdefs.h
<<_ACEOF
8598 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8599 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8603 cat >>confdefs.h
<<_ACEOF
8604 #define caddr_t char *
8611 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8612 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8613 gcc_header_sys_mman_h
=yes
8615 gcc_header_sys_mman_h
=no
8618 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8619 if test "x$ac_cv_func_mmap" = x
""yes; then :
8625 if test "$gcc_header_sys_mman_h" != yes \
8626 ||
test "$gcc_func_mmap" != yes; then
8627 gcc_cv_func_mmap_file
=no
8628 gcc_cv_func_mmap_dev_zero
=no
8629 gcc_cv_func_mmap_anon
=no
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8632 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8633 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8634 $as_echo_n "(cached) " >&6
8636 # Add a system to this blacklist if
8637 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8638 # memory area containing the same data that you'd get if you applied
8639 # read() to the same fd. The only system known to have a problem here
8640 # is VMS, where text files have record structure.
8643 gcc_cv_func_mmap_file
=no
;;
8645 gcc_cv_func_mmap_file
=yes;;
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8649 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8651 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8652 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8655 # Add a system to this blacklist if it has mmap() but /dev/zero
8656 # does not exist, or if mmapping /dev/zero does not give anonymous
8657 # zeroed pages with both the following properties:
8658 # 1. If you map N consecutive pages in with one call, and then
8659 # unmap any subset of those pages, the pages that were not
8660 # explicitly unmapped remain accessible.
8661 # 2. If you map two adjacent blocks of memory and then unmap them
8662 # both at once, they must both go away.
8663 # Systems known to be in this category are Windows (all variants),
8666 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
8667 gcc_cv_func_mmap_dev_zero
=no
;;
8669 gcc_cv_func_mmap_dev_zero
=yes;;
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8673 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8675 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8677 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8678 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8683 #include <sys/types.h>
8684 #include <sys/mman.h>
8687 #ifndef MAP_ANONYMOUS
8688 #define MAP_ANONYMOUS MAP_ANON
8694 int n = MAP_ANONYMOUS;
8699 if ac_fn_c_try_compile
"$LINENO"; then :
8700 gcc_cv_decl_map_anon
=yes
8702 gcc_cv_decl_map_anon
=no
8704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8707 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8709 if test $gcc_cv_decl_map_anon = no
; then
8710 gcc_cv_func_mmap_anon
=no
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8713 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8714 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8715 $as_echo_n "(cached) " >&6
8717 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8718 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8719 # doesn't give anonymous zeroed pages with the same properties listed
8720 # above for use of /dev/zero.
8721 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8723 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
8724 gcc_cv_func_mmap_anon
=no
;;
8726 gcc_cv_func_mmap_anon
=yes;;
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8730 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8734 if test $gcc_cv_func_mmap_file = yes; then
8736 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8739 if test $gcc_cv_func_mmap_dev_zero = yes; then
8741 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8744 if test $gcc_cv_func_mmap_anon = yes; then
8746 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8753 # Under VMS, vfork works very differently than on Unix. The standard test
8754 # won't work, and it isn't easily adaptable. It makes more sense to
8756 ac_cv_func_vfork_works
=yes
8759 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8760 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8764 cat >>confdefs.h
<<_ACEOF
8770 for ac_header
in vfork.h
8772 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8773 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8774 cat >>confdefs.h
<<_ACEOF
8775 #define HAVE_VFORK_H 1
8781 for ac_func
in fork vfork
8783 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8784 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8785 eval as_val
=\$
$as_ac_var
8786 if test "x$as_val" = x
""yes; then :
8787 cat >>confdefs.h
<<_ACEOF
8788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8794 if test "x$ac_cv_func_fork" = xyes
; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8796 $as_echo_n "checking for working fork... " >&6; }
8797 if test "${ac_cv_func_fork_works+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8800 if test "$cross_compiling" = yes; then :
8801 ac_cv_func_fork_works
=cross
8803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805 $ac_includes_default
8810 /* By Ruediger Kuhlmann. */
8817 if ac_fn_c_try_run
"$LINENO"; then :
8818 ac_cv_func_fork_works
=yes
8820 ac_cv_func_fork_works
=no
8822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8823 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8828 $as_echo "$ac_cv_func_fork_works" >&6; }
8831 ac_cv_func_fork_works
=$ac_cv_func_fork
8833 if test "x$ac_cv_func_fork_works" = xcross
; then
8835 *-*-amigaos* |
*-*-msdosdjgpp*)
8836 # Override, as these systems have only a dummy fork() stub
8837 ac_cv_func_fork_works
=no
8840 ac_cv_func_fork_works
=yes
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8844 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8846 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8847 if test "x$ac_cv_func_vfork" = xyes
; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8849 $as_echo_n "checking for working vfork... " >&6; }
8850 if test "${ac_cv_func_vfork_works+set}" = set; then :
8851 $as_echo_n "(cached) " >&6
8853 if test "$cross_compiling" = yes; then :
8854 ac_cv_func_vfork_works
=cross
8856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 /* Thanks to Paul Eggert for this test. */
8859 $ac_includes_default
8860 #include <sys/wait.h>
8864 /* On some sparc systems, changes by the child to local and incoming
8865 argument registers are propagated back to the parent. The compiler
8866 is told about this with #include <vfork.h>, but some compilers
8867 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8868 static variable whose address is put into a register that is
8869 clobbered by the vfork. */
8872 sparc_address_test (int arg)
8874 sparc_address_test (arg) int arg;
8895 pid_t parent = getpid ();
8898 sparc_address_test (0);
8903 /* Here is another test for sparc vfork register problems. This
8904 test uses lots of local variables, at least as many local
8905 variables as main has allocated so far including compiler
8906 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8907 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8908 reuse the register of parent for one of the local variables,
8909 since it will think that parent can't possibly be used any more
8910 in this routine. Assigning to the local variable will thus
8911 munge parent in the parent process. */
8913 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8914 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8915 /* Convince the compiler that p..p7 are live; otherwise, it might
8916 use the same hardware register for all 8 local variables. */
8917 if (p != p1 || p != p2 || p != p3 || p != p4
8918 || p != p5 || p != p6 || p != p7)
8921 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8922 from child file descriptors. If the child closes a descriptor
8923 before it execs or exits, this munges the parent's descriptor
8924 as well. Test for this by closing stdout in the child. */
8925 _exit(close(fileno(stdout)) != 0);
8930 while (wait(&status) != child)
8933 /* Was there some problem with vforking? */
8936 /* Did the child fail? (This shouldn't happen.) */
8939 /* Did the vfork/compiler bug occur? */
8940 || parent != getpid()
8942 /* Did the file descriptor bug occur? */
8943 || fstat(fileno(stdout), &st) != 0
8948 if ac_fn_c_try_run
"$LINENO"; then :
8949 ac_cv_func_vfork_works
=yes
8951 ac_cv_func_vfork_works
=no
8953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8959 $as_echo "$ac_cv_func_vfork_works" >&6; }
8962 if test "x$ac_cv_func_fork_works" = xcross
; then
8963 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8965 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8968 if test "x$ac_cv_func_vfork_works" = xyes
; then
8970 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8974 $as_echo "#define vfork fork" >>confdefs.h
8977 if test "x$ac_cv_func_fork_works" = xyes
; then
8979 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8985 if test "X$prefix" = "XNONE"; then
8986 acl_final_prefix
="$ac_default_prefix"
8988 acl_final_prefix
="$prefix"
8990 if test "X$exec_prefix" = "XNONE"; then
8991 acl_final_exec_prefix
='${prefix}'
8993 acl_final_exec_prefix
="$exec_prefix"
8995 acl_save_prefix
="$prefix"
8996 prefix
="$acl_final_prefix"
8997 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8998 prefix
="$acl_save_prefix"
9001 # Check whether --with-gnu-ld was given.
9002 if test "${with_gnu_ld+set}" = set; then :
9003 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9008 # Prepare PATH_SEPARATOR.
9009 # The user is always right.
9010 if test "${PATH_SEPARATOR+set}" != set; then
9011 echo "#! /bin/sh" >conf$$.sh
9012 echo "exit 0" >>conf$$.sh
9014 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9022 if test "$GCC" = yes; then
9023 # Check if gcc -print-prog-name=ld gives a path.
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9025 $as_echo_n "checking for ld used by GCC... " >&6; }
9028 # gcc leaves a trailing carriage return which upsets mingw
9029 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9031 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9034 # Accept absolute paths.
9035 [\\/]* |
[A-Za-z
]:[\\/]*)
9036 re_direlt
='/[^/][^/]*/\.\./'
9037 # Canonicalize the path of ld
9038 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9039 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9040 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9042 test -z "$LD" && LD
="$ac_prog"
9045 # If it fails, then pretend we aren't using GCC.
9049 # If it is relative, then search for the first ld in PATH.
9053 elif test "$with_gnu_ld" = yes; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9055 $as_echo_n "checking for GNU ld... " >&6; }
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9058 $as_echo_n "checking for non-GNU ld... " >&6; }
9060 if test "${acl_cv_path_LD+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9063 if test -z "$LD"; then
9064 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9065 for ac_dir
in $PATH; do
9066 test -z "$ac_dir" && ac_dir
=.
9067 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9068 acl_cv_path_LD
="$ac_dir/$ac_prog"
9069 # Check to see if the program is GNU ld. I'd rather use --version,
9070 # but apparently some GNU ld's only accept -v.
9071 # Break only if it was the GNU/non-GNU ld that we prefer.
9072 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9073 test "$with_gnu_ld" != no
&& break
9075 test "$with_gnu_ld" != yes && break
9081 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9085 LD
="$acl_cv_path_LD"
9086 if test -n "$LD"; then
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9088 $as_echo "$LD" >&6; }
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9093 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9095 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9096 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9099 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9100 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9101 acl_cv_prog_gnu_ld
=yes
9103 acl_cv_prog_gnu_ld
=no
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9107 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9108 with_gnu_ld
=$acl_cv_prog_gnu_ld
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9113 $as_echo_n "checking for shared library run path origin... " >&6; }
9114 if test "${acl_cv_rpath+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9118 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9119 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9126 $as_echo "$acl_cv_rpath" >&6; }
9128 libext
="$acl_cv_libext"
9129 shlibext
="$acl_cv_shlibext"
9130 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9131 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9132 hardcode_direct
="$acl_cv_hardcode_direct"
9133 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9134 # Check whether --enable-rpath was given.
9135 if test "${enable_rpath+set}" = set; then :
9136 enableval
=$enable_rpath; :
9150 acl_save_prefix
="$prefix"
9151 prefix
="$acl_final_prefix"
9152 acl_save_exec_prefix
="$exec_prefix"
9153 exec_prefix
="$acl_final_exec_prefix"
9155 eval additional_includedir
=\"$includedir\"
9156 eval additional_libdir
=\"$libdir\"
9158 exec_prefix
="$acl_save_exec_prefix"
9159 prefix
="$acl_save_prefix"
9162 # Check whether --with-libiconv-prefix was given.
9163 if test "${with_libiconv_prefix+set}" = set; then :
9164 withval
=$with_libiconv_prefix;
9165 if test "X$withval" = "Xno"; then
9168 if test "X$withval" = "X"; then
9170 acl_save_prefix
="$prefix"
9171 prefix
="$acl_final_prefix"
9172 acl_save_exec_prefix
="$exec_prefix"
9173 exec_prefix
="$acl_final_exec_prefix"
9175 eval additional_includedir
=\"$includedir\"
9176 eval additional_libdir
=\"$libdir\"
9178 exec_prefix
="$acl_save_exec_prefix"
9179 prefix
="$acl_save_prefix"
9182 additional_includedir
="$withval/include"
9183 additional_libdir
="$withval/lib"
9194 names_already_handled
=
9195 names_next_round
='iconv '
9196 while test -n "$names_next_round"; do
9197 names_this_round
="$names_next_round"
9199 for name
in $names_this_round; do
9201 for n
in $names_already_handled; do
9202 if test "$n" = "$name"; then
9207 if test -z "$already_handled"; then
9208 names_already_handled
="$names_already_handled $name"
9209 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9210 eval value
=\"\
$HAVE_LIB$uppername\"
9211 if test -n "$value"; then
9212 if test "$value" = yes; then
9213 eval value
=\"\
$LIB$uppername\"
9214 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9215 eval value
=\"\
$LTLIB$uppername\"
9216 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9225 if test $use_additional = yes; then
9226 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9227 found_dir
="$additional_libdir"
9228 found_so
="$additional_libdir/lib$name.$shlibext"
9229 if test -f "$additional_libdir/lib$name.la"; then
9230 found_la
="$additional_libdir/lib$name.la"
9233 if test -f "$additional_libdir/lib$name.$libext"; then
9234 found_dir
="$additional_libdir"
9235 found_a
="$additional_libdir/lib$name.$libext"
9236 if test -f "$additional_libdir/lib$name.la"; then
9237 found_la
="$additional_libdir/lib$name.la"
9242 if test "X$found_dir" = "X"; then
9243 for x
in $LDFLAGS $LTLIBICONV; do
9245 acl_save_prefix
="$prefix"
9246 prefix
="$acl_final_prefix"
9247 acl_save_exec_prefix
="$exec_prefix"
9248 exec_prefix
="$acl_final_exec_prefix"
9250 exec_prefix
="$acl_save_exec_prefix"
9251 prefix
="$acl_save_prefix"
9255 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9256 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9258 found_so
="$dir/lib$name.$shlibext"
9259 if test -f "$dir/lib$name.la"; then
9260 found_la
="$dir/lib$name.la"
9263 if test -f "$dir/lib$name.$libext"; then
9265 found_a
="$dir/lib$name.$libext"
9266 if test -f "$dir/lib$name.la"; then
9267 found_la
="$dir/lib$name.la"
9273 if test "X$found_dir" != "X"; then
9278 if test "X$found_dir" != "X"; then
9279 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9280 if test "X$found_so" != "X"; then
9281 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9282 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9285 for x
in $ltrpathdirs; do
9286 if test "X$x" = "X$found_dir"; then
9291 if test -z "$haveit"; then
9292 ltrpathdirs
="$ltrpathdirs $found_dir"
9294 if test "$hardcode_direct" = yes; then
9295 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9297 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9298 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9300 for x
in $rpathdirs; do
9301 if test "X$x" = "X$found_dir"; then
9306 if test -z "$haveit"; then
9307 rpathdirs
="$rpathdirs $found_dir"
9311 for x
in $LDFLAGS $LIBICONV; do
9313 acl_save_prefix
="$prefix"
9314 prefix
="$acl_final_prefix"
9315 acl_save_exec_prefix
="$exec_prefix"
9316 exec_prefix
="$acl_final_exec_prefix"
9318 exec_prefix
="$acl_save_exec_prefix"
9319 prefix
="$acl_save_prefix"
9321 if test "X$x" = "X-L$found_dir"; then
9326 if test -z "$haveit"; then
9327 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9329 if test "$hardcode_minus_L" != no
; then
9330 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9332 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9338 if test "X$found_a" != "X"; then
9339 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9341 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9344 additional_includedir
=
9345 case "$found_dir" in
9347 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9348 additional_includedir
="$basedir/include"
9351 if test "X$additional_includedir" != "X"; then
9352 if test "X$additional_includedir" != "X/usr/include"; then
9354 if test "X$additional_includedir" = "X/usr/local/include"; then
9355 if test -n "$GCC"; then
9357 linux
*) haveit
=yes;;
9361 if test -z "$haveit"; then
9362 for x
in $CPPFLAGS $INCICONV; do
9364 acl_save_prefix
="$prefix"
9365 prefix
="$acl_final_prefix"
9366 acl_save_exec_prefix
="$exec_prefix"
9367 exec_prefix
="$acl_final_exec_prefix"
9369 exec_prefix
="$acl_save_exec_prefix"
9370 prefix
="$acl_save_prefix"
9372 if test "X$x" = "X-I$additional_includedir"; then
9377 if test -z "$haveit"; then
9378 if test -d "$additional_includedir"; then
9379 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9385 if test -n "$found_la"; then
9386 save_libdir
="$libdir"
9388 */* |
*\\*) .
"$found_la" ;;
9389 *) .
"./$found_la" ;;
9391 libdir
="$save_libdir"
9392 for dep
in $dependency_libs; do
9395 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9396 if test "X$additional_libdir" != "X/usr/lib"; then
9398 if test "X$additional_libdir" = "X/usr/local/lib"; then
9399 if test -n "$GCC"; then
9401 linux
*) haveit
=yes;;
9405 if test -z "$haveit"; then
9407 for x
in $LDFLAGS $LIBICONV; do
9409 acl_save_prefix
="$prefix"
9410 prefix
="$acl_final_prefix"
9411 acl_save_exec_prefix
="$exec_prefix"
9412 exec_prefix
="$acl_final_exec_prefix"
9414 exec_prefix
="$acl_save_exec_prefix"
9415 prefix
="$acl_save_prefix"
9417 if test "X$x" = "X-L$additional_libdir"; then
9422 if test -z "$haveit"; then
9423 if test -d "$additional_libdir"; then
9424 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9428 for x
in $LDFLAGS $LTLIBICONV; do
9430 acl_save_prefix
="$prefix"
9431 prefix
="$acl_final_prefix"
9432 acl_save_exec_prefix
="$exec_prefix"
9433 exec_prefix
="$acl_final_exec_prefix"
9435 exec_prefix
="$acl_save_exec_prefix"
9436 prefix
="$acl_save_prefix"
9438 if test "X$x" = "X-L$additional_libdir"; then
9443 if test -z "$haveit"; then
9444 if test -d "$additional_libdir"; then
9445 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9452 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9453 if test "$enable_rpath" != no
; then
9455 for x
in $rpathdirs; do
9456 if test "X$x" = "X$dir"; then
9461 if test -z "$haveit"; then
9462 rpathdirs
="$rpathdirs $dir"
9465 for x
in $ltrpathdirs; do
9466 if test "X$x" = "X$dir"; then
9471 if test -z "$haveit"; then
9472 ltrpathdirs
="$ltrpathdirs $dir"
9477 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9480 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9483 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9484 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9490 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9491 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9497 if test "X$rpathdirs" != "X"; then
9498 if test -n "$hardcode_libdir_separator"; then
9500 for found_dir
in $rpathdirs; do
9501 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9503 acl_save_libdir
="$libdir"
9505 eval flag
=\"$hardcode_libdir_flag_spec\"
9506 libdir
="$acl_save_libdir"
9507 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9509 for found_dir
in $rpathdirs; do
9510 acl_save_libdir
="$libdir"
9512 eval flag
=\"$hardcode_libdir_flag_spec\"
9513 libdir
="$acl_save_libdir"
9514 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9518 if test "X$ltrpathdirs" != "X"; then
9519 for found_dir
in $ltrpathdirs; do
9520 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9530 am_save_CPPFLAGS
="$CPPFLAGS"
9532 for element
in $INCICONV; do
9534 for x
in $CPPFLAGS; do
9536 acl_save_prefix
="$prefix"
9537 prefix
="$acl_final_prefix"
9538 acl_save_exec_prefix
="$exec_prefix"
9539 exec_prefix
="$acl_final_exec_prefix"
9541 exec_prefix
="$acl_save_exec_prefix"
9542 prefix
="$acl_save_prefix"
9544 if test "X$x" = "X$element"; then
9549 if test -z "$haveit"; then
9550 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9556 $as_echo_n "checking for iconv... " >&6; }
9557 if test "${am_cv_func_iconv+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9561 am_cv_func_iconv
="no, consider installing GNU libiconv"
9563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9570 iconv_t cd = iconv_open("","");
9571 iconv(cd,NULL,NULL,NULL,NULL);
9577 if ac_fn_c_try_link
"$LINENO"; then :
9578 am_cv_func_iconv
=yes
9580 rm -f core conftest.err conftest.
$ac_objext \
9581 conftest
$ac_exeext conftest.
$ac_ext
9582 if test "$am_cv_func_iconv" != yes; then
9583 am_save_LIBS
="$LIBS"
9584 LIBS
="$LIBS $LIBICONV"
9585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9592 iconv_t cd = iconv_open("","");
9593 iconv(cd,NULL,NULL,NULL,NULL);
9599 if ac_fn_c_try_link
"$LINENO"; then :
9601 am_cv_func_iconv
=yes
9603 rm -f core conftest.err conftest.
$ac_objext \
9604 conftest
$ac_exeext conftest.
$ac_ext
9605 LIBS
="$am_save_LIBS"
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9610 $as_echo "$am_cv_func_iconv" >&6; }
9611 if test "$am_cv_func_iconv" = yes; then
9613 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9616 if test "$am_cv_lib_iconv" = yes; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9618 $as_echo_n "checking how to link with libiconv... " >&6; }
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9620 $as_echo "$LIBICONV" >&6; }
9622 CPPFLAGS
="$am_save_CPPFLAGS"
9629 if test "$am_cv_func_iconv" = yes; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9631 $as_echo_n "checking for iconv declaration... " >&6; }
9632 if test "${am_cv_proto_iconv+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
9636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9645 #if defined(__STDC__) || defined(__cplusplus)
9646 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9659 if ac_fn_c_try_compile
"$LINENO"; then :
9660 am_cv_proto_iconv_arg1
=""
9662 am_cv_proto_iconv_arg1
="const"
9664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9665 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);"
9668 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9670 }$am_cv_proto_iconv" >&5
9672 }$am_cv_proto_iconv" >&6; }
9674 cat >>confdefs.h
<<_ACEOF
9675 #define ICONV_CONST $am_cv_proto_iconv_arg1
9680 # Until we have in-tree GNU iconv:
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9686 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9687 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9688 $as_echo_n "(cached) " >&6
9690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9701 if ac_fn_c_try_link
"$LINENO"; then :
9702 am_cv_val_LC_MESSAGES
=yes
9704 am_cv_val_LC_MESSAGES
=no
9706 rm -f core conftest.err conftest.
$ac_objext \
9707 conftest
$ac_exeext conftest.
$ac_ext
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9710 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9711 if test $am_cv_val_LC_MESSAGES = yes; then
9713 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9720 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9721 if test "${am_cv_langinfo_codeset+set}" = set; then :
9722 $as_echo_n "(cached) " >&6
9724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9726 #include <langinfo.h>
9730 char* cs = nl_langinfo(CODESET);
9735 if ac_fn_c_try_link
"$LINENO"; then :
9736 am_cv_langinfo_codeset
=yes
9738 am_cv_langinfo_codeset
=no
9740 rm -f core conftest.err conftest.
$ac_objext \
9741 conftest
$ac_exeext conftest.
$ac_ext
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9745 $as_echo "$am_cv_langinfo_codeset" >&6; }
9746 if test $am_cv_langinfo_codeset = yes; then
9748 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9753 # We will need to find libiberty.h and ansidecl.h
9754 saved_CFLAGS
="$CFLAGS"
9755 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9756 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
9757 strsignal strstr strverscmp \
9758 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9759 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
9761 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9763 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9764 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9765 $as_echo_n "(cached) " >&6
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9770 #define $ac_tr_decl 1
9772 #include "ansidecl.h"
9779 char *(*pfn) = (char *(*)) $ac_func ;
9785 if ac_fn_c_try_compile
"$LINENO"; then :
9786 eval "gcc_cv_have_decl_$ac_func=yes"
9788 eval "gcc_cv_have_decl_$ac_func=no"
9790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9793 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9795 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9796 #define $ac_tr_decl 1
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9802 #define $ac_tr_decl 0
9810 for ac_func
in getrlimit setrlimit getrusage
9812 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9814 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9815 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9816 $as_echo_n "(cached) " >&6
9818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9821 #define $ac_tr_decl 1
9823 #include "ansidecl.h"
9825 #ifdef HAVE_SYS_RESOURCE_H
9826 #include <sys/resource.h>
9834 char *(*pfn) = (char *(*)) $ac_func ;
9840 if ac_fn_c_try_compile
"$LINENO"; then :
9841 eval "gcc_cv_have_decl_$ac_func=yes"
9843 eval "gcc_cv_have_decl_$ac_func=no"
9845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9848 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9850 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9851 #define $ac_tr_decl 1
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9857 #define $ac_tr_decl 0
9865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9868 #include "ansidecl.h"
9870 #ifdef HAVE_SYS_RESOURCE_H
9871 #include <sys/resource.h>
9882 if ac_fn_c_try_compile
"$LINENO"; then :
9886 $as_echo "#define rlim_t long" >>confdefs.h
9889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9891 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9892 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9893 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9894 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9895 for ac_func
in ldgetname
9897 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9899 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9900 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9901 $as_echo_n "(cached) " >&6
9903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9906 #define $ac_tr_decl 1
9908 #include "ansidecl.h"
9921 char *(*pfn) = (char *(*)) $ac_func ;
9927 if ac_fn_c_try_compile
"$LINENO"; then :
9928 eval "gcc_cv_have_decl_$ac_func=yes"
9930 eval "gcc_cv_have_decl_$ac_func=no"
9932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9935 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9937 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9938 #define $ac_tr_decl 1
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9944 #define $ac_tr_decl 0
9952 for ac_func
in times
9954 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9956 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9957 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9958 $as_echo_n "(cached) " >&6
9960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9963 #define $ac_tr_decl 1
9965 #include "ansidecl.h"
9967 #ifdef HAVE_SYS_TIMES_H
9968 #include <sys/times.h>
9976 char *(*pfn) = (char *(*)) $ac_func ;
9982 if ac_fn_c_try_compile
"$LINENO"; then :
9983 eval "gcc_cv_have_decl_$ac_func=yes"
9985 eval "gcc_cv_have_decl_$ac_func=no"
9987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9990 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9992 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9993 #define $ac_tr_decl 1
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9999 #define $ac_tr_decl 0
10007 for ac_func
in sigaltstack
10009 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10011 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10012 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10013 $as_echo_n "(cached) " >&6
10015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10018 #define $ac_tr_decl 1
10020 #include "ansidecl.h"
10021 #include "system.h"
10022 #include <signal.h>
10029 char *(*pfn) = (char *(*)) $ac_func ;
10035 if ac_fn_c_try_compile
"$LINENO"; then :
10036 eval "gcc_cv_have_decl_$ac_func=yes"
10038 eval "gcc_cv_have_decl_$ac_func=no"
10040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10043 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10045 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10046 #define $ac_tr_decl 1
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10052 #define $ac_tr_decl 0
10060 # More time-related stuff.
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10062 $as_echo_n "checking for struct tms... " >&6; }
10063 if test "${ac_cv_struct_tms+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
10067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10070 #include "ansidecl.h"
10071 #include "system.h"
10072 #ifdef HAVE_SYS_TIMES_H
10073 #include <sys/times.h>
10084 if ac_fn_c_try_compile
"$LINENO"; then :
10085 ac_cv_struct_tms
=yes
10087 ac_cv_struct_tms
=no
10089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10092 $as_echo "$ac_cv_struct_tms" >&6; }
10093 if test $ac_cv_struct_tms = yes; then
10095 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10099 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10100 # revisit after autoconf 2.50.
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10102 $as_echo_n "checking for clock_t... " >&6; }
10103 if test "${gcc_cv_type_clock_t+set}" = set; then :
10104 $as_echo_n "(cached) " >&6
10107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10110 #include "ansidecl.h"
10111 #include "system.h"
10121 if ac_fn_c_try_compile
"$LINENO"; then :
10122 gcc_cv_type_clock_t
=yes
10124 gcc_cv_type_clock_t
=no
10126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10129 $as_echo "$gcc_cv_type_clock_t" >&6; }
10130 if test $gcc_cv_type_clock_t = yes; then
10132 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10136 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10137 CFLAGS
="$saved_CFLAGS"
10139 # Check whether --enable-initfini-array was given.
10140 if test "${enable_initfini_array+set}" = set; then :
10141 enableval
=$enable_initfini_array;
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10145 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10146 if test "${gcc_cv_initfini_array+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
10149 if test "$cross_compiling" = yes; then :
10150 gcc_cv_initfini_array
=no
10152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10156 int main (void) { return x; }
10157 int foo (void) { x = 0; }
10158 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10160 if ac_fn_c_try_run
"$LINENO"; then :
10161 gcc_cv_initfini_array
=yes
10163 gcc_cv_initfini_array
=no
10165 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10166 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10171 $as_echo "$gcc_cv_initfini_array" >&6; }
10172 enable_initfini_array
=$gcc_cv_initfini_array
10176 if test $enable_initfini_array = yes; then
10178 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10182 # mkdir takes a single argument on some systems.
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10184 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10185 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
10188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 #include <sys/types.h>
10192 #ifdef HAVE_SYS_STAT_H
10193 # include <sys/stat.h>
10195 #ifdef HAVE_UNISTD_H
10196 # include <unistd.h>
10198 #ifdef HAVE_DIRECT_H
10199 # include <direct.h>
10209 if ac_fn_c_try_compile
"$LINENO"; then :
10210 gcc_cv_mkdir_takes_one_arg
=no
10212 gcc_cv_mkdir_takes_one_arg
=yes
10214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10217 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10218 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10220 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10231 # With Setjmp/Longjmp based exception handling.
10232 # Check whether --enable-sjlj-exceptions was given.
10233 if test "${enable_sjlj_exceptions+set}" = set; then :
10234 enableval
=$enable_sjlj_exceptions; case $target in
10236 if test $enableval != yes; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10238 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10243 force_sjlj_exceptions
=yes
10247 force_sjlj_exceptions
=yes
10251 force_sjlj_exceptions
=no
10256 if test $force_sjlj_exceptions = yes; then
10257 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10259 cat >>confdefs.h
<<_ACEOF
10260 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10265 # For platforms with the unwind ABI which includes an unwind library,
10266 # libunwind, we can choose to use the system libunwind.
10267 # config.gcc also contains tests of with_system_libunwind.
10270 # Check whether --with-system-libunwind was given.
10271 if test "${with_system_libunwind+set}" = set; then :
10272 withval
=$with_system_libunwind;
10275 # If system-libunwind was not specifically set, pick a default setting.
10276 if test x
$with_system_libunwind = x
; then
10278 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10279 *) with_system_libunwind
=no
;;
10282 # Based on system-libunwind and target, do we have ipinfo?
10283 if test x
$with_system_libunwind = xyes
; then
10285 ia64-
*-*) have_unwind_getipinfo
=no
;;
10286 *) have_unwind_getipinfo
=yes ;;
10289 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10292 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10293 *) have_unwind_getipinfo
=yes ;;
10298 if test x
$have_unwind_getipinfo = xyes
; then
10300 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10305 # --------------------------------------------------------
10306 # Build, host, and target specific configuration fragments
10307 # --------------------------------------------------------
10309 # Collect build-machine-specific information.
10310 .
${srcdir}/config.build
10312 # Collect host-machine-specific information.
10313 .
${srcdir}/config.
host
10317 # Collect target-machine-specific information.
10318 .
${srcdir}/config.gcc
10320 extra_objs
="${host_extra_objs} ${extra_objs}"
10321 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10323 # Default the target-machine variables that were not explicitly set.
10324 if test x
"$tm_file" = x
10325 then tm_file
=$cpu_type/$cpu_type.h
; fi
10327 if test x
"$extra_headers" = x
10328 then extra_headers
=; fi
10330 if test x
$md_file = x
10331 then md_file
=$cpu_type/$cpu_type.md
; fi
10333 if test x
$out_file = x
10334 then out_file
=$cpu_type/$cpu_type.c
; fi
10336 if test x
"$tmake_file" = x
10337 then tmake_file
=$cpu_type/t-
$cpu_type
10340 if test x
"$dwarf2" = xyes
10341 then tm_file
="$tm_file tm-dwarf2.h"
10344 # Say what files are being used for the output code and MD file.
10345 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10346 echo "Using \`$srcdir/config/$md_file' as machine description file."
10348 # If any of the xm_file variables contain nonexistent files, warn
10349 # about them and drop them.
10352 for x
in $build_xm_file; do
10353 if test -f $srcdir/config
/$x
10355 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10356 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10359 build_xm_file
="$bx"
10362 for x
in $host_xm_file; do
10363 if test -f $srcdir/config
/$x
10365 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10366 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10372 for x
in $xm_file; do
10373 if test -f $srcdir/config
/$x
10375 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10376 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10382 for f
in $tm_file; do
10385 if test $count = ax
; then
10386 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10388 echo "Using the following target machine macro files:"
10389 for f
in $tm_file; do
10390 echo " $srcdir/config/$f"
10394 if test x
$need_64bit_hwint = xyes
; then
10396 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10400 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10402 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10407 for f
in $host_xm_file; do
10410 if test $count = a
; then
10412 elif test $count = ax
; then
10413 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10415 echo "Using the following host machine macro files:"
10416 for f
in $host_xm_file; do
10417 echo " $srcdir/config/$f"
10420 echo "Using ${out_host_hook_obj} for host machine hooks."
10422 if test "$host_xm_file" != "$build_xm_file"; then
10424 for f
in $build_xm_file; do
10427 if test $count = a
; then
10429 elif test $count = ax
; then
10430 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10432 echo "Using the following build machine macro files:"
10433 for f
in $build_xm_file; do
10434 echo " $srcdir/config/$f"
10440 powerpc
*-*-darwin*)
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10442 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10443 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10449 #include <sys/cdefs.h>
10450 #include <sys/signal.h>
10451 #include <ucontext.h>
10452 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10455 if ac_fn_c_try_compile
"$LINENO"; then :
10456 gcc_cv_mcontext_underscores
=no
10458 gcc_cv_mcontext_underscores
=yes
10460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10463 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10464 if test $gcc_cv_mcontext_underscores = yes; then
10466 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10476 # Check if a valid thread package
10477 case ${enable_threads} in
10480 target_thread_file
='single'
10484 target_thread_file
='single'
10486 aix | dce | gnat | irix | posix | posix95 | rtems | \
10487 single | solaris | vxworks | win32 | mipssde
)
10488 target_thread_file
=${enable_threads}
10491 echo "${enable_threads} is an unknown thread package" 1>&2
10496 if test x
${thread_file} = x
; then
10497 # No thread file set by target-specific clauses in config.gcc,
10498 # so use file chosen by default logic above
10499 thread_file
=${target_thread_file}
10502 # Make gthr-default.h if we have a thread file.
10504 if test $thread_file != single
; then
10505 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10506 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10507 rm -f gthr-default.h-t
10509 mv -f gthr-default.h-t gthr-default.h
10511 gthread_flags
=-DHAVE_GTHR_DEFAULT
10520 if test x
$enable___cxa_atexit = xyes || \
10521 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10522 if test x
$host = x
$target; then
10524 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10525 # keyed to flag_use_cxa_atexit
10530 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10531 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10534 echo "__cxa_atexit can't be enabled on this target"
10540 # We can't check for __cxa_atexit when building a cross, so assume
10544 if test x
$use_cxa_atexit = xyes
; then
10546 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10551 # Look for a file containing extra machine modes.
10552 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10553 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10556 cat >>confdefs.h
<<_ACEOF
10557 #define EXTRA_MODES_FILE "config/$extra_modes"
10562 # Convert extra_options into a form suitable for Makefile use.
10564 for f
in $extra_options; do
10565 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10569 # auto-host.h is the file containing items generated by autoconf and is
10570 # the first file included by config.h.
10571 # If host=build, it is correct to have bconfig include auto-host.h
10572 # as well. If host!=build, we are in error and need to do more
10573 # work to find out the build config parameters.
10574 if test x
$host = x
$build
10576 build_auto
=auto-host.h
10578 # We create a subdir, then run autoconf in the subdir.
10579 # To prevent recursion we set host and build for the new
10580 # invocation of configure to the build for this invocation
10587 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10588 *) realsrcdir
=..
/${srcdir};;
10590 saved_CFLAGS
="${CFLAGS}"
10591 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10592 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10593 ${realsrcdir}/configure \
10594 --enable-languages=${enable_languages-all} \
10595 --target=$target_alias --host=$build_alias --build=$build_alias
10596 CFLAGS
="${saved_CFLAGS}"
10598 # We just finished tests for the build machine, so rename
10599 # the file auto-build.h in the gcc directory.
10600 mv auto-host.h ..
/auto-build.h
10603 build_auto
=auto-build.h
10607 tm_file
="${tm_file} defaults.h"
10608 tm_p_file
="${tm_p_file} tm-preds.h"
10609 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10610 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10611 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10612 # put this back in temporarily.
10613 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10619 # Compile in configure arguments.
10620 if test -f configargs.h
; then
10621 # Being re-configured.
10622 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10623 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10625 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10628 # Double all backslashes and backslash all quotes to turn
10629 # gcc_config_arguments into a C string.
10630 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10631 $gcc_config_arguments
10633 gcc_config_arguments_str
=`cat conftest.out`
10636 cat > configargs.h
<<EOF
10637 /* Generated automatically. */
10638 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10639 static const char thread_model[] = "$thread_file";
10641 static const struct {
10642 const char *name, *value;
10643 } configure_default_options[] = $configure_default_options;
10646 gcc_BASEVER
=`cat $srcdir/BASE-VER`
10647 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
10648 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
10649 if test -f $srcdir/REVISION
; then
10650 gcc_REVISION
=`cat $srcdir/REVISION`
10654 cat > plugin-version.h
<<EOF
10655 #include "configargs.h"
10657 static char basever[] = "$gcc_BASEVER";
10658 static char datestamp[] = "$gcc_DATESTAMP";
10659 static char devphase[] = "$gcc_DEVPHASE";
10660 static char revision[] = "$gcc_REVISION";
10662 /* FIXME plugins: We should make the version information more precise.
10663 One way to do is to add a checksum. */
10665 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10666 devphase, revision,
10667 configuration_arguments};
10670 # Internationalization
10671 # If we haven't got the data from the intl directory,
10672 # assume NLS is disabled.
10681 if test -f ..
/intl
/config.intl
; then
10682 . ..
/intl
/config.intl
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10685 $as_echo_n "checking whether NLS is requested... " >&6; }
10686 if test x
"$USE_NLS" != xyes
; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10691 $as_echo "yes" >&6; }
10693 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10697 $as_echo_n "checking for catalogs to be installed... " >&6; }
10698 # Look for .po and .gmo files in the source directory.
10701 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10702 # If there aren't any .gmo files the shell will give us the
10703 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10705 case "$cat" in *\
**)
10708 # The quadruple backslash is collapsed to a double backslash
10709 # by the backticks, then collapsed again by the double quotes,
10710 # leaving us with one backslash in the sed expression (right
10711 # before the dot that mustn't act as a wildcard).
10712 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10713 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10714 # The user is allowed to set LINGUAS to a list of languages to
10715 # install catalogs for. If it's empty that means "all of them."
10716 if test "x$LINGUAS" = x
; then
10717 CATALOGS
="$CATALOGS $cat"
10718 XLINGUAS
="$XLINGUAS $lang"
10720 case "$LINGUAS" in *$lang*)
10721 CATALOGS
="$CATALOGS $cat"
10722 XLINGUAS
="$XLINGUAS $lang"
10727 LINGUAS
="$XLINGUAS"
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10729 $as_echo "$LINGUAS" >&6; }
10742 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10743 # -liconv on the link line twice.
10744 case "$LIBINTL" in *$LIBICONV*)
10748 # Check whether --enable-secureplt was given.
10749 if test "${enable_secureplt+set}" = set; then :
10750 enableval
=$enable_secureplt;
10754 # Check whether --enable-cld was given.
10755 if test "${enable_cld+set}" = set; then :
10756 enableval
=$enable_cld;
10762 # Windows32 Registry support for specifying GCC installation paths.
10763 # Check whether --enable-win32-registry was given.
10764 if test "${enable_win32_registry+set}" = set; then :
10765 enableval
=$enable_win32_registry;
10770 win32 | pe | cygwin
* | mingw32
* | uwin
*)
10771 if test "x$enable_win32_registry" != xno
; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10773 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10774 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10775 $as_echo_n "(cached) " >&6
10777 ac_func_search_save_LIBS
=$LIBS
10778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10787 char RegOpenKeyExA ();
10791 return RegOpenKeyExA ();
10796 for ac_lib
in '' advapi32
; do
10797 if test -z "$ac_lib"; then
10798 ac_res
="none required"
10801 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10803 if ac_fn_c_try_link
"$LINENO"; then :
10804 ac_cv_search_RegOpenKeyExA
=$ac_res
10806 rm -f core conftest.err conftest.
$ac_objext \
10808 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10812 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10815 ac_cv_search_RegOpenKeyExA
=no
10817 rm conftest.
$ac_ext
10818 LIBS
=$ac_func_search_save_LIBS
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10821 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10822 ac_res
=$ac_cv_search_RegOpenKeyExA
10823 if test "$ac_res" != no
; then :
10824 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10827 enable_win32_registry
=no
10832 if test "x$enable_win32_registry" != xno
; then
10834 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10837 if test "x$enable_win32_registry" != xyes \
10838 && test "x$enable_win32_registry" != x
; then
10840 cat >>confdefs.h
<<_ACEOF
10841 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10849 # Get an absolute path to the GCC top-level source directory
10850 holddir
=`${PWDCMD-pwd}`
10852 topdir
=`${PWDCMD-pwd}`
10855 # Conditionalize the makefile for this host machine.
10857 for f
in ${host_xmake_file}
10859 if test -f ${srcdir}/config
/$f
10861 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
10865 # Conditionalize the makefile for this target machine.
10867 for f
in ${tmake_file}
10869 if test -f ${srcdir}/config
/$f
10871 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
10874 tmake_file
="${tmake_file_}"
10876 out_object_file
=`basename $out_file .c`.o
10878 tm_file_list
="options.h"
10879 tm_include_list
="options.h"
10880 for f
in $tm_file; do
10883 f
=`echo $f | sed 's/^..//'`
10884 tm_file_list
="${tm_file_list} $f"
10885 tm_include_list
="${tm_include_list} $f"
10888 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
10889 tm_include_list
="${tm_include_list} $f"
10892 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
10893 tm_include_list
="${tm_include_list} config/$f"
10900 for f
in $tm_p_file; do
10903 tm_p_file_list
="${tm_p_file_list} $f"
10904 tm_p_include_list
="${tm_p_include_list} $f"
10907 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
10908 tm_p_include_list
="${tm_p_include_list} config/$f"
10914 for f
in $xm_file; do
10917 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
10918 xm_include_list
="${xm_include_list} $f"
10921 xm_file_list
="${xm_file_list} $f"
10922 xm_include_list
="${xm_include_list} $f"
10925 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
10926 xm_include_list
="${xm_include_list} config/$f"
10932 host_xm_include_list
=
10933 for f
in $host_xm_file; do
10936 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
10937 host_xm_include_list
="${host_xm_include_list} $f"
10940 host_xm_file_list
="${host_xm_file_list} $f"
10941 host_xm_include_list
="${host_xm_include_list} $f"
10944 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
10945 host_xm_include_list
="${host_xm_include_list} config/$f"
10950 build_xm_file_list
=
10951 for f
in $build_xm_file; do
10954 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
10955 build_xm_include_list
="${build_xm_include_list} $f"
10957 auto-build.h | auto-host.h
)
10958 build_xm_file_list
="${build_xm_file_list} $f"
10959 build_xm_include_list
="${build_xm_include_list} $f"
10962 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
10963 build_xm_include_list
="${build_xm_include_list} config/$f"
10968 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10969 # cross-compiler which does not use the native headers and libraries.
10970 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10973 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10975 if test "x$with_build_sysroot" != x
; then
10976 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10978 # This value is used, even on a native system, because
10979 # CROSS_SYSTEM_HEADER_DIR is just
10980 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10981 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
10984 if test x
$host != x
$target
10986 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
10988 SYSTEM_HEADER_DIR
=$build_system_header_dir
10989 case "$host","$target" in
10990 # Darwin crosses can use the host system's libraries and headers,
10991 # because of the fat library support. Of course, it must be the
10992 # same version of Darwin on both sides. Allow the user to
10993 # just say --target=foo-darwin without a version number to mean
10994 # "the version on this system".
10995 *-*-darwin*,*-*-darwin*)
10996 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10997 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10998 if test $hostos = $targetos -o $targetos = darwin
; then
11000 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11005 i?
86-*-*,x86_64-
*-* \
11006 | powerpc
*-*-*,powerpc64
*-*-*)
11007 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11009 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11010 SYSTEM_HEADER_DIR
=$build_system_header_dir
11013 # If this is a cross-compiler that does not
11014 # have its own set of headers then define
11017 # If this is using newlib, without having the headers available now,
11018 # then define inhibit_libc in LIBGCC2_CFLAGS.
11019 # This prevents libgcc2 from containing any code which requires libc
11021 : ${inhibit_libc=false}
11022 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11023 test x
$with_newlib = xyes
; } &&
11024 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11029 # When building gcc with a cross-compiler, we need to adjust things so
11030 # that the generator programs are still built with the native compiler.
11031 # Also, we cannot run fixincludes.
11033 # These are the normal (build=host) settings:
11034 CC_FOR_BUILD
='$(CC)'
11035 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11036 BUILD_LDFLAGS
='$(LDFLAGS)'
11037 STMP_FIXINC
=stmp-fixinc
11039 # And these apply if build != host, or we are generating coverage data
11040 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11042 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11043 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11046 # Expand extra_headers to include complete path.
11047 # This substitutes for lots of t-* files.
11048 extra_headers_list
=
11049 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11050 for file in ${extra_headers} ; do
11051 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11054 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11055 if test x
"$use_gcc_tgmath" = xyes
11056 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11059 # Define collect2 in Makefile.
11060 case $host_can_use_collect2 in
11062 *) collect2
='collect2$(exeext)' ;;
11066 # Add a definition of USE_COLLECT2 if system wants one.
11067 case $use_collect2 in
11068 no
) use_collect2
= ;;
11071 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11072 xm_defines
="${xm_defines} USE_COLLECT2"
11073 case $host_can_use_collect2 in
11075 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11081 # ---------------------------
11082 # Assembler & linker features
11083 # ---------------------------
11085 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11086 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11087 # However when ld-new is first executed from the build tree, libtool will
11088 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11089 # to the build tree. While doing this we need to use the previous-stage
11090 # linker, or we have an infinite loop. The presence of a shell script as
11091 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11092 # the gcc/collect-ld script. So we need to know how libtool works, or
11093 # exec-tool will fail.
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11099 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11104 macro_version
='2.2.6'
11105 macro_revision
='1.3012'
11119 ltmain
="$ac_aux_dir/ltmain.sh"
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11122 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11123 if test "${ac_cv_path_SED+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
11126 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
11127 for ac_i
in 1 2 3 4 5 6 7; do
11128 ac_script
="$ac_script$as_nl$ac_script"
11130 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
11131 { ac_script
=; unset ac_script
;}
11132 if test -z "$SED"; then
11133 ac_path_SED_found
=false
11134 # Loop through the user's path and test for each of PROGNAME-LIST
11135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11136 for as_dir
in $PATH
11139 test -z "$as_dir" && as_dir
=.
11140 for ac_prog
in sed gsed
; do
11141 for ac_exec_ext
in '' $ac_executable_extensions; do
11142 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11143 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11144 # Check for GNU ac_path_SED and select it if it is found.
11145 # Check for GNU $ac_path_SED
11146 case `"$ac_path_SED" --version 2>&1` in
11148 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11151 $as_echo_n 0123456789 >"conftest.in"
11154 cat "conftest.in" "conftest.in" >"conftest.tmp"
11155 mv "conftest.tmp" "conftest.in"
11156 cp "conftest.in" "conftest.nl"
11157 $as_echo '' >> "conftest.nl"
11158 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11159 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11160 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11161 if test $ac_count -gt ${ac_path_SED_max-0}; then
11162 # Best one so far, save it but keep looking for a better one
11163 ac_cv_path_SED
="$ac_path_SED"
11164 ac_path_SED_max
=$ac_count
11166 # 10*(2^10) chars as input seems more than enough
11167 test $ac_count -gt 10 && break
11169 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11172 $ac_path_SED_found && break 3
11177 if test -z "$ac_cv_path_SED"; then
11178 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11181 ac_cv_path_SED
=$SED
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11186 $as_echo "$ac_cv_path_SED" >&6; }
11187 SED
="$ac_cv_path_SED"
11190 test -z "$SED" && SED
=sed
11191 Xsed
="$SED -e 1s/^X//"
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11204 $as_echo_n "checking for fgrep... " >&6; }
11205 if test "${ac_cv_path_FGREP+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11208 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11209 then ac_cv_path_FGREP
="$GREP -F"
11211 if test -z "$FGREP"; then
11212 ac_path_FGREP_found
=false
11213 # Loop through the user's path and test for each of PROGNAME-LIST
11214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11215 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11218 test -z "$as_dir" && as_dir
=.
11219 for ac_prog
in fgrep
; do
11220 for ac_exec_ext
in '' $ac_executable_extensions; do
11221 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11222 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11223 # Check for GNU ac_path_FGREP and select it if it is found.
11224 # Check for GNU $ac_path_FGREP
11225 case `"$ac_path_FGREP" --version 2>&1` in
11227 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11230 $as_echo_n 0123456789 >"conftest.in"
11233 cat "conftest.in" "conftest.in" >"conftest.tmp"
11234 mv "conftest.tmp" "conftest.in"
11235 cp "conftest.in" "conftest.nl"
11236 $as_echo 'FGREP' >> "conftest.nl"
11237 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11238 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11239 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11240 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11241 # Best one so far, save it but keep looking for a better one
11242 ac_cv_path_FGREP
="$ac_path_FGREP"
11243 ac_path_FGREP_max
=$ac_count
11245 # 10*(2^10) chars as input seems more than enough
11246 test $ac_count -gt 10 && break
11248 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11251 $ac_path_FGREP_found && break 3
11256 if test -z "$ac_cv_path_FGREP"; then
11257 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11260 ac_cv_path_FGREP
=$FGREP
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11266 $as_echo "$ac_cv_path_FGREP" >&6; }
11267 FGREP
="$ac_cv_path_FGREP"
11270 test -z "$GREP" && GREP
=grep
11290 # Check whether --with-gnu-ld was given.
11291 if test "${with_gnu_ld+set}" = set; then :
11292 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11298 if test "$GCC" = yes; then
11299 # Check if gcc -print-prog-name=ld gives a path.
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11301 $as_echo_n "checking for ld used by $CC... " >&6; }
11304 # gcc leaves a trailing carriage return which upsets mingw
11305 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11307 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11310 # Accept absolute paths.
11312 re_direlt
='/[^/][^/]*/\.\./'
11313 # Canonicalize the pathname of ld
11314 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11315 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11316 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11318 test -z "$LD" && LD
="$ac_prog"
11321 # If it fails, then pretend we aren't using GCC.
11325 # If it is relative, then search for the first ld in PATH.
11326 with_gnu_ld
=unknown
11329 elif test "$with_gnu_ld" = yes; then
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11331 $as_echo_n "checking for GNU ld... " >&6; }
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11334 $as_echo_n "checking for non-GNU ld... " >&6; }
11336 if test "${lt_cv_path_LD+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
11339 if test -z "$LD"; then
11340 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11341 for ac_dir
in $PATH; do
11343 test -z "$ac_dir" && ac_dir
=.
11344 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11345 lt_cv_path_LD
="$ac_dir/$ac_prog"
11346 # Check to see if the program is GNU ld. I'd rather use --version,
11347 # but apparently some variants of GNU ld only accept -v.
11348 # Break only if it was the GNU/non-GNU ld that we prefer.
11349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11350 *GNU
* |
*'with BFD'*)
11351 test "$with_gnu_ld" != no
&& break
11354 test "$with_gnu_ld" != yes && break
11361 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11365 LD
="$lt_cv_path_LD"
11366 if test -n "$LD"; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11368 $as_echo "$LD" >&6; }
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11373 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11376 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11377 $as_echo_n "(cached) " >&6
11379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11380 case `$LD -v 2>&1 </dev/null` in
11381 *GNU
* |
*'with BFD'*)
11382 lt_cv_prog_gnu_ld
=yes
11385 lt_cv_prog_gnu_ld
=no
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11391 with_gnu_ld
=$lt_cv_prog_gnu_ld
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11402 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11403 if test "${lt_cv_path_NM+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11406 if test -n "$NM"; then
11407 # Let the user override the test.
11408 lt_cv_path_NM
="$NM"
11410 lt_nm_to_check
="${ac_tool_prefix}nm"
11411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11412 lt_nm_to_check
="$lt_nm_to_check nm"
11414 for lt_tmp_nm
in $lt_nm_to_check; do
11415 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11416 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11418 test -z "$ac_dir" && ac_dir
=.
11419 tmp_nm
="$ac_dir/$lt_tmp_nm"
11420 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11421 # Check to see if the nm accepts a BSD-compat flag.
11422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11423 # nm: unknown option "B" ignored
11424 # Tru64's nm complains that /dev/null is an invalid object file
11425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11426 */dev
/null
* |
*'Invalid file or object type'*)
11427 lt_cv_path_NM
="$tmp_nm -B"
11431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11433 lt_cv_path_NM
="$tmp_nm -p"
11437 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11438 continue # so that we can try to find one that supports BSD flags
11447 : ${lt_cv_path_NM=no}
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11451 $as_echo "$lt_cv_path_NM" >&6; }
11452 if test "$lt_cv_path_NM" != "no"; then
11453 NM
="$lt_cv_path_NM"
11455 # Didn't find any BSD compatible name lister, look for dumpbin.
11456 if test -n "$ac_tool_prefix"; then
11457 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
11459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11460 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462 $as_echo_n "checking for $ac_word... " >&6; }
11463 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
11466 if test -n "$DUMPBIN"; then
11467 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11470 for as_dir
in $PATH
11473 test -z "$as_dir" && as_dir
=.
11474 for ac_exec_ext
in '' $ac_executable_extensions; do
11475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11476 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11486 DUMPBIN
=$ac_cv_prog_DUMPBIN
11487 if test -n "$DUMPBIN"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11489 $as_echo "$DUMPBIN" >&6; }
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11496 test -n "$DUMPBIN" && break
11499 if test -z "$DUMPBIN"; then
11500 ac_ct_DUMPBIN
=$DUMPBIN
11501 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
11503 # Extract the first word of "$ac_prog", so it can be a program name with args.
11504 set dummy
$ac_prog; ac_word
=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11510 if test -n "$ac_ct_DUMPBIN"; then
11511 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11514 for as_dir
in $PATH
11517 test -z "$as_dir" && as_dir
=.
11518 for ac_exec_ext
in '' $ac_executable_extensions; do
11519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11520 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
11531 if test -n "$ac_ct_DUMPBIN"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11533 $as_echo "$ac_ct_DUMPBIN" >&6; }
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11540 test -n "$ac_ct_DUMPBIN" && break
11543 if test "x$ac_ct_DUMPBIN" = x
; then
11546 case $cross_compiling:$ac_tool_warned in
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11550 ac_tool_warned
=yes ;;
11552 DUMPBIN
=$ac_ct_DUMPBIN
11557 if test "$DUMPBIN" != ":"; then
11561 test -z "$NM" && NM
=nm
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11569 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11570 if test "${lt_cv_nm_interface+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11573 lt_cv_nm_interface
="BSD nm"
11574 echo "int some_variable = 0;" > conftest.
$ac_ext
11575 (eval echo "\"\$as_me:11575: $ac_compile\"" >&5)
11576 (eval "$ac_compile" 2>conftest.err
)
11577 cat conftest.err
>&5
11578 (eval echo "\"\$as_me:11578: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11579 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
11580 cat conftest.err
>&5
11581 (eval echo "\"\$as_me:11581: output\"" >&5)
11582 cat conftest.out
>&5
11583 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
11584 lt_cv_nm_interface
="MS dumpbin"
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11589 $as_echo "$lt_cv_nm_interface" >&6; }
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11592 $as_echo_n "checking whether ln -s works... " >&6; }
11594 if test "$LN_S" = "ln -s"; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11596 $as_echo "yes" >&6; }
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11599 $as_echo "no, using $LN_S" >&6; }
11602 # find the maximum length of command line arguments
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11604 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11605 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11606 $as_echo_n "(cached) " >&6
11613 # On DJGPP, this test can blow up pretty badly due to problems in libc
11614 # (any single argument exceeding 2000 bytes causes a buffer overrun
11615 # during glob expansion). Even if it were fixed, the result of this
11616 # check would be larger than it should be.
11617 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11621 # Under GNU Hurd, this test is not required because there is
11622 # no limit to the length of command line arguments.
11623 # Libtool will interpret -1 as no limit whatsoever
11624 lt_cv_sys_max_cmd_len
=-1;
11627 cygwin
* | mingw
* | cegcc
*)
11628 # On Win9x/ME, this test blows up -- it succeeds, but takes
11629 # about 5 minutes as the teststring grows exponentially.
11630 # Worse, since 9x/ME are not pre-emptively multitasking,
11631 # you end up with a "frozen" computer, even though with patience
11632 # the test eventually succeeds (with a max line length of 256k).
11633 # Instead, let's just punt: use the minimum linelength reported by
11634 # all of the supported platforms: 8192 (on NT/2K/XP).
11635 lt_cv_sys_max_cmd_len
=8192;
11639 # On AmigaOS with pdksh, this test takes hours, literally.
11640 # So we just punt and use a minimum line length of 8192.
11641 lt_cv_sys_max_cmd_len
=8192;
11644 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11645 # This has been around since 386BSD, at least. Likely further.
11646 if test -x /sbin
/sysctl
; then
11647 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11648 elif test -x /usr
/sbin
/sysctl
; then
11649 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11651 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11653 # And add a safety zone
11654 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11655 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11659 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11660 lt_cv_sys_max_cmd_len
=196608
11664 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11665 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11666 # nice to cause kernel panics so lets avoid the loop below.
11667 # First set a reasonable default.
11668 lt_cv_sys_max_cmd_len
=16384
11670 if test -x /sbin
/sysconfig
; then
11671 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11672 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11677 lt_cv_sys_max_cmd_len
=102400
11679 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11680 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11681 if test -n "$kargmax"; then
11682 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11684 lt_cv_sys_max_cmd_len
=32768
11688 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11689 if test -n "$lt_cv_sys_max_cmd_len"; then
11690 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11691 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11693 # Make teststring a little bigger before we do anything with it.
11694 # a 1K string should be a reasonable start.
11695 for i
in 1 2 3 4 5 6 7 8 ; do
11696 teststring
=$teststring$teststring
11698 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11699 # If test is not a shell built-in, we'll probably end up computing a
11700 # maximum length that is only half of the actual maximum length, but
11702 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11703 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
11704 test $i != 17 # 1/2 MB should be enough
11707 teststring
=$teststring$teststring
11709 # Only check the string length outside the loop.
11710 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
11712 # Add a significant safety factor because C++ compilers can tack on
11713 # massive amounts of additional arguments before passing them to the
11714 # linker. It appears as though 1/2 is a usable value.
11715 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11722 if test -n $lt_cv_sys_max_cmd_len ; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11724 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11727 $as_echo "none" >&6; }
11729 max_cmd_len
=$lt_cv_sys_max_cmd_len
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11741 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11742 # Try some XSI features
11744 ( _lt_dummy
="a/b/c"
11745 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11747 && eval 'test $(( 1 + 1 )) -eq 2 \
11748 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
11751 $as_echo "$xsi_shell" >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
11755 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
11757 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
11759 && lt_shell_append=yes
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
11761 $as_echo "$lt_shell_append" >&6; }
11764 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11774 # test EBCDIC or ASCII
11775 case `echo X|tr X '\101'` in
11776 A) # ASCII based system
11777 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11778 lt_SP2NL='tr \040 \012'
11779 lt_NL2SP='tr \015\012 \040\040'
11781 *) # EBCDIC based system
11782 lt_SP2NL='tr \100 \n'
11783 lt_NL2SP='tr \r\n \100\100'
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
11796 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
11797 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11798 $as_echo_n "(cached
) " >&6
11800 lt_cv_ld_reload_flag='-r'
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
11803 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11804 reload_flag=$lt_cv_ld_reload_flag
11805 case $reload_flag in
11807 *) reload_flag=" $reload_flag" ;;
11809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11812 if test "$GCC" = yes; then
11813 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11815 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11828 if test -n "$ac_tool_prefix"; then
11829 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
11830 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11832 $as_echo_n "checking
for $ac_word...
" >&6; }
11833 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11834 $as_echo_n "(cached
) " >&6
11836 if test -n "$OBJDUMP"; then
11837 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11846 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11856 OBJDUMP=$ac_cv_prog_OBJDUMP
11857 if test -n "$OBJDUMP"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
11859 $as_echo "$OBJDUMP" >&6; }
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11862 $as_echo "no
" >&6; }
11867 if test -z "$ac_cv_prog_OBJDUMP"; then
11868 ac_ct_OBJDUMP=$OBJDUMP
11869 # Extract the first word of "objdump
", so it can be a program name with args.
11870 set dummy objdump; ac_word=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11872 $as_echo_n "checking
for $ac_word...
" >&6; }
11873 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11874 $as_echo_n "(cached
) " >&6
11876 if test -n "$ac_ct_OBJDUMP"; then
11877 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11886 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11896 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11897 if test -n "$ac_ct_OBJDUMP"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
11899 $as_echo "$ac_ct_OBJDUMP" >&6; }
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11902 $as_echo "no
" >&6; }
11905 if test "x
$ac_ct_OBJDUMP" = x; then
11908 case $cross_compiling:$ac_tool_warned in
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11911 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11912 ac_tool_warned=yes ;;
11914 OBJDUMP=$ac_ct_OBJDUMP
11917 OBJDUMP="$ac_cv_prog_OBJDUMP"
11920 test -z "$OBJDUMP" && OBJDUMP=objdump
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
11931 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
11932 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11933 $as_echo_n "(cached
) " >&6
11935 lt_cv_file_magic_cmd='$MAGIC_CMD'
11936 lt_cv_file_magic_test_file=
11937 lt_cv_deplibs_check_method='unknown'
11938 # Need to set the preceding variable on all platforms that support
11939 # interlibrary dependencies.
11940 # 'none' -- dependencies not supported.
11941 # `unknown' -- same as none, but documents that we really don't know.
11942 # 'pass_all' -- all dependencies passed with no checks.
11943 # 'test_compile' -- check by making test program.
11944 # 'file_magic [[regex]]' -- check by looking for files in library path
11945 # which responds to the $file_magic_cmd with a given extended regex.
11946 # If you have `file' or equivalent on your system and you're not sure
11947 # whether `pass_all' will *always* work, you probably want this one.
11951 lt_cv_deplibs_check_method=pass_all
11955 lt_cv_deplibs_check_method=pass_all
11959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11960 lt_cv_file_magic_cmd='/usr/bin/file -L'
11961 lt_cv_file_magic_test_file=/shlib/libc.so
11965 # func_win32_libid is a shell function defined in ltmain.sh
11966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11967 lt_cv_file_magic_cmd='func_win32_libid'
11971 # Base MSYS/MinGW do not provide the 'file' command needed by
11972 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11973 # unless we find 'file', for example because we are cross-compiling.
11974 if ( file / ) >/dev/null 2>&1; then
11975 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11976 lt_cv_file_magic_cmd='func_win32_libid'
11978 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11979 lt_cv_file_magic_cmd='$OBJDUMP -f'
11984 # use the weaker test based on 'objdump'. See mingw*.
11985 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11986 lt_cv_file_magic_cmd='$OBJDUMP -f'
11989 darwin* | rhapsody*)
11990 lt_cv_deplibs_check_method=pass_all
11993 freebsd* | dragonfly*)
11994 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11997 # Not sure whether the presence of OpenBSD here was a mistake.
11998 # Let's accept both of them until this is cleared up.
11999 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12000 lt_cv_file_magic_cmd=/usr/bin/file
12001 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12005 lt_cv_deplibs_check_method=pass_all
12010 lt_cv_deplibs_check_method=pass_all
12013 hpux10.20* | hpux11*)
12014 lt_cv_file_magic_cmd=/usr/bin/file
12017 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12018 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12021 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
12022 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12026 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12032 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12036 irix5* | irix6* | nonstopux*)
12038 *-32|*"-32 ") libmagic=32-bit;;
12039 *-n32|*"-n32 ") libmagic=N32;;
12040 *-64|*"-64 ") libmagic=64-bit;;
12041 *) libmagic=never-match;;
12043 lt_cv_deplibs_check_method=pass_all
12046 # This must be Linux ELF.
12047 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12048 lt_cv_deplibs_check_method=pass_all
12052 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12061 lt_cv_file_magic_cmd=/usr/bin/file
12062 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12066 lt_cv_deplibs_check_method=pass_all
12070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12077 osf3* | osf4* | osf5*)
12078 lt_cv_deplibs_check_method=pass_all
12082 lt_cv_deplibs_check_method=pass_all
12086 lt_cv_deplibs_check_method=pass_all
12089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12090 lt_cv_deplibs_check_method=pass_all
12094 case $host_vendor in
12096 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]'
12097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12100 lt_cv_deplibs_check_method=pass_all
12103 lt_cv_file_magic_cmd='/bin/file'
12104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12107 lt_cv_file_magic_cmd='/bin/file'
12108 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12109 lt_cv_file_magic_test_file=/lib/libc.so
12112 lt_cv_deplibs_check_method=pass_all
12115 lt_cv_deplibs_check_method=pass_all
12121 lt_cv_deplibs_check_method=pass_all
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12127 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12128 file_magic_cmd=$lt_cv_file_magic_cmd
12129 deplibs_check_method=$lt_cv_deplibs_check_method
12130 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12143 if test -n "$ac_tool_prefix"; then
12144 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12145 set dummy ${ac_tool_prefix}ar; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12147 $as_echo_n "checking
for $ac_word...
" >&6; }
12148 if test "${ac_cv_prog_AR+set}" = set; then :
12149 $as_echo_n "(cached
) " >&6
12151 if test -n "$AR"; then
12152 ac_cv_prog_AR="$AR" # Let the user override the test.
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12161 ac_cv_prog_AR="${ac_tool_prefix}ar"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12172 if test -n "$AR"; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12174 $as_echo "$AR" >&6; }
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12177 $as_echo "no
" >&6; }
12182 if test -z "$ac_cv_prog_AR"; then
12184 # Extract the first word of "ar", so it can be a program name with args.
12185 set dummy ar; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12187 $as_echo_n "checking
for $ac_word...
" >&6; }
12188 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12189 $as_echo_n "(cached
) " >&6
12191 if test -n "$ac_ct_AR"; then
12192 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12201 ac_cv_prog_ac_ct_AR="ar"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12211 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12212 if test -n "$ac_ct_AR"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12214 $as_echo "$ac_ct_AR" >&6; }
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12217 $as_echo "no
" >&6; }
12220 if test "x
$ac_ct_AR" = x; then
12223 case $cross_compiling:$ac_tool_warned in
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12226 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12227 ac_tool_warned=yes ;;
12232 AR="$ac_cv_prog_AR"
12235 test -z "$AR" && AR=ar
12236 test -z "$AR_FLAGS" && AR_FLAGS=cru
12248 if test -n "$ac_tool_prefix"; then
12249 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12250 set dummy ${ac_tool_prefix}strip; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12252 $as_echo_n "checking
for $ac_word...
" >&6; }
12253 if test "${ac_cv_prog_STRIP+set}" = set; then :
12254 $as_echo_n "(cached
) " >&6
12256 if test -n "$STRIP"; then
12257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12266 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12276 STRIP=$ac_cv_prog_STRIP
12277 if test -n "$STRIP"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12279 $as_echo "$STRIP" >&6; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12282 $as_echo "no
" >&6; }
12287 if test -z "$ac_cv_prog_STRIP"; then
12289 # Extract the first word of "strip
", so it can be a program name with args.
12290 set dummy strip; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12292 $as_echo_n "checking
for $ac_word...
" >&6; }
12293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12294 $as_echo_n "(cached
) " >&6
12296 if test -n "$ac_ct_STRIP"; then
12297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12306 ac_cv_prog_ac_ct_STRIP="strip
"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12317 if test -n "$ac_ct_STRIP"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12319 $as_echo "$ac_ct_STRIP" >&6; }
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12322 $as_echo "no
" >&6; }
12325 if test "x
$ac_ct_STRIP" = x; then
12328 case $cross_compiling:$ac_tool_warned in
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12331 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12332 ac_tool_warned=yes ;;
12337 STRIP="$ac_cv_prog_STRIP"
12340 test -z "$STRIP" && STRIP=:
12347 if test -n "$ac_tool_prefix"; then
12348 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12351 $as_echo_n "checking
for $ac_word...
" >&6; }
12352 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12353 $as_echo_n "(cached
) " >&6
12355 if test -n "$RANLIB"; then
12356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12375 RANLIB=$ac_cv_prog_RANLIB
12376 if test -n "$RANLIB"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12378 $as_echo "$RANLIB" >&6; }
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12381 $as_echo "no
" >&6; }
12386 if test -z "$ac_cv_prog_RANLIB"; then
12387 ac_ct_RANLIB=$RANLIB
12388 # Extract the first word of "ranlib
", so it can be a program name with args.
12389 set dummy ranlib; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12391 $as_echo_n "checking
for $ac_word...
" >&6; }
12392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12393 $as_echo_n "(cached
) " >&6
12395 if test -n "$ac_ct_RANLIB"; then
12396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12416 if test -n "$ac_ct_RANLIB"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12418 $as_echo "$ac_ct_RANLIB" >&6; }
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12421 $as_echo "no
" >&6; }
12424 if test "x
$ac_ct_RANLIB" = x; then
12427 case $cross_compiling:$ac_tool_warned in
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12430 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12431 ac_tool_warned=yes ;;
12433 RANLIB=$ac_ct_RANLIB
12436 RANLIB="$ac_cv_prog_RANLIB"
12439 test -z "$RANLIB" && RANLIB=:
12446 # Determine commands to create old-style static archives.
12447 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12448 old_postinstall_cmds='chmod 644 $oldlib'
12449 old_postuninstall_cmds=
12451 if test -n "$RANLIB"; then
12454 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12457 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12460 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12496 # If no C compiler was specified, use CC.
12499 # If no C compiler flags were specified, use CFLAGS.
12500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12502 # Allow CC to be a program name with arguments.
12506 # Check for command to grab the raw symbol name followed by C symbol from nm.
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
12508 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
12509 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12510 $as_echo_n "(cached
) " >&6
12513 # These are sane defaults that work on at least a few old systems.
12514 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12516 # Character class describing NM global symbol codes.
12517 symcode='[BCDEGRST]'
12519 # Regexp to match symbols that can be accessed directly from C.
12520 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12522 # Define system-specific variables.
12527 cygwin* | mingw* | pw32* | cegcc*)
12528 symcode='[ABCDGISTW]'
12531 if test "$host_cpu" = ia64; then
12532 symcode='[ABCDEGRST]'
12535 irix* | nonstopux*)
12536 symcode='[BCDEGRST]'
12539 symcode='[BCDEGQRST]'
12550 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12558 # If we're using GNU nm, then use its standard symbol codes.
12559 case `$NM -V 2>&1` in
12560 *GNU* | *'with BFD'*)
12561 symcode='[ABCDGIRSTW]' ;;
12564 # Transform an extracted symbol line into a proper C declaration.
12565 # Some systems (esp. on ia64) link data and code symbols differently,
12566 # so use this general approach.
12567 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12569 # Transform an extracted symbol line into symbol name and symbol address
12570 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12571 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'"
12573 # Handle CRLF in mingw tool chain
12577 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12581 # Try without a prefix underscore, then with it.
12582 for ac_symprfx in "" "_
"; do
12584 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12585 symxfrm="\\1 $ac_symprfx\\2 \\2"
12587 # Write the raw and C identifiers.
12588 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
12589 # Fake it for dumpbin and say T for any non-static function
12590 # and D for any global variable.
12591 # Also find C++ and __fastcall symbols from MSVC++,
12592 # which start with @ or ?.
12593 lt_cv_sys_global_symbol_pipe="$AWK '"\
12594 " {last_section=section; section=\$ 3};"\
12595 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12596 " \$ 0!~/External *\|/{next};"\
12597 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12598 " {if(hide[section]) next};"\
12599 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12600 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12601 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12602 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12603 " ' prfx
=^
$ac_symprfx"
12605 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12608 # Check to see that the pipe works correctly.
12612 cat > conftest.$ac_ext <<_LT_EOF
12617 void nm_test_func(void);
12618 void nm_test_func(void){}
12622 int main(){nm_test_var='a';nm_test_func();return(0);}
12625 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12626 (eval $ac_compile) 2>&5
12628 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12629 test $ac_status = 0; }; then
12630 # Now try to grab the symbols.
12632 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\""; } >&5
12633 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12635 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12636 test $ac_status = 0; } && test -s "$nlist"; then
12637 # Try sorting and uniquifying the output.
12638 if sort "$nlist" | uniq > "$nlist"T; then
12639 mv -f "$nlist"T "$nlist"
12644 # Make sure that we snagged all the symbols we need.
12645 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12646 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12647 cat <<_LT_EOF > conftest.$ac_ext
12653 # Now generate the symbol file.
12654 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12656 cat <<_LT_EOF >> conftest.$ac_ext
12658 /* The mapping between symbol names and symbols. */
12663 lt__PROGRAM__LTX_preloaded_symbols[] =
12665 { "@PROGRAM@
", (void *) 0 },
12667 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12668 cat <<\_LT_EOF >> conftest.$ac_ext
12672 /* This works around a problem in FreeBSD linker */
12673 #ifdef FREEBSD_WORKAROUND
12674 static const void *lt_preloaded_setup() {
12675 return lt__PROGRAM__LTX_preloaded_symbols;
12683 # Now try linking the two files.
12684 mv conftest.$ac_objext conftstm.$ac_objext
12685 lt_save_LIBS="$LIBS"
12686 lt_save_CFLAGS="$CFLAGS"
12687 LIBS="conftstm.
$ac_objext"
12688 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12689 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12690 (eval $ac_link) 2>&5
12692 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12693 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12696 LIBS="$lt_save_LIBS"
12697 CFLAGS="$lt_save_CFLAGS"
12699 echo "cannot
find nm_test_func
in $nlist" >&5
12702 echo "cannot
find nm_test_var
in $nlist" >&5
12705 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
12708 echo "$progname: failed program was
:" >&5
12709 cat conftest.$ac_ext >&5
12711 rm -rf conftest* conftst*
12713 # Do not use the global_symbol_pipe unless it works.
12714 if test "$pipe_works" = yes; then
12717 lt_cv_sys_global_symbol_pipe=
12723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12724 lt_cv_sys_global_symbol_to_cdecl=
12726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
12728 $as_echo "failed
" >&6; }
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
12731 $as_echo "ok
" >&6; }
12755 # Check whether --enable-libtool-lock was given.
12756 if test "${enable_libtool_lock+set}" = set; then :
12757 enableval=$enable_libtool_lock;
12760 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12762 # Some flags need to be propagated to the compiler or linker for good
12766 # Find out which ABI we are using.
12767 echo 'int i;' > conftest.$ac_ext
12768 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12769 (eval $ac_compile) 2>&5
12771 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12772 test $ac_status = 0; }; then
12773 case `/usr/bin/file conftest.$ac_objext` in
12775 HPUX_IA64_MODE="32"
12778 HPUX_IA64_MODE="64"
12785 # Find out which ABI we are using.
12786 echo '#line 12786 "configure
"' > conftest.$ac_ext
12787 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12788 (eval $ac_compile) 2>&5
12790 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12791 test $ac_status = 0; }; then
12792 if test "$lt_cv_prog_gnu_ld" = yes; then
12793 case `/usr/bin/file conftest.$ac_objext` in
12795 LD="${LD-ld} -melf32bsmip"
12798 LD="${LD-ld} -melf32bmipn32"
12801 LD="${LD-ld} -melf64bmip"
12805 case `/usr/bin/file conftest.$ac_objext` in
12821 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12822 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12823 # Find out which ABI we are using.
12824 echo 'int i;' > conftest.$ac_ext
12825 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12826 (eval $ac_compile) 2>&5
12828 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12829 test $ac_status = 0; }; then
12830 case `/usr/bin/file conftest.o` in
12833 x86_64-*kfreebsd*-gnu)
12834 LD="${LD-ld} -m elf_i386_fbsd
"
12837 LD="${LD-ld} -m elf_i386
"
12839 ppc64-*linux*|powerpc64-*linux*)
12840 LD="${LD-ld} -m elf32ppclinux
"
12843 LD="${LD-ld} -m elf_s390
"
12846 LD="${LD-ld} -m elf32_sparc
"
12852 x86_64-*kfreebsd*-gnu)
12853 LD="${LD-ld} -m elf_x86_64_fbsd
"
12856 LD="${LD-ld} -m elf_x86_64
"
12858 ppc*-*linux*|powerpc*-*linux*)
12859 LD="${LD-ld} -m elf64ppc
"
12861 s390*-*linux*|s390*-*tpf*)
12862 LD="${LD-ld} -m elf64_s390
"
12865 LD="${LD-ld} -m elf64_sparc
"
12875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12876 SAVE_CFLAGS="$CFLAGS"
12877 CFLAGS="$CFLAGS -belf"
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
12879 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
12880 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12881 $as_echo_n "(cached
) " >&6
12884 ac_cpp='$CPP $CPPFLAGS'
12885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12900 if ac_fn_c_try_link "$LINENO"; then :
12901 lt_cv_cc_needs_belf=yes
12903 lt_cv_cc_needs_belf=no
12905 rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
12908 ac_cpp='$CPP $CPPFLAGS'
12909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
12915 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12916 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12917 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12918 CFLAGS="$SAVE_CFLAGS"
12922 # Find out which ABI we are using.
12923 echo 'int i;' > conftest.$ac_ext
12924 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12925 (eval $ac_compile) 2>&5
12927 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12928 test $ac_status = 0; }; then
12929 case `/usr/bin/file conftest.o` in
12931 case $lt_cv_prog_gnu_ld in
12932 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12934 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12946 need_locks="$enable_libtool_lock"
12950 rhapsody* | darwin*)
12951 if test -n "$ac_tool_prefix"; then
12952 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
12953 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12955 $as_echo_n "checking
for $ac_word...
" >&6; }
12956 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12957 $as_echo_n "(cached
) " >&6
12959 if test -n "$DSYMUTIL"; then
12960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12980 if test -n "$DSYMUTIL"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12982 $as_echo "$DSYMUTIL" >&6; }
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12985 $as_echo "no
" >&6; }
12990 if test -z "$ac_cv_prog_DSYMUTIL"; then
12991 ac_ct_DSYMUTIL=$DSYMUTIL
12992 # Extract the first word of "dsymutil
", so it can be a program name with args.
12993 set dummy dsymutil; ac_word=$2
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12995 $as_echo_n "checking
for $ac_word...
" >&6; }
12996 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12997 $as_echo_n "(cached
) " >&6
12999 if test -n "$ac_ct_DSYMUTIL"; then
13000 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in $PATH
13006 test -z "$as_dir" && as_dir=.
13007 for ac_exec_ext in '' $ac_executable_extensions; do
13008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13009 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13010 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13019 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13020 if test -n "$ac_ct_DSYMUTIL"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13022 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13025 $as_echo "no
" >&6; }
13028 if test "x
$ac_ct_DSYMUTIL" = x; then
13031 case $cross_compiling:$ac_tool_warned in
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13034 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13035 ac_tool_warned=yes ;;
13037 DSYMUTIL=$ac_ct_DSYMUTIL
13040 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13043 if test -n "$ac_tool_prefix"; then
13044 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13045 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13047 $as_echo_n "checking
for $ac_word...
" >&6; }
13048 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13049 $as_echo_n "(cached
) " >&6
13051 if test -n "$NMEDIT"; then
13052 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13071 NMEDIT=$ac_cv_prog_NMEDIT
13072 if test -n "$NMEDIT"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13074 $as_echo "$NMEDIT" >&6; }
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13077 $as_echo "no
" >&6; }
13082 if test -z "$ac_cv_prog_NMEDIT"; then
13083 ac_ct_NMEDIT=$NMEDIT
13084 # Extract the first word of "nmedit
", so it can be a program name with args.
13085 set dummy nmedit; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13087 $as_echo_n "checking
for $ac_word...
" >&6; }
13088 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13089 $as_echo_n "(cached
) " >&6
13091 if test -n "$ac_ct_NMEDIT"; then
13092 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13111 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13112 if test -n "$ac_ct_NMEDIT"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13114 $as_echo "$ac_ct_NMEDIT" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13117 $as_echo "no
" >&6; }
13120 if test "x
$ac_ct_NMEDIT" = x; then
13123 case $cross_compiling:$ac_tool_warned in
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13126 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13127 ac_tool_warned=yes ;;
13129 NMEDIT=$ac_ct_NMEDIT
13132 NMEDIT="$ac_cv_prog_NMEDIT"
13135 if test -n "$ac_tool_prefix"; then
13136 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13137 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13139 $as_echo_n "checking
for $ac_word...
" >&6; }
13140 if test "${ac_cv_prog_LIPO+set}" = set; then :
13141 $as_echo_n "(cached
) " >&6
13143 if test -n "$LIPO"; then
13144 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13163 LIPO=$ac_cv_prog_LIPO
13164 if test -n "$LIPO"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13166 $as_echo "$LIPO" >&6; }
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13169 $as_echo "no
" >&6; }
13174 if test -z "$ac_cv_prog_LIPO"; then
13176 # Extract the first word of "lipo
", so it can be a program name with args.
13177 set dummy lipo; ac_word=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13179 $as_echo_n "checking
for $ac_word...
" >&6; }
13180 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13181 $as_echo_n "(cached
) " >&6
13183 if test -n "$ac_ct_LIPO"; then
13184 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13193 ac_cv_prog_ac_ct_LIPO="lipo
"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13203 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13204 if test -n "$ac_ct_LIPO"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13206 $as_echo "$ac_ct_LIPO" >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13209 $as_echo "no
" >&6; }
13212 if test "x
$ac_ct_LIPO" = x; then
13215 case $cross_compiling:$ac_tool_warned in
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13218 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13219 ac_tool_warned=yes ;;
13224 LIPO="$ac_cv_prog_LIPO"
13227 if test -n "$ac_tool_prefix"; then
13228 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13229 set dummy ${ac_tool_prefix}otool; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13231 $as_echo_n "checking
for $ac_word...
" >&6; }
13232 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13233 $as_echo_n "(cached
) " >&6
13235 if test -n "$OTOOL"; then
13236 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13255 OTOOL=$ac_cv_prog_OTOOL
13256 if test -n "$OTOOL"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13258 $as_echo "$OTOOL" >&6; }
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13261 $as_echo "no
" >&6; }
13266 if test -z "$ac_cv_prog_OTOOL"; then
13268 # Extract the first word of "otool
", so it can be a program name with args.
13269 set dummy otool; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13271 $as_echo_n "checking
for $ac_word...
" >&6; }
13272 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13273 $as_echo_n "(cached
) " >&6
13275 if test -n "$ac_ct_OTOOL"; then
13276 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13285 ac_cv_prog_ac_ct_OTOOL="otool
"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13295 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13296 if test -n "$ac_ct_OTOOL"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13298 $as_echo "$ac_ct_OTOOL" >&6; }
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13301 $as_echo "no
" >&6; }
13304 if test "x
$ac_ct_OTOOL" = x; then
13307 case $cross_compiling:$ac_tool_warned in
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13310 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13311 ac_tool_warned=yes ;;
13316 OTOOL="$ac_cv_prog_OTOOL"
13319 if test -n "$ac_tool_prefix"; then
13320 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13321 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13323 $as_echo_n "checking
for $ac_word...
" >&6; }
13324 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13325 $as_echo_n "(cached
) " >&6
13327 if test -n "$OTOOL64"; then
13328 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13337 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13338 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13347 OTOOL64=$ac_cv_prog_OTOOL64
13348 if test -n "$OTOOL64"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13350 $as_echo "$OTOOL64" >&6; }
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13353 $as_echo "no
" >&6; }
13358 if test -z "$ac_cv_prog_OTOOL64"; then
13359 ac_ct_OTOOL64=$OTOOL64
13360 # Extract the first word of "otool64
", so it can be a program name with args.
13361 set dummy otool64; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13363 $as_echo_n "checking
for $ac_word...
" >&6; }
13364 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13365 $as_echo_n "(cached
) " >&6
13367 if test -n "$ac_ct_OTOOL64"; then
13368 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13377 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13387 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13388 if test -n "$ac_ct_OTOOL64"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13390 $as_echo "$ac_ct_OTOOL64" >&6; }
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13393 $as_echo "no
" >&6; }
13396 if test "x
$ac_ct_OTOOL64" = x; then
13399 case $cross_compiling:$ac_tool_warned in
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13402 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13403 ac_tool_warned=yes ;;
13405 OTOOL64=$ac_ct_OTOOL64
13408 OTOOL64="$ac_cv_prog_OTOOL64"
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13438 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13439 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13440 $as_echo_n "(cached
) " >&6
13442 lt_cv_apple_cc_single_mod=no
13443 if test -z "${LT_MULTI_MODULE}"; then
13444 # By default we will add the -single_module flag. You can override
13445 # by either setting the environment variable LT_MULTI_MODULE
13446 # non-empty at configure time, or by adding -multi_module to the
13448 rm -rf libconftest.dylib*
13449 echo "int foo
(void
){return 1;}" > conftest.c
13450 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13451 -dynamiclib -Wl,-single_module conftest.c
" >&5
13452 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13453 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13455 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13456 lt_cv_apple_cc_single_mod=yes
13458 cat conftest.err >&5
13460 rm -rf libconftest.dylib*
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
13465 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
13467 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
13468 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13469 $as_echo_n "(cached
) " >&6
13471 lt_cv_ld_exported_symbols_list=no
13472 save_LDFLAGS=$LDFLAGS
13473 echo "_main
" > conftest.sym
13474 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13486 if ac_fn_c_try_link "$LINENO"; then :
13487 lt_cv_ld_exported_symbols_list=yes
13489 lt_cv_ld_exported_symbols_list=no
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LDFLAGS="$save_LDFLAGS"
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
13497 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13499 rhapsody* | darwin1.[012])
13500 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13502 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13503 darwin*) # darwin 5.x on
13504 # if running on 10.5 or later, the deployment target defaults
13505 # to the OS version, if on x86, and 10.4, the deployment
13506 # target defaults to 10.4. Don't you love it?
13507 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13508 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13511 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13513 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13517 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13518 _lt_dar_single_mod='$single_module'
13520 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13521 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13523 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13525 if test "$DSYMUTIL" != ":"; then
13526 _lt_dsymutil='~$DSYMUTIL $lib || :'
13533 for ac_header in dlfcn.h
13535 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
13536 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
13537 cat >>confdefs.h <<_ACEOF
13538 #define HAVE_DLFCN_H 1
13547 ac_cpp='$CXXCPP $CPPFLAGS'
13548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13551 if test -z "$CXX"; then
13552 if test -n "$CCC"; then
13555 if test -n "$ac_tool_prefix"; then
13556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13561 $as_echo_n "checking
for $ac_word...
" >&6; }
13562 if test "${ac_cv_prog_CXX+set}" = set; then :
13563 $as_echo_n "(cached
) " >&6
13565 if test -n "$CXX"; then
13566 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13572 test -z "$as_dir" && as_dir=.
13573 for ac_exec_ext in '' $ac_executable_extensions; do
13574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13575 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13576 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13585 CXX=$ac_cv_prog_CXX
13586 if test -n "$CXX"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
13588 $as_echo "$CXX" >&6; }
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13591 $as_echo "no
" >&6; }
13595 test -n "$CXX" && break
13598 if test -z "$CXX"; then
13600 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13602 # Extract the first word of "$ac_prog", so it can be a program name with args.
13603 set dummy $ac_prog; ac_word=$2
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13605 $as_echo_n "checking
for $ac_word...
" >&6; }
13606 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13607 $as_echo_n "(cached
) " >&6
13609 if test -n "$ac_ct_CXX"; then
13610 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613 for as_dir in $PATH
13616 test -z "$as_dir" && as_dir=.
13617 for ac_exec_ext in '' $ac_executable_extensions; do
13618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13619 ac_cv_prog_ac_ct_CXX="$ac_prog"
13620 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13629 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13630 if test -n "$ac_ct_CXX"; then
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
13632 $as_echo "$ac_ct_CXX" >&6; }
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13635 $as_echo "no
" >&6; }
13639 test -n "$ac_ct_CXX" && break
13642 if test "x
$ac_ct_CXX" = x; then
13645 case $cross_compiling:$ac_tool_warned in
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13648 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13649 ac_tool_warned=yes ;;
13657 # Provide some information about the compiler.
13658 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
13661 for ac_option in --version -v -V -qversion; do
13662 { { ac_try="$ac_compiler $ac_option >&5"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13668 $as_echo "$ac_try_echo"; } >&5
13669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13671 if test -s conftest.err; then
13673 ... rest of stderr output deleted ...
13674 10q' conftest.err >conftest.er1
13675 cat conftest.er1 >&5
13676 rm -f conftest.er1 conftest.err
13678 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13679 test $ac_status = 0; }
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
13683 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
13684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13685 $as_echo_n "(cached
) " >&6
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13701 if ac_fn_cxx_try_compile "$LINENO"; then :
13702 ac_compiler_gnu=yes
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
13711 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13712 if test $ac_compiler_gnu = yes; then
13717 ac_test_CXXFLAGS=${CXXFLAGS+set}
13718 ac_save_CXXFLAGS=$CXXFLAGS
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
13720 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
13721 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13722 $as_echo_n "(cached
) " >&6
13724 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13725 ac_cxx_werror_flag=yes
13726 ac_cv_prog_cxx_g=no
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13739 if ac_fn_cxx_try_compile "$LINENO"; then :
13740 ac_cv_prog_cxx_g=yes
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13754 if ac_fn_cxx_try_compile "$LINENO"; then :
13757 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13770 if ac_fn_cxx_try_compile "$LINENO"; then :
13771 ac_cv_prog_cxx_g=yes
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
13781 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13782 if test "$ac_test_CXXFLAGS" = set; then
13783 CXXFLAGS=$ac_save_CXXFLAGS
13784 elif test $ac_cv_prog_cxx_g = yes; then
13785 if test "$GXX" = yes; then
13791 if test "$GXX" = yes; then
13798 ac_cpp='$CPP $CPPFLAGS'
13799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13803 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
13804 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
13805 (test "X
$CXX" != "Xg
++"))) ; then
13807 ac_cpp='$CXXCPP $CPPFLAGS'
13808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C
++ preprocessor
" >&5
13812 $as_echo_n "checking how to run the C
++ preprocessor...
" >&6; }
13813 if test -z "$CXXCPP"; then
13814 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13815 $as_echo_n "(cached
) " >&6
13817 # Double quotes because CXXCPP needs to be expanded
13818 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13820 ac_preproc_ok=false
13821 for ac_cxx_preproc_warn_flag in '' yes
13823 # Use a header file that comes with gcc, so configuring glibc
13824 # with a fresh cross-compiler works.
13825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13826 # <limits.h> exists even on freestanding compilers.
13827 # On the NeXT, cc -E runs the code through the compiler's parser,
13828 # not just through cpp. "Syntax error
" is here to catch this case.
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13832 # include <limits.h>
13834 # include <assert.h>
13838 if ac_fn_cxx_try_cpp "$LINENO"; then :
13841 # Broken: fails on valid input.
13844 rm -f conftest.err conftest.$ac_ext
13846 # OK, works on sane cases. Now check whether nonexistent headers
13847 # can be detected and how.
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 #include <ac_nonexistent.h>
13852 if ac_fn_cxx_try_cpp "$LINENO"; then :
13853 # Broken: success on invalid input.
13856 # Passes both tests.
13860 rm -f conftest.err conftest.$ac_ext
13863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13864 rm -f conftest.err conftest.$ac_ext
13865 if $ac_preproc_ok; then :
13870 ac_cv_prog_CXXCPP=$CXXCPP
13873 CXXCPP=$ac_cv_prog_CXXCPP
13875 ac_cv_prog_CXXCPP=$CXXCPP
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXXCPP" >&5
13878 $as_echo "$CXXCPP" >&6; }
13879 ac_preproc_ok=false
13880 for ac_cxx_preproc_warn_flag in '' yes
13882 # Use a header file that comes with gcc, so configuring glibc
13883 # with a fresh cross-compiler works.
13884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13885 # <limits.h> exists even on freestanding compilers.
13886 # On the NeXT, cc -E runs the code through the compiler's parser,
13887 # not just through cpp. "Syntax error
" is here to catch this case.
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13891 # include <limits.h>
13893 # include <assert.h>
13897 if ac_fn_cxx_try_cpp "$LINENO"; then :
13900 # Broken: fails on valid input.
13903 rm -f conftest.err conftest.$ac_ext
13905 # OK, works on sane cases. Now check whether nonexistent headers
13906 # can be detected and how.
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13909 #include <ac_nonexistent.h>
13911 if ac_fn_cxx_try_cpp "$LINENO"; then :
13912 # Broken: success on invalid input.
13915 # Passes both tests.
13919 rm -f conftest.err conftest.$ac_ext
13922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13923 rm -f conftest.err conftest.$ac_ext
13924 if $ac_preproc_ok; then :
13927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
13928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13929 _lt_caught_CXX_error=yes; }
13933 ac_cpp='$CPP $CPPFLAGS'
13934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13935 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13939 _lt_caught_CXX_error=yes
13953 enable_win32_dll=no
13956 # Check whether --enable-shared was given.
13957 if test "${enable_shared+set}" = set; then :
13958 enableval=$enable_shared; p=${PACKAGE-default}
13960 yes) enable_shared=yes ;;
13961 no) enable_shared=no ;;
13964 # Look at the argument we got. We use all the common list separators.
13965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13966 for pkg in $enableval; do
13968 if test "X$pkg" = "X$p"; then
13987 # Check whether --enable-static was given.
13988 if test "${enable_static+set}" = set; then :
13989 enableval=$enable_static; p=${PACKAGE-default}
13991 yes) enable_static=yes ;;
13992 no) enable_static=no ;;
13995 # Look at the argument we got. We use all the common list separators.
13996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13997 for pkg in $enableval; do
13999 if test "X$pkg" = "X$p"; then
14019 # Check whether --with-pic was given.
14020 if test "${with_pic+set}" = set; then :
14021 withval=$with_pic; pic_mode="$withval"
14027 test -z "$pic_mode" && pic_mode=default
14035 # Check whether --enable-fast-install was given.
14036 if test "${enable_fast_install+set}" = set; then :
14037 enableval=$enable_fast_install; p=${PACKAGE-default}
14039 yes) enable_fast_install=yes ;;
14040 no) enable_fast_install=no ;;
14042 enable_fast_install=no
14043 # Look at the argument we got. We use all the common list separators.
14044 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14045 for pkg in $enableval; do
14047 if test "X$pkg" = "X$p"; then
14048 enable_fast_install=yes
14055 enable_fast_install=yes
14068 # This can be used to rebuild libtool when needed
14069 LIBTOOL_DEPS="$ltmain"
14071 # Always use our own libtool.
14072 LIBTOOL='$
(SHELL
) $
(top_builddir
)/libtool
'
14098 test -z "$LN_S" && LN_S="ln -s"
14113 if test -n "${ZSH_VERSION+set}" ; then
14114 setopt NO_GLOB_SUBST
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14118 $as_echo_n "checking for objdir... " >&6; }
14119 if test "${lt_cv_objdir+set}" = set; then :
14120 $as_echo_n "(cached) " >&6
14122 rm -f .libs 2>/dev/null
14123 mkdir .libs 2>/dev/null
14124 if test -d .libs; then
14127 # MS-DOS does not allow filenames that begin with a dot.
14130 rmdir .libs 2>/dev/null
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14133 $as_echo "$lt_cv_objdir" >&6; }
14134 objdir=$lt_cv_objdir
14140 cat >>confdefs.h <<_ACEOF
14141 #define LT_OBJDIR "$lt_cv_objdir/"
14162 # AIX sometimes has problems with the GCC collect2 program. For some
14163 # reason, if we set the COLLECT_NAMES environment variable, the problems
14164 # vanish in a puff of smoke.
14165 if test "X${COLLECT_NAMES+set}" != Xset; then
14167 export COLLECT_NAMES
14172 # Sed substitution that helps us do robust quoting. It backslashifies
14173 # metacharacters that are still active within double-quoted strings.
14174 sed_quote_subst='s
/\
(["`$\\]\)/\\\1/g'
14176 # Same as above, but do not quote variable references.
14177 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14179 # Sed substitution to delay expansion of an escaped shell variable in a
14180 # double_quote_subst'ed string.
14181 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14183 # Sed substitution to delay expansion of an escaped single quote.
14184 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14186 # Sed substitution to avoid accidental globbing in evaled expressions
14187 no_glob_subst='s/\*/\\\*/g'
14189 # Global variables:
14191 can_build_shared=yes
14193 # All known linkers require a `.a
' archive for static linking (except MSVC,
14194 # which needs '.lib
').
14197 with_gnu_ld="$lt_cv_prog_gnu_ld"
14200 old_CFLAGS="$CFLAGS"
14202 # Set sane defaults for various variables
14203 test -z "$CC" && CC=cc
14204 test -z "$LTCC" && LTCC=$CC
14205 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14206 test -z "$LD" && LD=ld
14207 test -z "$ac_objext" && ac_objext=o
14209 for cc_temp in $compiler""; do
14211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14217 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's
%.
*/%%' -e "s%^$host_alias-%%"`
14220 # Only perform the check for file, if the check method requires it
14221 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14222 case $deplibs_check_method in
14224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14226 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14228 $as_echo_n "(cached) " >&6
14232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14235 lt_save_MAGIC_CMD="$MAGIC_CMD"
14236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14238 for ac_dir in $ac_dummy; do
14240 test -z "$ac_dir" && ac_dir=.
14241 if test -f $ac_dir/${ac_tool_prefix}file; then
14242 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14243 if test -n "$file_magic_test_file"; then
14244 case $deplibs_check_method in
14246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14249 $EGREP "$file_magic_regex" > /dev/null; then
14254 *** Warning: the command libtool uses to detect shared libraries,
14255 *** $file_magic_cmd, produces output that libtool cannot recognize.
14256 *** The result is that libtool may fail to recognize shared libraries
14257 *** as such. This will affect the creation of libtool libraries that
14258 *** depend on shared libraries, but programs linked with such libtool
14259 *** libraries will work regardless of this problem. Nevertheless, you
14260 *** may want to report the problem to your system manager and/or to
14261 *** bug-libtool@gnu.org
14271 MAGIC_CMD="$lt_save_MAGIC_CMD"
14276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14277 if test -n "$MAGIC_CMD"; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14279 $as_echo "$MAGIC_CMD" >&6; }
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 $as_echo "no" >&6; }
14289 if test -z "$lt_cv_path_MAGIC_CMD"; then
14290 if test -n "$ac_tool_prefix"; then
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14292 $as_echo_n "checking for file... " >&6; }
14293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14301 lt_save_MAGIC_CMD="$MAGIC_CMD"
14302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14304 for ac_dir in $ac_dummy; do
14306 test -z "$ac_dir" && ac_dir=.
14307 if test -f $ac_dir/file; then
14308 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14309 if test -n "$file_magic_test_file"; then
14310 case $deplibs_check_method in
14312 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14315 $EGREP "$file_magic_regex" > /dev/null; then
14320 *** Warning: the command libtool uses to detect shared libraries,
14321 *** $file_magic_cmd, produces output that libtool cannot recognize.
14322 *** The result is that libtool may fail to recognize shared libraries
14323 *** as such. This will affect the creation of libtool libraries that
14324 *** depend on shared libraries, but programs linked with such libtool
14325 *** libraries will work regardless of this problem. Nevertheless, you
14326 *** may want to report the problem to your system manager and/or to
14327 *** bug-libtool@gnu.org
14337 MAGIC_CMD="$lt_save_MAGIC_CMD"
14342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14343 if test -n "$MAGIC_CMD"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14345 $as_echo "$MAGIC_CMD" >&6; }
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14361 # Use C for the default configuration in the libtool script
14365 ac_cpp='$CPP $CPPFLAGS'
14366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
14367 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
14368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14371 # Source file extension for C test sources.
14374 # Object file extension for compiled C test sources.
14378 # Code to be used in simple compile tests
14379 lt_simple_compile_test_code="int some_variable = 0;"
14381 # Code to be used in simple link tests
14382 lt_simple_link_test_code='int main
(){return(0);}'
14390 # If no C compiler was specified, use CC.
14393 # If no C compiler flags were specified, use CFLAGS.
14394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14396 # Allow CC to be a program name with arguments.
14399 # Save the default compiler, since it gets overwritten when the other
14400 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14401 compiler_DEFAULT=$CC
14403 # save warnings/boilerplate of simple test code
14404 ac_outfile=conftest.$ac_objext
14405 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
14407 _lt_compiler_boilerplate=`cat conftest.err`
14410 ac_outfile=conftest.$ac_objext
14411 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
14413 _lt_linker_boilerplate=`cat conftest.err`
14418 ## There is no encapsulation within the following macros, do not change
14419 ## the running order or otherwise move them around unless you know exactly
14420 ## what you are doing...
14421 if test -n "$compiler"; then
14423 lt_prog_compiler_no_builtin_flag=
14425 if test "$GCC" = yes; then
14426 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14429 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14430 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14431 $as_echo_n "(cached) " >&6
14433 lt_cv_prog_compiler_rtti_exceptions=no
14434 ac_outfile=conftest.$ac_objext
14435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14436 lt_compiler_flag="-fno-rtti -fno-exceptions"
14437 # Insert the option either (1) after the last *FLAGS variable, or
14438 # (2) before a word containing "conftest.", or (3) at the end.
14439 # Note that $ac_compile itself does not contain backslashes and begins
14440 # with a dollar sign (not a hyphen), so the echo should work correctly.
14441 # The option is referenced via a variable to avoid confusing sed.
14442 lt_compile=`echo "$ac_compile" | $SED \
14443 -e 's
:.
*FLAGS
}\
{0,1\
} :&$lt_compiler_flag :; t
' \
14444 -e 's
: [^
]*conftest\.
: $lt_compiler_flag&:; t
' \
14445 -e 's
:$
: $lt_compiler_flag:'`
14446 (eval echo "\"\$as_me:14446: $lt_compile\"" >&5)
14447 (eval "$lt_compile" 2>conftest.err)
14449 cat conftest.err >&5
14450 echo "$as_me:14450: \$? = $ac_status" >&5
14451 if (exit $ac_status) && test -s "$ac_outfile"; then
14452 # The compiler can only warn and ignore the option if not recognized
14453 # So say no if there are warnings other than the usual output.
14454 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$
/d
' >conftest.exp
14455 $SED '/^$
/d
; /^
*+/d
' conftest.err >conftest.er2
14456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14457 lt_cv_prog_compiler_rtti_exceptions=yes
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14464 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14466 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14467 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14479 lt_prog_compiler_wl=
14480 lt_prog_compiler_pic=
14481 lt_prog_compiler_static=
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14484 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14486 if test "$GCC" = yes; then
14487 lt_prog_compiler_wl='-Wl,'
14488 lt_prog_compiler_static='-static'
14492 # All AIX code is PIC.
14493 if test "$host_cpu" = ia64; then
14494 # AIX 5 now supports IA64 processor
14495 lt_prog_compiler_static='-Bstatic'
14502 # see comment about AmigaOS4 .so support
14503 lt_prog_compiler_pic='-fPIC'
14506 # FIXME: we need at least 68020 code to build shared libraries, but
14507 # adding the `-m68020' flag to GCC prevents building anything better
,
14509 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
14514 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14515 # PIC is the default for these OSes.
14518 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
14519 # This hack is so that the source file can tell whether it is being
14520 # built for inclusion in a dll (and should export symbols for example).
14521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14522 # (--disable-auto-import) libraries
14523 lt_prog_compiler_pic
='-DDLL_EXPORT'
14526 darwin
* | rhapsody
*)
14527 # PIC is the default on this platform
14528 # Common symbols not allowed in MH_DYLIB files
14529 lt_prog_compiler_pic
='-fno-common'
14533 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14534 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14535 # sets the default TLS model and affects inlining.
14541 lt_prog_compiler_pic
='-fPIC'
14547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14548 # Instead, we relocate shared libraries at runtime.
14552 # Just because we use GCC doesn't mean we suddenly get shared libraries
14553 # on systems that don't support them.
14554 lt_prog_compiler_can_build_shared
=no
14559 # QNX uses GNU C++, but need to define -shared option too, otherwise
14560 # it will coredump.
14561 lt_prog_compiler_pic
='-fPIC -shared'
14565 if test -d /usr
/nec
; then
14566 lt_prog_compiler_pic
=-Kconform_pic
14571 lt_prog_compiler_pic
='-fPIC'
14575 # PORTME Check for flag to pass linker flags through the system compiler.
14578 lt_prog_compiler_wl
='-Wl,'
14579 if test "$host_cpu" = ia64
; then
14580 # AIX 5 now supports IA64 processor
14581 lt_prog_compiler_static
='-Bstatic'
14583 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
14587 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
14588 # This hack is so that the source file can tell whether it is being
14589 # built for inclusion in a dll (and should export symbols for example).
14590 lt_prog_compiler_pic
='-DDLL_EXPORT'
14593 hpux9
* | hpux10
* | hpux11
*)
14594 lt_prog_compiler_wl
='-Wl,'
14595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14596 # not for PA HP-UX.
14602 lt_prog_compiler_pic
='+Z'
14605 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14606 lt_prog_compiler_static
='${wl}-a ${wl}archive'
14609 irix5
* | irix6
* | nonstopux
*)
14610 lt_prog_compiler_wl
='-Wl,'
14611 # PIC (with -KPIC) is the default.
14612 lt_prog_compiler_static
='-non_shared'
14615 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14616 case $cc_basename in
14617 # old Intel for x86_64 which still supported -KPIC.
14619 lt_prog_compiler_wl
='-Wl,'
14620 lt_prog_compiler_pic
='-KPIC'
14621 lt_prog_compiler_static
='-static'
14623 # icc used to be incompatible with GCC.
14624 # ICC 10 doesn't accept -KPIC any more.
14626 lt_prog_compiler_wl
='-Wl,'
14627 lt_prog_compiler_pic
='-fPIC'
14628 lt_prog_compiler_static
='-static'
14630 # Lahey Fortran 8.1.
14632 lt_prog_compiler_wl
='-Wl,'
14633 lt_prog_compiler_pic
='--shared'
14634 lt_prog_compiler_static
='--static'
14636 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14637 # Portland Group compilers (*not* the Pentium gcc compiler,
14638 # which looks to be a dead project)
14639 lt_prog_compiler_wl
='-Wl,'
14640 lt_prog_compiler_pic
='-fpic'
14641 lt_prog_compiler_static
='-Bstatic'
14644 lt_prog_compiler_wl
='-Wl,'
14645 # All Alpha code is PIC.
14646 lt_prog_compiler_static
='-non_shared'
14649 # IBM XL C 8.0/Fortran 10.1 on PPC
14650 lt_prog_compiler_wl
='-Wl,'
14651 lt_prog_compiler_pic
='-qpic'
14652 lt_prog_compiler_static
='-qstaticlink'
14655 case `$CC -V 2>&1 | sed 5q` in
14658 lt_prog_compiler_pic
='-KPIC'
14659 lt_prog_compiler_static
='-Bstatic'
14660 lt_prog_compiler_wl
='-Wl,'
14663 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14664 lt_prog_compiler_pic
='-KPIC'
14665 lt_prog_compiler_static
='-Bstatic'
14666 lt_prog_compiler_wl
=''
14674 lt_prog_compiler_pic
='-KPIC'
14675 lt_prog_compiler_static
='-Bstatic'
14679 # QNX uses GNU C++, but need to define -shared option too, otherwise
14680 # it will coredump.
14681 lt_prog_compiler_pic
='-fPIC -shared'
14684 osf3
* | osf4
* | osf5
*)
14685 lt_prog_compiler_wl
='-Wl,'
14686 # All OSF/1 code is PIC.
14687 lt_prog_compiler_static
='-non_shared'
14691 lt_prog_compiler_static
='-non_shared'
14695 lt_prog_compiler_pic
='-KPIC'
14696 lt_prog_compiler_static
='-Bstatic'
14697 case $cc_basename in
14698 f77
* | f90
* | f95
*)
14699 lt_prog_compiler_wl
='-Qoption ld ';;
14701 lt_prog_compiler_wl
='-Wl,';;
14706 lt_prog_compiler_wl
='-Qoption ld '
14707 lt_prog_compiler_pic
='-PIC'
14708 lt_prog_compiler_static
='-Bstatic'
14711 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14712 lt_prog_compiler_wl
='-Wl,'
14713 lt_prog_compiler_pic
='-KPIC'
14714 lt_prog_compiler_static
='-Bstatic'
14718 if test -d /usr
/nec
;then
14719 lt_prog_compiler_pic
='-Kconform_pic'
14720 lt_prog_compiler_static
='-Bstatic'
14724 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14725 lt_prog_compiler_wl
='-Wl,'
14726 lt_prog_compiler_pic
='-KPIC'
14727 lt_prog_compiler_static
='-Bstatic'
14731 lt_prog_compiler_wl
='-Wl,'
14732 lt_prog_compiler_can_build_shared
=no
14736 lt_prog_compiler_pic
='-pic'
14737 lt_prog_compiler_static
='-Bstatic'
14741 lt_prog_compiler_can_build_shared
=no
14747 # For platforms which do not support PIC, -DPIC is meaningless:
14749 lt_prog_compiler_pic
=
14752 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14756 $as_echo "$lt_prog_compiler_pic" >&6; }
14764 # Check to make sure the PIC flag actually works.
14766 if test -n "$lt_prog_compiler_pic"; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14768 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14769 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14770 $as_echo_n "(cached) " >&6
14772 lt_cv_prog_compiler_pic_works
=no
14773 ac_outfile
=conftest.
$ac_objext
14774 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14775 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
14776 # Insert the option either (1) after the last *FLAGS variable, or
14777 # (2) before a word containing "conftest.", or (3) at the end.
14778 # Note that $ac_compile itself does not contain backslashes and begins
14779 # with a dollar sign (not a hyphen), so the echo should work correctly.
14780 # The option is referenced via a variable to avoid confusing sed.
14781 lt_compile
=`echo "$ac_compile" | $SED \
14782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14784 -e 's:$: $lt_compiler_flag:'`
14785 (eval echo "\"\$as_me:14785: $lt_compile\"" >&5)
14786 (eval "$lt_compile" 2>conftest.err
)
14788 cat conftest.err
>&5
14789 echo "$as_me:14789: \$? = $ac_status" >&5
14790 if (exit $ac_status) && test -s "$ac_outfile"; then
14791 # The compiler can only warn and ignore the option if not recognized
14792 # So say no if there are warnings other than the usual output.
14793 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14794 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14795 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14796 lt_cv_prog_compiler_pic_works
=yes
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14803 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14805 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
14806 case $lt_prog_compiler_pic in
14808 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
14811 lt_prog_compiler_pic
=
14812 lt_prog_compiler_can_build_shared
=no
14823 # Check to make sure the static flag actually works.
14825 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14827 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14828 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14829 $as_echo_n "(cached) " >&6
14831 lt_cv_prog_compiler_static_works
=no
14832 save_LDFLAGS
="$LDFLAGS"
14833 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14834 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14835 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14836 # The linker can only warn and ignore the option if not recognized
14837 # So say no if there are warnings
14838 if test -s conftest.err
; then
14839 # Append any errors to the config.log.
14840 cat conftest.err
1>&5
14841 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14842 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14843 if diff conftest.exp conftest.er2
>/dev
/null
; then
14844 lt_cv_prog_compiler_static_works
=yes
14847 lt_cv_prog_compiler_static_works
=yes
14851 LDFLAGS
="$save_LDFLAGS"
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14855 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14857 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
14860 lt_prog_compiler_static
=
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14871 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14872 $as_echo_n "(cached) " >&6
14874 lt_cv_prog_compiler_c_o
=no
14875 $RM -r conftest
2>/dev
/null
14879 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14881 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14882 # Insert the option either (1) after the last *FLAGS variable, or
14883 # (2) before a word containing "conftest.", or (3) at the end.
14884 # Note that $ac_compile itself does not contain backslashes and begins
14885 # with a dollar sign (not a hyphen), so the echo should work correctly.
14886 lt_compile
=`echo "$ac_compile" | $SED \
14887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889 -e 's:$: $lt_compiler_flag:'`
14890 (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891 (eval "$lt_compile" 2>out
/conftest.err
)
14893 cat out
/conftest.err
>&5
14894 echo "$as_me:14894: \$? = $ac_status" >&5
14895 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14897 # The compiler can only warn and ignore the option if not recognized
14898 # So say no if there are warnings
14899 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14900 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14901 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14902 lt_cv_prog_compiler_c_o
=yes
14907 # SGI C++ compiler will create directory out/ii_files/ for
14908 # template instantiation
14909 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14910 $RM out
/* && rmdir out
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14917 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14926 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14927 $as_echo_n "(cached) " >&6
14929 lt_cv_prog_compiler_c_o
=no
14930 $RM -r conftest
2>/dev
/null
14934 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14936 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14937 # Insert the option either (1) after the last *FLAGS variable, or
14938 # (2) before a word containing "conftest.", or (3) at the end.
14939 # Note that $ac_compile itself does not contain backslashes and begins
14940 # with a dollar sign (not a hyphen), so the echo should work correctly.
14941 lt_compile
=`echo "$ac_compile" | $SED \
14942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14944 -e 's:$: $lt_compiler_flag:'`
14945 (eval echo "\"\$as_me:14945: $lt_compile\"" >&5)
14946 (eval "$lt_compile" 2>out
/conftest.err
)
14948 cat out
/conftest.err
>&5
14949 echo "$as_me:14949: \$? = $ac_status" >&5
14950 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14952 # The compiler can only warn and ignore the option if not recognized
14953 # So say no if there are warnings
14954 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14955 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14956 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14957 lt_cv_prog_compiler_c_o
=yes
14962 # SGI C++ compiler will create directory out/ii_files/ for
14963 # template instantiation
14964 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14965 $RM out
/* && rmdir out
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14972 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14977 hard_links
="nottested"
14978 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
14979 # do not overwrite the value of need_locks provided by the user
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14981 $as_echo_n "checking if we can lock with hard links... " >&6; }
14984 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14986 ln conftest.a conftest.b
2>&5 || hard_links
=no
14987 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14989 $as_echo "$hard_links" >&6; }
14990 if test "$hard_links" = no
; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14992 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15005 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15008 allow_undefined_flag
=
15009 always_export_symbols
=no
15011 archive_expsym_cmds
=
15012 compiler_needs_object
=no
15013 enable_shared_with_static_runtimes
=no
15014 export_dynamic_flag_spec
=
15015 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15016 hardcode_automatic
=no
15018 hardcode_direct_absolute
=no
15019 hardcode_libdir_flag_spec
=
15020 hardcode_libdir_flag_spec_ld
=
15021 hardcode_libdir_separator
=
15022 hardcode_minus_L
=no
15023 hardcode_shlibpath_var
=unsupported
15025 link_all_deplibs
=unknown
15027 module_expsym_cmds
=
15028 old_archive_from_new_cmds
=
15029 old_archive_from_expsyms_cmds
=
15030 thread_safe_flag_spec
=
15031 whole_archive_flag_spec
=
15032 # include_expsyms should be a list of space-separated symbols to be *always*
15033 # included in the symbol list
15035 # exclude_expsyms can be an extended regexp of symbols to exclude
15036 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15038 # as well as any symbol that contains `d'.
15039 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15041 # platforms (ab)use it in PIC code, but their linkers get confused if
15042 # the symbol is explicitly referenced. Since portable code cannot
15043 # rely on this symbol name, it's probably fine to never include it in
15044 # preloaded symbol tables.
15045 # Exclude shared library initialization/finalization symbols.
15046 extract_expsyms_cmds
=
15049 cygwin
* | mingw
* | pw32
* | cegcc
*)
15050 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15051 # When not using gcc, we currently assume that we are using
15052 # Microsoft Visual C++.
15053 if test "$GCC" != yes; then
15058 # we just hope/assume this is gcc and not c89 (= MSVC++)
15067 if test "$with_gnu_ld" = yes; then
15068 # If archive_cmds runs LD, not CC, wlarc should be empty
15071 # Set some defaults for GNU ld with shared library support. These
15072 # are reset later if shared libraries are not supported. Putting them
15073 # here allows them to be overridden if necessary.
15074 runpath_var
=LD_RUN_PATH
15075 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15076 export_dynamic_flag_spec
='${wl}--export-dynamic'
15077 # ancient GNU ld didn't support --whole-archive et. al.
15078 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
15079 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15081 whole_archive_flag_spec
=
15083 supports_anon_versioning
=no
15084 case `$LD -v 2>&1` in
15085 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
15086 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
15087 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
15088 *\
2.11.
*) ;; # other 2.11 versions
15089 *) supports_anon_versioning
=yes ;;
15092 # See if GNU ld supports shared libraries.
15095 # On AIX/PPC, the GNU linker is very broken
15096 if test "$host_cpu" != ia64
; then
15100 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15101 *** to be unable to reliably create shared libraries on AIX.
15102 *** Therefore, libtool is disabling shared libraries support. If you
15103 *** really care for shared libraries, you may want to modify your PATH
15104 *** so that a non-GNU linker is found, and then restart.
15113 # see comment about AmigaOS4 .so support
15114 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15115 archive_expsym_cmds
=''
15118 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)'
15119 hardcode_libdir_flag_spec
='-L$libdir'
15120 hardcode_minus_L
=yes
15126 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15127 allow_undefined_flag
=unsupported
15128 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15129 # support --undefined. This deserves some investigation. FIXME
15130 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15136 cygwin
* | mingw
* | pw32
* | cegcc
*)
15137 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15138 # as there is no search path for DLLs.
15139 hardcode_libdir_flag_spec
='-L$libdir'
15140 allow_undefined_flag
=unsupported
15141 always_export_symbols
=no
15142 enable_shared_with_static_runtimes
=yes
15143 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15145 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15146 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15147 # If the export-symbols file already is a .def file (1st line
15148 # is EXPORTS), use it as is; otherwise, prepend...
15149 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15150 cp $export_symbols $output_objdir/$soname.def;
15152 echo EXPORTS > $output_objdir/$soname.def;
15153 cat $export_symbols >> $output_objdir/$soname.def;
15155 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15163 hardcode_shlibpath_var
=no
15164 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15165 export_dynamic_flag_spec
='${wl}-E'
15166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15167 # Instead, shared libraries are loaded at an image base (0x10000000 by
15168 # default) and relocated if they conflict, which is a slow very memory
15169 # consuming and fragmenting process. To avoid this, we pick a random,
15170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15172 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15173 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'
15176 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15178 if test "$host_os" = linux-dietlibc
; then
15179 case $cc_basename in
15180 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15183 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15184 && test "$tmp_diet" = no
15187 tmp_sharedflag
='-shared'
15188 case $cc_basename,$host_cpu in
15189 pgcc
*) # Portland Group C compiler
15190 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15191 tmp_addflag
=' $pic_flag'
15193 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15194 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15195 tmp_addflag
=' $pic_flag -Mnomain' ;;
15196 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15197 tmp_addflag
=' -i_dynamic' ;;
15198 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15199 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15200 ifc
* | ifort
*) # Intel Fortran compiler
15201 tmp_addflag
=' -nofor_main' ;;
15202 lf95
*) # Lahey Fortran 8.1
15203 whole_archive_flag_spec
=
15204 tmp_sharedflag
='--shared' ;;
15205 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15206 tmp_sharedflag
='-qmkshrobj'
15209 case `$CC -V 2>&1 | sed 5q` in
15210 *Sun\ C
*) # Sun C 5.9
15211 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15212 compiler_needs_object
=yes
15213 tmp_sharedflag
='-G' ;;
15214 *Sun\ F
*) # Sun Fortran 8.3
15215 tmp_sharedflag
='-G' ;;
15217 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15219 if test "x$supports_anon_versioning" = xyes
; then
15220 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15221 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15222 echo "local: *; };" >> $output_objdir/$libname.ver~
15223 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15226 case $cc_basename in
15228 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15229 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15230 hardcode_libdir_flag_spec
=
15231 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15232 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15233 if test "x$supports_anon_versioning" = xyes
; then
15234 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15236 echo "local: *; };" >> $output_objdir/$libname.ver~
15237 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15247 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15248 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15251 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15252 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15257 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15261 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15262 *** create shared libraries on Solaris systems. Therefore, libtool
15263 *** is disabling shared libraries support. We urge you to upgrade GNU
15264 *** binutils to release 2.9.1 or newer. Another option is to modify
15265 *** your PATH or compiler configuration so that the native linker is
15266 *** used, and then restart.
15269 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15270 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15271 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15277 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15278 case `$LD -v 2>&1` in
15279 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15283 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15284 *** reliably create shared libraries on SCO systems. Therefore, libtool
15285 *** is disabling shared libraries support. We urge you to upgrade GNU
15286 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15287 *** your PATH or compiler configuration so that the native linker is
15288 *** used, and then restart.
15293 # For security reasons, it is highly recommended that you always
15294 # use absolute paths for naming shared libraries, and exclude the
15295 # DT_RUNPATH tag from executables and libraries. But doing so
15296 # requires that you compile everything twice, which is a pain.
15297 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15298 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15299 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15300 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15309 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15311 hardcode_direct
=yes
15312 hardcode_shlibpath_var
=no
15316 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15317 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15318 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15325 if test "$ld_shlibs" = no
; then
15327 hardcode_libdir_flag_spec
=
15328 export_dynamic_flag_spec
=
15329 whole_archive_flag_spec
=
15332 # PORTME fill in a description of your system's linker (not GNU ld)
15335 allow_undefined_flag
=unsupported
15336 always_export_symbols
=yes
15337 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'
15338 # Note: this linker hardcodes the directories in LIBPATH if there
15339 # are no directories specified by -L.
15340 hardcode_minus_L
=yes
15341 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15342 # Neither direct hardcoding nor static linking is supported with a
15344 hardcode_direct
=unsupported
15349 if test "$host_cpu" = ia64
; then
15350 # On IA64, the linker does run time linking by default, so we don't
15351 # have to do anything special.
15352 aix_use_runtimelinking
=no
15353 exp_sym_flag
='-Bexport'
15356 # If we're using GNU nm, then we don't want the "-C" option.
15357 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15358 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15359 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15361 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'
15363 aix_use_runtimelinking
=no
15365 # Test if we are trying to use run time linking or normal
15366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15367 # need to do runtime linking.
15368 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15369 for ld_flag
in $LDFLAGS; do
15370 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15371 aix_use_runtimelinking
=yes
15378 exp_sym_flag
='-bexport'
15379 no_entry_flag
='-bnoentry'
15382 # When large executables or shared objects are built, AIX ld can
15383 # have problems creating the table of contents. If linking a library
15384 # or program results in "error TOC overflow" add -mminimal-toc to
15385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15389 hardcode_direct
=yes
15390 hardcode_direct_absolute
=yes
15391 hardcode_libdir_separator
=':'
15392 link_all_deplibs
=yes
15393 file_list_spec
='${wl}-f,'
15395 if test "$GCC" = yes; then
15396 case $host_os in aix4.
[012]|aix4.
[012].
*)
15397 # We only want to do this on AIX 4.2 and lower, the check
15398 # below for broken collect2 doesn't work under 4.3+
15399 collect2name
=`${CC} -print-prog-name=collect2`
15400 if test -f "$collect2name" &&
15401 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15403 # We have reworked collect2
15406 # We have old collect2
15407 hardcode_direct
=unsupported
15408 # It fails to find uninstalled libraries when the uninstalled
15409 # path is not listed in the libpath. Setting hardcode_minus_L
15410 # to unsupported forces relinking
15411 hardcode_minus_L
=yes
15412 hardcode_libdir_flag_spec
='-L$libdir'
15413 hardcode_libdir_separator
=
15417 shared_flag
='-shared'
15418 if test "$aix_use_runtimelinking" = yes; then
15419 shared_flag
="$shared_flag "'${wl}-G'
15423 if test "$host_cpu" = ia64
; then
15424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15425 # chokes on -Wl,-G. The following line is correct:
15428 if test "$aix_use_runtimelinking" = yes; then
15429 shared_flag
='${wl}-G'
15431 shared_flag
='${wl}-bM:SRE'
15436 export_dynamic_flag_spec
='${wl}-bexpall'
15437 # It seems that -bexpall does not export symbols beginning with
15438 # underscore (_), so it is better to generate a list of symbols to export.
15439 always_export_symbols
=yes
15440 if test "$aix_use_runtimelinking" = yes; then
15441 # Warning - without using the other runtime loading flags (-brtl),
15442 # -berok will link without error, but may produce a broken library.
15443 allow_undefined_flag
='-berok'
15444 # Determine the default libpath from the value encoded in an
15445 # empty executable.
15446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15457 if ac_fn_c_try_link
"$LINENO"; then :
15459 lt_aix_libpath_sed
='
15460 /Import File Strings/,/^$/ {
15466 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15467 # Check for a 64-bit object if we didn't find anything.
15468 if test -z "$aix_libpath"; then
15469 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15472 rm -f core conftest.err conftest.
$ac_objext \
15473 conftest
$ac_exeext conftest.
$ac_ext
15474 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15476 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15477 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15479 if test "$host_cpu" = ia64
; then
15480 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15481 allow_undefined_flag
="-z nodefs"
15482 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"
15484 # Determine the default libpath from the value encoded in an
15485 # empty executable.
15486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15497 if ac_fn_c_try_link
"$LINENO"; then :
15499 lt_aix_libpath_sed
='
15500 /Import File Strings/,/^$/ {
15506 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15507 # Check for a 64-bit object if we didn't find anything.
15508 if test -z "$aix_libpath"; then
15509 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15512 rm -f core conftest.err conftest.
$ac_objext \
15513 conftest
$ac_exeext conftest.
$ac_ext
15514 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15516 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15517 # Warning - without using the other run time loading flags,
15518 # -berok will link without error, but may produce a broken library.
15519 no_undefined_flag
=' ${wl}-bernotok'
15520 allow_undefined_flag
=' ${wl}-berok'
15521 # Exported symbols can be pulled into shared objects from archives
15522 whole_archive_flag_spec
='$convenience'
15523 archive_cmds_need_lc
=yes
15524 # This is similar to how AIX traditionally builds its shared libraries.
15525 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'
15533 # see comment about AmigaOS4 .so support
15534 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15535 archive_expsym_cmds
=''
15538 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)'
15539 hardcode_libdir_flag_spec
='-L$libdir'
15540 hardcode_minus_L
=yes
15546 export_dynamic_flag_spec
=-rdynamic
15549 cygwin
* | mingw
* | pw32
* | cegcc
*)
15550 # When not using gcc, we currently assume that we are using
15551 # Microsoft Visual C++.
15552 # hardcode_libdir_flag_spec is actually meaningless, as there is
15553 # no search path for DLLs.
15554 hardcode_libdir_flag_spec
=' '
15555 allow_undefined_flag
=unsupported
15556 # Tell ltmain to make .lib files, not .a files.
15558 # Tell ltmain to make .dll files, not .so files.
15560 # FIXME: Setting linknames here is a bad hack.
15561 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15562 # The linker will automatically build a .lib file if we build a DLL.
15563 old_archive_from_new_cmds
='true'
15564 # FIXME: Should let the user specify the lib program.
15565 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15566 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15567 enable_shared_with_static_runtimes
=yes
15570 darwin
* | rhapsody
*)
15573 archive_cmds_need_lc
=no
15575 hardcode_automatic
=yes
15576 hardcode_shlibpath_var
=unsupported
15577 whole_archive_flag_spec
=''
15578 link_all_deplibs
=yes
15579 allow_undefined_flag
="$_lt_dar_allow_undefined"
15580 case $cc_basename in
15581 ifort
*) _lt_dar_can_shared
=yes ;;
15582 *) _lt_dar_can_shared
=$GCC ;;
15584 if test "$_lt_dar_can_shared" = "yes"; then
15585 output_verbose_link_cmd
=echo
15586 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15587 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15588 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}"
15589 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}"
15598 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_libdir_flag_spec
='-L$libdir'
15600 hardcode_shlibpath_var
=no
15607 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15608 # support. Future versions do this automatically, but an explicit c++rt0.o
15609 # does not break anything, and helps significantly (at the cost of a little
15612 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15613 hardcode_libdir_flag_spec
='-R$libdir'
15614 hardcode_direct
=yes
15615 hardcode_shlibpath_var
=no
15618 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15620 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15621 hardcode_direct
=yes
15622 hardcode_minus_L
=yes
15623 hardcode_shlibpath_var
=no
15626 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15627 freebsd
* | dragonfly
*)
15628 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15629 hardcode_libdir_flag_spec
='-R$libdir'
15630 hardcode_direct
=yes
15631 hardcode_shlibpath_var
=no
15635 if test "$GCC" = yes; then
15636 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'
15638 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'
15640 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15641 hardcode_libdir_separator
=:
15642 hardcode_direct
=yes
15644 # hardcode_minus_L: Not really in the search PATH,
15645 # but as the default location of the library.
15646 hardcode_minus_L
=yes
15647 export_dynamic_flag_spec
='${wl}-E'
15651 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15652 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15654 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15656 if test "$with_gnu_ld" = no
; then
15657 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15658 hardcode_libdir_flag_spec_ld
='+b $libdir'
15659 hardcode_libdir_separator
=:
15660 hardcode_direct
=yes
15661 hardcode_direct_absolute
=yes
15662 export_dynamic_flag_spec
='${wl}-E'
15663 # hardcode_minus_L: Not really in the search PATH,
15664 # but as the default location of the library.
15665 hardcode_minus_L
=yes
15670 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15673 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15679 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15685 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15688 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15691 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15695 if test "$with_gnu_ld" = no
; then
15696 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15697 hardcode_libdir_separator
=:
15702 hardcode_shlibpath_var
=no
15705 hardcode_direct
=yes
15706 hardcode_direct_absolute
=yes
15707 export_dynamic_flag_spec
='${wl}-E'
15709 # hardcode_minus_L: Not really in the search PATH,
15710 # but as the default location of the library.
15711 hardcode_minus_L
=yes
15717 irix5
* | irix6
* | nonstopux
*)
15718 if test "$GCC" = yes; then
15719 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15720 # Try to use the -exported_symbol ld option, if it does not
15721 # work, assume that -exports_file does not work either and
15722 # implicitly export all symbols.
15723 save_LDFLAGS
="$LDFLAGS"
15724 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h. */
15729 if ac_fn_c_try_link
"$LINENO"; then :
15730 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15733 rm -f core conftest.err conftest.
$ac_objext \
15734 conftest
$ac_exeext conftest.
$ac_ext
15735 LDFLAGS
="$save_LDFLAGS"
15737 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15738 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15740 archive_cmds_need_lc
='no'
15741 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15742 hardcode_libdir_separator
=:
15744 link_all_deplibs
=yes
15748 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15749 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15751 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15753 hardcode_libdir_flag_spec
='-R$libdir'
15754 hardcode_direct
=yes
15755 hardcode_shlibpath_var
=no
15759 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760 hardcode_direct
=yes
15761 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15762 hardcode_libdir_separator
=:
15763 hardcode_shlibpath_var
=no
15770 if test -f /usr
/libexec
/ld.so
; then
15771 hardcode_direct
=yes
15772 hardcode_shlibpath_var
=no
15773 hardcode_direct_absolute
=yes
15774 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15775 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15776 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15777 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15778 export_dynamic_flag_spec
='${wl}-E'
15781 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15782 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15783 hardcode_libdir_flag_spec
='-R$libdir'
15786 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15787 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15797 hardcode_libdir_flag_spec
='-L$libdir'
15798 hardcode_minus_L
=yes
15799 allow_undefined_flag
=unsupported
15800 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'
15801 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15805 if test "$GCC" = yes; then
15806 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15807 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15809 allow_undefined_flag
=' -expect_unresolved \*'
15810 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15812 archive_cmds_need_lc
='no'
15813 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15814 hardcode_libdir_separator
=:
15817 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15818 if test "$GCC" = yes; then
15819 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15820 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15821 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15823 allow_undefined_flag
=' -expect_unresolved \*'
15824 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15825 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~
15826 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15828 # Both c and cxx compiler support -rpath directly
15829 hardcode_libdir_flag_spec
='-rpath $libdir'
15831 archive_cmds_need_lc
='no'
15832 hardcode_libdir_separator
=:
15836 no_undefined_flag
=' -z defs'
15837 if test "$GCC" = yes; then
15839 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15841 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15843 case `$CC -V 2>&1` in
15846 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15847 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15848 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15852 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15853 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15854 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15858 hardcode_libdir_flag_spec
='-R$libdir'
15859 hardcode_shlibpath_var
=no
15861 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15863 # The compiler driver will combine and reorder linker options,
15864 # but understands `-z linker_flag'. GCC discards it without `$wl',
15865 # but is careful enough not to reorder.
15866 # Supported since Solaris 2.6 (maybe 2.5.1?)
15867 if test "$GCC" = yes; then
15868 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15870 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
15874 link_all_deplibs
=yes
15878 if test "x$host_vendor" = xsequent
; then
15879 # Use $CC to link under sequent, because it throws in some extra .o
15880 # files that make .init and .fini sections work.
15881 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15883 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15885 hardcode_libdir_flag_spec
='-L$libdir'
15886 hardcode_direct
=yes
15887 hardcode_minus_L
=yes
15888 hardcode_shlibpath_var
=no
15892 case $host_vendor in
15894 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895 hardcode_direct
=yes # is this really true???
15898 ## LD is ld it makes a PLAMLIB
15899 ## CC just makes a GrossModule.
15900 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15901 reload_cmds
='$CC -r -o $output$reload_objs'
15905 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15909 runpath_var
='LD_RUN_PATH'
15910 hardcode_shlibpath_var
=no
15914 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15915 hardcode_shlibpath_var
=no
15916 export_dynamic_flag_spec
='-Bexport'
15920 if test -d /usr
/nec
; then
15921 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15922 hardcode_shlibpath_var
=no
15923 runpath_var
=LD_RUN_PATH
15924 hardcode_runpath_var
=yes
15929 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15930 no_undefined_flag
='${wl}-z,text'
15931 archive_cmds_need_lc
=no
15932 hardcode_shlibpath_var
=no
15933 runpath_var
='LD_RUN_PATH'
15935 if test "$GCC" = yes; then
15936 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15937 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15939 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15940 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15944 sysv5
* | sco3.2v5
* | sco5v6
*)
15945 # Note: We can NOT use -z defs as we might desire, because we do not
15946 # link with -lc, and that would cause any symbols used from libc to
15947 # always be unresolved, which means just about no library would
15948 # ever link correctly. If we're not using GNU ld we use -z text
15949 # though, which does catch some bad symbols but isn't as heavy-handed
15951 no_undefined_flag
='${wl}-z,text'
15952 allow_undefined_flag
='${wl}-z,nodefs'
15953 archive_cmds_need_lc
=no
15954 hardcode_shlibpath_var
=no
15955 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
15956 hardcode_libdir_separator
=':'
15957 link_all_deplibs
=yes
15958 export_dynamic_flag_spec
='${wl}-Bexport'
15959 runpath_var
='LD_RUN_PATH'
15961 if test "$GCC" = yes; then
15962 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15963 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15965 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15971 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15972 hardcode_libdir_flag_spec
='-L$libdir'
15973 hardcode_shlibpath_var
=no
15981 if test x
$host_vendor = xsni
; then
15983 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15984 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15991 $as_echo "$ld_shlibs" >&6; }
15992 test "$ld_shlibs" = no
&& can_build_shared
=no
15994 with_gnu_ld
=$with_gnu_ld
16011 # Do we need to explicitly link libc?
16013 case "x$archive_cmds_need_lc" in
16015 # Assume -lc should be added
16016 archive_cmds_need_lc
=yes
16018 if test "$enable_shared" = yes && test "$GCC" = yes; then
16019 case $archive_cmds in
16021 # FIXME: we may have to deal with multi-command sequences.
16024 # Test whether the compiler implicitly links with -lc since on some
16025 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16026 # to ld, don't add -lc before -lgcc.
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16028 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16029 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16030 $as_echo_n "(cached) " >&6
16033 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16036 (eval $ac_compile) 2>&5
16038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16039 test $ac_status = 0; } 2>conftest.err
; then
16042 libobjs
=conftest.
$ac_objext
16044 wl
=$lt_prog_compiler_wl
16045 pic_flag
=$lt_prog_compiler_pic
16051 lt_save_allow_undefined_flag
=$allow_undefined_flag
16052 allow_undefined_flag
=
16053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16054 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16057 test $ac_status = 0; }
16059 lt_cv_archive_cmds_need_lc
=no
16061 lt_cv_archive_cmds_need_lc
=yes
16063 allow_undefined_flag
=$lt_save_allow_undefined_flag
16065 cat conftest.err
1>&5
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16071 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16072 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16236 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16238 if test "$GCC" = yes; then
16240 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16241 *) lt_awk_arg
="/^libraries:/" ;;
16243 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16244 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
16245 # if the path contains ";" then we assume it to be the separator
16246 # otherwise default to the standard path separator (i.e. ":") - it is
16247 # assumed that no part of a normal pathname contains ";" but that should
16248 # okay in the real world where ";" in dirpaths is itself problematic.
16249 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16251 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16253 # Ok, now we have the path, separated by spaces, we can step through it
16254 # and add multilib dir if necessary.
16255 lt_tmp_lt_search_path_spec
=
16256 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16257 for lt_sys_path
in $lt_search_path_spec; do
16258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16259 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16261 test -d "$lt_sys_path" && \
16262 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16265 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16266 BEGIN {RS=" "; FS="/|\n";} {
16269 for (lt_i = NF; lt_i > 0; lt_i--) {
16270 if ($lt_i != "" && $lt_i != ".") {
16271 if ($lt_i == "..") {
16274 if (lt_count == 0) {
16275 lt_foo="/" $lt_i lt_foo;
16282 if (lt_foo != "") { lt_freq[lt_foo]++; }
16283 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16285 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
16287 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16289 library_names_spec
=
16290 libname_spec
='lib$name'
16294 postuninstall_cmds
=
16298 shlibpath_overrides_runpath
=unknown
16300 dynamic_linker
="$host_os ld.so"
16301 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16302 need_lib_prefix
=unknown
16303 hardcode_into_libs
=no
16305 # when you set need_version to no, make sure it does not cause -set_version
16306 # flags to be left without arguments
16307 need_version
=unknown
16312 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16313 shlibpath_var
=LIBPATH
16315 # AIX 3 has no versioning support, so we append a major version to the name.
16316 soname_spec
='${libname}${release}${shared_ext}$major'
16323 hardcode_into_libs
=yes
16324 if test "$host_cpu" = ia64
; then
16325 # AIX 5 supports IA64
16326 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16327 shlibpath_var
=LD_LIBRARY_PATH
16329 # With GCC up to 2.95.x, collect2 would create an import file
16330 # for dependence libraries. The import file would start with
16331 # the line `#! .'. This would cause the generated library to
16332 # depend on `.', always an invalid library. This was fixed in
16333 # development snapshots of GCC prior to 3.0.
16335 aix4 | aix4.
[01] | aix4.
[01].
*)
16336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16338 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16341 can_build_shared
=no
16345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16346 # soname into executable. Probably we can add versioning support to
16347 # collect2, so additional links can be useful in future.
16348 if test "$aix_use_runtimelinking" = yes; then
16349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16350 # instead of lib<name>.a to let people know that these are not
16351 # typical AIX shared libraries.
16352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354 # We preserve .a as extension for shared libraries through AIX4.2
16355 # and later when we are not doing run time linking.
16356 library_names_spec
='${libname}${release}.a $libname.a'
16357 soname_spec
='${libname}${release}${shared_ext}$major'
16359 shlibpath_var
=LIBPATH
16366 # Since July 2007 AmigaOS4 officially supports .so libraries.
16367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16371 library_names_spec
='$libname.ixlibrary $libname.a'
16372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16373 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
16379 library_names_spec
='${libname}${shared_ext}'
16380 dynamic_linker
="$host_os ld.so"
16381 shlibpath_var
=LIBRARY_PATH
16387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec
='${libname}${release}${shared_ext}$major'
16389 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16390 shlibpath_var
=LD_LIBRARY_PATH
16391 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16392 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16393 # the default ld.so.conf also contains /usr/contrib/lib and
16394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16395 # libtool to hard-code these into programs
16398 cygwin
* | mingw
* | pw32
* | cegcc
*)
16399 version_type
=windows
16404 case $GCC,$host_os in
16405 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16406 library_names_spec
='$libname.dll.a'
16407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16408 postinstall_cmds
='base_file=`basename \${file}`~
16409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16410 dldir=$destdir/`dirname \$dlpath`~
16411 test -d \$dldir || mkdir -p \$dldir~
16412 $install_prog $dir/$dlname \$dldir/$dlname~
16413 chmod a+x \$dldir/$dlname~
16414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16417 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16418 dlpath=$dir/\$dldll~
16420 shlibpath_overrides_runpath
=yes
16424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16425 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16426 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16429 # MinGW DLLs use traditional 'lib' prefix
16430 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16431 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16432 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
16433 # It is most probably a Windows format PATH printed by
16434 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16435 # path with ; separators, and with drive letters. We can handle the
16436 # drive letters (cygwin fileutils understands them), so leave them,
16437 # especially as we might pass files found there to a mingw objdump,
16438 # which wouldn't understand a cygwinified path. Ahh.
16439 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16441 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16445 # pw32 DLLs use 'pw' prefix rather than 'lib'
16446 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16452 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16455 dynamic_linker
='Win32 ld.exe'
16456 # FIXME: first we should search . and the directory the executable is in
16460 darwin
* | rhapsody
*)
16461 dynamic_linker
="$host_os dyld"
16462 version_type
=darwin
16465 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16466 soname_spec
='${libname}${release}${major}$shared_ext'
16467 shlibpath_overrides_runpath
=yes
16468 shlibpath_var
=DYLD_LIBRARY_PATH
16469 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16471 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16472 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16479 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16480 soname_spec
='${libname}${release}${shared_ext}$major'
16481 shlibpath_var
=LD_LIBRARY_PATH
16488 freebsd
* | dragonfly
*)
16489 # DragonFly does not have aout. When/if they implement a new
16490 # versioning mechanism, adjust this.
16491 if test -x /usr
/bin
/objformat
; then
16492 objformat
=`/usr/bin/objformat`
16495 freebsd
[123]*) objformat
=aout
;;
16496 *) objformat
=elf
;;
16499 version_type
=freebsd-
$objformat
16500 case $version_type in
16502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16507 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16511 shlibpath_var
=LD_LIBRARY_PATH
16514 shlibpath_overrides_runpath
=yes
16516 freebsd3.
[01]* | freebsdelf3.
[01]*)
16517 shlibpath_overrides_runpath
=yes
16518 hardcode_into_libs
=yes
16520 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16521 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16522 shlibpath_overrides_runpath
=no
16523 hardcode_into_libs
=yes
16525 *) # from 4.6 on, and DragonFly
16526 shlibpath_overrides_runpath
=yes
16527 hardcode_into_libs
=yes
16536 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16537 soname_spec
='${libname}${release}${shared_ext}$major'
16538 shlibpath_var
=LD_LIBRARY_PATH
16539 hardcode_into_libs
=yes
16542 hpux9
* | hpux10
* | hpux11
*)
16543 # Give a soname corresponding to the major version so that dld.sl refuses to
16544 # link against other versions.
16551 hardcode_into_libs
=yes
16552 dynamic_linker
="$host_os dld.so"
16553 shlibpath_var
=LD_LIBRARY_PATH
16554 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec
='${libname}${release}${shared_ext}$major'
16557 if test "X$HPUX_IA64_MODE" = X32
; then
16558 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16560 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16562 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16566 hardcode_into_libs
=yes
16567 dynamic_linker
="$host_os dld.sl"
16568 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16569 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16570 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571 soname_spec
='${libname}${release}${shared_ext}$major'
16572 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16573 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16577 dynamic_linker
="$host_os dld.sl"
16578 shlibpath_var
=SHLIB_PATH
16579 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 soname_spec
='${libname}${release}${shared_ext}$major'
16584 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16585 postinstall_cmds
='chmod 555 $lib'
16592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16593 soname_spec
='${libname}${release}${shared_ext}$major'
16594 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16595 shlibpath_var
=LD_LIBRARY_PATH
16596 shlibpath_overrides_runpath
=no
16597 hardcode_into_libs
=yes
16600 irix5
* | irix6
* | nonstopux
*)
16602 nonstopux
*) version_type
=nonstopux
;;
16604 if test "$lt_cv_prog_gnu_ld" = yes; then
16612 soname_spec
='${libname}${release}${shared_ext}$major'
16613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16615 irix5
* | nonstopux
*)
16616 libsuff
= shlibsuff
=
16619 case $LD in # libtool.m4 will add one of these switches to LD
16620 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16621 libsuff
= shlibsuff
= libmagic
=32-bit;;
16622 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16623 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16624 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16625 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16626 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16630 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16631 shlibpath_overrides_runpath
=no
16632 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16633 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16634 hardcode_into_libs
=yes
16637 # No shared lib support for Linux oldld, aout, or coff.
16638 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16642 # This must be Linux ELF.
16643 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec
='${libname}${release}${shared_ext}$major'
16649 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16650 shlibpath_var
=LD_LIBRARY_PATH
16651 shlibpath_overrides_runpath
=no
16653 # Some binutils ld are patched to set DT_RUNPATH
16654 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16655 $as_echo_n "(cached) " >&6
16657 lt_cv_shlibpath_overrides_runpath
=no
16658 save_LDFLAGS
=$LDFLAGS
16659 save_libdir
=$libdir
16660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16673 if ac_fn_c_try_link
"$LINENO"; then :
16674 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16675 lt_cv_shlibpath_overrides_runpath
=yes
16678 rm -f core conftest.err conftest.
$ac_objext \
16679 conftest
$ac_exeext conftest.
$ac_ext
16680 LDFLAGS
=$save_LDFLAGS
16681 libdir
=$save_libdir
16685 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16687 # This implies no fast_install, which is unacceptable.
16688 # Some rework will be needed to allow for fast_install
16689 # before this can be enabled.
16690 hardcode_into_libs
=yes
16692 # Append ld.so.conf contents to the search path
16693 if test -f /etc
/ld.so.conf
; then
16694 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;/^$/d' | tr '\n' ' '`
16695 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16698 # We used to test for /lib/ld.so.1 and disable shared libraries on
16699 # powerpc, because MkLinux only supported shared libraries with the
16700 # GNU dynamic linker. Since this was broken with cross compilers,
16701 # most powerpc-linux boxes support dynamic linking these days and
16702 # people can always --disable-shared, the test was removed, and we
16703 # assume the GNU/Linux dynamic linker is in use.
16704 dynamic_linker
='GNU/Linux ld.so'
16711 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16713 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16714 dynamic_linker
='NetBSD (a.out) ld.so'
16716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16717 soname_spec
='${libname}${release}${shared_ext}$major'
16718 dynamic_linker
='NetBSD ld.elf_so'
16720 shlibpath_var
=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath
=yes
16722 hardcode_into_libs
=yes
16727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728 shlibpath_var
=LD_LIBRARY_PATH
16729 shlibpath_overrides_runpath
=yes
16736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 soname_spec
='${libname}${release}${shared_ext}$major'
16738 shlibpath_var
=LD_LIBRARY_PATH
16739 shlibpath_overrides_runpath
=no
16740 hardcode_into_libs
=yes
16741 dynamic_linker
='ldqnx.so'
16746 sys_lib_dlsearch_path_spec
="/usr/lib"
16748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16750 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16751 *) need_version
=no
;;
16753 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16754 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16755 shlibpath_var
=LD_LIBRARY_PATH
16756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16758 openbsd2.
[89] | openbsd2.
[89].
*)
16759 shlibpath_overrides_runpath
=no
16762 shlibpath_overrides_runpath
=yes
16766 shlibpath_overrides_runpath
=yes
16771 libname_spec
='$name'
16774 library_names_spec
='$libname${shared_ext} $libname.a'
16775 dynamic_linker
='OS/2 ld.exe'
16776 shlibpath_var
=LIBPATH
16779 osf3
* | osf4
* | osf5
*)
16783 soname_spec
='${libname}${release}${shared_ext}$major'
16784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785 shlibpath_var
=LD_LIBRARY_PATH
16786 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16787 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16799 soname_spec
='${libname}${release}${shared_ext}$major'
16800 shlibpath_var
=LD_LIBRARY_PATH
16801 shlibpath_overrides_runpath
=yes
16802 hardcode_into_libs
=yes
16803 # ldd complains unless libraries are executable
16804 postinstall_cmds
='chmod +x $lib'
16809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16810 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16811 shlibpath_var
=LD_LIBRARY_PATH
16812 shlibpath_overrides_runpath
=yes
16813 if test "$with_gnu_ld" = yes; then
16821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16822 soname_spec
='${libname}${release}${shared_ext}$major'
16823 shlibpath_var
=LD_LIBRARY_PATH
16824 case $host_vendor in
16826 shlibpath_overrides_runpath
=no
16828 runpath_var
=LD_RUN_PATH
16836 shlibpath_overrides_runpath
=no
16837 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16843 if test -d /usr
/nec
;then
16845 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16846 soname_spec
='$libname${shared_ext}.$major'
16847 shlibpath_var
=LD_LIBRARY_PATH
16851 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16852 version_type
=freebsd-elf
16855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16856 soname_spec
='${libname}${release}${shared_ext}$major'
16857 shlibpath_var
=LD_LIBRARY_PATH
16858 shlibpath_overrides_runpath
=yes
16859 hardcode_into_libs
=yes
16860 if test "$with_gnu_ld" = yes; then
16861 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16863 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16866 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16870 sys_lib_dlsearch_path_spec
='/usr/lib'
16874 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16879 shlibpath_var
=LD_LIBRARY_PATH
16880 shlibpath_overrides_runpath
=no
16881 hardcode_into_libs
=yes
16886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887 soname_spec
='${libname}${release}${shared_ext}$major'
16888 shlibpath_var
=LD_LIBRARY_PATH
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16896 $as_echo "$dynamic_linker" >&6; }
16897 test "$dynamic_linker" = no
&& can_build_shared
=no
16899 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16900 if test "$GCC" = yes; then
16901 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16904 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16905 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16907 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16908 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16998 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17000 if test -n "$hardcode_libdir_flag_spec" ||
17001 test -n "$runpath_var" ||
17002 test "X$hardcode_automatic" = "Xyes" ; then
17004 # We can hardcode non-existent directories.
17005 if test "$hardcode_direct" != no
&&
17006 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17007 # have to relink, otherwise we might link with an installed library
17008 # when we should be linking with a yet-to-be-installed one
17009 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17010 test "$hardcode_minus_L" != no
; then
17011 # Linking always hardcodes the temporary library directory.
17012 hardcode_action
=relink
17014 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17015 hardcode_action
=immediate
17018 # We cannot hardcode anything, or else we can only hardcode existing
17020 hardcode_action
=unsupported
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17023 $as_echo "$hardcode_action" >&6; }
17025 if test "$hardcode_action" = relink ||
17026 test "$inherit_rpath" = yes; then
17027 # Fast installation is not supported
17028 enable_fast_install
=no
17029 elif test "$shlibpath_overrides_runpath" = yes ||
17030 test "$enable_shared" = no
; then
17031 # Fast installation is not necessary
17032 enable_fast_install
=needless
17040 if test "x$enable_dlopen" != xyes
; then
17041 enable_dlopen
=unknown
17042 enable_dlopen_self
=unknown
17043 enable_dlopen_self_static
=unknown
17050 lt_cv_dlopen
="load_add_on"
17052 lt_cv_dlopen_self
=yes
17055 mingw
* | pw32
* | cegcc
*)
17056 lt_cv_dlopen
="LoadLibrary"
17061 lt_cv_dlopen
="dlopen"
17066 # if libdl is installed we need to link against it
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17068 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17069 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17070 $as_echo_n "(cached) " >&6
17072 ac_check_lib_save_LIBS
=$LIBS
17074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17092 if ac_fn_c_try_link
"$LINENO"; then :
17093 ac_cv_lib_dl_dlopen
=yes
17095 ac_cv_lib_dl_dlopen
=no
17097 rm -f core conftest.err conftest.
$ac_objext \
17098 conftest
$ac_exeext conftest.
$ac_ext
17099 LIBS
=$ac_check_lib_save_LIBS
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17102 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17103 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17104 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17107 lt_cv_dlopen
="dyld"
17109 lt_cv_dlopen_self
=yes
17116 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17117 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17118 lt_cv_dlopen
="shl_load"
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17121 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17122 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17123 $as_echo_n "(cached) " >&6
17125 ac_check_lib_save_LIBS
=$LIBS
17127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17130 /* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17140 return shl_load ();
17145 if ac_fn_c_try_link
"$LINENO"; then :
17146 ac_cv_lib_dld_shl_load
=yes
17148 ac_cv_lib_dld_shl_load
=no
17150 rm -f core conftest.err conftest.
$ac_objext \
17151 conftest
$ac_exeext conftest.
$ac_ext
17152 LIBS
=$ac_check_lib_save_LIBS
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17155 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17156 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17157 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17159 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17160 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17161 lt_cv_dlopen
="dlopen"
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17164 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17165 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17166 $as_echo_n "(cached) " >&6
17168 ac_check_lib_save_LIBS
=$LIBS
17170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17173 /* Override any GCC internal prototype to avoid an error.
17174 Use char because int might match the return type of a GCC
17175 builtin and then its argument prototype would still apply. */
17188 if ac_fn_c_try_link
"$LINENO"; then :
17189 ac_cv_lib_dl_dlopen
=yes
17191 ac_cv_lib_dl_dlopen
=no
17193 rm -f core conftest.err conftest.
$ac_objext \
17194 conftest
$ac_exeext conftest.
$ac_ext
17195 LIBS
=$ac_check_lib_save_LIBS
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17198 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17199 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17200 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17203 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17204 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17205 $as_echo_n "(cached) " >&6
17207 ac_check_lib_save_LIBS
=$LIBS
17208 LIBS
="-lsvld $LIBS"
17209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17210 /* end confdefs.h. */
17212 /* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17227 if ac_fn_c_try_link
"$LINENO"; then :
17228 ac_cv_lib_svld_dlopen
=yes
17230 ac_cv_lib_svld_dlopen
=no
17232 rm -f core conftest.err conftest.
$ac_objext \
17233 conftest
$ac_exeext conftest.
$ac_ext
17234 LIBS
=$ac_check_lib_save_LIBS
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17237 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17238 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17239 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17242 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17243 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17244 $as_echo_n "(cached) " >&6
17246 ac_check_lib_save_LIBS
=$LIBS
17248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17261 return dld_link ();
17266 if ac_fn_c_try_link
"$LINENO"; then :
17267 ac_cv_lib_dld_dld_link
=yes
17269 ac_cv_lib_dld_dld_link
=no
17271 rm -f core conftest.err conftest.
$ac_objext \
17272 conftest
$ac_exeext conftest.
$ac_ext
17273 LIBS
=$ac_check_lib_save_LIBS
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17276 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17277 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17278 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17299 if test "x$lt_cv_dlopen" != xno
; then
17305 case $lt_cv_dlopen in
17307 save_CPPFLAGS
="$CPPFLAGS"
17308 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17310 save_LDFLAGS
="$LDFLAGS"
17311 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17314 LIBS
="$lt_cv_dlopen_libs $LIBS"
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17317 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17318 if test "${lt_cv_dlopen_self+set}" = set; then :
17319 $as_echo_n "(cached) " >&6
17321 if test "$cross_compiling" = yes; then :
17322 lt_cv_dlopen_self
=cross
17324 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17325 lt_status
=$lt_dlunknown
17326 cat > conftest.
$ac_ext <<_LT_EOF
17327 #line 17327 "configure"
17328 #include "confdefs.h"
17337 # define LT_DLGLOBAL RTLD_GLOBAL
17340 # define LT_DLGLOBAL DL_GLOBAL
17342 # define LT_DLGLOBAL 0
17346 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17347 find out it does not work in some platform. */
17348 #ifndef LT_DLLAZY_OR_NOW
17350 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17353 # define LT_DLLAZY_OR_NOW DL_LAZY
17356 # define LT_DLLAZY_OR_NOW RTLD_NOW
17359 # define LT_DLLAZY_OR_NOW DL_NOW
17361 # define LT_DLLAZY_OR_NOW 0
17368 void fnord() { int i=42;}
17371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17372 int status = $lt_dlunknown;
17376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17377 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17378 /* dlclose (self); */
17386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17387 (eval $ac_link) 2>&5
17389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17390 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17391 (.
/conftest
; exit; ) >&5 2>/dev
/null
17393 case x
$lt_status in
17394 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17395 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17396 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17399 # compilation failed
17400 lt_cv_dlopen_self
=no
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17408 $as_echo "$lt_cv_dlopen_self" >&6; }
17410 if test "x$lt_cv_dlopen_self" = xyes
; then
17411 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17413 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17414 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17415 $as_echo_n "(cached) " >&6
17417 if test "$cross_compiling" = yes; then :
17418 lt_cv_dlopen_self_static
=cross
17420 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17421 lt_status
=$lt_dlunknown
17422 cat > conftest.
$ac_ext <<_LT_EOF
17423 #line 17423 "configure"
17424 #include "confdefs.h"
17433 # define LT_DLGLOBAL RTLD_GLOBAL
17436 # define LT_DLGLOBAL DL_GLOBAL
17438 # define LT_DLGLOBAL 0
17442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17443 find out it does not work in some platform. */
17444 #ifndef LT_DLLAZY_OR_NOW
17446 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17449 # define LT_DLLAZY_OR_NOW DL_LAZY
17452 # define LT_DLLAZY_OR_NOW RTLD_NOW
17455 # define LT_DLLAZY_OR_NOW DL_NOW
17457 # define LT_DLLAZY_OR_NOW 0
17464 void fnord() { int i=42;}
17467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17468 int status = $lt_dlunknown;
17472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17473 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17474 /* dlclose (self); */
17482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17483 (eval $ac_link) 2>&5
17485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17486 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17487 (.
/conftest
; exit; ) >&5 2>/dev
/null
17489 case x
$lt_status in
17490 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17491 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17492 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17495 # compilation failed
17496 lt_cv_dlopen_self_static
=no
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17504 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17507 CPPFLAGS
="$save_CPPFLAGS"
17508 LDFLAGS
="$save_LDFLAGS"
17513 case $lt_cv_dlopen_self in
17514 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17515 *) enable_dlopen_self
=unknown
;;
17518 case $lt_cv_dlopen_self_static in
17519 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17520 *) enable_dlopen_self_static
=unknown
;;
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17543 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17544 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17545 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17546 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17548 $as_echo "yes" >&6; }
17550 # FIXME - insert some real tests, host_os isn't really good enough
17553 if test -n "$STRIP" ; then
17554 striplib
="$STRIP -x"
17555 old_striplib
="$STRIP -S"
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17557 $as_echo "yes" >&6; }
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17560 $as_echo "no" >&6; }
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565 $as_echo "no" >&6; }
17581 # Report which library types will actually be built
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17583 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17585 $as_echo "$can_build_shared" >&6; }
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17588 $as_echo_n "checking whether to build shared libraries... " >&6; }
17589 test "$can_build_shared" = "no" && enable_shared
=no
17591 # On AIX, shared libraries and static libraries use the same namespace, and
17592 # are all built from PIC.
17595 test "$enable_shared" = yes && enable_static
=no
17596 if test -n "$RANLIB"; then
17597 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17598 postinstall_cmds
='$RANLIB $lib'
17603 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17604 test "$enable_shared" = yes && enable_static
=no
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17609 $as_echo "$enable_shared" >&6; }
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17612 $as_echo_n "checking whether to build static libraries... " >&6; }
17613 # Make sure either enable_shared or enable_static is yes.
17614 test "$enable_shared" = yes || enable_static
=yes
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17616 $as_echo "$enable_static" >&6; }
17623 ac_cpp
='$CPP $CPPFLAGS'
17624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17632 ac_cpp
='$CXXCPP $CPPFLAGS'
17633 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17634 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17635 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17637 archive_cmds_need_lc_CXX
=no
17638 allow_undefined_flag_CXX
=
17639 always_export_symbols_CXX
=no
17640 archive_expsym_cmds_CXX
=
17641 compiler_needs_object_CXX
=no
17642 export_dynamic_flag_spec_CXX
=
17643 hardcode_direct_CXX
=no
17644 hardcode_direct_absolute_CXX
=no
17645 hardcode_libdir_flag_spec_CXX
=
17646 hardcode_libdir_flag_spec_ld_CXX
=
17647 hardcode_libdir_separator_CXX
=
17648 hardcode_minus_L_CXX
=no
17649 hardcode_shlibpath_var_CXX
=unsupported
17650 hardcode_automatic_CXX
=no
17651 inherit_rpath_CXX
=no
17653 module_expsym_cmds_CXX
=
17654 link_all_deplibs_CXX
=unknown
17655 old_archive_cmds_CXX
=$old_archive_cmds
17656 no_undefined_flag_CXX
=
17657 whole_archive_flag_spec_CXX
=
17658 enable_shared_with_static_runtimes_CXX
=no
17660 # Source file extension for C++ test sources.
17663 # Object file extension for compiled C++ test sources.
17667 # No sense in running all these tests if we already determined that
17668 # the CXX compiler isn't working. Some variables (like enable_shared)
17669 # are currently assumed to apply to all compilers on this platform,
17670 # and will be corrupted by setting them based on a non-working compiler.
17671 if test "$_lt_caught_CXX_error" != yes; then
17672 # Code to be used in simple compile tests
17673 lt_simple_compile_test_code
="int some_variable = 0;"
17675 # Code to be used in simple link tests
17676 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
17678 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17685 # If no C compiler was specified, use CC.
17688 # If no C compiler flags were specified, use CFLAGS.
17689 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17691 # Allow CC to be a program name with arguments.
17695 # save warnings/boilerplate of simple test code
17696 ac_outfile
=conftest.
$ac_objext
17697 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17698 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17699 _lt_compiler_boilerplate
=`cat conftest.err`
17702 ac_outfile
=conftest.
$ac_objext
17703 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17704 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17705 _lt_linker_boilerplate
=`cat conftest.err`
17709 # Allow CC to be a program name with arguments.
17714 lt_save_with_gnu_ld
=$with_gnu_ld
17715 lt_save_path_LD
=$lt_cv_path_LD
17716 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17717 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
17719 $as_unset lt_cv_prog_gnu_ld
17721 if test -n "${lt_cv_path_LDCXX+set}"; then
17722 lt_cv_path_LD
=$lt_cv_path_LDCXX
17724 $as_unset lt_cv_path_LD
17726 test -z "${LDCXX+set}" || LD
=$LDCXX
17730 for cc_temp
in $compiler""; do
17732 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17733 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17738 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17741 if test -n "$compiler"; then
17742 # We don't want -fno-exception when compiling C++ code, so set the
17743 # no_builtin_flag separately
17744 if test "$GXX" = yes; then
17745 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
17747 lt_prog_compiler_no_builtin_flag_CXX
=
17750 if test "$GXX" = yes; then
17751 # Set up default GNU C++ configuration
17755 # Check whether --with-gnu-ld was given.
17756 if test "${with_gnu_ld+set}" = set; then :
17757 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
17763 if test "$GCC" = yes; then
17764 # Check if gcc -print-prog-name=ld gives a path.
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17766 $as_echo_n "checking for ld used by $CC... " >&6; }
17769 # gcc leaves a trailing carriage return which upsets mingw
17770 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17772 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
17775 # Accept absolute paths.
17777 re_direlt
='/[^/][^/]*/\.\./'
17778 # Canonicalize the pathname of ld
17779 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17780 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
17781 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17783 test -z "$LD" && LD
="$ac_prog"
17786 # If it fails, then pretend we aren't using GCC.
17790 # If it is relative, then search for the first ld in PATH.
17791 with_gnu_ld
=unknown
17794 elif test "$with_gnu_ld" = yes; then
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17796 $as_echo_n "checking for GNU ld... " >&6; }
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17799 $as_echo_n "checking for non-GNU ld... " >&6; }
17801 if test "${lt_cv_path_LD+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17804 if test -z "$LD"; then
17805 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
17806 for ac_dir
in $PATH; do
17808 test -z "$ac_dir" && ac_dir
=.
17809 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
17810 lt_cv_path_LD
="$ac_dir/$ac_prog"
17811 # Check to see if the program is GNU ld. I'd rather use --version,
17812 # but apparently some variants of GNU ld only accept -v.
17813 # Break only if it was the GNU/non-GNU ld that we prefer.
17814 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17815 *GNU
* |
*'with BFD'*)
17816 test "$with_gnu_ld" != no
&& break
17819 test "$with_gnu_ld" != yes && break
17826 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
17830 LD
="$lt_cv_path_LD"
17831 if test -n "$LD"; then
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17833 $as_echo "$LD" >&6; }
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17836 $as_echo "no" >&6; }
17838 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17840 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17841 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17842 $as_echo_n "(cached) " >&6
17844 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17845 case `$LD -v 2>&1 </dev/null` in
17846 *GNU
* |
*'with BFD'*)
17847 lt_cv_prog_gnu_ld
=yes
17850 lt_cv_prog_gnu_ld
=no
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17855 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17856 with_gnu_ld
=$lt_cv_prog_gnu_ld
17864 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17865 # archiving commands below assume that GNU ld is being used.
17866 if test "$with_gnu_ld" = yes; then
17867 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17868 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'
17870 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17871 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17873 # If archive_cmds runs LD, not CC, wlarc should be empty
17874 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17875 # investigate it a little bit more. (MM)
17878 # ancient GNU ld didn't support --whole-archive et. al.
17879 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17880 $GREP 'no-whole-archive' > /dev
/null
; then
17881 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17883 whole_archive_flag_spec_CXX
=
17889 # A generic and very simple default shared library creation
17890 # command for GNU C++ for the case where it uses the native
17891 # linker, instead of GNU ld. If possible, this setting should
17892 # overridden to take advantage of the native linker features on
17893 # the platform it is being used on.
17894 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17897 # Commands to make compiler produce verbose output that lists
17898 # what "hidden" libraries, object files and flags are used when
17899 # linking a shared library.
17900 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
17908 # PORTME: fill in a description of your system's C++ link characteristics
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17910 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17914 # FIXME: insert proper C++ library support
17918 if test "$host_cpu" = ia64
; then
17919 # On IA64, the linker does run time linking by default, so we don't
17920 # have to do anything special.
17921 aix_use_runtimelinking
=no
17922 exp_sym_flag
='-Bexport'
17925 aix_use_runtimelinking
=no
17927 # Test if we are trying to use run time linking or normal
17928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17929 # need to do runtime linking.
17930 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17931 for ld_flag
in $LDFLAGS; do
17934 aix_use_runtimelinking
=yes
17942 exp_sym_flag
='-bexport'
17943 no_entry_flag
='-bnoentry'
17946 # When large executables or shared objects are built, AIX ld can
17947 # have problems creating the table of contents. If linking a library
17948 # or program results in "error TOC overflow" add -mminimal-toc to
17949 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17950 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17952 archive_cmds_CXX
=''
17953 hardcode_direct_CXX
=yes
17954 hardcode_direct_absolute_CXX
=yes
17955 hardcode_libdir_separator_CXX
=':'
17956 link_all_deplibs_CXX
=yes
17957 file_list_spec_CXX
='${wl}-f,'
17959 if test "$GXX" = yes; then
17960 case $host_os in aix4.
[012]|aix4.
[012].
*)
17961 # We only want to do this on AIX 4.2 and lower, the check
17962 # below for broken collect2 doesn't work under 4.3+
17963 collect2name
=`${CC} -print-prog-name=collect2`
17964 if test -f "$collect2name" &&
17965 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17967 # We have reworked collect2
17970 # We have old collect2
17971 hardcode_direct_CXX
=unsupported
17972 # It fails to find uninstalled libraries when the uninstalled
17973 # path is not listed in the libpath. Setting hardcode_minus_L
17974 # to unsupported forces relinking
17975 hardcode_minus_L_CXX
=yes
17976 hardcode_libdir_flag_spec_CXX
='-L$libdir'
17977 hardcode_libdir_separator_CXX
=
17980 shared_flag
='-shared'
17981 if test "$aix_use_runtimelinking" = yes; then
17982 shared_flag
="$shared_flag "'${wl}-G'
17986 if test "$host_cpu" = ia64
; then
17987 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17988 # chokes on -Wl,-G. The following line is correct:
17991 if test "$aix_use_runtimelinking" = yes; then
17992 shared_flag
='${wl}-G'
17994 shared_flag
='${wl}-bM:SRE'
17999 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18000 # It seems that -bexpall does not export symbols beginning with
18001 # underscore (_), so it is better to generate a list of symbols to
18003 always_export_symbols_CXX
=yes
18004 if test "$aix_use_runtimelinking" = yes; then
18005 # Warning - without using the other runtime loading flags (-brtl),
18006 # -berok will link without error, but may produce a broken library.
18007 allow_undefined_flag_CXX
='-berok'
18008 # Determine the default libpath from the value encoded in an empty
18010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18021 if ac_fn_cxx_try_link
"$LINENO"; then :
18023 lt_aix_libpath_sed
='
18024 /Import File Strings/,/^$/ {
18030 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18031 # Check for a 64-bit object if we didn't find anything.
18032 if test -z "$aix_libpath"; then
18033 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18036 rm -f core conftest.err conftest.
$ac_objext \
18037 conftest
$ac_exeext conftest.
$ac_ext
18038 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18040 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18042 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18044 if test "$host_cpu" = ia64
; then
18045 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18046 allow_undefined_flag_CXX
="-z nodefs"
18047 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"
18049 # Determine the default libpath from the value encoded in an
18050 # empty executable.
18051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18062 if ac_fn_cxx_try_link
"$LINENO"; then :
18064 lt_aix_libpath_sed
='
18065 /Import File Strings/,/^$/ {
18071 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18072 # Check for a 64-bit object if we didn't find anything.
18073 if test -z "$aix_libpath"; then
18074 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18077 rm -f core conftest.err conftest.
$ac_objext \
18078 conftest
$ac_exeext conftest.
$ac_ext
18079 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18081 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18082 # Warning - without using the other run time loading flags,
18083 # -berok will link without error, but may produce a broken library.
18084 no_undefined_flag_CXX
=' ${wl}-bernotok'
18085 allow_undefined_flag_CXX
=' ${wl}-berok'
18086 # Exported symbols can be pulled into shared objects from archives
18087 whole_archive_flag_spec_CXX
='$convenience'
18088 archive_cmds_need_lc_CXX
=yes
18089 # This is similar to how AIX traditionally builds its shared
18091 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'
18097 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18098 allow_undefined_flag_CXX
=unsupported
18099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18100 # support --undefined. This deserves some investigation. FIXME
18101 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18108 case $cc_basename in
18110 # FIXME: insert proper C++ library support
18116 cygwin
* | mingw
* | pw32
* | cegcc
*)
18117 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18118 # as there is no search path for DLLs.
18119 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18120 allow_undefined_flag_CXX
=unsupported
18121 always_export_symbols_CXX
=no
18122 enable_shared_with_static_runtimes_CXX
=yes
18124 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18125 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'
18126 # If the export-symbols file already is a .def file (1st line
18127 # is EXPORTS), use it as is; otherwise, prepend...
18128 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18129 cp $export_symbols $output_objdir/$soname.def;
18131 echo EXPORTS > $output_objdir/$soname.def;
18132 cat $export_symbols >> $output_objdir/$soname.def;
18134 $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'
18139 darwin
* | rhapsody
*)
18142 archive_cmds_need_lc_CXX
=no
18143 hardcode_direct_CXX
=no
18144 hardcode_automatic_CXX
=yes
18145 hardcode_shlibpath_var_CXX
=unsupported
18146 whole_archive_flag_spec_CXX
=''
18147 link_all_deplibs_CXX
=yes
18148 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18149 case $cc_basename in
18150 ifort
*) _lt_dar_can_shared
=yes ;;
18151 *) _lt_dar_can_shared
=$GCC ;;
18153 if test "$_lt_dar_can_shared" = "yes"; then
18154 output_verbose_link_cmd
=echo
18155 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}"
18156 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18157 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}"
18158 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}"
18159 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18160 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}"
18161 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}"
18171 case $cc_basename in
18173 # FIXME: insert proper C++ library support
18177 # Green Hills C++ Compiler
18178 # FIXME: insert proper C++ library support
18182 # FIXME: insert proper C++ library support
18189 # C++ shared libraries reported to be fairly broken before
18195 archive_cmds_need_lc_CXX
=no
18198 freebsd
* | dragonfly
*)
18199 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18208 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18209 hardcode_libdir_separator_CXX
=:
18210 export_dynamic_flag_spec_CXX
='${wl}-E'
18211 hardcode_direct_CXX
=yes
18212 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18213 # but as the default
18214 # location of the library.
18216 case $cc_basename in
18218 # FIXME: insert proper C++ library support
18222 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'
18223 # Commands to make compiler produce verbose output that lists
18224 # what "hidden" libraries, object files and flags are used when
18225 # linking a shared library.
18227 # There doesn't appear to be a way to prevent this compiler from
18228 # explicitly linking system object files so we need to strip them
18229 # from the output so that they don't get included in the library
18231 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; $ECHO "X$list" | $Xsed'
18234 if test "$GXX" = yes; then
18235 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'
18237 # FIXME: insert proper C++ library support
18245 if test $with_gnu_ld = no
; then
18246 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18247 hardcode_libdir_separator_CXX
=:
18253 export_dynamic_flag_spec_CXX
='${wl}-E'
18259 hardcode_direct_CXX
=no
18260 hardcode_shlibpath_var_CXX
=no
18263 hardcode_direct_CXX
=yes
18264 hardcode_direct_absolute_CXX
=yes
18265 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18266 # but as the default
18267 # location of the library.
18271 case $cc_basename in
18273 # FIXME: insert proper C++ library support
18279 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18282 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18285 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18288 # Commands to make compiler produce verbose output that lists
18289 # what "hidden" libraries, object files and flags are used when
18290 # linking a shared library.
18292 # There doesn't appear to be a way to prevent this compiler from
18293 # explicitly linking system object files so we need to strip them
18294 # from the output so that they don't get included in the library
18296 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; $ECHO "X$list" | $Xsed'
18299 if test "$GXX" = yes; then
18300 if test $with_gnu_ld = no
; then
18303 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18306 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18309 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'
18314 # FIXME: insert proper C++ library support
18322 hardcode_direct_CXX
=no
18323 hardcode_shlibpath_var_CXX
=no
18324 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18325 export_dynamic_flag_spec_CXX
='${wl}-E'
18326 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18327 # Instead, shared libraries are loaded at an image base (0x10000000 by
18328 # default) and relocated if they conflict, which is a slow very memory
18329 # consuming and fragmenting process. To avoid this, we pick a random,
18330 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18331 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18332 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'
18333 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'
18336 case $cc_basename in
18339 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18341 # Archives containing C++ object files must be created using
18342 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18343 # necessary to make sure instantiated templates are included
18345 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18348 if test "$GXX" = yes; then
18349 if test "$with_gnu_ld" = no
; then
18350 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18352 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
18355 link_all_deplibs_CXX
=yes
18358 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18359 hardcode_libdir_separator_CXX
=:
18360 inherit_rpath_CXX
=yes
18363 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18364 case $cc_basename in
18366 # Kuck and Associates, Inc. (KAI) C++ Compiler
18368 # KCC will only create a shared library if the output file
18369 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18370 # to its proper name (with version) after linking.
18371 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'
18372 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'
18373 # Commands to make compiler produce verbose output that lists
18374 # what "hidden" libraries, object files and flags are used when
18375 # linking a shared library.
18377 # There doesn't appear to be a way to prevent this compiler from
18378 # explicitly linking system object files so we need to strip them
18379 # from the output so that they don't get included in the library
18381 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; $ECHO "X$list" | $Xsed'
18383 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18384 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18386 # Archives containing C++ object files must be created using
18387 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18388 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18393 # version 8.0 and above of icpc choke on multiply defined symbols
18394 # if we add $predep_objects and $postdep_objects, however 7.1 and
18395 # earlier do not add the objects themselves.
18396 case `$CC -V 2>&1` in
18398 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18399 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'
18401 *) # Version 8.0 or newer
18404 ia64
*) tmp_idyn
=' -i_dynamic';;
18406 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18407 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'
18410 archive_cmds_need_lc_CXX
=no
18411 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18412 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18413 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18416 # Portland Group C++ compiler
18418 *pgCC\
[1-5]* |
*pgcpp\
[1-5]*)
18419 prelink_cmds_CXX
='tpldir=Template.dir~
18421 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18422 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18423 old_archive_cmds_CXX
='tpldir=Template.dir~
18425 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18426 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18428 archive_cmds_CXX
='tpldir=Template.dir~
18430 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18431 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18432 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18434 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18435 $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'
18437 *) # Version 6 will use weak symbols
18438 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18439 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'
18443 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18444 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18445 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18449 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18450 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'
18452 runpath_var
=LD_RUN_PATH
18453 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18454 hardcode_libdir_separator_CXX
=:
18456 # Commands to make compiler produce verbose output that lists
18457 # what "hidden" libraries, object files and flags are used when
18458 # linking a shared library.
18460 # There doesn't appear to be a way to prevent this compiler from
18461 # explicitly linking system object files so we need to strip them
18462 # from the output so that they don't get included in the library
18464 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18467 # IBM XL 8.0 on PPC, with GNU ld
18468 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18469 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18470 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18471 if test "x$supports_anon_versioning" = xyes
; then
18472 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18474 echo "local: *; };" >> $output_objdir/$libname.ver~
18475 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18479 case `$CC -V 2>&1 | sed 5q` in
18482 no_undefined_flag_CXX
=' -zdefs'
18483 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18484 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'
18485 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18486 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18487 compiler_needs_object_CXX
=yes
18489 # Not sure whether something based on
18490 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18492 output_verbose_link_cmd
='echo'
18494 # Archives containing C++ object files must be created using
18495 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18496 # necessary to make sure instantiated templates are included
18498 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18506 # FIXME: insert proper C++ library support
18511 # FIXME: insert proper C++ library support
18516 case $cc_basename in
18518 # FIXME: insert proper C++ library support
18522 # FIXME: insert proper C++ library support
18529 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18530 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18532 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18533 hardcode_direct_CXX
=yes
18534 hardcode_shlibpath_var_CXX
=no
18536 # Workaround some broken pre-1.5 toolchains
18537 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18545 # C++ shared libraries are fairly broken
18550 if test -f /usr
/libexec
/ld.so
; then
18551 hardcode_direct_CXX
=yes
18552 hardcode_shlibpath_var_CXX
=no
18553 hardcode_direct_absolute_CXX
=yes
18554 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18555 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18557 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18558 export_dynamic_flag_spec_CXX
='${wl}-E'
18559 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18561 output_verbose_link_cmd
=echo
18567 osf3
* | osf4
* | osf5
*)
18568 case $cc_basename in
18570 # Kuck and Associates, Inc. (KAI) C++ Compiler
18572 # KCC will only create a shared library if the output file
18573 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18574 # to its proper name (with version) after linking.
18575 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'
18577 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18578 hardcode_libdir_separator_CXX
=:
18580 # Archives containing C++ object files must be created using
18581 # the KAI C++ compiler.
18583 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
18584 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
18588 # Rational C++ 2.4.1
18589 # FIXME: insert proper C++ library support
18595 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18596 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18597 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18600 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18601 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18602 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18603 echo "-hidden">> $lib.exp~
18604 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
18606 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18610 hardcode_libdir_separator_CXX
=:
18612 # Commands to make compiler produce verbose output that lists
18613 # what "hidden" libraries, object files and flags are used when
18614 # linking a shared library.
18616 # There doesn't appear to be a way to prevent this compiler from
18617 # explicitly linking system object files so we need to strip them
18618 # from the output so that they don't get included in the library
18620 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18623 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18624 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18627 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18630 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18634 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18635 hardcode_libdir_separator_CXX
=:
18637 # Commands to make compiler produce verbose output that lists
18638 # what "hidden" libraries, object files and flags are used when
18639 # linking a shared library.
18640 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18643 # FIXME: insert proper C++ library support
18651 # FIXME: insert proper C++ library support
18656 case $cc_basename in
18659 # FIXME: insert proper C++ library support
18664 # FIXME: insert proper C++ library support
18668 # FIXME: insert proper C++ library support
18675 case $cc_basename in
18677 # Sun C++ 4.2, 5.x and Centerline C++
18678 archive_cmds_need_lc_CXX
=yes
18679 no_undefined_flag_CXX
=' -zdefs'
18680 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18681 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18682 $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'
18684 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18685 hardcode_shlibpath_var_CXX
=no
18687 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18689 # The compiler driver will combine and reorder linker options,
18690 # but understands `-z linker_flag'.
18691 # Supported since Solaris 2.6 (maybe 2.5.1?)
18692 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
18695 link_all_deplibs_CXX
=yes
18697 output_verbose_link_cmd
='echo'
18699 # Archives containing C++ object files must be created using
18700 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18701 # necessary to make sure instantiated templates are included
18703 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18706 # Green Hills C++ Compiler
18707 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18709 # The C++ compiler must be used to create the archive.
18710 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18713 # GNU C++ compiler with Solaris linker
18714 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18715 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18716 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
18717 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18718 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18719 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18721 # Commands to make compiler produce verbose output that lists
18722 # what "hidden" libraries, object files and flags are used when
18723 # linking a shared library.
18724 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18726 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18728 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18729 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18730 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18732 # Commands to make compiler produce verbose output that lists
18733 # what "hidden" libraries, object files and flags are used when
18734 # linking a shared library.
18735 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18738 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18740 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18742 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18750 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18751 no_undefined_flag_CXX
='${wl}-z,text'
18752 archive_cmds_need_lc_CXX
=no
18753 hardcode_shlibpath_var_CXX
=no
18754 runpath_var
='LD_RUN_PATH'
18756 case $cc_basename in
18758 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18759 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18762 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18763 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18768 sysv5
* | sco3.2v5
* | sco5v6
*)
18769 # Note: We can NOT use -z defs as we might desire, because we do not
18770 # link with -lc, and that would cause any symbols used from libc to
18771 # always be unresolved, which means just about no library would
18772 # ever link correctly. If we're not using GNU ld we use -z text
18773 # though, which does catch some bad symbols but isn't as heavy-handed
18775 no_undefined_flag_CXX
='${wl}-z,text'
18776 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18777 archive_cmds_need_lc_CXX
=no
18778 hardcode_shlibpath_var_CXX
=no
18779 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
18780 hardcode_libdir_separator_CXX
=':'
18781 link_all_deplibs_CXX
=yes
18782 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18783 runpath_var
='LD_RUN_PATH'
18785 case $cc_basename in
18787 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18788 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18792 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18798 case $cc_basename in
18800 # NonStop-UX NCC 3.20
18801 # FIXME: insert proper C++ library support
18805 # FIXME: insert proper C++ library support
18812 # FIXME: insert proper C++ library support
18817 # FIXME: insert proper C++ library support
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18823 $as_echo "$ld_shlibs_CXX" >&6; }
18824 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18830 ## There is no encapsulation within the following macros, do not change
18831 ## the running order or otherwise move them around unless you know exactly
18832 ## what you are doing...
18833 # Dependencies to place before and after the object being linked:
18834 predep_objects_CXX
=
18835 postdep_objects_CXX
=
18838 compiler_lib_search_path_CXX
=
18840 cat > conftest.
$ac_ext <<_LT_EOF
18844 Foo (void) { a = 0; }
18850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18851 (eval $ac_compile) 2>&5
18853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18854 test $ac_status = 0; }; then
18855 # Parse the compiler output and extract the necessary
18856 # objects, libraries and library flags.
18858 # Sentinel used to keep track of whether or not we are before
18859 # the conftest object file.
18860 pre_test_object_deps_done
=no
18862 for p
in `eval "$output_verbose_link_cmd"`; do
18866 # Some compilers place space between "-{L,R}" and the path.
18867 # Remove the space.
18868 if test $p = "-L" ||
18869 test $p = "-R"; then
18876 if test "$pre_test_object_deps_done" = no
; then
18879 # Internal compiler library paths should come after those
18880 # provided the user. The postdeps already come after the
18881 # user supplied libs so there is no need to process them.
18882 if test -z "$compiler_lib_search_path_CXX"; then
18883 compiler_lib_search_path_CXX
="${prev}${p}"
18885 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
18888 # The "-l" case would never come before the object being
18889 # linked, so don't bother handling this case.
18892 if test -z "$postdeps_CXX"; then
18893 postdeps_CXX
="${prev}${p}"
18895 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
18901 # This assumes that the test object file only shows up
18902 # once in the compiler output.
18903 if test "$p" = "conftest.$objext"; then
18904 pre_test_object_deps_done
=yes
18908 if test "$pre_test_object_deps_done" = no
; then
18909 if test -z "$predep_objects_CXX"; then
18910 predep_objects_CXX
="$p"
18912 predep_objects_CXX
="$predep_objects_CXX $p"
18915 if test -z "$postdep_objects_CXX"; then
18916 postdep_objects_CXX
="$p"
18918 postdep_objects_CXX
="$postdep_objects_CXX $p"
18923 *) ;; # Ignore the rest.
18931 echo "libtool.m4: error: problem compiling CXX test program"
18934 $RM -f confest.
$objext
18936 # PORTME: override above test on systems where it is broken
18939 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18940 # hack all around it, let's just trust "g++" to DTRT.
18941 predep_objects_CXX
=
18942 postdep_objects_CXX
=
18947 case `$CC -V 2>&1 | sed 5q` in
18951 # The more standards-conforming stlport4 library is
18952 # incompatible with the Cstd library. Avoid specifying
18953 # it if it's in CXXFLAGS. Ignore libCrun as
18954 # -library=stlport4 depends on it.
18955 case " $CXX $CXXFLAGS " in
18956 *" -library=stlport4 "*)
18957 solaris_use_stlport4
=yes
18961 if test "$solaris_use_stlport4" != yes; then
18962 postdeps_CXX
='-library=Cstd -library=Crun'
18969 case $cc_basename in
18971 # The more standards-conforming stlport4 library is
18972 # incompatible with the Cstd library. Avoid specifying
18973 # it if it's in CXXFLAGS. Ignore libCrun as
18974 # -library=stlport4 depends on it.
18975 case " $CXX $CXXFLAGS " in
18976 *" -library=stlport4 "*)
18977 solaris_use_stlport4
=yes
18981 # Adding this requires a known-good setup of shared libraries for
18982 # Sun compiler versions before 5.6, else PIC objects from an old
18983 # archive will be linked into the output, leading to subtle bugs.
18984 if test "$solaris_use_stlport4" != yes; then
18985 postdeps_CXX
='-library=Cstd -library=Crun'
18993 case " $postdeps_CXX " in
18994 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
18996 compiler_lib_search_dirs_CXX
=
18997 if test -n "${compiler_lib_search_path_CXX}"; then
18998 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19031 lt_prog_compiler_wl_CXX
=
19032 lt_prog_compiler_pic_CXX
=
19033 lt_prog_compiler_static_CXX
=
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19036 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19038 # C++ specific cases for pic, static, wl, etc.
19039 if test "$GXX" = yes; then
19040 lt_prog_compiler_wl_CXX
='-Wl,'
19041 lt_prog_compiler_static_CXX
='-static'
19045 # All AIX code is PIC.
19046 if test "$host_cpu" = ia64
; then
19047 # AIX 5 now supports IA64 processor
19048 lt_prog_compiler_static_CXX
='-Bstatic'
19055 # see comment about AmigaOS4 .so support
19056 lt_prog_compiler_pic_CXX
='-fPIC'
19059 # FIXME: we need at least 68020 code to build shared libraries, but
19060 # adding the `-m68020' flag to GCC prevents building anything better,
19062 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19067 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19068 # PIC is the default for these OSes.
19070 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19071 # This hack is so that the source file can tell whether it is being
19072 # built for inclusion in a dll (and should export symbols for example).
19073 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19074 # (--disable-auto-import) libraries
19075 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19077 darwin
* | rhapsody
*)
19078 # PIC is the default on this platform
19079 # Common symbols not allowed in MH_DYLIB files
19080 lt_prog_compiler_pic_CXX
='-fno-common'
19083 # DJGPP does not support shared libraries at all
19084 lt_prog_compiler_pic_CXX
=
19087 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19088 # Instead, we relocate shared libraries at runtime.
19091 if test -d /usr
/nec
; then
19092 lt_prog_compiler_pic_CXX
=-Kconform_pic
19096 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19097 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19098 # sets the default TLS model and affects inlining.
19103 lt_prog_compiler_pic_CXX
='-fPIC'
19108 # QNX uses GNU C++, but need to define -shared option too, otherwise
19109 # it will coredump.
19110 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19113 lt_prog_compiler_pic_CXX
='-fPIC'
19119 # All AIX code is PIC.
19120 if test "$host_cpu" = ia64
; then
19121 # AIX 5 now supports IA64 processor
19122 lt_prog_compiler_static_CXX
='-Bstatic'
19124 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19128 case $cc_basename in
19130 # Green Hills C++ Compiler
19131 # _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"
19136 case $cc_basename in
19138 lt_prog_compiler_pic_CXX
='-KPIC'
19141 # Green Hills C++ Compiler
19142 lt_prog_compiler_pic_CXX
='-pic'
19148 freebsd
* | dragonfly
*)
19149 # FreeBSD uses GNU C++
19151 hpux9
* | hpux10
* | hpux11
*)
19152 case $cc_basename in
19154 lt_prog_compiler_wl_CXX
='-Wl,'
19155 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19156 if test "$host_cpu" != ia64
; then
19157 lt_prog_compiler_pic_CXX
='+Z'
19161 lt_prog_compiler_wl_CXX
='-Wl,'
19162 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19168 lt_prog_compiler_pic_CXX
='+Z'
19177 # This is c89, which is MS Visual C++ (no shared libs)
19178 # Anyone wants to do a port?
19180 irix5
* | irix6
* | nonstopux
*)
19181 case $cc_basename in
19183 lt_prog_compiler_wl_CXX
='-Wl,'
19184 lt_prog_compiler_static_CXX
='-non_shared'
19185 # CC pic flag -KPIC is the default.
19191 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19192 case $cc_basename in
19195 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19196 lt_prog_compiler_pic_CXX
='-fPIC'
19199 # old Intel C++ for x86_64 which still supported -KPIC.
19200 lt_prog_compiler_wl_CXX
='-Wl,'
19201 lt_prog_compiler_pic_CXX
='-KPIC'
19202 lt_prog_compiler_static_CXX
='-static'
19205 # Intel C++, used to be incompatible with GCC.
19206 # ICC 10 doesn't accept -KPIC any more.
19207 lt_prog_compiler_wl_CXX
='-Wl,'
19208 lt_prog_compiler_pic_CXX
='-fPIC'
19209 lt_prog_compiler_static_CXX
='-static'
19212 # Portland Group C++ compiler
19213 lt_prog_compiler_wl_CXX
='-Wl,'
19214 lt_prog_compiler_pic_CXX
='-fpic'
19215 lt_prog_compiler_static_CXX
='-Bstatic'
19219 # Make sure the PIC flag is empty. It appears that all Alpha
19220 # Linux and Compaq Tru64 Unix objects are PIC.
19221 lt_prog_compiler_pic_CXX
=
19222 lt_prog_compiler_static_CXX
='-non_shared'
19225 # IBM XL 8.0 on PPC
19226 lt_prog_compiler_wl_CXX
='-Wl,'
19227 lt_prog_compiler_pic_CXX
='-qpic'
19228 lt_prog_compiler_static_CXX
='-qstaticlink'
19231 case `$CC -V 2>&1 | sed 5q` in
19234 lt_prog_compiler_pic_CXX
='-KPIC'
19235 lt_prog_compiler_static_CXX
='-Bstatic'
19236 lt_prog_compiler_wl_CXX
='-Qoption ld '
19247 case $cc_basename in
19249 lt_prog_compiler_pic_CXX
='-W c,exportall'
19258 # QNX uses GNU C++, but need to define -shared option too, otherwise
19259 # it will coredump.
19260 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19262 osf3
* | osf4
* | osf5
*)
19263 case $cc_basename in
19265 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19268 # Rational C++ 2.4.1
19269 lt_prog_compiler_pic_CXX
='-pic'
19272 # Digital/Compaq C++
19273 lt_prog_compiler_wl_CXX
='-Wl,'
19274 # Make sure the PIC flag is empty. It appears that all Alpha
19275 # Linux and Compaq Tru64 Unix objects are PIC.
19276 lt_prog_compiler_pic_CXX
=
19277 lt_prog_compiler_static_CXX
='-non_shared'
19286 case $cc_basename in
19288 # Sun C++ 4.2, 5.x and Centerline C++
19289 lt_prog_compiler_pic_CXX
='-KPIC'
19290 lt_prog_compiler_static_CXX
='-Bstatic'
19291 lt_prog_compiler_wl_CXX
='-Qoption ld '
19294 # Green Hills C++ Compiler
19295 lt_prog_compiler_pic_CXX
='-PIC'
19302 case $cc_basename in
19305 lt_prog_compiler_pic_CXX
='-pic'
19306 lt_prog_compiler_static_CXX
='-Bstatic'
19310 lt_prog_compiler_pic_CXX
='-pic'
19316 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19317 case $cc_basename in
19319 lt_prog_compiler_wl_CXX
='-Wl,'
19320 lt_prog_compiler_pic_CXX
='-KPIC'
19321 lt_prog_compiler_static_CXX
='-Bstatic'
19326 case $cc_basename in
19328 # NonStop-UX NCC 3.20
19329 lt_prog_compiler_pic_CXX
='-KPIC'
19338 lt_prog_compiler_can_build_shared_CXX
=no
19344 # For platforms which do not support PIC, -DPIC is meaningless:
19346 lt_prog_compiler_pic_CXX
=
19349 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19353 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19358 # Check to make sure the PIC flag actually works.
19360 if test -n "$lt_prog_compiler_pic_CXX"; then
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19363 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19364 $as_echo_n "(cached) " >&6
19366 lt_cv_prog_compiler_pic_works_CXX
=no
19367 ac_outfile
=conftest.
$ac_objext
19368 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19369 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19370 # Insert the option either (1) after the last *FLAGS variable, or
19371 # (2) before a word containing "conftest.", or (3) at the end.
19372 # Note that $ac_compile itself does not contain backslashes and begins
19373 # with a dollar sign (not a hyphen), so the echo should work correctly.
19374 # The option is referenced via a variable to avoid confusing sed.
19375 lt_compile
=`echo "$ac_compile" | $SED \
19376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19378 -e 's:$: $lt_compiler_flag:'`
19379 (eval echo "\"\$as_me:19379: $lt_compile\"" >&5)
19380 (eval "$lt_compile" 2>conftest.err
)
19382 cat conftest.err
>&5
19383 echo "$as_me:19383: \$? = $ac_status" >&5
19384 if (exit $ac_status) && test -s "$ac_outfile"; then
19385 # The compiler can only warn and ignore the option if not recognized
19386 # So say no if there are warnings other than the usual output.
19387 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
19388 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19389 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19390 lt_cv_prog_compiler_pic_works_CXX
=yes
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19397 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19399 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19400 case $lt_prog_compiler_pic_CXX in
19402 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19405 lt_prog_compiler_pic_CXX
=
19406 lt_prog_compiler_can_build_shared_CXX
=no
19414 # Check to make sure the static flag actually works.
19416 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19418 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19419 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19420 $as_echo_n "(cached) " >&6
19422 lt_cv_prog_compiler_static_works_CXX
=no
19423 save_LDFLAGS
="$LDFLAGS"
19424 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19425 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19426 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19427 # The linker can only warn and ignore the option if not recognized
19428 # So say no if there are warnings
19429 if test -s conftest.err
; then
19430 # Append any errors to the config.log.
19431 cat conftest.err
1>&5
19432 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
19433 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19434 if diff conftest.exp conftest.er2
>/dev
/null
; then
19435 lt_cv_prog_compiler_static_works_CXX
=yes
19438 lt_cv_prog_compiler_static_works_CXX
=yes
19442 LDFLAGS
="$save_LDFLAGS"
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19446 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19448 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19451 lt_prog_compiler_static_CXX
=
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19459 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19460 $as_echo_n "(cached) " >&6
19462 lt_cv_prog_compiler_c_o_CXX
=no
19463 $RM -r conftest
2>/dev
/null
19467 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19469 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19470 # Insert the option either (1) after the last *FLAGS variable, or
19471 # (2) before a word containing "conftest.", or (3) at the end.
19472 # Note that $ac_compile itself does not contain backslashes and begins
19473 # with a dollar sign (not a hyphen), so the echo should work correctly.
19474 lt_compile
=`echo "$ac_compile" | $SED \
19475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19477 -e 's:$: $lt_compiler_flag:'`
19478 (eval echo "\"\$as_me:19478: $lt_compile\"" >&5)
19479 (eval "$lt_compile" 2>out
/conftest.err
)
19481 cat out
/conftest.err
>&5
19482 echo "$as_me:19482: \$? = $ac_status" >&5
19483 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19485 # The compiler can only warn and ignore the option if not recognized
19486 # So say no if there are warnings
19487 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
19488 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19489 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19490 lt_cv_prog_compiler_c_o_CXX
=yes
19495 # SGI C++ compiler will create directory out/ii_files/ for
19496 # template instantiation
19497 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19498 $RM out
/* && rmdir out
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19505 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19510 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19511 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19512 $as_echo_n "(cached) " >&6
19514 lt_cv_prog_compiler_c_o_CXX
=no
19515 $RM -r conftest
2>/dev
/null
19519 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19521 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19522 # Insert the option either (1) after the last *FLAGS variable, or
19523 # (2) before a word containing "conftest.", or (3) at the end.
19524 # Note that $ac_compile itself does not contain backslashes and begins
19525 # with a dollar sign (not a hyphen), so the echo should work correctly.
19526 lt_compile
=`echo "$ac_compile" | $SED \
19527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19529 -e 's:$: $lt_compiler_flag:'`
19530 (eval echo "\"\$as_me:19530: $lt_compile\"" >&5)
19531 (eval "$lt_compile" 2>out
/conftest.err
)
19533 cat out
/conftest.err
>&5
19534 echo "$as_me:19534: \$? = $ac_status" >&5
19535 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19537 # The compiler can only warn and ignore the option if not recognized
19538 # So say no if there are warnings
19539 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
19540 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19541 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19542 lt_cv_prog_compiler_c_o_CXX
=yes
19547 # SGI C++ compiler will create directory out/ii_files/ for
19548 # template instantiation
19549 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19550 $RM out
/* && rmdir out
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19557 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19562 hard_links
="nottested"
19563 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19564 # do not overwrite the value of need_locks provided by the user
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19566 $as_echo_n "checking if we can lock with hard links... " >&6; }
19569 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19571 ln conftest.a conftest.b
2>&5 || hard_links
=no
19572 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19574 $as_echo "$hard_links" >&6; }
19575 if test "$hard_links" = no
; then
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19577 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19587 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19589 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19592 # If we're using GNU nm, then we don't want the "-C" option.
19593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19594 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19595 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19597 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'
19601 export_symbols_cmds_CXX
="$ltdll_cmds"
19603 cygwin
* | mingw
* | cegcc
*)
19604 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'
19607 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19610 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19613 $as_echo "$ld_shlibs_CXX" >&6; }
19614 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19616 with_gnu_ld_CXX
=$with_gnu_ld
19624 # Do we need to explicitly link libc?
19626 case "x$archive_cmds_need_lc_CXX" in
19628 # Assume -lc should be added
19629 archive_cmds_need_lc_CXX
=yes
19631 if test "$enable_shared" = yes && test "$GCC" = yes; then
19632 case $archive_cmds_CXX in
19634 # FIXME: we may have to deal with multi-command sequences.
19637 # Test whether the compiler implicitly links with -lc since on some
19638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19639 # to ld, don't add -lc before -lgcc.
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19641 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19642 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19643 $as_echo_n "(cached) " >&6
19646 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19649 (eval $ac_compile) 2>&5
19651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19652 test $ac_status = 0; } 2>conftest.err
; then
19655 libobjs
=conftest.
$ac_objext
19657 wl
=$lt_prog_compiler_wl_CXX
19658 pic_flag
=$lt_prog_compiler_pic_CXX
19664 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19665 allow_undefined_flag_CXX
=
19666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19667 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19670 test $ac_status = 0; }
19672 lt_cv_archive_cmds_need_lc_CXX
=no
19674 lt_cv_archive_cmds_need_lc_CXX
=yes
19676 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19678 cat conftest.err
1>&5
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19684 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19685 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19756 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19758 library_names_spec
=
19759 libname_spec
='lib$name'
19763 postuninstall_cmds
=
19767 shlibpath_overrides_runpath
=unknown
19769 dynamic_linker
="$host_os ld.so"
19770 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19771 need_lib_prefix
=unknown
19772 hardcode_into_libs
=no
19774 # when you set need_version to no, make sure it does not cause -set_version
19775 # flags to be left without arguments
19776 need_version
=unknown
19781 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19782 shlibpath_var
=LIBPATH
19784 # AIX 3 has no versioning support, so we append a major version to the name.
19785 soname_spec
='${libname}${release}${shared_ext}$major'
19792 hardcode_into_libs
=yes
19793 if test "$host_cpu" = ia64
; then
19794 # AIX 5 supports IA64
19795 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19796 shlibpath_var
=LD_LIBRARY_PATH
19798 # With GCC up to 2.95.x, collect2 would create an import file
19799 # for dependence libraries. The import file would start with
19800 # the line `#! .'. This would cause the generated library to
19801 # depend on `.', always an invalid library. This was fixed in
19802 # development snapshots of GCC prior to 3.0.
19804 aix4 | aix4.
[01] | aix4.
[01].
*)
19805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19807 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19810 can_build_shared
=no
19814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19815 # soname into executable. Probably we can add versioning support to
19816 # collect2, so additional links can be useful in future.
19817 if test "$aix_use_runtimelinking" = yes; then
19818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19819 # instead of lib<name>.a to let people know that these are not
19820 # typical AIX shared libraries.
19821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19823 # We preserve .a as extension for shared libraries through AIX4.2
19824 # and later when we are not doing run time linking.
19825 library_names_spec
='${libname}${release}.a $libname.a'
19826 soname_spec
='${libname}${release}${shared_ext}$major'
19828 shlibpath_var
=LIBPATH
19835 # Since July 2007 AmigaOS4 officially supports .so libraries.
19836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19840 library_names_spec
='$libname.ixlibrary $libname.a'
19841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19842 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
19848 library_names_spec
='${libname}${shared_ext}'
19849 dynamic_linker
="$host_os ld.so"
19850 shlibpath_var
=LIBRARY_PATH
19856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19857 soname_spec
='${libname}${release}${shared_ext}$major'
19858 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19859 shlibpath_var
=LD_LIBRARY_PATH
19860 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19861 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19862 # the default ld.so.conf also contains /usr/contrib/lib and
19863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19864 # libtool to hard-code these into programs
19867 cygwin
* | mingw
* | pw32
* | cegcc
*)
19868 version_type
=windows
19873 case $GCC,$host_os in
19874 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19875 library_names_spec
='$libname.dll.a'
19876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19877 postinstall_cmds
='base_file=`basename \${file}`~
19878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19879 dldir=$destdir/`dirname \$dlpath`~
19880 test -d \$dldir || mkdir -p \$dldir~
19881 $install_prog $dir/$dlname \$dldir/$dlname~
19882 chmod a+x \$dldir/$dlname~
19883 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19884 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19886 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19887 dlpath=$dir/\$dldll~
19889 shlibpath_overrides_runpath
=yes
19893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19894 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19895 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
19898 # MinGW DLLs use traditional 'lib' prefix
19899 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19900 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19901 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
19902 # It is most probably a Windows format PATH printed by
19903 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19904 # path with ; separators, and with drive letters. We can handle the
19905 # drive letters (cygwin fileutils understands them), so leave them,
19906 # especially as we might pass files found there to a mingw objdump,
19907 # which wouldn't understand a cygwinified path. Ahh.
19908 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19910 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19914 # pw32 DLLs use 'pw' prefix rather than 'lib'
19915 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19921 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19924 dynamic_linker
='Win32 ld.exe'
19925 # FIXME: first we should search . and the directory the executable is in
19929 darwin
* | rhapsody
*)
19930 dynamic_linker
="$host_os dyld"
19931 version_type
=darwin
19934 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19935 soname_spec
='${libname}${release}${major}$shared_ext'
19936 shlibpath_overrides_runpath
=yes
19937 shlibpath_var
=DYLD_LIBRARY_PATH
19938 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19940 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19948 soname_spec
='${libname}${release}${shared_ext}$major'
19949 shlibpath_var
=LD_LIBRARY_PATH
19956 freebsd
* | dragonfly
*)
19957 # DragonFly does not have aout. When/if they implement a new
19958 # versioning mechanism, adjust this.
19959 if test -x /usr
/bin
/objformat
; then
19960 objformat
=`/usr/bin/objformat`
19963 freebsd
[123]*) objformat
=aout
;;
19964 *) objformat
=elf
;;
19967 version_type
=freebsd-
$objformat
19968 case $version_type in
19970 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19975 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19979 shlibpath_var
=LD_LIBRARY_PATH
19982 shlibpath_overrides_runpath
=yes
19984 freebsd3.
[01]* | freebsdelf3.
[01]*)
19985 shlibpath_overrides_runpath
=yes
19986 hardcode_into_libs
=yes
19988 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19989 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19990 shlibpath_overrides_runpath
=no
19991 hardcode_into_libs
=yes
19993 *) # from 4.6 on, and DragonFly
19994 shlibpath_overrides_runpath
=yes
19995 hardcode_into_libs
=yes
20004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20005 soname_spec
='${libname}${release}${shared_ext}$major'
20006 shlibpath_var
=LD_LIBRARY_PATH
20007 hardcode_into_libs
=yes
20010 hpux9
* | hpux10
* | hpux11
*)
20011 # Give a soname corresponding to the major version so that dld.sl refuses to
20012 # link against other versions.
20019 hardcode_into_libs
=yes
20020 dynamic_linker
="$host_os dld.so"
20021 shlibpath_var
=LD_LIBRARY_PATH
20022 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20024 soname_spec
='${libname}${release}${shared_ext}$major'
20025 if test "X$HPUX_IA64_MODE" = X32
; then
20026 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20028 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20030 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20034 hardcode_into_libs
=yes
20035 dynamic_linker
="$host_os dld.sl"
20036 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20037 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20039 soname_spec
='${libname}${release}${shared_ext}$major'
20040 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20041 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20045 dynamic_linker
="$host_os dld.sl"
20046 shlibpath_var
=SHLIB_PATH
20047 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20049 soname_spec
='${libname}${release}${shared_ext}$major'
20052 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20053 postinstall_cmds
='chmod 555 $lib'
20060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20061 soname_spec
='${libname}${release}${shared_ext}$major'
20062 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20063 shlibpath_var
=LD_LIBRARY_PATH
20064 shlibpath_overrides_runpath
=no
20065 hardcode_into_libs
=yes
20068 irix5
* | irix6
* | nonstopux
*)
20070 nonstopux
*) version_type
=nonstopux
;;
20072 if test "$lt_cv_prog_gnu_ld" = yes; then
20080 soname_spec
='${libname}${release}${shared_ext}$major'
20081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20083 irix5
* | nonstopux
*)
20084 libsuff
= shlibsuff
=
20087 case $LD in # libtool.m4 will add one of these switches to LD
20088 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20089 libsuff
= shlibsuff
= libmagic
=32-bit;;
20090 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20091 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20092 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20093 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20094 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20098 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20099 shlibpath_overrides_runpath
=no
20100 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20101 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20102 hardcode_into_libs
=yes
20105 # No shared lib support for Linux oldld, aout, or coff.
20106 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20110 # This must be Linux ELF.
20111 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20115 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20116 soname_spec
='${libname}${release}${shared_ext}$major'
20117 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20118 shlibpath_var
=LD_LIBRARY_PATH
20119 shlibpath_overrides_runpath
=no
20121 # Some binutils ld are patched to set DT_RUNPATH
20122 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20123 $as_echo_n "(cached) " >&6
20125 lt_cv_shlibpath_overrides_runpath
=no
20126 save_LDFLAGS
=$LDFLAGS
20127 save_libdir
=$libdir
20128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20141 if ac_fn_cxx_try_link
"$LINENO"; then :
20142 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20143 lt_cv_shlibpath_overrides_runpath
=yes
20146 rm -f core conftest.err conftest.
$ac_objext \
20147 conftest
$ac_exeext conftest.
$ac_ext
20148 LDFLAGS
=$save_LDFLAGS
20149 libdir
=$save_libdir
20153 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20155 # This implies no fast_install, which is unacceptable.
20156 # Some rework will be needed to allow for fast_install
20157 # before this can be enabled.
20158 hardcode_into_libs
=yes
20160 # Append ld.so.conf contents to the search path
20161 if test -f /etc
/ld.so.conf
; then
20162 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;/^$/d' | tr '\n' ' '`
20163 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20166 # We used to test for /lib/ld.so.1 and disable shared libraries on
20167 # powerpc, because MkLinux only supported shared libraries with the
20168 # GNU dynamic linker. Since this was broken with cross compilers,
20169 # most powerpc-linux boxes support dynamic linking these days and
20170 # people can always --disable-shared, the test was removed, and we
20171 # assume the GNU/Linux dynamic linker is in use.
20172 dynamic_linker
='GNU/Linux ld.so'
20179 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20181 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20182 dynamic_linker
='NetBSD (a.out) ld.so'
20184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20185 soname_spec
='${libname}${release}${shared_ext}$major'
20186 dynamic_linker
='NetBSD ld.elf_so'
20188 shlibpath_var
=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath
=yes
20190 hardcode_into_libs
=yes
20195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20196 shlibpath_var
=LD_LIBRARY_PATH
20197 shlibpath_overrides_runpath
=yes
20204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205 soname_spec
='${libname}${release}${shared_ext}$major'
20206 shlibpath_var
=LD_LIBRARY_PATH
20207 shlibpath_overrides_runpath
=no
20208 hardcode_into_libs
=yes
20209 dynamic_linker
='ldqnx.so'
20214 sys_lib_dlsearch_path_spec
="/usr/lib"
20216 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20218 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20219 *) need_version
=no
;;
20221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20222 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20223 shlibpath_var
=LD_LIBRARY_PATH
20224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20226 openbsd2.
[89] | openbsd2.
[89].
*)
20227 shlibpath_overrides_runpath
=no
20230 shlibpath_overrides_runpath
=yes
20234 shlibpath_overrides_runpath
=yes
20239 libname_spec
='$name'
20242 library_names_spec
='$libname${shared_ext} $libname.a'
20243 dynamic_linker
='OS/2 ld.exe'
20244 shlibpath_var
=LIBPATH
20247 osf3
* | osf4
* | osf5
*)
20251 soname_spec
='${libname}${release}${shared_ext}$major'
20252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20253 shlibpath_var
=LD_LIBRARY_PATH
20254 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20255 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267 soname_spec
='${libname}${release}${shared_ext}$major'
20268 shlibpath_var
=LD_LIBRARY_PATH
20269 shlibpath_overrides_runpath
=yes
20270 hardcode_into_libs
=yes
20271 # ldd complains unless libraries are executable
20272 postinstall_cmds
='chmod +x $lib'
20277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20278 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20279 shlibpath_var
=LD_LIBRARY_PATH
20280 shlibpath_overrides_runpath
=yes
20281 if test "$with_gnu_ld" = yes; then
20289 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20290 soname_spec
='${libname}${release}${shared_ext}$major'
20291 shlibpath_var
=LD_LIBRARY_PATH
20292 case $host_vendor in
20294 shlibpath_overrides_runpath
=no
20296 runpath_var
=LD_RUN_PATH
20304 shlibpath_overrides_runpath
=no
20305 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20311 if test -d /usr
/nec
;then
20313 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20314 soname_spec
='$libname${shared_ext}.$major'
20315 shlibpath_var
=LD_LIBRARY_PATH
20319 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20320 version_type
=freebsd-elf
20323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20324 soname_spec
='${libname}${release}${shared_ext}$major'
20325 shlibpath_var
=LD_LIBRARY_PATH
20326 shlibpath_overrides_runpath
=yes
20327 hardcode_into_libs
=yes
20328 if test "$with_gnu_ld" = yes; then
20329 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20331 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20334 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20338 sys_lib_dlsearch_path_spec
='/usr/lib'
20342 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 shlibpath_var
=LD_LIBRARY_PATH
20348 shlibpath_overrides_runpath
=no
20349 hardcode_into_libs
=yes
20354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355 soname_spec
='${libname}${release}${shared_ext}$major'
20356 shlibpath_var
=LD_LIBRARY_PATH
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20364 $as_echo "$dynamic_linker" >&6; }
20365 test "$dynamic_linker" = no
&& can_build_shared
=no
20367 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20368 if test "$GCC" = yes; then
20369 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20372 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20373 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20375 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20376 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20415 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20416 hardcode_action_CXX
=
20417 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20418 test -n "$runpath_var_CXX" ||
20419 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20421 # We can hardcode non-existent directories.
20422 if test "$hardcode_direct_CXX" != no
&&
20423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20424 # have to relink, otherwise we might link with an installed library
20425 # when we should be linking with a yet-to-be-installed one
20426 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20427 test "$hardcode_minus_L_CXX" != no
; then
20428 # Linking always hardcodes the temporary library directory.
20429 hardcode_action_CXX
=relink
20431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20432 hardcode_action_CXX
=immediate
20435 # We cannot hardcode anything, or else we can only hardcode existing
20437 hardcode_action_CXX
=unsupported
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20440 $as_echo "$hardcode_action_CXX" >&6; }
20442 if test "$hardcode_action_CXX" = relink ||
20443 test "$inherit_rpath_CXX" = yes; then
20444 # Fast installation is not supported
20445 enable_fast_install
=no
20446 elif test "$shlibpath_overrides_runpath" = yes ||
20447 test "$enable_shared" = no
; then
20448 # Fast installation is not necessary
20449 enable_fast_install
=needless
20458 fi # test -n "$compiler"
20464 with_gnu_ld
=$lt_save_with_gnu_ld
20465 lt_cv_path_LDCXX
=$lt_cv_path_LD
20466 lt_cv_path_LD
=$lt_save_path_LD
20467 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20468 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20469 fi # test "$_lt_caught_CXX_error" != yes
20472 ac_cpp
='$CPP $CPPFLAGS'
20473 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20474 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20475 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20492 # Only expand once:
20498 # Identify the assembler which will work hand-in-glove with the newly
20499 # built GCC, so that we can examine its features. This is the assembler
20500 # which will be driven by the driver program.
20502 # If build != host, and we aren't building gas in-tree, we identify a
20503 # build->target assembler and hope that it will have the same features
20504 # as the host->target assembler we'll be using.
20505 gcc_cv_gas_major_version
=
20506 gcc_cv_gas_minor_version
=
20507 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20509 if test "${gcc_cv_as+set}" = set; then :
20513 if test -x "$DEFAULT_ASSEMBLER"; then
20514 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20515 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20516 && test -f ..
/gas
/Makefile \
20517 && test x
$build = x
$host; then
20518 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20519 elif test -x as
$build_exeext; then
20520 # Build using assembler in the current directory.
20521 gcc_cv_as
=.
/as
$build_exeext
20522 elif test -x $AS_FOR_TARGET; then
20523 gcc_cv_as
="$AS_FOR_TARGET"
20525 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20526 set dummy
$AS_FOR_TARGET; ac_word
=$2
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20528 $as_echo_n "checking for $ac_word... " >&6; }
20529 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20530 $as_echo_n "(cached) " >&6
20534 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20538 for as_dir
in $PATH
20541 test -z "$as_dir" && as_dir
=.
20542 for ac_exec_ext
in '' $ac_executable_extensions; do
20543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20544 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20555 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20556 if test -n "$gcc_cv_as"; then
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20558 $as_echo "$gcc_cv_as" >&6; }
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20561 $as_echo "no" >&6; }
20568 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20570 case "$ORIGINAL_AS_FOR_TARGET" in
20571 .
/as | .
/as
$build_exeext) ;;
20572 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20577 $as_echo_n "checking what assembler to use... " >&6; }
20578 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20579 # Single tree build which includes gas. We want to prefer it
20580 # over whatever linker top-level may have detected, since
20581 # we'll use what we're building after installation anyway.
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20583 $as_echo "newly built gas" >&6; }
20585 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20586 for f
in $gcc_cv_as_bfd_srcdir/configure \
20587 $gcc_cv_as_gas_srcdir/configure \
20588 $gcc_cv_as_gas_srcdir/configure.
in \
20589 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20590 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20591 if test x
$gcc_cv_gas_version != x
; then
20595 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20596 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20597 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20598 case $gcc_cv_gas_patch_version in
20599 "") gcc_cv_gas_patch_version
="0" ;;
20601 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20602 + $gcc_cv_gas_minor_version \) \* 1000 \
20603 + $gcc_cv_gas_patch_version`
20605 in_tree_gas_is_elf
=no
20606 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20607 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20608 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20610 in_tree_gas_is_elf
=yes
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20614 $as_echo "$gcc_cv_as" >&6; }
20618 # Identify the linker which will work hand-in-glove with the newly
20619 # built GCC, so that we can examine its features. This is the linker
20620 # which will be driven by the driver program.
20622 # If build != host, and we aren't building gas in-tree, we identify a
20623 # build->target linker and hope that it will have the same features
20624 # as the host->target linker we'll be using.
20625 gcc_cv_gld_major_version
=
20626 gcc_cv_gld_minor_version
=
20627 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20628 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20630 if test "${gcc_cv_ld+set}" = set; then :
20634 if test -x "$DEFAULT_LINKER"; then
20635 gcc_cv_ld
="$DEFAULT_LINKER"
20636 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20637 && test -f ..
/ld
/Makefile \
20638 && test x
$build = x
$host; then
20639 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20640 elif test -x collect-ld
$build_exeext; then
20641 # Build using linker in the current directory.
20642 gcc_cv_ld
=.
/collect-ld
$build_exeext
20643 elif test -x $LD_FOR_TARGET; then
20644 gcc_cv_ld
="$LD_FOR_TARGET"
20646 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20647 set dummy
$LD_FOR_TARGET; ac_word
=$2
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20649 $as_echo_n "checking for $ac_word... " >&6; }
20650 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20651 $as_echo_n "(cached) " >&6
20655 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20659 for as_dir
in $PATH
20662 test -z "$as_dir" && as_dir
=.
20663 for ac_exec_ext
in '' $ac_executable_extensions; do
20664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20665 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20676 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20677 if test -n "$gcc_cv_ld"; then
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20679 $as_echo "$gcc_cv_ld" >&6; }
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20682 $as_echo "no" >&6; }
20689 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20691 case "$ORIGINAL_LD_FOR_TARGET" in
20692 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20693 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20698 $as_echo_n "checking what linker to use... " >&6; }
20699 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20700 # Single tree build which includes ld. We want to prefer it
20701 # over whatever linker top-level may have detected, since
20702 # we'll use what we're building after installation anyway.
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20704 $as_echo "newly built ld" >&6; }
20706 in_tree_ld_is_elf
=no
20707 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20708 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20709 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20710 in_tree_ld_is_elf
=yes
20712 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
20714 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20715 if test x
$gcc_cv_gld_version != x
; then
20719 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20720 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20723 $as_echo "$gcc_cv_ld" >&6; }
20727 # Figure out what nm we will be using.
20728 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20729 if test "${gcc_cv_nm+set}" = set; then :
20733 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20734 && test -f ..
/binutils
/Makefile \
20735 && test x
$build = x
$host; then
20736 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20737 elif test -x nm
$build_exeext; then
20738 gcc_cv_nm
=.
/nm
$build_exeext
20739 elif test -x $NM_FOR_TARGET; then
20740 gcc_cv_nm
="$NM_FOR_TARGET"
20742 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20743 set dummy
$NM_FOR_TARGET; ac_word
=$2
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20745 $as_echo_n "checking for $ac_word... " >&6; }
20746 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20747 $as_echo_n "(cached) " >&6
20751 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20755 for as_dir
in $PATH
20758 test -z "$as_dir" && as_dir
=.
20759 for ac_exec_ext
in '' $ac_executable_extensions; do
20760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20761 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20772 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20773 if test -n "$gcc_cv_nm"; then
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20775 $as_echo "$gcc_cv_nm" >&6; }
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20778 $as_echo "no" >&6; }
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20786 $as_echo_n "checking what nm to use... " >&6; }
20787 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20788 # Single tree build which includes binutils.
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20790 $as_echo "newly built nm" >&6; }
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20794 $as_echo "$gcc_cv_nm" >&6; }
20798 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20800 case "$ORIGINAL_NM_FOR_TARGET" in
20801 .
/nm | .
/nm
$build_exeext) ;;
20802 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20807 # Figure out what objdump we will be using.
20808 if test "${gcc_cv_objdump+set}" = set; then :
20812 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20813 && test -f ..
/binutils
/Makefile \
20814 && test x
$build = x
$host; then
20815 # Single tree build which includes binutils.
20816 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20817 elif test -x objdump
$build_exeext; then
20818 gcc_cv_objdump
=.
/objdump
$build_exeext
20819 elif test -x $OBJDUMP_FOR_TARGET; then
20820 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20822 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20823 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20825 $as_echo_n "checking for $ac_word... " >&6; }
20826 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20827 $as_echo_n "(cached) " >&6
20829 case $gcc_cv_objdump in
20831 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20835 for as_dir
in $PATH
20838 test -z "$as_dir" && as_dir
=.
20839 for ac_exec_ext
in '' $ac_executable_extensions; do
20840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20841 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20852 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20853 if test -n "$gcc_cv_objdump"; then
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20855 $as_echo "$gcc_cv_objdump" >&6; }
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20858 $as_echo "no" >&6; }
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20866 $as_echo_n "checking what objdump to use... " >&6; }
20867 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20868 # Single tree build which includes binutils.
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20870 $as_echo "newly built objdump" >&6; }
20871 elif test x
$gcc_cv_objdump = x
; then
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20873 $as_echo "not found" >&6; }
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20876 $as_echo "$gcc_cv_objdump" >&6; }
20879 # Figure out what readelf we will be using.
20880 if test "${gcc_cv_readelf+set}" = set; then :
20884 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20885 && test -f ..
/binutils
/Makefile \
20886 && test x
$build = x
$host; then
20887 # Single tree build which includes binutils.
20888 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20889 elif test -x readelf
$build_exeext; then
20890 gcc_cv_readelf
=.
/readelf
$build_exeext
20892 # Extract the first word of "readelf", so it can be a program name with args.
20893 set dummy readelf
; ac_word
=$2
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20895 $as_echo_n "checking for $ac_word... " >&6; }
20896 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20897 $as_echo_n "(cached) " >&6
20899 case $gcc_cv_readelf in
20901 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20905 for as_dir
in $PATH
20908 test -z "$as_dir" && as_dir
=.
20909 for ac_exec_ext
in '' $ac_executable_extensions; do
20910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20911 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20922 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20923 if test -n "$gcc_cv_readelf"; then
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20925 $as_echo "$gcc_cv_readelf" >&6; }
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20928 $as_echo "no" >&6; }
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20936 $as_echo_n "checking what readelf to use... " >&6; }
20937 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20938 # Single tree build which includes binutils.
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20940 $as_echo "newly built readelf" >&6; }
20941 elif test x
$gcc_cv_readelf = x
; then
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20943 $as_echo "not found" >&6; }
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20946 $as_echo "$gcc_cv_readelf" >&6; }
20949 # Figure out what assembler alignment features are present.
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20951 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20952 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20953 $as_echo_n "(cached) " >&6
20955 gcc_cv_as_balign_and_p2align
=no
20956 if test $in_tree_gas = yes; then
20957 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20958 then gcc_cv_as_balign_and_p2align
=yes
20960 elif test x
$gcc_cv_as != x
; then
20962 .p2align 2' > conftest.s
20963 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20965 (eval $ac_try) 2>&5
20967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20968 test $ac_status = 0; }; }
20970 gcc_cv_as_balign_and_p2align
=yes
20972 echo "configure: failed program was" >&5
20975 rm -f conftest.o conftest.s
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20979 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20980 if test $gcc_cv_as_balign_and_p2align = yes; then
20982 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20987 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20988 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20989 $as_echo_n "(cached) " >&6
20991 gcc_cv_as_max_skip_p2align
=no
20992 if test $in_tree_gas = yes; then
20993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20994 then gcc_cv_as_max_skip_p2align
=yes
20996 elif test x
$gcc_cv_as != x
; then
20997 echo '.p2align 4,,7' > conftest.s
20998 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21000 (eval $ac_try) 2>&5
21002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21003 test $ac_status = 0; }; }
21005 gcc_cv_as_max_skip_p2align
=yes
21007 echo "configure: failed program was" >&5
21010 rm -f conftest.o conftest.s
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21014 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21015 if test $gcc_cv_as_max_skip_p2align = yes; then
21017 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21022 $as_echo_n "checking assembler for .literal16... " >&6; }
21023 if test "${gcc_cv_as_literal16+set}" = set; then :
21024 $as_echo_n "(cached) " >&6
21026 gcc_cv_as_literal16
=no
21027 if test $in_tree_gas = yes; then
21028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21029 then gcc_cv_as_literal16
=yes
21031 elif test x
$gcc_cv_as != x
; then
21032 echo '.literal16' > conftest.s
21033 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21035 (eval $ac_try) 2>&5
21037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21038 test $ac_status = 0; }; }
21040 gcc_cv_as_literal16
=yes
21042 echo "configure: failed program was" >&5
21045 rm -f conftest.o conftest.s
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21049 $as_echo "$gcc_cv_as_literal16" >&6; }
21050 if test $gcc_cv_as_literal16 = yes; then
21052 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21057 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21058 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21059 $as_echo_n "(cached) " >&6
21061 gcc_cv_as_subsection_m1
=no
21062 if test $in_tree_gas = yes; then
21063 if test $in_tree_gas_is_elf = yes \
21064 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21065 then gcc_cv_as_subsection_m1
=yes
21067 elif test x
$gcc_cv_as != x
; then
21068 echo 'conftest_label1: .word 0
21070 conftest_label2: .word 0
21071 .previous' > conftest.s
21072 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21074 (eval $ac_try) 2>&5
21076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21077 test $ac_status = 0; }; }
21079 if test x
$gcc_cv_nm != x
; then
21080 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21081 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21082 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21084 else gcc_cv_as_subsection_m1
=yes
21086 rm -f conftest.nm1 conftest.nm2
21089 echo "configure: failed program was" >&5
21092 rm -f conftest.o conftest.s
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21096 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21097 if test $gcc_cv_as_subsection_m1 = yes; then
21099 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21104 $as_echo_n "checking assembler for .weak... " >&6; }
21105 if test "${gcc_cv_as_weak+set}" = set; then :
21106 $as_echo_n "(cached) " >&6
21109 if test $in_tree_gas = yes; then
21110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21111 then gcc_cv_as_weak
=yes
21113 elif test x
$gcc_cv_as != x
; then
21114 echo ' .weak foobar' > conftest.s
21115 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21117 (eval $ac_try) 2>&5
21119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21120 test $ac_status = 0; }; }
21124 echo "configure: failed program was" >&5
21127 rm -f conftest.o conftest.s
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21131 $as_echo "$gcc_cv_as_weak" >&6; }
21132 if test $gcc_cv_as_weak = yes; then
21134 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21139 $as_echo_n "checking assembler for .weakref... " >&6; }
21140 if test "${gcc_cv_as_weakref+set}" = set; then :
21141 $as_echo_n "(cached) " >&6
21143 gcc_cv_as_weakref
=no
21144 if test $in_tree_gas = yes; then
21145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21146 then gcc_cv_as_weakref
=yes
21148 elif test x
$gcc_cv_as != x
; then
21149 echo ' .weakref foobar, barfnot' > conftest.s
21150 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21152 (eval $ac_try) 2>&5
21154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21155 test $ac_status = 0; }; }
21157 gcc_cv_as_weakref
=yes
21159 echo "configure: failed program was" >&5
21162 rm -f conftest.o conftest.s
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21166 $as_echo "$gcc_cv_as_weakref" >&6; }
21167 if test $gcc_cv_as_weakref = yes; then
21169 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21174 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21175 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21176 $as_echo_n "(cached) " >&6
21178 gcc_cv_as_nsubspa_comdat
=no
21179 if test $in_tree_gas = yes; then
21180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21181 then gcc_cv_as_nsubspa_comdat
=yes
21183 elif test x
$gcc_cv_as != x
; then
21184 echo ' .SPACE $TEXT$
21185 .NSUBSPA $CODE$,COMDAT' > conftest.s
21186 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21188 (eval $ac_try) 2>&5
21190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21191 test $ac_status = 0; }; }
21193 gcc_cv_as_nsubspa_comdat
=yes
21195 echo "configure: failed program was" >&5
21198 rm -f conftest.o conftest.s
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21202 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21203 if test $gcc_cv_as_nsubspa_comdat = yes; then
21205 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21209 # .hidden needs to be supported in both the assembler and the linker,
21210 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21211 # This is irritatingly difficult to feature test for; we have to check the
21212 # date string after the version number. If we've got an in-tree
21213 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21215 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21217 $as_echo_n "checking assembler for .hidden... " >&6; }
21218 if test "${gcc_cv_as_hidden+set}" = set; then :
21219 $as_echo_n "(cached) " >&6
21221 gcc_cv_as_hidden
=no
21222 if test $in_tree_gas = yes; then
21223 if test $in_tree_gas_is_elf = yes \
21224 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21225 then gcc_cv_as_hidden
=yes
21227 elif test x
$gcc_cv_as != x
; then
21228 echo ' .hidden foobar
21229 foobar:' > conftest.s
21230 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21232 (eval $ac_try) 2>&5
21234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21235 test $ac_status = 0; }; }
21237 gcc_cv_as_hidden
=yes
21239 echo "configure: failed program was" >&5
21242 rm -f conftest.o conftest.s
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21246 $as_echo "$gcc_cv_as_hidden" >&6; }
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21250 $as_echo_n "checking linker for .hidden support... " >&6; }
21251 if test "${gcc_cv_ld_hidden+set}" = set; then :
21252 $as_echo_n "(cached) " >&6
21254 if test $in_tree_ld = yes ; then
21255 gcc_cv_ld_hidden
=no
21256 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 \
21257 && test $in_tree_ld_is_elf = yes; then
21258 gcc_cv_ld_hidden
=yes
21261 gcc_cv_ld_hidden
=yes
21262 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21263 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21264 ld_vers
=`echo $ld_ver | sed -n \
21265 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21266 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'`
21267 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21268 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21269 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21270 if test 0"$ld_date" -lt 20020404; then
21271 if test -n "$ld_date"; then
21272 # If there was date string, but was earlier than 2002-04-04, fail
21273 gcc_cv_ld_hidden
=no
21274 elif test -z "$ld_vers"; then
21275 # If there was no date string nor ld version number, something is wrong
21276 gcc_cv_ld_hidden
=no
21278 test -z "$ld_vers_patch" && ld_vers_patch
=0
21279 if test "$ld_vers_major" -lt 2; then
21280 gcc_cv_ld_hidden
=no
21281 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21282 gcc_cv_ld_hidden
="no"
21283 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21284 gcc_cv_ld_hidden
=no
21289 case "${target}" in
21290 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21291 gcc_cv_ld_hidden
=yes
21293 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21294 gcc_cv_ld_hidden
=yes
21297 gcc_cv_ld_hidden
=no
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21304 $as_echo "$gcc_cv_ld_hidden" >&6; }
21305 libgcc_visibility
=no
21308 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21309 libgcc_visibility
=yes
21311 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21316 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21317 gcc_cv_ld_ro_rw_mix
=unknown
21318 if test $in_tree_ld = yes ; then
21319 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 \
21320 && test $in_tree_ld_is_elf = yes; then
21321 gcc_cv_ld_ro_rw_mix
=read-write
21323 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21324 echo '.section myfoosect, "a"' > conftest1.s
21325 echo '.section myfoosect, "aw"' > conftest2.s
21326 echo '.byte 1' >> conftest2.s
21327 echo '.section myfoosect, "a"' > conftest3.s
21328 echo '.byte 0' >> conftest3.s
21329 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21330 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21331 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21332 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21333 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21334 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21335 | sed -e '/myfoosect/!d' -e N`
21336 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21337 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21338 gcc_cv_ld_ro_rw_mix
=read-only
21340 gcc_cv_ld_ro_rw_mix
=read-write
21344 rm -f conftest.
* conftest
[123].
*
21346 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21348 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21352 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21354 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21356 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21357 if test "${gcc_cv_as_leb128+set}" = set; then :
21358 $as_echo_n "(cached) " >&6
21360 gcc_cv_as_leb128
=no
21361 if test $in_tree_gas = yes; then
21362 if test $in_tree_gas_is_elf = yes \
21363 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21364 then gcc_cv_as_leb128
=yes
21366 elif test x
$gcc_cv_as != x
; then
21373 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21375 (eval $ac_try) 2>&5
21377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21378 test $ac_status = 0; }; }
21380 # GAS versions before 2.11 do not support uleb128,
21381 # despite appearing to.
21382 # ??? There exists an elf-specific test that will crash
21383 # the assembler. Perhaps it's better to figure out whether
21384 # arbitrary sections are supported and try the test.
21385 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21386 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21387 as_vers
=`echo $as_ver | sed -n \
21388 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21389 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21390 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21391 if test $as_major -eq 2 && test $as_minor -lt 11
21393 else gcc_cv_as_leb128
=yes
21397 echo "configure: failed program was" >&5
21400 rm -f conftest.o conftest.s
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21404 $as_echo "$gcc_cv_as_leb128" >&6; }
21405 if test $gcc_cv_as_leb128 = yes; then
21407 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21411 # Check if we have assembler support for unwind directives.
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21413 $as_echo_n "checking assembler for cfi directives... " >&6; }
21414 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21415 $as_echo_n "(cached) " >&6
21417 gcc_cv_as_cfi_directive
=no
21418 if test x
$gcc_cv_as != x
; then
21424 .cfi_escape 1, 2, 3, 4, 5
21425 .cfi_endproc' > conftest.s
21426 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21428 (eval $ac_try) 2>&5
21430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21431 test $ac_status = 0; }; }
21435 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21436 # read-only and read-write sections, we need to make sure that the
21437 # assembler used emits read-write .eh_frame sections.
21438 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21439 if test "x$gcc_cv_objdump" != x
; then
21440 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21441 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21442 gcc_cv_as_cfi_directive
=no
21444 gcc_cv_as_cfi_directive
=yes
21447 # no objdump, err on the side of caution
21448 gcc_cv_as_cfi_directive
=no
21451 gcc_cv_as_cfi_directive
=yes
21455 gcc_cv_as_cfi_directive
=yes
21459 echo "configure: failed program was" >&5
21462 rm -f conftest.o conftest.s
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21466 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21468 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21470 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21471 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21472 $as_echo_n "(cached) " >&6
21474 gcc_cv_as_cfi_advance_working
=no
21475 if test x
$gcc_cv_as != x
; then
21478 .cfi_adjust_cfa_offset 64
21480 .cfi_adjust_cfa_offset 128
21481 .cfi_endproc' > conftest.s
21482 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21484 (eval $ac_try) 2>&5
21486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21487 test $ac_status = 0; }; }
21490 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
21491 |
grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev
/null
; then
21492 gcc_cv_as_cfi_advance_working
=yes
21496 echo "configure: failed program was" >&5
21499 rm -f conftest.o conftest.s
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21503 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21506 # no readelf, err on the side of caution
21507 gcc_cv_as_cfi_advance_working
=no
21510 cat >>confdefs.h
<<_ACEOF
21511 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21512 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21517 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21518 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21519 $as_echo_n "(cached) " >&6
21521 gcc_cv_as_cfi_personality_directive
=no
21522 if test x
$gcc_cv_as != x
; then
21525 .cfi_personality 0, symbol
21526 .cfi_endproc' > conftest.s
21527 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21529 (eval $ac_try) 2>&5
21531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21532 test $ac_status = 0; }; }
21534 gcc_cv_as_cfi_personality_directive
=yes
21536 echo "configure: failed program was" >&5
21539 rm -f conftest.o conftest.s
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21543 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21546 cat >>confdefs.h
<<_ACEOF
21547 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21548 then echo 1; else echo 0; fi`
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21553 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21554 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21555 $as_echo_n "(cached) " >&6
21557 gcc_cv_as_cfi_sections_directive
=no
21558 if test x
$gcc_cv_as != x
; then
21560 .cfi_sections .debug_frame, .eh_frame
21562 .cfi_endproc' > conftest.s
21563 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21565 (eval $ac_try) 2>&5
21567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21568 test $ac_status = 0; }; }
21570 gcc_cv_as_cfi_sections_directive
=yes
21572 echo "configure: failed program was" >&5
21575 rm -f conftest.o conftest.s
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21579 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21582 cat >>confdefs.h
<<_ACEOF
21583 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21584 then echo 1; else echo 0; fi`
21588 # GAS versions up to and including 2.11.0 may mis-optimize
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21591 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21592 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21593 $as_echo_n "(cached) " >&6
21595 gcc_cv_as_eh_frame
=no
21596 if test $in_tree_gas = yes; then
21597 if test $in_tree_gas_is_elf = yes \
21598 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21599 then gcc_cv_as_eh_frame
=yes
21601 elif test x
$gcc_cv_as != x
; then
21608 .section .eh_frame,"aw",@progbits
21610 .4byte .LECIE1-.LSCIE1
21624 .4byte .LEFDE1-.LASFDE1
21626 .4byte .LASFDE1-__FRAME_BEGIN__
21633 .LEFDE1:' > conftest.s
21634 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21636 (eval $ac_try) 2>&5
21638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21639 test $ac_status = 0; }; }
21641 cat > conftest.lit
<<EOF
21642 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21643 0010 01000000 12000000 18000000 00000000 ................
21644 0020 08000000 04080000 0044 .........D
21646 cat > conftest.big
<<EOF
21647 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21648 0010 00000001 00000012 00000018 00000000 ................
21649 0020 00000008 04000000 0844 .........D
21651 # If the assembler didn't choke, and we can objdump,
21652 # and we got the correct data, then succeed.
21653 # The text in the here-document typically retains its unix-style line
21654 # endings, while the output of objdump will use host line endings.
21655 # Therefore, use diff -b for the comparisons.
21656 if test x
$gcc_cv_objdump != x \
21657 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21658 |
tail -3 > conftest.got \
21659 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21660 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21662 gcc_cv_as_eh_frame
=yes
21663 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21665 (eval $ac_try) 2>&5
21667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21668 test $ac_status = 0; }; }; then
21669 gcc_cv_as_eh_frame
=buggy
21671 # Uh oh, what do we do now?
21672 gcc_cv_as_eh_frame
=no
21675 echo "configure: failed program was" >&5
21678 rm -f conftest.o conftest.s
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21682 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21685 if test $gcc_cv_as_eh_frame = buggy
; then
21687 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21692 $as_echo_n "checking assembler for section merging support... " >&6; }
21693 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21694 $as_echo_n "(cached) " >&6
21696 gcc_cv_as_shf_merge
=no
21697 if test $in_tree_gas = yes; then
21698 if test $in_tree_gas_is_elf = yes \
21699 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21700 then gcc_cv_as_shf_merge
=yes
21702 elif test x
$gcc_cv_as != x
; then
21703 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21704 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21706 (eval $ac_try) 2>&5
21708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21709 test $ac_status = 0; }; }
21711 gcc_cv_as_shf_merge
=yes
21713 echo "configure: failed program was" >&5
21716 rm -f conftest.o conftest.s
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21720 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21722 if test $gcc_cv_as_shf_merge = no
; then
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21724 $as_echo_n "checking assembler for section merging support... " >&6; }
21725 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21726 $as_echo_n "(cached) " >&6
21728 gcc_cv_as_shf_merge
=no
21729 if test $in_tree_gas = yes; then
21730 if test $in_tree_gas_is_elf = yes \
21731 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21732 then gcc_cv_as_shf_merge
=yes
21734 elif test x
$gcc_cv_as != x
; then
21735 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21736 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21738 (eval $ac_try) 2>&5
21740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21741 test $ac_status = 0; }; }
21743 gcc_cv_as_shf_merge
=yes
21745 echo "configure: failed program was" >&5
21748 rm -f conftest.o conftest.s
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21752 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21756 cat >>confdefs.h
<<_ACEOF
21757 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21762 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21763 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21766 gcc_cv_as_comdat_group
=no
21767 if test $in_tree_gas = yes; then
21768 if test $in_tree_gas_is_elf = yes \
21769 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21770 then gcc_cv_as_comdat_group
=yes
21772 elif test x
$gcc_cv_as != x
; then
21773 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21774 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21776 (eval $ac_try) 2>&5
21778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21779 test $ac_status = 0; }; }
21781 gcc_cv_as_comdat_group
=yes
21783 echo "configure: failed program was" >&5
21786 rm -f conftest.o conftest.s
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21790 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21792 if test $gcc_cv_as_comdat_group = yes; then
21793 gcc_cv_as_comdat_group_percent
=no
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21796 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21797 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21798 $as_echo_n "(cached) " >&6
21800 gcc_cv_as_comdat_group_percent
=no
21801 if test $in_tree_gas = yes; then
21802 if test $in_tree_gas_is_elf = yes \
21803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21804 then gcc_cv_as_comdat_group_percent
=yes
21806 elif test x
$gcc_cv_as != x
; then
21807 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21808 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21810 (eval $ac_try) 2>&5
21812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21813 test $ac_status = 0; }; }
21815 gcc_cv_as_comdat_group_percent
=yes
21817 echo "configure: failed program was" >&5
21820 rm -f conftest.o conftest.s
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21824 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21827 if test $in_tree_ld = yes ; then
21829 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 \
21830 && test $in_tree_ld_is_elf = yes; then
21833 elif test x
"$ld_vers" != x
; then
21835 if test 0"$ld_date" -lt 20050308; then
21836 if test -n "$ld_date"; then
21837 # If there was date string, but was earlier than 2005-03-08, fail
21839 elif test "$ld_vers_major" -lt 2; then
21841 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21846 # assume linkers other than GNU ld don't support COMDAT group
21849 if test $comdat_group = no
; then
21850 gcc_cv_as_comdat_group
=no
21851 gcc_cv_as_comdat_group_percent
=no
21854 cat >>confdefs.h
<<_ACEOF
21855 #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`
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21860 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21861 if test "${gcc_cv_as_discriminator+set}" = set; then :
21862 $as_echo_n "(cached) " >&6
21864 gcc_cv_as_discriminator
=no
21865 if test $in_tree_gas = yes; then
21866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21867 then gcc_cv_as_discriminator
=yes
21869 elif test x
$gcc_cv_as != x
; then
21872 .loc 1 1 0 discriminator 1' > conftest.s
21873 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21875 (eval $ac_try) 2>&5
21877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878 test $ac_status = 0; }; }
21880 gcc_cv_as_discriminator
=yes
21882 echo "configure: failed program was" >&5
21885 rm -f conftest.o conftest.s
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21889 $as_echo "$gcc_cv_as_discriminator" >&6; }
21890 if test $gcc_cv_as_discriminator = yes; then
21892 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21896 # Thread-local storage - the check is heavily parameterized.
21904 .section ".tdata","awT",@progbits
21907 ldq $27,__tls_get_addr($29) !literal!1
21908 lda $16,foo($29) !tlsgd!1
21909 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21910 ldq $27,__tls_get_addr($29) !literal!2
21911 lda $16,foo($29) !tlsldm!2
21912 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21913 ldq $1,foo($29) !gotdtprel
21914 ldah $2,foo($29) !dtprelhi
21915 lda $3,foo($2) !dtprello
21916 lda $4,foo($29) !dtprel
21917 ldq $1,foo($29) !gottprel
21918 ldah $2,foo($29) !tprelhi
21919 lda $3,foo($2) !tprello
21920 lda $4,foo($29) !tprel'
21923 tls_as_opt
=--fatal-warnings
21925 cris-
*-*|crisv32-
*-*)
21927 .section ".tdata","awT",@progbits
21934 tls_as_opt
=--fatal-warnings
21938 .section ".tdata","awT",@progbits
21941 call #gettlsoff(x)'
21950 .section ".tdata","awT",@progbits
21954 addil LT%foo-$tls_gdidx$,gp
21955 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21958 addil LT%foo-$tls_ldidx$,gp
21960 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21961 addil LR%foo-$tls_dtpoff$,%ret0
21962 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21964 addil LT%foo-$tls_ieoff$,gp
21965 ldw RT%foo-$tls_ieoff$(%r1),%t2
21968 addil LR%foo-$tls_leoff$,%t1
21969 ldo RR%foo-$tls_leoff$(%r1),%t2'
21972 tls_as_opt
=--fatal-warnings
21976 .section ".tdata","awT",%progbits
21979 .word foo(gottpoff)
21989 .section ".tdata","awT",@progbits
21993 leal foo@TLSGD(,%ebx,1), %eax
21994 leal foo@TLSLDM(%ebx), %eax
21995 leal foo@DTPOFF(%eax), %edx
21996 movl foo@GOTTPOFF(%ebx), %eax
21997 subl foo@GOTTPOFF(%ebx), %eax
21998 addl foo@GOTNTPOFF(%ebx), %eax
21999 movl foo@INDNTPOFF, %eax
22000 movl $foo@TPOFF, %eax
22001 subl $foo@TPOFF, %eax
22002 leal foo@NTPOFF(%ecx), %eax'
22005 tls_as_opt
=--fatal-warnings
22009 .section ".tdata","awT",@progbits
22013 leaq foo@TLSGD(%rip), %rdi
22014 leaq foo@TLSLD(%rip), %rdi
22015 leaq foo@DTPOFF(%rax), %rdx
22016 movq foo@GOTTPOFF(%rip), %rax
22017 movq $foo@TPOFF, %rax'
22020 tls_as_opt
=--fatal-warnings
22024 .section ".tdata","awT",@progbits
22027 addl r16 = @ltoff(@dtpmod(foo#)), gp
22028 addl r17 = @ltoff(@dtprel(foo#)), gp
22029 addl r18 = @ltoff(@tprel(foo#)), gp
22030 addl r19 = @dtprel(foo#), gp
22031 adds r21 = @dtprel(foo#), r13
22032 movl r23 = @dtprel(foo#)
22033 addl r20 = @tprel(foo#), gp
22034 adds r22 = @tprel(foo#), r13
22035 movl r24 = @tprel(foo#)'
22038 tls_as_opt
=--fatal-warnings
22042 .section .tdata,"awT",@progbits
22046 addiu $4, $28, %tlsgd(x)
22047 addiu $4, $28, %tlsldm(x)
22048 lui $4, %dtprel_hi(x)
22049 addiu $4, $4, %dtprel_lo(x)
22050 lw $4, %gottprel(x)($28)
22051 lui $4, %tprel_hi(x)
22052 addiu $4, $4, %tprel_lo(x)'
22055 tls_as_opt
='-32 --fatal-warnings'
22059 .section .tdata,"awT",@progbits
22064 move.l x@TLSGD(%a5),%a0
22065 move.l x@TLSLDM(%a5),%a0
22066 move.l x@TLSLDO(%a5),%a0
22067 move.l x@TLSIE(%a5),%a0
22068 move.l x@TLSLE(%a5),%a0'
22071 tls_as_opt
='--fatal-warnings'
22075 .section ".tdata","awT",@progbits
22083 addi 3,31,ld0@got@tlsgd
22085 addi 3,31,x1@got@tlsld
22088 addis 9,3,x2@dtprel@ha
22089 addi 9,9,x2@dtprel@l
22090 lwz 9,x3@got@tprel(31)
22093 addis 9,2,x2@tprel@ha
22094 addi 9,9,x2@tprel@l'
22097 tls_as_opt
="-a32 --fatal-warnings"
22101 .section ".tdata","awT",@progbits
22109 addi 3,2,ld0@got@tlsgd
22115 addi 3,2,x1@got@tlsld
22121 addis 9,3,x2@dtprel@ha
22122 addi 9,9,x2@dtprel@l
22125 ld 9,x3@got@dtprel(2)
22131 tls_as_opt
="-a64 --fatal-warnings"
22135 .section ".tdata","awT",@progbits
22142 .long foo@GOTNTPOFF
22143 .long foo@INDNTPOFF
22144 l %r1,foo@GOTNTPOFF(%r12)
22145 l %r1,0(%r1):tls_load:foo
22146 bas %r14,0(%r1,%r13):tls_gdcall:foo
22147 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22150 tls_as_opt
="-m31 --fatal-warnings"
22154 .section ".tdata","awT",@progbits
22161 .quad foo@GOTNTPOFF
22162 lg %r1,foo@GOTNTPOFF(%r12)
22163 larl %r1,foo@INDNTPOFF
22164 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22165 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22168 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22170 sh-
*-* | sh
[34]-*-*)
22172 .section ".tdata","awT",@progbits
22182 tls_as_opt
=--fatal-warnings
22186 sparc
*-sun-solaris2.
[56789]*)
22187 # TLS was introduced in the Solaris 9 4/04 release but
22188 # we do not enable it by default on Solaris 9 either.
22189 if test "x$enable_tls" = xyes
; then
22195 sparc
*-sun-solaris2.
*)
22202 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22204 .section ".tdata",#alloc,#write,#tls
22207 sethi %tgd_hi22(foo), %o0
22208 add %o0, %tgd_lo10(foo), %o1
22209 add %l7, %o1, %o0, %tgd_add(foo)
22210 call __tls_get_addr, %tgd_call(foo)
22211 sethi %tldm_hi22(foo), %l1
22212 add %l1, %tldm_lo10(foo), %l2
22213 add %l7, %l2, %o0, %tldm_add(foo)
22214 call __tls_get_addr, %tldm_call(foo)
22215 sethi %tldo_hix22(foo), %l3
22216 xor %l3, %tldo_lox10(foo), %l4
22217 add %o0, %l4, %l5, %tldo_add(foo)
22218 sethi %tie_hi22(foo), %o3
22219 add %o3, %tie_lo10(foo), %o3
22220 ld [%l7 + %o3], %o2, %tie_ld(foo)
22221 add %g7, %o2, %o4, %tie_add(foo)
22222 sethi %tle_hix22(foo), %l1
22223 xor %l1, %tle_lox10(foo), %o5
22224 ld [%g7 + %o5], %o1'
22229 .section ".tdata","awT",@progbits
22232 sethi %tgd_hi22(foo), %o0
22233 add %o0, %tgd_lo10(foo), %o1
22234 add %l7, %o1, %o0, %tgd_add(foo)
22235 call __tls_get_addr, %tgd_call(foo)
22236 sethi %tldm_hi22(foo), %l1
22237 add %l1, %tldm_lo10(foo), %l2
22238 add %l7, %l2, %o0, %tldm_add(foo)
22239 call __tls_get_addr, %tldm_call(foo)
22240 sethi %tldo_hix22(foo), %l3
22241 xor %l3, %tldo_lox10(foo), %l4
22242 add %o0, %l4, %l5, %tldo_add(foo)
22243 sethi %tie_hi22(foo), %o3
22244 add %o3, %tie_lo10(foo), %o3
22245 ld [%l7 + %o3], %o2, %tie_ld(foo)
22246 add %g7, %o2, %o4, %tie_add(foo)
22247 sethi %tle_hix22(foo), %l1
22248 xor %l1, %tle_lox10(foo), %o5
22249 ld [%g7 + %o5], %o1'
22252 tls_as_opt
="-32 --fatal-warnings"
22257 .section ".tdata","awT",@progbits
22260 movi a8, foo@TLSFUNC
22261 movi a10, foo@TLSARG
22262 callx8.tls a8, foo@TLSCALL'
22268 if test "x$enable_tls" = xno
; then
22269 : # TLS explicitly disabled.
22270 elif test "x$enable_tls" = xyes
; then
22271 set_have_as_tls
=yes # TLS explicitly enabled.
22272 elif test -z "$tls_first_major"; then
22273 : # If we don't have a check, assume no support.
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22276 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22277 if test "${gcc_cv_as_tls+set}" = set; then :
22278 $as_echo_n "(cached) " >&6
22281 if test $in_tree_gas = yes; then
22282 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22283 then gcc_cv_as_tls
=yes
22285 elif test x
$gcc_cv_as != x
; then
22286 echo "$conftest_s" > conftest.s
22287 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22289 (eval $ac_try) 2>&5
22291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22292 test $ac_status = 0; }; }
22296 echo "configure: failed program was" >&5
22299 rm -f conftest.o conftest.s
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22303 $as_echo "$gcc_cv_as_tls" >&6; }
22304 if test $gcc_cv_as_tls = yes; then
22305 set_have_as_tls
=yes
22308 if test $set_have_as_tls = yes ; then
22310 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22314 # Target-specific assembler checks.
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22317 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22318 gcc_cv_ld_static_dynamic
=no
22319 if test $in_tree_ld = yes ; then
22320 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
22321 gcc_cv_ld_static_dynamic
=yes
22323 elif test x
$gcc_cv_ld != x
; then
22324 # Check if linker supports -Bstatic/-Bdynamic option
22325 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22326 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22327 gcc_cv_ld_static_dynamic
=yes
22330 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22332 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22336 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22338 if test x
"$demangler_in_ld" = xyes
; then
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22340 $as_echo_n "checking linker --demangle support... " >&6; }
22341 gcc_cv_ld_demangle
=no
22342 if test $in_tree_ld = yes; then
22343 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 \
22344 gcc_cv_ld_demangle
=yes
22346 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22347 # Check if the GNU linker supports --demangle option
22348 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22349 gcc_cv_ld_demangle
=yes
22352 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22354 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22358 $as_echo "$gcc_cv_ld_demangle" >&6; }
22362 # All TARGET_ABI_OSF targets.
22363 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22365 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22366 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22369 gcc_cv_as_alpha_explicit_relocs
=no
22370 if test $in_tree_gas = yes; then
22371 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22372 then gcc_cv_as_alpha_explicit_relocs
=yes
22374 elif test x
$gcc_cv_as != x
; then
22375 echo ' .set nomacro
22377 extbl $3, $2, $3 !lituse_bytoff!1
22378 ldq $2, a($29) !literal!1
22379 ldq $4, b($29) !literal!2
22380 ldq_u $3, 0($2) !lituse_base!1
22381 ldq $27, f($29) !literal!5
22382 jsr $26, ($27), f !lituse_jsr!5
22383 ldah $29, 0($26) !gpdisp!3
22384 lda $0, c($29) !gprel
22385 ldah $1, d($29) !gprelhigh
22386 lda $1, d($1) !gprellow
22387 lda $29, 0($29) !gpdisp!3' > conftest.s
22388 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22390 (eval $ac_try) 2>&5
22392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22393 test $ac_status = 0; }; }
22395 gcc_cv_as_alpha_explicit_relocs
=yes
22397 echo "configure: failed program was" >&5
22400 rm -f conftest.o conftest.s
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22404 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22405 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22407 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22411 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22412 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22413 $as_echo_n "(cached) " >&6
22415 gcc_cv_as_alpha_jsrdirect_relocs
=no
22416 if test $in_tree_gas = yes; then
22417 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22418 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22420 elif test x
$gcc_cv_as != x
; then
22421 echo ' .set nomacro
22423 ldq $27, a($29) !literal!1
22424 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22425 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22427 (eval $ac_try) 2>&5
22429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22430 test $ac_status = 0; }; }
22432 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22434 echo "configure: failed program was" >&5
22437 rm -f conftest.o conftest.s
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22441 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22442 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22444 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22451 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22452 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22453 $as_echo_n "(cached) " >&6
22455 gcc_cv_as_cris_no_mul_bug
=no
22456 if test $in_tree_gas = yes; then
22457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22458 then gcc_cv_as_cris_no_mul_bug
=yes
22460 elif test x
$gcc_cv_as != x
; then
22461 echo '.text' > conftest.s
22462 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22464 (eval $ac_try) 2>&5
22466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22467 test $ac_status = 0; }; }
22469 gcc_cv_as_cris_no_mul_bug
=yes
22471 echo "configure: failed program was" >&5
22474 rm -f conftest.o conftest.s
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22478 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22479 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22481 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22488 $as_echo_n "checking assembler for .register... " >&6; }
22489 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22490 $as_echo_n "(cached) " >&6
22492 gcc_cv_as_sparc_register_op
=no
22493 if test x
$gcc_cv_as != x
; then
22494 echo '.register %g2, #scratch' > conftest.s
22495 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22497 (eval $ac_try) 2>&5
22499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22500 test $ac_status = 0; }; }
22502 gcc_cv_as_sparc_register_op
=yes
22504 echo "configure: failed program was" >&5
22507 rm -f conftest.o conftest.s
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22511 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22512 if test $gcc_cv_as_sparc_register_op = yes; then
22514 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22519 $as_echo_n "checking assembler for -relax option... " >&6; }
22520 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22521 $as_echo_n "(cached) " >&6
22523 gcc_cv_as_sparc_relax
=no
22524 if test x
$gcc_cv_as != x
; then
22525 echo '.text' > conftest.s
22526 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22528 (eval $ac_try) 2>&5
22530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22531 test $ac_status = 0; }; }
22533 gcc_cv_as_sparc_relax
=yes
22535 echo "configure: failed program was" >&5
22538 rm -f conftest.o conftest.s
22541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22542 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22543 if test $gcc_cv_as_sparc_relax = yes; then
22545 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22550 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22551 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22552 $as_echo_n "(cached) " >&6
22554 gcc_cv_as_sparc_ua_pcrel
=no
22555 if test x
$gcc_cv_as != x
; then
22562 .uaword %r_disp32(foo)' > conftest.s
22563 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22565 (eval $ac_try) 2>&5
22567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22568 test $ac_status = 0; }; }
22570 if test x
$gcc_cv_ld != x \
22571 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22572 gcc_cv_as_sparc_ua_pcrel
=yes
22576 echo "configure: failed program was" >&5
22579 rm -f conftest.o conftest.s
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22583 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22584 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22586 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22590 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22591 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22592 $as_echo_n "(cached) " >&6
22594 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22595 if test x
$gcc_cv_as != x
; then
22599 .uaword %r_disp32(foo)
22600 .byte 0x32, 0x33, 0x34
22604 .skip 4' > conftest.s
22605 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22607 (eval $ac_try) 2>&5
22609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22610 test $ac_status = 0; }; }
22612 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22613 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22614 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22615 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22616 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22617 |
grep 'DISP32' > /dev
/null
2>&1; then
22620 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22625 echo "configure: failed program was" >&5
22628 rm -f conftest.o conftest.s
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22632 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22633 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22635 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22639 fi # unaligned pcrel relocs
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22642 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22643 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22644 $as_echo_n "(cached) " >&6
22646 gcc_cv_as_sparc_offsetable_lo10
=no
22647 if test x
$gcc_cv_as != x
; then
22649 or %g1, %lo(ab) + 12, %g1
22650 or %g1, %lo(ab + 12), %g1' > conftest.s
22651 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22653 (eval $ac_try) 2>&5
22655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22656 test $ac_status = 0; }; }
22658 if test x
$gcc_cv_objdump != x \
22659 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
22660 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
22661 gcc_cv_as_sparc_offsetable_lo10
=yes
22664 echo "configure: failed program was" >&5
22667 rm -f conftest.o conftest.s
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22671 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22672 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22674 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22679 i
[34567]86-*-* | x86_64-
*-*)
22681 cygwin
* | pe | mingw32
*)
22682 # Recent binutils allows the three-operand form of ".comm" on PE. This
22683 # definition is used unconditionally to initialise the default state of
22684 # the target option variable that governs usage of the feature.
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22686 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22687 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22688 $as_echo_n "(cached) " >&6
22690 gcc_cv_as_comm_has_align
=no
22691 if test $in_tree_gas = yes; then
22692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22693 then gcc_cv_as_comm_has_align
=yes
22695 elif test x
$gcc_cv_as != x
; then
22696 echo '.comm foo,1,32' > conftest.s
22697 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22699 (eval $ac_try) 2>&5
22701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22702 test $ac_status = 0; }; }
22704 gcc_cv_as_comm_has_align
=yes
22706 echo "configure: failed program was" >&5
22709 rm -f conftest.o conftest.s
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22713 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22716 cat >>confdefs.h
<<_ACEOF
22717 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22720 # Used for DWARF 2 in PE
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22722 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22723 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22726 gcc_cv_as_ix86_pe_secrel32
=no
22727 if test $in_tree_gas = yes; then
22728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22729 then gcc_cv_as_ix86_pe_secrel32
=yes
22731 elif test x
$gcc_cv_as != x
; then
22735 .secrel32 foo' > conftest.s
22736 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22738 (eval $ac_try) 2>&5
22740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22741 test $ac_status = 0; }; }
22743 if test x
$gcc_cv_ld != x \
22744 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
22745 gcc_cv_as_ix86_pe_secrel32
=yes
22749 echo "configure: failed program was" >&5
22752 rm -f conftest.o conftest.s
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22756 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22757 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22759 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22766 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22767 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22768 $as_echo_n "(cached) " >&6
22770 gcc_cv_as_ix86_filds
=no
22771 if test x
$gcc_cv_as != x
; then
22772 echo 'filds mem; fists mem' > conftest.s
22773 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22775 (eval $ac_try) 2>&5
22777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22778 test $ac_status = 0; }; }
22780 gcc_cv_as_ix86_filds
=yes
22782 echo "configure: failed program was" >&5
22785 rm -f conftest.o conftest.s
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22789 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22790 if test $gcc_cv_as_ix86_filds = yes; then
22792 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22797 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22798 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22799 $as_echo_n "(cached) " >&6
22801 gcc_cv_as_ix86_fildq
=no
22802 if test x
$gcc_cv_as != x
; then
22803 echo 'fildq mem; fistpq mem' > conftest.s
22804 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22806 (eval $ac_try) 2>&5
22808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22809 test $ac_status = 0; }; }
22811 gcc_cv_as_ix86_fildq
=yes
22813 echo "configure: failed program was" >&5
22816 rm -f conftest.o conftest.s
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22820 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22821 if test $gcc_cv_as_ix86_fildq = yes; then
22823 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22828 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22829 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22830 $as_echo_n "(cached) " >&6
22832 gcc_cv_as_ix86_cmov_sun_syntax
=no
22833 if test x
$gcc_cv_as != x
; then
22834 echo 'cmovl.l %edx, %eax' > conftest.s
22835 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22842 gcc_cv_as_ix86_cmov_sun_syntax
=yes
22844 echo "configure: failed program was" >&5
22847 rm -f conftest.o conftest.s
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22851 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22852 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22854 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22859 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22860 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22861 $as_echo_n "(cached) " >&6
22863 gcc_cv_as_ix86_ffreep
=no
22864 if test x
$gcc_cv_as != x
; then
22865 echo 'ffreep %st(1)' > conftest.s
22866 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22868 (eval $ac_try) 2>&5
22870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22871 test $ac_status = 0; }; }
22873 gcc_cv_as_ix86_ffreep
=yes
22875 echo "configure: failed program was" >&5
22878 rm -f conftest.o conftest.s
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22882 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22883 if test $gcc_cv_as_ix86_ffreep = yes; then
22885 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22890 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22891 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22892 $as_echo_n "(cached) " >&6
22894 gcc_cv_as_ix86_sahf
=no
22895 if test x
$gcc_cv_as != x
; then
22896 echo 'sahf' > conftest.s
22897 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22899 (eval $ac_try) 2>&5
22901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22902 test $ac_status = 0; }; }
22904 gcc_cv_as_ix86_sahf
=yes
22906 echo "configure: failed program was" >&5
22909 rm -f conftest.o conftest.s
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22913 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22914 if test $gcc_cv_as_ix86_sahf = yes; then
22916 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
22921 $as_echo_n "checking assembler for swap suffix... " >&6; }
22922 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22925 gcc_cv_as_ix86_swap
=no
22926 if test x
$gcc_cv_as != x
; then
22927 echo 'movl.s %esp, %ebp' > conftest.s
22928 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22930 (eval $ac_try) 2>&5
22932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22933 test $ac_status = 0; }; }
22935 gcc_cv_as_ix86_swap
=yes
22937 echo "configure: failed program was" >&5
22940 rm -f conftest.o conftest.s
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
22944 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
22945 if test $gcc_cv_as_ix86_swap = yes; then
22947 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22952 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22953 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22954 $as_echo_n "(cached) " >&6
22956 gcc_cv_as_ix86_diff_sect_delta
=no
22957 if test x
$gcc_cv_as != x
; then
22958 echo '.section .rodata
22964 .L2: nop' > conftest.s
22965 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22967 (eval $ac_try) 2>&5
22969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22970 test $ac_status = 0; }; }
22972 gcc_cv_as_ix86_diff_sect_delta
=yes
22974 echo "configure: failed program was" >&5
22977 rm -f conftest.o conftest.s
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22981 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22982 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22984 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22988 # This one is used unconditionally by i386.[ch]; it is to be defined
22989 # to 1 if the feature is present, 0 otherwise.
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22991 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22992 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22993 $as_echo_n "(cached) " >&6
22995 gcc_cv_as_ix86_gotoff_in_data
=no
22996 if test $in_tree_gas = yes; then
22997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22998 then gcc_cv_as_ix86_gotoff_in_data
=yes
23000 elif test x
$gcc_cv_as != x
; then
23005 .long .L0@GOTOFF' > conftest.s
23006 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23008 (eval $ac_try) 2>&5
23010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23011 test $ac_status = 0; }; }
23013 gcc_cv_as_ix86_gotoff_in_data
=yes
23015 echo "configure: failed program was" >&5
23018 rm -f conftest.o conftest.s
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23022 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23025 cat >>confdefs.h
<<_ACEOF
23026 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23033 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23034 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23035 $as_echo_n "(cached) " >&6
23037 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
23038 if test $in_tree_gas = yes; then
23039 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23040 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23042 elif test x
$gcc_cv_as != x
; then
23044 addl r15 = @ltoffx(x#), gp
23046 ld8.mov r16 = [r15], x#' > conftest.s
23047 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23049 (eval $ac_try) 2>&5
23051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23052 test $ac_status = 0; }; }
23054 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23056 echo "configure: failed program was" >&5
23059 rm -f conftest.o conftest.s
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23063 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23064 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23066 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23074 *-*-aix*) conftest_s
=' .machine "pwr5"
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23079 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23080 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23081 $as_echo_n "(cached) " >&6
23083 gcc_cv_as_machine_directive
=no
23084 if test x
$gcc_cv_as != x
; then
23085 echo ' .machine ppc7400' > conftest.s
23086 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23088 (eval $ac_try) 2>&5
23090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23091 test $ac_status = 0; }; }
23093 gcc_cv_as_machine_directive
=yes
23095 echo "configure: failed program was" >&5
23098 rm -f conftest.o conftest.s
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23102 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23104 if test x
$gcc_cv_as_machine_directive != xyes
; then
23105 echo "*** This target requires an assembler supporting \".machine\"" >&2
23106 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
23107 test x
$build = x
$target && exit 1
23111 *) conftest_s
=' .machine power4
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23117 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23118 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23119 $as_echo_n "(cached) " >&6
23121 gcc_cv_as_powerpc_mfcrf
=no
23122 if test $in_tree_gas = yes; then
23123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23124 then gcc_cv_as_powerpc_mfcrf
=yes
23126 elif test x
$gcc_cv_as != x
; then
23127 echo "$conftest_s" > conftest.s
23128 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23130 (eval $ac_try) 2>&5
23132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23133 test $ac_status = 0; }; }
23135 gcc_cv_as_powerpc_mfcrf
=yes
23137 echo "configure: failed program was" >&5
23140 rm -f conftest.o conftest.s
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23144 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23145 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23147 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23152 *-*-aix*) conftest_s
=' .machine "pwr5"
23155 *) conftest_s
=' .machine power5
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23161 $as_echo_n "checking assembler for popcntb support... " >&6; }
23162 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23163 $as_echo_n "(cached) " >&6
23165 gcc_cv_as_powerpc_popcntb
=no
23166 if test $in_tree_gas = yes; then
23167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23168 then gcc_cv_as_powerpc_popcntb
=yes
23170 elif test x
$gcc_cv_as != x
; then
23171 echo "$conftest_s" > conftest.s
23172 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23174 (eval $ac_try) 2>&5
23176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23177 test $ac_status = 0; }; }
23179 gcc_cv_as_powerpc_popcntb
=yes
23181 echo "configure: failed program was" >&5
23184 rm -f conftest.o conftest.s
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23188 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23189 if test $gcc_cv_as_powerpc_popcntb = yes; then
23191 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23196 *-*-aix*) conftest_s
=' .machine "pwr5x"
23199 *) conftest_s
=' .machine power5
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23205 $as_echo_n "checking assembler for fp round support... " >&6; }
23206 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23207 $as_echo_n "(cached) " >&6
23209 gcc_cv_as_powerpc_fprnd
=no
23210 if test $in_tree_gas = yes; then
23211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23212 then gcc_cv_as_powerpc_fprnd
=yes
23214 elif test x
$gcc_cv_as != x
; then
23215 echo "$conftest_s" > conftest.s
23216 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23218 (eval $ac_try) 2>&5
23220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23221 test $ac_status = 0; }; }
23223 gcc_cv_as_powerpc_fprnd
=yes
23225 echo "configure: failed program was" >&5
23228 rm -f conftest.o conftest.s
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23232 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23233 if test $gcc_cv_as_powerpc_fprnd = yes; then
23235 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23240 *-*-aix*) conftest_s
=' .machine "pwr6"
23243 *) conftest_s
=' .machine power6
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23249 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23250 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23251 $as_echo_n "(cached) " >&6
23253 gcc_cv_as_powerpc_mfpgpr
=no
23254 if test $in_tree_gas = yes; then
23255 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23256 then gcc_cv_as_powerpc_mfpgpr
=yes
23258 elif test x
$gcc_cv_as != x
; then
23259 echo "$conftest_s" > conftest.s
23260 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23262 (eval $ac_try) 2>&5
23264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23265 test $ac_status = 0; }; }
23267 gcc_cv_as_powerpc_mfpgpr
=yes
23269 echo "configure: failed program was" >&5
23272 rm -f conftest.o conftest.s
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23276 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23277 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23279 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23284 *-*-aix*) conftest_s
=' .csect .text[PR]
23286 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23290 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23291 *) conftest_s
=' .text
23293 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23297 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23298 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23299 $as_echo_n "(cached) " >&6
23301 gcc_cv_as_powerpc_rel16
=no
23302 if test $in_tree_gas = yes; then
23303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23304 then gcc_cv_as_powerpc_rel16
=yes
23306 elif test x
$gcc_cv_as != x
; then
23307 echo "$conftest_s" > conftest.s
23308 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; }
23315 gcc_cv_as_powerpc_rel16
=yes
23317 echo "configure: failed program was" >&5
23320 rm -f conftest.o conftest.s
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23324 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23325 if test $gcc_cv_as_powerpc_rel16 = yes; then
23327 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23332 *-*-aix*) conftest_s
=' .machine "pwr6"
23335 *) conftest_s
=' .machine power6
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23341 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23342 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23343 $as_echo_n "(cached) " >&6
23345 gcc_cv_as_powerpc_cmpb
=no
23346 if test $in_tree_gas = yes; then
23347 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23348 then gcc_cv_as_powerpc_cmpb
=yes
23350 elif test x
$gcc_cv_as != x
; then
23351 echo "$conftest_s" > conftest.s
23352 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23354 (eval $ac_try) 2>&5
23356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23357 test $ac_status = 0; }; }
23359 gcc_cv_as_powerpc_cmpb
=yes
23361 echo "configure: failed program was" >&5
23364 rm -f conftest.o conftest.s
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23368 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23369 if test $gcc_cv_as_powerpc_cmpb = yes; then
23371 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23376 *-*-aix*) conftest_s
=' .machine "pwr6"
23379 *) conftest_s
=' .machine power6
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23385 $as_echo_n "checking assembler for decimal float support... " >&6; }
23386 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23387 $as_echo_n "(cached) " >&6
23389 gcc_cv_as_powerpc_dfp
=no
23390 if test $in_tree_gas = yes; then
23391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23392 then gcc_cv_as_powerpc_dfp
=yes
23394 elif test x
$gcc_cv_as != x
; then
23395 echo "$conftest_s" > conftest.s
23396 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23398 (eval $ac_try) 2>&5
23400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23401 test $ac_status = 0; }; }
23403 gcc_cv_as_powerpc_dfp
=yes
23405 echo "configure: failed program was" >&5
23408 rm -f conftest.o conftest.s
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23412 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23413 if test $gcc_cv_as_powerpc_dfp = yes; then
23415 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23420 *-*-aix*) conftest_s
=' .machine "pwr7"
23423 *) conftest_s
=' .machine power7
23428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23429 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23430 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23431 $as_echo_n "(cached) " >&6
23433 gcc_cv_as_powerpc_vsx
=no
23434 if test $in_tree_gas = yes; then
23435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23436 then gcc_cv_as_powerpc_vsx
=yes
23438 elif test x
$gcc_cv_as != x
; then
23439 echo "$conftest_s" > conftest.s
23440 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23442 (eval $ac_try) 2>&5
23444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23445 test $ac_status = 0; }; }
23447 gcc_cv_as_powerpc_vsx
=yes
23449 echo "configure: failed program was" >&5
23452 rm -f conftest.o conftest.s
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23456 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23457 if test $gcc_cv_as_powerpc_vsx = yes; then
23459 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23464 *-*-aix*) conftest_s
=' .machine "pwr7"
23467 *) conftest_s
=' .machine power7
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23473 $as_echo_n "checking assembler for popcntd support... " >&6; }
23474 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23475 $as_echo_n "(cached) " >&6
23477 gcc_cv_as_powerpc_popcntd
=no
23478 if test $in_tree_gas = yes; then
23479 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23480 then gcc_cv_as_powerpc_popcntd
=yes
23482 elif test x
$gcc_cv_as != x
; then
23483 echo "$conftest_s" > conftest.s
23484 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23486 (eval $ac_try) 2>&5
23488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23489 test $ac_status = 0; }; }
23491 gcc_cv_as_powerpc_popcntd
=yes
23493 echo "configure: failed program was" >&5
23496 rm -f conftest.o conftest.s
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23500 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23501 if test $gcc_cv_as_powerpc_popcntd = yes; then
23503 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23508 *-*-aix*) conftest_s
=' .csect .text[PR]
23510 *) conftest_s
=' .text
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23515 $as_echo_n "checking assembler for lwsync support... " >&6; }
23516 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23517 $as_echo_n "(cached) " >&6
23519 gcc_cv_as_powerpc_lwsync
=no
23520 if test $in_tree_gas = yes; then
23521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23522 then gcc_cv_as_powerpc_lwsync
=yes
23524 elif test x
$gcc_cv_as != x
; then
23525 echo "$conftest_s" > conftest.s
23526 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23528 (eval $ac_try) 2>&5
23530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23531 test $ac_status = 0; }; }
23533 gcc_cv_as_powerpc_lwsync
=yes
23535 echo "configure: failed program was" >&5
23538 rm -f conftest.o conftest.s
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23542 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23543 if test $gcc_cv_as_powerpc_lwsync = yes; then
23545 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23550 *-*-aix*) conftest_s
=' .machine "476"
23553 *) conftest_s
=' .machine "476"
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23559 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23560 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23561 $as_echo_n "(cached) " >&6
23563 gcc_cv_as_powerpc_dci
=no
23564 if test $in_tree_gas = yes; then
23565 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23566 then gcc_cv_as_powerpc_dci
=yes
23568 elif test x
$gcc_cv_as != x
; then
23569 echo "$conftest_s" > conftest.s
23570 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23572 (eval $ac_try) 2>&5
23574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575 test $ac_status = 0; }; }
23577 gcc_cv_as_powerpc_dci
=yes
23579 echo "configure: failed program was" >&5
23582 rm -f conftest.o conftest.s
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23586 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23587 if test $gcc_cv_as_powerpc_dci = yes; then
23589 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23594 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23595 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23596 $as_echo_n "(cached) " >&6
23598 gcc_cv_as_powerpc_gnu_attribute
=no
23599 if test $in_tree_gas = yes; then
23600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23601 then gcc_cv_as_powerpc_gnu_attribute
=yes
23603 elif test x
$gcc_cv_as != x
; then
23604 echo '.gnu_attribute 4,1' > conftest.s
23605 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23607 (eval $ac_try) 2>&5
23609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23610 test $ac_status = 0; }; }
23612 gcc_cv_as_powerpc_gnu_attribute
=yes
23614 echo "configure: failed program was" >&5
23617 rm -f conftest.o conftest.s
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23621 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23622 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23624 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23629 $as_echo_n "checking assembler for tls marker support... " >&6; }
23630 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23631 $as_echo_n "(cached) " >&6
23633 gcc_cv_as_powerpc_tls_markers
=no
23634 if test $in_tree_gas = yes; then
23635 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23636 then gcc_cv_as_powerpc_tls_markers
=yes
23638 elif test x
$gcc_cv_as != x
; then
23639 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23640 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23642 (eval $ac_try) 2>&5
23644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23645 test $ac_status = 0; }; }
23647 gcc_cv_as_powerpc_tls_markers
=yes
23649 echo "configure: failed program was" >&5
23652 rm -f conftest.o conftest.s
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23656 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23657 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23659 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23666 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23667 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23668 $as_echo_n "(cached) " >&6
23670 gcc_cv_as_mips_explicit_relocs
=no
23671 if test $in_tree_gas = yes; then
23672 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23673 then gcc_cv_as_mips_explicit_relocs
=yes
23675 elif test x
$gcc_cv_as != x
; then
23676 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23677 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23679 (eval $ac_try) 2>&5
23681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23682 test $ac_status = 0; }; }
23684 gcc_cv_as_mips_explicit_relocs
=yes
23686 echo "configure: failed program was" >&5
23689 rm -f conftest.o conftest.s
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23693 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23694 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23695 if test x
$target_cpu_default = x
23696 then target_cpu_default
=MASK_EXPLICIT_RELOCS
23697 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23701 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23702 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23703 $as_echo_n "(cached) " >&6
23705 gcc_cv_as_mips_no_shared
=no
23706 if test $in_tree_gas = yes; then
23707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23708 then gcc_cv_as_mips_no_shared
=yes
23710 elif test x
$gcc_cv_as != x
; then
23711 echo 'nop' > conftest.s
23712 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23714 (eval $ac_try) 2>&5
23716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23717 test $ac_status = 0; }; }
23719 gcc_cv_as_mips_no_shared
=yes
23721 echo "configure: failed program was" >&5
23724 rm -f conftest.o conftest.s
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23728 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23729 if test $gcc_cv_as_mips_no_shared = yes; then
23731 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23736 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23737 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23738 $as_echo_n "(cached) " >&6
23740 gcc_cv_as_mips_gnu_attribute
=no
23741 if test $in_tree_gas = yes; then
23742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23743 then gcc_cv_as_mips_gnu_attribute
=yes
23745 elif test x
$gcc_cv_as != x
; then
23746 echo '.gnu_attribute 4,1' > conftest.s
23747 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23749 (eval $ac_try) 2>&5
23751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23752 test $ac_status = 0; }; }
23754 gcc_cv_as_mips_gnu_attribute
=yes
23756 echo "configure: failed program was" >&5
23759 rm -f conftest.o conftest.s
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23763 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23764 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23766 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23771 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23772 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23773 $as_echo_n "(cached) " >&6
23775 gcc_cv_as_mips_dtprelword
=no
23776 if test $in_tree_gas = yes; then
23777 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23778 then gcc_cv_as_mips_dtprelword
=yes
23780 elif test x
$gcc_cv_as != x
; then
23781 echo '.section .tdata,"awT",@progbits
23785 .dtprelword x+0x8000' > conftest.s
23786 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23788 (eval $ac_try) 2>&5
23790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23791 test $ac_status = 0; }; }
23793 gcc_cv_as_mips_dtprelword
=yes
23795 echo "configure: failed program was" >&5
23798 rm -f conftest.o conftest.s
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23802 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23803 if test $gcc_cv_as_mips_dtprelword = yes; then
23805 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23810 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23811 gcc_cv_as_ld_jalr_reloc
=no
23812 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23813 if test $in_tree_ld = yes ; then
23814 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 \
23815 && test $in_tree_ld_is_elf = yes; then
23816 gcc_cv_as_ld_jalr_reloc
=yes
23818 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23819 echo ' .ent x' > conftest.s
23820 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
23821 echo ' ld $25,%call16(y)($28)' >> conftest.s
23822 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
23823 echo '1: jalr $25' >> conftest.s
23824 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
23825 echo '1: jalr $25' >> conftest.s
23826 echo ' .end x' >> conftest.s
23827 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
23828 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
23829 if $gcc_cv_objdump -d conftest.so |
grep -q jalr \
23830 && $gcc_cv_objdump -d conftest.so |
grep -q "bal.*<x>"; then
23831 gcc_cv_as_ld_jalr_reloc
=yes
23837 if test $gcc_cv_as_ld_jalr_reloc = yes; then
23838 if test x
$target_cpu_default = x
; then
23839 target_cpu_default
=MASK_RELAX_PIC_CALLS
23841 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
23845 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
23848 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
23849 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
23850 $as_echo_n "(cached) " >&6
23852 gcc_cv_ld_mips_personality_relaxation
=no
23853 if test $in_tree_ld = yes ; then
23854 if test "$gcc_cv_gld_major_version" -eq 2 \
23855 -a "$gcc_cv_gld_minor_version" -ge 21 \
23856 -o "$gcc_cv_gld_major_version" -gt 2; then
23857 gcc_cv_ld_mips_personality_relaxation
=yes
23859 elif test x
$gcc_cv_as != x \
23860 -a x
$gcc_cv_ld != x \
23861 -a x
$gcc_cv_readelf != x
; then
23862 cat > conftest.s
<<EOF
23864 .cfi_personality 0x80,indirect_ptr
23871 .section .data,"aw",@progbits
23875 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
23876 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
23877 if $gcc_cv_readelf -d conftest
2>&1 \
23878 |
grep TEXTREL
> /dev
/null
2>&1; then
23880 elif $gcc_cv_readelf --relocs conftest
2>&1 \
23881 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
23884 gcc_cv_ld_mips_personality_relaxation
=yes
23888 rm -f conftest.s conftest.o conftest
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
23891 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
23892 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
23894 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
23900 # Mips and HP-UX need the GNU assembler.
23901 # Linux on IA64 might be able to use the Intel assembler.
23904 mips
*-*-* |
*-*-hpux* )
23905 if test x
$gas_flag = xyes \
23906 ||
test x
"$host" != x
"$build" \
23907 ||
test ! -x "$gcc_cv_as" \
23908 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
23911 echo "*** This configuration requires the GNU assembler" >&2
23917 # ??? Not all targets support dwarf2 debug_line, even within a version
23918 # of gas. Moreover, we need to emit a valid instruction to trigger any
23919 # info to the output file. So, as supported targets are added to gas 2.11,
23920 # add some instruction here to (also) show we expect this might work.
23921 # ??? Once 2.11 is released, probably need to add first known working
23922 # version to the per-target configury.
23924 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
23925 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
23926 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
23927 | spu-
*-* | fido
*-*-* | m32c-
*-*)
23930 ia64
*-*-* | s390
*-*-*)
23937 if test x
"$insn" != x
; then
23939 .file 1 \"conftest.s\"
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23943 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23944 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23945 $as_echo_n "(cached) " >&6
23947 gcc_cv_as_dwarf2_debug_line
=no
23948 if test $in_tree_gas = yes; then
23949 if test $in_tree_gas_is_elf = yes \
23950 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23951 then gcc_cv_as_dwarf2_debug_line
=yes
23953 elif test x
$gcc_cv_as != x
; then
23954 echo "$conftest_s" > conftest.s
23955 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23957 (eval $ac_try) 2>&5
23959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23960 test $ac_status = 0; }; }
23962 if test x
$gcc_cv_objdump != x \
23963 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
23964 |
grep debug_line
> /dev
/null
2>&1; then
23965 gcc_cv_as_dwarf2_debug_line
=yes
23968 echo "configure: failed program was" >&5
23971 rm -f conftest.o conftest.s
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23975 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23978 # The .debug_line file table must be in the exact order that
23979 # we specified the files, since these indices are also used
23980 # by DW_AT_decl_file. Approximate this test by testing if
23981 # the assembler bitches if the same index is assigned twice.
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23983 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23984 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23985 $as_echo_n "(cached) " >&6
23987 gcc_cv_as_dwarf2_file_buggy
=no
23988 if test x
$gcc_cv_as != x
; then
23989 echo ' .file 1 "foo.s"
23990 .file 1 "bar.s"' > conftest.s
23991 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23993 (eval $ac_try) 2>&5
23995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23996 test $ac_status = 0; }; }
23998 gcc_cv_as_dwarf2_file_buggy
=yes
24000 echo "configure: failed program was" >&5
24003 rm -f conftest.o conftest.s
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24007 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24010 if test $gcc_cv_as_dwarf2_debug_line = yes \
24011 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
24013 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24018 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24019 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24020 $as_echo_n "(cached) " >&6
24022 gcc_cv_as_gdwarf2_flag
=no
24023 if test $in_tree_gas = yes; then
24024 if test $in_tree_gas_is_elf = yes \
24025 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24026 then gcc_cv_as_gdwarf2_flag
=yes
24028 elif test x
$gcc_cv_as != x
; then
24029 echo "$insn" > conftest.s
24030 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; }
24037 gcc_cv_as_gdwarf2_flag
=yes
24039 echo "configure: failed program was" >&5
24042 rm -f conftest.o conftest.s
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24046 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24047 if test $gcc_cv_as_gdwarf2_flag = yes; then
24049 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24054 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24055 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24056 $as_echo_n "(cached) " >&6
24058 gcc_cv_as_gstabs_flag
=no
24059 if test $in_tree_gas = yes; then
24060 if test $in_tree_gas_is_elf = yes \
24061 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24062 then gcc_cv_as_gstabs_flag
=yes
24064 elif test x
$gcc_cv_as != x
; then
24065 echo "$insn" > conftest.s
24066 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
24067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24068 (eval $ac_try) 2>&5
24070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24071 test $ac_status = 0; }; }
24073 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24074 # and warns about it, but still exits successfully. So check for
24076 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24078 (eval $ac_try) 2>&5
24080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24081 test $ac_status = 0; }; }
24083 else gcc_cv_as_gstabs_flag
=yes
24086 echo "configure: failed program was" >&5
24089 rm -f conftest.o conftest.s
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24093 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24094 if test $gcc_cv_as_gstabs_flag = yes; then
24096 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24101 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24102 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24103 $as_echo_n "(cached) " >&6
24105 gcc_cv_as_debug_prefix_map_flag
=no
24106 if test $in_tree_gas = yes; then
24107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24108 then gcc_cv_as_debug_prefix_map_flag
=yes
24110 elif test x
$gcc_cv_as != x
; then
24111 echo "$insn" > conftest.s
24112 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24114 (eval $ac_try) 2>&5
24116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24117 test $ac_status = 0; }; }
24119 gcc_cv_as_debug_prefix_map_flag
=yes
24121 echo "configure: failed program was" >&5
24124 rm -f conftest.o conftest.s
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24128 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24129 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24131 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24137 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24138 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24139 $as_echo_n "(cached) " >&6
24141 gcc_cv_as_lcomm_with_alignment
=no
24142 if test x
$gcc_cv_as != x
; then
24143 echo '.lcomm bar,4,16' > conftest.s
24144 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
24145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24146 (eval $ac_try) 2>&5
24148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24149 test $ac_status = 0; }; }
24151 gcc_cv_as_lcomm_with_alignment
=yes
24153 echo "configure: failed program was" >&5
24156 rm -f conftest.o conftest.s
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24160 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24161 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24163 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24167 # Check whether --enable-gnu-unique-object was given.
24168 if test "${enable_gnu_unique_object+set}" = set; then :
24169 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24171 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24172 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24176 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24177 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24178 $as_echo_n "(cached) " >&6
24180 gcc_cv_as_gnu_unique_object
=no
24181 if test $in_tree_gas = yes; then
24182 if test $in_tree_gas_is_elf = yes \
24183 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24184 then gcc_cv_as_gnu_unique_object
=yes
24186 elif test x
$gcc_cv_as != x
; then
24187 echo '.type foo, @gnu_unique_object' > conftest.s
24188 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
24189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24190 (eval $ac_try) 2>&5
24192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24193 test $ac_status = 0; }; }
24195 gcc_cv_as_gnu_unique_object
=yes
24197 echo "configure: failed program was" >&5
24200 rm -f conftest.o conftest.s
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24204 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24205 if test $gcc_cv_as_gnu_unique_object = yes; then
24206 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24207 if test x
$host = x
$build -a x
$host = x
$target &&
24208 glibcver
=`ldd --version 2>/dev/null`; then
24209 glibcmajor
=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
24210 glibcminor
=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
24211 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
24212 if test "$glibcnum" -ge 2011 ; then
24213 enable_gnu_unique_object
=yes
24219 if test x
$enable_gnu_unique_object = xyes
; then
24221 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24226 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24227 if test "${gcc_cv_as_line_zero+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24230 gcc_cv_as_line_zero
=no
24231 if test $in_tree_gas = yes; then
24232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24233 then gcc_cv_as_line_zero
=yes
24235 elif test "x$gcc_cv_as" != x
; then
24236 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24237 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24239 (eval $ac_try) 2>&5
24241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24242 test $ac_status = 0; }; } &&
24243 test "x`cat conftest.out`" = x
24245 gcc_cv_as_line_zero
=yes
24247 echo "configure: failed program was" >&5
24249 echo "configure: error output was" >&5
24250 cat conftest.out
>&5
24252 rm -f conftest.o conftest.s conftest.out
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24256 $as_echo "$gcc_cv_as_line_zero" >&6; }
24257 if test "x$gcc_cv_as_line_zero" = xyes
; then
24259 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24264 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24265 gcc_cv_ld_eh_frame_hdr
=no
24266 if test $in_tree_ld = yes ; then
24267 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 \
24268 && test $in_tree_ld_is_elf = yes; then
24269 gcc_cv_ld_eh_frame_hdr
=yes
24271 elif test x
$gcc_cv_ld != x
; then
24272 # Check if linker supports --eh-frame-hdr option
24273 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
24274 gcc_cv_ld_eh_frame_hdr
=yes
24278 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
24280 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24284 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24287 $as_echo_n "checking linker position independent executable support... " >&6; }
24289 if test $in_tree_ld = yes ; then
24290 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 \
24291 && test $in_tree_ld_is_elf = yes; then
24294 elif test x
$gcc_cv_ld != x
; then
24295 # Check if linker supports -pie option
24296 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
24300 if test x
"$gcc_cv_ld_pie" = xyes
; then
24302 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24306 $as_echo "$gcc_cv_ld_pie" >&6; }
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24309 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24310 gcc_cv_ld_eh_gc_sections
=no
24311 if test $in_tree_ld = yes ; then
24312 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 \
24313 && test $in_tree_ld_is_elf = yes; then
24314 gcc_cv_ld_eh_gc_sections
=yes
24316 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24317 cat > conftest.s
<<EOF
24320 .type _start, @function
24323 .size _start, .-_start
24324 .section .text.foo,"ax",@progbits
24325 .type foo, @function
24329 .section .gcc_except_table.foo,"a",@progbits
24332 .section .eh_frame,"a",@progbits
24335 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24336 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24337 |
grep "gc-sections option ignored" > /dev
/null
; then
24338 gcc_cv_ld_eh_gc_sections
=no
24339 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
24340 gcc_cv_ld_eh_gc_sections
=yes
24341 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24342 if test x
$gcc_cv_as_comdat_group != xyes
; then
24343 gcc_cv_ld_eh_gc_sections
=no
24344 cat > conftest.s
<<EOF
24347 .type _start, @function
24350 .size _start, .-_start
24351 .section .gnu.linkonce.t.foo,"ax",@progbits
24352 .type foo, @function
24356 .section .gcc_except_table.foo,"a",@progbits
24359 .section .eh_frame,"a",@progbits
24362 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24363 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24364 |
grep "gc-sections option ignored" > /dev
/null
; then
24365 gcc_cv_ld_eh_gc_sections
=no
24366 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
24367 gcc_cv_ld_eh_gc_sections
=yes
24373 rm -f conftest.s conftest.o conftest
24377 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24378 gcc_cv_ld_eh_gc_sections
=no
24381 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
24383 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24387 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24394 $as_echo_n "checking linker --as-needed support... " >&6; }
24395 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24396 $as_echo_n "(cached) " >&6
24398 gcc_cv_ld_as_needed
=no
24399 if test $in_tree_ld = yes ; then
24400 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 \
24401 && test $in_tree_ld_is_elf = yes; then
24402 gcc_cv_ld_as_needed
=yes
24404 elif test x
$gcc_cv_ld != x
; then
24405 # Check if linker supports --as-needed and --no-as-needed options
24406 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
24407 gcc_cv_ld_as_needed
=yes
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24413 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24414 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
24416 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24420 case "$target:$tm_file" in
24421 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24423 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24424 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24425 $as_echo_n "(cached) " >&6
24427 gcc_cv_ld_no_dot_syms
=no
24428 if test $in_tree_ld = yes ; then
24429 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
24430 gcc_cv_ld_no_dot_syms
=yes
24432 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
24433 cat > conftest1.s
<<EOF
24437 cat > conftest2.s
<<EOF
24438 .section ".opd","aw"
24441 .type foo,@function
24443 .quad .LEfoo,.TOC.@tocbase,0
24449 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24450 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24451 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
24452 gcc_cv_ld_no_dot_syms
=yes
24454 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24459 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24460 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
24462 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24469 $as_echo_n "checking linker --build-id support... " >&6; }
24470 if test "${gcc_cv_ld_buildid+set}" = set; then :
24471 $as_echo_n "(cached) " >&6
24473 gcc_cv_ld_buildid
=no
24474 if test $in_tree_ld = yes ; then
24475 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24476 "$gcc_cv_gld_minor_version" -ge 18 -o \
24477 "$gcc_cv_gld_major_version" -gt 2 \
24478 && test $in_tree_ld_is_elf = yes; then
24479 gcc_cv_ld_buildid
=yes
24481 elif test x
$gcc_cv_ld != x
; then
24482 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
24483 gcc_cv_ld_buildid
=yes
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24488 $as_echo "$gcc_cv_ld_buildid" >&6; }
24489 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24491 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24495 # Check whether --enable-linker-build-id was given.
24496 if test "${enable_linker_build_id+set}" = set; then :
24497 enableval
=$enable_linker_build_id;
24499 enable_linker_build_id
=no
24503 if test x
"$enable_linker_build_id" = xyes
; then
24504 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24506 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24510 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24515 $as_echo_n "checking linker --sysroot support... " >&6; }
24516 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24517 $as_echo_n "(cached) " >&6
24519 gcc_cv_ld_sysroot
=no
24520 if test $in_tree_ld = yes ; then
24521 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
24522 gcc_cv_ld_sysroot
=yes
24524 elif test x
$gcc_cv_ld != x
; then
24525 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
24526 gcc_cv_ld_sysroot
=yes
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24531 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24532 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
24534 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24538 if test x
$with_sysroot = x
&& test x
$host = x
$target \
24539 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24540 && test "$prefix" != "NONE"; then
24542 cat >>confdefs.h
<<_ACEOF
24543 #define PREFIX_INCLUDE_DIR "$prefix/include"
24548 # Test for stack protector support in target C library.
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24550 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24551 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24552 $as_echo_n "(cached) " >&6
24554 gcc_cv_libc_provides_ssp
=no
24556 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
24557 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24558 if test "x$with_sysroot" = x
; then
24559 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24560 elif test "x$with_build_sysroot" != "x"; then
24561 glibc_header_dir
="${with_build_sysroot}/usr/include"
24562 elif test "x$with_sysroot" = xyes
; then
24563 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24565 glibc_header_dir
="${with_sysroot}/usr/include"
24568 glibc_header_dir
=/usr
/include
24570 # glibc 2.4 and later provides __stack_chk_fail and
24571 # either __stack_chk_guard, or TLS access to stack guard canary.
24572 if test -f $glibc_header_dir/features.h \
24573 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24574 $glibc_header_dir/features.h
> /dev
/null
; then
24575 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24576 $glibc_header_dir/features.h
> /dev
/null
; then
24577 gcc_cv_libc_provides_ssp
=yes
24578 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24579 $glibc_header_dir/features.h
> /dev
/null \
24580 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24581 $glibc_header_dir/features.h
> /dev
/null
; then
24582 gcc_cv_libc_provides_ssp
=yes
24583 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24584 $glibc_header_dir/features.h
> /dev
/null
&& \
24585 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
24586 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24587 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
24588 gcc_cv_libc_provides_ssp
=yes
24593 # Avoid complicated tests (see
24594 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24595 # simply assert that glibc does provide this, which is true for all
24596 # realistically usable GNU/Hurd configurations.
24597 gcc_cv_libc_provides_ssp
=yes;;
24598 *-*-darwin* |
*-*-freebsd*)
24599 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24600 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
24601 gcc_cv_libc_provides_ssp
=yes
24603 echo "no __stack_chk_fail on this target"
24607 *) gcc_cv_libc_provides_ssp
=no
;;
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24611 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24613 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
24615 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24619 # Check if TFmode long double should be used by default or not.
24620 # Some glibc targets used DFmode long double, but with glibc 2.4
24621 # and later they can use TFmode.
24623 powerpc
*-*-linux* | \
24624 powerpc
*-*-gnu* | \
24625 sparc
*-*-linux* | \
24629 # Check whether --with-long-double-128 was given.
24630 if test "${with_long_double_128+set}" = set; then :
24631 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
24633 gcc_cv_target_ldbl128
=no
24634 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24635 if test "x$with_sysroot" = x
; then
24636 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24637 elif test "x$with_build_sysroot" != "x"; then
24638 glibc_header_dir
="${with_build_sysroot}/usr/include"
24639 elif test "x$with_sysroot" = xyes
; then
24640 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24642 glibc_header_dir
="${with_sysroot}/usr/include"
24645 glibc_header_dir
=/usr
/include
24647 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24648 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
24649 && gcc_cv_target_ldbl128
=yes
24655 if test x
$gcc_cv_target_ldbl128 = xyes
; then
24657 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24661 # Find out what GC implementation we want, or may, use.
24663 # Check whether --with-gc was given.
24664 if test "${with_gc+set}" = set; then :
24665 withval
=$with_gc; case "$withval" in
24672 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24676 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
24684 echo "Using $GGC for garbage collection."
24686 # Libraries to use on the host. This will normally be set by the top
24687 # level Makefile. Here we simply capture the value for our Makefile.
24688 if test -z "${HOST_LIBS+set}"; then
24693 # Use the system's zlib library.
24695 zlibinc
="-I\$(srcdir)/../zlib"
24697 # Check whether --with-system-zlib was given.
24698 if test "${with_system_zlib+set}" = set; then :
24699 withval
=$with_system_zlib; zlibdir
=
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24709 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24710 # Check whether --enable-maintainer-mode was given.
24711 if test "${enable_maintainer_mode+set}" = set; then :
24712 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24719 $as_echo "$maintainer_mode" >&6; }
24721 if test "$maintainer_mode" = "yes"; then
24731 # Make empty files to contain the specs and options for each language.
24732 # Then add #include lines to for a compiler that has specs and/or options.
24738 # These (without "all_") are set in each config-lang.in.
24739 # `language' must be a single word so is spelled singularly.
24742 all_outputs
='Makefile gccbug'
24743 # List of language makefile fragments.
24744 all_lang_makefrags
=
24745 # List of language subdirectory makefiles. Deprecated.
24746 all_lang_makefiles
=
24747 # Additional files for gengtype
24748 all_gtfiles
="$target_gtfiles"
24750 # These are the languages that are set in --enable-languages,
24751 # and are available in the GCC tree.
24752 all_selected_languages
=
24754 # Add the language fragments.
24755 # Languages are added via two mechanisms. Some information must be
24756 # recorded in makefile variables, these are defined in config-lang.in.
24757 # We accumulate them and plug them into the main Makefile.
24758 # The other mechanism is a set of hooks for each of the main targets
24759 # like `clean', `install', etc.
24761 language_hooks
="Make-hooks"
24763 for lang
in ${srcdir}/*/config-lang.
in
24765 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24767 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24768 if test "x$lang_alias" = x
24770 echo "$lang doesn't set \$language." 1>&2
24773 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24774 subdirs
="$subdirs $subdir"
24776 # $gcc_subdir is where the gcc integration files are to be found
24777 # for a language, both for internal compiler purposes (compiler
24778 # sources implementing front-end to GCC tree converters), and for
24779 # build infrastructure purposes (Make-lang.in, etc.)
24781 # This will be <subdir> (relative to $srcdir) if a line like
24782 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24783 # is found in <langdir>/config-lang.in, and will remain <langdir>
24786 # Except for the language alias (fetched above), the regular
24787 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24788 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24789 # only this and the language alias.
24791 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24792 if [ "$gcc_subdir" = "" ]; then
24793 gcc_subdir
="$subdir"
24796 case ",$enable_languages," in
24798 all_selected_languages
="$all_selected_languages $lang_alias"
24799 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
24800 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24811 .
${srcdir}/$gcc_subdir/config-lang.
in
24812 if test "x$language" = x
24814 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24819 case ",$enable_languages," in
24820 *,$lang_alias,*) ;;
24822 for i
in $subdir_requires; do
24823 test -f "${srcdir}/$i/config-lang.in" && continue
24831 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24832 if test -f $srcdir/$gcc_subdir/lang.opt
; then
24833 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24835 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
24836 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24838 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
24839 then all_lang_makefiles
="$gcc_subdir/Makefile"
24841 all_languages
="$all_languages $language"
24842 all_compilers
="$all_compilers $compilers"
24843 all_outputs
="$all_outputs $outputs"
24844 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
24845 case ",$enable_languages," in
24848 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
24857 # Pick up gtfiles for c
24859 .
${srcdir}/c-config-lang.
in
24860 all_gtfiles
="$all_gtfiles [c] $gtfiles"
24863 for language
in $all_selected_languages
24865 check_languages
="$check_languages check-$language"
24868 # We link each language in with a set of hooks, reached indirectly via
24869 # lang.${target}. Only do so for selected languages.
24873 target_list
="all.cross start.encap rest.encap tags \
24874 install-common install-man install-info install-pdf dvi pdf \
24875 html uninstall info man srcextra srcman srcinfo \
24876 mostlyclean clean distclean maintainer-clean install-plugin"
24878 for t
in $target_list
24881 for lang
in $all_selected_languages
24885 echo "lang.$t: $x" >> Make-hooks
24894 echo "dir ." > .gdbinit
24895 echo "dir ${srcdir}" >> .gdbinit
24896 if test x
$gdb_needs_out_file_path = xyes
24898 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24900 if test "x$subdirs" != x
; then
24903 echo "dir ${srcdir}/$s" >> .gdbinit
24906 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24908 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24912 # Find a directory in which to install a shared libgcc.
24914 # Check whether --enable-version-specific-runtime-libs was given.
24915 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24916 enableval
=$enable_version_specific_runtime_libs;
24921 # Check whether --with-slibdir was given.
24922 if test "${with_slibdir+set}" = set; then :
24923 withval
=$with_slibdir; slibdir
="$with_slibdir"
24925 if test "${enable_version_specific_runtime_libs+set}" = set; then
24926 slibdir
='$(libsubdir)'
24927 elif test "$host" != "$target"; then
24928 slibdir
='$(build_tooldir)/lib'
24930 slibdir
='$(libdir)'
24936 # Substitute configuration variables
24999 if test x
${build} = x
${host} ; then
25000 if test x
${host} = x
${target} ; then
25001 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25003 echo "Links are now set up to build a cross-compiler" 1>&2
25004 echo " from ${host} to ${target}." 1>&2
25007 if test x
${host} = x
${target} ; then
25008 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25009 echo " for ${target}." 1>&2
25011 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25012 echo " from ${host} to ${target}." 1>&2
25019 case "${GMPLIBS}" in
25021 $as_echo "#define HAVE_mpc 1" >>confdefs.h
25030 if test "x${CLOOGLIBS}" != "x" ; then
25032 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25038 if test "x${LIBELFLIBS}" != "x" ; then
25040 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25044 # Check for plugin support
25045 # Check whether --enable-plugin was given.
25046 if test "${enable_plugin+set}" = set; then :
25047 enableval
=$enable_plugin; enable_plugin
=$enableval
25049 enable_plugin
=yes; default_plugin
=yes
25054 if test x
"$enable_plugin" = x
"yes"; then
25055 # Check that the host supports -rdynamic and -ldl
25058 saved_LDFLAGS
="$LDFLAGS"
25063 LDFLAGS
="$LDFLAGS -rdynamic"
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25065 $as_echo_n "checking for -rdynamic... " >&6; }
25066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25067 /* end confdefs.h. */
25077 if ac_fn_c_try_link
"$LINENO"; then :
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25079 $as_echo "yes" >&6; }; have_rdynamic
=yes
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25082 $as_echo "no" >&6; }
25084 rm -f core conftest.err conftest.
$ac_objext \
25085 conftest
$ac_exeext conftest.
$ac_ext
25086 if test x
"$have_rdynamic" = x
"yes" ; then
25087 pluginlibs
="-rdynamic"
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25092 $as_echo_n "checking for library containing dlopen... " >&6; }
25093 if test "${ac_cv_search_dlopen+set}" = set; then :
25094 $as_echo_n "(cached) " >&6
25096 ac_func_search_save_LIBS
=$LIBS
25097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25098 /* end confdefs.h. */
25100 /* Override any GCC internal prototype to avoid an error.
25101 Use char because int might match the return type of a GCC
25102 builtin and then its argument prototype would still apply. */
25115 for ac_lib
in '' dl
; do
25116 if test -z "$ac_lib"; then
25117 ac_res
="none required"
25120 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25122 if ac_fn_c_try_link
"$LINENO"; then :
25123 ac_cv_search_dlopen
=$ac_res
25125 rm -f core conftest.err conftest.
$ac_objext \
25127 if test "${ac_cv_search_dlopen+set}" = set; then :
25131 if test "${ac_cv_search_dlopen+set}" = set; then :
25134 ac_cv_search_dlopen
=no
25136 rm conftest.
$ac_ext
25137 LIBS
=$ac_func_search_save_LIBS
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25140 $as_echo "$ac_cv_search_dlopen" >&6; }
25141 ac_res
=$ac_cv_search_dlopen
25142 if test "$ac_res" != no
; then :
25143 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25147 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
25148 pluginlibs
="$pluginlibs -ldl"
25151 # Check that we can build shared objects with -fPIC -shared
25152 LDFLAGS
="$LDFLAGS -fPIC -shared"
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25154 $as_echo_n "checking for -fPIC -shared... " >&6; }
25155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25156 /* end confdefs.h. */
25166 if ac_fn_c_try_link
"$LINENO"; then :
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25168 $as_echo "yes" >&6; }; have_pic_shared
=yes
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25171 $as_echo "no" >&6; }; have_pic_shared
=no
25173 rm -f core conftest.err conftest.
$ac_objext \
25174 conftest
$ac_exeext conftest.
$ac_ext
25175 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
25180 # If plugin support had been requested but not available, fail.
25181 if test x
"$enable_plugin" = x
"no" ; then
25182 if test x
"$default_plugin" != x
"yes"; then
25184 Building GCC with plugin support requires a host that supports
25185 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25189 LDFLAGS
="$saved_LDFLAGS"
25195 if test x
"$enable_plugin" = x
"yes"; then
25197 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25201 # Configure the subdirectories
25202 # AC_CONFIG_SUBDIRS($subdirs)
25204 # Create the Makefile
25205 # and configure language subdirectories
25206 ac_config_files
="$ac_config_files $all_outputs"
25209 ac_config_commands
="$ac_config_commands default"
25211 cat >confcache
<<\_ACEOF
25212 # This file is a shell script that caches the results of configure
25213 # tests run on this system so they can be shared between configure
25214 # scripts and configure runs, see configure's option --config-cache.
25215 # It is not useful on other systems. If it contains results you don't
25216 # want to keep, you may remove or edit it.
25218 # config.status only pays attention to the cache file if you give it
25219 # the --recheck option to rerun configure.
25221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25223 # following values.
25227 # The following way of writing the cache mishandles newlines in values,
25228 # but we know of no workaround that is simple, portable, and efficient.
25229 # So, we kill variables containing newlines.
25230 # Ultrix sh set writes to stderr and can't be redirected directly,
25231 # and sets the high bit in the cache file unless we assign to the vars.
25233 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25234 eval ac_val
=\$
$ac_var
25238 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25242 _ | IFS | as_nl
) ;; #(
25243 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25244 *) { eval $ac_var=; unset $ac_var;} ;;
25250 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25251 *${as_nl}ac_space
=\
*)
25252 # `set' does not quote correctly, so add quotes: double-quote
25253 # substitution turns \\\\ into \\, and sed turns \\ into \.
25256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25259 # `set' quotes correctly as required by POSIX, so do not add quotes.
25260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25273 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25274 if test -w "$cache_file"; then
25275 test "x$cache_file" != "x/dev/null" &&
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25277 $as_echo "$as_me: updating cache $cache_file" >&6;}
25278 cat confcache
>$cache_file
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25286 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25287 # Let make expand exec_prefix.
25288 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25290 DEFS
=-DHAVE_CONFIG_H
25294 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25295 # 1. Remove the extension, and $U if already installed.
25296 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25297 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25298 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25299 # will be set to the directory where LIBOBJS objects are built.
25300 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25301 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25303 LIBOBJS
=$ac_libobjs
25305 LTLIBOBJS
=$ac_ltlibobjs
25310 : ${CONFIG_STATUS=./config.status}
25312 ac_clean_files_save
=$ac_clean_files
25313 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25315 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25317 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25319 # Generated by $as_me.
25320 # Run this file to recreate the current configuration.
25321 # Compiler output produced by configure, useful for debugging
25322 # configure, is in config.log if it exists.
25325 ac_cs_recheck=false
25328 SHELL=\${CONFIG_SHELL-$SHELL}
25331 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25332 ## -------------------- ##
25333 ## M4sh Initialization. ##
25334 ## -------------------- ##
25336 # Be more Bourne compatible
25337 DUALCASE
=1; export DUALCASE
# for MKS sh
25338 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25341 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25342 # is contrary to our usage. Disable this feature.
25343 alias -g '${1+"$@"}'='"$@"'
25344 setopt NO_GLOB_SUBST
25346 case `(set -o) 2>/dev/null` in #(
25358 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25359 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25360 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25362 # Prefer a ksh shell builtin over an external printf program on Solaris,
25363 # but without wasting forks for bash or zsh.
25364 if test -z "$BASH_VERSION$ZSH_VERSION" \
25365 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25366 as_echo='print
-r --'
25367 as_echo_n='print
-rn --'
25368 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25369 as_echo='printf %s
\n'
25370 as_echo_n='printf %s
'
25372 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25373 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25374 as_echo_n='/usr
/ucb
/echo -n'
25376 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25377 as_echo_n_body='eval
25381 expr "X$arg" : "X\\(.*\\)$as_nl";
25382 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25384 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25386 export as_echo_n_body
25387 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25389 export as_echo_body
25390 as_echo='sh
-c $as_echo_body as_echo
'
25393 # The user is always right.
25394 if test "${PATH_SEPARATOR+set}" != set; then
25396 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25397 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25404 # We need space, tab and new line, in precisely that order. Quoting is
25405 # there to prevent editors from complaining about space-tab.
25406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25407 # splitting by setting IFS to empty value.)
25410 # Find who we are. Look in the path if we contain no directory separator.
25412 *[\\/]* ) as_myself=$0 ;;
25413 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25414 for as_dir in $PATH
25417 test -z "$as_dir" && as_dir=.
25418 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25424 # We did not find ourselves, most probably we were run as `sh COMMAND'
25425 # in which case we are not to be found in the path.
25426 if test "x$as_myself" = x
; then
25429 if test ! -f "$as_myself"; then
25430 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25434 # Unset variables that we do not need and which cause bugs (e.g. in
25435 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25436 # suppresses any "Segmentation fault" message there. '((' could
25437 # trigger a bug in pdksh 5.2.14.
25438 for as_var
in BASH_ENV ENV MAIL MAILPATH
25439 do eval test x\
${$as_var+set} = xset \
25440 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
25453 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
25456 # as_fn_error ERROR [LINENO LOG_FD]
25457 # ---------------------------------
25458 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25459 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25460 # script with status $?, using 1 if that was 0.
25463 as_status
=$?
; test $as_status -eq 0 && as_status
=1
25465 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
25466 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25468 $as_echo "$as_me: error: $1" >&2
25469 as_fn_exit
$as_status
25473 # as_fn_set_status STATUS
25474 # -----------------------
25475 # Set $? to STATUS, without forking.
25476 as_fn_set_status
()
25479 } # as_fn_set_status
25481 # as_fn_exit STATUS
25482 # -----------------
25483 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25487 as_fn_set_status
$1
25493 # Portably unset VAR.
25496 { eval $1=; unset $1;}
25498 as_unset
=as_fn_unset
25499 # as_fn_append VAR VALUE
25500 # ----------------------
25501 # Append the text in VALUE to the end of the definition contained in VAR. Take
25502 # advantage of any shell optimizations that allow amortized linear growth over
25503 # repeated appends, instead of the typical quadratic growth present in naive
25505 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
25506 eval 'as_fn_append ()
25517 # as_fn_arith ARG...
25518 # ------------------
25519 # Perform arithmetic evaluation on the ARGs, and store the result in the
25520 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25521 # must be portable across $(()) and expr.
25522 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
25523 eval 'as_fn_arith ()
25530 as_val
=`expr "$@" || test $? -eq 1`
25535 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25536 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25542 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25543 as_basename
=basename
25548 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25554 as_me
=`$as_basename -- "$0" ||
25555 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25556 X"$0" : 'X\(//\)$' \| \
25557 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25559 sed '/^.*\/\([^/][^/]*\)\/*$/{
25573 # Avoid depending upon Character Ranges.
25574 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25575 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25576 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25577 as_cr_digits
='0123456789'
25578 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25580 ECHO_C
= ECHO_N
= ECHO_T
=
25581 case `echo -n x` in #(((((
25583 case `echo 'xy\c'` in
25584 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25586 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
25593 rm -f conf$$ conf$$.exe conf$$.
file
25594 if test -d conf$$.dir
; then
25595 rm -f conf$$.dir
/conf$$.
file
25598 mkdir conf$$.dir
2>/dev
/null
25600 if (echo >conf$$.
file) 2>/dev
/null
; then
25601 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25603 # ... but there are two gotchas:
25604 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25605 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25606 # In both cases, we have to default to `cp -p'.
25607 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25609 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25617 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25618 rmdir conf$$.dir
2>/dev
/null
25623 # Create "$as_dir" as a directory, including parents if necessary.
25628 -*) as_dir
=.
/$as_dir;;
25630 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
25634 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25635 *) as_qdir
=$as_dir;;
25637 as_dirs
="'$as_qdir' $as_dirs"
25638 as_dir
=`$as_dirname -- "$as_dir" ||
25639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25640 X"$as_dir" : 'X\(//\)[^/]' \| \
25641 X"$as_dir" : 'X\(//\)$' \| \
25642 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25643 $as_echo X"$as_dir" |
25644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25648 /^X\(\/\/\)[^/].*/{
25661 test -d "$as_dir" && break
25663 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25664 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
25668 if mkdir
-p .
2>/dev
/null
; then
25669 as_mkdir_p
='mkdir -p "$as_dir"'
25671 test -d .
/-p && rmdir .
/-p
25675 if test -x / >/dev
/null
2>&1; then
25676 as_test_x
='test -x'
25678 if ls -dL / >/dev
/null
2>&1; then
25685 if test -d "$1"; then
25691 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25692 ???[sx]*):;;*)false;;esac;fi
25696 as_executable_p
=$as_test_x
25698 # Sed expression to map a string onto a valid CPP name.
25699 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25701 # Sed expression to map a string onto a valid variable name.
25702 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25706 ## ----------------------------------- ##
25707 ## Main body of $CONFIG_STATUS script. ##
25708 ## ----------------------------------- ##
25710 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
25712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25713 # Save the log message, to keep $0 and so on meaningful, and to
25714 # report actual input values of CONFIG_FILES etc. instead of their
25715 # values after options handling.
25717 This file was extended by $as_me, which was
25718 generated by GNU Autoconf 2.64. Invocation command line was
25720 CONFIG_FILES = $CONFIG_FILES
25721 CONFIG_HEADERS = $CONFIG_HEADERS
25722 CONFIG_LINKS = $CONFIG_LINKS
25723 CONFIG_COMMANDS = $CONFIG_COMMANDS
25726 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25731 case $ac_config_files in *"
25732 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25735 case $ac_config_headers in *"
25736 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25741 # Files that config.status was made for.
25742 config_files="$ac_config_files"
25743 config_headers="$ac_config_headers"
25744 config_commands="$ac_config_commands"
25748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25750 \`$as_me' instantiates files and other configuration actions
25751 from templates according to the current configuration. Unless the files
25752 and actions are specified as TAGs, all are instantiated by default.
25754 Usage: $0 [OPTION]... [TAG]...
25756 -h, --help print this help, then exit
25757 -V, --version print version number and configuration settings, then exit
25758 -q, --quiet, --silent
25759 do not print progress messages
25760 -d, --debug don't remove temporary files
25761 --recheck update $as_me by reconfiguring in the same conditions
25762 --file=FILE[:TEMPLATE]
25763 instantiate the configuration file FILE
25764 --header=FILE[:TEMPLATE]
25765 instantiate the configuration header FILE
25767 Configuration files:
25770 Configuration headers:
25773 Configuration commands:
25776 Report bugs to the package provider."
25779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25782 configured by $0, generated by GNU Autoconf 2.64,
25783 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25785 Copyright (C) 2009 Free Software Foundation, Inc.
25786 This config.status script is free software; the Free Software Foundation
25787 gives unlimited permission to copy, distribute and modify it."
25792 test -n "\$AWK" || AWK=awk
25795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25796 # The default lists apply if the user does not specify any file.
25802 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25803 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25814 # Handling of the options.
25815 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25817 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25818 $as_echo "$ac_cs_version"; exit ;;
25819 --debug |
--debu |
--deb |
--de |
--d |
-d )
25821 --file |
--fil |
--fi |
--f )
25824 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25826 as_fn_append CONFIG_FILES
" '$ac_optarg'"
25827 ac_need_defaults
=false
;;
25828 --header |
--heade |
--head |
--hea )
25831 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25833 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
25834 ac_need_defaults
=false
;;
25836 # Conflict between --help and --header
25837 as_fn_error
"ambiguous option: \`$1'
25838 Try \`$0 --help' for more information.";;
25839 --help |
--hel |
-h )
25840 $as_echo "$ac_cs_usage"; exit ;;
25841 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25842 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25845 # This is an error.
25846 -*) as_fn_error
"unrecognized option: \`$1'
25847 Try \`$0 --help' for more information." ;;
25849 *) as_fn_append ac_config_targets
" $1"
25850 ac_need_defaults
=false
;;
25856 ac_configure_extra_args
=
25858 if $ac_cs_silent; then
25860 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25865 if \$ac_cs_recheck; then
25866 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25868 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25869 CONFIG_SHELL='$SHELL'
25870 export CONFIG_SHELL
25875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25879 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25880 ## Running $as_me. ##
25886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25896 # Handling of arguments.
25897 for ac_config_target
in $ac_config_targets
25899 case $ac_config_target in
25900 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
25901 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
25902 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25903 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
25904 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
25905 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25907 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25912 # If the user did not use the arguments to specify the items to instantiate,
25913 # then the envvar interface is used. Set only those that are not.
25914 # We use the long form for the default assignment because of an extremely
25915 # bizarre bug on SunOS 4.1.3.
25916 if $ac_need_defaults; then
25917 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25918 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25919 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25922 # Have a temporary directory for convenience. Make it in the build tree
25923 # simply because there is no reason against having it here, and in addition,
25924 # creating and moving files from /tmp can sometimes cause problems.
25925 # Hook for its removal unless debugging.
25926 # Note that there is a small window in which the directory will not be cleaned:
25927 # after its creation but before its name has been assigned to `$tmp'.
25931 trap 'exit_status=$?
25932 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25934 trap 'as_fn_exit 1' 1 2 13 15
25936 # Create a (secure) tmp directory for tmp files.
25939 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25940 test -n "$tmp" && test -d "$tmp"
25943 tmp
=.
/conf$$
-$RANDOM
25944 (umask 077 && mkdir
"$tmp")
25945 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
25947 # Set up the scripts for CONFIG_FILES section.
25948 # No need to generate them if there are no CONFIG_FILES.
25949 # This happens for instance with `./config.status config.h'.
25950 if test -n "$CONFIG_FILES"; then
25952 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
25953 ac_cs_awk_getline
=:
25954 ac_cs_awk_pipe_init
=
25955 ac_cs_awk_read_file
='
25956 while ((getline aline < (F[key])) > 0)
25959 ac_cs_awk_pipe_fini
=
25961 ac_cs_awk_getline
=false
25962 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
25963 ac_cs_awk_read_file
='
25965 print "cat " F[key] " &&"
25966 '$ac_cs_awk_pipe_init
25967 # The final `:' finishes the AND list.
25968 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
25970 ac_cr
=`echo X | tr X '\015'`
25971 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25972 # But we know of no other shell where ac_cr would be empty at this
25973 # point, so we can use a bashism as a fallback.
25974 if test "x$ac_cr" = x
; then
25975 eval ac_cr
=\$
\'\\r
\'
25977 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25978 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25981 ac_cs_awk_cr
=$ac_cr
25984 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25987 # Create commands to substitute file output variables.
25989 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25990 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25991 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
25994 } >conf$
$files.sh
&&
25995 . .
/conf$
$files.sh ||
25996 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
25997 rm -f conf$
$files.sh
26000 echo "cat >conf$$subs.awk <<_ACEOF" &&
26001 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26003 } >conf$$subs.sh ||
26004 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26005 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26007 for ac_last_try in false false false false false :; do
26008 . ./conf$$subs.sh ||
26009 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26011 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26012 if test $ac_delim_n = $ac_delim_num; then
26014 elif $ac_last_try; then
26015 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26017 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26020 rm -f conf$$subs.sh
26022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26023 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26027 s/^/S["/; s
/!.
*/"]=/
26037 s/\(.\{148\}\).*/\1/
26039 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26044 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26051 s/\(.\{148\}\).*/\1/
26053 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26057 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26062 ' <conf$$subs.awk | sed '
26067 ' >>$CONFIG_STATUS || ac_write_fail=1
26068 rm -f conf$$subs.awk
26069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26071 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26072 for (key in S) S_is_set[key] = 1
26074 \$ac_cs_awk_pipe_init
26078 nfields = split(line, field, "@
")
26080 len = length(field[1])
26081 for (i = 2; i < nfields; i++) {
26083 keylen = length(key)
26084 if (S_is_set[key]) {
26086 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26087 len += length(value) + length(field[++i])
26092 if (nfields == 3 && !substed) {
26094 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26095 \$ac_cs_awk_read_file
26101 \$ac_cs_awk_pipe_fini
26104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26105 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26106 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26109 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26110 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26113 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26114 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26115 # trailing colons and then remove the whole line if VPATH becomes empty
26116 # (actually we leave an empty line to preserve line numbers).
26117 if test "x
$srcdir" = x.; then
26118 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26119 s/:*\$(srcdir):*/:/
26120 s/:*\${srcdir}:*/:/
26122 s/^\([^=]*=[ ]*\):*/\1/
26128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26129 fi # test -n "$CONFIG_FILES"
26131 # Set up the scripts for CONFIG_HEADERS section.
26132 # No need to generate them if there are no CONFIG_HEADERS.
26133 # This happens for instance with `./config.status Makefile'.
26134 if test -n "$CONFIG_HEADERS"; then
26135 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26139 # Transform confdefs.h into an awk script `defines.awk', embedded as
26140 # here-document in config.status, that substitutes the proper values into
26141 # config.h.in to produce config.h.
26143 # Create a delimiter string that does not exist in confdefs.h, to ease
26144 # handling of long lines.
26146 for ac_last_try in false false :; do
26147 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26148 if test -z "$ac_t"; then
26150 elif $ac_last_try; then
26151 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26153 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26157 # For the awk script, D is an array of macro values keyed by name,
26158 # likewise P contains macro parameters if any. Preserve backslash
26159 # newline sequences.
26161 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26163 s/.\{148\}/&'"$ac_delim"'/g
26166 s/^[ ]*#[ ]*define[ ][ ]*/ /
26173 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26175 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26179 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26180 D["\
1"]=" \
3\\\\\\n
"\\/p
26182 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26187 s/.\{148\}/&'"$ac_delim"'/g
26192 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26195 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26197 ' <confdefs.h | sed '
26198 s/'"$ac_delim"'/"\\\
26199 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26202 for (key in D) D_is_set[key] = 1
26205 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26207 split(line, arg, " ")
26208 if (arg[1] == "#") {
26212 defundef
= substr
(arg
[1], 2)
26215 split(mac1
, mac2
, "(") #)
26217 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26218 if (D_is_set
[macro
]) {
26219 # Preserve the white space surrounding the "#".
26220 print prefix
"define", macro P
[macro
] D
[macro
]
26223 # Replace #undef with comments. This is necessary, for example,
26224 # in the case of _POSIX_SOURCE, which is predefined and required
26225 # on some systems where configure will not decide to define it.
26226 if (defundef
== "undef") {
26227 print
"/*", prefix defundef
, macro
, "*/"
26235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26236 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26237 fi # test -n "$CONFIG_HEADERS"
26240 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26245 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26247 case $ac_mode$ac_tag in
26249 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26250 :[FH
]-) ac_tag
=-:-;;
26251 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26268 -) ac_f
="$tmp/stdin";;
26269 *) # Look for the file first in the build tree, then in the source tree
26270 # (if the path is not absolute). The absolute path cannot be DOS-style,
26271 # because $ac_f cannot contain `:'.
26275 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26277 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26279 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26280 as_fn_append ac_file_inputs
" '$ac_f'"
26283 # Let's still pretend it is `configure' which instantiates (i.e., don't
26284 # use $as_me), people would be surprised to read:
26285 # /* config.h. Generated by config.status. */
26286 configure_input
='Generated from '`
26287 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26289 if test x
"$ac_file" != x-
; then
26290 configure_input
="$ac_file. $configure_input"
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26292 $as_echo "$as_me: creating $ac_file" >&6;}
26294 # Neutralize special characters interpreted by sed in replacement strings.
26295 case $configure_input in #(
26296 *\
&* |
*\|
* |
*\\* )
26297 ac_sed_conf_input
=`$as_echo "$configure_input" |
26298 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26299 *) ac_sed_conf_input
=$configure_input;;
26303 *:-:* |
*:-) cat >"$tmp/stdin" \
26304 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26309 ac_dir
=`$as_dirname -- "$ac_file" ||
26310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26311 X"$ac_file" : 'X\(//\)[^/]' \| \
26312 X"$ac_file" : 'X\(//\)$' \| \
26313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26314 $as_echo X"$ac_file" |
26315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26319 /^X\(\/\/\)[^/].*/{
26332 as_dir
="$ac_dir"; as_fn_mkdir_p
26336 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26338 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26339 # A ".." for each directory in $ac_dir_suffix.
26340 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26341 case $ac_top_builddir_sub in
26342 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26343 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26346 ac_abs_top_builddir
=$ac_pwd
26347 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26348 # for backward compatibility:
26349 ac_top_builddir
=$ac_top_build_prefix
26352 .
) # We are building in place.
26354 ac_top_srcdir
=$ac_top_builddir_sub
26355 ac_abs_top_srcdir
=$ac_pwd ;;
26356 [\\/]* | ?
:[\\/]* ) # Absolute name.
26357 ac_srcdir
=$srcdir$ac_dir_suffix;
26358 ac_top_srcdir
=$srcdir
26359 ac_abs_top_srcdir
=$srcdir ;;
26360 *) # Relative name.
26361 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26362 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26363 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26365 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26377 # If the template does not know about datarootdir, expand it.
26378 # FIXME: This hack should be removed a few years after 2.60.
26379 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26390 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26391 *datarootdir
*) ac_datarootdir_seen
=yes;;
26392 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26394 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26397 ac_datarootdir_hack='
26398 s&@datadir@&$datadir&g
26399 s&@docdir@&$docdir&g
26400 s&@infodir@&$infodir&g
26401 s&@localedir@&$localedir&g
26402 s&@mandir@&$mandir&g
26403 s&\\\${datarootdir}&$datarootdir&g' ;;
26407 # Neutralize VPATH when `$srcdir' = `.'.
26408 # Shell code in configure.ac might set extrasub.
26409 # FIXME: do we really want to maintain this feature?
26410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26411 ac_sed_extra="$ac_vpsub
26414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26416 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26417 s|@configure_input@|
$ac_sed_conf_input|
;t t
26418 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26419 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26420 s
&@srcdir@
&$ac_srcdir&;t t
26421 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26422 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26423 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26424 s
&@builddir@
&$ac_builddir&;t t
26425 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26426 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26427 $ac_datarootdir_hack
26429 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26430 if $ac_cs_awk_getline; then
26431 $AWK -f "$tmp/subs.
awk"
26433 $AWK -f "$tmp/subs.
awk" | $SHELL
26435 || as_fn_error "could not create
$ac_file" "$LINENO" 5
26437 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26438 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26441 which seems to be undefined. Please make sure it is defined." >&5
26442 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26443 which seems to be undefined. Please make sure it is defined." >&2;}
26447 -) cat "$tmp/out" && rm -f "$tmp/out";;
26448 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26450 || as_fn_error "could not create $ac_file" "$LINENO" 5
26456 if test x"$ac_file" != x-; then
26458 $as_echo "/* $configure_input */" \
26459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26460 } >"$tmp/config.h" \
26461 || as_fn_error "could not create $ac_file" "$LINENO" 5
26462 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26464 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26467 mv "$tmp/config.h" "$ac_file" \
26468 || as_fn_error "could not create $ac_file" "$LINENO" 5
26471 $as_echo "/* $configure_input */" \
26472 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26473 || as_fn_error "could not create -" "$LINENO" 5
26477 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26478 $as_echo "$as_me: executing $ac_file commands" >&6;}
26483 case $ac_file$ac_mode in
26484 "as":F) chmod +x as ;;
26485 "collect-ld":F) chmod +x collect-ld ;;
26486 "nm":F) chmod +x nm ;;
26488 case ${CONFIG_HEADERS} in
26489 *auto-host.h:config.in*)
26492 # Make sure all the subdirs exist.
26493 for d in $subdirs doc build
26495 test -d $d || mkdir $d
26505 ac_clean_files=$ac_clean_files_save
26507 test $ac_write_fail = 0 ||
26508 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26511 # configure is writing to config.log, and then calls config.status.
26512 # config.status does its own redirection, appending to config.log.
26513 # Unfortunately, on DOS this fails, as config.log is still kept open
26514 # by configure, so config.status won't be able to
write to it
; its
26515 # output is simply discarded. So we exec the FD to /dev/null,
26516 # effectively closing config.log, so it can be properly (re)opened and
26517 # appended to by config.status. When coming back to configure, we
26518 # need to make the FD available again.
26519 if test "$no_create" != yes; then
26521 ac_config_status_args
=
26522 test "$silent" = yes &&
26523 ac_config_status_args
="$ac_config_status_args --quiet"
26525 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26527 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26528 # would make configure fail if this is the last instruction.
26529 $ac_cs_success || as_fn_exit $?
26531 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26533 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}