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
787 TM_MULTILIB_EXCEPTIONS_CONFIG
796 build_xm_include_list
798 build_install_headers_dir
800 all_selected_languages
819 ORIGINAL_NM_FOR_TARGET
821 ORIGINAL_LD_FOR_TARGET
823 ORIGINAL_AS_FOR_TARGET
896 CROSS_SYSTEM_HEADER_DIR
897 TARGET_SYSTEM_ROOT_DEFINE
903 ENABLE_BUILD_WITH_CXX
906 valgrind_path_defines
978 program_transform_name
989 ac_subst_files
='language_hooks'
991 enable_option_checking
996 enable_generated_files_in_srcdir
1002 enable_werror_always
1005 enable_gather_detailed_mem_stats
1006 enable_build_with_cxx
1010 enable_decimal_float
1025 with_libiconv_prefix
1026 enable_initfini_array
1027 enable_sjlj_exceptions
1028 with_system_libunwind
1031 enable_win32_registry
1036 enable_gnu_unique_object
1037 enable_linker_build_id
1038 with_long_double_128
1041 enable_maintainer_mode
1042 enable_version_specific_runtime_libs
1046 ac_precious_vars
='build_alias
1067 # Initialize some variables set by options.
1069 ac_init_version
=false
1070 ac_unrecognized_opts
=
1071 ac_unrecognized_sep
=
1072 # The variables have the same names as the options, with
1073 # dashes changed to underlines.
1074 cache_file
=/dev
/null
1081 program_transform_name
=s
,x
,x
,
1089 # Installation directory options.
1090 # These are left unexpanded so users can "make install exec_prefix=/foo"
1091 # and all the variables that are supposed to be based on exec_prefix
1092 # by default will actually change.
1093 # Use braces instead of parens because sh, perl, etc. also accept them.
1094 # (The list follows the same order as the GNU Coding Standards.)
1095 bindir
='${exec_prefix}/bin'
1096 sbindir
='${exec_prefix}/sbin'
1097 libexecdir
='${exec_prefix}/libexec'
1098 datarootdir
='${prefix}/share'
1099 datadir
='${datarootdir}'
1100 sysconfdir
='${prefix}/etc'
1101 sharedstatedir
='${prefix}/com'
1102 localstatedir
='${prefix}/var'
1103 includedir
='${prefix}/include'
1104 oldincludedir
='/usr/include'
1105 docdir
='${datarootdir}/doc/${PACKAGE}'
1106 infodir
='${datarootdir}/info'
1111 libdir
='${exec_prefix}/lib'
1112 localedir
='${datarootdir}/locale'
1113 mandir
='${datarootdir}/man'
1119 # If the previous option needs an argument, assign it.
1120 if test -n "$ac_prev"; then
1121 eval $ac_prev=\
$ac_option
1127 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1131 # Accept the important Cygnus configure options, so we can diagnose typos.
1133 case $ac_dashdash$ac_option in
1137 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1139 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1140 bindir
=$ac_optarg ;;
1142 -build |
--build |
--buil |
--bui |
--bu)
1143 ac_prev
=build_alias
;;
1144 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1145 build_alias
=$ac_optarg ;;
1147 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1148 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1149 ac_prev
=cache_file
;;
1150 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1151 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1152 cache_file
=$ac_optarg ;;
1154 --config-cache |
-C)
1155 cache_file
=config.cache
;;
1157 -datadir |
--datadir |
--datadi |
--datad)
1159 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1160 datadir
=$ac_optarg ;;
1162 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1163 |
--dataroo |
--dataro |
--datar)
1164 ac_prev
=datarootdir
;;
1165 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1166 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1167 datarootdir
=$ac_optarg ;;
1169 -disable-* |
--disable-*)
1170 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1173 as_fn_error
"invalid feature name: $ac_useropt"
1174 ac_useropt_orig
=$ac_useropt
1175 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "enable_
$ac_useropt"
1180 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1181 ac_unrecognized_sep
=', ';;
1183 eval enable_
$ac_useropt=no
;;
1185 -docdir |
--docdir |
--docdi |
--doc |
--do)
1187 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1188 docdir
=$ac_optarg ;;
1190 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1192 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1193 dvidir
=$ac_optarg ;;
1195 -enable-* |
--enable-*)
1196 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1199 as_fn_error
"invalid feature name: $ac_useropt"
1200 ac_useropt_orig
=$ac_useropt
1201 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "enable_
$ac_useropt"
1206 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1207 ac_unrecognized_sep
=', ';;
1209 eval enable_
$ac_useropt=\
$ac_optarg ;;
1211 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1212 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1213 |
--exec |
--exe |
--ex)
1214 ac_prev
=exec_prefix
;;
1215 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1216 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1217 |
--exec=* |
--exe=* |
--ex=*)
1218 exec_prefix
=$ac_optarg ;;
1220 -gas |
--gas |
--ga |
--g)
1221 # Obsolete; use --with-gas.
1224 -help |
--help |
--hel |
--he |
-h)
1225 ac_init_help
=long
;;
1226 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1227 ac_init_help
=recursive
;;
1228 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1229 ac_init_help
=short
;;
1231 -host |
--host |
--hos |
--ho)
1232 ac_prev
=host_alias
;;
1233 -host=* |
--host=* |
--hos=* |
--ho=*)
1234 host_alias
=$ac_optarg ;;
1236 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1238 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1240 htmldir
=$ac_optarg ;;
1242 -includedir |
--includedir |
--includedi |
--included |
--include \
1243 |
--includ |
--inclu |
--incl |
--inc)
1244 ac_prev
=includedir
;;
1245 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1246 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1247 includedir
=$ac_optarg ;;
1249 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1251 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1252 infodir
=$ac_optarg ;;
1254 -libdir |
--libdir |
--libdi |
--libd)
1256 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1257 libdir
=$ac_optarg ;;
1259 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1260 |
--libexe |
--libex |
--libe)
1261 ac_prev
=libexecdir
;;
1262 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1263 |
--libexe=* |
--libex=* |
--libe=*)
1264 libexecdir
=$ac_optarg ;;
1266 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1267 ac_prev
=localedir
;;
1268 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1269 localedir
=$ac_optarg ;;
1271 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1272 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1273 ac_prev
=localstatedir
;;
1274 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1275 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1276 localstatedir
=$ac_optarg ;;
1278 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1280 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1281 mandir
=$ac_optarg ;;
1283 -nfp |
--nfp |
--nf)
1284 # Obsolete; use --without-fp.
1287 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1288 |
--no-cr |
--no-c |
-n)
1291 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1292 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1295 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1296 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1297 |
--oldin |
--oldi |
--old |
--ol |
--o)
1298 ac_prev
=oldincludedir
;;
1299 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1300 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1301 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1302 oldincludedir
=$ac_optarg ;;
1304 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1306 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1307 prefix
=$ac_optarg ;;
1309 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1310 |
--program-pre |
--program-pr |
--program-p)
1311 ac_prev
=program_prefix
;;
1312 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1313 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1314 program_prefix
=$ac_optarg ;;
1316 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1317 |
--program-suf |
--program-su |
--program-s)
1318 ac_prev
=program_suffix
;;
1319 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1320 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1321 program_suffix
=$ac_optarg ;;
1323 -program-transform-name |
--program-transform-name \
1324 |
--program-transform-nam |
--program-transform-na \
1325 |
--program-transform-n |
--program-transform- \
1326 |
--program-transform |
--program-transfor \
1327 |
--program-transfo |
--program-transf \
1328 |
--program-trans |
--program-tran \
1329 |
--progr-tra |
--program-tr |
--program-t)
1330 ac_prev
=program_transform_name
;;
1331 -program-transform-name=* |
--program-transform-name=* \
1332 |
--program-transform-nam=* |
--program-transform-na=* \
1333 |
--program-transform-n=* |
--program-transform-=* \
1334 |
--program-transform=* |
--program-transfor=* \
1335 |
--program-transfo=* |
--program-transf=* \
1336 |
--program-trans=* |
--program-tran=* \
1337 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1338 program_transform_name
=$ac_optarg ;;
1340 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1342 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1343 pdfdir
=$ac_optarg ;;
1345 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1347 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1350 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1351 |
-silent |
--silent |
--silen |
--sile |
--sil)
1354 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1356 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1358 sbindir
=$ac_optarg ;;
1360 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1361 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1362 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1364 ac_prev
=sharedstatedir
;;
1365 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1366 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1367 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1369 sharedstatedir
=$ac_optarg ;;
1371 -site |
--site |
--sit)
1373 -site=* |
--site=* |
--sit=*)
1376 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1378 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1379 srcdir
=$ac_optarg ;;
1381 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1382 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1383 ac_prev
=sysconfdir
;;
1384 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1385 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1386 sysconfdir
=$ac_optarg ;;
1388 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1389 ac_prev
=target_alias
;;
1390 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1391 target_alias
=$ac_optarg ;;
1393 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1396 -version |
--version |
--versio |
--versi |
--vers |
-V)
1397 ac_init_version
=: ;;
1400 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1403 as_fn_error
"invalid package name: $ac_useropt"
1404 ac_useropt_orig
=$ac_useropt
1405 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1406 case $ac_user_opts in
1410 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1411 ac_unrecognized_sep
=', ';;
1413 eval with_
$ac_useropt=\
$ac_optarg ;;
1415 -without-* |
--without-*)
1416 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1419 as_fn_error
"invalid package name: $ac_useropt"
1420 ac_useropt_orig
=$ac_useropt
1421 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1426 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1427 ac_unrecognized_sep
=', ';;
1429 eval with_
$ac_useropt=no
;;
1432 # Obsolete; use --with-x.
1435 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1436 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1437 ac_prev
=x_includes
;;
1438 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1439 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1440 x_includes
=$ac_optarg ;;
1442 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1443 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1444 ac_prev
=x_libraries
;;
1445 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1446 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1447 x_libraries
=$ac_optarg ;;
1449 -*) as_fn_error
"unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information."
1454 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1455 # Reject names that are not valid shell variable names.
1456 case $ac_envvar in #(
1457 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1458 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1460 eval $ac_envvar=\
$ac_optarg
1461 export $ac_envvar ;;
1464 # FIXME: should be removed in autoconf 3.0.
1465 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1467 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1474 if test -n "$ac_prev"; then
1475 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1476 as_fn_error
"missing argument to $ac_option"
1479 if test -n "$ac_unrecognized_opts"; then
1480 case $enable_option_checking in
1482 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1483 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1487 # Check all directory arguments for consistency.
1488 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1489 datadir sysconfdir sharedstatedir localstatedir includedir \
1490 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1491 libdir localedir mandir
1493 eval ac_val
=\$
$ac_var
1494 # Remove trailing slashes.
1497 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1498 eval $ac_var=\
$ac_val;;
1500 # Be sure to have absolute directory names.
1502 [\\/$
]* | ?
:[\\/]* ) continue;;
1503 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1505 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1508 # There might be people who depend on the old broken behavior: `$host'
1509 # used to hold the argument of --host etc.
1510 # FIXME: To remove some day.
1513 target
=$target_alias
1515 # FIXME: To remove some day.
1516 if test "x$host_alias" != x
; then
1517 if test "x$build_alias" = x
; then
1518 cross_compiling
=maybe
1519 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1520 If a cross compiler is detected then cross compile mode will be used." >&2
1521 elif test "x$build_alias" != "x$host_alias"; then
1527 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1529 test "$silent" = yes && exec 6>/dev
/null
1532 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1533 ac_ls_di
=`ls -di .` &&
1534 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1535 as_fn_error
"working directory cannot be determined"
1536 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1537 as_fn_error
"pwd does not report name of working directory"
1540 # Find the source files, if location was not specified.
1541 if test -z "$srcdir"; then
1542 ac_srcdir_defaulted
=yes
1543 # Try the directory containing this script, then the parent directory.
1544 ac_confdir
=`$as_dirname -- "$as_myself" ||
1545 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1546 X"$as_myself" : 'X\(//\)[^/]' \| \
1547 X"$as_myself" : 'X\(//\)$' \| \
1548 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1549 $as_echo X"$as_myself" |
1550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1572 ac_srcdir_defaulted
=no
1574 if test ! -r "$srcdir/$ac_unique_file"; then
1575 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1576 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1578 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1580 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1582 # When building in place, set srcdir=.
1583 if test "$ac_abs_confdir" = "$ac_pwd"; then
1586 # Remove unnecessary trailing slashes from srcdir.
1587 # Double slashes in file names in object file debugging info
1588 # mess up M-x gdb in Emacs.
1590 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1592 for ac_var
in $ac_precious_vars; do
1593 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1594 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1595 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1596 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1600 # Report the --help message.
1602 if test "$ac_init_help" = "long"; then
1603 # Omit some internal or obsolete options to make the list less imposing.
1604 # This message is too long to be a string in the A/UX 3.1 sh.
1606 \`configure' configures this package to adapt to many kinds of systems.
1608 Usage: $0 [OPTION]... [VAR=VALUE]...
1610 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1611 VAR=VALUE. See below for descriptions of some of the useful variables.
1613 Defaults for the options are specified in brackets.
1616 -h, --help display this help and exit
1617 --help=short display options specific to this package
1618 --help=recursive display the short help of all the included packages
1619 -V, --version display version information and exit
1620 -q, --quiet, --silent do not print \`checking...' messages
1621 --cache-file=FILE cache test results in FILE [disabled]
1622 -C, --config-cache alias for \`--cache-file=config.cache'
1623 -n, --no-create do not create output files
1624 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1626 Installation directories:
1627 --prefix=PREFIX install architecture-independent files in PREFIX
1628 [$ac_default_prefix]
1629 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1632 By default, \`make install' will install all the files in
1633 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1634 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1635 for instance \`--prefix=\$HOME'.
1637 For better control, use the options below.
1639 Fine tuning of the installation directories:
1640 --bindir=DIR user executables [EPREFIX/bin]
1641 --sbindir=DIR system admin executables [EPREFIX/sbin]
1642 --libexecdir=DIR program executables [EPREFIX/libexec]
1643 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1644 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1645 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1646 --libdir=DIR object code libraries [EPREFIX/lib]
1647 --includedir=DIR C header files [PREFIX/include]
1648 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1649 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1650 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1651 --infodir=DIR info documentation [DATAROOTDIR/info]
1652 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1653 --mandir=DIR man documentation [DATAROOTDIR/man]
1654 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1655 --htmldir=DIR html documentation [DOCDIR]
1656 --dvidir=DIR dvi documentation [DOCDIR]
1657 --pdfdir=DIR pdf documentation [DOCDIR]
1658 --psdir=DIR ps documentation [DOCDIR]
1664 --program-prefix=PREFIX prepend PREFIX to installed program names
1665 --program-suffix=SUFFIX append SUFFIX to installed program names
1666 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1669 --build=BUILD configure
for building on BUILD
[guessed
]
1670 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1671 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1675 if test -n "$ac_init_help"; then
1680 --disable-option-checking ignore unrecognized
--enable/--with options
1681 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1682 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1683 --enable-generated-files-in-srcdir
1684 put copies of generated files
in source dir
1685 intended
for creating
source tarballs
for users
1686 without texinfo bison or flex.
1687 --enable-werror-always enable -Werror despite compiler version
1688 --enable-checking=LIST
1689 enable expensive run-time checks. With LIST
,
1690 enable only specific categories of checks.
1691 Categories are
: yes,no
,all
,none
,release.
1692 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1693 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1694 --enable-coverage=LEVEL
1695 enable compiler
's code coverage collection.
1696 Use to measure compiler performance and locate
1697 unused parts of the compiler. With LEVEL, specify
1698 optimization. Values are opt, noopt,
1700 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1701 --enable-build-with-cxx build with C++ compiler instead of C compiler
1702 --enable-multilib enable library support for multiple ABIs
1703 --enable-__cxa_atexit enable __cxa_atexit for C++
1704 --enable-decimal-float={no,yes,bid,dpd}
1705 enable decimal float extension to C. Selecting 'bid
'
1706 or 'dpd
' choses which decimal floating point format
1708 --enable-fixed-point enable fixed-point arithmetic extension to C
1709 --enable-threads enable thread usage for target GCC
1710 --enable-threads=LIB use LIB thread package for target GCC
1711 --enable-tls enable or disable generation of tls code
1712 overriding the assembler check for tls support
1713 --enable-objc-gc enable the use of Boehm's garbage collector with
1714 the GNU Objective-C runtime
1715 --disable-shared don
't provide a shared libgcc
1716 --enable-intermodule build the compiler in one step
1717 --enable-languages=LIST specify which front-ends to build
1718 --disable-rpath do not hardcode runtime library paths
1719 --enable-initfini-array use .init_array/.fini_array sections
1720 --enable-sjlj-exceptions
1721 arrange to use setjmp/longjmp exception handling
1722 --enable-secureplt enable -msecure-plt by default for PowerPC
1723 --enable-cld enable -mcld by default for 32bit x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the
1726 Registry on Windows hosts
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1738 --enable-linker-build-id
1739 compiler will always pass --build-id to linker
1740 --enable-maintainer-mode
1741 enable make rules and dependencies not useful
1742 (and sometimes confusing) to the casual installer
1743 --enable-version-specific-runtime-libs
1744 specify that runtime libraries should be
1745 installed in a compiler-specific directory
1746 --enable-plugin enable plugin support
1749 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1750 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1751 --with-build-libsubdir=DIR Directory where to find libraries for build system
1752 --with-local-prefix=DIR specifies directory to put local include
1753 --with-gxx-include-dir=DIR
1754 specifies directory to put g++ header files
1755 --with-cpp-install-dir=DIR
1756 install the user visible C preprocessor in DIR
1757 (relative to PREFIX) as well as PREFIX/bin
1758 --with-gnu-ld arrange to work with GNU ld.
1759 --with-ld arrange to use the specified ld (full pathname)
1760 --with-demangler-in-ld try to use demangler in GNU ld.
1761 --with-gnu-as arrange to work with GNU as
1762 --with-as arrange to use the specified as (full pathname)
1763 --with-stabs arrange to use stabs instead of host debug format
1764 --with-dwarf2 force the default debug format to be DWARF 2
1765 --with-build-sysroot=sysroot
1766 use sysroot as the system root during the build
1767 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1768 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1769 --with-bugurl=URL Direct users to URL to report a bug
1770 --with-multilib-list Select multilibs (SH only)
1771 --with-gnu-ld assume the C compiler uses GNU ld default=no
1772 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1773 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1774 --with-system-libunwind use installed libunwind
1775 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1777 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1778 --with-long-double-128 Use
128-bit long double by default.
1779 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1781 --with-system-zlib use installed libz
1782 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1784 Some influential environment variables
:
1785 CC C compiler
command
1786 CFLAGS C compiler flags
1787 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1788 nonstandard directory
<lib dir
>
1789 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1790 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1791 you have headers
in a nonstandard directory
<include dir
>
1792 CXX C
++ compiler
command
1793 CXXFLAGS C
++ compiler flags
1795 CXXCPP C
++ preprocessor
1796 GMPLIBS How to link GMP
1797 GMPINC How to
find GMP include files
1798 PPLLIBS How to link PPL
1799 PPLINC How to
find PPL include files
1800 CLOOGLIBS How to link CLOOG
1801 CLOOGINC How to
find CLOOG include files
1803 Use these variables to override the choices made by
`configure' or to help
1804 it to find libraries and programs with nonstandard names/locations.
1806 Report bugs to the package provider.
1811 if test "$ac_init_help" = "recursive"; then
1812 # If there are subdirs, report their specific --help.
1813 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1814 test -d "$ac_dir" ||
1815 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1820 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1822 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1823 # A ".." for each directory in $ac_dir_suffix.
1824 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1825 case $ac_top_builddir_sub in
1826 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1827 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1830 ac_abs_top_builddir=$ac_pwd
1831 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1832 # for backward compatibility:
1833 ac_top_builddir=$ac_top_build_prefix
1836 .) # We are building in place.
1838 ac_top_srcdir=$ac_top_builddir_sub
1839 ac_abs_top_srcdir=$ac_pwd ;;
1840 [\\/]* | ?:[\\/]* ) # Absolute name.
1841 ac_srcdir=$srcdir$ac_dir_suffix;
1842 ac_top_srcdir=$srcdir
1843 ac_abs_top_srcdir=$srcdir ;;
1845 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1846 ac_top_srcdir=$ac_top_build_prefix$srcdir
1847 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1849 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1851 cd "$ac_dir" || { ac_status=$?; continue; }
1852 # Check for guested configure.
1853 if test -f "$ac_srcdir/configure.gnu"; then
1855 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1856 elif test -f "$ac_srcdir/configure"; then
1858 $SHELL "$ac_srcdir/configure" --help=recursive
1860 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1862 cd "$ac_pwd" || { ac_status=$?; break; }
1866 test -n "$ac_init_help" && exit $ac_status
1867 if $ac_init_version; then
1870 generated by GNU Autoconf 2.64
1872 Copyright (C) 2009 Free Software Foundation, Inc.
1873 This configure script is free software; the Free Software Foundation
1874 gives unlimited permission to copy, distribute and modify it.
1879 ## ------------------------ ##
1880 ## Autoconf initialization. ##
1881 ## ------------------------ ##
1883 # ac_fn_c_try_compile LINENO
1884 # --------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1893 *) ac_try_echo
=$ac_try;;
1895 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1899 if test -s conftest.err
; then
1900 grep -v '^ *+' conftest.err
>conftest.er1
1901 cat conftest.er1
>&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.
$ac_objext; then :
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.
$ac_ext >&5
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1919 } # ac_fn_c_try_compile
1921 # ac_fn_cxx_try_compile LINENO
1922 # ----------------------------
1923 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_compile
()
1926 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1927 rm -f conftest.
$ac_objext
1928 if { { ac_try
="$ac_compile"
1930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_compile") 2>conftest.err
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_cxx_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest.$ac_objext; then :
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 } # ac_fn_cxx_try_compile
1959 # ac_fn_c_try_cpp LINENO
1960 # ----------------------
1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_cpp conftest.$ac_ext"
1967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1968 *) ac_try_echo
=$ac_try;;
1970 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1974 if test -s conftest.err
; then
1975 grep -v '^ *+' conftest.err
>conftest.er1
1976 cat conftest.er1
>&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } >/dev
/null
&& {
1981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.
$ac_ext >&5
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1996 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1999 # the include files in INCLUDES and setting the cache variable VAR
2001 ac_fn_c_check_header_mongrel
()
2003 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2004 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008 $as_echo_n "(cached) " >&6
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2014 # Is the header compilable?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2016 $as_echo_n "checking $2 usability... " >&6; }
2017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2022 if ac_fn_c_try_compile
"$LINENO"; then :
2023 ac_header_compiler
=yes
2025 ac_header_compiler
=no
2027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2029 $as_echo "$ac_header_compiler" >&6; }
2031 # Is the header present?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2033 $as_echo_n "checking $2 presence... " >&6; }
2034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 if ac_fn_c_try_cpp
"$LINENO"; then :
2039 ac_header_preproc
=yes
2041 ac_header_preproc
=no
2043 rm -f conftest.err conftest.
$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2045 $as_echo "$ac_header_preproc" >&6; }
2047 # So? What about this header?
2048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2051 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2057 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2059 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2061 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2063 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2065 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2073 eval "$3=\$ac_header_compiler"
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2081 } # ac_fn_c_check_header_mongrel
2083 # ac_fn_c_try_run LINENO
2084 # ----------------------
2085 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2086 # that executables *can* be run.
2089 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2090 if { { ac_try
="$ac_link"
2092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_link") 2>&5
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2101 { { case "(($ac_try" in
2102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2103 *) ac_try_echo
=$ac_try;;
2105 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107 (eval "$ac_try") 2>&5
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110 test $ac_status = 0; }; }; then :
2113 $as_echo "$as_me: program exited with status $ac_status" >&5
2114 $as_echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.
$ac_ext >&5
2117 ac_retval
=$ac_status
2119 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2120 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2125 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2126 # -------------------------------------------------------
2127 # Tests whether HEADER exists and can be compiled using the include files in
2128 # INCLUDES, setting the cache variable VAR accordingly.
2129 ac_fn_c_check_header_compile
()
2131 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135 $as_echo_n "(cached) " >&6
2137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2142 if ac_fn_c_try_compile
"$LINENO"; then :
2147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2154 } # ac_fn_c_check_header_compile
2156 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2157 # --------------------------------------------
2158 # Tries to find the compile-time value of EXPR in a program that includes
2159 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2161 ac_fn_c_compute_int
()
2163 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2164 if test "$cross_compiling" = yes; then
2165 # Depending upon the size, compute the lo and hi bounds.
2166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2172 static int test_array [1 - 2 * !(($2) >= 0)];
2179 if ac_fn_c_try_compile
"$LINENO"; then :
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 if ac_fn_c_try_compile
"$LINENO"; then :
2196 ac_hi
=$ac_mid; break
2198 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2199 if test $ac_lo -le $ac_mid; then
2203 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2214 static int test_array [1 - 2 * !(($2) < 0)];
2221 if ac_fn_c_try_compile
"$LINENO"; then :
2224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2230 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2237 if ac_fn_c_try_compile
"$LINENO"; then :
2238 ac_lo
=$ac_mid; break
2240 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2241 if test $ac_mid -le $ac_hi; then
2245 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2255 # Binary search between lo and hi bounds.
2256 while test "x$ac_lo" != "x$ac_hi"; do
2257 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2271 if ac_fn_c_try_compile
"$LINENO"; then :
2274 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2279 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2286 static long int longval () { return $2; }
2287 static unsigned long int ulongval () { return $2; }
2294 FILE *f = fopen ("conftest.val", "w");
2299 long int i = longval ();
2302 fprintf (f, "%ld", i);
2306 unsigned long int i = ulongval ();
2309 fprintf (f, "%lu", i);
2311 /* Do not output a trailing newline, as this causes \r\n confusion
2312 on some platforms. */
2313 return ferror (f) || fclose (f) != 0;
2319 if ac_fn_c_try_run
"$LINENO"; then :
2320 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2324 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2325 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2332 } # ac_fn_c_compute_int
2334 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2335 # -------------------------------------------
2336 # Tests whether TYPE exists after having included INCLUDES, setting cache
2337 # variable VAR accordingly.
2338 ac_fn_c_check_type
()
2340 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2359 if ac_fn_c_try_compile
"$LINENO"; then :
2360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2372 if ac_fn_c_try_compile
"$LINENO"; then :
2377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2386 } # ac_fn_c_check_type
2388 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2389 # ----------------------------------------------
2390 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2391 ac_fn_c_check_header_preproc
()
2393 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2395 $as_echo_n "checking for $2... " >&6; }
2396 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2397 $as_echo_n "(cached) " >&6
2399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2403 if ac_fn_c_try_cpp
"$LINENO"; then :
2408 rm -f conftest.err conftest.
$ac_ext
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412 $as_echo "$ac_res" >&6; }
2413 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2415 } # ac_fn_c_check_header_preproc
2417 # ac_fn_c_try_link LINENO
2418 # -----------------------
2419 # Try to link conftest.$ac_ext, and return whether this succeeded.
2422 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2423 rm -f conftest.
$ac_objext conftest
$ac_exeext
2424 if { { ac_try
="$ac_link"
2426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2430 $as_echo "$ac_try_echo"; } >&5
2431 (eval "$ac_link") 2>conftest.err
2433 if test -s conftest.err; then
2434 grep -v '^ *+' conftest.err >conftest.er1
2435 cat conftest.er1 >&5
2436 mv -f conftest.er1 conftest.err
2438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2439 test $ac_status = 0; } && {
2440 test -z "$ac_c_werror_flag" ||
2441 test ! -s conftest.err
2442 } && test -s conftest$ac_exeext && {
2443 test "$cross_compiling" = yes ||
2444 $as_test_x conftest$ac_exeext
2448 $as_echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2453 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2454 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2455 # interfere with the next link command; also delete a directory that is
2456 # left behind by Apple's compiler. We do this before executing the actions.
2457 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2458 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 } # ac_fn_c_try_link
2463 # ac_fn_c_check_func LINENO FUNC VAR
2464 # ----------------------------------
2465 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2466 ac_fn_c_check_func ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2470 $as_echo_n "checking for $2... " >&6; }
2471 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2472 $as_echo_n "(cached) " >&6
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2476 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2478 #define $2 innocuous_$2
2480 /* System header to define __stub macros and hopefully few prototypes,
2481 which can conflict with char $2 (); below.
2482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2483 <limits.h> exists even on freestanding compilers. */
2486 # include <limits.h>
2488 # include <assert.h>
2493 /* Override any GCC internal prototype to avoid an error.
2494 Use char because int might match the return type of a GCC
2495 builtin and then its argument prototype would still apply. */
2500 /* The GNU C library defines this for functions which it implements
2501 to always fail with ENOSYS. Some functions are actually named
2502 something starting with __ and the normal name is an alias. */
2503 #if defined __stub_$2 || defined __stub___$2
2515 if ac_fn_c_try_link "$LINENO"; then :
2520 rm -f core conftest.err conftest.$ac_objext \
2521 conftest$ac_exeext conftest.$ac_ext
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525 $as_echo "$ac_res" >&6; }
2526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2528 } # ac_fn_c_check_func
2530 # ac_fn_cxx_try_cpp LINENO
2531 # ------------------------
2532 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2533 ac_fn_cxx_try_cpp ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 if { { ac_try="$ac_cpp conftest.$ac_ext"
2538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2539 *) ac_try_echo
=$ac_try;;
2541 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2542 $as_echo "$ac_try_echo"; } >&5
2543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2545 if test -s conftest.err
; then
2546 grep -v '^ *+' conftest.err
>conftest.er1
2547 cat conftest.er1
>&5
2548 mv -f conftest.er1 conftest.err
2550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2551 test $ac_status = 0; } >/dev
/null
&& {
2552 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2553 test ! -s conftest.err
2557 $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.
$ac_ext >&5
2562 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2565 } # ac_fn_cxx_try_cpp
2567 # ac_fn_cxx_try_link LINENO
2568 # -------------------------
2569 # Try to link conftest.$ac_ext, and return whether this succeeded.
2570 ac_fn_cxx_try_link
()
2572 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2573 rm -f conftest.
$ac_objext conftest
$ac_exeext
2574 if { { ac_try
="$ac_link"
2576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_link") 2>conftest.err
2583 if test -s conftest.err; then
2584 grep -v '^ *+' conftest.err >conftest.er1
2585 cat conftest.er1 >&5
2586 mv -f conftest.er1 conftest.err
2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589 test $ac_status = 0; } && {
2590 test -z "$ac_cxx_werror_flag" ||
2591 test ! -s conftest.err
2592 } && test -s conftest$ac_exeext && {
2593 test "$cross_compiling" = yes ||
2594 $as_test_x conftest$ac_exeext
2598 $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2605 # interfere with the next link command; also delete a directory that is
2606 # left behind by Apple's compiler. We do this before executing the actions.
2607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611 } # ac_fn_cxx_try_link
2612 cat >config.log <<_ACEOF
2613 This file contains any messages produced by compilers while
2614 running configure, to aid debugging if configure makes a mistake.
2616 It was created by $as_me, which was
2617 generated by GNU Autoconf 2.64. Invocation command line was
2629 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2630 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2631 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2632 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2633 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2635 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2636 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2638 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2639 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2640 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2641 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2642 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2643 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2644 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 $as_echo "PATH: $as_dir"
2669 # Keep a trace of the command line.
2670 # Strip out --no-create and --no-recursion so they do not pile up.
2671 # Strip out --silent because we don't want to record it for future runs.
2672 # Also quote any args containing shell meta-characters.
2673 # Make two passes to allow for proper duplicate-argument suppression.
2677 ac_must_keep_next=false
2683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2685 | -silent | --silent | --silen | --sile | --sil)
2688 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2691 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2693 as_fn_append ac_configure_args1 " '$ac_arg'"
2694 if test $ac_must_keep_next = true; then
2695 ac_must_keep_next=false # Got value, back to normal.
2698 *=* | --config-cache | -C | -disable-* | --disable-* \
2699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2701 | -with-* | --with-* | -without-* | --without-* | --x)
2702 case "$ac_configure_args0 " in
2703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2706 -* ) ac_must_keep_next=true ;;
2709 as_fn_append ac_configure_args " '$ac_arg'"
2714 { ac_configure_args0=; unset ac_configure_args0;}
2715 { ac_configure_args1=; unset ac_configure_args1;}
2717 # When interrupted or exit'd, cleanup temporary files, and complete
2718 # config.log. We remove comments because anyway the quotes in there
2719 # would cause problems or look ugly.
2720 # WARNING: Use '\'' to represent an apostrophe within the trap.
2721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2722 trap 'exit_status=$?
2723 # Save into config.log some information that might help in debugging.
2728 ## ---------------- ##
2729 ## Cache variables. ##
2730 ## ---------------- ##
2733 # The following way of writing the cache mishandles newlines in values,
2735 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2736 eval ac_val=\$$ac_var
2740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2744 _ | IFS | as_nl) ;; #(
2745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2746 *) { eval $ac_var=; unset $ac_var;} ;;
2751 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2752 *${as_nl}ac_space=\ *)
2754 "s/'\''/'\''\\\\'\'''\''/g;
2755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2766 ## ----------------- ##
2767 ## Output variables. ##
2768 ## ----------------- ##
2771 for ac_var in $ac_subst_vars
2773 eval ac_val=\$$ac_var
2775 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2777 $as_echo "$ac_var='\''$ac_val'\''"
2781 if test -n "$ac_subst_files"; then
2783 ## ------------------- ##
2784 ## File substitutions. ##
2785 ## ------------------- ##
2788 for ac_var in $ac_subst_files
2790 eval ac_val=\$$ac_var
2792 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2794 $as_echo "$ac_var='\''$ac_val'\''"
2799 if test -s confdefs.h; then
2809 test "$ac_signal" != 0 &&
2810 $as_echo "$as_me: caught signal $ac_signal"
2811 $as_echo "$as_me: exit $exit_status"
2813 rm -f core *.core core.conftest.* &&
2814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2817 for ac_signal in 1 2 13 15; do
2818 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2823 rm -f -r conftest* confdefs.h
2825 $as_echo "/* confdefs.h */" > confdefs.h
2827 # Predefined preprocessor variables.
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_NAME "$PACKAGE_NAME"
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_STRING "$PACKAGE_STRING"
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_URL "$PACKAGE_URL"
2854 # Let the site file select an alternate cache file if it wants to.
2855 # Prefer an explicitly selected file to automatically selected ones.
2858 if test -n "$CONFIG_SITE"; then
2859 ac_site_file1=$CONFIG_SITE
2860 elif test "x$prefix" != xNONE; then
2861 ac_site_file1=$prefix/share/config.site
2862 ac_site_file2=$prefix/etc/config.site
2864 ac_site_file1=$ac_default_prefix/share/config.site
2865 ac_site_file2=$ac_default_prefix/etc/config.site
2867 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2869 test "x$ac_site_file" = xNONE && continue
2870 if test -r "$ac_site_file"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2872 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2873 sed 's/^/| /' "$ac_site_file" >&5
2878 if test -r "$cache_file"; then
2879 # Some versions of bash will fail to source /dev/null (special
2880 # files actually), so we avoid doing that.
2881 if test -f "$cache_file"; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2883 $as_echo "$as_me: loading cache $cache_file" >&6;}
2885 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2886 *) . "./$cache_file";;
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2891 $as_echo "$as_me: creating cache $cache_file" >&6;}
2895 # Check that the precious variables saved in the cache have kept the same
2897 ac_cache_corrupted=false
2898 for ac_var in $ac_precious_vars; do
2899 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2900 eval ac_new_set=\$ac_env_${ac_var}_set
2901 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2902 eval ac_new_val=\$ac_env_${ac_var}_value
2903 case $ac_old_set,$ac_new_set in
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2906 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2907 ac_cache_corrupted=: ;;
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2910 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2911 ac_cache_corrupted=: ;;
2914 if test "x$ac_old_val" != "x$ac_new_val"; then
2915 # differences in whitespace do not lead to failure.
2916 ac_old_val_w=`echo x
$ac_old_val`
2917 ac_new_val_w=`echo x
$ac_new_val`
2918 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2920 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2921 ac_cache_corrupted=:
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2924 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2925 eval $ac_var=\$ac_old_val
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2928 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2930 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2933 # Pass precious variables to config.status.
2934 if test "$ac_new_set" = set; then
2936 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2937 *) ac_arg=$ac_var=$ac_new_val ;;
2939 case " $ac_configure_args " in
2940 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2941 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2945 if $ac_cache_corrupted; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2949 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2950 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2952 ## -------------------- ##
2953 ## Main body of script. ##
2954 ## -------------------- ##
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2970 gcc_version=`cat $srcdir/BASE-VER
`
2972 # Determine the host, build, and target systems
2974 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2975 for ac_t in install-sh install.sh shtool; do
2976 if test -f "$ac_dir/$ac_t"; then
2978 ac_install_sh="$ac_aux_dir/$ac_t -c"
2983 if test -z "$ac_aux_dir"; then
2984 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2987 # These three variables are undocumented and unsupported,
2988 # and are intended to be withdrawn in a future Autoconf release.
2989 # They can cause serious problems if a builder's source tree is in a directory
2990 # whose full name contains unusual characters.
2991 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2992 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2993 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2996 # Make sure we can run config.sub.
2997 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2998 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3001 $as_echo_n "checking build system type... " >&6; }
3002 if test "${ac_cv_build+set}" = set; then :
3003 $as_echo_n "(cached) " >&6
3005 ac_build_alias=$build_alias
3006 test "x$ac_build_alias" = x &&
3007 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3008 test "x$ac_build_alias" = x &&
3009 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3011 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3015 $as_echo "$ac_cv_build" >&6; }
3016 case $ac_cv_build in
3018 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3021 ac_save_IFS=$IFS; IFS='-'
3027 # Remember, the first character of IFS is used to create $*,
3028 # except with old shells:
3031 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3035 $as_echo_n "checking host system type... " >&6; }
3036 if test "${ac_cv_host+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3039 if test "x$host_alias" = x; then
3040 ac_cv_host=$ac_cv_build
3042 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3043 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3048 $as_echo "$ac_cv_host" >&6; }
3051 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3054 ac_save_IFS=$IFS; IFS='-'
3060 # Remember, the first character of IFS is used to create $*,
3061 # except with old shells:
3064 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3068 $as_echo_n "checking target system type... " >&6; }
3069 if test "${ac_cv_target+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3072 if test "x$target_alias" = x; then
3073 ac_cv_target=$ac_cv_host
3075 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3076 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3081 $as_echo "$ac_cv_target" >&6; }
3082 case $ac_cv_target in
3084 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3086 target=$ac_cv_target
3087 ac_save_IFS=$IFS; IFS='-'
3093 # Remember, the first character of IFS is used to create $*,
3094 # except with old shells:
3097 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3100 # The aliases save the names the user supplied, while $host etc.
3101 # will get canonicalized.
3102 test -n "$target_alias" &&
3103 test "$program_prefix$program_suffix$program_transform_name" = \
3105 program_prefix=${target_alias}-
3107 # Determine the noncanonical target name, for directory use.
3108 case ${build_alias} in
3109 "") build_noncanonical=${build} ;;
3110 *) build_noncanonical=${build_alias} ;;
3113 case ${host_alias} in
3114 "") host_noncanonical=${build_noncanonical} ;;
3115 *) host_noncanonical=${host_alias} ;;
3118 case ${target_alias} in
3119 "") target_noncanonical=${host_noncanonical} ;;
3120 *) target_noncanonical=${target_alias} ;;
3126 # Determine the target- and build-specific subdirectories
3128 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3129 # have matching libraries, they should use host libraries: Makefile.tpl
3130 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3131 # However, they still use the build modules, because the corresponding
3132 # host modules (e.g. bison) are only built for the host when bootstrap
3134 # - build_subdir is where we find build modules, and never changes.
3135 # - build_libsubdir is where we find build libraries, and can be overridden.
3137 # Prefix 'build-' so this never conflicts with target_subdir.
3138 build_subdir="build-${build_noncanonical}"
3140 # Check whether --with-build-libsubdir was given.
3141 if test "${with_build_libsubdir+set}" = set; then :
3142 withval=$with_build_libsubdir; build_libsubdir="$withval"
3144 build_libsubdir="$build_subdir"
3147 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3148 if ( test $srcdir = . && test -d gcc ) \
3149 || test -d $srcdir/../host-${host_noncanonical}; then
3150 host_subdir="host-${host_noncanonical}"
3155 target_subdir=${target_noncanonical}
3158 # Set program_transform_name
3159 test "$program_prefix" != NONE &&
3160 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3161 # Use a double $ so make ignores it.
3162 test "$program_suffix" != NONE &&
3163 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3164 # Double any \ or $.
3165 # By default was `s
,x
,x
', remove it if useless.
3166 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3167 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3170 # Check for bogus environment variables.
3171 # Test if LIBRARY_PATH contains the notation for the current directory
3172 # since this would lead to problems installing/building glibc.
3173 # LIBRARY_PATH contains the current directory if one of the following
3175 # - one of the terminals (":" and ";") is the first or last sign
3176 # - two terminals occur directly after each other
3177 # - the path contains an element with a dot in it
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3179 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3180 case ${LIBRARY_PATH} in
3181 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3182 library_path_setting="contains current directory"
3185 library_path_setting="ok"
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3189 $as_echo "$library_path_setting" >&6; }
3190 if test "$library_path_setting" != "ok"; then
3192 *** LIBRARY_PATH shouldn't contain the current directory when
3193 *** building gcc. Please change the environment variable
3194 *** and run configure again.
" "$LINENO" 5
3197 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3198 # since this would lead to problems installing/building glibc.
3199 # GCC_EXEC_PREFIX contains the current directory if one of the following
3201 # - one of the terminals (":" and ";") is the first or last sign
3202 # - two terminals occur directly after each other
3203 # - the path contains an element with a dot in it
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3205 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3206 case ${GCC_EXEC_PREFIX} in
3207 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3208 gcc_exec_prefix_setting="contains current directory
"
3211 gcc_exec_prefix_setting="ok
"
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3215 $as_echo "$gcc_exec_prefix_setting" >&6; }
3216 if test "$gcc_exec_prefix_setting" != "ok
"; then
3218 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3219 *** building gcc. Please change the environment variable
3220 *** and run configure again." "$LINENO" 5
3227 # Specify the local prefix
3230 # Check whether --with-local-prefix was given.
3231 if test "${with_local_prefix+set}" = set; then :
3232 withval=$with_local_prefix; case "${withval}" in
3233 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3235 *) local_prefix=$with_local_prefix ;;
3240 # Default local prefix if it is empty
3241 if test x$local_prefix = x; then
3242 local_prefix=/usr/local
3245 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3246 # passed in by the toplevel make and thus we'd get different behavior
3247 # depending on where we built the sources.
3248 gcc_gxx_include_dir
=
3249 # Specify the g++ header file directory
3251 # Check whether --with-gxx-include-dir was given.
3252 if test "${with_gxx_include_dir+set}" = set; then :
3253 withval
=$with_gxx_include_dir; case "${withval}" in
3254 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3256 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3261 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3262 if test x
${gcc_gxx_include_dir} = x
; then
3263 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3264 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3266 libstdcxx_incdir
='include/c++/$(version)'
3267 if test x
$host != x
$target; then
3268 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3270 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3275 # Check whether --with-cpp_install_dir was given.
3276 if test "${with_cpp_install_dir+set}" = set; then :
3277 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3278 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3279 elif test x
$withval != xno
; then
3280 cpp_install_dir
=$withval
3285 # We would like to our source tree to be readonly. However when releases or
3286 # pre-releases are generated, the flex/bison generated files as well as the
3287 # various formats of manuals need to be included along with the rest of the
3288 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3292 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3293 # Check whether --enable-generated-files-in-srcdir was given.
3294 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3295 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3297 generated_files_in_srcdir
=no
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3302 $as_echo "$generated_files_in_srcdir" >&6; }
3304 if test "$generated_files_in_srcdir" = "yes"; then
3311 # -------------------
3312 # Find default linker
3313 # -------------------
3317 # Check whether --with-gnu-ld was given.
3318 if test "${with_gnu_ld+set}" = set; then :
3319 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3325 # With pre-defined ld
3327 # Check whether --with-ld was given.
3328 if test "${with_ld+set}" = set; then :
3329 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3332 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3333 if test ! -x "$DEFAULT_LINKER"; then
3334 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3335 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3339 cat >>confdefs.h
<<_ACEOF
3340 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3345 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3347 cat >>confdefs.h
<<_ACEOF
3348 #define HAVE_GNU_LD $gnu_ld
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3353 $as_echo_n "checking whether a default linker was specified... " >&6; }
3354 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3355 if test x
"$gnu_ld_flag" = x
"no"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3357 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3360 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3367 # With demangler in GNU ld
3369 # Check whether --with-demangler-in-ld was given.
3370 if test "${with_demangler_in_ld+set}" = set; then :
3371 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3377 # ----------------------
3378 # Find default assembler
3379 # ----------------------
3383 # Check whether --with-gnu-as was given.
3384 if test "${with_gnu_as+set}" = set; then :
3385 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3392 # Check whether --with-as was given.
3393 if test "${with_as+set}" = set; then :
3394 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3397 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3398 if test ! -x "$DEFAULT_ASSEMBLER"; then
3399 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3400 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3404 cat >>confdefs.h
<<_ACEOF
3405 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3410 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3412 cat >>confdefs.h
<<_ACEOF
3413 #define HAVE_GNU_AS $gnu_as
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3418 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3419 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3420 if test x
"$gas_flag" = x
"no"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3422 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3425 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3436 # If a non-executable a.out is present (e.g. created by GNU as above even if
3437 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3438 # file, even when creating an executable, so an execution test fails.
3439 # Remove possible default executable files to avoid this.
3441 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3442 # Autoconf includes it.
3443 rm -f a.out a.exe b.out
3445 # Find the native compiler
3447 ac_cpp
='$CPP $CPPFLAGS'
3448 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3453 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC
="$CC" # Let the user override the test.
3462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir
=.
3467 for ac_exec_ext
in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3490 if test -z "$ac_cv_prog_CC"; then
3492 # Extract the first word of "gcc", so it can be a program name with args.
3493 set dummy gcc
; ac_word
=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir
=.
3507 for ac_exec_ext
in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_CC
="gcc"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3528 if test "x$ac_ct_CC" = x
; then
3531 case $cross_compiling:$ac_tool_warned in
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535 ac_tool_warned
=yes ;;
3543 if test -z "$CC"; then
3544 if test -n "$ac_tool_prefix"; then
3545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3546 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_CC+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC
="$CC" # Let the user override the test.
3555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir
=.
3560 for ac_exec_ext
in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 if test -n "$CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 $as_echo "$CC" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3584 if test -z "$CC"; then
3585 # Extract the first word of "cc", so it can be a program name with args.
3586 set dummy cc
; ac_word
=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC
="$CC" # Let the user override the test.
3596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir
=.
3601 for ac_exec_ext
in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3604 ac_prog_rejected
=yes
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 if test $ac_prog_rejected = yes; then
3616 # We found a bogon in the path, so make sure we never use it.
3617 set dummy
$ac_cv_prog_CC
3619 if test $# != 0; then
3620 # We chose a different compiler from the bogus one.
3621 # However, it has the same basename, so the bogon will be chosen
3622 # first if we set CC to just the basename; use the full file name.
3624 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 for ac_prog
in cl.exe
3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC
="$CC" # Let the user override the test.
3654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir
=.
3659 for ac_exec_ext
in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$CC" && break
3684 if test -z "$CC"; then
3686 for ac_prog
in cl.exe
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy
$ac_prog; ac_word
=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3695 if test -n "$ac_ct_CC"; then
3696 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir
=.
3703 for ac_exec_ext
in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_ac_ct_CC
="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3716 if test -n "$ac_ct_CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3718 $as_echo "$ac_ct_CC" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$ac_ct_CC" && break
3728 if test "x$ac_ct_CC" = x
; then
3731 case $cross_compiling:$ac_tool_warned in
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned
=yes ;;
3744 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error
"no acceptable C compiler found in \$PATH
3747 See \`config.log' for more details." "$LINENO" 5; }
3749 # Provide some information about the compiler.
3750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3753 for ac_option
in --version -v -V -qversion; do
3754 { { ac_try
="$ac_compiler $ac_option >&5"
3756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3763 if test -s conftest.err; then
3765 ... rest of stderr output deleted ...
3766 10q' conftest.err >conftest.er1
3767 cat conftest.er1 >&5
3768 rm -f conftest.er1 conftest.err
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3785 ac_clean_files_save=$ac_clean_files
3786 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3787 # Try to create an executable without -o first, disregard a.out.
3788 # It will help us diagnose broken compilers, and finding out an intuition
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3791 $as_echo_n "checking for C compiler default output file name... " >&6; }
3792 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3794 # The possible output files:
3795 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3798 for ac_file in $ac_files
3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3802 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3807 if { { ac_try="$ac_link_default"
3809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3810 *) ac_try_echo
=$ac_try;;
3812 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_link_default") 2>&5
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; then :
3818 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3819 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3820 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3821 # so that the user can short-circuit this test for compilers unknown to
3823 for ac_file
in $ac_files ''
3825 test -f "$ac_file" ||
continue
3827 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3830 # We found the default executable, but exeext='' is most
3834 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3836 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838 # We set ac_cv_exeext here because the later test for it is not
3839 # safe: cross compilers may not add the suffix if given an `-o'
3840 # argument, so we may need to know it at that point already.
3841 # Even if this section looks crufty: it has the advantage of
3848 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3854 $as_echo "$ac_file" >&6; }
3855 if test -z "$ac_file"; then :
3856 $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.
$ac_ext >&5
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 { as_fn_set_status
77
3862 as_fn_error
"C compiler cannot create executables
3863 See \`config.log' for more details." "$LINENO" 5; }; }
3865 ac_exeext
=$ac_cv_exeext
3867 # Check that the compiler produces executables we can run. If not, either
3868 # the compiler is broken, or we cross compile.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3870 $as_echo_n "checking whether the C compiler works... " >&6; }
3871 # If not cross compiling, check that we can run a simple program.
3872 if test "$cross_compiling" != yes; then
3873 if { ac_try
='./$ac_file'
3874 { { case "(($ac_try" in
3875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_try") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; }; then
3886 if test "$cross_compiling" = maybe; then
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error "cannot run C compiled programs.
3892 If you meant to cross compile
, use \
`--host'.
3893 See \`config.log
' for more details." "$LINENO" 5; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3898 $as_echo "yes" >&6; }
3900 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3901 ac_clean_files=$ac_clean_files_save
3902 # Check that the compiler produces executables we can run. If not, either
3903 # the compiler is broken, or we cross compile.
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3905 $as_echo_n "checking whether we are cross compiling... " >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3907 $as_echo "$cross_compiling" >&6; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3910 $as_echo_n "checking for suffix of executables... " >&6; }
3911 if { { ac_try="$ac_link"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_link") 2>&5
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; then :
3922 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3923 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3924 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3926 for ac_file
in conftest.exe conftest conftest.
*; do
3927 test -f "$ac_file" ||
continue
3929 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3930 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3939 See \`config.log' for more details." "$LINENO" 5; }
3941 rm -f conftest
$ac_cv_exeext
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3943 $as_echo "$ac_cv_exeext" >&6; }
3945 rm -f conftest.
$ac_ext
3946 EXEEXT
=$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949 $as_echo_n "checking for suffix of object files... " >&6; }
3950 if test "${ac_cv_objext+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 rm -f conftest.o conftest.obj
3965 if { { ac_try
="$ac_compile"
3967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_compile") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 for ac_file in conftest.o conftest.obj conftest.*; do
3977 test -f "$ac_file" || continue;
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error "cannot compute suffix of object files
: cannot compile
3991 See \
`config.log' for more details." "$LINENO" 5; }
3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996 $as_echo "$ac_cv_objext" >&6; }
3997 OBJEXT=$ac_cv_objext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4018 if ac_fn_c_try_compile "$LINENO"; then :
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4034 ac_test_CFLAGS=${CFLAGS+set}
4035 ac_save_CFLAGS=$CFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4038 if test "${ac_cv_prog_cc_g+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4041 ac_save_c_werror_flag=$ac_c_werror_flag
4042 ac_c_werror_flag=yes
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"; then :
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4071 if ac_fn_c_try_compile "$LINENO"; then :
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 if ac_fn_c_try_compile "$LINENO"; then :
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098 $as_echo "$ac_cv_prog_cc_g" >&6; }
4099 if test "$ac_test_CFLAGS" = set; then
4100 CFLAGS=$ac_save_CFLAGS
4101 elif test $ac_cv_prog_cc_g = yes; then
4102 if test "$GCC" = yes; then
4108 if test "$GCC" = yes; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4119 ac_cv_prog_cc_c89=no
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4125 #include <sys/types.h>
4126 #include <sys/stat.h>
4127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4128 struct buf { int x; };
4129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4130 static char *e (p, i)
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4141 s = g (p, va_arg (v,int));
4146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4147 function prototypes and stuff, but not '\xHH' hex character constants.
4148 These don't provoke an error unfortunately, instead are silently treated
4149 as 'x'. The following induces an error, until -std is added to get
4150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4151 array size at least. It's necessary to write '\x00'==0 to get something
4152 that's true only with -std. */
4153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4156 inside strings and character constants. */
4158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4160 int test (int i, double x);
4161 struct s1 {int (*f) (int a);};
4162 struct s2 {int (*f) (double a);};
4163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4177 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_c89=$ac_arg
4181 rm -f core conftest.err conftest.$ac_objext
4182 test "x$ac_cv_prog_cc_c89" != "xno" && break
4184 rm -f conftest.$ac_ext
4189 case "x$ac_cv_prog_cc_c89" in
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192 $as_echo "none needed" >&6; } ;;
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 $as_echo "unsupported" >&6; } ;;
4197 CC="$CC $ac_cv_prog_cc_c89"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4201 if test "x$ac_cv_prog_cc_c89" != xno; then :
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211 if test "x$CC" != xcc; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4213 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4216 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4218 set dummy $CC; ac_cc=`$as_echo "$2" |
4219 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4220 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4221 $as_echo_n "(cached) " >&6
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4234 # Make sure it works both with $CC and with simple cc.
4235 # We do the test twice because some compilers refuse to overwrite an
4236 # existing .o file with -o, though they will create one.
4237 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4239 if { { case "(($ac_try" in
4240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4241 *) ac_try_echo
=$ac_try;;
4243 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4244 $as_echo "$ac_try_echo"; } >&5
4245 (eval "$ac_try") 2>&5
4247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248 test $ac_status = 0; } &&
4249 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 $as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_try") 2>&5
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; };
4260 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4261 if test "x$CC" != xcc; then
4262 # Test first that cc exists at all.
4263 if { ac_try='cc -c conftest.$ac_ext >&5'
4264 { { case "(($ac_try" in
4265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4266 *) ac_try_echo
=$ac_try;;
4268 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 $as_echo "$ac_try_echo"; } >&5
4270 (eval "$ac_try") 2>&5
4272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }; }; then
4274 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4276 if { { case "(($ac_try" in
4277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282 (eval "$ac_try") 2>&5
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; } &&
4286 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4288 *) ac_try_echo
=$ac_try;;
4290 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_try") 2>&5
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; };
4300 # cc exists but doesn't like -o.
4301 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4306 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4308 rm -f core conftest
*
4311 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4313 $as_echo "yes" >&6; }
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4318 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4322 # expand $ac_aux_dir to an absolute path
4323 am_aux_dir
=`cd $ac_aux_dir && pwd`
4325 # FIXME: we rely on the cache variable name because
4326 # there is no other way.
4328 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4329 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4330 if test "$am_t" != yes; then
4331 # Losing compiler, so override with the script.
4332 # FIXME: It is wrong to rewrite CC.
4333 # But if we don't then we get into trouble of one sort or another.
4334 # A longer-term fix would be to have automake use am__CC in this case,
4335 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4336 CC
="$am_aux_dir/compile $CC"
4341 ac_cpp
='$CXXCPP $CPPFLAGS'
4342 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4345 if test -z "$CXX"; then
4346 if test -n "$CCC"; then
4349 if test -n "$ac_tool_prefix"; then
4350 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4353 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if test "${ac_cv_prog_CXX+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4359 if test -n "$CXX"; then
4360 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir
=.
4367 for ac_exec_ext
in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 if test -n "$CXX"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4382 $as_echo "$CXX" >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4389 test -n "$CXX" && break
4392 if test -z "$CXX"; then
4394 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4396 # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy
$ac_prog; ac_word
=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4403 if test -n "$ac_ct_CXX"; then
4404 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir
=.
4411 for ac_exec_ext
in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4424 if test -n "$ac_ct_CXX"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4426 $as_echo "$ac_ct_CXX" >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4433 test -n "$ac_ct_CXX" && break
4436 if test "x$ac_ct_CXX" = x
; then
4439 case $cross_compiling:$ac_tool_warned in
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4443 ac_tool_warned
=yes ;;
4451 # Provide some information about the compiler.
4452 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4455 for ac_option
in --version -v -V -qversion; do
4456 { { ac_try
="$ac_compiler $ac_option >&5"
4458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4465 if test -s conftest.err; then
4467 ... rest of stderr output deleted ...
4468 10q' conftest.err >conftest.er1
4469 cat conftest.er1 >&5
4470 rm -f conftest.er1 conftest.err
4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4477 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4478 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4495 if ac_fn_cxx_try_compile "$LINENO"; then :
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4505 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4506 if test $ac_compiler_gnu = yes; then
4511 ac_test_CXXFLAGS=${CXXFLAGS+set}
4512 ac_save_CXXFLAGS=$CXXFLAGS
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4514 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4515 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4518 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4519 ac_cxx_werror_flag=yes
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4533 if ac_fn_cxx_try_compile "$LINENO"; then :
4534 ac_cv_prog_cxx_g=yes
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4548 if ac_fn_cxx_try_compile "$LINENO"; then :
4551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4564 if ac_fn_cxx_try_compile "$LINENO"; then :
4565 ac_cv_prog_cxx_g=yes
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4575 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4576 if test "$ac_test_CXXFLAGS" = set; then
4577 CXXFLAGS=$ac_save_CXXFLAGS
4578 elif test $ac_cv_prog_cxx_g = yes; then
4579 if test "$GXX" = yes; then
4585 if test "$GXX" = yes; then
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 if test -n "$ac_tool_prefix"; then
4601 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4602 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4608 if test -n "$GNATBIND"; then
4609 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 GNATBIND=$ac_cv_prog_GNATBIND
4629 if test -n "$GNATBIND"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4631 $as_echo "$GNATBIND" >&6; }
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4639 if test -z "$ac_cv_prog_GNATBIND"; then
4640 ac_ct_GNATBIND=$GNATBIND
4641 # Extract the first word of "gnatbind", so it can be a program name with args.
4642 set dummy gnatbind; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4648 if test -n "$ac_ct_GNATBIND"; then
4649 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4669 if test -n "$ac_ct_GNATBIND"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4671 $as_echo "$ac_ct_GNATBIND" >&6; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4677 if test "x$ac_ct_GNATBIND" = x; then
4680 case $cross_compiling:$ac_tool_warned in
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4686 GNATBIND=$ac_ct_GNATBIND
4689 GNATBIND="$ac_cv_prog_GNATBIND"
4692 if test -n "$ac_tool_prefix"; then
4693 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4694 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4698 $as_echo_n "(cached) " >&6
4700 if test -n "$GNATMAKE"; then
4701 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 GNATMAKE=$ac_cv_prog_GNATMAKE
4721 if test -n "$GNATMAKE"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4723 $as_echo "$GNATMAKE" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4731 if test -z "$ac_cv_prog_GNATMAKE"; then
4732 ac_ct_GNATMAKE=$GNATMAKE
4733 # Extract the first word of "gnatmake", so it can be a program name with args.
4734 set dummy gnatmake; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4740 if test -n "$ac_ct_GNATMAKE"; then
4741 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4761 if test -n "$ac_ct_GNATMAKE"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4763 $as_echo "$ac_ct_GNATMAKE" >&6; }
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4769 if test "x$ac_ct_GNATMAKE" = x; then
4772 case $cross_compiling:$ac_tool_warned in
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776 ac_tool_warned=yes ;;
4778 GNATMAKE=$ac_ct_GNATMAKE
4781 GNATMAKE="$ac_cv_prog_GNATMAKE"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4785 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4786 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 cat >conftest.adb <<EOF
4790 procedure conftest is begin null; end conftest;
4792 acx_cv_cc_gcc_supports_ada=no
4793 # There is a bug in old released versions of GCC which causes the
4794 # driver to exit successfully when the appropriate language module
4795 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4796 # Therefore we must check for the error message as well as an
4797 # unsuccessful exit.
4798 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4799 # given a .adb file, but produce no object file. So we must check
4800 # if an object file was really produced to guard against this.
4801 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4802 if test x"$errors" = x && test -f conftest.$ac_objext; then
4803 acx_cv_cc_gcc_supports_ada=yes
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4808 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4810 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4817 # autoconf is lame and doesn't give us any substitution variable for this.
4818 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4819 NO_MINUS_C_MINUS_O=yes
4821 OUTPUT_OPTION='-o $@'
4826 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4827 # optimizations to be activated explicitly by the toplevel.
4829 */prev-gcc/xgcc*) ;;
4830 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4834 # -------------------------
4835 # Check C compiler features
4836 # -------------------------
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4845 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4846 # On Suns, sometimes $CPP names a directory.
4847 if test -n "$CPP" && test -d "$CPP"; then
4850 if test -z "$CPP"; then
4851 if test "${ac_cv_prog_CPP+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4854 # Double quotes because CPP needs to be expanded
4855 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4858 for ac_c_preproc_warn_flag in '' yes
4860 # Use a header file that comes with gcc, so configuring glibc
4861 # with a fresh cross-compiler works.
4862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863 # <limits.h> exists even on freestanding compilers.
4864 # On the NeXT, cc -E runs the code through the compiler's parser,
4865 # not just through cpp. "Syntax error" is here to catch this case.
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4869 # include <limits.h>
4871 # include <assert.h>
4875 if ac_fn_c_try_cpp "$LINENO"; then :
4878 # Broken: fails on valid input.
4881 rm -f conftest.err conftest.$ac_ext
4883 # OK, works on sane cases. Now check whether nonexistent headers
4884 # can be detected and how.
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 #include <ac_nonexistent.h>
4889 if ac_fn_c_try_cpp "$LINENO"; then :
4890 # Broken: success on invalid input.
4893 # Passes both tests.
4897 rm -f conftest.err conftest.$ac_ext
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.err conftest.
$ac_ext
4902 if $ac_preproc_ok; then :
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4915 $as_echo "$CPP" >&6; }
4917 for ac_c_preproc_warn_flag
in '' yes
4919 # Use a header file that comes with gcc, so configuring glibc
4920 # with a fresh cross-compiler works.
4921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922 # <limits.h> exists even on freestanding compilers.
4923 # On the NeXT, cc -E runs the code through the compiler's parser,
4924 # not just through cpp. "Syntax error" is here to catch this case.
4925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4928 # include <limits.h>
4930 # include <assert.h>
4934 if ac_fn_c_try_cpp
"$LINENO"; then :
4937 # Broken: fails on valid input.
4940 rm -f conftest.err conftest.
$ac_ext
4942 # OK, works on sane cases. Now check whether nonexistent headers
4943 # can be detected and how.
4944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946 #include <ac_nonexistent.h>
4948 if ac_fn_c_try_cpp
"$LINENO"; then :
4949 # Broken: success on invalid input.
4952 # Passes both tests.
4956 rm -f conftest.err conftest.
$ac_ext
4959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4960 rm -f conftest.err conftest.
$ac_ext
4961 if $ac_preproc_ok; then :
4964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4967 See \`config.log' for more details." "$LINENO" 5; }
4971 ac_cpp
='$CPP $CPPFLAGS'
4972 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4979 if test "${ac_cv_path_GREP+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
4982 if test -z "$GREP"; then
4983 ac_path_GREP_found
=false
4984 # Loop through the user's path and test for each of PROGNAME-LIST
4985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4986 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4989 test -z "$as_dir" && as_dir
=.
4990 for ac_prog
in grep ggrep
; do
4991 for ac_exec_ext
in '' $ac_executable_extensions; do
4992 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4994 # Check for GNU ac_path_GREP and select it if it is found.
4995 # Check for GNU $ac_path_GREP
4996 case `"$ac_path_GREP" --version 2>&1` in
4998 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5001 $as_echo_n 0123456789 >"conftest.in"
5004 cat "conftest.in" "conftest.in" >"conftest.tmp"
5005 mv "conftest.tmp" "conftest.in"
5006 cp "conftest.in" "conftest.nl"
5007 $as_echo 'GREP' >> "conftest.nl"
5008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5009 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5010 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5012 # Best one so far, save it but keep looking for a better one
5013 ac_cv_path_GREP
="$ac_path_GREP"
5014 ac_path_GREP_max
=$ac_count
5016 # 10*(2^10) chars as input seems more than enough
5017 test $ac_count -gt 10 && break
5019 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5022 $ac_path_GREP_found && break 3
5027 if test -z "$ac_cv_path_GREP"; then
5028 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5031 ac_cv_path_GREP
=$GREP
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5036 $as_echo "$ac_cv_path_GREP" >&6; }
5037 GREP
="$ac_cv_path_GREP"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5041 $as_echo_n "checking for egrep... " >&6; }
5042 if test "${ac_cv_path_EGREP+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5045 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5046 then ac_cv_path_EGREP
="$GREP -E"
5048 if test -z "$EGREP"; then
5049 ac_path_EGREP_found
=false
5050 # Loop through the user's path and test for each of PROGNAME-LIST
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5052 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_prog
in egrep; do
5057 for ac_exec_ext
in '' $ac_executable_extensions; do
5058 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5059 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5060 # Check for GNU ac_path_EGREP and select it if it is found.
5061 # Check for GNU $ac_path_EGREP
5062 case `"$ac_path_EGREP" --version 2>&1` in
5064 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5067 $as_echo_n 0123456789 >"conftest.in"
5070 cat "conftest.in" "conftest.in" >"conftest.tmp"
5071 mv "conftest.tmp" "conftest.in"
5072 cp "conftest.in" "conftest.nl"
5073 $as_echo 'EGREP' >> "conftest.nl"
5074 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5075 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5076 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5077 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5078 # Best one so far, save it but keep looking for a better one
5079 ac_cv_path_EGREP
="$ac_path_EGREP"
5080 ac_path_EGREP_max
=$ac_count
5082 # 10*(2^10) chars as input seems more than enough
5083 test $ac_count -gt 10 && break
5085 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5088 $ac_path_EGREP_found && break 3
5093 if test -z "$ac_cv_path_EGREP"; then
5094 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5097 ac_cv_path_EGREP
=$EGREP
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5103 $as_echo "$ac_cv_path_EGREP" >&6; }
5104 EGREP
="$ac_cv_path_EGREP"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5108 $as_echo_n "checking for ANSI C header files... " >&6; }
5109 if test "${ac_cv_header_stdc+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5127 if ac_fn_c_try_compile
"$LINENO"; then :
5128 ac_cv_header_stdc
=yes
5130 ac_cv_header_stdc
=no
5132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5134 if test $ac_cv_header_stdc = yes; then
5135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5142 $EGREP "memchr" >/dev
/null
2>&1; then :
5145 ac_cv_header_stdc
=no
5151 if test $ac_cv_header_stdc = yes; then
5152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "free" >/dev
/null
2>&1; then :
5162 ac_cv_header_stdc
=no
5168 if test $ac_cv_header_stdc = yes; then
5169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5170 if test "$cross_compiling" = yes; then :
5173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5177 #if ((' ' & 0x0FF) == 0x020)
5178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5181 # define ISLOWER(c) \
5182 (('a' <= (c) && (c) <= 'i') \
5183 || ('j' <= (c) && (c) <= 'r') \
5184 || ('s' <= (c) && (c) <= 'z'))
5185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5193 for (i = 0; i < 256; i++)
5194 if (XOR (islower (i), ISLOWER (i))
5195 || toupper (i) != TOUPPER (i))
5200 if ac_fn_c_try_run
"$LINENO"; then :
5203 ac_cv_header_stdc
=no
5205 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5206 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5212 $as_echo "$ac_cv_header_stdc" >&6; }
5213 if test $ac_cv_header_stdc = yes; then
5215 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5220 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5221 inttypes.h stdint.h unistd.h
5223 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5224 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5226 eval as_val
=\$
$as_ac_Header
5227 if test "x$as_val" = x
""yes; then :
5228 cat >>confdefs.h
<<_ACEOF
5229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5239 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5246 if test "$MINIX" = yes; then
5248 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5251 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5254 $as_echo "#define _MINIX 1" >>confdefs.h
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5260 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5261 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5267 # define __EXTENSIONS__ 1
5268 $ac_includes_default
5277 if ac_fn_c_try_compile
"$LINENO"; then :
5278 ac_cv_safe_to_define___extensions__
=yes
5280 ac_cv_safe_to_define___extensions__
=no
5282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5285 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5286 test $ac_cv_safe_to_define___extensions__ = yes &&
5287 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5289 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5291 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5293 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5295 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5299 ac_cpp
='$CPP $CPPFLAGS'
5300 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5305 # On Suns, sometimes $CPP names a directory.
5306 if test -n "$CPP" && test -d "$CPP"; then
5309 if test -z "$CPP"; then
5310 if test "${ac_cv_prog_CPP+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5313 # Double quotes because CPP needs to be expanded
5314 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5317 for ac_c_preproc_warn_flag
in '' yes
5319 # Use a header file that comes with gcc, so configuring glibc
5320 # with a fresh cross-compiler works.
5321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5322 # <limits.h> exists even on freestanding compilers.
5323 # On the NeXT, cc -E runs the code through the compiler's parser,
5324 # not just through cpp. "Syntax error" is here to catch this case.
5325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5328 # include <limits.h>
5330 # include <assert.h>
5334 if ac_fn_c_try_cpp
"$LINENO"; then :
5337 # Broken: fails on valid input.
5340 rm -f conftest.err conftest.
$ac_ext
5342 # OK, works on sane cases. Now check whether nonexistent headers
5343 # can be detected and how.
5344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #include <ac_nonexistent.h>
5348 if ac_fn_c_try_cpp
"$LINENO"; then :
5349 # Broken: success on invalid input.
5352 # Passes both tests.
5356 rm -f conftest.err conftest.
$ac_ext
5359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5360 rm -f conftest.err conftest.
$ac_ext
5361 if $ac_preproc_ok; then :
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5374 $as_echo "$CPP" >&6; }
5376 for ac_c_preproc_warn_flag
in '' yes
5378 # Use a header file that comes with gcc, so configuring glibc
5379 # with a fresh cross-compiler works.
5380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381 # <limits.h> exists even on freestanding compilers.
5382 # On the NeXT, cc -E runs the code through the compiler's parser,
5383 # not just through cpp. "Syntax error" is here to catch this case.
5384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5387 # include <limits.h>
5389 # include <assert.h>
5393 if ac_fn_c_try_cpp
"$LINENO"; then :
5396 # Broken: fails on valid input.
5399 rm -f conftest.err conftest.
$ac_ext
5401 # OK, works on sane cases. Now check whether nonexistent headers
5402 # can be detected and how.
5403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <ac_nonexistent.h>
5407 if ac_fn_c_try_cpp
"$LINENO"; then :
5408 # Broken: success on invalid input.
5411 # Passes both tests.
5415 rm -f conftest.err conftest.
$ac_ext
5418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5419 rm -f conftest.err conftest.
$ac_ext
5420 if $ac_preproc_ok; then :
5423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5425 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5426 See \`config.log' for more details." "$LINENO" 5; }
5430 ac_cpp
='$CPP $CPPFLAGS'
5431 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5436 $as_echo_n "checking for inline... " >&6; }
5437 if test "${ac_cv_c_inline+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5441 for ac_kw
in inline __inline__ __inline
; do
5442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5446 static $ac_kw foo_t static_foo () {return 0; }
5447 $ac_kw foo_t foo () {return 0; }
5451 if ac_fn_c_try_compile
"$LINENO"; then :
5452 ac_cv_c_inline
=$ac_kw
5454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5455 test "$ac_cv_c_inline" != no
&& break
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5460 $as_echo "$ac_cv_c_inline" >&6; }
5462 case $ac_cv_c_inline in
5465 case $ac_cv_c_inline in
5467 *) ac_val
=$ac_cv_c_inline;;
5469 cat >>confdefs.h
<<_ACEOF
5471 #define inline $ac_val
5478 # sizeof(char) is 1 by definition.
5479 # The cast to long int works around a bug in the HP C Compiler
5480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5482 # This bug is HP SR number 8606223364.
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5484 $as_echo_n "checking size of void *... " >&6; }
5485 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5488 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5491 if test "$ac_cv_type_void_p" = yes; then
5492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5494 { as_fn_set_status
77
5495 as_fn_error
"cannot compute sizeof (void *)
5496 See \`config.log' for more details." "$LINENO" 5; }; }
5498 ac_cv_sizeof_void_p
=0
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5504 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5508 cat >>confdefs.h
<<_ACEOF
5509 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5513 # The cast to long int works around a bug in the HP C Compiler
5514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5516 # This bug is HP SR number 8606223364.
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5518 $as_echo_n "checking size of short... " >&6; }
5519 if test "${ac_cv_sizeof_short+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5522 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5525 if test "$ac_cv_type_short" = yes; then
5526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5528 { as_fn_set_status
77
5529 as_fn_error
"cannot compute sizeof (short)
5530 See \`config.log' for more details." "$LINENO" 5; }; }
5532 ac_cv_sizeof_short
=0
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5538 $as_echo "$ac_cv_sizeof_short" >&6; }
5542 cat >>confdefs.h
<<_ACEOF
5543 #define SIZEOF_SHORT $ac_cv_sizeof_short
5547 # The cast to long int works around a bug in the HP C Compiler
5548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5550 # This bug is HP SR number 8606223364.
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5552 $as_echo_n "checking size of int... " >&6; }
5553 if test "${ac_cv_sizeof_int+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5556 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5559 if test "$ac_cv_type_int" = yes; then
5560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5562 { as_fn_set_status
77
5563 as_fn_error
"cannot compute sizeof (int)
5564 See \`config.log' for more details." "$LINENO" 5; }; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5572 $as_echo "$ac_cv_sizeof_int" >&6; }
5576 cat >>confdefs.h
<<_ACEOF
5577 #define SIZEOF_INT $ac_cv_sizeof_int
5581 # The cast to long int works around a bug in the HP C Compiler
5582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5584 # This bug is HP SR number 8606223364.
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5586 $as_echo_n "checking size of long... " >&6; }
5587 if test "${ac_cv_sizeof_long+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5590 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5593 if test "$ac_cv_type_long" = yes; then
5594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5596 { as_fn_set_status
77
5597 as_fn_error
"cannot compute sizeof (long)
5598 See \`config.log' for more details." "$LINENO" 5; }; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5606 $as_echo "$ac_cv_sizeof_long" >&6; }
5610 cat >>confdefs.h
<<_ACEOF
5611 #define SIZEOF_LONG $ac_cv_sizeof_long
5615 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5616 if test "x$ac_cv_type_long_long" = x
""yes; then :
5618 cat >>confdefs.h
<<_ACEOF
5619 #define HAVE_LONG_LONG 1
5622 # The cast to long int works around a bug in the HP C Compiler
5623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5625 # This bug is HP SR number 8606223364.
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5627 $as_echo_n "checking size of long long... " >&6; }
5628 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5631 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5634 if test "$ac_cv_type_long_long" = yes; then
5635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5637 { as_fn_set_status
77
5638 as_fn_error
"cannot compute sizeof (long long)
5639 See \`config.log' for more details." "$LINENO" 5; }; }
5641 ac_cv_sizeof_long_long
=0
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5647 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5651 cat >>confdefs.h
<<_ACEOF
5652 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5658 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5659 if test "x$ac_cv_type___int64" = x
""yes; then :
5661 cat >>confdefs.h
<<_ACEOF
5662 #define HAVE___INT64 1
5665 # The cast to long int works around a bug in the HP C Compiler
5666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5668 # This bug is HP SR number 8606223364.
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5670 $as_echo_n "checking size of __int64... " >&6; }
5671 if test "${ac_cv_sizeof___int64+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5674 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5677 if test "$ac_cv_type___int64" = yes; then
5678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5680 { as_fn_set_status
77
5681 as_fn_error
"cannot compute sizeof (__int64)
5682 See \`config.log' for more details." "$LINENO" 5; }; }
5684 ac_cv_sizeof___int64
=0
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5690 $as_echo "$ac_cv_sizeof___int64" >&6; }
5694 cat >>confdefs.h
<<_ACEOF
5695 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5702 # ---------------------
5703 # Warnings and checking
5704 # ---------------------
5706 # Check $CC warning features (if it's GCC).
5707 # We want to use -pedantic, but we don't want warnings about
5710 # * overlong strings
5711 # So, we only use -pedantic if we can disable those warnings.
5714 save_CFLAGS
="$CFLAGS"
5715 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
5716 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5719 $as_echo_n "checking whether $CC supports $option... " >&6; }
5720 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5721 $as_echo_n "(cached) " >&6
5724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5735 if ac_fn_c_try_compile
"$LINENO"; then :
5736 eval "$as_acx_Woption=yes"
5738 eval "$as_acx_Woption=no"
5740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5743 eval ac_res
=\$
$as_acx_Woption
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5745 $as_echo "$ac_res" >&6; }
5746 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5747 loose_warn
="$loose_warn${loose_warn:+ }$option"
5750 CFLAGS
="$save_CFLAGS"
5753 save_CFLAGS
="$CFLAGS"
5754 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
5755 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5758 $as_echo_n "checking whether $CC supports $option... " >&6; }
5759 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5760 $as_echo_n "(cached) " >&6
5763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5774 if ac_fn_c_try_compile
"$LINENO"; then :
5775 eval "$as_acx_Woption=yes"
5777 eval "$as_acx_Woption=no"
5779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5782 eval ac_res
=\$
$as_acx_Woption
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5784 $as_echo "$ac_res" >&6; }
5785 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5786 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
5789 CFLAGS
="$save_CFLAGS"
5792 save_CFLAGS
="$CFLAGS"
5793 for option
in -Wmissing-format-attribute; do
5794 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5797 $as_echo_n "checking whether $CC supports $option... " >&6; }
5798 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5799 $as_echo_n "(cached) " >&6
5802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5813 if ac_fn_c_try_compile
"$LINENO"; then :
5814 eval "$as_acx_Woption=yes"
5816 eval "$as_acx_Woption=no"
5818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5821 eval ac_res
=\$
$as_acx_Woption
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5823 $as_echo "$ac_res" >&6; }
5824 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5825 strict_warn
="$strict_warn${strict_warn:+ }$option"
5828 CFLAGS
="$save_CFLAGS"
5831 save_CFLAGS
="$CFLAGS"
5832 for option
in -Wold-style-definition -Wc++-compat; do
5833 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5836 $as_echo_n "checking whether $CC supports $option... " >&6; }
5837 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5838 $as_echo_n "(cached) " >&6
5841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5852 if ac_fn_c_try_compile
"$LINENO"; then :
5853 eval "$as_acx_Woption=yes"
5855 eval "$as_acx_Woption=no"
5857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5860 eval ac_res
=\$
$as_acx_Woption
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5862 $as_echo "$ac_res" >&6; }
5863 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5864 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
5867 CFLAGS
="$save_CFLAGS"
5869 if test "$GCC" = yes; then :
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
5871 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
5872 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5875 save_CFLAGS
="$CFLAGS"
5876 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
5877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5888 if ac_fn_c_try_compile
"$LINENO"; then :
5889 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
5891 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
5893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5894 CFLAGS
="$save_CFLAGS"
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
5897 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
5898 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
5899 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
5904 # Check whether --enable-werror-always was given.
5905 if test "${enable_werror_always+set}" = set; then :
5906 enableval
=$enable_werror_always;
5908 enable_werror_always
=no
5911 if test $enable_werror_always = yes; then :
5912 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
5917 # The above macros do nothing if the compiler is not GCC. However, the
5918 # Makefile has more goo to add other flags, so these variables are used
5919 # to enable warnings only for GCC.
5922 if test "x$GCC" = "xyes"; then
5923 warn_cflags
='$(GCC_WARN_CFLAGS)'
5924 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
5929 # Enable expensive internal checks
5931 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
5935 # Check whether --enable-checking was given.
5936 if test "${enable_checking+set}" = set; then :
5937 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
5940 # Determine the default checks.
5941 if test x
$is_release = x
; then
5942 ac_checking_flags
=yes
5944 ac_checking_flags
=release
5948 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
5949 for check
in release
$ac_checking_flags
5952 # these set all the flags to specific states
5953 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
5954 ac_fold_checking
= ; ac_gc_checking
=1 ;
5955 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
5956 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
5957 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
5958 ac_types_checking
=1 ;;
5959 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
5960 ac_fold_checking
= ; ac_gc_checking
= ;
5961 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
5962 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
5963 ac_tree_checking
= ; ac_valgrind_checking
= ;
5964 ac_types_checking
= ;;
5965 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
5966 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
5967 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
5968 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
5969 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
5970 ac_types_checking
=1 ;;
5971 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
5972 ac_fold_checking
= ; ac_gc_checking
= ;
5973 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
5974 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
5975 ac_tree_checking
= ; ac_valgrind_checking
= ;
5976 ac_types_checking
= ;;
5977 # these enable particular checks
5978 assert
) ac_assert_checking
=1 ;;
5979 df
) ac_df_checking
=1 ;;
5980 fold) ac_fold_checking
=1 ;;
5981 gc
) ac_gc_checking
=1 ;;
5982 gcac
) ac_gc_always_collect
=1 ;;
5983 gimple
) ac_gimple_checking
=1 ;;
5984 misc
) ac_checking
=1 ;;
5985 rtl
) ac_rtl_checking
=1 ;;
5986 rtlflag
) ac_rtlflag_checking
=1 ;;
5987 runtime
) ac_runtime_checking
=1 ;;
5988 tree
) ac_tree_checking
=1 ;;
5989 types
) ac_types_checking
=1 ;;
5990 valgrind
) ac_valgrind_checking
=1 ;;
5991 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
5997 if test x
$ac_checking != x
; then
5999 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6001 nocommon_flag
=-fno-common
6004 if test x
$ac_df_checking != x
; then
6006 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6009 if test x
$ac_assert_checking != x
; then
6011 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6014 if test x
$ac_gimple_checking != x
; then
6016 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6020 if test x
$ac_runtime_checking != x
; then
6022 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6025 if test x
$ac_tree_checking != x
; then
6027 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6029 TREEBROWSER
=tree-browser.o
6031 if test x
$ac_types_checking != x
; then
6033 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6037 if test x
$ac_rtl_checking != x
; then
6039 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6042 if test x
$ac_rtlflag_checking != x
; then
6044 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6047 if test x
$ac_gc_checking != x
; then
6049 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6052 if test x
$ac_gc_always_collect != x
; then
6054 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6057 if test x
$ac_fold_checking != x
; then
6059 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6062 valgrind_path_defines
=
6065 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6066 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6074 if test x
$ac_valgrind_checking != x
; then
6075 # It is certainly possible that there's valgrind but no valgrind.h.
6076 # GCC relies on making annotations so we must have both.
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6078 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 #include <valgrind/memcheck.h>
6082 #ifndef VALGRIND_DISCARD
6083 #error VALGRIND_DISCARD not defined
6086 if ac_fn_c_try_cpp
"$LINENO"; then :
6087 gcc_cv_header_valgrind_memcheck_h
=yes
6089 gcc_cv_header_valgrind_memcheck_h
=no
6091 rm -f conftest.err conftest.
$ac_ext
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6093 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6095 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 #include <memcheck.h>
6099 #ifndef VALGRIND_DISCARD
6100 #error VALGRIND_DISCARD not defined
6103 if ac_fn_c_try_cpp
"$LINENO"; then :
6104 gcc_cv_header_memcheck_h
=yes
6106 gcc_cv_header_memcheck_h
=no
6108 rm -f conftest.err conftest.
$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6110 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6112 # Prepare PATH_SEPARATOR.
6113 # The user is always right.
6114 if test "${PATH_SEPARATOR+set}" != set; then
6115 echo "#! /bin/sh" >conf$$.sh
6116 echo "exit 0" >>conf$$.sh
6118 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6126 # Find out how to test for executable files. Don't use a zero-byte file,
6127 # as systems may use methods other than mode bits to determine executability.
6128 cat >conf$$.
file <<_ASEOF
6132 chmod +x conf$$.
file
6133 if test -x conf$$.
file >/dev
/null
2>&1; then
6134 ac_executable_p
="test -x"
6136 ac_executable_p
="test -f"
6140 # Extract the first word of "valgrind", so it can be a program name with args.
6141 set dummy valgrind
; ac_word
=$2
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 $as_echo_n "checking for $ac_word... " >&6; }
6144 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6147 case "$valgrind_path" in
6149 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6152 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6153 for ac_dir
in $PATH; do
6155 test -z "$ac_dir" && ac_dir
=.
6156 for ac_exec_ext
in '' $ac_executable_extensions; do
6157 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6158 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6159 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6169 valgrind_path
="$ac_cv_path_valgrind_path"
6170 if test -n "$valgrind_path"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6172 $as_echo "$valgrind_path" >&6; }
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6178 if test "x$valgrind_path" = "x" \
6179 ||
(test $have_valgrind_h = no \
6180 && test $gcc_cv_header_memcheck_h = no \
6181 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6182 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6184 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6185 valgrind_command
="$valgrind_path -q"
6187 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6189 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6191 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6194 if test $gcc_cv_header_memcheck_h = yes; then
6196 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6203 # Enable code coverage collection
6204 # Check whether --enable-coverage was given.
6205 if test "${enable_coverage+set}" = set; then :
6206 enableval
=$enable_coverage; case "${enableval}" in
6208 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6211 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6214 # a.k.a. --disable-coverage
6218 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6227 # Check whether --enable-gather-detailed-mem-stats was given.
6228 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6229 enableval
=$enable_gather_detailed_mem_stats;
6231 enable_gather_detailed_mem_stats
=no
6234 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6236 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6240 # -------------------------------
6241 # Miscenalleous configure options
6242 # -------------------------------
6244 # See if we are building gcc with C++.
6245 # Check whether --enable-build-with-cxx was given.
6246 if test "${enable_build_with_cxx+set}" = set; then :
6247 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6249 ENABLE_BUILD_WITH_CXX
=no
6256 # Check whether --with-stabs was given.
6257 if test "${with_stabs+set}" = set; then :
6258 withval
=$with_stabs; stabs
="$with_stabs"
6264 # Determine whether or not multilibs are enabled.
6265 # Check whether --enable-multilib was given.
6266 if test "${enable_multilib+set}" = set; then :
6267 enableval
=$enable_multilib;
6274 # Enable __cxa_atexit for C++.
6275 # Check whether --enable-__cxa_atexit was given.
6276 if test "${enable___cxa_atexit+set}" = set; then :
6277 enableval
=$enable___cxa_atexit;
6281 # Enable C extension for decimal float if target supports it.
6282 # Check whether --enable-decimal-float was given.
6283 if test "${enable_decimal_float+set}" = set; then :
6284 enableval
=$enable_decimal_float;
6285 case $enable_decimal_float in
6286 yes | no | bid | dpd
) ;;
6287 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6288 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6294 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
6295 enable_decimal_float
=yes
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6299 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6300 enable_decimal_float
=no
6307 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6309 cat >>confdefs.h
<<_ACEOF
6310 #define ENABLE_DECIMAL_FLOAT $dfp
6314 # x86's use BID format instead of DPD
6315 case x
$enable_decimal_float in
6318 i?
86*-*-linux* | x86_64
*-*-linux*)
6319 enable_decimal_float
=bid
6322 enable_decimal_float
=dpd
6327 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6328 # dependency on libdecnumber.
6329 enable_decimal_float
=dpd
6334 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6336 cat >>confdefs.h
<<_ACEOF
6337 #define ENABLE_DECIMAL_BID_FORMAT $bid
6341 # Enable C extension for fixed-point arithmetic.
6342 # Check whether --enable-fixed-point was given.
6343 if test "${enable_fixed_point+set}" = set; then :
6344 enableval
=$enable_fixed_point;
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6353 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6354 enable_fixed_point
=no
6357 enable_fixed_point
=yes
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6363 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6364 enable_fixed_point
=no
6372 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6374 cat >>confdefs.h
<<_ACEOF
6375 #define ENABLE_FIXED_POINT $fixedpoint
6380 # Pass with no value to take the default
6381 # Pass with a value to specify a thread package
6382 # Check whether --enable-threads was given.
6383 if test "${enable_threads+set}" = set; then :
6384 enableval
=$enable_threads;
6390 # Check whether --enable-tls was given.
6391 if test "${enable_tls+set}" = set; then :
6392 enableval
=$enable_tls;
6395 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
6396 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6404 # Check whether --enable-objc-gc was given.
6405 if test "${enable_objc_gc+set}" = set; then :
6406 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
6417 # Check whether --with-dwarf2 was given.
6418 if test "${with_dwarf2+set}" = set; then :
6419 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
6425 # Check whether --enable-shared was given.
6426 if test "${enable_shared+set}" = set; then :
6427 enableval
=$enable_shared;
6428 case $enable_shared in
6432 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6433 for pkg
in $enableval; do
6434 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6449 # Check whether --with-build-sysroot was given.
6450 if test "${with_build_sysroot+set}" = set; then :
6451 withval
=$with_build_sysroot;
6456 # Check whether --with-sysroot was given.
6457 if test "${with_sysroot+set}" = set; then :
6458 withval
=$with_sysroot;
6459 case ${with_sysroot} in
6460 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6461 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6464 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6465 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6467 if test "x$prefix" = xNONE
; then
6468 test_prefix
=/usr
/local
6472 if test "x$exec_prefix" = xNONE
; then
6473 test_exec_prefix
=$test_prefix
6475 test_exec_prefix
=$exec_prefix
6477 case ${TARGET_SYSTEM_ROOT} in
6478 "${test_prefix}"|
"${test_prefix}/"*|\
6479 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
6480 '${prefix}'|
'${prefix}/'*|\
6481 '${exec_prefix}'|
'${exec_prefix}/'*)
6482 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6483 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6490 TARGET_SYSTEM_ROOT_DEFINE
=
6491 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6499 # Build with intermodule optimisations
6500 # Check whether --enable-intermodule was given.
6501 if test "${enable_intermodule+set}" = set; then :
6502 enableval
=$enable_intermodule; case ${enable_intermodule} in
6503 yes) onestep
="-onestep";;
6514 # Check whether --with-pkgversion was given.
6515 if test "${with_pkgversion+set}" = set; then :
6516 withval
=$with_pkgversion; case "$withval" in
6517 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6519 *) PKGVERSION
="($withval) " ;;
6530 # Check whether --with-bugurl was given.
6531 if test "${with_bugurl+set}" = set; then :
6532 withval
=$with_bugurl; case "$withval" in
6533 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6536 *) BUGURL
="$withval"
6540 BUGURL
="http://gcc.gnu.org/bugs.html"
6550 REPORT_BUGS_TO
="<$BUGURL>"
6551 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6558 # Sanity check enable_languages in case someone does not run the toplevel
6559 # configure # script.
6560 # Check whether --enable-languages was given.
6561 if test "${enable_languages+set}" = set; then :
6562 enableval
=$enable_languages; case ,${enable_languages}, in
6564 # go safe -- we cannot be much sure without the toplevel
6566 # analysis of which target libs are present and usable
6570 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
6575 enable_languages
=c
,${enable_languages}
6584 # Check whether --with-multilib-list was given.
6585 if test "${with_multilib_list+set}" = set; then :
6586 withval
=$with_multilib_list; :
6588 with_multilib_list
=default
6592 # -------------------------
6593 # Checks for other programs
6594 # -------------------------
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6597 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6599 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6600 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6601 $as_echo_n "(cached) " >&6
6603 cat >conftest.
make <<\_ACEOF
6606 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6609 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6611 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6613 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6617 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6619 $as_echo "yes" >&6; }
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 SET_MAKE
="MAKE=${MAKE-make}"
6628 # Find some useful tools
6629 for ac_prog
in gawk mawk nawk
awk
6631 # Extract the first word of "$ac_prog", so it can be a program name with args.
6632 set dummy
$ac_prog; ac_word
=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_AWK+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6638 if test -n "$AWK"; then
6639 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir
=.
6646 for ac_exec_ext
in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_AWK
="$ac_prog"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 if test -n "$AWK"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6661 $as_echo "$AWK" >&6; }
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6668 test -n "$AWK" && break
6671 # We need awk to create options.c and options.h.
6672 # Bail out if it's missing.
6674 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6678 $as_echo_n "checking whether ln -s works... " >&6; }
6679 if test "${gcc_cv_prog_LN_S+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6682 rm -f conftestdata_t
6683 echo >conftestdata_f
6684 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
6686 gcc_cv_prog_LN_S
="ln -s"
6688 if ln conftestdata_f conftestdata_t
2>/dev
/null
6692 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
6694 gcc_cv_prog_LN_S
="cp -p"
6700 rm -f conftestdata_f conftestdata_t
6703 LN_S
="$gcc_cv_prog_LN_S"
6704 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6706 $as_echo "yes" >&6; }
6708 if test "$gcc_cv_prog_LN_S" = "ln"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
6710 $as_echo "no, using ln" >&6; }
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
6713 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
6718 $as_echo_n "checking whether ln works... " >&6; }
6719 if test "${acx_cv_prog_LN+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6722 rm -f conftestdata_t
6723 echo >conftestdata_f
6724 if ln conftestdata_f conftestdata_t
2>/dev
/null
6730 rm -f conftestdata_f conftestdata_t
6733 if test $acx_cv_prog_LN = no
; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
6736 $as_echo "no, using $LN" >&6; }
6738 LN
="$acx_cv_prog_LN"
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6740 $as_echo "yes" >&6; }
6743 if test -n "$ac_tool_prefix"; then
6744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6745 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6749 $as_echo_n "(cached) " >&6
6751 if test -n "$RANLIB"; then
6752 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6758 test -z "$as_dir" && as_dir
=.
6759 for ac_exec_ext
in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 RANLIB
=$ac_cv_prog_RANLIB
6772 if test -n "$RANLIB"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6774 $as_echo "$RANLIB" >&6; }
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6782 if test -z "$ac_cv_prog_RANLIB"; then
6783 ac_ct_RANLIB
=$RANLIB
6784 # Extract the first word of "ranlib", so it can be a program name with args.
6785 set dummy ranlib
; ac_word
=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
6791 if test -n "$ac_ct_RANLIB"; then
6792 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir
=.
6799 for ac_exec_ext
in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6812 if test -n "$ac_ct_RANLIB"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6814 $as_echo "$ac_ct_RANLIB" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6820 if test "x$ac_ct_RANLIB" = x
; then
6823 case $cross_compiling:$ac_tool_warned in
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6827 ac_tool_warned
=yes ;;
6829 RANLIB
=$ac_ct_RANLIB
6832 RANLIB
="$ac_cv_prog_RANLIB"
6837 # By default, the Darwin ranlib will not treat common symbols as
6838 # definitions when building the archive table of contents. Other
6839 # ranlibs do that; pass an option to the Darwin ranlib that makes
6840 # it behave similarly.
6848 # Find a good install program. We prefer a C program (faster),
6849 # so one script is as good as another. But avoid the broken or
6850 # incompatible versions:
6851 # SysV /etc/install, /usr/sbin/install
6852 # SunOS /usr/etc/install
6853 # IRIX /sbin/install
6855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6857 # ./install, which can be erroneously created by make from ./install.sh.
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
6859 $as_echo_n "checking for a BSD compatible install... " >&6; }
6860 if test -z "$INSTALL"; then
6861 if test "${ac_cv_path_install+set}" = set; then :
6862 $as_echo_n "(cached) " >&6
6864 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
6865 for ac_dir
in $PATH; do
6866 # Account for people who put trailing slashes in PATH elements.
6868 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
6870 # OSF1 and SCO ODT 3.0 have their own names for install.
6871 for ac_prog
in ginstall scoinst
install; do
6872 if test -f $ac_dir/$ac_prog; then
6873 if test $ac_prog = install &&
6874 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
6875 # AIX install. It has an incompatible calling convention.
6876 # OSF/1 installbsd also uses dspmsg, but is usable.
6879 ac_cv_path_install
="$ac_dir/$ac_prog -c"
6890 if test "${ac_cv_path_install+set}" = set; then
6891 INSTALL
="$ac_cv_path_install"
6893 # As a last resort, use the slow shell script. We don't cache a
6894 # path for INSTALL within a source directory, because that will
6895 # break other packages using the cache if that directory is
6896 # removed, or if the path is relative.
6897 INSTALL
="$ac_install_sh"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6901 $as_echo "$INSTALL" >&6; }
6903 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6904 # It thinks the first close brace ends the variable substitution.
6905 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6907 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6910 # See if cmp has --ignore-initial.
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
6912 $as_echo_n "checking for cmp's capabilities... " >&6; }
6913 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6918 gcc_cv_prog_cmp_skip
=slowcompare
6919 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
6920 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
6923 gcc_cv_prog_cmp_skip
=gnucompare
6926 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
6927 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
6928 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
6931 gcc_cv_prog_cmp_skip
=fastcompare
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
6939 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
6940 make_compare_target
=$gcc_cv_prog_cmp_skip
6944 # See if we have the mktemp command.
6945 # Extract the first word of "mktemp", so it can be a program name with args.
6946 set dummy mktemp
; ac_word
=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6952 if test -n "$have_mktemp_command"; then
6953 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
6955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir
=.
6960 for ac_exec_ext
in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_prog_have_mktemp_command
="yes"
6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
6973 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
6974 if test -n "$have_mktemp_command"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
6976 $as_echo "$have_mktemp_command" >&6; }
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6984 # See if makeinfo has been installed and is modern enough
6985 # that we can use it.
6987 # Extract the first word of "makeinfo", so it can be a program name with args.
6988 set dummy makeinfo
; ac_word
=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6994 if test -n "$MAKEINFO"; then
6995 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
6997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir
=.
7002 for ac_exec_ext
in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_MAKEINFO
="makeinfo"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 MAKEINFO
=$ac_cv_prog_MAKEINFO
7015 if test -n "$MAKEINFO"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7017 $as_echo "$MAKEINFO" >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7024 if test -n "$MAKEINFO"; then
7025 # Found it, now check the version.
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7027 $as_echo_n "checking for modern makeinfo... " >&6; }
7028 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7031 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7032 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7034 case $ac_prog_version in
7035 '') gcc_cv_prog_makeinfo_modern
=no
;;
7036 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7037 *) gcc_cv_prog_makeinfo_modern
=no
;;
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7042 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7044 gcc_cv_prog_makeinfo_modern
=no
7046 if test $gcc_cv_prog_makeinfo_modern = no
; then
7047 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7050 if test $gcc_cv_prog_makeinfo_modern = no
; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7052 *** Makeinfo is missing or too old.
7053 *** Info documentation will not be built." >&5
7054 $as_echo "$as_me: WARNING:
7055 *** Makeinfo is missing or too old.
7056 *** Info documentation will not be built." >&2;}
7063 # Is pod2man recent enough to regenerate manpages?
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7065 $as_echo_n "checking for recent Pod::Man... " >&6; }
7066 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7068 $as_echo "yes" >&6; }
7069 GENERATED_MANPAGES
=generated-manpages
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7077 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7082 # Extract the first word of "$ac_prog", so it can be a program name with args.
7083 set dummy
$ac_prog; ac_word
=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if test "${ac_cv_prog_FLEX+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7089 if test -n "$FLEX"; then
7090 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7096 test -z "$as_dir" && as_dir
=.
7097 for ac_exec_ext
in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_prog_FLEX
="$ac_prog"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 FLEX
=$ac_cv_prog_FLEX
7110 if test -n "$FLEX"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7112 $as_echo "$FLEX" >&6; }
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7119 test -n "$FLEX" && break
7121 test -n "$FLEX" || FLEX
="$MISSING flex"
7125 for ac_prog
in bison
7127 # Extract the first word of "$ac_prog", so it can be a program name with args.
7128 set dummy
$ac_prog; ac_word
=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if test "${ac_cv_prog_BISON+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7134 if test -n "$BISON"; then
7135 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7141 test -z "$as_dir" && as_dir
=.
7142 for ac_exec_ext
in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_prog_BISON
="$ac_prog"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 BISON
=$ac_cv_prog_BISON
7155 if test -n "$BISON"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7157 $as_echo "$BISON" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7164 test -n "$BISON" && break
7166 test -n "$BISON" || BISON
="$MISSING bison"
7169 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7170 # check for build == host before using them.
7173 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7174 && test -d ..
/binutils
; then
7175 NM
='$(objdir)/../binutils/nm-new'
7177 # Extract the first word of "nm", so it can be a program name with args.
7178 set dummy nm
; ac_word
=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if test "${ac_cv_prog_NM+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7184 if test -n "$NM"; then
7185 ac_cv_prog_NM
="$NM" # Let the user override the test.
7187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7191 test -z "$as_dir" && as_dir
=.
7192 for ac_exec_ext
in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7206 if test -n "$NM"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7208 $as_echo "$NM" >&6; }
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7218 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7219 && test -d ..
/binutils
; then
7220 AR
='$(objdir)/../binutils/ar'
7222 # Extract the first word of "ar", so it can be a program name with args.
7223 set dummy
ar; ac_word
=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_prog_AR+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7229 if test -n "$AR"; then
7230 ac_cv_prog_AR
="$AR" # Let the user override the test.
7232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir
=.
7237 for ac_exec_ext
in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7251 if test -n "$AR"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7253 $as_echo "$AR" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7263 # --------------------
7264 # Checks for C headers
7265 # --------------------
7267 # Need to reject headers which give warnings, so that the -Werror bootstrap
7268 # works later. *sigh* This needs to come before all header checks.
7270 ac_c_preproc_warn_flag
=yes
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7273 $as_echo_n "checking for ANSI C header files... " >&6; }
7274 if test "${ac_cv_header_stdc+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7292 if ac_fn_c_try_compile
"$LINENO"; then :
7293 ac_cv_header_stdc
=yes
7295 ac_cv_header_stdc
=no
7297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7299 if test $ac_cv_header_stdc = yes; then
7300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7307 $EGREP "memchr" >/dev
/null
2>&1; then :
7310 ac_cv_header_stdc
=no
7316 if test $ac_cv_header_stdc = yes; then
7317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7324 $EGREP "free" >/dev
/null
2>&1; then :
7327 ac_cv_header_stdc
=no
7333 if test $ac_cv_header_stdc = yes; then
7334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7335 if test "$cross_compiling" = yes; then :
7338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7342 #if ((' ' & 0x0FF) == 0x020)
7343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7346 # define ISLOWER(c) \
7347 (('a' <= (c) && (c) <= 'i') \
7348 || ('j' <= (c) && (c) <= 'r') \
7349 || ('s' <= (c) && (c) <= 'z'))
7350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7358 for (i = 0; i < 256; i++)
7359 if (XOR (islower (i), ISLOWER (i))
7360 || toupper (i) != TOUPPER (i))
7365 if ac_fn_c_try_run
"$LINENO"; then :
7368 ac_cv_header_stdc
=no
7370 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7371 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7377 $as_echo "$ac_cv_header_stdc" >&6; }
7378 if test $ac_cv_header_stdc = yes; then
7380 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7385 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7386 if test "${ac_cv_header_time+set}" = set; then :
7387 $as_echo_n "(cached) " >&6
7389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391 #include <sys/types.h>
7392 #include <sys/time.h>
7398 if ((struct tm *) 0)
7404 if ac_fn_c_try_compile
"$LINENO"; then :
7405 ac_cv_header_time
=yes
7407 ac_cv_header_time
=no
7409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7412 $as_echo "$ac_cv_header_time" >&6; }
7413 if test $ac_cv_header_time = yes; then
7415 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7420 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7421 if test "${gcc_cv_header_string+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7427 #include <strings.h>
7436 if ac_fn_c_try_compile
"$LINENO"; then :
7437 gcc_cv_header_string
=yes
7439 gcc_cv_header_string
=no
7441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7444 $as_echo "$gcc_cv_header_string" >&6; }
7445 if test $gcc_cv_header_string = yes; then
7447 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7452 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7453 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7454 $as_echo_n "(cached) " >&6
7456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458 #include <sys/types.h>
7459 #include <sys/wait.h>
7461 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7464 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7472 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7477 if ac_fn_c_try_compile
"$LINENO"; then :
7478 ac_cv_header_sys_wait_h
=yes
7480 ac_cv_header_sys_wait_h
=no
7482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7485 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7486 if test $ac_cv_header_sys_wait_h = yes; then
7488 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7492 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
7493 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
7494 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
7495 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7497 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7499 eval as_val
=\$
$as_ac_Header
7500 if test "x$as_val" = x
""yes; then :
7501 cat >>confdefs.h
<<_ACEOF
7502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7509 # Check for thread headers.
7510 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
7511 if test "x$ac_cv_header_thread_h" = x
""yes; then :
7517 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7518 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
7525 # These tests can't be done till we know if we have limits.h.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7527 $as_echo_n "checking for CHAR_BIT... " >&6; }
7528 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 #ifdef HAVE_LIMITS_H
7540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7541 $EGREP "found" >/dev
/null
2>&1; then :
7542 gcc_cv_decl_char_bit
=yes
7544 gcc_cv_decl_char_bit
=no
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7551 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7552 if test $gcc_cv_decl_char_bit = no
; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7554 $as_echo_n "checking number of bits in a byte... " >&6; }
7555 if test "${gcc_cv_c_nbby+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7560 while test $i -lt 65; do
7561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7568 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7569 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7575 if ac_fn_c_try_compile
"$LINENO"; then :
7576 gcc_cv_c_nbby
=$i; break
7578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7581 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7585 $as_echo "$gcc_cv_c_nbby" >&6; }
7586 if test $gcc_cv_c_nbby = failed
; then
7587 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
7590 cat >>confdefs.h
<<_ACEOF
7591 #define CHAR_BIT $gcc_cv_c_nbby
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7597 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7598 if test "${ac_cv_c_bigendian+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7601 ac_cv_c_bigendian
=unknown
7602 # See if we're dealing with a universal compiler.
7603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605 #ifndef __APPLE_CC__
7606 not a universal capable compiler
7611 if ac_fn_c_try_compile
"$LINENO"; then :
7613 # Check for potential -arch flags. It is not universal unless
7614 # there are at least two -arch flags with different values.
7617 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7618 if test -n "$ac_prev"; then
7620 i?
86 | x86_64 | ppc | ppc64
)
7621 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7624 ac_cv_c_bigendian
=universal
7630 elif test "x$ac_word" = "x-arch"; then
7635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7636 if test $ac_cv_c_bigendian = unknown
; then
7637 # See if sys/param.h defines the BYTE_ORDER macro.
7638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 #include <sys/types.h>
7641 #include <sys/param.h>
7646 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7647 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7656 if ac_fn_c_try_compile
"$LINENO"; then :
7657 # It does; now see whether it defined to BIG_ENDIAN or not.
7658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7660 #include <sys/types.h>
7661 #include <sys/param.h>
7666 #if BYTE_ORDER != BIG_ENDIAN
7674 if ac_fn_c_try_compile
"$LINENO"; then :
7675 ac_cv_c_bigendian
=yes
7677 ac_cv_c_bigendian
=no
7679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7683 if test $ac_cv_c_bigendian = unknown
; then
7684 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7692 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7700 if ac_fn_c_try_compile
"$LINENO"; then :
7701 # It does; now see whether it defined to _BIG_ENDIAN or not.
7702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7717 if ac_fn_c_try_compile
"$LINENO"; then :
7718 ac_cv_c_bigendian
=yes
7720 ac_cv_c_bigendian
=no
7722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7726 if test $ac_cv_c_bigendian = unknown
; then
7727 # Compile a test program.
7728 if test "$cross_compiling" = yes; then :
7729 # Try to guess by grepping values from an object file.
7730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7732 short int ascii_mm[] =
7733 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7734 short int ascii_ii[] =
7735 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7736 int use_ascii (int i) {
7737 return ascii_mm[i] + ascii_ii[i];
7739 short int ebcdic_ii[] =
7740 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7741 short int ebcdic_mm[] =
7742 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7743 int use_ebcdic (int i) {
7744 return ebcdic_mm[i] + ebcdic_ii[i];
7751 return use_ascii (foo) == use_ebcdic (foo);
7756 if ac_fn_c_try_compile
"$LINENO"; then :
7757 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7758 ac_cv_c_bigendian
=yes
7760 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7761 if test "$ac_cv_c_bigendian" = unknown
; then
7762 ac_cv_c_bigendian
=no
7764 # finding both strings is unlikely to happen, but who knows?
7765 ac_cv_c_bigendian
=unknown
7769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 $ac_includes_default
7778 /* Are we little or big endian? From Harbison&Steele. */
7782 char c[sizeof (long int)];
7785 return u.c[sizeof (long int) - 1] == 1;
7791 if ac_fn_c_try_run
"$LINENO"; then :
7792 ac_cv_c_bigendian
=no
7794 ac_cv_c_bigendian
=yes
7796 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7797 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7803 $as_echo "$ac_cv_c_bigendian" >&6; }
7804 case $ac_cv_c_bigendian in #(
7806 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7812 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7816 as_fn_error
"unknown endianness
7817 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7826 # These libraries may be used by collect2.
7827 # We may need a special search path to get them linked.
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
7829 $as_echo_n "checking for collect2 libraries... " >&6; }
7830 if test "${gcc_cv_collect2_libs+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7834 for libs
in '' -lld -lmld \
7835 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
7836 '-L/usr/lib/cmplrs/cc3.11 -lmld'
7839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7842 /* Override any GCC internal prototype to avoid an error.
7843 Use char because int might match the return type of a GCC
7844 builtin and then its argument prototype would still apply. */
7857 if ac_fn_c_try_link
"$LINENO"; then :
7858 gcc_cv_collect2_libs
="$libs"; break
7860 rm -f core conftest.err conftest.
$ac_objext \
7861 conftest
$ac_exeext conftest.
$ac_ext
7864 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
7867 $as_echo "$gcc_cv_collect2_libs" >&6; }
7868 case $gcc_cv_collect2_libs in
7870 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
7874 # When building Ada code on Alpha, we need exc_resume which is usually in
7875 # -lexc. So test for it.
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
7879 $as_echo_n "checking for library containing exc_resume... " >&6; }
7880 if test "${ac_cv_search_exc_resume+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 ac_func_search_save_LIBS
=$LIBS
7884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7887 /* Override any GCC internal prototype to avoid an error.
7888 Use char because int might match the return type of a GCC
7889 builtin and then its argument prototype would still apply. */
7897 return exc_resume ();
7902 for ac_lib
in '' exc
; do
7903 if test -z "$ac_lib"; then
7904 ac_res
="none required"
7907 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7909 if ac_fn_c_try_link
"$LINENO"; then :
7910 ac_cv_search_exc_resume
=$ac_res
7912 rm -f core conftest.err conftest.
$ac_objext \
7914 if test "${ac_cv_search_exc_resume+set}" = set; then :
7918 if test "${ac_cv_search_exc_resume+set}" = set; then :
7921 ac_cv_search_exc_resume
=no
7924 LIBS
=$ac_func_search_save_LIBS
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
7927 $as_echo "$ac_cv_search_exc_resume" >&6; }
7928 ac_res
=$ac_cv_search_exc_resume
7929 if test "$ac_res" != no
; then :
7930 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7938 # Some systems put ldexp and frexp in libm instead of libc; assume
7939 # they're both in the same place. jcf-dump needs them.
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
7943 $as_echo_n "checking for library containing ldexp... " >&6; }
7944 if test "${ac_cv_search_ldexp+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7947 ac_func_search_save_LIBS
=$LIBS
7948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7951 /* Override any GCC internal prototype to avoid an error.
7952 Use char because int might match the return type of a GCC
7953 builtin and then its argument prototype would still apply. */
7966 for ac_lib
in '' m
; do
7967 if test -z "$ac_lib"; then
7968 ac_res
="none required"
7971 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7973 if ac_fn_c_try_link
"$LINENO"; then :
7974 ac_cv_search_ldexp
=$ac_res
7976 rm -f core conftest.err conftest.
$ac_objext \
7978 if test "${ac_cv_search_ldexp+set}" = set; then :
7982 if test "${ac_cv_search_ldexp+set}" = set; then :
7985 ac_cv_search_ldexp
=no
7988 LIBS
=$ac_func_search_save_LIBS
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
7991 $as_echo "$ac_cv_search_ldexp" >&6; }
7992 ac_res
=$ac_cv_search_ldexp
7993 if test "$ac_res" != no
; then :
7994 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8002 # Use <inttypes.h> only if it exists,
8003 # doesn't clash with <sys/types.h>, and declares intmax_t.
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8005 $as_echo_n "checking for inttypes.h... " >&6; }
8006 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 #include <sys/types.h>
8012 #include <inttypes.h>
8021 if ac_fn_c_try_compile
"$LINENO"; then :
8022 gcc_cv_header_inttypes_h
=yes
8024 gcc_cv_header_inttypes_h
=no
8026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8030 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8031 if test $gcc_cv_header_inttypes_h = yes; then
8033 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8039 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8040 sysconf strsignal getrusage nl_langinfo \
8041 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8042 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
8044 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8045 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8046 eval as_val
=\$
$as_ac_var
8047 if test "x$as_val" = x
""yes; then :
8048 cat >>confdefs.h
<<_ACEOF
8049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8056 if test x
$ac_cv_func_mbstowcs = xyes
; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8058 $as_echo_n "checking whether mbstowcs works... " >&6; }
8059 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8060 $as_echo_n "(cached) " >&6
8062 if test "$cross_compiling" = yes; then :
8063 gcc_cv_func_mbstowcs_works
=yes
8065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8074 if ac_fn_c_try_run
"$LINENO"; then :
8075 gcc_cv_func_mbstowcs_works
=yes
8077 gcc_cv_func_mbstowcs_works
=no
8079 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8080 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8085 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8086 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8088 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8093 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8094 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8098 cat >>confdefs.h
<<_ACEOF
8104 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8105 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8109 cat >>confdefs.h
<<_ACEOF
8110 #define caddr_t char *
8117 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8118 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8119 gcc_header_sys_mman_h
=yes
8121 gcc_header_sys_mman_h
=no
8124 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8125 if test "x$ac_cv_func_mmap" = x
""yes; then :
8131 if test "$gcc_header_sys_mman_h" != yes \
8132 ||
test "$gcc_func_mmap" != yes; then
8133 gcc_cv_func_mmap_file
=no
8134 gcc_cv_func_mmap_dev_zero
=no
8135 gcc_cv_func_mmap_anon
=no
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8138 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8139 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8142 # Add a system to this blacklist if
8143 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8144 # memory area containing the same data that you'd get if you applied
8145 # read() to the same fd. The only system known to have a problem here
8146 # is VMS, where text files have record structure.
8149 gcc_cv_func_mmap_file
=no
;;
8151 gcc_cv_func_mmap_file
=yes;;
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8155 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8157 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8158 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8161 # Add a system to this blacklist if it has mmap() but /dev/zero
8162 # does not exist, or if mmapping /dev/zero does not give anonymous
8163 # zeroed pages with both the following properties:
8164 # 1. If you map N consecutive pages in with one call, and then
8165 # unmap any subset of those pages, the pages that were not
8166 # explicitly unmapped remain accessible.
8167 # 2. If you map two adjacent blocks of memory and then unmap them
8168 # both at once, they must both go away.
8169 # Systems known to be in this category are Windows (all variants),
8172 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
8173 gcc_cv_func_mmap_dev_zero
=no
;;
8175 gcc_cv_func_mmap_dev_zero
=yes;;
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8179 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8181 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8183 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8184 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
8187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189 #include <sys/types.h>
8190 #include <sys/mman.h>
8193 #ifndef MAP_ANONYMOUS
8194 #define MAP_ANONYMOUS MAP_ANON
8200 int n = MAP_ANONYMOUS;
8205 if ac_fn_c_try_compile
"$LINENO"; then :
8206 gcc_cv_decl_map_anon
=yes
8208 gcc_cv_decl_map_anon
=no
8210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8213 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8215 if test $gcc_cv_decl_map_anon = no
; then
8216 gcc_cv_func_mmap_anon
=no
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8219 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8220 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8223 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8224 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8225 # doesn't give anonymous zeroed pages with the same properties listed
8226 # above for use of /dev/zero.
8227 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8229 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
8230 gcc_cv_func_mmap_anon
=no
;;
8232 gcc_cv_func_mmap_anon
=yes;;
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8236 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8240 if test $gcc_cv_func_mmap_file = yes; then
8242 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8245 if test $gcc_cv_func_mmap_dev_zero = yes; then
8247 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8250 if test $gcc_cv_func_mmap_anon = yes; then
8252 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8259 # Under VMS, vfork works very differently than on Unix. The standard test
8260 # won't work, and it isn't easily adaptable. It makes more sense to
8262 ac_cv_func_vfork_works
=yes
8265 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8266 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8270 cat >>confdefs.h
<<_ACEOF
8276 for ac_header
in vfork.h
8278 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8279 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8280 cat >>confdefs.h
<<_ACEOF
8281 #define HAVE_VFORK_H 1
8287 for ac_func
in fork vfork
8289 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8290 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8291 eval as_val
=\$
$as_ac_var
8292 if test "x$as_val" = x
""yes; then :
8293 cat >>confdefs.h
<<_ACEOF
8294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8300 if test "x$ac_cv_func_fork" = xyes
; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8302 $as_echo_n "checking for working fork... " >&6; }
8303 if test "${ac_cv_func_fork_works+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8306 if test "$cross_compiling" = yes; then :
8307 ac_cv_func_fork_works
=cross
8309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 $ac_includes_default
8316 /* By Ruediger Kuhlmann. */
8323 if ac_fn_c_try_run
"$LINENO"; then :
8324 ac_cv_func_fork_works
=yes
8326 ac_cv_func_fork_works
=no
8328 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8329 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8334 $as_echo "$ac_cv_func_fork_works" >&6; }
8337 ac_cv_func_fork_works
=$ac_cv_func_fork
8339 if test "x$ac_cv_func_fork_works" = xcross
; then
8341 *-*-amigaos* |
*-*-msdosdjgpp*)
8342 # Override, as these systems have only a dummy fork() stub
8343 ac_cv_func_fork_works
=no
8346 ac_cv_func_fork_works
=yes
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8350 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8352 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8353 if test "x$ac_cv_func_vfork" = xyes
; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8355 $as_echo_n "checking for working vfork... " >&6; }
8356 if test "${ac_cv_func_vfork_works+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8359 if test "$cross_compiling" = yes; then :
8360 ac_cv_func_vfork_works
=cross
8362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 /* Thanks to Paul Eggert for this test. */
8365 $ac_includes_default
8366 #include <sys/wait.h>
8370 /* On some sparc systems, changes by the child to local and incoming
8371 argument registers are propagated back to the parent. The compiler
8372 is told about this with #include <vfork.h>, but some compilers
8373 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8374 static variable whose address is put into a register that is
8375 clobbered by the vfork. */
8378 sparc_address_test (int arg)
8380 sparc_address_test (arg) int arg;
8401 pid_t parent = getpid ();
8404 sparc_address_test (0);
8409 /* Here is another test for sparc vfork register problems. This
8410 test uses lots of local variables, at least as many local
8411 variables as main has allocated so far including compiler
8412 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8413 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8414 reuse the register of parent for one of the local variables,
8415 since it will think that parent can't possibly be used any more
8416 in this routine. Assigning to the local variable will thus
8417 munge parent in the parent process. */
8419 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8420 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8421 /* Convince the compiler that p..p7 are live; otherwise, it might
8422 use the same hardware register for all 8 local variables. */
8423 if (p != p1 || p != p2 || p != p3 || p != p4
8424 || p != p5 || p != p6 || p != p7)
8427 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8428 from child file descriptors. If the child closes a descriptor
8429 before it execs or exits, this munges the parent's descriptor
8430 as well. Test for this by closing stdout in the child. */
8431 _exit(close(fileno(stdout)) != 0);
8436 while (wait(&status) != child)
8439 /* Was there some problem with vforking? */
8442 /* Did the child fail? (This shouldn't happen.) */
8445 /* Did the vfork/compiler bug occur? */
8446 || parent != getpid()
8448 /* Did the file descriptor bug occur? */
8449 || fstat(fileno(stdout), &st) != 0
8454 if ac_fn_c_try_run
"$LINENO"; then :
8455 ac_cv_func_vfork_works
=yes
8457 ac_cv_func_vfork_works
=no
8459 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8460 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8465 $as_echo "$ac_cv_func_vfork_works" >&6; }
8468 if test "x$ac_cv_func_fork_works" = xcross
; then
8469 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8471 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8474 if test "x$ac_cv_func_vfork_works" = xyes
; then
8476 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8480 $as_echo "#define vfork fork" >>confdefs.h
8483 if test "x$ac_cv_func_fork_works" = xyes
; then
8485 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8491 if test "X$prefix" = "XNONE"; then
8492 acl_final_prefix
="$ac_default_prefix"
8494 acl_final_prefix
="$prefix"
8496 if test "X$exec_prefix" = "XNONE"; then
8497 acl_final_exec_prefix
='${prefix}'
8499 acl_final_exec_prefix
="$exec_prefix"
8501 acl_save_prefix
="$prefix"
8502 prefix
="$acl_final_prefix"
8503 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8504 prefix
="$acl_save_prefix"
8507 # Check whether --with-gnu-ld was given.
8508 if test "${with_gnu_ld+set}" = set; then :
8509 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8514 # Prepare PATH_SEPARATOR.
8515 # The user is always right.
8516 if test "${PATH_SEPARATOR+set}" != set; then
8517 echo "#! /bin/sh" >conf$$.sh
8518 echo "exit 0" >>conf$$.sh
8520 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8528 if test "$GCC" = yes; then
8529 # Check if gcc -print-prog-name=ld gives a path.
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8531 $as_echo_n "checking for ld used by GCC... " >&6; }
8534 # gcc leaves a trailing carriage return which upsets mingw
8535 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8537 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8540 # Accept absolute paths.
8541 [\\/]* |
[A-Za-z
]:[\\/]*)
8542 re_direlt
='/[^/][^/]*/\.\./'
8543 # Canonicalize the path of ld
8544 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8545 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8546 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8548 test -z "$LD" && LD
="$ac_prog"
8551 # If it fails, then pretend we aren't using GCC.
8555 # If it is relative, then search for the first ld in PATH.
8559 elif test "$with_gnu_ld" = yes; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8561 $as_echo_n "checking for GNU ld... " >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8564 $as_echo_n "checking for non-GNU ld... " >&6; }
8566 if test "${acl_cv_path_LD+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8569 if test -z "$LD"; then
8570 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8571 for ac_dir
in $PATH; do
8572 test -z "$ac_dir" && ac_dir
=.
8573 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8574 acl_cv_path_LD
="$ac_dir/$ac_prog"
8575 # Check to see if the program is GNU ld. I'd rather use --version,
8576 # but apparently some GNU ld's only accept -v.
8577 # Break only if it was the GNU/non-GNU ld that we prefer.
8578 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8579 test "$with_gnu_ld" != no
&& break
8581 test "$with_gnu_ld" != yes && break
8587 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8591 LD
="$acl_cv_path_LD"
8592 if test -n "$LD"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8594 $as_echo "$LD" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8599 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8601 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8602 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
8605 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8606 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8607 acl_cv_prog_gnu_ld
=yes
8609 acl_cv_prog_gnu_ld
=no
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8613 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8614 with_gnu_ld
=$acl_cv_prog_gnu_ld
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8619 $as_echo_n "checking for shared library run path origin... " >&6; }
8620 if test "${acl_cv_rpath+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8624 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8625 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8632 $as_echo "$acl_cv_rpath" >&6; }
8634 libext
="$acl_cv_libext"
8635 shlibext
="$acl_cv_shlibext"
8636 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8637 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8638 hardcode_direct
="$acl_cv_hardcode_direct"
8639 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8640 # Check whether --enable-rpath was given.
8641 if test "${enable_rpath+set}" = set; then :
8642 enableval
=$enable_rpath; :
8656 acl_save_prefix
="$prefix"
8657 prefix
="$acl_final_prefix"
8658 acl_save_exec_prefix
="$exec_prefix"
8659 exec_prefix
="$acl_final_exec_prefix"
8661 eval additional_includedir
=\"$includedir\"
8662 eval additional_libdir
=\"$libdir\"
8664 exec_prefix
="$acl_save_exec_prefix"
8665 prefix
="$acl_save_prefix"
8668 # Check whether --with-libiconv-prefix was given.
8669 if test "${with_libiconv_prefix+set}" = set; then :
8670 withval
=$with_libiconv_prefix;
8671 if test "X$withval" = "Xno"; then
8674 if test "X$withval" = "X"; then
8676 acl_save_prefix
="$prefix"
8677 prefix
="$acl_final_prefix"
8678 acl_save_exec_prefix
="$exec_prefix"
8679 exec_prefix
="$acl_final_exec_prefix"
8681 eval additional_includedir
=\"$includedir\"
8682 eval additional_libdir
=\"$libdir\"
8684 exec_prefix
="$acl_save_exec_prefix"
8685 prefix
="$acl_save_prefix"
8688 additional_includedir
="$withval/include"
8689 additional_libdir
="$withval/lib"
8700 names_already_handled
=
8701 names_next_round
='iconv '
8702 while test -n "$names_next_round"; do
8703 names_this_round
="$names_next_round"
8705 for name
in $names_this_round; do
8707 for n
in $names_already_handled; do
8708 if test "$n" = "$name"; then
8713 if test -z "$already_handled"; then
8714 names_already_handled
="$names_already_handled $name"
8715 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8716 eval value
=\"\
$HAVE_LIB$uppername\"
8717 if test -n "$value"; then
8718 if test "$value" = yes; then
8719 eval value
=\"\
$LIB$uppername\"
8720 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8721 eval value
=\"\
$LTLIB$uppername\"
8722 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8731 if test $use_additional = yes; then
8732 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8733 found_dir
="$additional_libdir"
8734 found_so
="$additional_libdir/lib$name.$shlibext"
8735 if test -f "$additional_libdir/lib$name.la"; then
8736 found_la
="$additional_libdir/lib$name.la"
8739 if test -f "$additional_libdir/lib$name.$libext"; then
8740 found_dir
="$additional_libdir"
8741 found_a
="$additional_libdir/lib$name.$libext"
8742 if test -f "$additional_libdir/lib$name.la"; then
8743 found_la
="$additional_libdir/lib$name.la"
8748 if test "X$found_dir" = "X"; then
8749 for x
in $LDFLAGS $LTLIBICONV; do
8751 acl_save_prefix
="$prefix"
8752 prefix
="$acl_final_prefix"
8753 acl_save_exec_prefix
="$exec_prefix"
8754 exec_prefix
="$acl_final_exec_prefix"
8756 exec_prefix
="$acl_save_exec_prefix"
8757 prefix
="$acl_save_prefix"
8761 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8762 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8764 found_so
="$dir/lib$name.$shlibext"
8765 if test -f "$dir/lib$name.la"; then
8766 found_la
="$dir/lib$name.la"
8769 if test -f "$dir/lib$name.$libext"; then
8771 found_a
="$dir/lib$name.$libext"
8772 if test -f "$dir/lib$name.la"; then
8773 found_la
="$dir/lib$name.la"
8779 if test "X$found_dir" != "X"; then
8784 if test "X$found_dir" != "X"; then
8785 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8786 if test "X$found_so" != "X"; then
8787 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8788 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8791 for x
in $ltrpathdirs; do
8792 if test "X$x" = "X$found_dir"; then
8797 if test -z "$haveit"; then
8798 ltrpathdirs
="$ltrpathdirs $found_dir"
8800 if test "$hardcode_direct" = yes; then
8801 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8803 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8804 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8806 for x
in $rpathdirs; do
8807 if test "X$x" = "X$found_dir"; then
8812 if test -z "$haveit"; then
8813 rpathdirs
="$rpathdirs $found_dir"
8817 for x
in $LDFLAGS $LIBICONV; do
8819 acl_save_prefix
="$prefix"
8820 prefix
="$acl_final_prefix"
8821 acl_save_exec_prefix
="$exec_prefix"
8822 exec_prefix
="$acl_final_exec_prefix"
8824 exec_prefix
="$acl_save_exec_prefix"
8825 prefix
="$acl_save_prefix"
8827 if test "X$x" = "X-L$found_dir"; then
8832 if test -z "$haveit"; then
8833 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8835 if test "$hardcode_minus_L" != no
; then
8836 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8838 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8844 if test "X$found_a" != "X"; then
8845 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8847 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8850 additional_includedir
=
8851 case "$found_dir" in
8853 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8854 additional_includedir
="$basedir/include"
8857 if test "X$additional_includedir" != "X"; then
8858 if test "X$additional_includedir" != "X/usr/include"; then
8860 if test "X$additional_includedir" = "X/usr/local/include"; then
8861 if test -n "$GCC"; then
8863 linux
*) haveit
=yes;;
8867 if test -z "$haveit"; then
8868 for x
in $CPPFLAGS $INCICONV; do
8870 acl_save_prefix
="$prefix"
8871 prefix
="$acl_final_prefix"
8872 acl_save_exec_prefix
="$exec_prefix"
8873 exec_prefix
="$acl_final_exec_prefix"
8875 exec_prefix
="$acl_save_exec_prefix"
8876 prefix
="$acl_save_prefix"
8878 if test "X$x" = "X-I$additional_includedir"; then
8883 if test -z "$haveit"; then
8884 if test -d "$additional_includedir"; then
8885 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8891 if test -n "$found_la"; then
8892 save_libdir
="$libdir"
8894 */* |
*\\*) .
"$found_la" ;;
8895 *) .
"./$found_la" ;;
8897 libdir
="$save_libdir"
8898 for dep
in $dependency_libs; do
8901 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8902 if test "X$additional_libdir" != "X/usr/lib"; then
8904 if test "X$additional_libdir" = "X/usr/local/lib"; then
8905 if test -n "$GCC"; then
8907 linux
*) haveit
=yes;;
8911 if test -z "$haveit"; then
8913 for x
in $LDFLAGS $LIBICONV; do
8915 acl_save_prefix
="$prefix"
8916 prefix
="$acl_final_prefix"
8917 acl_save_exec_prefix
="$exec_prefix"
8918 exec_prefix
="$acl_final_exec_prefix"
8920 exec_prefix
="$acl_save_exec_prefix"
8921 prefix
="$acl_save_prefix"
8923 if test "X$x" = "X-L$additional_libdir"; then
8928 if test -z "$haveit"; then
8929 if test -d "$additional_libdir"; then
8930 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8934 for x
in $LDFLAGS $LTLIBICONV; do
8936 acl_save_prefix
="$prefix"
8937 prefix
="$acl_final_prefix"
8938 acl_save_exec_prefix
="$exec_prefix"
8939 exec_prefix
="$acl_final_exec_prefix"
8941 exec_prefix
="$acl_save_exec_prefix"
8942 prefix
="$acl_save_prefix"
8944 if test "X$x" = "X-L$additional_libdir"; then
8949 if test -z "$haveit"; then
8950 if test -d "$additional_libdir"; then
8951 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8958 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8959 if test "$enable_rpath" != no
; then
8961 for x
in $rpathdirs; do
8962 if test "X$x" = "X$dir"; then
8967 if test -z "$haveit"; then
8968 rpathdirs
="$rpathdirs $dir"
8971 for x
in $ltrpathdirs; do
8972 if test "X$x" = "X$dir"; then
8977 if test -z "$haveit"; then
8978 ltrpathdirs
="$ltrpathdirs $dir"
8983 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8986 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8989 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8990 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8996 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8997 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9003 if test "X$rpathdirs" != "X"; then
9004 if test -n "$hardcode_libdir_separator"; then
9006 for found_dir
in $rpathdirs; do
9007 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9009 acl_save_libdir
="$libdir"
9011 eval flag
=\"$hardcode_libdir_flag_spec\"
9012 libdir
="$acl_save_libdir"
9013 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9015 for found_dir
in $rpathdirs; do
9016 acl_save_libdir
="$libdir"
9018 eval flag
=\"$hardcode_libdir_flag_spec\"
9019 libdir
="$acl_save_libdir"
9020 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9024 if test "X$ltrpathdirs" != "X"; then
9025 for found_dir
in $ltrpathdirs; do
9026 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9036 am_save_CPPFLAGS
="$CPPFLAGS"
9038 for element
in $INCICONV; do
9040 for x
in $CPPFLAGS; do
9042 acl_save_prefix
="$prefix"
9043 prefix
="$acl_final_prefix"
9044 acl_save_exec_prefix
="$exec_prefix"
9045 exec_prefix
="$acl_final_exec_prefix"
9047 exec_prefix
="$acl_save_exec_prefix"
9048 prefix
="$acl_save_prefix"
9050 if test "X$x" = "X$element"; then
9055 if test -z "$haveit"; then
9056 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9062 $as_echo_n "checking for iconv... " >&6; }
9063 if test "${am_cv_func_iconv+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9067 am_cv_func_iconv
="no, consider installing GNU libiconv"
9069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9076 iconv_t cd = iconv_open("","");
9077 iconv(cd,NULL,NULL,NULL,NULL);
9083 if ac_fn_c_try_link
"$LINENO"; then :
9084 am_cv_func_iconv
=yes
9086 rm -f core conftest.err conftest.
$ac_objext \
9087 conftest
$ac_exeext conftest.
$ac_ext
9088 if test "$am_cv_func_iconv" != yes; then
9089 am_save_LIBS
="$LIBS"
9090 LIBS
="$LIBS $LIBICONV"
9091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9098 iconv_t cd = iconv_open("","");
9099 iconv(cd,NULL,NULL,NULL,NULL);
9105 if ac_fn_c_try_link
"$LINENO"; then :
9107 am_cv_func_iconv
=yes
9109 rm -f core conftest.err conftest.
$ac_objext \
9110 conftest
$ac_exeext conftest.
$ac_ext
9111 LIBS
="$am_save_LIBS"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9116 $as_echo "$am_cv_func_iconv" >&6; }
9117 if test "$am_cv_func_iconv" = yes; then
9119 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9122 if test "$am_cv_lib_iconv" = yes; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9124 $as_echo_n "checking how to link with libiconv... " >&6; }
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9126 $as_echo "$LIBICONV" >&6; }
9128 CPPFLAGS
="$am_save_CPPFLAGS"
9135 if test "$am_cv_func_iconv" = yes; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9137 $as_echo_n "checking for iconv declaration... " >&6; }
9138 if test "${am_cv_proto_iconv+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9151 #if defined(__STDC__) || defined(__cplusplus)
9152 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9165 if ac_fn_c_try_compile
"$LINENO"; then :
9166 am_cv_proto_iconv_arg1
=""
9168 am_cv_proto_iconv_arg1
="const"
9170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9171 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);"
9174 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9176 }$am_cv_proto_iconv" >&5
9178 }$am_cv_proto_iconv" >&6; }
9180 cat >>confdefs.h
<<_ACEOF
9181 #define ICONV_CONST $am_cv_proto_iconv_arg1
9186 # Until we have in-tree GNU iconv:
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9192 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9193 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9207 if ac_fn_c_try_link
"$LINENO"; then :
9208 am_cv_val_LC_MESSAGES
=yes
9210 am_cv_val_LC_MESSAGES
=no
9212 rm -f core conftest.err conftest.
$ac_objext \
9213 conftest
$ac_exeext conftest.
$ac_ext
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9216 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9217 if test $am_cv_val_LC_MESSAGES = yes; then
9219 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9226 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9227 if test "${am_cv_langinfo_codeset+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 #include <langinfo.h>
9236 char* cs = nl_langinfo(CODESET);
9241 if ac_fn_c_try_link
"$LINENO"; then :
9242 am_cv_langinfo_codeset
=yes
9244 am_cv_langinfo_codeset
=no
9246 rm -f core conftest.err conftest.
$ac_objext \
9247 conftest
$ac_exeext conftest.
$ac_ext
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9251 $as_echo "$am_cv_langinfo_codeset" >&6; }
9252 if test $am_cv_langinfo_codeset = yes; then
9254 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9259 # We will need to find libiberty.h and ansidecl.h
9260 saved_CFLAGS
="$CFLAGS"
9261 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9262 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
9263 strsignal strstr strverscmp \
9264 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9265 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
9267 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9269 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9270 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9271 $as_echo_n "(cached) " >&6
9273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9276 #define $ac_tr_decl 1
9278 #include "ansidecl.h"
9285 char *(*pfn) = (char *(*)) $ac_func ;
9291 if ac_fn_c_try_compile
"$LINENO"; then :
9292 eval "gcc_cv_have_decl_$ac_func=yes"
9294 eval "gcc_cv_have_decl_$ac_func=no"
9296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9299 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9301 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9302 #define $ac_tr_decl 1
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9307 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9308 #define $ac_tr_decl 0
9316 for ac_func
in getrlimit setrlimit getrusage
9318 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9320 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9321 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9322 $as_echo_n "(cached) " >&6
9324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9327 #define $ac_tr_decl 1
9329 #include "ansidecl.h"
9331 #ifdef HAVE_SYS_RESOURCE_H
9332 #include <sys/resource.h>
9340 char *(*pfn) = (char *(*)) $ac_func ;
9346 if ac_fn_c_try_compile
"$LINENO"; then :
9347 eval "gcc_cv_have_decl_$ac_func=yes"
9349 eval "gcc_cv_have_decl_$ac_func=no"
9351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9354 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9356 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9357 #define $ac_tr_decl 1
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9363 #define $ac_tr_decl 0
9371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9374 #include "ansidecl.h"
9376 #ifdef HAVE_SYS_RESOURCE_H
9377 #include <sys/resource.h>
9388 if ac_fn_c_try_compile
"$LINENO"; then :
9392 $as_echo "#define rlim_t long" >>confdefs.h
9395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9397 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9398 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9399 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9400 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9401 for ac_func
in ldgetname
9403 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9405 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9406 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9407 $as_echo_n "(cached) " >&6
9409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9412 #define $ac_tr_decl 1
9414 #include "ansidecl.h"
9427 char *(*pfn) = (char *(*)) $ac_func ;
9433 if ac_fn_c_try_compile
"$LINENO"; then :
9434 eval "gcc_cv_have_decl_$ac_func=yes"
9436 eval "gcc_cv_have_decl_$ac_func=no"
9438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9441 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9443 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9444 #define $ac_tr_decl 1
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9450 #define $ac_tr_decl 0
9458 for ac_func
in times
9460 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9462 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9463 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9464 $as_echo_n "(cached) " >&6
9466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9469 #define $ac_tr_decl 1
9471 #include "ansidecl.h"
9473 #ifdef HAVE_SYS_TIMES_H
9474 #include <sys/times.h>
9482 char *(*pfn) = (char *(*)) $ac_func ;
9488 if ac_fn_c_try_compile
"$LINENO"; then :
9489 eval "gcc_cv_have_decl_$ac_func=yes"
9491 eval "gcc_cv_have_decl_$ac_func=no"
9493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9496 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9498 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9499 #define $ac_tr_decl 1
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9505 #define $ac_tr_decl 0
9513 for ac_func
in sigaltstack
9515 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9517 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9518 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9519 $as_echo_n "(cached) " >&6
9521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9524 #define $ac_tr_decl 1
9526 #include "ansidecl.h"
9535 char *(*pfn) = (char *(*)) $ac_func ;
9541 if ac_fn_c_try_compile
"$LINENO"; then :
9542 eval "gcc_cv_have_decl_$ac_func=yes"
9544 eval "gcc_cv_have_decl_$ac_func=no"
9546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9549 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9551 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9552 #define $ac_tr_decl 1
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9558 #define $ac_tr_decl 0
9566 # More time-related stuff.
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9568 $as_echo_n "checking for struct tms... " >&6; }
9569 if test "${ac_cv_struct_tms+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
9573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9576 #include "ansidecl.h"
9578 #ifdef HAVE_SYS_TIMES_H
9579 #include <sys/times.h>
9590 if ac_fn_c_try_compile
"$LINENO"; then :
9591 ac_cv_struct_tms
=yes
9595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
9598 $as_echo "$ac_cv_struct_tms" >&6; }
9599 if test $ac_cv_struct_tms = yes; then
9601 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
9605 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9606 # revisit after autoconf 2.50.
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
9608 $as_echo_n "checking for clock_t... " >&6; }
9609 if test "${gcc_cv_type_clock_t+set}" = set; then :
9610 $as_echo_n "(cached) " >&6
9613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9616 #include "ansidecl.h"
9627 if ac_fn_c_try_compile
"$LINENO"; then :
9628 gcc_cv_type_clock_t
=yes
9630 gcc_cv_type_clock_t
=no
9632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
9635 $as_echo "$gcc_cv_type_clock_t" >&6; }
9636 if test $gcc_cv_type_clock_t = yes; then
9638 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
9642 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9643 CFLAGS
="$saved_CFLAGS"
9645 # Check whether --enable-initfini-array was given.
9646 if test "${enable_initfini_array+set}" = set; then :
9647 enableval
=$enable_initfini_array;
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
9651 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
9652 if test "${gcc_cv_initfini_array+set}" = set; then :
9653 $as_echo_n "(cached) " >&6
9655 if test "$cross_compiling" = yes; then :
9656 gcc_cv_initfini_array
=no
9658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9662 int main (void) { return x; }
9663 int foo (void) { x = 0; }
9664 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9666 if ac_fn_c_try_run
"$LINENO"; then :
9667 gcc_cv_initfini_array
=yes
9669 gcc_cv_initfini_array
=no
9671 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9672 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
9677 $as_echo "$gcc_cv_initfini_array" >&6; }
9678 enable_initfini_array
=$gcc_cv_initfini_array
9682 if test $enable_initfini_array = yes; then
9684 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
9688 # mkdir takes a single argument on some systems.
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
9690 $as_echo_n "checking if mkdir takes one argument... " >&6; }
9691 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9697 #include <sys/types.h>
9698 #ifdef HAVE_SYS_STAT_H
9699 # include <sys/stat.h>
9701 #ifdef HAVE_UNISTD_H
9702 # include <unistd.h>
9704 #ifdef HAVE_DIRECT_H
9705 # include <direct.h>
9715 if ac_fn_c_try_compile
"$LINENO"; then :
9716 gcc_cv_mkdir_takes_one_arg
=no
9718 gcc_cv_mkdir_takes_one_arg
=yes
9720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
9723 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
9724 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9726 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
9737 # With Setjmp/Longjmp based exception handling.
9738 # Check whether --enable-sjlj-exceptions was given.
9739 if test "${enable_sjlj_exceptions+set}" = set; then :
9740 enableval
=$enable_sjlj_exceptions; case $target in
9742 if test $enableval != yes; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
9744 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
9749 force_sjlj_exceptions
=yes
9753 force_sjlj_exceptions
=yes
9757 force_sjlj_exceptions
=no
9762 if test $force_sjlj_exceptions = yes; then
9763 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
9765 cat >>confdefs.h
<<_ACEOF
9766 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9771 # For platforms with the unwind ABI which includes an unwind library,
9772 # libunwind, we can choose to use the system libunwind.
9773 # config.gcc also contains tests of with_system_libunwind.
9776 # Check whether --with-system-libunwind was given.
9777 if test "${with_system_libunwind+set}" = set; then :
9778 withval
=$with_system_libunwind;
9781 # If system-libunwind was not specifically set, pick a default setting.
9782 if test x
$with_system_libunwind = x
; then
9784 ia64-
*-hpux*) with_system_libunwind
=yes ;;
9785 *) with_system_libunwind
=no
;;
9788 # Based on system-libunwind and target, do we have ipinfo?
9789 if test x
$with_system_libunwind = xyes
; then
9791 ia64-
*-*) have_unwind_getipinfo
=no
;;
9792 *) have_unwind_getipinfo
=yes ;;
9795 # Darwin before version 9 does not have _Unwind_GetIPInfo.
9798 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
9799 *) have_unwind_getipinfo
=yes ;;
9804 if test x
$have_unwind_getipinfo = xyes
; then
9806 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
9811 # --------------------------------------------------------
9812 # Build, host, and target specific configuration fragments
9813 # --------------------------------------------------------
9815 # Collect build-machine-specific information.
9816 .
${srcdir}/config.build
9818 # Collect host-machine-specific information.
9819 .
${srcdir}/config.
host
9823 # Collect target-machine-specific information.
9824 .
${srcdir}/config.gcc
9826 extra_objs
="${host_extra_objs} ${extra_objs}"
9827 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
9829 # Default the target-machine variables that were not explicitly set.
9830 if test x
"$tm_file" = x
9831 then tm_file
=$cpu_type/$cpu_type.h
; fi
9833 if test x
"$extra_headers" = x
9834 then extra_headers
=; fi
9836 if test x
$md_file = x
9837 then md_file
=$cpu_type/$cpu_type.md
; fi
9839 if test x
$out_file = x
9840 then out_file
=$cpu_type/$cpu_type.c
; fi
9842 if test x
"$tmake_file" = x
9843 then tmake_file
=$cpu_type/t-
$cpu_type
9846 if test x
"$dwarf2" = xyes
9847 then tm_file
="$tm_file tm-dwarf2.h"
9850 # Say what files are being used for the output code and MD file.
9851 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9852 echo "Using \`$srcdir/config/$md_file' as machine description file."
9854 # If any of the xm_file variables contain nonexistent files, warn
9855 # about them and drop them.
9858 for x
in $build_xm_file; do
9859 if test -f $srcdir/config
/$x
9861 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9862 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9868 for x
in $host_xm_file; do
9869 if test -f $srcdir/config
/$x
9871 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9872 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9878 for x
in $xm_file; do
9879 if test -f $srcdir/config
/$x
9881 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9882 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9888 for f
in $tm_file; do
9891 if test $count = ax
; then
9892 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9894 echo "Using the following target machine macro files:"
9895 for f
in $tm_file; do
9896 echo " $srcdir/config/$f"
9900 if test x
$need_64bit_hwint = xyes
; then
9902 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
9906 if test x
$use_long_long_for_widest_fast_int = xyes
; then
9908 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
9913 for f
in $host_xm_file; do
9916 if test $count = a
; then
9918 elif test $count = ax
; then
9919 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9921 echo "Using the following host machine macro files:"
9922 for f
in $host_xm_file; do
9923 echo " $srcdir/config/$f"
9926 echo "Using ${out_host_hook_obj} for host machine hooks."
9928 if test "$host_xm_file" != "$build_xm_file"; then
9930 for f
in $build_xm_file; do
9933 if test $count = a
; then
9935 elif test $count = ax
; then
9936 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9938 echo "Using the following build machine macro files:"
9939 for f
in $build_xm_file; do
9940 echo " $srcdir/config/$f"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
9948 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
9949 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9955 #include <sys/cdefs.h>
9956 #include <sys/signal.h>
9957 #include <ucontext.h>
9958 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
9961 if ac_fn_c_try_compile
"$LINENO"; then :
9962 gcc_cv_mcontext_underscores
=no
9964 gcc_cv_mcontext_underscores
=yes
9966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
9969 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
9970 if test $gcc_cv_mcontext_underscores = yes; then
9972 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
9982 # Check if a valid thread package
9983 case ${enable_threads} in
9986 target_thread_file
='single'
9990 target_thread_file
='single'
9992 aix | dce | gnat | irix | posix | posix95 | rtems | \
9993 single | solaris | vxworks | win32 | mipssde
)
9994 target_thread_file
=${enable_threads}
9997 echo "${enable_threads} is an unknown thread package" 1>&2
10002 if test x
${thread_file} = x
; then
10003 # No thread file set by target-specific clauses in config.gcc,
10004 # so use file chosen by default logic above
10005 thread_file
=${target_thread_file}
10008 # Make gthr-default.h if we have a thread file.
10010 if test $thread_file != single
; then
10011 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10012 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10013 rm -f gthr-default.h-t
10015 mv -f gthr-default.h-t gthr-default.h
10017 gthread_flags
=-DHAVE_GTHR_DEFAULT
10026 if test x
$enable___cxa_atexit = xyes || \
10027 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10028 if test x
$host = x
$target; then
10030 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10031 # keyed to flag_use_cxa_atexit
10036 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10037 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10040 echo "__cxa_atexit can't be enabled on this target"
10046 # We can't check for __cxa_atexit when building a cross, so assume
10050 if test x
$use_cxa_atexit = xyes
; then
10052 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10057 # Look for a file containing extra machine modes.
10058 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10059 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10062 cat >>confdefs.h
<<_ACEOF
10063 #define EXTRA_MODES_FILE "config/$extra_modes"
10068 # Convert extra_options into a form suitable for Makefile use.
10070 for f
in $extra_options; do
10071 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10075 # auto-host.h is the file containing items generated by autoconf and is
10076 # the first file included by config.h.
10077 # If host=build, it is correct to have bconfig include auto-host.h
10078 # as well. If host!=build, we are in error and need to do more
10079 # work to find out the build config parameters.
10080 if test x
$host = x
$build
10082 build_auto
=auto-host.h
10084 # We create a subdir, then run autoconf in the subdir.
10085 # To prevent recursion we set host and build for the new
10086 # invocation of configure to the build for this invocation
10093 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10094 *) realsrcdir
=..
/${srcdir};;
10096 saved_CFLAGS
="${CFLAGS}"
10097 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10098 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10099 ${realsrcdir}/configure \
10100 --enable-languages=${enable_languages-all} \
10101 --target=$target_alias --host=$build_alias --build=$build_alias
10102 CFLAGS
="${saved_CFLAGS}"
10104 # We just finished tests for the build machine, so rename
10105 # the file auto-build.h in the gcc directory.
10106 mv auto-host.h ..
/auto-build.h
10109 build_auto
=auto-build.h
10113 tm_file
="${tm_file} defaults.h"
10114 tm_p_file
="${tm_p_file} tm-preds.h"
10115 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10116 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10117 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10118 # put this back in temporarily.
10119 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10125 # Compile in configure arguments.
10126 if test -f configargs.h
; then
10127 # Being re-configured.
10128 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10129 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10131 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10134 # Double all backslashes and backslash all quotes to turn
10135 # gcc_config_arguments into a C string.
10136 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10137 $gcc_config_arguments
10139 gcc_config_arguments_str
=`cat conftest.out`
10142 cat > configargs.h
<<EOF
10143 /* Generated automatically. */
10144 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10145 static const char thread_model[] = "$thread_file";
10147 static const struct {
10148 const char *name, *value;
10149 } configure_default_options[] = $configure_default_options;
10152 gcc_BASEVER
=`cat $srcdir/BASE-VER`
10153 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
10154 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
10155 if test -f $srcdir/REVISION
; then
10156 gcc_REVISION
=`cat $srcdir/REVISION`
10160 cat > plugin-version.h
<<EOF
10161 #include "configargs.h"
10163 static char basever[] = "$gcc_BASEVER";
10164 static char datestamp[] = "$gcc_DATESTAMP";
10165 static char devphase[] = "$gcc_DEVPHASE";
10166 static char revision[] = "$gcc_REVISION";
10168 /* FIXME plugins: We should make the version information more precise.
10169 One way to do is to add a checksum. */
10171 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10172 devphase, revision,
10173 configuration_arguments};
10176 # Internationalization
10177 # If we haven't got the data from the intl directory,
10178 # assume NLS is disabled.
10187 if test -f ..
/intl
/config.intl
; then
10188 . ..
/intl
/config.intl
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10191 $as_echo_n "checking whether NLS is requested... " >&6; }
10192 if test x
"$USE_NLS" != xyes
; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10194 $as_echo "no" >&6; }
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10197 $as_echo "yes" >&6; }
10199 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10203 $as_echo_n "checking for catalogs to be installed... " >&6; }
10204 # Look for .po and .gmo files in the source directory.
10207 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10208 # If there aren't any .gmo files the shell will give us the
10209 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10211 case "$cat" in *\
**)
10214 # The quadruple backslash is collapsed to a double backslash
10215 # by the backticks, then collapsed again by the double quotes,
10216 # leaving us with one backslash in the sed expression (right
10217 # before the dot that mustn't act as a wildcard).
10218 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10219 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10220 # The user is allowed to set LINGUAS to a list of languages to
10221 # install catalogs for. If it's empty that means "all of them."
10222 if test "x$LINGUAS" = x
; then
10223 CATALOGS
="$CATALOGS $cat"
10224 XLINGUAS
="$XLINGUAS $lang"
10226 case "$LINGUAS" in *$lang*)
10227 CATALOGS
="$CATALOGS $cat"
10228 XLINGUAS
="$XLINGUAS $lang"
10233 LINGUAS
="$XLINGUAS"
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10235 $as_echo "$LINGUAS" >&6; }
10248 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10249 # -liconv on the link line twice.
10250 case "$LIBINTL" in *$LIBICONV*)
10254 # Check whether --enable-secureplt was given.
10255 if test "${enable_secureplt+set}" = set; then :
10256 enableval
=$enable_secureplt;
10260 # Check whether --enable-cld was given.
10261 if test "${enable_cld+set}" = set; then :
10262 enableval
=$enable_cld;
10268 # Windows32 Registry support for specifying GCC installation paths.
10269 # Check whether --enable-win32-registry was given.
10270 if test "${enable_win32_registry+set}" = set; then :
10271 enableval
=$enable_win32_registry;
10276 win32 | pe | cygwin
* | mingw32
* | uwin
*)
10277 if test "x$enable_win32_registry" != xno
; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10279 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10280 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10283 ac_func_search_save_LIBS
=$LIBS
10284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10287 /* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
10293 char RegOpenKeyExA ();
10297 return RegOpenKeyExA ();
10302 for ac_lib
in '' advapi32
; do
10303 if test -z "$ac_lib"; then
10304 ac_res
="none required"
10307 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10309 if ac_fn_c_try_link
"$LINENO"; then :
10310 ac_cv_search_RegOpenKeyExA
=$ac_res
10312 rm -f core conftest.err conftest.
$ac_objext \
10314 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10318 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10321 ac_cv_search_RegOpenKeyExA
=no
10323 rm conftest.
$ac_ext
10324 LIBS
=$ac_func_search_save_LIBS
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10327 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10328 ac_res
=$ac_cv_search_RegOpenKeyExA
10329 if test "$ac_res" != no
; then :
10330 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10333 enable_win32_registry
=no
10338 if test "x$enable_win32_registry" != xno
; then
10340 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10343 if test "x$enable_win32_registry" != xyes \
10344 && test "x$enable_win32_registry" != x
; then
10346 cat >>confdefs.h
<<_ACEOF
10347 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10355 # Get an absolute path to the GCC top-level source directory
10356 holddir
=`${PWDCMD-pwd}`
10358 topdir
=`${PWDCMD-pwd}`
10361 # Conditionalize the makefile for this host machine.
10363 for f
in ${host_xmake_file}
10365 if test -f ${srcdir}/config
/$f
10367 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
10371 # Conditionalize the makefile for this target machine.
10373 for f
in ${tmake_file}
10375 if test -f ${srcdir}/config
/$f
10377 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
10380 tmake_file
="${tmake_file_}"
10382 out_object_file
=`basename $out_file .c`.o
10384 tm_file_list
="options.h"
10385 tm_include_list
="options.h"
10386 for f
in $tm_file; do
10389 f
=`echo $f | sed 's/^..//'`
10390 tm_file_list
="${tm_file_list} $f"
10391 tm_include_list
="${tm_include_list} $f"
10394 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
10395 tm_include_list
="${tm_include_list} $f"
10398 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
10399 tm_include_list
="${tm_include_list} config/$f"
10406 for f
in $tm_p_file; do
10409 tm_p_file_list
="${tm_p_file_list} $f"
10410 tm_p_include_list
="${tm_p_include_list} $f"
10413 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
10414 tm_p_include_list
="${tm_p_include_list} config/$f"
10420 for f
in $xm_file; do
10423 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
10424 xm_include_list
="${xm_include_list} $f"
10427 xm_file_list
="${xm_file_list} $f"
10428 xm_include_list
="${xm_include_list} $f"
10431 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
10432 xm_include_list
="${xm_include_list} config/$f"
10438 host_xm_include_list
=
10439 for f
in $host_xm_file; do
10442 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
10443 host_xm_include_list
="${host_xm_include_list} $f"
10446 host_xm_file_list
="${host_xm_file_list} $f"
10447 host_xm_include_list
="${host_xm_include_list} $f"
10450 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
10451 host_xm_include_list
="${host_xm_include_list} config/$f"
10456 build_xm_file_list
=
10457 for f
in $build_xm_file; do
10460 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
10461 build_xm_include_list
="${build_xm_include_list} $f"
10463 auto-build.h | auto-host.h
)
10464 build_xm_file_list
="${build_xm_file_list} $f"
10465 build_xm_include_list
="${build_xm_include_list} $f"
10468 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
10469 build_xm_include_list
="${build_xm_include_list} config/$f"
10474 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10475 # cross-compiler which does not use the native headers and libraries.
10476 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10479 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10481 if test "x$with_build_sysroot" != x
; then
10482 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10484 # This value is used, even on a native system, because
10485 # CROSS_SYSTEM_HEADER_DIR is just
10486 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10487 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
10490 if test x
$host != x
$target
10492 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
10494 SYSTEM_HEADER_DIR
=$build_system_header_dir
10495 case "$host","$target" in
10496 # Darwin crosses can use the host system's libraries and headers,
10497 # because of the fat library support. Of course, it must be the
10498 # same version of Darwin on both sides. Allow the user to
10499 # just say --target=foo-darwin without a version number to mean
10500 # "the version on this system".
10501 *-*-darwin*,*-*-darwin*)
10502 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10503 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10504 if test $hostos = $targetos -o $targetos = darwin
; then
10506 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10511 i?
86-*-*,x86_64-
*-* \
10512 | powerpc
*-*-*,powerpc64
*-*-*)
10513 CROSS
="$CROSS -DNATIVE_CROSS" ;;
10515 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
10516 SYSTEM_HEADER_DIR
=$build_system_header_dir
10519 # If this is a cross-compiler that does not
10520 # have its own set of headers then define
10523 # If this is using newlib, without having the headers available now,
10524 # then define inhibit_libc in LIBGCC2_CFLAGS.
10525 # This prevents libgcc2 from containing any code which requires libc
10527 : ${inhibit_libc=false}
10528 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
10529 test x
$with_newlib = xyes
; } &&
10530 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
10535 # When building gcc with a cross-compiler, we need to adjust things so
10536 # that the generator programs are still built with the native compiler.
10537 # Also, we cannot run fixincludes.
10539 # These are the normal (build=host) settings:
10540 CC_FOR_BUILD
='$(CC)'
10541 BUILD_CFLAGS
='$(ALL_CFLAGS)'
10542 BUILD_LDFLAGS
='$(LDFLAGS)'
10543 STMP_FIXINC
=stmp-fixinc
10545 # And these apply if build != host, or we are generating coverage data
10546 if test x
$build != x
$host ||
test "x$coverage_flags" != x
10548 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10549 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
10552 # Expand extra_headers to include complete path.
10553 # This substitutes for lots of t-* files.
10554 extra_headers_list
=
10555 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10556 for file in ${extra_headers} ; do
10557 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10560 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10561 if test x
"$use_gcc_tgmath" = xyes
10562 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10565 # Define collect2 in Makefile.
10566 case $host_can_use_collect2 in
10568 *) collect2
='collect2$(exeext)' ;;
10572 # Add a definition of USE_COLLECT2 if system wants one.
10573 case $use_collect2 in
10574 no
) use_collect2
= ;;
10577 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
10578 xm_defines
="${xm_defines} USE_COLLECT2"
10579 case $host_can_use_collect2 in
10581 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
10587 # ---------------------------
10588 # Assembler & linker features
10589 # ---------------------------
10591 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
10592 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
10593 # However when ld-new is first executed from the build tree, libtool will
10594 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
10595 # to the build tree. While doing this we need to use the previous-stage
10596 # linker, or we have an infinite loop. The presence of a shell script as
10597 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
10598 # the gcc/collect-ld script. So we need to know how libtool works, or
10599 # exec-tool will fail.
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10605 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10610 macro_version
='2.2.6'
10611 macro_revision
='1.3012'
10625 ltmain
="$ac_aux_dir/ltmain.sh"
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10628 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10629 if test "${ac_cv_path_SED+set}" = set; then :
10630 $as_echo_n "(cached) " >&6
10632 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
10633 for ac_i
in 1 2 3 4 5 6 7; do
10634 ac_script
="$ac_script$as_nl$ac_script"
10636 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
10637 { ac_script
=; unset ac_script
;}
10638 if test -z "$SED"; then
10639 ac_path_SED_found
=false
10640 # Loop through the user's path and test for each of PROGNAME-LIST
10641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10642 for as_dir
in $PATH
10645 test -z "$as_dir" && as_dir
=.
10646 for ac_prog
in sed gsed
; do
10647 for ac_exec_ext
in '' $ac_executable_extensions; do
10648 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
10649 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
10650 # Check for GNU ac_path_SED and select it if it is found.
10651 # Check for GNU $ac_path_SED
10652 case `"$ac_path_SED" --version 2>&1` in
10654 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
10657 $as_echo_n 0123456789 >"conftest.in"
10660 cat "conftest.in" "conftest.in" >"conftest.tmp"
10661 mv "conftest.tmp" "conftest.in"
10662 cp "conftest.in" "conftest.nl"
10663 $as_echo '' >> "conftest.nl"
10664 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
10665 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
10666 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
10667 if test $ac_count -gt ${ac_path_SED_max-0}; then
10668 # Best one so far, save it but keep looking for a better one
10669 ac_cv_path_SED
="$ac_path_SED"
10670 ac_path_SED_max
=$ac_count
10672 # 10*(2^10) chars as input seems more than enough
10673 test $ac_count -gt 10 && break
10675 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
10678 $ac_path_SED_found && break 3
10683 if test -z "$ac_cv_path_SED"; then
10684 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
10687 ac_cv_path_SED
=$SED
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10692 $as_echo "$ac_cv_path_SED" >&6; }
10693 SED
="$ac_cv_path_SED"
10696 test -z "$SED" && SED
=sed
10697 Xsed
="$SED -e 1s/^X//"
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10710 $as_echo_n "checking for fgrep... " >&6; }
10711 if test "${ac_cv_path_FGREP+set}" = set; then :
10712 $as_echo_n "(cached) " >&6
10714 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
10715 then ac_cv_path_FGREP
="$GREP -F"
10717 if test -z "$FGREP"; then
10718 ac_path_FGREP_found
=false
10719 # Loop through the user's path and test for each of PROGNAME-LIST
10720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10721 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
10724 test -z "$as_dir" && as_dir
=.
10725 for ac_prog
in fgrep
; do
10726 for ac_exec_ext
in '' $ac_executable_extensions; do
10727 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
10728 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
10729 # Check for GNU ac_path_FGREP and select it if it is found.
10730 # Check for GNU $ac_path_FGREP
10731 case `"$ac_path_FGREP" --version 2>&1` in
10733 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
10736 $as_echo_n 0123456789 >"conftest.in"
10739 cat "conftest.in" "conftest.in" >"conftest.tmp"
10740 mv "conftest.tmp" "conftest.in"
10741 cp "conftest.in" "conftest.nl"
10742 $as_echo 'FGREP' >> "conftest.nl"
10743 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
10744 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
10745 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
10746 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10747 # Best one so far, save it but keep looking for a better one
10748 ac_cv_path_FGREP
="$ac_path_FGREP"
10749 ac_path_FGREP_max
=$ac_count
10751 # 10*(2^10) chars as input seems more than enough
10752 test $ac_count -gt 10 && break
10754 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
10757 $ac_path_FGREP_found && break 3
10762 if test -z "$ac_cv_path_FGREP"; then
10763 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10766 ac_cv_path_FGREP
=$FGREP
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10772 $as_echo "$ac_cv_path_FGREP" >&6; }
10773 FGREP
="$ac_cv_path_FGREP"
10776 test -z "$GREP" && GREP
=grep
10796 # Check whether --with-gnu-ld was given.
10797 if test "${with_gnu_ld+set}" = set; then :
10798 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10804 if test "$GCC" = yes; then
10805 # Check if gcc -print-prog-name=ld gives a path.
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10807 $as_echo_n "checking for ld used by $CC... " >&6; }
10810 # gcc leaves a trailing carriage return which upsets mingw
10811 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10813 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10816 # Accept absolute paths.
10818 re_direlt
='/[^/][^/]*/\.\./'
10819 # Canonicalize the pathname of ld
10820 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10821 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
10822 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10824 test -z "$LD" && LD
="$ac_prog"
10827 # If it fails, then pretend we aren't using GCC.
10831 # If it is relative, then search for the first ld in PATH.
10832 with_gnu_ld
=unknown
10835 elif test "$with_gnu_ld" = yes; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10837 $as_echo_n "checking for GNU ld... " >&6; }
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10840 $as_echo_n "checking for non-GNU ld... " >&6; }
10842 if test "${lt_cv_path_LD+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10845 if test -z "$LD"; then
10846 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
10847 for ac_dir
in $PATH; do
10849 test -z "$ac_dir" && ac_dir
=.
10850 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10851 lt_cv_path_LD
="$ac_dir/$ac_prog"
10852 # Check to see if the program is GNU ld. I'd rather use --version,
10853 # but apparently some variants of GNU ld only accept -v.
10854 # Break only if it was the GNU/non-GNU ld that we prefer.
10855 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10856 *GNU
* |
*'with BFD'*)
10857 test "$with_gnu_ld" != no
&& break
10860 test "$with_gnu_ld" != yes && break
10867 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
10871 LD
="$lt_cv_path_LD"
10872 if test -n "$LD"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10874 $as_echo "$LD" >&6; }
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10879 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10881 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10882 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10885 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10886 case `$LD -v 2>&1 </dev/null` in
10887 *GNU
* |
*'with BFD'*)
10888 lt_cv_prog_gnu_ld
=yes
10891 lt_cv_prog_gnu_ld
=no
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10896 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10897 with_gnu_ld
=$lt_cv_prog_gnu_ld
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10908 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10909 if test "${lt_cv_path_NM+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10912 if test -n "$NM"; then
10913 # Let the user override the test.
10914 lt_cv_path_NM
="$NM"
10916 lt_nm_to_check
="${ac_tool_prefix}nm"
10917 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10918 lt_nm_to_check
="$lt_nm_to_check nm"
10920 for lt_tmp_nm
in $lt_nm_to_check; do
10921 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
10922 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
10924 test -z "$ac_dir" && ac_dir
=.
10925 tmp_nm
="$ac_dir/$lt_tmp_nm"
10926 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
10927 # Check to see if the nm accepts a BSD-compat flag.
10928 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10929 # nm: unknown option "B" ignored
10930 # Tru64's nm complains that /dev/null is an invalid object file
10931 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10932 */dev
/null
* |
*'Invalid file or object type'*)
10933 lt_cv_path_NM
="$tmp_nm -B"
10937 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10939 lt_cv_path_NM
="$tmp_nm -p"
10943 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10944 continue # so that we can try to find one that supports BSD flags
10953 : ${lt_cv_path_NM=no}
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10957 $as_echo "$lt_cv_path_NM" >&6; }
10958 if test "$lt_cv_path_NM" != "no"; then
10959 NM
="$lt_cv_path_NM"
10961 # Didn't find any BSD compatible name lister, look for dumpbin.
10962 if test -n "$ac_tool_prefix"; then
10963 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
10965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10966 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10972 if test -n "$DUMPBIN"; then
10973 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
10975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10976 for as_dir
in $PATH
10979 test -z "$as_dir" && as_dir
=.
10980 for ac_exec_ext
in '' $ac_executable_extensions; do
10981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10982 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
10983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 DUMPBIN
=$ac_cv_prog_DUMPBIN
10993 if test -n "$DUMPBIN"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10995 $as_echo "$DUMPBIN" >&6; }
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
11002 test -n "$DUMPBIN" && break
11005 if test -z "$DUMPBIN"; then
11006 ac_ct_DUMPBIN
=$DUMPBIN
11007 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
11009 # Extract the first word of "$ac_prog", so it can be a program name with args.
11010 set dummy
$ac_prog; ac_word
=$2
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012 $as_echo_n "checking for $ac_word... " >&6; }
11013 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11014 $as_echo_n "(cached) " >&6
11016 if test -n "$ac_ct_DUMPBIN"; then
11017 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11020 for as_dir
in $PATH
11023 test -z "$as_dir" && as_dir
=.
11024 for ac_exec_ext
in '' $ac_executable_extensions; do
11025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11026 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
11037 if test -n "$ac_ct_DUMPBIN"; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11039 $as_echo "$ac_ct_DUMPBIN" >&6; }
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11046 test -n "$ac_ct_DUMPBIN" && break
11049 if test "x$ac_ct_DUMPBIN" = x
; then
11052 case $cross_compiling:$ac_tool_warned in
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11056 ac_tool_warned
=yes ;;
11058 DUMPBIN
=$ac_ct_DUMPBIN
11063 if test "$DUMPBIN" != ":"; then
11067 test -z "$NM" && NM
=nm
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11075 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11076 if test "${lt_cv_nm_interface+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11079 lt_cv_nm_interface
="BSD nm"
11080 echo "int some_variable = 0;" > conftest.
$ac_ext
11081 (eval echo "\"\$as_me:11081: $ac_compile\"" >&5)
11082 (eval "$ac_compile" 2>conftest.err
)
11083 cat conftest.err
>&5
11084 (eval echo "\"\$as_me:11084: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11085 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
11086 cat conftest.err
>&5
11087 (eval echo "\"\$as_me:11087: output\"" >&5)
11088 cat conftest.out
>&5
11089 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
11090 lt_cv_nm_interface
="MS dumpbin"
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11095 $as_echo "$lt_cv_nm_interface" >&6; }
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11098 $as_echo_n "checking whether ln -s works... " >&6; }
11100 if test "$LN_S" = "ln -s"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11102 $as_echo "yes" >&6; }
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11105 $as_echo "no, using $LN_S" >&6; }
11108 # find the maximum length of command line arguments
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11110 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11111 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11119 # On DJGPP, this test can blow up pretty badly due to problems in libc
11120 # (any single argument exceeding 2000 bytes causes a buffer overrun
11121 # during glob expansion). Even if it were fixed, the result of this
11122 # check would be larger than it should be.
11123 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11127 # Under GNU Hurd, this test is not required because there is
11128 # no limit to the length of command line arguments.
11129 # Libtool will interpret -1 as no limit whatsoever
11130 lt_cv_sys_max_cmd_len
=-1;
11133 cygwin
* | mingw
* | cegcc
*)
11134 # On Win9x/ME, this test blows up -- it succeeds, but takes
11135 # about 5 minutes as the teststring grows exponentially.
11136 # Worse, since 9x/ME are not pre-emptively multitasking,
11137 # you end up with a "frozen" computer, even though with patience
11138 # the test eventually succeeds (with a max line length of 256k).
11139 # Instead, let's just punt: use the minimum linelength reported by
11140 # all of the supported platforms: 8192 (on NT/2K/XP).
11141 lt_cv_sys_max_cmd_len
=8192;
11145 # On AmigaOS with pdksh, this test takes hours, literally.
11146 # So we just punt and use a minimum line length of 8192.
11147 lt_cv_sys_max_cmd_len
=8192;
11150 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11151 # This has been around since 386BSD, at least. Likely further.
11152 if test -x /sbin
/sysctl
; then
11153 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11154 elif test -x /usr
/sbin
/sysctl
; then
11155 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11157 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11159 # And add a safety zone
11160 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11161 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11165 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11166 lt_cv_sys_max_cmd_len
=196608
11170 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11171 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11172 # nice to cause kernel panics so lets avoid the loop below.
11173 # First set a reasonable default.
11174 lt_cv_sys_max_cmd_len
=16384
11176 if test -x /sbin
/sysconfig
; then
11177 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11178 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11183 lt_cv_sys_max_cmd_len
=102400
11185 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11186 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11187 if test -n "$kargmax"; then
11188 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11190 lt_cv_sys_max_cmd_len
=32768
11194 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11195 if test -n "$lt_cv_sys_max_cmd_len"; then
11196 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11197 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11199 # Make teststring a little bigger before we do anything with it.
11200 # a 1K string should be a reasonable start.
11201 for i
in 1 2 3 4 5 6 7 8 ; do
11202 teststring
=$teststring$teststring
11204 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11205 # If test is not a shell built-in, we'll probably end up computing a
11206 # maximum length that is only half of the actual maximum length, but
11208 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11209 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
11210 test $i != 17 # 1/2 MB should be enough
11213 teststring
=$teststring$teststring
11215 # Only check the string length outside the loop.
11216 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
11218 # Add a significant safety factor because C++ compilers can tack on
11219 # massive amounts of additional arguments before passing them to the
11220 # linker. It appears as though 1/2 is a usable value.
11221 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11228 if test -n $lt_cv_sys_max_cmd_len ; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11230 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11233 $as_echo "none" >&6; }
11235 max_cmd_len
=$lt_cv_sys_max_cmd_len
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11247 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11248 # Try some XSI features
11250 ( _lt_dummy
="a/b/c"
11251 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11253 && eval 'test $(( 1 + 1 )) -eq 2 \
11254 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
11257 $as_echo "$xsi_shell" >&6; }
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
11261 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
11263 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
11265 && lt_shell_append=yes
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
11267 $as_echo "$lt_shell_append" >&6; }
11270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11280 # test EBCDIC or ASCII
11281 case `echo X|tr X '\101'` in
11282 A) # ASCII based system
11283 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11284 lt_SP2NL='tr \040 \012'
11285 lt_NL2SP='tr \015\012 \040\040'
11287 *) # EBCDIC based system
11288 lt_SP2NL='tr \100 \n'
11289 lt_NL2SP='tr \r\n \100\100'
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
11302 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
11303 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11304 $as_echo_n "(cached
) " >&6
11306 lt_cv_ld_reload_flag='-r'
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
11309 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11310 reload_flag=$lt_cv_ld_reload_flag
11311 case $reload_flag in
11313 *) reload_flag=" $reload_flag" ;;
11315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11318 if test "$GCC" = yes; then
11319 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11321 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11334 if test -n "$ac_tool_prefix"; then
11335 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
11336 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11338 $as_echo_n "checking
for $ac_word...
" >&6; }
11339 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11340 $as_echo_n "(cached
) " >&6
11342 if test -n "$OBJDUMP"; then
11343 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11352 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11362 OBJDUMP=$ac_cv_prog_OBJDUMP
11363 if test -n "$OBJDUMP"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
11365 $as_echo "$OBJDUMP" >&6; }
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11368 $as_echo "no
" >&6; }
11373 if test -z "$ac_cv_prog_OBJDUMP"; then
11374 ac_ct_OBJDUMP=$OBJDUMP
11375 # Extract the first word of "objdump
", so it can be a program name with args.
11376 set dummy objdump; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11378 $as_echo_n "checking
for $ac_word...
" >&6; }
11379 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11380 $as_echo_n "(cached
) " >&6
11382 if test -n "$ac_ct_OBJDUMP"; then
11383 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11392 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11402 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11403 if test -n "$ac_ct_OBJDUMP"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
11405 $as_echo "$ac_ct_OBJDUMP" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11408 $as_echo "no
" >&6; }
11411 if test "x
$ac_ct_OBJDUMP" = x; then
11414 case $cross_compiling:$ac_tool_warned in
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11417 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11418 ac_tool_warned=yes ;;
11420 OBJDUMP=$ac_ct_OBJDUMP
11423 OBJDUMP="$ac_cv_prog_OBJDUMP"
11426 test -z "$OBJDUMP" && OBJDUMP=objdump
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
11437 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
11438 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11439 $as_echo_n "(cached
) " >&6
11441 lt_cv_file_magic_cmd='$MAGIC_CMD'
11442 lt_cv_file_magic_test_file=
11443 lt_cv_deplibs_check_method='unknown'
11444 # Need to set the preceding variable on all platforms that support
11445 # interlibrary dependencies.
11446 # 'none' -- dependencies not supported.
11447 # `unknown' -- same as none, but documents that we really don't know.
11448 # 'pass_all' -- all dependencies passed with no checks.
11449 # 'test_compile' -- check by making test program.
11450 # 'file_magic [[regex]]' -- check by looking for files in library path
11451 # which responds to the $file_magic_cmd with a given extended regex.
11452 # If you have `file' or equivalent on your system and you're not sure
11453 # whether `pass_all' will *always* work, you probably want this one.
11457 lt_cv_deplibs_check_method=pass_all
11461 lt_cv_deplibs_check_method=pass_all
11465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11466 lt_cv_file_magic_cmd='/usr/bin/file -L'
11467 lt_cv_file_magic_test_file=/shlib/libc.so
11471 # func_win32_libid is a shell function defined in ltmain.sh
11472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11473 lt_cv_file_magic_cmd='func_win32_libid'
11477 # Base MSYS/MinGW do not provide the 'file' command needed by
11478 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11479 # unless we find 'file', for example because we are cross-compiling.
11480 if ( file / ) >/dev/null 2>&1; then
11481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11482 lt_cv_file_magic_cmd='func_win32_libid'
11484 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11485 lt_cv_file_magic_cmd='$OBJDUMP -f'
11490 # use the weaker test based on 'objdump'. See mingw*.
11491 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11492 lt_cv_file_magic_cmd='$OBJDUMP -f'
11495 darwin* | rhapsody*)
11496 lt_cv_deplibs_check_method=pass_all
11499 freebsd* | dragonfly*)
11500 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11503 # Not sure whether the presence of OpenBSD here was a mistake.
11504 # Let's accept both of them until this is cleared up.
11505 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11506 lt_cv_file_magic_cmd=/usr/bin/file
11507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11511 lt_cv_deplibs_check_method=pass_all
11516 lt_cv_deplibs_check_method=pass_all
11519 hpux10.20* | hpux11*)
11520 lt_cv_file_magic_cmd=/usr/bin/file
11523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11524 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11527 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]'
11528 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11532 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11538 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11542 irix5* | irix6* | nonstopux*)
11544 *-32|*"-32 ") libmagic=32-bit;;
11545 *-n32|*"-n32 ") libmagic=N32;;
11546 *-64|*"-64 ") libmagic=64-bit;;
11547 *) libmagic=never-match;;
11549 lt_cv_deplibs_check_method=pass_all
11552 # This must be Linux ELF.
11553 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11554 lt_cv_deplibs_check_method=pass_all
11558 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11567 lt_cv_file_magic_cmd=/usr/bin/file
11568 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11572 lt_cv_deplibs_check_method=pass_all
11576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
11577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11583 osf3* | osf4* | osf5*)
11584 lt_cv_deplibs_check_method=pass_all
11588 lt_cv_deplibs_check_method=pass_all
11592 lt_cv_deplibs_check_method=pass_all
11595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11596 lt_cv_deplibs_check_method=pass_all
11600 case $host_vendor in
11602 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]'
11603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11606 lt_cv_deplibs_check_method=pass_all
11609 lt_cv_file_magic_cmd='/bin/file'
11610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11613 lt_cv_file_magic_cmd='/bin/file'
11614 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
11615 lt_cv_file_magic_test_file=/lib/libc.so
11618 lt_cv_deplibs_check_method=pass_all
11621 lt_cv_deplibs_check_method=pass_all
11627 lt_cv_deplibs_check_method=pass_all
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
11633 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11634 file_magic_cmd=$lt_cv_file_magic_cmd
11635 deplibs_check_method=$lt_cv_deplibs_check_method
11636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11649 if test -n "$ac_tool_prefix"; then
11650 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11651 set dummy ${ac_tool_prefix}ar; ac_word=$2
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11653 $as_echo_n "checking
for $ac_word...
" >&6; }
11654 if test "${ac_cv_prog_AR+set}" = set; then :
11655 $as_echo_n "(cached
) " >&6
11657 if test -n "$AR"; then
11658 ac_cv_prog_AR="$AR" # Let the user override the test.
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667 ac_cv_prog_AR="${ac_tool_prefix}ar"
11668 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11678 if test -n "$AR"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11680 $as_echo "$AR" >&6; }
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11683 $as_echo "no
" >&6; }
11688 if test -z "$ac_cv_prog_AR"; then
11690 # Extract the first word of "ar", so it can be a program name with args.
11691 set dummy ar; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11693 $as_echo_n "checking
for $ac_word...
" >&6; }
11694 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11695 $as_echo_n "(cached
) " >&6
11697 if test -n "$ac_ct_AR"; then
11698 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11704 test -z "$as_dir" && as_dir=.
11705 for ac_exec_ext in '' $ac_executable_extensions; do
11706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11707 ac_cv_prog_ac_ct_AR="ar"
11708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11717 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11718 if test -n "$ac_ct_AR"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
11720 $as_echo "$ac_ct_AR" >&6; }
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11723 $as_echo "no
" >&6; }
11726 if test "x
$ac_ct_AR" = x; then
11729 case $cross_compiling:$ac_tool_warned in
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11732 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11733 ac_tool_warned=yes ;;
11738 AR="$ac_cv_prog_AR"
11741 test -z "$AR" && AR=ar
11742 test -z "$AR_FLAGS" && AR_FLAGS=cru
11754 if test -n "$ac_tool_prefix"; then
11755 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
11756 set dummy ${ac_tool_prefix}strip; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11758 $as_echo_n "checking
for $ac_word...
" >&6; }
11759 if test "${ac_cv_prog_STRIP+set}" = set; then :
11760 $as_echo_n "(cached
) " >&6
11762 if test -n "$STRIP"; then
11763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11772 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11782 STRIP=$ac_cv_prog_STRIP
11783 if test -n "$STRIP"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11785 $as_echo "$STRIP" >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11788 $as_echo "no
" >&6; }
11793 if test -z "$ac_cv_prog_STRIP"; then
11795 # Extract the first word of "strip
", so it can be a program name with args.
11796 set dummy strip; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11798 $as_echo_n "checking
for $ac_word...
" >&6; }
11799 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11800 $as_echo_n "(cached
) " >&6
11802 if test -n "$ac_ct_STRIP"; then
11803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_prog_ac_ct_STRIP="strip
"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11822 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11823 if test -n "$ac_ct_STRIP"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
11825 $as_echo "$ac_ct_STRIP" >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11828 $as_echo "no
" >&6; }
11831 if test "x
$ac_ct_STRIP" = x; then
11834 case $cross_compiling:$ac_tool_warned in
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11837 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11838 ac_tool_warned=yes ;;
11843 STRIP="$ac_cv_prog_STRIP"
11846 test -z "$STRIP" && STRIP=:
11853 if test -n "$ac_tool_prefix"; then
11854 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
11855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11857 $as_echo_n "checking
for $ac_word...
" >&6; }
11858 if test "${ac_cv_prog_RANLIB+set}" = set; then :
11859 $as_echo_n "(cached
) " >&6
11861 if test -n "$RANLIB"; then
11862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11881 RANLIB=$ac_cv_prog_RANLIB
11882 if test -n "$RANLIB"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11884 $as_echo "$RANLIB" >&6; }
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11887 $as_echo "no
" >&6; }
11892 if test -z "$ac_cv_prog_RANLIB"; then
11893 ac_ct_RANLIB=$RANLIB
11894 # Extract the first word of "ranlib
", so it can be a program name with args.
11895 set dummy ranlib; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11897 $as_echo_n "checking
for $ac_word...
" >&6; }
11898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11899 $as_echo_n "(cached
) " >&6
11901 if test -n "$ac_ct_RANLIB"; then
11902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911 ac_cv_prog_ac_ct_RANLIB="ranlib
"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11922 if test -n "$ac_ct_RANLIB"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
11924 $as_echo "$ac_ct_RANLIB" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11927 $as_echo "no
" >&6; }
11930 if test "x
$ac_ct_RANLIB" = x; then
11933 case $cross_compiling:$ac_tool_warned in
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11936 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11937 ac_tool_warned=yes ;;
11939 RANLIB=$ac_ct_RANLIB
11942 RANLIB="$ac_cv_prog_RANLIB"
11945 test -z "$RANLIB" && RANLIB=:
11952 # Determine commands to create old-style static archives.
11953 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11954 old_postinstall_cmds='chmod 644 $oldlib'
11955 old_postuninstall_cmds=
11957 if test -n "$RANLIB"; then
11960 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
11963 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
11966 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12002 # If no C compiler was specified, use CC.
12005 # If no C compiler flags were specified, use CFLAGS.
12006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12008 # Allow CC to be a program name with arguments.
12012 # Check for command to grab the raw symbol name followed by C symbol from nm.
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
12014 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
12015 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12016 $as_echo_n "(cached
) " >&6
12019 # These are sane defaults that work on at least a few old systems.
12020 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12022 # Character class describing NM global symbol codes.
12023 symcode='[BCDEGRST]'
12025 # Regexp to match symbols that can be accessed directly from C.
12026 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12028 # Define system-specific variables.
12033 cygwin* | mingw* | pw32* | cegcc*)
12034 symcode='[ABCDGISTW]'
12037 if test "$host_cpu" = ia64; then
12038 symcode='[ABCDEGRST]'
12041 irix* | nonstopux*)
12042 symcode='[BCDEGRST]'
12045 symcode='[BCDEGQRST]'
12056 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12064 # If we're using GNU nm, then use its standard symbol codes.
12065 case `$NM -V 2>&1` in
12066 *GNU* | *'with BFD'*)
12067 symcode='[ABCDGIRSTW]' ;;
12070 # Transform an extracted symbol line into a proper C declaration.
12071 # Some systems (esp. on ia64) link data and code symbols differently,
12072 # so use this general approach.
12073 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12075 # Transform an extracted symbol line into symbol name and symbol address
12076 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12077 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'"
12079 # Handle CRLF in mingw tool chain
12083 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12087 # Try without a prefix underscore, then with it.
12088 for ac_symprfx in "" "_
"; do
12090 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12091 symxfrm="\\1 $ac_symprfx\\2 \\2"
12093 # Write the raw and C identifiers.
12094 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
12095 # Fake it for dumpbin and say T for any non-static function
12096 # and D for any global variable.
12097 # Also find C++ and __fastcall symbols from MSVC++,
12098 # which start with @ or ?.
12099 lt_cv_sys_global_symbol_pipe="$AWK '"\
12100 " {last_section=section; section=\$ 3};"\
12101 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12102 " \$ 0!~/External *\|/{next};"\
12103 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12104 " {if(hide[section]) next};"\
12105 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12106 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12107 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12108 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12109 " ' prfx
=^
$ac_symprfx"
12111 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12114 # Check to see that the pipe works correctly.
12118 cat > conftest.$ac_ext <<_LT_EOF
12123 void nm_test_func(void);
12124 void nm_test_func(void){}
12128 int main(){nm_test_var='a';nm_test_func();return(0);}
12131 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12132 (eval $ac_compile) 2>&5
12134 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12135 test $ac_status = 0; }; then
12136 # Now try to grab the symbols.
12138 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\""; } >&5
12139 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12141 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12142 test $ac_status = 0; } && test -s "$nlist"; then
12143 # Try sorting and uniquifying the output.
12144 if sort "$nlist" | uniq > "$nlist"T; then
12145 mv -f "$nlist"T "$nlist"
12150 # Make sure that we snagged all the symbols we need.
12151 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12152 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12153 cat <<_LT_EOF > conftest.$ac_ext
12159 # Now generate the symbol file.
12160 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12162 cat <<_LT_EOF >> conftest.$ac_ext
12164 /* The mapping between symbol names and symbols. */
12169 lt__PROGRAM__LTX_preloaded_symbols[] =
12171 { "@PROGRAM@
", (void *) 0 },
12173 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12174 cat <<\_LT_EOF >> conftest.$ac_ext
12178 /* This works around a problem in FreeBSD linker */
12179 #ifdef FREEBSD_WORKAROUND
12180 static const void *lt_preloaded_setup() {
12181 return lt__PROGRAM__LTX_preloaded_symbols;
12189 # Now try linking the two files.
12190 mv conftest.$ac_objext conftstm.$ac_objext
12191 lt_save_LIBS="$LIBS"
12192 lt_save_CFLAGS="$CFLAGS"
12193 LIBS="conftstm.
$ac_objext"
12194 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12195 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12196 (eval $ac_link) 2>&5
12198 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12199 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12202 LIBS="$lt_save_LIBS"
12203 CFLAGS="$lt_save_CFLAGS"
12205 echo "cannot
find nm_test_func
in $nlist" >&5
12208 echo "cannot
find nm_test_var
in $nlist" >&5
12211 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
12214 echo "$progname: failed program was
:" >&5
12215 cat conftest.$ac_ext >&5
12217 rm -rf conftest* conftst*
12219 # Do not use the global_symbol_pipe unless it works.
12220 if test "$pipe_works" = yes; then
12223 lt_cv_sys_global_symbol_pipe=
12229 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12230 lt_cv_sys_global_symbol_to_cdecl=
12232 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
12234 $as_echo "failed
" >&6; }
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
12237 $as_echo "ok
" >&6; }
12261 # Check whether --enable-libtool-lock was given.
12262 if test "${enable_libtool_lock+set}" = set; then :
12263 enableval=$enable_libtool_lock;
12266 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12268 # Some flags need to be propagated to the compiler or linker for good
12272 # Find out which ABI we are using.
12273 echo 'int i;' > conftest.$ac_ext
12274 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12275 (eval $ac_compile) 2>&5
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12278 test $ac_status = 0; }; then
12279 case `/usr/bin/file conftest.$ac_objext` in
12281 HPUX_IA64_MODE="32"
12284 HPUX_IA64_MODE="64"
12291 # Find out which ABI we are using.
12292 echo '#line 12292 "configure
"' > conftest.$ac_ext
12293 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12294 (eval $ac_compile) 2>&5
12296 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12297 test $ac_status = 0; }; then
12298 if test "$lt_cv_prog_gnu_ld" = yes; then
12299 case `/usr/bin/file conftest.$ac_objext` in
12301 LD="${LD-ld} -melf32bsmip"
12304 LD="${LD-ld} -melf32bmipn32"
12307 LD="${LD-ld} -melf64bmip"
12311 case `/usr/bin/file conftest.$ac_objext` in
12327 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12328 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12329 # Find out which ABI we are using.
12330 echo 'int i;' > conftest.$ac_ext
12331 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12332 (eval $ac_compile) 2>&5
12334 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12335 test $ac_status = 0; }; then
12336 case `/usr/bin/file conftest.o` in
12339 x86_64-*kfreebsd*-gnu)
12340 LD="${LD-ld} -m elf_i386_fbsd
"
12343 LD="${LD-ld} -m elf_i386
"
12345 ppc64-*linux*|powerpc64-*linux*)
12346 LD="${LD-ld} -m elf32ppclinux
"
12349 LD="${LD-ld} -m elf_s390
"
12352 LD="${LD-ld} -m elf32_sparc
"
12358 x86_64-*kfreebsd*-gnu)
12359 LD="${LD-ld} -m elf_x86_64_fbsd
"
12362 LD="${LD-ld} -m elf_x86_64
"
12364 ppc*-*linux*|powerpc*-*linux*)
12365 LD="${LD-ld} -m elf64ppc
"
12367 s390*-*linux*|s390*-*tpf*)
12368 LD="${LD-ld} -m elf64_s390
"
12371 LD="${LD-ld} -m elf64_sparc
"
12381 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12382 SAVE_CFLAGS="$CFLAGS"
12383 CFLAGS="$CFLAGS -belf"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
12385 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
12386 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12387 $as_echo_n "(cached
) " >&6
12390 ac_cpp='$CPP $CPPFLAGS'
12391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 lt_cv_cc_needs_belf=yes
12409 lt_cv_cc_needs_belf=no
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12414 ac_cpp='$CPP $CPPFLAGS'
12415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
12421 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12422 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12423 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12424 CFLAGS="$SAVE_CFLAGS"
12428 # Find out which ABI we are using.
12429 echo 'int i;' > conftest.$ac_ext
12430 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12431 (eval $ac_compile) 2>&5
12433 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12434 test $ac_status = 0; }; then
12435 case `/usr/bin/file conftest.o` in
12437 case $lt_cv_prog_gnu_ld in
12438 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12440 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12452 need_locks="$enable_libtool_lock"
12456 rhapsody* | darwin*)
12457 if test -n "$ac_tool_prefix"; then
12458 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
12459 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12461 $as_echo_n "checking
for $ac_word...
" >&6; }
12462 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12463 $as_echo_n "(cached
) " >&6
12465 if test -n "$DSYMUTIL"; then
12466 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12475 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12485 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12486 if test -n "$DSYMUTIL"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12488 $as_echo "$DSYMUTIL" >&6; }
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12491 $as_echo "no
" >&6; }
12496 if test -z "$ac_cv_prog_DSYMUTIL"; then
12497 ac_ct_DSYMUTIL=$DSYMUTIL
12498 # Extract the first word of "dsymutil
", so it can be a program name with args.
12499 set dummy dsymutil; ac_word=$2
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12501 $as_echo_n "checking
for $ac_word...
" >&6; }
12502 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12503 $as_echo_n "(cached
) " >&6
12505 if test -n "$ac_ct_DSYMUTIL"; then
12506 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in $PATH
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12515 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12525 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12526 if test -n "$ac_ct_DSYMUTIL"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
12528 $as_echo "$ac_ct_DSYMUTIL" >&6; }
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12531 $as_echo "no
" >&6; }
12534 if test "x
$ac_ct_DSYMUTIL" = x; then
12537 case $cross_compiling:$ac_tool_warned in
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12540 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12541 ac_tool_warned=yes ;;
12543 DSYMUTIL=$ac_ct_DSYMUTIL
12546 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12549 if test -n "$ac_tool_prefix"; then
12550 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
12551 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12553 $as_echo_n "checking
for $ac_word...
" >&6; }
12554 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
12555 $as_echo_n "(cached
) " >&6
12557 if test -n "$NMEDIT"; then
12558 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561 for as_dir in $PATH
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12567 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12577 NMEDIT=$ac_cv_prog_NMEDIT
12578 if test -n "$NMEDIT"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
12580 $as_echo "$NMEDIT" >&6; }
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12583 $as_echo "no
" >&6; }
12588 if test -z "$ac_cv_prog_NMEDIT"; then
12589 ac_ct_NMEDIT=$NMEDIT
12590 # Extract the first word of "nmedit
", so it can be a program name with args.
12591 set dummy nmedit; ac_word=$2
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12593 $as_echo_n "checking
for $ac_word...
" >&6; }
12594 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
12595 $as_echo_n "(cached
) " >&6
12597 if test -n "$ac_ct_NMEDIT"; then
12598 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12607 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12617 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12618 if test -n "$ac_ct_NMEDIT"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
12620 $as_echo "$ac_ct_NMEDIT" >&6; }
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12623 $as_echo "no
" >&6; }
12626 if test "x
$ac_ct_NMEDIT" = x; then
12629 case $cross_compiling:$ac_tool_warned in
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12632 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12633 ac_tool_warned=yes ;;
12635 NMEDIT=$ac_ct_NMEDIT
12638 NMEDIT="$ac_cv_prog_NMEDIT"
12641 if test -n "$ac_tool_prefix"; then
12642 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
12643 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12645 $as_echo_n "checking
for $ac_word...
" >&6; }
12646 if test "${ac_cv_prog_LIPO+set}" = set; then :
12647 $as_echo_n "(cached
) " >&6
12649 if test -n "$LIPO"; then
12650 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12656 test -z "$as_dir" && as_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
12658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12659 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12669 LIPO=$ac_cv_prog_LIPO
12670 if test -n "$LIPO"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12672 $as_echo "$LIPO" >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12675 $as_echo "no
" >&6; }
12680 if test -z "$ac_cv_prog_LIPO"; then
12682 # Extract the first word of "lipo
", so it can be a program name with args.
12683 set dummy lipo; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12685 $as_echo_n "checking
for $ac_word...
" >&6; }
12686 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
12687 $as_echo_n "(cached
) " >&6
12689 if test -n "$ac_ct_LIPO"; then
12690 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693 for as_dir in $PATH
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
12698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12699 ac_cv_prog_ac_ct_LIPO="lipo
"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12709 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12710 if test -n "$ac_ct_LIPO"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
12712 $as_echo "$ac_ct_LIPO" >&6; }
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12715 $as_echo "no
" >&6; }
12718 if test "x
$ac_ct_LIPO" = x; then
12721 case $cross_compiling:$ac_tool_warned in
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12724 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12725 ac_tool_warned=yes ;;
12730 LIPO="$ac_cv_prog_LIPO"
12733 if test -n "$ac_tool_prefix"; then
12734 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
12735 set dummy ${ac_tool_prefix}otool; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12737 $as_echo_n "checking
for $ac_word...
" >&6; }
12738 if test "${ac_cv_prog_OTOOL+set}" = set; then :
12739 $as_echo_n "(cached
) " >&6
12741 if test -n "$OTOOL"; then
12742 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12751 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12761 OTOOL=$ac_cv_prog_OTOOL
12762 if test -n "$OTOOL"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12764 $as_echo "$OTOOL" >&6; }
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12767 $as_echo "no
" >&6; }
12772 if test -z "$ac_cv_prog_OTOOL"; then
12774 # Extract the first word of "otool
", so it can be a program name with args.
12775 set dummy otool; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12777 $as_echo_n "checking
for $ac_word...
" >&6; }
12778 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
12779 $as_echo_n "(cached
) " >&6
12781 if test -n "$ac_ct_OTOOL"; then
12782 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_prog_ac_ct_OTOOL="otool
"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12801 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12802 if test -n "$ac_ct_OTOOL"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
12804 $as_echo "$ac_ct_OTOOL" >&6; }
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12807 $as_echo "no
" >&6; }
12810 if test "x
$ac_ct_OTOOL" = x; then
12813 case $cross_compiling:$ac_tool_warned in
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12816 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12817 ac_tool_warned=yes ;;
12822 OTOOL="$ac_cv_prog_OTOOL"
12825 if test -n "$ac_tool_prefix"; then
12826 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
12827 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12829 $as_echo_n "checking
for $ac_word...
" >&6; }
12830 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
12831 $as_echo_n "(cached
) " >&6
12833 if test -n "$OTOOL64"; then
12834 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12843 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
12844 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12853 OTOOL64=$ac_cv_prog_OTOOL64
12854 if test -n "$OTOOL64"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
12856 $as_echo "$OTOOL64" >&6; }
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12859 $as_echo "no
" >&6; }
12864 if test -z "$ac_cv_prog_OTOOL64"; then
12865 ac_ct_OTOOL64=$OTOOL64
12866 # Extract the first word of "otool64
", so it can be a program name with args.
12867 set dummy otool64; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12869 $as_echo_n "checking
for $ac_word...
" >&6; }
12870 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
12871 $as_echo_n "(cached
) " >&6
12873 if test -n "$ac_ct_OTOOL64"; then
12874 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12883 ac_cv_prog_ac_ct_OTOOL64="otool64
"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12893 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12894 if test -n "$ac_ct_OTOOL64"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
12896 $as_echo "$ac_ct_OTOOL64" >&6; }
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12899 $as_echo "no
" >&6; }
12902 if test "x
$ac_ct_OTOOL64" = x; then
12905 case $cross_compiling:$ac_tool_warned in
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12908 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12909 ac_tool_warned=yes ;;
12911 OTOOL64=$ac_ct_OTOOL64
12914 OTOOL64="$ac_cv_prog_OTOOL64"
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
12944 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
12945 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
12946 $as_echo_n "(cached
) " >&6
12948 lt_cv_apple_cc_single_mod=no
12949 if test -z "${LT_MULTI_MODULE}"; then
12950 # By default we will add the -single_module flag. You can override
12951 # by either setting the environment variable LT_MULTI_MODULE
12952 # non-empty at configure time, or by adding -multi_module to the
12954 rm -rf libconftest.dylib*
12955 echo "int foo
(void
){return 1;}" > conftest.c
12956 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12957 -dynamiclib -Wl,-single_module conftest.c
" >&5
12958 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12959 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12961 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12962 lt_cv_apple_cc_single_mod=yes
12964 cat conftest.err >&5
12966 rm -rf libconftest.dylib*
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
12971 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
12973 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
12974 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
12975 $as_echo_n "(cached
) " >&6
12977 lt_cv_ld_exported_symbols_list=no
12978 save_LDFLAGS=$LDFLAGS
12979 echo "_main
" > conftest.sym
12980 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12992 if ac_fn_c_try_link "$LINENO"; then :
12993 lt_cv_ld_exported_symbols_list=yes
12995 lt_cv_ld_exported_symbols_list=no
12997 rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LDFLAGS="$save_LDFLAGS"
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
13003 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13005 rhapsody* | darwin1.[012])
13006 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13009 darwin*) # darwin 5.x on
13010 # if running on 10.5 or later, the deployment target defaults
13011 # to the OS version, if on x86, and 10.4, the deployment
13012 # target defaults to 10.4. Don't you love it?
13013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13014 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13017 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13023 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13024 _lt_dar_single_mod='$single_module'
13026 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13027 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13031 if test "$DSYMUTIL" != ":"; then
13032 _lt_dsymutil='~$DSYMUTIL $lib || :'
13039 for ac_header in dlfcn.h
13041 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
13042 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
13043 cat >>confdefs.h <<_ACEOF
13044 #define HAVE_DLFCN_H 1
13053 ac_cpp='$CXXCPP $CPPFLAGS'
13054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13057 if test -z "$CXX"; then
13058 if test -n "$CCC"; then
13061 if test -n "$ac_tool_prefix"; then
13062 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13067 $as_echo_n "checking
for $ac_word...
" >&6; }
13068 if test "${ac_cv_prog_CXX+set}" = set; then :
13069 $as_echo_n "(cached
) " >&6
13071 if test -n "$CXX"; then
13072 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13081 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13091 CXX=$ac_cv_prog_CXX
13092 if test -n "$CXX"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
13094 $as_echo "$CXX" >&6; }
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13097 $as_echo "no
" >&6; }
13101 test -n "$CXX" && break
13104 if test -z "$CXX"; then
13106 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13108 # Extract the first word of "$ac_prog", so it can be a program name with args.
13109 set dummy $ac_prog; ac_word=$2
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13111 $as_echo_n "checking
for $ac_word...
" >&6; }
13112 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13113 $as_echo_n "(cached
) " >&6
13115 if test -n "$ac_ct_CXX"; then
13116 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13125 ac_cv_prog_ac_ct_CXX="$ac_prog"
13126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13135 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13136 if test -n "$ac_ct_CXX"; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
13138 $as_echo "$ac_ct_CXX" >&6; }
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13141 $as_echo "no
" >&6; }
13145 test -n "$ac_ct_CXX" && break
13148 if test "x
$ac_ct_CXX" = x; then
13151 case $cross_compiling:$ac_tool_warned in
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13154 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13155 ac_tool_warned=yes ;;
13163 # Provide some information about the compiler.
13164 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
13167 for ac_option in --version -v -V -qversion; do
13168 { { ac_try="$ac_compiler $ac_option >&5"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13174 $as_echo "$ac_try_echo"; } >&5
13175 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13177 if test -s conftest.err; then
13179 ... rest of stderr output deleted ...
13180 10q' conftest.err >conftest.er1
13181 cat conftest.er1 >&5
13182 rm -f conftest.er1 conftest.err
13184 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13185 test $ac_status = 0; }
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
13189 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
13190 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13191 $as_echo_n "(cached
) " >&6
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13207 if ac_fn_cxx_try_compile "$LINENO"; then :
13208 ac_compiler_gnu=yes
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
13217 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13218 if test $ac_compiler_gnu = yes; then
13223 ac_test_CXXFLAGS=${CXXFLAGS+set}
13224 ac_save_CXXFLAGS=$CXXFLAGS
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
13226 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
13227 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13228 $as_echo_n "(cached
) " >&6
13230 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13231 ac_cxx_werror_flag=yes
13232 ac_cv_prog_cxx_g=no
13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13245 if ac_fn_cxx_try_compile "$LINENO"; then :
13246 ac_cv_prog_cxx_g=yes
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13260 if ac_fn_cxx_try_compile "$LINENO"; then :
13263 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13276 if ac_fn_cxx_try_compile "$LINENO"; then :
13277 ac_cv_prog_cxx_g=yes
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
13287 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13288 if test "$ac_test_CXXFLAGS" = set; then
13289 CXXFLAGS=$ac_save_CXXFLAGS
13290 elif test $ac_cv_prog_cxx_g = yes; then
13291 if test "$GXX" = yes; then
13297 if test "$GXX" = yes; then
13304 ac_cpp='$CPP $CPPFLAGS'
13305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13309 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
13310 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
13311 (test "X
$CXX" != "Xg
++"))) ; then
13313 ac_cpp='$CXXCPP $CPPFLAGS'
13314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C
++ preprocessor
" >&5
13318 $as_echo_n "checking how to run the C
++ preprocessor...
" >&6; }
13319 if test -z "$CXXCPP"; then
13320 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13321 $as_echo_n "(cached
) " >&6
13323 # Double quotes because CXXCPP needs to be expanded
13324 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13326 ac_preproc_ok=false
13327 for ac_cxx_preproc_warn_flag in '' yes
13329 # Use a header file that comes with gcc, so configuring glibc
13330 # with a fresh cross-compiler works.
13331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13332 # <limits.h> exists even on freestanding compilers.
13333 # On the NeXT, cc -E runs the code through the compiler's parser,
13334 # not just through cpp. "Syntax error
" is here to catch this case.
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13338 # include <limits.h>
13340 # include <assert.h>
13344 if ac_fn_cxx_try_cpp "$LINENO"; then :
13347 # Broken: fails on valid input.
13350 rm -f conftest.err conftest.$ac_ext
13352 # OK, works on sane cases. Now check whether nonexistent headers
13353 # can be detected and how.
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 #include <ac_nonexistent.h>
13358 if ac_fn_cxx_try_cpp "$LINENO"; then :
13359 # Broken: success on invalid input.
13362 # Passes both tests.
13366 rm -f conftest.err conftest.$ac_ext
13369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13370 rm -f conftest.err conftest.$ac_ext
13371 if $ac_preproc_ok; then :
13376 ac_cv_prog_CXXCPP=$CXXCPP
13379 CXXCPP=$ac_cv_prog_CXXCPP
13381 ac_cv_prog_CXXCPP=$CXXCPP
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXXCPP" >&5
13384 $as_echo "$CXXCPP" >&6; }
13385 ac_preproc_ok=false
13386 for ac_cxx_preproc_warn_flag in '' yes
13388 # Use a header file that comes with gcc, so configuring glibc
13389 # with a fresh cross-compiler works.
13390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13391 # <limits.h> exists even on freestanding compilers.
13392 # On the NeXT, cc -E runs the code through the compiler's parser,
13393 # not just through cpp. "Syntax error
" is here to catch this case.
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13397 # include <limits.h>
13399 # include <assert.h>
13403 if ac_fn_cxx_try_cpp "$LINENO"; then :
13406 # Broken: fails on valid input.
13409 rm -f conftest.err conftest.$ac_ext
13411 # OK, works on sane cases. Now check whether nonexistent headers
13412 # can be detected and how.
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13415 #include <ac_nonexistent.h>
13417 if ac_fn_cxx_try_cpp "$LINENO"; then :
13418 # Broken: success on invalid input.
13421 # Passes both tests.
13425 rm -f conftest.err conftest.$ac_ext
13428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13429 rm -f conftest.err conftest.$ac_ext
13430 if $ac_preproc_ok; then :
13433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
13434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13435 _lt_caught_CXX_error=yes; }
13439 ac_cpp='$CPP $CPPFLAGS'
13440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13441 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13445 _lt_caught_CXX_error=yes
13459 enable_win32_dll=no
13462 # Check whether --enable-shared was given.
13463 if test "${enable_shared+set}" = set; then :
13464 enableval=$enable_shared; p=${PACKAGE-default}
13466 yes) enable_shared=yes ;;
13467 no) enable_shared=no ;;
13470 # Look at the argument we got. We use all the common list separators.
13471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13472 for pkg in $enableval; do
13474 if test "X$pkg" = "X$p"; then
13493 # Check whether --enable-static was given.
13494 if test "${enable_static+set}" = set; then :
13495 enableval=$enable_static; p=${PACKAGE-default}
13497 yes) enable_static=yes ;;
13498 no) enable_static=no ;;
13501 # Look at the argument we got. We use all the common list separators.
13502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13503 for pkg in $enableval; do
13505 if test "X$pkg" = "X$p"; then
13525 # Check whether --with-pic was given.
13526 if test "${with_pic+set}" = set; then :
13527 withval=$with_pic; pic_mode="$withval"
13533 test -z "$pic_mode" && pic_mode=default
13541 # Check whether --enable-fast-install was given.
13542 if test "${enable_fast_install+set}" = set; then :
13543 enableval=$enable_fast_install; p=${PACKAGE-default}
13545 yes) enable_fast_install=yes ;;
13546 no) enable_fast_install=no ;;
13548 enable_fast_install=no
13549 # Look at the argument we got. We use all the common list separators.
13550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13551 for pkg in $enableval; do
13553 if test "X$pkg" = "X$p"; then
13554 enable_fast_install=yes
13561 enable_fast_install=yes
13574 # This can be used to rebuild libtool when needed
13575 LIBTOOL_DEPS="$ltmain"
13577 # Always use our own libtool.
13578 LIBTOOL='$
(SHELL
) $
(top_builddir
)/libtool
'
13604 test -z "$LN_S" && LN_S="ln -s"
13619 if test -n "${ZSH_VERSION+set}" ; then
13620 setopt NO_GLOB_SUBST
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13624 $as_echo_n "checking for objdir... " >&6; }
13625 if test "${lt_cv_objdir+set}" = set; then :
13626 $as_echo_n "(cached) " >&6
13628 rm -f .libs 2>/dev/null
13629 mkdir .libs 2>/dev/null
13630 if test -d .libs; then
13633 # MS-DOS does not allow filenames that begin with a dot.
13636 rmdir .libs 2>/dev/null
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13639 $as_echo "$lt_cv_objdir" >&6; }
13640 objdir=$lt_cv_objdir
13646 cat >>confdefs.h <<_ACEOF
13647 #define LT_OBJDIR "$lt_cv_objdir/"
13668 # AIX sometimes has problems with the GCC collect2 program. For some
13669 # reason, if we set the COLLECT_NAMES environment variable, the problems
13670 # vanish in a puff of smoke.
13671 if test "X${COLLECT_NAMES+set}" != Xset; then
13673 export COLLECT_NAMES
13678 # Sed substitution that helps us do robust quoting. It backslashifies
13679 # metacharacters that are still active within double-quoted strings.
13680 sed_quote_subst='s
/\
(["`$\\]\)/\\\1/g'
13682 # Same as above, but do not quote variable references.
13683 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13685 # Sed substitution to delay expansion of an escaped shell variable in a
13686 # double_quote_subst'ed string.
13687 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13689 # Sed substitution to delay expansion of an escaped single quote.
13690 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13692 # Sed substitution to avoid accidental globbing in evaled expressions
13693 no_glob_subst='s/\*/\\\*/g'
13695 # Global variables:
13697 can_build_shared=yes
13699 # All known linkers require a `.a
' archive for static linking (except MSVC,
13700 # which needs '.lib
').
13703 with_gnu_ld="$lt_cv_prog_gnu_ld"
13706 old_CFLAGS="$CFLAGS"
13708 # Set sane defaults for various variables
13709 test -z "$CC" && CC=cc
13710 test -z "$LTCC" && LTCC=$CC
13711 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13712 test -z "$LD" && LD=ld
13713 test -z "$ac_objext" && ac_objext=o
13715 for cc_temp in $compiler""; do
13717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13723 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's
%.
*/%%' -e "s%^$host_alias-%%"`
13726 # Only perform the check for file, if the check method requires it
13727 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13728 case $deplibs_check_method in
13730 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13732 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13733 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13734 $as_echo_n "(cached) " >&6
13738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13741 lt_save_MAGIC_CMD="$MAGIC_CMD"
13742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13743 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13744 for ac_dir in $ac_dummy; do
13746 test -z "$ac_dir" && ac_dir=.
13747 if test -f $ac_dir/${ac_tool_prefix}file; then
13748 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13749 if test -n "$file_magic_test_file"; then
13750 case $deplibs_check_method in
13752 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13755 $EGREP "$file_magic_regex" > /dev/null; then
13760 *** Warning: the command libtool uses to detect shared libraries,
13761 *** $file_magic_cmd, produces output that libtool cannot recognize.
13762 *** The result is that libtool may fail to recognize shared libraries
13763 *** as such. This will affect the creation of libtool libraries that
13764 *** depend on shared libraries, but programs linked with such libtool
13765 *** libraries will work regardless of this problem. Nevertheless, you
13766 *** may want to report the problem to your system manager and/or to
13767 *** bug-libtool@gnu.org
13777 MAGIC_CMD="$lt_save_MAGIC_CMD"
13782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13783 if test -n "$MAGIC_CMD"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13785 $as_echo "$MAGIC_CMD" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13795 if test -z "$lt_cv_path_MAGIC_CMD"; then
13796 if test -n "$ac_tool_prefix"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13798 $as_echo_n "checking for file... " >&6; }
13799 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13800 $as_echo_n "(cached) " >&6
13804 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13807 lt_save_MAGIC_CMD="$MAGIC_CMD"
13808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13809 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13810 for ac_dir in $ac_dummy; do
13812 test -z "$ac_dir" && ac_dir=.
13813 if test -f $ac_dir/file; then
13814 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13815 if test -n "$file_magic_test_file"; then
13816 case $deplibs_check_method in
13818 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13821 $EGREP "$file_magic_regex" > /dev/null; then
13826 *** Warning: the command libtool uses to detect shared libraries,
13827 *** $file_magic_cmd, produces output that libtool cannot recognize.
13828 *** The result is that libtool may fail to recognize shared libraries
13829 *** as such. This will affect the creation of libtool libraries that
13830 *** depend on shared libraries, but programs linked with such libtool
13831 *** libraries will work regardless of this problem. Nevertheless, you
13832 *** may want to report the problem to your system manager and/or to
13833 *** bug-libtool@gnu.org
13843 MAGIC_CMD="$lt_save_MAGIC_CMD"
13848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13849 if test -n "$MAGIC_CMD"; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13851 $as_echo "$MAGIC_CMD" >&6; }
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13867 # Use C for the default configuration in the libtool script
13871 ac_cpp='$CPP $CPPFLAGS'
13872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13873 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13877 # Source file extension for C test sources.
13880 # Object file extension for compiled C test sources.
13884 # Code to be used in simple compile tests
13885 lt_simple_compile_test_code="int some_variable = 0;"
13887 # Code to be used in simple link tests
13888 lt_simple_link_test_code='int main
(){return(0);}'
13896 # If no C compiler was specified, use CC.
13899 # If no C compiler flags were specified, use CFLAGS.
13900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13902 # Allow CC to be a program name with arguments.
13905 # Save the default compiler, since it gets overwritten when the other
13906 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13907 compiler_DEFAULT=$CC
13909 # save warnings/boilerplate of simple test code
13910 ac_outfile=conftest.$ac_objext
13911 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
13913 _lt_compiler_boilerplate=`cat conftest.err`
13916 ac_outfile=conftest.$ac_objext
13917 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
13919 _lt_linker_boilerplate=`cat conftest.err`
13924 ## There is no encapsulation within the following macros, do not change
13925 ## the running order or otherwise move them around unless you know exactly
13926 ## what you are doing...
13927 if test -n "$compiler"; then
13929 lt_prog_compiler_no_builtin_flag=
13931 if test "$GCC" = yes; then
13932 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13935 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13936 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
13937 $as_echo_n "(cached) " >&6
13939 lt_cv_prog_compiler_rtti_exceptions=no
13940 ac_outfile=conftest.$ac_objext
13941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13942 lt_compiler_flag="-fno-rtti -fno-exceptions"
13943 # Insert the option either (1) after the last *FLAGS variable, or
13944 # (2) before a word containing "conftest.", or (3) at the end.
13945 # Note that $ac_compile itself does not contain backslashes and begins
13946 # with a dollar sign (not a hyphen), so the echo should work correctly.
13947 # The option is referenced via a variable to avoid confusing sed.
13948 lt_compile=`echo "$ac_compile" | $SED \
13949 -e 's
:.
*FLAGS
}\
{0,1\
} :&$lt_compiler_flag :; t
' \
13950 -e 's
: [^
]*conftest\.
: $lt_compiler_flag&:; t
' \
13951 -e 's
:$
: $lt_compiler_flag:'`
13952 (eval echo "\"\$as_me:13952: $lt_compile\"" >&5)
13953 (eval "$lt_compile" 2>conftest.err)
13955 cat conftest.err >&5
13956 echo "$as_me:13956: \$? = $ac_status" >&5
13957 if (exit $ac_status) && test -s "$ac_outfile"; then
13958 # The compiler can only warn and ignore the option if not recognized
13959 # So say no if there are warnings other than the usual output.
13960 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$
/d
' >conftest.exp
13961 $SED '/^$
/d
; /^
*+/d
' conftest.err >conftest.er2
13962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13963 lt_cv_prog_compiler_rtti_exceptions=yes
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13970 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13972 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13973 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13985 lt_prog_compiler_wl=
13986 lt_prog_compiler_pic=
13987 lt_prog_compiler_static=
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13990 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13992 if test "$GCC" = yes; then
13993 lt_prog_compiler_wl='-Wl,'
13994 lt_prog_compiler_static='-static'
13998 # All AIX code is PIC.
13999 if test "$host_cpu" = ia64; then
14000 # AIX 5 now supports IA64 processor
14001 lt_prog_compiler_static='-Bstatic'
14008 # see comment about AmigaOS4 .so support
14009 lt_prog_compiler_pic='-fPIC'
14012 # FIXME: we need at least 68020 code to build shared libraries, but
14013 # adding the `-m68020' flag to GCC prevents building anything better
,
14015 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
14020 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14021 # PIC is the default for these OSes.
14024 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
14025 # This hack is so that the source file can tell whether it is being
14026 # built for inclusion in a dll (and should export symbols for example).
14027 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14028 # (--disable-auto-import) libraries
14029 lt_prog_compiler_pic
='-DDLL_EXPORT'
14032 darwin
* | rhapsody
*)
14033 # PIC is the default on this platform
14034 # Common symbols not allowed in MH_DYLIB files
14035 lt_prog_compiler_pic
='-fno-common'
14039 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14040 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14041 # sets the default TLS model and affects inlining.
14047 lt_prog_compiler_pic
='-fPIC'
14053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14054 # Instead, we relocate shared libraries at runtime.
14058 # Just because we use GCC doesn't mean we suddenly get shared libraries
14059 # on systems that don't support them.
14060 lt_prog_compiler_can_build_shared
=no
14065 # QNX uses GNU C++, but need to define -shared option too, otherwise
14066 # it will coredump.
14067 lt_prog_compiler_pic
='-fPIC -shared'
14071 if test -d /usr
/nec
; then
14072 lt_prog_compiler_pic
=-Kconform_pic
14077 lt_prog_compiler_pic
='-fPIC'
14081 # PORTME Check for flag to pass linker flags through the system compiler.
14084 lt_prog_compiler_wl
='-Wl,'
14085 if test "$host_cpu" = ia64
; then
14086 # AIX 5 now supports IA64 processor
14087 lt_prog_compiler_static
='-Bstatic'
14089 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
14093 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
14094 # This hack is so that the source file can tell whether it is being
14095 # built for inclusion in a dll (and should export symbols for example).
14096 lt_prog_compiler_pic
='-DDLL_EXPORT'
14099 hpux9
* | hpux10
* | hpux11
*)
14100 lt_prog_compiler_wl
='-Wl,'
14101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14102 # not for PA HP-UX.
14108 lt_prog_compiler_pic
='+Z'
14111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14112 lt_prog_compiler_static
='${wl}-a ${wl}archive'
14115 irix5
* | irix6
* | nonstopux
*)
14116 lt_prog_compiler_wl
='-Wl,'
14117 # PIC (with -KPIC) is the default.
14118 lt_prog_compiler_static
='-non_shared'
14121 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14122 case $cc_basename in
14123 # old Intel for x86_64 which still supported -KPIC.
14125 lt_prog_compiler_wl
='-Wl,'
14126 lt_prog_compiler_pic
='-KPIC'
14127 lt_prog_compiler_static
='-static'
14129 # icc used to be incompatible with GCC.
14130 # ICC 10 doesn't accept -KPIC any more.
14132 lt_prog_compiler_wl
='-Wl,'
14133 lt_prog_compiler_pic
='-fPIC'
14134 lt_prog_compiler_static
='-static'
14136 # Lahey Fortran 8.1.
14138 lt_prog_compiler_wl
='-Wl,'
14139 lt_prog_compiler_pic
='--shared'
14140 lt_prog_compiler_static
='--static'
14142 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14143 # Portland Group compilers (*not* the Pentium gcc compiler,
14144 # which looks to be a dead project)
14145 lt_prog_compiler_wl
='-Wl,'
14146 lt_prog_compiler_pic
='-fpic'
14147 lt_prog_compiler_static
='-Bstatic'
14150 lt_prog_compiler_wl
='-Wl,'
14151 # All Alpha code is PIC.
14152 lt_prog_compiler_static
='-non_shared'
14155 # IBM XL C 8.0/Fortran 10.1 on PPC
14156 lt_prog_compiler_wl
='-Wl,'
14157 lt_prog_compiler_pic
='-qpic'
14158 lt_prog_compiler_static
='-qstaticlink'
14161 case `$CC -V 2>&1 | sed 5q` in
14164 lt_prog_compiler_pic
='-KPIC'
14165 lt_prog_compiler_static
='-Bstatic'
14166 lt_prog_compiler_wl
='-Wl,'
14169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14170 lt_prog_compiler_pic
='-KPIC'
14171 lt_prog_compiler_static
='-Bstatic'
14172 lt_prog_compiler_wl
=''
14180 lt_prog_compiler_pic
='-KPIC'
14181 lt_prog_compiler_static
='-Bstatic'
14185 # QNX uses GNU C++, but need to define -shared option too, otherwise
14186 # it will coredump.
14187 lt_prog_compiler_pic
='-fPIC -shared'
14190 osf3
* | osf4
* | osf5
*)
14191 lt_prog_compiler_wl
='-Wl,'
14192 # All OSF/1 code is PIC.
14193 lt_prog_compiler_static
='-non_shared'
14197 lt_prog_compiler_static
='-non_shared'
14201 lt_prog_compiler_pic
='-KPIC'
14202 lt_prog_compiler_static
='-Bstatic'
14203 case $cc_basename in
14204 f77
* | f90
* | f95
*)
14205 lt_prog_compiler_wl
='-Qoption ld ';;
14207 lt_prog_compiler_wl
='-Wl,';;
14212 lt_prog_compiler_wl
='-Qoption ld '
14213 lt_prog_compiler_pic
='-PIC'
14214 lt_prog_compiler_static
='-Bstatic'
14217 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14218 lt_prog_compiler_wl
='-Wl,'
14219 lt_prog_compiler_pic
='-KPIC'
14220 lt_prog_compiler_static
='-Bstatic'
14224 if test -d /usr
/nec
;then
14225 lt_prog_compiler_pic
='-Kconform_pic'
14226 lt_prog_compiler_static
='-Bstatic'
14230 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14231 lt_prog_compiler_wl
='-Wl,'
14232 lt_prog_compiler_pic
='-KPIC'
14233 lt_prog_compiler_static
='-Bstatic'
14237 lt_prog_compiler_wl
='-Wl,'
14238 lt_prog_compiler_can_build_shared
=no
14242 lt_prog_compiler_pic
='-pic'
14243 lt_prog_compiler_static
='-Bstatic'
14247 lt_prog_compiler_can_build_shared
=no
14253 # For platforms which do not support PIC, -DPIC is meaningless:
14255 lt_prog_compiler_pic
=
14258 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14262 $as_echo "$lt_prog_compiler_pic" >&6; }
14270 # Check to make sure the PIC flag actually works.
14272 if test -n "$lt_prog_compiler_pic"; then
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14274 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14275 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14276 $as_echo_n "(cached) " >&6
14278 lt_cv_prog_compiler_pic_works
=no
14279 ac_outfile
=conftest.
$ac_objext
14280 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14281 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
14282 # Insert the option either (1) after the last *FLAGS variable, or
14283 # (2) before a word containing "conftest.", or (3) at the end.
14284 # Note that $ac_compile itself does not contain backslashes and begins
14285 # with a dollar sign (not a hyphen), so the echo should work correctly.
14286 # The option is referenced via a variable to avoid confusing sed.
14287 lt_compile
=`echo "$ac_compile" | $SED \
14288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14290 -e 's:$: $lt_compiler_flag:'`
14291 (eval echo "\"\$as_me:14291: $lt_compile\"" >&5)
14292 (eval "$lt_compile" 2>conftest.err
)
14294 cat conftest.err
>&5
14295 echo "$as_me:14295: \$? = $ac_status" >&5
14296 if (exit $ac_status) && test -s "$ac_outfile"; then
14297 # The compiler can only warn and ignore the option if not recognized
14298 # So say no if there are warnings other than the usual output.
14299 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14300 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14301 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14302 lt_cv_prog_compiler_pic_works
=yes
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14309 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14311 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
14312 case $lt_prog_compiler_pic in
14314 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
14317 lt_prog_compiler_pic
=
14318 lt_prog_compiler_can_build_shared
=no
14329 # Check to make sure the static flag actually works.
14331 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14333 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14334 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14335 $as_echo_n "(cached) " >&6
14337 lt_cv_prog_compiler_static_works
=no
14338 save_LDFLAGS
="$LDFLAGS"
14339 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14340 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14341 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14342 # The linker can only warn and ignore the option if not recognized
14343 # So say no if there are warnings
14344 if test -s conftest.err
; then
14345 # Append any errors to the config.log.
14346 cat conftest.err
1>&5
14347 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14348 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14349 if diff conftest.exp conftest.er2
>/dev
/null
; then
14350 lt_cv_prog_compiler_static_works
=yes
14353 lt_cv_prog_compiler_static_works
=yes
14357 LDFLAGS
="$save_LDFLAGS"
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14361 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14363 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
14366 lt_prog_compiler_static
=
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14377 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14378 $as_echo_n "(cached) " >&6
14380 lt_cv_prog_compiler_c_o
=no
14381 $RM -r conftest
2>/dev
/null
14385 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14387 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14388 # Insert the option either (1) after the last *FLAGS variable, or
14389 # (2) before a word containing "conftest.", or (3) at the end.
14390 # Note that $ac_compile itself does not contain backslashes and begins
14391 # with a dollar sign (not a hyphen), so the echo should work correctly.
14392 lt_compile
=`echo "$ac_compile" | $SED \
14393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14395 -e 's:$: $lt_compiler_flag:'`
14396 (eval echo "\"\$as_me:14396: $lt_compile\"" >&5)
14397 (eval "$lt_compile" 2>out
/conftest.err
)
14399 cat out
/conftest.err
>&5
14400 echo "$as_me:14400: \$? = $ac_status" >&5
14401 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14403 # The compiler can only warn and ignore the option if not recognized
14404 # So say no if there are warnings
14405 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14406 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14407 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14408 lt_cv_prog_compiler_c_o
=yes
14413 # SGI C++ compiler will create directory out/ii_files/ for
14414 # template instantiation
14415 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14416 $RM out
/* && rmdir out
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14423 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14431 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14432 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14433 $as_echo_n "(cached) " >&6
14435 lt_cv_prog_compiler_c_o
=no
14436 $RM -r conftest
2>/dev
/null
14440 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14442 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14443 # Insert the option either (1) after the last *FLAGS variable, or
14444 # (2) before a word containing "conftest.", or (3) at the end.
14445 # Note that $ac_compile itself does not contain backslashes and begins
14446 # with a dollar sign (not a hyphen), so the echo should work correctly.
14447 lt_compile
=`echo "$ac_compile" | $SED \
14448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14450 -e 's:$: $lt_compiler_flag:'`
14451 (eval echo "\"\$as_me:14451: $lt_compile\"" >&5)
14452 (eval "$lt_compile" 2>out
/conftest.err
)
14454 cat out
/conftest.err
>&5
14455 echo "$as_me:14455: \$? = $ac_status" >&5
14456 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14458 # The compiler can only warn and ignore the option if not recognized
14459 # So say no if there are warnings
14460 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14461 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14462 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14463 lt_cv_prog_compiler_c_o
=yes
14468 # SGI C++ compiler will create directory out/ii_files/ for
14469 # template instantiation
14470 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14471 $RM out
/* && rmdir out
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14478 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14483 hard_links
="nottested"
14484 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
14485 # do not overwrite the value of need_locks provided by the user
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14487 $as_echo_n "checking if we can lock with hard links... " >&6; }
14490 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14492 ln conftest.a conftest.b
2>&5 || hard_links
=no
14493 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14495 $as_echo "$hard_links" >&6; }
14496 if test "$hard_links" = no
; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14498 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14511 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14514 allow_undefined_flag
=
14515 always_export_symbols
=no
14517 archive_expsym_cmds
=
14518 compiler_needs_object
=no
14519 enable_shared_with_static_runtimes
=no
14520 export_dynamic_flag_spec
=
14521 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14522 hardcode_automatic
=no
14524 hardcode_direct_absolute
=no
14525 hardcode_libdir_flag_spec
=
14526 hardcode_libdir_flag_spec_ld
=
14527 hardcode_libdir_separator
=
14528 hardcode_minus_L
=no
14529 hardcode_shlibpath_var
=unsupported
14531 link_all_deplibs
=unknown
14533 module_expsym_cmds
=
14534 old_archive_from_new_cmds
=
14535 old_archive_from_expsyms_cmds
=
14536 thread_safe_flag_spec
=
14537 whole_archive_flag_spec
=
14538 # include_expsyms should be a list of space-separated symbols to be *always*
14539 # included in the symbol list
14541 # exclude_expsyms can be an extended regexp of symbols to exclude
14542 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14543 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14544 # as well as any symbol that contains `d'.
14545 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14546 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14547 # platforms (ab)use it in PIC code, but their linkers get confused if
14548 # the symbol is explicitly referenced. Since portable code cannot
14549 # rely on this symbol name, it's probably fine to never include it in
14550 # preloaded symbol tables.
14551 # Exclude shared library initialization/finalization symbols.
14552 extract_expsyms_cmds
=
14555 cygwin
* | mingw
* | pw32
* | cegcc
*)
14556 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14557 # When not using gcc, we currently assume that we are using
14558 # Microsoft Visual C++.
14559 if test "$GCC" != yes; then
14564 # we just hope/assume this is gcc and not c89 (= MSVC++)
14573 if test "$with_gnu_ld" = yes; then
14574 # If archive_cmds runs LD, not CC, wlarc should be empty
14577 # Set some defaults for GNU ld with shared library support. These
14578 # are reset later if shared libraries are not supported. Putting them
14579 # here allows them to be overridden if necessary.
14580 runpath_var
=LD_RUN_PATH
14581 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
14582 export_dynamic_flag_spec
='${wl}--export-dynamic'
14583 # ancient GNU ld didn't support --whole-archive et. al.
14584 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
14585 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14587 whole_archive_flag_spec
=
14589 supports_anon_versioning
=no
14590 case `$LD -v 2>&1` in
14591 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14592 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14593 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14594 *\
2.11.
*) ;; # other 2.11 versions
14595 *) supports_anon_versioning
=yes ;;
14598 # See if GNU ld supports shared libraries.
14601 # On AIX/PPC, the GNU linker is very broken
14602 if test "$host_cpu" != ia64
; then
14606 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14607 *** to be unable to reliably create shared libraries on AIX.
14608 *** Therefore, libtool is disabling shared libraries support. If you
14609 *** really care for shared libraries, you may want to modify your PATH
14610 *** so that a non-GNU linker is found, and then restart.
14619 # see comment about AmigaOS4 .so support
14620 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14621 archive_expsym_cmds
=''
14624 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)'
14625 hardcode_libdir_flag_spec
='-L$libdir'
14626 hardcode_minus_L
=yes
14632 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14633 allow_undefined_flag
=unsupported
14634 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14635 # support --undefined. This deserves some investigation. FIXME
14636 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14642 cygwin
* | mingw
* | pw32
* | cegcc
*)
14643 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14644 # as there is no search path for DLLs.
14645 hardcode_libdir_flag_spec
='-L$libdir'
14646 allow_undefined_flag
=unsupported
14647 always_export_symbols
=no
14648 enable_shared_with_static_runtimes
=yes
14649 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14651 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
14652 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14653 # If the export-symbols file already is a .def file (1st line
14654 # is EXPORTS), use it as is; otherwise, prepend...
14655 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14656 cp $export_symbols $output_objdir/$soname.def;
14658 echo EXPORTS > $output_objdir/$soname.def;
14659 cat $export_symbols >> $output_objdir/$soname.def;
14661 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14669 hardcode_shlibpath_var
=no
14670 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14671 export_dynamic_flag_spec
='${wl}-E'
14672 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14673 # Instead, shared libraries are loaded at an image base (0x10000000 by
14674 # default) and relocated if they conflict, which is a slow very memory
14675 # consuming and fragmenting process. To avoid this, we pick a random,
14676 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14677 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14678 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14679 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'
14682 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14684 if test "$host_os" = linux-dietlibc
; then
14685 case $cc_basename in
14686 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
14689 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
14690 && test "$tmp_diet" = no
14693 tmp_sharedflag
='-shared'
14694 case $cc_basename,$host_cpu in
14695 pgcc
*) # Portland Group C compiler
14696 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'
14697 tmp_addflag
=' $pic_flag'
14699 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14700 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'
14701 tmp_addflag
=' $pic_flag -Mnomain' ;;
14702 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14703 tmp_addflag
=' -i_dynamic' ;;
14704 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14705 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14706 ifc
* | ifort
*) # Intel Fortran compiler
14707 tmp_addflag
=' -nofor_main' ;;
14708 lf95
*) # Lahey Fortran 8.1
14709 whole_archive_flag_spec
=
14710 tmp_sharedflag
='--shared' ;;
14711 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14712 tmp_sharedflag
='-qmkshrobj'
14715 case `$CC -V 2>&1 | sed 5q` in
14716 *Sun\ C
*) # Sun C 5.9
14717 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'
14718 compiler_needs_object
=yes
14719 tmp_sharedflag
='-G' ;;
14720 *Sun\ F
*) # Sun Fortran 8.3
14721 tmp_sharedflag
='-G' ;;
14723 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14725 if test "x$supports_anon_versioning" = xyes
; then
14726 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14728 echo "local: *; };" >> $output_objdir/$libname.ver~
14729 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14732 case $cc_basename in
14734 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14735 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
14736 hardcode_libdir_flag_spec
=
14737 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
14738 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14739 if test "x$supports_anon_versioning" = xyes
; then
14740 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14742 echo "local: *; };" >> $output_objdir/$libname.ver~
14743 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14753 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14754 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14757 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14763 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
14767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14768 *** create shared libraries on Solaris systems. Therefore, libtool
14769 *** is disabling shared libraries support. We urge you to upgrade GNU
14770 *** binutils to release 2.9.1 or newer. Another option is to modify
14771 *** your PATH or compiler configuration so that the native linker is
14772 *** used, and then restart.
14775 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14776 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14777 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14783 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14784 case `$LD -v 2>&1` in
14785 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14789 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14790 *** reliably create shared libraries on SCO systems. Therefore, libtool
14791 *** is disabling shared libraries support. We urge you to upgrade GNU
14792 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14793 *** your PATH or compiler configuration so that the native linker is
14794 *** used, and then restart.
14799 # For security reasons, it is highly recommended that you always
14800 # use absolute paths for naming shared libraries, and exclude the
14801 # DT_RUNPATH tag from executables and libraries. But doing so
14802 # requires that you compile everything twice, which is a pain.
14803 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14804 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
14805 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14815 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14817 hardcode_direct
=yes
14818 hardcode_shlibpath_var
=no
14822 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14823 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14824 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14831 if test "$ld_shlibs" = no
; then
14833 hardcode_libdir_flag_spec
=
14834 export_dynamic_flag_spec
=
14835 whole_archive_flag_spec
=
14838 # PORTME fill in a description of your system's linker (not GNU ld)
14841 allow_undefined_flag
=unsupported
14842 always_export_symbols
=yes
14843 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'
14844 # Note: this linker hardcodes the directories in LIBPATH if there
14845 # are no directories specified by -L.
14846 hardcode_minus_L
=yes
14847 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14848 # Neither direct hardcoding nor static linking is supported with a
14850 hardcode_direct
=unsupported
14855 if test "$host_cpu" = ia64
; then
14856 # On IA64, the linker does run time linking by default, so we don't
14857 # have to do anything special.
14858 aix_use_runtimelinking
=no
14859 exp_sym_flag
='-Bexport'
14862 # If we're using GNU nm, then we don't want the "-C" option.
14863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14864 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
14865 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'
14867 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'
14869 aix_use_runtimelinking
=no
14871 # Test if we are trying to use run time linking or normal
14872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14873 # need to do runtime linking.
14874 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
14875 for ld_flag
in $LDFLAGS; do
14876 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14877 aix_use_runtimelinking
=yes
14884 exp_sym_flag
='-bexport'
14885 no_entry_flag
='-bnoentry'
14888 # When large executables or shared objects are built, AIX ld can
14889 # have problems creating the table of contents. If linking a library
14890 # or program results in "error TOC overflow" add -mminimal-toc to
14891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14895 hardcode_direct
=yes
14896 hardcode_direct_absolute
=yes
14897 hardcode_libdir_separator
=':'
14898 link_all_deplibs
=yes
14899 file_list_spec
='${wl}-f,'
14901 if test "$GCC" = yes; then
14902 case $host_os in aix4.
[012]|aix4.
[012].
*)
14903 # We only want to do this on AIX 4.2 and lower, the check
14904 # below for broken collect2 doesn't work under 4.3+
14905 collect2name
=`${CC} -print-prog-name=collect2`
14906 if test -f "$collect2name" &&
14907 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
14909 # We have reworked collect2
14912 # We have old collect2
14913 hardcode_direct
=unsupported
14914 # It fails to find uninstalled libraries when the uninstalled
14915 # path is not listed in the libpath. Setting hardcode_minus_L
14916 # to unsupported forces relinking
14917 hardcode_minus_L
=yes
14918 hardcode_libdir_flag_spec
='-L$libdir'
14919 hardcode_libdir_separator
=
14923 shared_flag
='-shared'
14924 if test "$aix_use_runtimelinking" = yes; then
14925 shared_flag
="$shared_flag "'${wl}-G'
14929 if test "$host_cpu" = ia64
; then
14930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14931 # chokes on -Wl,-G. The following line is correct:
14934 if test "$aix_use_runtimelinking" = yes; then
14935 shared_flag
='${wl}-G'
14937 shared_flag
='${wl}-bM:SRE'
14942 export_dynamic_flag_spec
='${wl}-bexpall'
14943 # It seems that -bexpall does not export symbols beginning with
14944 # underscore (_), so it is better to generate a list of symbols to export.
14945 always_export_symbols
=yes
14946 if test "$aix_use_runtimelinking" = yes; then
14947 # Warning - without using the other runtime loading flags (-brtl),
14948 # -berok will link without error, but may produce a broken library.
14949 allow_undefined_flag
='-berok'
14950 # Determine the default libpath from the value encoded in an
14951 # empty executable.
14952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14963 if ac_fn_c_try_link
"$LINENO"; then :
14965 lt_aix_libpath_sed
='
14966 /Import File Strings/,/^$/ {
14972 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14973 # Check for a 64-bit object if we didn't find anything.
14974 if test -z "$aix_libpath"; then
14975 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14978 rm -f core conftest.err conftest.
$ac_objext \
14979 conftest
$ac_exeext conftest.
$ac_ext
14980 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14982 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
14983 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"
14985 if test "$host_cpu" = ia64
; then
14986 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
14987 allow_undefined_flag
="-z nodefs"
14988 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"
14990 # Determine the default libpath from the value encoded in an
14991 # empty executable.
14992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
15003 if ac_fn_c_try_link
"$LINENO"; then :
15005 lt_aix_libpath_sed
='
15006 /Import File Strings/,/^$/ {
15012 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15013 # Check for a 64-bit object if we didn't find anything.
15014 if test -z "$aix_libpath"; then
15015 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15018 rm -f core conftest.err conftest.
$ac_objext \
15019 conftest
$ac_exeext conftest.
$ac_ext
15020 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15022 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15023 # Warning - without using the other run time loading flags,
15024 # -berok will link without error, but may produce a broken library.
15025 no_undefined_flag
=' ${wl}-bernotok'
15026 allow_undefined_flag
=' ${wl}-berok'
15027 # Exported symbols can be pulled into shared objects from archives
15028 whole_archive_flag_spec
='$convenience'
15029 archive_cmds_need_lc
=yes
15030 # This is similar to how AIX traditionally builds its shared libraries.
15031 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'
15039 # see comment about AmigaOS4 .so support
15040 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15041 archive_expsym_cmds
=''
15044 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)'
15045 hardcode_libdir_flag_spec
='-L$libdir'
15046 hardcode_minus_L
=yes
15052 export_dynamic_flag_spec
=-rdynamic
15055 cygwin
* | mingw
* | pw32
* | cegcc
*)
15056 # When not using gcc, we currently assume that we are using
15057 # Microsoft Visual C++.
15058 # hardcode_libdir_flag_spec is actually meaningless, as there is
15059 # no search path for DLLs.
15060 hardcode_libdir_flag_spec
=' '
15061 allow_undefined_flag
=unsupported
15062 # Tell ltmain to make .lib files, not .a files.
15064 # Tell ltmain to make .dll files, not .so files.
15066 # FIXME: Setting linknames here is a bad hack.
15067 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15068 # The linker will automatically build a .lib file if we build a DLL.
15069 old_archive_from_new_cmds
='true'
15070 # FIXME: Should let the user specify the lib program.
15071 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15072 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15073 enable_shared_with_static_runtimes
=yes
15076 darwin
* | rhapsody
*)
15079 archive_cmds_need_lc
=no
15081 hardcode_automatic
=yes
15082 hardcode_shlibpath_var
=unsupported
15083 whole_archive_flag_spec
=''
15084 link_all_deplibs
=yes
15085 allow_undefined_flag
="$_lt_dar_allow_undefined"
15086 case $cc_basename in
15087 ifort
*) _lt_dar_can_shared
=yes ;;
15088 *) _lt_dar_can_shared
=$GCC ;;
15090 if test "$_lt_dar_can_shared" = "yes"; then
15091 output_verbose_link_cmd
=echo
15092 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15093 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15094 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}"
15095 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}"
15104 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15105 hardcode_libdir_flag_spec
='-L$libdir'
15106 hardcode_shlibpath_var
=no
15113 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15114 # support. Future versions do this automatically, but an explicit c++rt0.o
15115 # does not break anything, and helps significantly (at the cost of a little
15118 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15119 hardcode_libdir_flag_spec
='-R$libdir'
15120 hardcode_direct
=yes
15121 hardcode_shlibpath_var
=no
15124 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15126 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15127 hardcode_direct
=yes
15128 hardcode_minus_L
=yes
15129 hardcode_shlibpath_var
=no
15132 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15133 freebsd
* | dragonfly
*)
15134 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15135 hardcode_libdir_flag_spec
='-R$libdir'
15136 hardcode_direct
=yes
15137 hardcode_shlibpath_var
=no
15141 if test "$GCC" = yes; then
15142 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'
15144 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'
15146 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15147 hardcode_libdir_separator
=:
15148 hardcode_direct
=yes
15150 # hardcode_minus_L: Not really in the search PATH,
15151 # but as the default location of the library.
15152 hardcode_minus_L
=yes
15153 export_dynamic_flag_spec
='${wl}-E'
15157 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15158 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15160 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15162 if test "$with_gnu_ld" = no
; then
15163 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15164 hardcode_libdir_flag_spec_ld
='+b $libdir'
15165 hardcode_libdir_separator
=:
15166 hardcode_direct
=yes
15167 hardcode_direct_absolute
=yes
15168 export_dynamic_flag_spec
='${wl}-E'
15169 # hardcode_minus_L: Not really in the search PATH,
15170 # but as the default location of the library.
15171 hardcode_minus_L
=yes
15176 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15179 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15182 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15185 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15191 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15197 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15201 if test "$with_gnu_ld" = no
; then
15202 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15203 hardcode_libdir_separator
=:
15208 hardcode_shlibpath_var
=no
15211 hardcode_direct
=yes
15212 hardcode_direct_absolute
=yes
15213 export_dynamic_flag_spec
='${wl}-E'
15215 # hardcode_minus_L: Not really in the search PATH,
15216 # but as the default location of the library.
15217 hardcode_minus_L
=yes
15223 irix5
* | irix6
* | nonstopux
*)
15224 if test "$GCC" = yes; then
15225 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'
15226 # Try to use the -exported_symbol ld option, if it does not
15227 # work, assume that -exports_file does not work either and
15228 # implicitly export all symbols.
15229 save_LDFLAGS
="$LDFLAGS"
15230 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15235 if ac_fn_c_try_link
"$LINENO"; then :
15236 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'
15239 rm -f core conftest.err conftest.
$ac_objext \
15240 conftest
$ac_exeext conftest.
$ac_ext
15241 LDFLAGS
="$save_LDFLAGS"
15243 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'
15244 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'
15246 archive_cmds_need_lc
='no'
15247 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15248 hardcode_libdir_separator
=:
15250 link_all_deplibs
=yes
15254 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15255 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15257 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15259 hardcode_libdir_flag_spec
='-R$libdir'
15260 hardcode_direct
=yes
15261 hardcode_shlibpath_var
=no
15265 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15266 hardcode_direct
=yes
15267 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15268 hardcode_libdir_separator
=:
15269 hardcode_shlibpath_var
=no
15276 if test -f /usr
/libexec
/ld.so
; then
15277 hardcode_direct
=yes
15278 hardcode_shlibpath_var
=no
15279 hardcode_direct_absolute
=yes
15280 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15281 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15282 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15283 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15284 export_dynamic_flag_spec
='${wl}-E'
15287 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15288 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15289 hardcode_libdir_flag_spec
='-R$libdir'
15292 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15293 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15303 hardcode_libdir_flag_spec
='-L$libdir'
15304 hardcode_minus_L
=yes
15305 allow_undefined_flag
=unsupported
15306 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'
15307 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15311 if test "$GCC" = yes; then
15312 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15313 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'
15315 allow_undefined_flag
=' -expect_unresolved \*'
15316 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'
15318 archive_cmds_need_lc
='no'
15319 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15320 hardcode_libdir_separator
=:
15323 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15324 if test "$GCC" = yes; then
15325 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15326 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'
15327 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15329 allow_undefined_flag
=' -expect_unresolved \*'
15330 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'
15331 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~
15332 $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'
15334 # Both c and cxx compiler support -rpath directly
15335 hardcode_libdir_flag_spec
='-rpath $libdir'
15337 archive_cmds_need_lc
='no'
15338 hardcode_libdir_separator
=:
15342 no_undefined_flag
=' -z defs'
15343 if test "$GCC" = yes; then
15345 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15346 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15347 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15349 case `$CC -V 2>&1` in
15352 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15353 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15354 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15358 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15359 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15360 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15364 hardcode_libdir_flag_spec
='-R$libdir'
15365 hardcode_shlibpath_var
=no
15367 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15369 # The compiler driver will combine and reorder linker options,
15370 # but understands `-z linker_flag'. GCC discards it without `$wl',
15371 # but is careful enough not to reorder.
15372 # Supported since Solaris 2.6 (maybe 2.5.1?)
15373 if test "$GCC" = yes; then
15374 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15376 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
15380 link_all_deplibs
=yes
15384 if test "x$host_vendor" = xsequent
; then
15385 # Use $CC to link under sequent, because it throws in some extra .o
15386 # files that make .init and .fini sections work.
15387 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15389 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15391 hardcode_libdir_flag_spec
='-L$libdir'
15392 hardcode_direct
=yes
15393 hardcode_minus_L
=yes
15394 hardcode_shlibpath_var
=no
15398 case $host_vendor in
15400 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15401 hardcode_direct
=yes # is this really true???
15404 ## LD is ld it makes a PLAMLIB
15405 ## CC just makes a GrossModule.
15406 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15407 reload_cmds
='$CC -r -o $output$reload_objs'
15411 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15415 runpath_var
='LD_RUN_PATH'
15416 hardcode_shlibpath_var
=no
15420 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15421 hardcode_shlibpath_var
=no
15422 export_dynamic_flag_spec
='-Bexport'
15426 if test -d /usr
/nec
; then
15427 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428 hardcode_shlibpath_var
=no
15429 runpath_var
=LD_RUN_PATH
15430 hardcode_runpath_var
=yes
15435 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15436 no_undefined_flag
='${wl}-z,text'
15437 archive_cmds_need_lc
=no
15438 hardcode_shlibpath_var
=no
15439 runpath_var
='LD_RUN_PATH'
15441 if test "$GCC" = yes; then
15442 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15443 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15445 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15446 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15450 sysv5
* | sco3.2v5
* | sco5v6
*)
15451 # Note: We can NOT use -z defs as we might desire, because we do not
15452 # link with -lc, and that would cause any symbols used from libc to
15453 # always be unresolved, which means just about no library would
15454 # ever link correctly. If we're not using GNU ld we use -z text
15455 # though, which does catch some bad symbols but isn't as heavy-handed
15457 no_undefined_flag
='${wl}-z,text'
15458 allow_undefined_flag
='${wl}-z,nodefs'
15459 archive_cmds_need_lc
=no
15460 hardcode_shlibpath_var
=no
15461 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
15462 hardcode_libdir_separator
=':'
15463 link_all_deplibs
=yes
15464 export_dynamic_flag_spec
='${wl}-Bexport'
15465 runpath_var
='LD_RUN_PATH'
15467 if test "$GCC" = yes; then
15468 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15471 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15472 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15477 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15478 hardcode_libdir_flag_spec
='-L$libdir'
15479 hardcode_shlibpath_var
=no
15487 if test x
$host_vendor = xsni
; then
15489 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15490 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15497 $as_echo "$ld_shlibs" >&6; }
15498 test "$ld_shlibs" = no
&& can_build_shared
=no
15500 with_gnu_ld
=$with_gnu_ld
15517 # Do we need to explicitly link libc?
15519 case "x$archive_cmds_need_lc" in
15521 # Assume -lc should be added
15522 archive_cmds_need_lc
=yes
15524 if test "$enable_shared" = yes && test "$GCC" = yes; then
15525 case $archive_cmds in
15527 # FIXME: we may have to deal with multi-command sequences.
15530 # Test whether the compiler implicitly links with -lc since on some
15531 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15532 # to ld, don't add -lc before -lgcc.
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15534 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15535 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15536 $as_echo_n "(cached) " >&6
15539 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15542 (eval $ac_compile) 2>&5
15544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15545 test $ac_status = 0; } 2>conftest.err
; then
15548 libobjs
=conftest.
$ac_objext
15550 wl
=$lt_prog_compiler_wl
15551 pic_flag
=$lt_prog_compiler_pic
15557 lt_save_allow_undefined_flag
=$allow_undefined_flag
15558 allow_undefined_flag
=
15559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15560 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15563 test $ac_status = 0; }
15565 lt_cv_archive_cmds_need_lc
=no
15567 lt_cv_archive_cmds_need_lc
=yes
15569 allow_undefined_flag
=$lt_save_allow_undefined_flag
15571 cat conftest.err
1>&5
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15577 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15578 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15742 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15744 if test "$GCC" = yes; then
15746 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
15747 *) lt_awk_arg
="/^libraries:/" ;;
15749 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15750 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
15751 # if the path contains ";" then we assume it to be the separator
15752 # otherwise default to the standard path separator (i.e. ":") - it is
15753 # assumed that no part of a normal pathname contains ";" but that should
15754 # okay in the real world where ";" in dirpaths is itself problematic.
15755 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15757 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15759 # Ok, now we have the path, separated by spaces, we can step through it
15760 # and add multilib dir if necessary.
15761 lt_tmp_lt_search_path_spec
=
15762 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15763 for lt_sys_path
in $lt_search_path_spec; do
15764 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15765 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15767 test -d "$lt_sys_path" && \
15768 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
15771 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
15772 BEGIN {RS=" "; FS="/|\n";} {
15775 for (lt_i = NF; lt_i > 0; lt_i--) {
15776 if ($lt_i != "" && $lt_i != ".") {
15777 if ($lt_i == "..") {
15780 if (lt_count == 0) {
15781 lt_foo="/" $lt_i lt_foo;
15788 if (lt_foo != "") { lt_freq[lt_foo]++; }
15789 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15791 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
15793 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15795 library_names_spec
=
15796 libname_spec
='lib$name'
15800 postuninstall_cmds
=
15804 shlibpath_overrides_runpath
=unknown
15806 dynamic_linker
="$host_os ld.so"
15807 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15808 need_lib_prefix
=unknown
15809 hardcode_into_libs
=no
15811 # when you set need_version to no, make sure it does not cause -set_version
15812 # flags to be left without arguments
15813 need_version
=unknown
15818 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15819 shlibpath_var
=LIBPATH
15821 # AIX 3 has no versioning support, so we append a major version to the name.
15822 soname_spec
='${libname}${release}${shared_ext}$major'
15829 hardcode_into_libs
=yes
15830 if test "$host_cpu" = ia64
; then
15831 # AIX 5 supports IA64
15832 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15833 shlibpath_var
=LD_LIBRARY_PATH
15835 # With GCC up to 2.95.x, collect2 would create an import file
15836 # for dependence libraries. The import file would start with
15837 # the line `#! .'. This would cause the generated library to
15838 # depend on `.', always an invalid library. This was fixed in
15839 # development snapshots of GCC prior to 3.0.
15841 aix4 | aix4.
[01] | aix4.
[01].
*)
15842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15844 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
15847 can_build_shared
=no
15851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15852 # soname into executable. Probably we can add versioning support to
15853 # collect2, so additional links can be useful in future.
15854 if test "$aix_use_runtimelinking" = yes; then
15855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15856 # instead of lib<name>.a to let people know that these are not
15857 # typical AIX shared libraries.
15858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860 # We preserve .a as extension for shared libraries through AIX4.2
15861 # and later when we are not doing run time linking.
15862 library_names_spec
='${libname}${release}.a $libname.a'
15863 soname_spec
='${libname}${release}${shared_ext}$major'
15865 shlibpath_var
=LIBPATH
15872 # Since July 2007 AmigaOS4 officially supports .so libraries.
15873 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15877 library_names_spec
='$libname.ixlibrary $libname.a'
15878 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15879 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'
15885 library_names_spec
='${libname}${shared_ext}'
15886 dynamic_linker
="$host_os ld.so"
15887 shlibpath_var
=LIBRARY_PATH
15893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894 soname_spec
='${libname}${release}${shared_ext}$major'
15895 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15896 shlibpath_var
=LD_LIBRARY_PATH
15897 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15898 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15899 # the default ld.so.conf also contains /usr/contrib/lib and
15900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15901 # libtool to hard-code these into programs
15904 cygwin
* | mingw
* | pw32
* | cegcc
*)
15905 version_type
=windows
15910 case $GCC,$host_os in
15911 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
15912 library_names_spec
='$libname.dll.a'
15913 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15914 postinstall_cmds
='base_file=`basename \${file}`~
15915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15916 dldir=$destdir/`dirname \$dlpath`~
15917 test -d \$dldir || mkdir -p \$dldir~
15918 $install_prog $dir/$dlname \$dldir/$dlname~
15919 chmod a+x \$dldir/$dlname~
15920 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15921 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15923 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15924 dlpath=$dir/\$dldll~
15926 shlibpath_overrides_runpath
=yes
15930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15931 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15932 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15935 # MinGW DLLs use traditional 'lib' prefix
15936 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15937 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15938 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
15939 # It is most probably a Windows format PATH printed by
15940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15941 # path with ; separators, and with drive letters. We can handle the
15942 # drive letters (cygwin fileutils understands them), so leave them,
15943 # especially as we might pass files found there to a mingw objdump,
15944 # which wouldn't understand a cygwinified path. Ahh.
15945 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15947 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15951 # pw32 DLLs use 'pw' prefix rather than 'lib'
15952 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15958 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15961 dynamic_linker
='Win32 ld.exe'
15962 # FIXME: first we should search . and the directory the executable is in
15966 darwin
* | rhapsody
*)
15967 dynamic_linker
="$host_os dyld"
15968 version_type
=darwin
15971 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15972 soname_spec
='${libname}${release}${major}$shared_ext'
15973 shlibpath_overrides_runpath
=yes
15974 shlibpath_var
=DYLD_LIBRARY_PATH
15975 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15977 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
15978 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15986 soname_spec
='${libname}${release}${shared_ext}$major'
15987 shlibpath_var
=LD_LIBRARY_PATH
15994 freebsd
* | dragonfly
*)
15995 # DragonFly does not have aout. When/if they implement a new
15996 # versioning mechanism, adjust this.
15997 if test -x /usr
/bin
/objformat
; then
15998 objformat
=`/usr/bin/objformat`
16001 freebsd
[123]*) objformat
=aout
;;
16002 *) objformat
=elf
;;
16005 version_type
=freebsd-
$objformat
16006 case $version_type in
16008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16013 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16017 shlibpath_var
=LD_LIBRARY_PATH
16020 shlibpath_overrides_runpath
=yes
16022 freebsd3.
[01]* | freebsdelf3.
[01]*)
16023 shlibpath_overrides_runpath
=yes
16024 hardcode_into_libs
=yes
16026 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16027 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16028 shlibpath_overrides_runpath
=no
16029 hardcode_into_libs
=yes
16031 *) # from 4.6 on, and DragonFly
16032 shlibpath_overrides_runpath
=yes
16033 hardcode_into_libs
=yes
16042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16043 soname_spec
='${libname}${release}${shared_ext}$major'
16044 shlibpath_var
=LD_LIBRARY_PATH
16045 hardcode_into_libs
=yes
16048 hpux9
* | hpux10
* | hpux11
*)
16049 # Give a soname corresponding to the major version so that dld.sl refuses to
16050 # link against other versions.
16057 hardcode_into_libs
=yes
16058 dynamic_linker
="$host_os dld.so"
16059 shlibpath_var
=LD_LIBRARY_PATH
16060 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 soname_spec
='${libname}${release}${shared_ext}$major'
16063 if test "X$HPUX_IA64_MODE" = X32
; then
16064 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16066 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16068 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16072 hardcode_into_libs
=yes
16073 dynamic_linker
="$host_os dld.sl"
16074 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16075 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 soname_spec
='${libname}${release}${shared_ext}$major'
16078 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16079 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16083 dynamic_linker
="$host_os dld.sl"
16084 shlibpath_var
=SHLIB_PATH
16085 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec
='${libname}${release}${shared_ext}$major'
16090 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16091 postinstall_cmds
='chmod 555 $lib'
16098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16099 soname_spec
='${libname}${release}${shared_ext}$major'
16100 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16101 shlibpath_var
=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath
=no
16103 hardcode_into_libs
=yes
16106 irix5
* | irix6
* | nonstopux
*)
16108 nonstopux
*) version_type
=nonstopux
;;
16110 if test "$lt_cv_prog_gnu_ld" = yes; then
16118 soname_spec
='${libname}${release}${shared_ext}$major'
16119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16121 irix5
* | nonstopux
*)
16122 libsuff
= shlibsuff
=
16125 case $LD in # libtool.m4 will add one of these switches to LD
16126 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16127 libsuff
= shlibsuff
= libmagic
=32-bit;;
16128 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16129 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16130 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16131 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16132 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16136 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16137 shlibpath_overrides_runpath
=no
16138 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16139 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16140 hardcode_into_libs
=yes
16143 # No shared lib support for Linux oldld, aout, or coff.
16144 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16148 # This must be Linux ELF.
16149 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154 soname_spec
='${libname}${release}${shared_ext}$major'
16155 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16156 shlibpath_var
=LD_LIBRARY_PATH
16157 shlibpath_overrides_runpath
=no
16159 # Some binutils ld are patched to set DT_RUNPATH
16160 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16161 $as_echo_n "(cached) " >&6
16163 lt_cv_shlibpath_overrides_runpath
=no
16164 save_LDFLAGS
=$LDFLAGS
16165 save_libdir
=$libdir
16166 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16167 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16179 if ac_fn_c_try_link
"$LINENO"; then :
16180 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16181 lt_cv_shlibpath_overrides_runpath
=yes
16184 rm -f core conftest.err conftest.
$ac_objext \
16185 conftest
$ac_exeext conftest.
$ac_ext
16186 LDFLAGS
=$save_LDFLAGS
16187 libdir
=$save_libdir
16191 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16193 # This implies no fast_install, which is unacceptable.
16194 # Some rework will be needed to allow for fast_install
16195 # before this can be enabled.
16196 hardcode_into_libs
=yes
16198 # Append ld.so.conf contents to the search path
16199 if test -f /etc
/ld.so.conf
; then
16200 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' ' '`
16201 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16204 # We used to test for /lib/ld.so.1 and disable shared libraries on
16205 # powerpc, because MkLinux only supported shared libraries with the
16206 # GNU dynamic linker. Since this was broken with cross compilers,
16207 # most powerpc-linux boxes support dynamic linking these days and
16208 # people can always --disable-shared, the test was removed, and we
16209 # assume the GNU/Linux dynamic linker is in use.
16210 dynamic_linker
='GNU/Linux ld.so'
16217 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16219 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16220 dynamic_linker
='NetBSD (a.out) ld.so'
16222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16223 soname_spec
='${libname}${release}${shared_ext}$major'
16224 dynamic_linker
='NetBSD ld.elf_so'
16226 shlibpath_var
=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath
=yes
16228 hardcode_into_libs
=yes
16233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234 shlibpath_var
=LD_LIBRARY_PATH
16235 shlibpath_overrides_runpath
=yes
16242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243 soname_spec
='${libname}${release}${shared_ext}$major'
16244 shlibpath_var
=LD_LIBRARY_PATH
16245 shlibpath_overrides_runpath
=no
16246 hardcode_into_libs
=yes
16247 dynamic_linker
='ldqnx.so'
16252 sys_lib_dlsearch_path_spec
="/usr/lib"
16254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16256 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16257 *) need_version
=no
;;
16259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16260 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16261 shlibpath_var
=LD_LIBRARY_PATH
16262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16264 openbsd2.
[89] | openbsd2.
[89].
*)
16265 shlibpath_overrides_runpath
=no
16268 shlibpath_overrides_runpath
=yes
16272 shlibpath_overrides_runpath
=yes
16277 libname_spec
='$name'
16280 library_names_spec
='$libname${shared_ext} $libname.a'
16281 dynamic_linker
='OS/2 ld.exe'
16282 shlibpath_var
=LIBPATH
16285 osf3
* | osf4
* | osf5
*)
16289 soname_spec
='${libname}${release}${shared_ext}$major'
16290 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291 shlibpath_var
=LD_LIBRARY_PATH
16292 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16293 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305 soname_spec
='${libname}${release}${shared_ext}$major'
16306 shlibpath_var
=LD_LIBRARY_PATH
16307 shlibpath_overrides_runpath
=yes
16308 hardcode_into_libs
=yes
16309 # ldd complains unless libraries are executable
16310 postinstall_cmds
='chmod +x $lib'
16315 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16316 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16317 shlibpath_var
=LD_LIBRARY_PATH
16318 shlibpath_overrides_runpath
=yes
16319 if test "$with_gnu_ld" = yes; then
16327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328 soname_spec
='${libname}${release}${shared_ext}$major'
16329 shlibpath_var
=LD_LIBRARY_PATH
16330 case $host_vendor in
16332 shlibpath_overrides_runpath
=no
16334 runpath_var
=LD_RUN_PATH
16342 shlibpath_overrides_runpath
=no
16343 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16349 if test -d /usr
/nec
;then
16351 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16352 soname_spec
='$libname${shared_ext}.$major'
16353 shlibpath_var
=LD_LIBRARY_PATH
16357 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16358 version_type
=freebsd-elf
16361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16362 soname_spec
='${libname}${release}${shared_ext}$major'
16363 shlibpath_var
=LD_LIBRARY_PATH
16364 shlibpath_overrides_runpath
=yes
16365 hardcode_into_libs
=yes
16366 if test "$with_gnu_ld" = yes; then
16367 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16369 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16372 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16376 sys_lib_dlsearch_path_spec
='/usr/lib'
16380 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16385 shlibpath_var
=LD_LIBRARY_PATH
16386 shlibpath_overrides_runpath
=no
16387 hardcode_into_libs
=yes
16392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 soname_spec
='${libname}${release}${shared_ext}$major'
16394 shlibpath_var
=LD_LIBRARY_PATH
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16402 $as_echo "$dynamic_linker" >&6; }
16403 test "$dynamic_linker" = no
&& can_build_shared
=no
16405 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16406 if test "$GCC" = yes; then
16407 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16411 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16414 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16504 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16506 if test -n "$hardcode_libdir_flag_spec" ||
16507 test -n "$runpath_var" ||
16508 test "X$hardcode_automatic" = "Xyes" ; then
16510 # We can hardcode non-existent directories.
16511 if test "$hardcode_direct" != no
&&
16512 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16513 # have to relink, otherwise we might link with an installed library
16514 # when we should be linking with a yet-to-be-installed one
16515 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16516 test "$hardcode_minus_L" != no
; then
16517 # Linking always hardcodes the temporary library directory.
16518 hardcode_action
=relink
16520 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16521 hardcode_action
=immediate
16524 # We cannot hardcode anything, or else we can only hardcode existing
16526 hardcode_action
=unsupported
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16529 $as_echo "$hardcode_action" >&6; }
16531 if test "$hardcode_action" = relink ||
16532 test "$inherit_rpath" = yes; then
16533 # Fast installation is not supported
16534 enable_fast_install
=no
16535 elif test "$shlibpath_overrides_runpath" = yes ||
16536 test "$enable_shared" = no
; then
16537 # Fast installation is not necessary
16538 enable_fast_install
=needless
16546 if test "x$enable_dlopen" != xyes
; then
16547 enable_dlopen
=unknown
16548 enable_dlopen_self
=unknown
16549 enable_dlopen_self_static
=unknown
16556 lt_cv_dlopen
="load_add_on"
16558 lt_cv_dlopen_self
=yes
16561 mingw
* | pw32
* | cegcc
*)
16562 lt_cv_dlopen
="LoadLibrary"
16567 lt_cv_dlopen
="dlopen"
16572 # if libdl is installed we need to link against it
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16575 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16576 $as_echo_n "(cached) " >&6
16578 ac_check_lib_save_LIBS
=$LIBS
16580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16583 /* Override any GCC internal prototype to avoid an error.
16584 Use char because int might match the return type of a GCC
16585 builtin and then its argument prototype would still apply. */
16598 if ac_fn_c_try_link
"$LINENO"; then :
16599 ac_cv_lib_dl_dlopen
=yes
16601 ac_cv_lib_dl_dlopen
=no
16603 rm -f core conftest.err conftest.
$ac_objext \
16604 conftest
$ac_exeext conftest.
$ac_ext
16605 LIBS
=$ac_check_lib_save_LIBS
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16609 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16610 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16613 lt_cv_dlopen
="dyld"
16615 lt_cv_dlopen_self
=yes
16622 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
16623 if test "x$ac_cv_func_shl_load" = x
""yes; then :
16624 lt_cv_dlopen
="shl_load"
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16627 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16628 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16629 $as_echo_n "(cached) " >&6
16631 ac_check_lib_save_LIBS
=$LIBS
16633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16636 /* Override any GCC internal prototype to avoid an error.
16637 Use char because int might match the return type of a GCC
16638 builtin and then its argument prototype would still apply. */
16646 return shl_load ();
16651 if ac_fn_c_try_link
"$LINENO"; then :
16652 ac_cv_lib_dld_shl_load
=yes
16654 ac_cv_lib_dld_shl_load
=no
16656 rm -f core conftest.err conftest.
$ac_objext \
16657 conftest
$ac_exeext conftest.
$ac_ext
16658 LIBS
=$ac_check_lib_save_LIBS
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16661 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16662 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
16663 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
16665 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16666 if test "x$ac_cv_func_dlopen" = x
""yes; then :
16667 lt_cv_dlopen
="dlopen"
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16670 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16672 $as_echo_n "(cached) " >&6
16674 ac_check_lib_save_LIBS
=$LIBS
16676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16679 /* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
16694 if ac_fn_c_try_link
"$LINENO"; then :
16695 ac_cv_lib_dl_dlopen
=yes
16697 ac_cv_lib_dl_dlopen
=no
16699 rm -f core conftest.err conftest.
$ac_objext \
16700 conftest
$ac_exeext conftest.
$ac_ext
16701 LIBS
=$ac_check_lib_save_LIBS
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16704 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16705 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16706 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16709 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16710 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16711 $as_echo_n "(cached) " >&6
16713 ac_check_lib_save_LIBS
=$LIBS
16714 LIBS
="-lsvld $LIBS"
16715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16718 /* Override any GCC internal prototype to avoid an error.
16719 Use char because int might match the return type of a GCC
16720 builtin and then its argument prototype would still apply. */
16733 if ac_fn_c_try_link
"$LINENO"; then :
16734 ac_cv_lib_svld_dlopen
=yes
16736 ac_cv_lib_svld_dlopen
=no
16738 rm -f core conftest.err conftest.
$ac_objext \
16739 conftest
$ac_exeext conftest.
$ac_ext
16740 LIBS
=$ac_check_lib_save_LIBS
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16743 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16744 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
16745 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16748 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16749 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16750 $as_echo_n "(cached) " >&6
16752 ac_check_lib_save_LIBS
=$LIBS
16754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16757 /* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16767 return dld_link ();
16772 if ac_fn_c_try_link
"$LINENO"; then :
16773 ac_cv_lib_dld_dld_link
=yes
16775 ac_cv_lib_dld_dld_link
=no
16777 rm -f core conftest.err conftest.
$ac_objext \
16778 conftest
$ac_exeext conftest.
$ac_ext
16779 LIBS
=$ac_check_lib_save_LIBS
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16782 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16783 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
16784 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
16805 if test "x$lt_cv_dlopen" != xno
; then
16811 case $lt_cv_dlopen in
16813 save_CPPFLAGS
="$CPPFLAGS"
16814 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
16816 save_LDFLAGS
="$LDFLAGS"
16817 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
16820 LIBS
="$lt_cv_dlopen_libs $LIBS"
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16823 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16824 if test "${lt_cv_dlopen_self+set}" = set; then :
16825 $as_echo_n "(cached) " >&6
16827 if test "$cross_compiling" = yes; then :
16828 lt_cv_dlopen_self
=cross
16830 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
16831 lt_status
=$lt_dlunknown
16832 cat > conftest.
$ac_ext <<_LT_EOF
16833 #line 16833 "configure"
16834 #include "confdefs.h"
16843 # define LT_DLGLOBAL RTLD_GLOBAL
16846 # define LT_DLGLOBAL DL_GLOBAL
16848 # define LT_DLGLOBAL 0
16852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16853 find out it does not work in some platform. */
16854 #ifndef LT_DLLAZY_OR_NOW
16856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16859 # define LT_DLLAZY_OR_NOW DL_LAZY
16862 # define LT_DLLAZY_OR_NOW RTLD_NOW
16865 # define LT_DLLAZY_OR_NOW DL_NOW
16867 # define LT_DLLAZY_OR_NOW 0
16874 void fnord() { int i=42;}
16877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16878 int status = $lt_dlunknown;
16882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16883 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16884 /* dlclose (self); */
16892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16893 (eval $ac_link) 2>&5
16895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16896 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
16897 (.
/conftest
; exit; ) >&5 2>/dev
/null
16899 case x
$lt_status in
16900 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
16901 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
16902 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
16905 # compilation failed
16906 lt_cv_dlopen_self
=no
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16914 $as_echo "$lt_cv_dlopen_self" >&6; }
16916 if test "x$lt_cv_dlopen_self" = xyes
; then
16917 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16919 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16920 if test "${lt_cv_dlopen_self_static+set}" = set; then :
16921 $as_echo_n "(cached) " >&6
16923 if test "$cross_compiling" = yes; then :
16924 lt_cv_dlopen_self_static
=cross
16926 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
16927 lt_status
=$lt_dlunknown
16928 cat > conftest.
$ac_ext <<_LT_EOF
16929 #line 16929 "configure"
16930 #include "confdefs.h"
16939 # define LT_DLGLOBAL RTLD_GLOBAL
16942 # define LT_DLGLOBAL DL_GLOBAL
16944 # define LT_DLGLOBAL 0
16948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16949 find out it does not work in some platform. */
16950 #ifndef LT_DLLAZY_OR_NOW
16952 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16955 # define LT_DLLAZY_OR_NOW DL_LAZY
16958 # define LT_DLLAZY_OR_NOW RTLD_NOW
16961 # define LT_DLLAZY_OR_NOW DL_NOW
16963 # define LT_DLLAZY_OR_NOW 0
16970 void fnord() { int i=42;}
16973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16974 int status = $lt_dlunknown;
16978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16979 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16980 /* dlclose (self); */
16988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16989 (eval $ac_link) 2>&5
16991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16992 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
16993 (.
/conftest
; exit; ) >&5 2>/dev
/null
16995 case x
$lt_status in
16996 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
16997 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
16998 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17001 # compilation failed
17002 lt_cv_dlopen_self_static
=no
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17010 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17013 CPPFLAGS
="$save_CPPFLAGS"
17014 LDFLAGS
="$save_LDFLAGS"
17019 case $lt_cv_dlopen_self in
17020 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17021 *) enable_dlopen_self
=unknown
;;
17024 case $lt_cv_dlopen_self_static in
17025 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17026 *) enable_dlopen_self_static
=unknown
;;
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17049 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17050 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17051 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17052 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17054 $as_echo "yes" >&6; }
17056 # FIXME - insert some real tests, host_os isn't really good enough
17059 if test -n "$STRIP" ; then
17060 striplib
="$STRIP -x"
17061 old_striplib
="$STRIP -S"
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17063 $as_echo "yes" >&6; }
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17066 $as_echo "no" >&6; }
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071 $as_echo "no" >&6; }
17087 # Report which library types will actually be built
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17089 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17091 $as_echo "$can_build_shared" >&6; }
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17094 $as_echo_n "checking whether to build shared libraries... " >&6; }
17095 test "$can_build_shared" = "no" && enable_shared
=no
17097 # On AIX, shared libraries and static libraries use the same namespace, and
17098 # are all built from PIC.
17101 test "$enable_shared" = yes && enable_static
=no
17102 if test -n "$RANLIB"; then
17103 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17104 postinstall_cmds
='$RANLIB $lib'
17109 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17110 test "$enable_shared" = yes && enable_static
=no
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17115 $as_echo "$enable_shared" >&6; }
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17118 $as_echo_n "checking whether to build static libraries... " >&6; }
17119 # Make sure either enable_shared or enable_static is yes.
17120 test "$enable_shared" = yes || enable_static
=yes
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17122 $as_echo "$enable_static" >&6; }
17129 ac_cpp
='$CPP $CPPFLAGS'
17130 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17131 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17132 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17138 ac_cpp
='$CXXCPP $CPPFLAGS'
17139 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17140 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17141 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17143 archive_cmds_need_lc_CXX
=no
17144 allow_undefined_flag_CXX
=
17145 always_export_symbols_CXX
=no
17146 archive_expsym_cmds_CXX
=
17147 compiler_needs_object_CXX
=no
17148 export_dynamic_flag_spec_CXX
=
17149 hardcode_direct_CXX
=no
17150 hardcode_direct_absolute_CXX
=no
17151 hardcode_libdir_flag_spec_CXX
=
17152 hardcode_libdir_flag_spec_ld_CXX
=
17153 hardcode_libdir_separator_CXX
=
17154 hardcode_minus_L_CXX
=no
17155 hardcode_shlibpath_var_CXX
=unsupported
17156 hardcode_automatic_CXX
=no
17157 inherit_rpath_CXX
=no
17159 module_expsym_cmds_CXX
=
17160 link_all_deplibs_CXX
=unknown
17161 old_archive_cmds_CXX
=$old_archive_cmds
17162 no_undefined_flag_CXX
=
17163 whole_archive_flag_spec_CXX
=
17164 enable_shared_with_static_runtimes_CXX
=no
17166 # Source file extension for C++ test sources.
17169 # Object file extension for compiled C++ test sources.
17173 # No sense in running all these tests if we already determined that
17174 # the CXX compiler isn't working. Some variables (like enable_shared)
17175 # are currently assumed to apply to all compilers on this platform,
17176 # and will be corrupted by setting them based on a non-working compiler.
17177 if test "$_lt_caught_CXX_error" != yes; then
17178 # Code to be used in simple compile tests
17179 lt_simple_compile_test_code
="int some_variable = 0;"
17181 # Code to be used in simple link tests
17182 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
17184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17191 # If no C compiler was specified, use CC.
17194 # If no C compiler flags were specified, use CFLAGS.
17195 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17197 # Allow CC to be a program name with arguments.
17201 # save warnings/boilerplate of simple test code
17202 ac_outfile
=conftest.
$ac_objext
17203 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17204 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17205 _lt_compiler_boilerplate
=`cat conftest.err`
17208 ac_outfile
=conftest.
$ac_objext
17209 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17210 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17211 _lt_linker_boilerplate
=`cat conftest.err`
17215 # Allow CC to be a program name with arguments.
17220 lt_save_with_gnu_ld
=$with_gnu_ld
17221 lt_save_path_LD
=$lt_cv_path_LD
17222 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17223 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
17225 $as_unset lt_cv_prog_gnu_ld
17227 if test -n "${lt_cv_path_LDCXX+set}"; then
17228 lt_cv_path_LD
=$lt_cv_path_LDCXX
17230 $as_unset lt_cv_path_LD
17232 test -z "${LDCXX+set}" || LD
=$LDCXX
17236 for cc_temp
in $compiler""; do
17238 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17239 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17244 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17247 if test -n "$compiler"; then
17248 # We don't want -fno-exception when compiling C++ code, so set the
17249 # no_builtin_flag separately
17250 if test "$GXX" = yes; then
17251 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
17253 lt_prog_compiler_no_builtin_flag_CXX
=
17256 if test "$GXX" = yes; then
17257 # Set up default GNU C++ configuration
17261 # Check whether --with-gnu-ld was given.
17262 if test "${with_gnu_ld+set}" = set; then :
17263 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
17269 if test "$GCC" = yes; then
17270 # Check if gcc -print-prog-name=ld gives a path.
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17272 $as_echo_n "checking for ld used by $CC... " >&6; }
17275 # gcc leaves a trailing carriage return which upsets mingw
17276 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17278 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
17281 # Accept absolute paths.
17283 re_direlt
='/[^/][^/]*/\.\./'
17284 # Canonicalize the pathname of ld
17285 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17286 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
17287 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17289 test -z "$LD" && LD
="$ac_prog"
17292 # If it fails, then pretend we aren't using GCC.
17296 # If it is relative, then search for the first ld in PATH.
17297 with_gnu_ld
=unknown
17300 elif test "$with_gnu_ld" = yes; then
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17302 $as_echo_n "checking for GNU ld... " >&6; }
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17305 $as_echo_n "checking for non-GNU ld... " >&6; }
17307 if test "${lt_cv_path_LD+set}" = set; then :
17308 $as_echo_n "(cached) " >&6
17310 if test -z "$LD"; then
17311 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
17312 for ac_dir
in $PATH; do
17314 test -z "$ac_dir" && ac_dir
=.
17315 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
17316 lt_cv_path_LD
="$ac_dir/$ac_prog"
17317 # Check to see if the program is GNU ld. I'd rather use --version,
17318 # but apparently some variants of GNU ld only accept -v.
17319 # Break only if it was the GNU/non-GNU ld that we prefer.
17320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17321 *GNU
* |
*'with BFD'*)
17322 test "$with_gnu_ld" != no
&& break
17325 test "$with_gnu_ld" != yes && break
17332 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
17336 LD
="$lt_cv_path_LD"
17337 if test -n "$LD"; then
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17339 $as_echo "$LD" >&6; }
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17342 $as_echo "no" >&6; }
17344 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17346 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17347 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17348 $as_echo_n "(cached) " >&6
17350 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17351 case `$LD -v 2>&1 </dev/null` in
17352 *GNU
* |
*'with BFD'*)
17353 lt_cv_prog_gnu_ld
=yes
17356 lt_cv_prog_gnu_ld
=no
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17361 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17362 with_gnu_ld
=$lt_cv_prog_gnu_ld
17370 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17371 # archiving commands below assume that GNU ld is being used.
17372 if test "$with_gnu_ld" = yes; then
17373 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17374 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'
17376 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17377 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17379 # If archive_cmds runs LD, not CC, wlarc should be empty
17380 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17381 # investigate it a little bit more. (MM)
17384 # ancient GNU ld didn't support --whole-archive et. al.
17385 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17386 $GREP 'no-whole-archive' > /dev
/null
; then
17387 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17389 whole_archive_flag_spec_CXX
=
17395 # A generic and very simple default shared library creation
17396 # command for GNU C++ for the case where it uses the native
17397 # linker, instead of GNU ld. If possible, this setting should
17398 # overridden to take advantage of the native linker features on
17399 # the platform it is being used on.
17400 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17403 # Commands to make compiler produce verbose output that lists
17404 # what "hidden" libraries, object files and flags are used when
17405 # linking a shared library.
17406 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17414 # PORTME: fill in a description of your system's C++ link characteristics
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17416 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17420 # FIXME: insert proper C++ library support
17424 if test "$host_cpu" = ia64
; then
17425 # On IA64, the linker does run time linking by default, so we don't
17426 # have to do anything special.
17427 aix_use_runtimelinking
=no
17428 exp_sym_flag
='-Bexport'
17431 aix_use_runtimelinking
=no
17433 # Test if we are trying to use run time linking or normal
17434 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17435 # need to do runtime linking.
17436 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17437 for ld_flag
in $LDFLAGS; do
17440 aix_use_runtimelinking
=yes
17448 exp_sym_flag
='-bexport'
17449 no_entry_flag
='-bnoentry'
17452 # When large executables or shared objects are built, AIX ld can
17453 # have problems creating the table of contents. If linking a library
17454 # or program results in "error TOC overflow" add -mminimal-toc to
17455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17458 archive_cmds_CXX
=''
17459 hardcode_direct_CXX
=yes
17460 hardcode_direct_absolute_CXX
=yes
17461 hardcode_libdir_separator_CXX
=':'
17462 link_all_deplibs_CXX
=yes
17463 file_list_spec_CXX
='${wl}-f,'
17465 if test "$GXX" = yes; then
17466 case $host_os in aix4.
[012]|aix4.
[012].
*)
17467 # We only want to do this on AIX 4.2 and lower, the check
17468 # below for broken collect2 doesn't work under 4.3+
17469 collect2name
=`${CC} -print-prog-name=collect2`
17470 if test -f "$collect2name" &&
17471 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17473 # We have reworked collect2
17476 # We have old collect2
17477 hardcode_direct_CXX
=unsupported
17478 # It fails to find uninstalled libraries when the uninstalled
17479 # path is not listed in the libpath. Setting hardcode_minus_L
17480 # to unsupported forces relinking
17481 hardcode_minus_L_CXX
=yes
17482 hardcode_libdir_flag_spec_CXX
='-L$libdir'
17483 hardcode_libdir_separator_CXX
=
17486 shared_flag
='-shared'
17487 if test "$aix_use_runtimelinking" = yes; then
17488 shared_flag
="$shared_flag "'${wl}-G'
17492 if test "$host_cpu" = ia64
; then
17493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17494 # chokes on -Wl,-G. The following line is correct:
17497 if test "$aix_use_runtimelinking" = yes; then
17498 shared_flag
='${wl}-G'
17500 shared_flag
='${wl}-bM:SRE'
17505 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
17506 # It seems that -bexpall does not export symbols beginning with
17507 # underscore (_), so it is better to generate a list of symbols to
17509 always_export_symbols_CXX
=yes
17510 if test "$aix_use_runtimelinking" = yes; then
17511 # Warning - without using the other runtime loading flags (-brtl),
17512 # -berok will link without error, but may produce a broken library.
17513 allow_undefined_flag_CXX
='-berok'
17514 # Determine the default libpath from the value encoded in an empty
17516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17527 if ac_fn_cxx_try_link
"$LINENO"; then :
17529 lt_aix_libpath_sed
='
17530 /Import File Strings/,/^$/ {
17536 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17537 # Check for a 64-bit object if we didn't find anything.
17538 if test -z "$aix_libpath"; then
17539 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17542 rm -f core conftest.err conftest.
$ac_objext \
17543 conftest
$ac_exeext conftest.
$ac_ext
17544 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17546 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
17548 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"
17550 if test "$host_cpu" = ia64
; then
17551 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
17552 allow_undefined_flag_CXX
="-z nodefs"
17553 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"
17555 # Determine the default libpath from the value encoded in an
17556 # empty executable.
17557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17558 /* end confdefs.h. */
17568 if ac_fn_cxx_try_link
"$LINENO"; then :
17570 lt_aix_libpath_sed
='
17571 /Import File Strings/,/^$/ {
17577 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17578 # Check for a 64-bit object if we didn't find anything.
17579 if test -z "$aix_libpath"; then
17580 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17583 rm -f core conftest.err conftest.
$ac_objext \
17584 conftest
$ac_exeext conftest.
$ac_ext
17585 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17587 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
17588 # Warning - without using the other run time loading flags,
17589 # -berok will link without error, but may produce a broken library.
17590 no_undefined_flag_CXX
=' ${wl}-bernotok'
17591 allow_undefined_flag_CXX
=' ${wl}-berok'
17592 # Exported symbols can be pulled into shared objects from archives
17593 whole_archive_flag_spec_CXX
='$convenience'
17594 archive_cmds_need_lc_CXX
=yes
17595 # This is similar to how AIX traditionally builds its shared
17597 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'
17603 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17604 allow_undefined_flag_CXX
=unsupported
17605 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17606 # support --undefined. This deserves some investigation. FIXME
17607 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17614 case $cc_basename in
17616 # FIXME: insert proper C++ library support
17622 cygwin
* | mingw
* | pw32
* | cegcc
*)
17623 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17624 # as there is no search path for DLLs.
17625 hardcode_libdir_flag_spec_CXX
='-L$libdir'
17626 allow_undefined_flag_CXX
=unsupported
17627 always_export_symbols_CXX
=no
17628 enable_shared_with_static_runtimes_CXX
=yes
17630 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17631 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'
17632 # If the export-symbols file already is a .def file (1st line
17633 # is EXPORTS), use it as is; otherwise, prepend...
17634 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17635 cp $export_symbols $output_objdir/$soname.def;
17637 echo EXPORTS > $output_objdir/$soname.def;
17638 cat $export_symbols >> $output_objdir/$soname.def;
17640 $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'
17645 darwin
* | rhapsody
*)
17648 archive_cmds_need_lc_CXX
=no
17649 hardcode_direct_CXX
=no
17650 hardcode_automatic_CXX
=yes
17651 hardcode_shlibpath_var_CXX
=unsupported
17652 whole_archive_flag_spec_CXX
=''
17653 link_all_deplibs_CXX
=yes
17654 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
17655 case $cc_basename in
17656 ifort
*) _lt_dar_can_shared
=yes ;;
17657 *) _lt_dar_can_shared
=$GCC ;;
17659 if test "$_lt_dar_can_shared" = "yes"; then
17660 output_verbose_link_cmd
=echo
17661 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}"
17662 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17663 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}"
17664 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}"
17665 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17666 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}"
17667 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}"
17677 case $cc_basename in
17679 # FIXME: insert proper C++ library support
17683 # Green Hills C++ Compiler
17684 # FIXME: insert proper C++ library support
17688 # FIXME: insert proper C++ library support
17695 # C++ shared libraries reported to be fairly broken before
17701 archive_cmds_need_lc_CXX
=no
17704 freebsd
* | dragonfly
*)
17705 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17714 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
17715 hardcode_libdir_separator_CXX
=:
17716 export_dynamic_flag_spec_CXX
='${wl}-E'
17717 hardcode_direct_CXX
=yes
17718 hardcode_minus_L_CXX
=yes # Not in the search PATH,
17719 # but as the default
17720 # location of the library.
17722 case $cc_basename in
17724 # FIXME: insert proper C++ library support
17728 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'
17729 # Commands to make compiler produce verbose output that lists
17730 # what "hidden" libraries, object files and flags are used when
17731 # linking a shared library.
17733 # There doesn't appear to be a way to prevent this compiler from
17734 # explicitly linking system object files so we need to strip them
17735 # from the output so that they don't get included in the library
17737 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17740 if test "$GXX" = yes; then
17741 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'
17743 # FIXME: insert proper C++ library support
17751 if test $with_gnu_ld = no
; then
17752 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
17753 hardcode_libdir_separator_CXX
=:
17759 export_dynamic_flag_spec_CXX
='${wl}-E'
17765 hardcode_direct_CXX
=no
17766 hardcode_shlibpath_var_CXX
=no
17769 hardcode_direct_CXX
=yes
17770 hardcode_direct_absolute_CXX
=yes
17771 hardcode_minus_L_CXX
=yes # Not in the search PATH,
17772 # but as the default
17773 # location of the library.
17777 case $cc_basename in
17779 # FIXME: insert proper C++ library support
17785 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17788 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17791 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17794 # Commands to make compiler produce verbose output that lists
17795 # what "hidden" libraries, object files and flags are used when
17796 # linking a shared library.
17798 # There doesn't appear to be a way to prevent this compiler from
17799 # explicitly linking system object files so we need to strip them
17800 # from the output so that they don't get included in the library
17802 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'
17805 if test "$GXX" = yes; then
17806 if test $with_gnu_ld = no
; then
17809 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17812 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17815 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'
17820 # FIXME: insert proper C++ library support
17828 hardcode_direct_CXX
=no
17829 hardcode_shlibpath_var_CXX
=no
17830 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
17831 export_dynamic_flag_spec_CXX
='${wl}-E'
17832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17833 # Instead, shared libraries are loaded at an image base (0x10000000 by
17834 # default) and relocated if they conflict, which is a slow very memory
17835 # consuming and fragmenting process. To avoid this, we pick a random,
17836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17838 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'
17839 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'
17842 case $cc_basename in
17845 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'
17847 # Archives containing C++ object files must be created using
17848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17849 # necessary to make sure instantiated templates are included
17851 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
17854 if test "$GXX" = yes; then
17855 if test "$with_gnu_ld" = no
; then
17856 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'
17858 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'
17861 link_all_deplibs_CXX
=yes
17864 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17865 hardcode_libdir_separator_CXX
=:
17866 inherit_rpath_CXX
=yes
17869 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17870 case $cc_basename in
17872 # Kuck and Associates, Inc. (KAI) C++ Compiler
17874 # KCC will only create a shared library if the output file
17875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17876 # to its proper name (with version) after linking.
17877 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'
17878 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'
17879 # Commands to make compiler produce verbose output that lists
17880 # what "hidden" libraries, object files and flags are used when
17881 # linking a shared library.
17883 # There doesn't appear to be a way to prevent this compiler from
17884 # explicitly linking system object files so we need to strip them
17885 # from the output so that they don't get included in the library
17887 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'
17889 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
17890 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17892 # Archives containing C++ object files must be created using
17893 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17894 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
17899 # version 8.0 and above of icpc choke on multiply defined symbols
17900 # if we add $predep_objects and $postdep_objects, however 7.1 and
17901 # earlier do not add the objects themselves.
17902 case `$CC -V 2>&1` in
17904 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17905 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'
17907 *) # Version 8.0 or newer
17910 ia64
*) tmp_idyn
=' -i_dynamic';;
17912 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17913 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'
17916 archive_cmds_need_lc_CXX
=no
17917 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
17918 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17919 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17922 # Portland Group C++ compiler
17924 *pgCC\
[1-5]* |
*pgcpp\
[1-5]*)
17925 prelink_cmds_CXX
='tpldir=Template.dir~
17927 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17928 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17929 old_archive_cmds_CXX
='tpldir=Template.dir~
17931 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17932 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17934 archive_cmds_CXX
='tpldir=Template.dir~
17936 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17937 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17938 archive_expsym_cmds_CXX
='tpldir=Template.dir~
17940 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17941 $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'
17943 *) # Version 6 will use weak symbols
17944 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17945 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'
17949 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
17950 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17951 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'
17955 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17956 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'
17958 runpath_var
=LD_RUN_PATH
17959 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
17960 hardcode_libdir_separator_CXX
=:
17962 # Commands to make compiler produce verbose output that lists
17963 # what "hidden" libraries, object files and flags are used when
17964 # linking a shared library.
17966 # There doesn't appear to be a way to prevent this compiler from
17967 # explicitly linking system object files so we need to strip them
17968 # from the output so that they don't get included in the library
17970 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'
17973 # IBM XL 8.0 on PPC, with GNU ld
17974 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17975 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17976 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17977 if test "x$supports_anon_versioning" = xyes
; then
17978 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
17979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17980 echo "local: *; };" >> $output_objdir/$libname.ver~
17981 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17985 case `$CC -V 2>&1 | sed 5q` in
17988 no_undefined_flag_CXX
=' -zdefs'
17989 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17990 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'
17991 hardcode_libdir_flag_spec_CXX
='-R$libdir'
17992 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'
17993 compiler_needs_object_CXX
=yes
17995 # Not sure whether something based on
17996 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17998 output_verbose_link_cmd
='echo'
18000 # Archives containing C++ object files must be created using
18001 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18002 # necessary to make sure instantiated templates are included
18004 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18012 # FIXME: insert proper C++ library support
18017 # FIXME: insert proper C++ library support
18022 case $cc_basename in
18024 # FIXME: insert proper C++ library support
18028 # FIXME: insert proper C++ library support
18035 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18036 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18038 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18039 hardcode_direct_CXX
=yes
18040 hardcode_shlibpath_var_CXX
=no
18042 # Workaround some broken pre-1.5 toolchains
18043 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18051 # C++ shared libraries are fairly broken
18056 if test -f /usr
/libexec
/ld.so
; then
18057 hardcode_direct_CXX
=yes
18058 hardcode_shlibpath_var_CXX
=no
18059 hardcode_direct_absolute_CXX
=yes
18060 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18061 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18063 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18064 export_dynamic_flag_spec_CXX
='${wl}-E'
18065 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18067 output_verbose_link_cmd
=echo
18073 osf3
* | osf4
* | osf5
*)
18074 case $cc_basename in
18076 # Kuck and Associates, Inc. (KAI) C++ Compiler
18078 # KCC will only create a shared library if the output file
18079 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18080 # to its proper name (with version) after linking.
18081 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'
18083 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18084 hardcode_libdir_separator_CXX
=:
18086 # Archives containing C++ object files must be created using
18087 # the KAI C++ compiler.
18089 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
18090 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
18094 # Rational C++ 2.4.1
18095 # FIXME: insert proper C++ library support
18101 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18102 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'
18103 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18106 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18107 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'
18108 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18109 echo "-hidden">> $lib.exp~
18110 $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~
18112 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18116 hardcode_libdir_separator_CXX
=:
18118 # Commands to make compiler produce verbose output that lists
18119 # what "hidden" libraries, object files and flags are used when
18120 # linking a shared library.
18122 # There doesn't appear to be a way to prevent this compiler from
18123 # explicitly linking system object files so we need to strip them
18124 # from the output so that they don't get included in the library
18126 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'
18129 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18130 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18133 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'
18136 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'
18140 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18141 hardcode_libdir_separator_CXX
=:
18143 # Commands to make compiler produce verbose output that lists
18144 # what "hidden" libraries, object files and flags are used when
18145 # linking a shared library.
18146 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18149 # FIXME: insert proper C++ library support
18157 # FIXME: insert proper C++ library support
18162 case $cc_basename in
18165 # FIXME: insert proper C++ library support
18170 # FIXME: insert proper C++ library support
18174 # FIXME: insert proper C++ library support
18181 case $cc_basename in
18183 # Sun C++ 4.2, 5.x and Centerline C++
18184 archive_cmds_need_lc_CXX
=yes
18185 no_undefined_flag_CXX
=' -zdefs'
18186 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18187 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18188 $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'
18190 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18191 hardcode_shlibpath_var_CXX
=no
18193 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18195 # The compiler driver will combine and reorder linker options,
18196 # but understands `-z linker_flag'.
18197 # Supported since Solaris 2.6 (maybe 2.5.1?)
18198 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
18201 link_all_deplibs_CXX
=yes
18203 output_verbose_link_cmd
='echo'
18205 # Archives containing C++ object files must be created using
18206 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18207 # necessary to make sure instantiated templates are included
18209 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18212 # Green Hills C++ Compiler
18213 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18215 # The C++ compiler must be used to create the archive.
18216 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18219 # GNU C++ compiler with Solaris linker
18220 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18221 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18222 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
18223 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18224 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18225 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18227 # Commands to make compiler produce verbose output that lists
18228 # what "hidden" libraries, object files and flags are used when
18229 # linking a shared library.
18230 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18232 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18234 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18235 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18236 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18238 # Commands to make compiler produce verbose output that lists
18239 # what "hidden" libraries, object files and flags are used when
18240 # linking a shared library.
18241 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18244 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18246 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18248 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18256 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18257 no_undefined_flag_CXX
='${wl}-z,text'
18258 archive_cmds_need_lc_CXX
=no
18259 hardcode_shlibpath_var_CXX
=no
18260 runpath_var
='LD_RUN_PATH'
18262 case $cc_basename in
18264 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18265 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18268 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18269 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18274 sysv5
* | sco3.2v5
* | sco5v6
*)
18275 # Note: We can NOT use -z defs as we might desire, because we do not
18276 # link with -lc, and that would cause any symbols used from libc to
18277 # always be unresolved, which means just about no library would
18278 # ever link correctly. If we're not using GNU ld we use -z text
18279 # though, which does catch some bad symbols but isn't as heavy-handed
18281 no_undefined_flag_CXX
='${wl}-z,text'
18282 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18283 archive_cmds_need_lc_CXX
=no
18284 hardcode_shlibpath_var_CXX
=no
18285 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
18286 hardcode_libdir_separator_CXX
=':'
18287 link_all_deplibs_CXX
=yes
18288 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18289 runpath_var
='LD_RUN_PATH'
18291 case $cc_basename in
18293 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18294 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18297 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18298 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18304 case $cc_basename in
18306 # NonStop-UX NCC 3.20
18307 # FIXME: insert proper C++ library support
18311 # FIXME: insert proper C++ library support
18318 # FIXME: insert proper C++ library support
18323 # FIXME: insert proper C++ library support
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18329 $as_echo "$ld_shlibs_CXX" >&6; }
18330 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18336 ## There is no encapsulation within the following macros, do not change
18337 ## the running order or otherwise move them around unless you know exactly
18338 ## what you are doing...
18339 # Dependencies to place before and after the object being linked:
18340 predep_objects_CXX
=
18341 postdep_objects_CXX
=
18344 compiler_lib_search_path_CXX
=
18346 cat > conftest.
$ac_ext <<_LT_EOF
18350 Foo (void) { a = 0; }
18356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18357 (eval $ac_compile) 2>&5
18359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18360 test $ac_status = 0; }; then
18361 # Parse the compiler output and extract the necessary
18362 # objects, libraries and library flags.
18364 # Sentinel used to keep track of whether or not we are before
18365 # the conftest object file.
18366 pre_test_object_deps_done
=no
18368 for p
in `eval "$output_verbose_link_cmd"`; do
18372 # Some compilers place space between "-{L,R}" and the path.
18373 # Remove the space.
18374 if test $p = "-L" ||
18375 test $p = "-R"; then
18382 if test "$pre_test_object_deps_done" = no
; then
18385 # Internal compiler library paths should come after those
18386 # provided the user. The postdeps already come after the
18387 # user supplied libs so there is no need to process them.
18388 if test -z "$compiler_lib_search_path_CXX"; then
18389 compiler_lib_search_path_CXX
="${prev}${p}"
18391 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
18394 # The "-l" case would never come before the object being
18395 # linked, so don't bother handling this case.
18398 if test -z "$postdeps_CXX"; then
18399 postdeps_CXX
="${prev}${p}"
18401 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
18407 # This assumes that the test object file only shows up
18408 # once in the compiler output.
18409 if test "$p" = "conftest.$objext"; then
18410 pre_test_object_deps_done
=yes
18414 if test "$pre_test_object_deps_done" = no
; then
18415 if test -z "$predep_objects_CXX"; then
18416 predep_objects_CXX
="$p"
18418 predep_objects_CXX
="$predep_objects_CXX $p"
18421 if test -z "$postdep_objects_CXX"; then
18422 postdep_objects_CXX
="$p"
18424 postdep_objects_CXX
="$postdep_objects_CXX $p"
18429 *) ;; # Ignore the rest.
18437 echo "libtool.m4: error: problem compiling CXX test program"
18440 $RM -f confest.
$objext
18442 # PORTME: override above test on systems where it is broken
18445 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18446 # hack all around it, let's just trust "g++" to DTRT.
18447 predep_objects_CXX
=
18448 postdep_objects_CXX
=
18453 case `$CC -V 2>&1 | sed 5q` in
18457 # The more standards-conforming stlport4 library is
18458 # incompatible with the Cstd library. Avoid specifying
18459 # it if it's in CXXFLAGS. Ignore libCrun as
18460 # -library=stlport4 depends on it.
18461 case " $CXX $CXXFLAGS " in
18462 *" -library=stlport4 "*)
18463 solaris_use_stlport4
=yes
18467 if test "$solaris_use_stlport4" != yes; then
18468 postdeps_CXX
='-library=Cstd -library=Crun'
18475 case $cc_basename in
18477 # The more standards-conforming stlport4 library is
18478 # incompatible with the Cstd library. Avoid specifying
18479 # it if it's in CXXFLAGS. Ignore libCrun as
18480 # -library=stlport4 depends on it.
18481 case " $CXX $CXXFLAGS " in
18482 *" -library=stlport4 "*)
18483 solaris_use_stlport4
=yes
18487 # Adding this requires a known-good setup of shared libraries for
18488 # Sun compiler versions before 5.6, else PIC objects from an old
18489 # archive will be linked into the output, leading to subtle bugs.
18490 if test "$solaris_use_stlport4" != yes; then
18491 postdeps_CXX
='-library=Cstd -library=Crun'
18499 case " $postdeps_CXX " in
18500 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
18502 compiler_lib_search_dirs_CXX
=
18503 if test -n "${compiler_lib_search_path_CXX}"; then
18504 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18537 lt_prog_compiler_wl_CXX
=
18538 lt_prog_compiler_pic_CXX
=
18539 lt_prog_compiler_static_CXX
=
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18542 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18544 # C++ specific cases for pic, static, wl, etc.
18545 if test "$GXX" = yes; then
18546 lt_prog_compiler_wl_CXX
='-Wl,'
18547 lt_prog_compiler_static_CXX
='-static'
18551 # All AIX code is PIC.
18552 if test "$host_cpu" = ia64
; then
18553 # AIX 5 now supports IA64 processor
18554 lt_prog_compiler_static_CXX
='-Bstatic'
18561 # see comment about AmigaOS4 .so support
18562 lt_prog_compiler_pic_CXX
='-fPIC'
18565 # FIXME: we need at least 68020 code to build shared libraries, but
18566 # adding the `-m68020' flag to GCC prevents building anything better,
18568 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
18573 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
18574 # PIC is the default for these OSes.
18576 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
18577 # This hack is so that the source file can tell whether it is being
18578 # built for inclusion in a dll (and should export symbols for example).
18579 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18580 # (--disable-auto-import) libraries
18581 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
18583 darwin
* | rhapsody
*)
18584 # PIC is the default on this platform
18585 # Common symbols not allowed in MH_DYLIB files
18586 lt_prog_compiler_pic_CXX
='-fno-common'
18589 # DJGPP does not support shared libraries at all
18590 lt_prog_compiler_pic_CXX
=
18593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18594 # Instead, we relocate shared libraries at runtime.
18597 if test -d /usr
/nec
; then
18598 lt_prog_compiler_pic_CXX
=-Kconform_pic
18602 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18603 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18604 # sets the default TLS model and affects inlining.
18609 lt_prog_compiler_pic_CXX
='-fPIC'
18614 # QNX uses GNU C++, but need to define -shared option too, otherwise
18615 # it will coredump.
18616 lt_prog_compiler_pic_CXX
='-fPIC -shared'
18619 lt_prog_compiler_pic_CXX
='-fPIC'
18625 # All AIX code is PIC.
18626 if test "$host_cpu" = ia64
; then
18627 # AIX 5 now supports IA64 processor
18628 lt_prog_compiler_static_CXX
='-Bstatic'
18630 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
18634 case $cc_basename in
18636 # Green Hills C++ Compiler
18637 # _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"
18642 case $cc_basename in
18644 lt_prog_compiler_pic_CXX
='-KPIC'
18647 # Green Hills C++ Compiler
18648 lt_prog_compiler_pic_CXX
='-pic'
18654 freebsd
* | dragonfly
*)
18655 # FreeBSD uses GNU C++
18657 hpux9
* | hpux10
* | hpux11
*)
18658 case $cc_basename in
18660 lt_prog_compiler_wl_CXX
='-Wl,'
18661 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
18662 if test "$host_cpu" != ia64
; then
18663 lt_prog_compiler_pic_CXX
='+Z'
18667 lt_prog_compiler_wl_CXX
='-Wl,'
18668 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
18674 lt_prog_compiler_pic_CXX
='+Z'
18683 # This is c89, which is MS Visual C++ (no shared libs)
18684 # Anyone wants to do a port?
18686 irix5
* | irix6
* | nonstopux
*)
18687 case $cc_basename in
18689 lt_prog_compiler_wl_CXX
='-Wl,'
18690 lt_prog_compiler_static_CXX
='-non_shared'
18691 # CC pic flag -KPIC is the default.
18697 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18698 case $cc_basename in
18701 lt_prog_compiler_wl_CXX
='--backend -Wl,'
18702 lt_prog_compiler_pic_CXX
='-fPIC'
18705 # old Intel C++ for x86_64 which still supported -KPIC.
18706 lt_prog_compiler_wl_CXX
='-Wl,'
18707 lt_prog_compiler_pic_CXX
='-KPIC'
18708 lt_prog_compiler_static_CXX
='-static'
18711 # Intel C++, used to be incompatible with GCC.
18712 # ICC 10 doesn't accept -KPIC any more.
18713 lt_prog_compiler_wl_CXX
='-Wl,'
18714 lt_prog_compiler_pic_CXX
='-fPIC'
18715 lt_prog_compiler_static_CXX
='-static'
18718 # Portland Group C++ compiler
18719 lt_prog_compiler_wl_CXX
='-Wl,'
18720 lt_prog_compiler_pic_CXX
='-fpic'
18721 lt_prog_compiler_static_CXX
='-Bstatic'
18725 # Make sure the PIC flag is empty. It appears that all Alpha
18726 # Linux and Compaq Tru64 Unix objects are PIC.
18727 lt_prog_compiler_pic_CXX
=
18728 lt_prog_compiler_static_CXX
='-non_shared'
18731 # IBM XL 8.0 on PPC
18732 lt_prog_compiler_wl_CXX
='-Wl,'
18733 lt_prog_compiler_pic_CXX
='-qpic'
18734 lt_prog_compiler_static_CXX
='-qstaticlink'
18737 case `$CC -V 2>&1 | sed 5q` in
18740 lt_prog_compiler_pic_CXX
='-KPIC'
18741 lt_prog_compiler_static_CXX
='-Bstatic'
18742 lt_prog_compiler_wl_CXX
='-Qoption ld '
18753 case $cc_basename in
18755 lt_prog_compiler_pic_CXX
='-W c,exportall'
18764 # QNX uses GNU C++, but need to define -shared option too, otherwise
18765 # it will coredump.
18766 lt_prog_compiler_pic_CXX
='-fPIC -shared'
18768 osf3
* | osf4
* | osf5
*)
18769 case $cc_basename in
18771 lt_prog_compiler_wl_CXX
='--backend -Wl,'
18774 # Rational C++ 2.4.1
18775 lt_prog_compiler_pic_CXX
='-pic'
18778 # Digital/Compaq C++
18779 lt_prog_compiler_wl_CXX
='-Wl,'
18780 # Make sure the PIC flag is empty. It appears that all Alpha
18781 # Linux and Compaq Tru64 Unix objects are PIC.
18782 lt_prog_compiler_pic_CXX
=
18783 lt_prog_compiler_static_CXX
='-non_shared'
18792 case $cc_basename in
18794 # Sun C++ 4.2, 5.x and Centerline C++
18795 lt_prog_compiler_pic_CXX
='-KPIC'
18796 lt_prog_compiler_static_CXX
='-Bstatic'
18797 lt_prog_compiler_wl_CXX
='-Qoption ld '
18800 # Green Hills C++ Compiler
18801 lt_prog_compiler_pic_CXX
='-PIC'
18808 case $cc_basename in
18811 lt_prog_compiler_pic_CXX
='-pic'
18812 lt_prog_compiler_static_CXX
='-Bstatic'
18816 lt_prog_compiler_pic_CXX
='-pic'
18822 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
18823 case $cc_basename in
18825 lt_prog_compiler_wl_CXX
='-Wl,'
18826 lt_prog_compiler_pic_CXX
='-KPIC'
18827 lt_prog_compiler_static_CXX
='-Bstatic'
18832 case $cc_basename in
18834 # NonStop-UX NCC 3.20
18835 lt_prog_compiler_pic_CXX
='-KPIC'
18844 lt_prog_compiler_can_build_shared_CXX
=no
18850 # For platforms which do not support PIC, -DPIC is meaningless:
18852 lt_prog_compiler_pic_CXX
=
18855 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
18859 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18864 # Check to make sure the PIC flag actually works.
18866 if test -n "$lt_prog_compiler_pic_CXX"; then
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18868 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18869 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
18870 $as_echo_n "(cached) " >&6
18872 lt_cv_prog_compiler_pic_works_CXX
=no
18873 ac_outfile
=conftest.
$ac_objext
18874 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18875 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
18876 # Insert the option either (1) after the last *FLAGS variable, or
18877 # (2) before a word containing "conftest.", or (3) at the end.
18878 # Note that $ac_compile itself does not contain backslashes and begins
18879 # with a dollar sign (not a hyphen), so the echo should work correctly.
18880 # The option is referenced via a variable to avoid confusing sed.
18881 lt_compile
=`echo "$ac_compile" | $SED \
18882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18884 -e 's:$: $lt_compiler_flag:'`
18885 (eval echo "\"\$as_me:18885: $lt_compile\"" >&5)
18886 (eval "$lt_compile" 2>conftest.err
)
18888 cat conftest.err
>&5
18889 echo "$as_me:18889: \$? = $ac_status" >&5
18890 if (exit $ac_status) && test -s "$ac_outfile"; then
18891 # The compiler can only warn and ignore the option if not recognized
18892 # So say no if there are warnings other than the usual output.
18893 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
18894 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18895 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
18896 lt_cv_prog_compiler_pic_works_CXX
=yes
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18903 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18905 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
18906 case $lt_prog_compiler_pic_CXX in
18908 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
18911 lt_prog_compiler_pic_CXX
=
18912 lt_prog_compiler_can_build_shared_CXX
=no
18920 # Check to make sure the static flag actually works.
18922 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18925 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
18926 $as_echo_n "(cached) " >&6
18928 lt_cv_prog_compiler_static_works_CXX
=no
18929 save_LDFLAGS
="$LDFLAGS"
18930 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
18931 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18932 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18933 # The linker can only warn and ignore the option if not recognized
18934 # So say no if there are warnings
18935 if test -s conftest.err
; then
18936 # Append any errors to the config.log.
18937 cat conftest.err
1>&5
18938 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
18939 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18940 if diff conftest.exp conftest.er2
>/dev
/null
; then
18941 lt_cv_prog_compiler_static_works_CXX
=yes
18944 lt_cv_prog_compiler_static_works_CXX
=yes
18948 LDFLAGS
="$save_LDFLAGS"
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18952 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18954 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
18957 lt_prog_compiler_static_CXX
=
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18965 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18966 $as_echo_n "(cached) " >&6
18968 lt_cv_prog_compiler_c_o_CXX
=no
18969 $RM -r conftest
2>/dev
/null
18973 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18975 lt_compiler_flag
="-o out/conftest2.$ac_objext"
18976 # Insert the option either (1) after the last *FLAGS variable, or
18977 # (2) before a word containing "conftest.", or (3) at the end.
18978 # Note that $ac_compile itself does not contain backslashes and begins
18979 # with a dollar sign (not a hyphen), so the echo should work correctly.
18980 lt_compile
=`echo "$ac_compile" | $SED \
18981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18983 -e 's:$: $lt_compiler_flag:'`
18984 (eval echo "\"\$as_me:18984: $lt_compile\"" >&5)
18985 (eval "$lt_compile" 2>out
/conftest.err
)
18987 cat out
/conftest.err
>&5
18988 echo "$as_me:18988: \$? = $ac_status" >&5
18989 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
18991 # The compiler can only warn and ignore the option if not recognized
18992 # So say no if there are warnings
18993 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
18994 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
18995 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
18996 lt_cv_prog_compiler_c_o_CXX
=yes
19001 # SGI C++ compiler will create directory out/ii_files/ for
19002 # template instantiation
19003 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19004 $RM out
/* && rmdir out
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19011 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19017 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19018 $as_echo_n "(cached) " >&6
19020 lt_cv_prog_compiler_c_o_CXX
=no
19021 $RM -r conftest
2>/dev
/null
19025 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19027 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19028 # Insert the option either (1) after the last *FLAGS variable, or
19029 # (2) before a word containing "conftest.", or (3) at the end.
19030 # Note that $ac_compile itself does not contain backslashes and begins
19031 # with a dollar sign (not a hyphen), so the echo should work correctly.
19032 lt_compile
=`echo "$ac_compile" | $SED \
19033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19035 -e 's:$: $lt_compiler_flag:'`
19036 (eval echo "\"\$as_me:19036: $lt_compile\"" >&5)
19037 (eval "$lt_compile" 2>out
/conftest.err
)
19039 cat out
/conftest.err
>&5
19040 echo "$as_me:19040: \$? = $ac_status" >&5
19041 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19043 # The compiler can only warn and ignore the option if not recognized
19044 # So say no if there are warnings
19045 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
19046 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19047 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19048 lt_cv_prog_compiler_c_o_CXX
=yes
19053 # SGI C++ compiler will create directory out/ii_files/ for
19054 # template instantiation
19055 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19056 $RM out
/* && rmdir out
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19063 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19068 hard_links
="nottested"
19069 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19070 # do not overwrite the value of need_locks provided by the user
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19072 $as_echo_n "checking if we can lock with hard links... " >&6; }
19075 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19077 ln conftest.a conftest.b
2>&5 || hard_links
=no
19078 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19080 $as_echo "$hard_links" >&6; }
19081 if test "$hard_links" = no
; then
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19083 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19093 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19095 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19098 # If we're using GNU nm, then we don't want the "-C" option.
19099 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19100 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19101 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'
19103 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'
19107 export_symbols_cmds_CXX
="$ltdll_cmds"
19109 cygwin
* | mingw
* | cegcc
*)
19110 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'
19113 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19116 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19119 $as_echo "$ld_shlibs_CXX" >&6; }
19120 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19122 with_gnu_ld_CXX
=$with_gnu_ld
19130 # Do we need to explicitly link libc?
19132 case "x$archive_cmds_need_lc_CXX" in
19134 # Assume -lc should be added
19135 archive_cmds_need_lc_CXX
=yes
19137 if test "$enable_shared" = yes && test "$GCC" = yes; then
19138 case $archive_cmds_CXX in
19140 # FIXME: we may have to deal with multi-command sequences.
19143 # Test whether the compiler implicitly links with -lc since on some
19144 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19145 # to ld, don't add -lc before -lgcc.
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19147 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19148 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19149 $as_echo_n "(cached) " >&6
19152 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19155 (eval $ac_compile) 2>&5
19157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19158 test $ac_status = 0; } 2>conftest.err
; then
19161 libobjs
=conftest.
$ac_objext
19163 wl
=$lt_prog_compiler_wl_CXX
19164 pic_flag
=$lt_prog_compiler_pic_CXX
19170 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19171 allow_undefined_flag_CXX
=
19172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19173 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19176 test $ac_status = 0; }
19178 lt_cv_archive_cmds_need_lc_CXX
=no
19180 lt_cv_archive_cmds_need_lc_CXX
=yes
19182 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19184 cat conftest.err
1>&5
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19190 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19191 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19262 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19264 library_names_spec
=
19265 libname_spec
='lib$name'
19269 postuninstall_cmds
=
19273 shlibpath_overrides_runpath
=unknown
19275 dynamic_linker
="$host_os ld.so"
19276 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19277 need_lib_prefix
=unknown
19278 hardcode_into_libs
=no
19280 # when you set need_version to no, make sure it does not cause -set_version
19281 # flags to be left without arguments
19282 need_version
=unknown
19287 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19288 shlibpath_var
=LIBPATH
19290 # AIX 3 has no versioning support, so we append a major version to the name.
19291 soname_spec
='${libname}${release}${shared_ext}$major'
19298 hardcode_into_libs
=yes
19299 if test "$host_cpu" = ia64
; then
19300 # AIX 5 supports IA64
19301 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19302 shlibpath_var
=LD_LIBRARY_PATH
19304 # With GCC up to 2.95.x, collect2 would create an import file
19305 # for dependence libraries. The import file would start with
19306 # the line `#! .'. This would cause the generated library to
19307 # depend on `.', always an invalid library. This was fixed in
19308 # development snapshots of GCC prior to 3.0.
19310 aix4 | aix4.
[01] | aix4.
[01].
*)
19311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19313 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19316 can_build_shared
=no
19320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19321 # soname into executable. Probably we can add versioning support to
19322 # collect2, so additional links can be useful in future.
19323 if test "$aix_use_runtimelinking" = yes; then
19324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19325 # instead of lib<name>.a to let people know that these are not
19326 # typical AIX shared libraries.
19327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19329 # We preserve .a as extension for shared libraries through AIX4.2
19330 # and later when we are not doing run time linking.
19331 library_names_spec
='${libname}${release}.a $libname.a'
19332 soname_spec
='${libname}${release}${shared_ext}$major'
19334 shlibpath_var
=LIBPATH
19341 # Since July 2007 AmigaOS4 officially supports .so libraries.
19342 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19346 library_names_spec
='$libname.ixlibrary $libname.a'
19347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19348 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'
19354 library_names_spec
='${libname}${shared_ext}'
19355 dynamic_linker
="$host_os ld.so"
19356 shlibpath_var
=LIBRARY_PATH
19362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19363 soname_spec
='${libname}${release}${shared_ext}$major'
19364 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19365 shlibpath_var
=LD_LIBRARY_PATH
19366 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19367 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19368 # the default ld.so.conf also contains /usr/contrib/lib and
19369 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19370 # libtool to hard-code these into programs
19373 cygwin
* | mingw
* | pw32
* | cegcc
*)
19374 version_type
=windows
19379 case $GCC,$host_os in
19380 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19381 library_names_spec
='$libname.dll.a'
19382 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19383 postinstall_cmds
='base_file=`basename \${file}`~
19384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19385 dldir=$destdir/`dirname \$dlpath`~
19386 test -d \$dldir || mkdir -p \$dldir~
19387 $install_prog $dir/$dlname \$dldir/$dlname~
19388 chmod a+x \$dldir/$dlname~
19389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19392 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19393 dlpath=$dir/\$dldll~
19395 shlibpath_overrides_runpath
=yes
19399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19400 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19401 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
19404 # MinGW DLLs use traditional 'lib' prefix
19405 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19406 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19407 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
19408 # It is most probably a Windows format PATH printed by
19409 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19410 # path with ; separators, and with drive letters. We can handle the
19411 # drive letters (cygwin fileutils understands them), so leave them,
19412 # especially as we might pass files found there to a mingw objdump,
19413 # which wouldn't understand a cygwinified path. Ahh.
19414 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19416 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19420 # pw32 DLLs use 'pw' prefix rather than 'lib'
19421 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19427 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19430 dynamic_linker
='Win32 ld.exe'
19431 # FIXME: first we should search . and the directory the executable is in
19435 darwin
* | rhapsody
*)
19436 dynamic_linker
="$host_os dyld"
19437 version_type
=darwin
19440 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19441 soname_spec
='${libname}${release}${major}$shared_ext'
19442 shlibpath_overrides_runpath
=yes
19443 shlibpath_var
=DYLD_LIBRARY_PATH
19444 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19446 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19454 soname_spec
='${libname}${release}${shared_ext}$major'
19455 shlibpath_var
=LD_LIBRARY_PATH
19462 freebsd
* | dragonfly
*)
19463 # DragonFly does not have aout. When/if they implement a new
19464 # versioning mechanism, adjust this.
19465 if test -x /usr
/bin
/objformat
; then
19466 objformat
=`/usr/bin/objformat`
19469 freebsd
[123]*) objformat
=aout
;;
19470 *) objformat
=elf
;;
19473 version_type
=freebsd-
$objformat
19474 case $version_type in
19476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19481 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19485 shlibpath_var
=LD_LIBRARY_PATH
19488 shlibpath_overrides_runpath
=yes
19490 freebsd3.
[01]* | freebsdelf3.
[01]*)
19491 shlibpath_overrides_runpath
=yes
19492 hardcode_into_libs
=yes
19494 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19495 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19496 shlibpath_overrides_runpath
=no
19497 hardcode_into_libs
=yes
19499 *) # from 4.6 on, and DragonFly
19500 shlibpath_overrides_runpath
=yes
19501 hardcode_into_libs
=yes
19510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19511 soname_spec
='${libname}${release}${shared_ext}$major'
19512 shlibpath_var
=LD_LIBRARY_PATH
19513 hardcode_into_libs
=yes
19516 hpux9
* | hpux10
* | hpux11
*)
19517 # Give a soname corresponding to the major version so that dld.sl refuses to
19518 # link against other versions.
19525 hardcode_into_libs
=yes
19526 dynamic_linker
="$host_os dld.so"
19527 shlibpath_var
=LD_LIBRARY_PATH
19528 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19530 soname_spec
='${libname}${release}${shared_ext}$major'
19531 if test "X$HPUX_IA64_MODE" = X32
; then
19532 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19534 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19536 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19540 hardcode_into_libs
=yes
19541 dynamic_linker
="$host_os dld.sl"
19542 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19543 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545 soname_spec
='${libname}${release}${shared_ext}$major'
19546 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19547 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19551 dynamic_linker
="$host_os dld.sl"
19552 shlibpath_var
=SHLIB_PATH
19553 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19555 soname_spec
='${libname}${release}${shared_ext}$major'
19558 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19559 postinstall_cmds
='chmod 555 $lib'
19566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19567 soname_spec
='${libname}${release}${shared_ext}$major'
19568 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19569 shlibpath_var
=LD_LIBRARY_PATH
19570 shlibpath_overrides_runpath
=no
19571 hardcode_into_libs
=yes
19574 irix5
* | irix6
* | nonstopux
*)
19576 nonstopux
*) version_type
=nonstopux
;;
19578 if test "$lt_cv_prog_gnu_ld" = yes; then
19586 soname_spec
='${libname}${release}${shared_ext}$major'
19587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19589 irix5
* | nonstopux
*)
19590 libsuff
= shlibsuff
=
19593 case $LD in # libtool.m4 will add one of these switches to LD
19594 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19595 libsuff
= shlibsuff
= libmagic
=32-bit;;
19596 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19597 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19598 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19599 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19600 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19604 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19605 shlibpath_overrides_runpath
=no
19606 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19607 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19608 hardcode_into_libs
=yes
19611 # No shared lib support for Linux oldld, aout, or coff.
19612 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19616 # This must be Linux ELF.
19617 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19621 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19622 soname_spec
='${libname}${release}${shared_ext}$major'
19623 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19624 shlibpath_var
=LD_LIBRARY_PATH
19625 shlibpath_overrides_runpath
=no
19627 # Some binutils ld are patched to set DT_RUNPATH
19628 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
19629 $as_echo_n "(cached) " >&6
19631 lt_cv_shlibpath_overrides_runpath
=no
19632 save_LDFLAGS
=$LDFLAGS
19633 save_libdir
=$libdir
19634 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19635 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19647 if ac_fn_cxx_try_link
"$LINENO"; then :
19648 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19649 lt_cv_shlibpath_overrides_runpath
=yes
19652 rm -f core conftest.err conftest.
$ac_objext \
19653 conftest
$ac_exeext conftest.
$ac_ext
19654 LDFLAGS
=$save_LDFLAGS
19655 libdir
=$save_libdir
19659 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19661 # This implies no fast_install, which is unacceptable.
19662 # Some rework will be needed to allow for fast_install
19663 # before this can be enabled.
19664 hardcode_into_libs
=yes
19666 # Append ld.so.conf contents to the search path
19667 if test -f /etc
/ld.so.conf
; then
19668 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' ' '`
19669 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19672 # We used to test for /lib/ld.so.1 and disable shared libraries on
19673 # powerpc, because MkLinux only supported shared libraries with the
19674 # GNU dynamic linker. Since this was broken with cross compilers,
19675 # most powerpc-linux boxes support dynamic linking these days and
19676 # people can always --disable-shared, the test was removed, and we
19677 # assume the GNU/Linux dynamic linker is in use.
19678 dynamic_linker
='GNU/Linux ld.so'
19685 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19686 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19687 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19688 dynamic_linker
='NetBSD (a.out) ld.so'
19690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19691 soname_spec
='${libname}${release}${shared_ext}$major'
19692 dynamic_linker
='NetBSD ld.elf_so'
19694 shlibpath_var
=LD_LIBRARY_PATH
19695 shlibpath_overrides_runpath
=yes
19696 hardcode_into_libs
=yes
19701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19702 shlibpath_var
=LD_LIBRARY_PATH
19703 shlibpath_overrides_runpath
=yes
19710 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19711 soname_spec
='${libname}${release}${shared_ext}$major'
19712 shlibpath_var
=LD_LIBRARY_PATH
19713 shlibpath_overrides_runpath
=no
19714 hardcode_into_libs
=yes
19715 dynamic_linker
='ldqnx.so'
19720 sys_lib_dlsearch_path_spec
="/usr/lib"
19722 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19724 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19725 *) need_version
=no
;;
19727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19728 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19729 shlibpath_var
=LD_LIBRARY_PATH
19730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19732 openbsd2.
[89] | openbsd2.
[89].
*)
19733 shlibpath_overrides_runpath
=no
19736 shlibpath_overrides_runpath
=yes
19740 shlibpath_overrides_runpath
=yes
19745 libname_spec
='$name'
19748 library_names_spec
='$libname${shared_ext} $libname.a'
19749 dynamic_linker
='OS/2 ld.exe'
19750 shlibpath_var
=LIBPATH
19753 osf3
* | osf4
* | osf5
*)
19757 soname_spec
='${libname}${release}${shared_ext}$major'
19758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19759 shlibpath_var
=LD_LIBRARY_PATH
19760 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19761 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19773 soname_spec
='${libname}${release}${shared_ext}$major'
19774 shlibpath_var
=LD_LIBRARY_PATH
19775 shlibpath_overrides_runpath
=yes
19776 hardcode_into_libs
=yes
19777 # ldd complains unless libraries are executable
19778 postinstall_cmds
='chmod +x $lib'
19783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19784 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19785 shlibpath_var
=LD_LIBRARY_PATH
19786 shlibpath_overrides_runpath
=yes
19787 if test "$with_gnu_ld" = yes; then
19795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19796 soname_spec
='${libname}${release}${shared_ext}$major'
19797 shlibpath_var
=LD_LIBRARY_PATH
19798 case $host_vendor in
19800 shlibpath_overrides_runpath
=no
19802 runpath_var
=LD_RUN_PATH
19810 shlibpath_overrides_runpath
=no
19811 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19817 if test -d /usr
/nec
;then
19819 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19820 soname_spec
='$libname${shared_ext}.$major'
19821 shlibpath_var
=LD_LIBRARY_PATH
19825 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19826 version_type
=freebsd-elf
19829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19830 soname_spec
='${libname}${release}${shared_ext}$major'
19831 shlibpath_var
=LD_LIBRARY_PATH
19832 shlibpath_overrides_runpath
=yes
19833 hardcode_into_libs
=yes
19834 if test "$with_gnu_ld" = yes; then
19835 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19837 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19840 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19844 sys_lib_dlsearch_path_spec
='/usr/lib'
19848 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19853 shlibpath_var
=LD_LIBRARY_PATH
19854 shlibpath_overrides_runpath
=no
19855 hardcode_into_libs
=yes
19860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19861 soname_spec
='${libname}${release}${shared_ext}$major'
19862 shlibpath_var
=LD_LIBRARY_PATH
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19870 $as_echo "$dynamic_linker" >&6; }
19871 test "$dynamic_linker" = no
&& can_build_shared
=no
19873 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19874 if test "$GCC" = yes; then
19875 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19878 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19879 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19881 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19882 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19921 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19922 hardcode_action_CXX
=
19923 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19924 test -n "$runpath_var_CXX" ||
19925 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19927 # We can hardcode non-existent directories.
19928 if test "$hardcode_direct_CXX" != no
&&
19929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19930 # have to relink, otherwise we might link with an installed library
19931 # when we should be linking with a yet-to-be-installed one
19932 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19933 test "$hardcode_minus_L_CXX" != no
; then
19934 # Linking always hardcodes the temporary library directory.
19935 hardcode_action_CXX
=relink
19937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19938 hardcode_action_CXX
=immediate
19941 # We cannot hardcode anything, or else we can only hardcode existing
19943 hardcode_action_CXX
=unsupported
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19946 $as_echo "$hardcode_action_CXX" >&6; }
19948 if test "$hardcode_action_CXX" = relink ||
19949 test "$inherit_rpath_CXX" = yes; then
19950 # Fast installation is not supported
19951 enable_fast_install
=no
19952 elif test "$shlibpath_overrides_runpath" = yes ||
19953 test "$enable_shared" = no
; then
19954 # Fast installation is not necessary
19955 enable_fast_install
=needless
19964 fi # test -n "$compiler"
19970 with_gnu_ld
=$lt_save_with_gnu_ld
19971 lt_cv_path_LDCXX
=$lt_cv_path_LD
19972 lt_cv_path_LD
=$lt_save_path_LD
19973 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
19974 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
19975 fi # test "$_lt_caught_CXX_error" != yes
19978 ac_cpp
='$CPP $CPPFLAGS'
19979 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19980 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19981 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19998 # Only expand once:
20004 # Identify the assembler which will work hand-in-glove with the newly
20005 # built GCC, so that we can examine its features. This is the assembler
20006 # which will be driven by the driver program.
20008 # If build != host, and we aren't building gas in-tree, we identify a
20009 # build->target assembler and hope that it will have the same features
20010 # as the host->target assembler we'll be using.
20011 gcc_cv_gas_major_version
=
20012 gcc_cv_gas_minor_version
=
20013 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20015 if test "${gcc_cv_as+set}" = set; then :
20019 if test -x "$DEFAULT_ASSEMBLER"; then
20020 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20021 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20022 && test -f ..
/gas
/Makefile \
20023 && test x
$build = x
$host; then
20024 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20025 elif test -x as
$build_exeext; then
20026 # Build using assembler in the current directory.
20027 gcc_cv_as
=.
/as
$build_exeext
20028 elif test -x $AS_FOR_TARGET; then
20029 gcc_cv_as
="$AS_FOR_TARGET"
20031 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20032 set dummy
$AS_FOR_TARGET; ac_word
=$2
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20034 $as_echo_n "checking for $ac_word... " >&6; }
20035 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20036 $as_echo_n "(cached) " >&6
20040 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20044 for as_dir
in $PATH
20047 test -z "$as_dir" && as_dir
=.
20048 for ac_exec_ext
in '' $ac_executable_extensions; do
20049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20050 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20061 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20062 if test -n "$gcc_cv_as"; then
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20064 $as_echo "$gcc_cv_as" >&6; }
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20067 $as_echo "no" >&6; }
20074 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20076 case "$ORIGINAL_AS_FOR_TARGET" in
20077 .
/as | .
/as
$build_exeext) ;;
20078 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20083 $as_echo_n "checking what assembler to use... " >&6; }
20084 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20085 # Single tree build which includes gas. We want to prefer it
20086 # over whatever linker top-level may have detected, since
20087 # we'll use what we're building after installation anyway.
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20089 $as_echo "newly built gas" >&6; }
20091 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20092 for f
in $gcc_cv_as_bfd_srcdir/configure \
20093 $gcc_cv_as_gas_srcdir/configure \
20094 $gcc_cv_as_gas_srcdir/configure.
in \
20095 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20096 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20097 if test x
$gcc_cv_gas_version != x
; then
20101 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20102 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20103 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20104 case $gcc_cv_gas_patch_version in
20105 "") gcc_cv_gas_patch_version
="0" ;;
20107 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20108 + $gcc_cv_gas_minor_version \) \* 1000 \
20109 + $gcc_cv_gas_patch_version`
20111 in_tree_gas_is_elf
=no
20112 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20113 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20114 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20116 in_tree_gas_is_elf
=yes
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20120 $as_echo "$gcc_cv_as" >&6; }
20124 # Identify the linker which will work hand-in-glove with the newly
20125 # built GCC, so that we can examine its features. This is the linker
20126 # which will be driven by the driver program.
20128 # If build != host, and we aren't building gas in-tree, we identify a
20129 # build->target linker and hope that it will have the same features
20130 # as the host->target linker we'll be using.
20131 gcc_cv_gld_major_version
=
20132 gcc_cv_gld_minor_version
=
20133 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20134 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20136 if test "${gcc_cv_ld+set}" = set; then :
20140 if test -x "$DEFAULT_LINKER"; then
20141 gcc_cv_ld
="$DEFAULT_LINKER"
20142 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20143 && test -f ..
/ld
/Makefile \
20144 && test x
$build = x
$host; then
20145 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20146 elif test -x collect-ld
$build_exeext; then
20147 # Build using linker in the current directory.
20148 gcc_cv_ld
=.
/collect-ld
$build_exeext
20149 elif test -x $LD_FOR_TARGET; then
20150 gcc_cv_ld
="$LD_FOR_TARGET"
20152 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20153 set dummy
$LD_FOR_TARGET; ac_word
=$2
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20155 $as_echo_n "checking for $ac_word... " >&6; }
20156 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20157 $as_echo_n "(cached) " >&6
20161 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20165 for as_dir
in $PATH
20168 test -z "$as_dir" && as_dir
=.
20169 for ac_exec_ext
in '' $ac_executable_extensions; do
20170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20171 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20182 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20183 if test -n "$gcc_cv_ld"; then
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20185 $as_echo "$gcc_cv_ld" >&6; }
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188 $as_echo "no" >&6; }
20195 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20197 case "$ORIGINAL_LD_FOR_TARGET" in
20198 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20199 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20204 $as_echo_n "checking what linker to use... " >&6; }
20205 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20206 # Single tree build which includes ld. We want to prefer it
20207 # over whatever linker top-level may have detected, since
20208 # we'll use what we're building after installation anyway.
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20210 $as_echo "newly built ld" >&6; }
20212 in_tree_ld_is_elf
=no
20213 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20214 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20215 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20216 in_tree_ld_is_elf
=yes
20218 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
20220 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20221 if test x
$gcc_cv_gld_version != x
; then
20225 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20226 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20229 $as_echo "$gcc_cv_ld" >&6; }
20233 # Figure out what nm we will be using.
20234 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20235 if test "${gcc_cv_nm+set}" = set; then :
20239 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20240 && test -f ..
/binutils
/Makefile \
20241 && test x
$build = x
$host; then
20242 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20243 elif test -x nm
$build_exeext; then
20244 gcc_cv_nm
=.
/nm
$build_exeext
20245 elif test -x $NM_FOR_TARGET; then
20246 gcc_cv_nm
="$NM_FOR_TARGET"
20248 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20249 set dummy
$NM_FOR_TARGET; ac_word
=$2
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20251 $as_echo_n "checking for $ac_word... " >&6; }
20252 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20253 $as_echo_n "(cached) " >&6
20257 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20261 for as_dir
in $PATH
20264 test -z "$as_dir" && as_dir
=.
20265 for ac_exec_ext
in '' $ac_executable_extensions; do
20266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20267 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20278 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20279 if test -n "$gcc_cv_nm"; then
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20281 $as_echo "$gcc_cv_nm" >&6; }
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20284 $as_echo "no" >&6; }
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20292 $as_echo_n "checking what nm to use... " >&6; }
20293 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20294 # Single tree build which includes binutils.
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20296 $as_echo "newly built nm" >&6; }
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20300 $as_echo "$gcc_cv_nm" >&6; }
20304 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20306 case "$ORIGINAL_NM_FOR_TARGET" in
20307 .
/nm | .
/nm
$build_exeext) ;;
20308 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20313 # Figure out what objdump we will be using.
20314 if test "${gcc_cv_objdump+set}" = set; then :
20318 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20319 && test -f ..
/binutils
/Makefile \
20320 && test x
$build = x
$host; then
20321 # Single tree build which includes binutils.
20322 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20323 elif test -x objdump
$build_exeext; then
20324 gcc_cv_objdump
=.
/objdump
$build_exeext
20325 elif test -x $OBJDUMP_FOR_TARGET; then
20326 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20328 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20329 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20331 $as_echo_n "checking for $ac_word... " >&6; }
20332 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20333 $as_echo_n "(cached) " >&6
20335 case $gcc_cv_objdump in
20337 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20341 for as_dir
in $PATH
20344 test -z "$as_dir" && as_dir
=.
20345 for ac_exec_ext
in '' $ac_executable_extensions; do
20346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20347 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20358 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20359 if test -n "$gcc_cv_objdump"; then
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20361 $as_echo "$gcc_cv_objdump" >&6; }
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20364 $as_echo "no" >&6; }
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20372 $as_echo_n "checking what objdump to use... " >&6; }
20373 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20374 # Single tree build which includes binutils.
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20376 $as_echo "newly built objdump" >&6; }
20377 elif test x
$gcc_cv_objdump = x
; then
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20379 $as_echo "not found" >&6; }
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20382 $as_echo "$gcc_cv_objdump" >&6; }
20385 # Figure out what readelf we will be using.
20386 if test "${gcc_cv_readelf+set}" = set; then :
20390 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20391 && test -f ..
/binutils
/Makefile \
20392 && test x
$build = x
$host; then
20393 # Single tree build which includes binutils.
20394 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20395 elif test -x readelf
$build_exeext; then
20396 gcc_cv_readelf
=.
/readelf
$build_exeext
20398 # Extract the first word of "readelf", so it can be a program name with args.
20399 set dummy readelf
; ac_word
=$2
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20401 $as_echo_n "checking for $ac_word... " >&6; }
20402 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20403 $as_echo_n "(cached) " >&6
20405 case $gcc_cv_readelf in
20407 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20411 for as_dir
in $PATH
20414 test -z "$as_dir" && as_dir
=.
20415 for ac_exec_ext
in '' $ac_executable_extensions; do
20416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20417 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20428 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20429 if test -n "$gcc_cv_readelf"; then
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20431 $as_echo "$gcc_cv_readelf" >&6; }
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20434 $as_echo "no" >&6; }
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20442 $as_echo_n "checking what readelf to use... " >&6; }
20443 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20444 # Single tree build which includes binutils.
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20446 $as_echo "newly built readelf" >&6; }
20447 elif test x
$gcc_cv_readelf = x
; then
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20449 $as_echo "not found" >&6; }
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20452 $as_echo "$gcc_cv_readelf" >&6; }
20455 # Figure out what assembler alignment features are present.
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20457 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20458 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20459 $as_echo_n "(cached) " >&6
20461 gcc_cv_as_balign_and_p2align
=no
20462 if test $in_tree_gas = yes; then
20463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20464 then gcc_cv_as_balign_and_p2align
=yes
20466 elif test x
$gcc_cv_as != x
; then
20468 .p2align 2' > conftest.s
20469 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20471 (eval $ac_try) 2>&5
20473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20474 test $ac_status = 0; }; }
20476 gcc_cv_as_balign_and_p2align
=yes
20478 echo "configure: failed program was" >&5
20481 rm -f conftest.o conftest.s
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20485 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20486 if test $gcc_cv_as_balign_and_p2align = yes; then
20488 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20493 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20494 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20495 $as_echo_n "(cached) " >&6
20497 gcc_cv_as_max_skip_p2align
=no
20498 if test $in_tree_gas = yes; then
20499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20500 then gcc_cv_as_max_skip_p2align
=yes
20502 elif test x
$gcc_cv_as != x
; then
20503 echo '.p2align 4,,7' > conftest.s
20504 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20506 (eval $ac_try) 2>&5
20508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20509 test $ac_status = 0; }; }
20511 gcc_cv_as_max_skip_p2align
=yes
20513 echo "configure: failed program was" >&5
20516 rm -f conftest.o conftest.s
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
20520 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
20521 if test $gcc_cv_as_max_skip_p2align = yes; then
20523 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
20528 $as_echo_n "checking assembler for .literal16... " >&6; }
20529 if test "${gcc_cv_as_literal16+set}" = set; then :
20530 $as_echo_n "(cached) " >&6
20532 gcc_cv_as_literal16
=no
20533 if test $in_tree_gas = yes; then
20534 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20535 then gcc_cv_as_literal16
=yes
20537 elif test x
$gcc_cv_as != x
; then
20538 echo '.literal16' > conftest.s
20539 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20541 (eval $ac_try) 2>&5
20543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20544 test $ac_status = 0; }; }
20546 gcc_cv_as_literal16
=yes
20548 echo "configure: failed program was" >&5
20551 rm -f conftest.o conftest.s
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
20555 $as_echo "$gcc_cv_as_literal16" >&6; }
20556 if test $gcc_cv_as_literal16 = yes; then
20558 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
20563 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
20564 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
20565 $as_echo_n "(cached) " >&6
20567 gcc_cv_as_subsection_m1
=no
20568 if test $in_tree_gas = yes; then
20569 if test $in_tree_gas_is_elf = yes \
20570 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20571 then gcc_cv_as_subsection_m1
=yes
20573 elif test x
$gcc_cv_as != x
; then
20574 echo 'conftest_label1: .word 0
20576 conftest_label2: .word 0
20577 .previous' > conftest.s
20578 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20580 (eval $ac_try) 2>&5
20582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20583 test $ac_status = 0; }; }
20585 if test x
$gcc_cv_nm != x
; then
20586 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
20587 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
20588 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
20590 else gcc_cv_as_subsection_m1
=yes
20592 rm -f conftest.nm1 conftest.nm2
20595 echo "configure: failed program was" >&5
20598 rm -f conftest.o conftest.s
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
20602 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
20603 if test $gcc_cv_as_subsection_m1 = yes; then
20605 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
20610 $as_echo_n "checking assembler for .weak... " >&6; }
20611 if test "${gcc_cv_as_weak+set}" = set; then :
20612 $as_echo_n "(cached) " >&6
20615 if test $in_tree_gas = yes; then
20616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20617 then gcc_cv_as_weak
=yes
20619 elif test x
$gcc_cv_as != x
; then
20620 echo ' .weak foobar' > conftest.s
20621 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20623 (eval $ac_try) 2>&5
20625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20626 test $ac_status = 0; }; }
20630 echo "configure: failed program was" >&5
20633 rm -f conftest.o conftest.s
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
20637 $as_echo "$gcc_cv_as_weak" >&6; }
20638 if test $gcc_cv_as_weak = yes; then
20640 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
20645 $as_echo_n "checking assembler for .weakref... " >&6; }
20646 if test "${gcc_cv_as_weakref+set}" = set; then :
20647 $as_echo_n "(cached) " >&6
20649 gcc_cv_as_weakref
=no
20650 if test $in_tree_gas = yes; then
20651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20652 then gcc_cv_as_weakref
=yes
20654 elif test x
$gcc_cv_as != x
; then
20655 echo ' .weakref foobar, barfnot' > conftest.s
20656 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20658 (eval $ac_try) 2>&5
20660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20661 test $ac_status = 0; }; }
20663 gcc_cv_as_weakref
=yes
20665 echo "configure: failed program was" >&5
20668 rm -f conftest.o conftest.s
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
20672 $as_echo "$gcc_cv_as_weakref" >&6; }
20673 if test $gcc_cv_as_weakref = yes; then
20675 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
20680 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
20681 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
20682 $as_echo_n "(cached) " >&6
20684 gcc_cv_as_nsubspa_comdat
=no
20685 if test $in_tree_gas = yes; then
20686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20687 then gcc_cv_as_nsubspa_comdat
=yes
20689 elif test x
$gcc_cv_as != x
; then
20690 echo ' .SPACE $TEXT$
20691 .NSUBSPA $CODE$,COMDAT' > conftest.s
20692 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20694 (eval $ac_try) 2>&5
20696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20697 test $ac_status = 0; }; }
20699 gcc_cv_as_nsubspa_comdat
=yes
20701 echo "configure: failed program was" >&5
20704 rm -f conftest.o conftest.s
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
20708 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
20709 if test $gcc_cv_as_nsubspa_comdat = yes; then
20711 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
20715 # .hidden needs to be supported in both the assembler and the linker,
20716 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20717 # This is irritatingly difficult to feature test for; we have to check the
20718 # date string after the version number. If we've got an in-tree
20719 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20721 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
20723 $as_echo_n "checking assembler for .hidden... " >&6; }
20724 if test "${gcc_cv_as_hidden+set}" = set; then :
20725 $as_echo_n "(cached) " >&6
20727 gcc_cv_as_hidden
=no
20728 if test $in_tree_gas = yes; then
20729 if test $in_tree_gas_is_elf = yes \
20730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20731 then gcc_cv_as_hidden
=yes
20733 elif test x
$gcc_cv_as != x
; then
20734 echo ' .hidden foobar
20735 foobar:' > conftest.s
20736 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20738 (eval $ac_try) 2>&5
20740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20741 test $ac_status = 0; }; }
20743 gcc_cv_as_hidden
=yes
20745 echo "configure: failed program was" >&5
20748 rm -f conftest.o conftest.s
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
20752 $as_echo "$gcc_cv_as_hidden" >&6; }
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
20756 $as_echo_n "checking linker for .hidden support... " >&6; }
20757 if test "${gcc_cv_ld_hidden+set}" = set; then :
20758 $as_echo_n "(cached) " >&6
20760 if test $in_tree_ld = yes ; then
20761 gcc_cv_ld_hidden
=no
20762 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 \
20763 && test $in_tree_ld_is_elf = yes; then
20764 gcc_cv_ld_hidden
=yes
20767 gcc_cv_ld_hidden
=yes
20768 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20769 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
20770 ld_vers
=`echo $ld_ver | sed -n \
20771 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20772 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'`
20773 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
20774 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20775 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20776 if test 0"$ld_date" -lt 20020404; then
20777 if test -n "$ld_date"; then
20778 # If there was date string, but was earlier than 2002-04-04, fail
20779 gcc_cv_ld_hidden
=no
20780 elif test -z "$ld_vers"; then
20781 # If there was no date string nor ld version number, something is wrong
20782 gcc_cv_ld_hidden
=no
20784 test -z "$ld_vers_patch" && ld_vers_patch
=0
20785 if test "$ld_vers_major" -lt 2; then
20786 gcc_cv_ld_hidden
=no
20787 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20788 gcc_cv_ld_hidden
="no"
20789 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20790 gcc_cv_ld_hidden
=no
20795 case "${target}" in
20796 hppa64
*-*-hpux* | ia64
*-*-hpux*)
20797 gcc_cv_ld_hidden
=yes
20799 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
20800 gcc_cv_ld_hidden
=yes
20803 gcc_cv_ld_hidden
=no
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
20810 $as_echo "$gcc_cv_ld_hidden" >&6; }
20811 libgcc_visibility
=no
20814 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20815 libgcc_visibility
=yes
20817 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
20822 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
20823 gcc_cv_ld_ro_rw_mix
=unknown
20824 if test $in_tree_ld = yes ; then
20825 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 \
20826 && test $in_tree_ld_is_elf = yes; then
20827 gcc_cv_ld_ro_rw_mix
=read-write
20829 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
20830 echo '.section myfoosect, "a"' > conftest1.s
20831 echo '.section myfoosect, "aw"' > conftest2.s
20832 echo '.byte 1' >> conftest2.s
20833 echo '.section myfoosect, "a"' > conftest3.s
20834 echo '.byte 0' >> conftest3.s
20835 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
20836 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
20837 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
20838 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
20839 conftest2.o conftest3.o
> /dev
/null
2>&1; then
20840 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
20841 | sed -e '/myfoosect/!d' -e N`
20842 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
20843 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
20844 gcc_cv_ld_ro_rw_mix
=read-only
20846 gcc_cv_ld_ro_rw_mix
=read-write
20850 rm -f conftest.
* conftest
[123].
*
20852 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
20854 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
20858 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
20860 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
20862 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
20863 if test "${gcc_cv_as_leb128+set}" = set; then :
20864 $as_echo_n "(cached) " >&6
20866 gcc_cv_as_leb128
=no
20867 if test $in_tree_gas = yes; then
20868 if test $in_tree_gas_is_elf = yes \
20869 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20870 then gcc_cv_as_leb128
=yes
20872 elif test x
$gcc_cv_as != x
; then
20879 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20881 (eval $ac_try) 2>&5
20883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20884 test $ac_status = 0; }; }
20886 # GAS versions before 2.11 do not support uleb128,
20887 # despite appearing to.
20888 # ??? There exists an elf-specific test that will crash
20889 # the assembler. Perhaps it's better to figure out whether
20890 # arbitrary sections are supported and try the test.
20891 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20892 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
20893 as_vers
=`echo $as_ver | sed -n \
20894 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20895 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
20896 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20897 if test $as_major -eq 2 && test $as_minor -lt 11
20899 else gcc_cv_as_leb128
=yes
20903 echo "configure: failed program was" >&5
20906 rm -f conftest.o conftest.s
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
20910 $as_echo "$gcc_cv_as_leb128" >&6; }
20911 if test $gcc_cv_as_leb128 = yes; then
20913 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
20917 # Check if we have assembler support for unwind directives.
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
20919 $as_echo_n "checking assembler for cfi directives... " >&6; }
20920 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
20921 $as_echo_n "(cached) " >&6
20923 gcc_cv_as_cfi_directive
=no
20924 if test x
$gcc_cv_as != x
; then
20930 .cfi_escape 1, 2, 3, 4, 5
20931 .cfi_endproc' > conftest.s
20932 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20934 (eval $ac_try) 2>&5
20936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20937 test $ac_status = 0; }; }
20941 # If the linker used on Solaris (like Sun ld) isn't capable of merging
20942 # read-only and read-write sections, we need to make sure that the
20943 # assembler used emits read-write .eh_frame sections.
20944 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
20945 if test "x$gcc_cv_objdump" != x
; then
20946 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
20947 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
20948 gcc_cv_as_cfi_directive
=no
20950 gcc_cv_as_cfi_directive
=yes
20953 # no objdump, err on the side of caution
20954 gcc_cv_as_cfi_directive
=no
20957 gcc_cv_as_cfi_directive
=yes
20961 gcc_cv_as_cfi_directive
=yes
20965 echo "configure: failed program was" >&5
20968 rm -f conftest.o conftest.s
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
20972 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
20974 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
20976 $as_echo_n "checking assembler for working cfi advance... " >&6; }
20977 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
20978 $as_echo_n "(cached) " >&6
20980 gcc_cv_as_cfi_advance_working
=no
20981 if test x
$gcc_cv_as != x
; then
20984 .cfi_adjust_cfa_offset 64
20986 .cfi_adjust_cfa_offset 128
20987 .cfi_endproc' > conftest.s
20988 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20990 (eval $ac_try) 2>&5
20992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20993 test $ac_status = 0; }; }
20996 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
20997 |
grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev
/null
; then
20998 gcc_cv_as_cfi_advance_working
=yes
21002 echo "configure: failed program was" >&5
21005 rm -f conftest.o conftest.s
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21009 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21012 # no readelf, err on the side of caution
21013 gcc_cv_as_cfi_advance_working
=no
21016 cat >>confdefs.h
<<_ACEOF
21017 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21018 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21023 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21024 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21025 $as_echo_n "(cached) " >&6
21027 gcc_cv_as_cfi_personality_directive
=no
21028 if test x
$gcc_cv_as != x
; then
21031 .cfi_personality 0, symbol
21032 .cfi_endproc' > 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_cfi_personality_directive
=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_cfi_personality_directive" >&5
21049 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21052 cat >>confdefs.h
<<_ACEOF
21053 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21054 then echo 1; else echo 0; fi`
21058 # GAS versions up to and including 2.11.0 may mis-optimize
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21061 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21062 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21063 $as_echo_n "(cached) " >&6
21065 gcc_cv_as_eh_frame
=no
21066 if test $in_tree_gas = yes; then
21067 if test $in_tree_gas_is_elf = yes \
21068 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21069 then gcc_cv_as_eh_frame
=yes
21071 elif test x
$gcc_cv_as != x
; then
21078 .section .eh_frame,"aw",@progbits
21080 .4byte .LECIE1-.LSCIE1
21094 .4byte .LEFDE1-.LASFDE1
21096 .4byte .LASFDE1-__FRAME_BEGIN__
21103 .LEFDE1:' > conftest.s
21104 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21106 (eval $ac_try) 2>&5
21108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21109 test $ac_status = 0; }; }
21111 cat > conftest.lit
<<EOF
21112 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21113 0010 01000000 12000000 18000000 00000000 ................
21114 0020 08000000 04080000 0044 .........D
21116 cat > conftest.big
<<EOF
21117 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21118 0010 00000001 00000012 00000018 00000000 ................
21119 0020 00000008 04000000 0844 .........D
21121 # If the assembler didn't choke, and we can objdump,
21122 # and we got the correct data, then succeed.
21123 # The text in the here-document typically retains its unix-style line
21124 # endings, while the output of objdump will use host line endings.
21125 # Therefore, use diff -b for the comparisons.
21126 if test x
$gcc_cv_objdump != x \
21127 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21128 |
tail -3 > conftest.got \
21129 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21130 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21132 gcc_cv_as_eh_frame
=yes
21133 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21135 (eval $ac_try) 2>&5
21137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21138 test $ac_status = 0; }; }; then
21139 gcc_cv_as_eh_frame
=buggy
21141 # Uh oh, what do we do now?
21142 gcc_cv_as_eh_frame
=no
21145 echo "configure: failed program was" >&5
21148 rm -f conftest.o conftest.s
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21152 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21155 if test $gcc_cv_as_eh_frame = buggy
; then
21157 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21162 $as_echo_n "checking assembler for section merging support... " >&6; }
21163 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21164 $as_echo_n "(cached) " >&6
21166 gcc_cv_as_shf_merge
=no
21167 if test $in_tree_gas = yes; then
21168 if test $in_tree_gas_is_elf = yes \
21169 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21170 then gcc_cv_as_shf_merge
=yes
21172 elif test x
$gcc_cv_as != x
; then
21173 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21174 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21176 (eval $ac_try) 2>&5
21178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21179 test $ac_status = 0; }; }
21181 gcc_cv_as_shf_merge
=yes
21183 echo "configure: failed program was" >&5
21186 rm -f conftest.o conftest.s
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21190 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21192 if test $gcc_cv_as_shf_merge = no
; then
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21194 $as_echo_n "checking assembler for section merging support... " >&6; }
21195 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21196 $as_echo_n "(cached) " >&6
21198 gcc_cv_as_shf_merge
=no
21199 if test $in_tree_gas = yes; then
21200 if test $in_tree_gas_is_elf = yes \
21201 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21202 then gcc_cv_as_shf_merge
=yes
21204 elif test x
$gcc_cv_as != x
; then
21205 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21206 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21208 (eval $ac_try) 2>&5
21210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21211 test $ac_status = 0; }; }
21213 gcc_cv_as_shf_merge
=yes
21215 echo "configure: failed program was" >&5
21218 rm -f conftest.o conftest.s
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21222 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21226 cat >>confdefs.h
<<_ACEOF
21227 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21232 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21233 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21234 $as_echo_n "(cached) " >&6
21236 gcc_cv_as_comdat_group
=no
21237 if test $in_tree_gas = yes; then
21238 if test $in_tree_gas_is_elf = yes \
21239 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21240 then gcc_cv_as_comdat_group
=yes
21242 elif test x
$gcc_cv_as != x
; then
21243 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21244 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21246 (eval $ac_try) 2>&5
21248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21249 test $ac_status = 0; }; }
21251 gcc_cv_as_comdat_group
=yes
21253 echo "configure: failed program was" >&5
21256 rm -f conftest.o conftest.s
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21260 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21262 if test $gcc_cv_as_comdat_group = yes; then
21263 gcc_cv_as_comdat_group_percent
=no
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21266 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21267 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21268 $as_echo_n "(cached) " >&6
21270 gcc_cv_as_comdat_group_percent
=no
21271 if test $in_tree_gas = yes; then
21272 if test $in_tree_gas_is_elf = yes \
21273 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21274 then gcc_cv_as_comdat_group_percent
=yes
21276 elif test x
$gcc_cv_as != x
; then
21277 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21278 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21280 (eval $ac_try) 2>&5
21282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21283 test $ac_status = 0; }; }
21285 gcc_cv_as_comdat_group_percent
=yes
21287 echo "configure: failed program was" >&5
21290 rm -f conftest.o conftest.s
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21294 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21297 if test $in_tree_ld = yes ; then
21299 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 \
21300 && test $in_tree_ld_is_elf = yes; then
21303 elif test x
"$ld_vers" != x
; then
21305 if test 0"$ld_date" -lt 20050308; then
21306 if test -n "$ld_date"; then
21307 # If there was date string, but was earlier than 2005-03-08, fail
21309 elif test "$ld_vers_major" -lt 2; then
21311 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21316 # assume linkers other than GNU ld don't support COMDAT group
21319 if test $comdat_group = no
; then
21320 gcc_cv_as_comdat_group
=no
21321 gcc_cv_as_comdat_group_percent
=no
21324 cat >>confdefs.h
<<_ACEOF
21325 #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`
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21330 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21331 if test "${gcc_cv_as_discriminator+set}" = set; then :
21332 $as_echo_n "(cached) " >&6
21334 gcc_cv_as_discriminator
=no
21335 if test $in_tree_gas = yes; then
21336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21337 then gcc_cv_as_discriminator
=yes
21339 elif test x
$gcc_cv_as != x
; then
21342 .loc 1 1 0 discriminator 1' > conftest.s
21343 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21345 (eval $ac_try) 2>&5
21347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21348 test $ac_status = 0; }; }
21350 gcc_cv_as_discriminator
=yes
21352 echo "configure: failed program was" >&5
21355 rm -f conftest.o conftest.s
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21359 $as_echo "$gcc_cv_as_discriminator" >&6; }
21360 if test $gcc_cv_as_discriminator = yes; then
21362 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21366 # Thread-local storage - the check is heavily parameterized.
21374 .section ".tdata","awT",@progbits
21377 ldq $27,__tls_get_addr($29) !literal!1
21378 lda $16,foo($29) !tlsgd!1
21379 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21380 ldq $27,__tls_get_addr($29) !literal!2
21381 lda $16,foo($29) !tlsldm!2
21382 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21383 ldq $1,foo($29) !gotdtprel
21384 ldah $2,foo($29) !dtprelhi
21385 lda $3,foo($2) !dtprello
21386 lda $4,foo($29) !dtprel
21387 ldq $1,foo($29) !gottprel
21388 ldah $2,foo($29) !tprelhi
21389 lda $3,foo($2) !tprello
21390 lda $4,foo($29) !tprel'
21393 tls_as_opt
=--fatal-warnings
21395 cris-
*-*|crisv32-
*-*)
21397 .section ".tdata","awT",@progbits
21404 tls_as_opt
=--fatal-warnings
21408 .section ".tdata","awT",@progbits
21411 call #gettlsoff(x)'
21420 .section ".tdata","awT",@progbits
21424 addil LT%foo-$tls_gdidx$,gp
21425 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21428 addil LT%foo-$tls_ldidx$,gp
21430 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21431 addil LR%foo-$tls_dtpoff$,%ret0
21432 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21434 addil LT%foo-$tls_ieoff$,gp
21435 ldw RT%foo-$tls_ieoff$(%r1),%t2
21438 addil LR%foo-$tls_leoff$,%t1
21439 ldo RR%foo-$tls_leoff$(%r1),%t2'
21442 tls_as_opt
=--fatal-warnings
21446 .section ".tdata","awT",%progbits
21449 .word foo(gottpoff)
21459 .section ".tdata","awT",@progbits
21463 leal foo@TLSGD(,%ebx,1), %eax
21464 leal foo@TLSLDM(%ebx), %eax
21465 leal foo@DTPOFF(%eax), %edx
21466 movl foo@GOTTPOFF(%ebx), %eax
21467 subl foo@GOTTPOFF(%ebx), %eax
21468 addl foo@GOTNTPOFF(%ebx), %eax
21469 movl foo@INDNTPOFF, %eax
21470 movl $foo@TPOFF, %eax
21471 subl $foo@TPOFF, %eax
21472 leal foo@NTPOFF(%ecx), %eax'
21475 tls_as_opt
=--fatal-warnings
21479 .section ".tdata","awT",@progbits
21483 leaq foo@TLSGD(%rip), %rdi
21484 leaq foo@TLSLD(%rip), %rdi
21485 leaq foo@DTPOFF(%rax), %rdx
21486 movq foo@GOTTPOFF(%rip), %rax
21487 movq $foo@TPOFF, %rax'
21490 tls_as_opt
=--fatal-warnings
21494 .section ".tdata","awT",@progbits
21497 addl r16 = @ltoff(@dtpmod(foo#)), gp
21498 addl r17 = @ltoff(@dtprel(foo#)), gp
21499 addl r18 = @ltoff(@tprel(foo#)), gp
21500 addl r19 = @dtprel(foo#), gp
21501 adds r21 = @dtprel(foo#), r13
21502 movl r23 = @dtprel(foo#)
21503 addl r20 = @tprel(foo#), gp
21504 adds r22 = @tprel(foo#), r13
21505 movl r24 = @tprel(foo#)'
21508 tls_as_opt
=--fatal-warnings
21512 .section .tdata,"awT",@progbits
21516 addiu $4, $28, %tlsgd(x)
21517 addiu $4, $28, %tlsldm(x)
21518 lui $4, %dtprel_hi(x)
21519 addiu $4, $4, %dtprel_lo(x)
21520 lw $4, %gottprel(x)($28)
21521 lui $4, %tprel_hi(x)
21522 addiu $4, $4, %tprel_lo(x)'
21525 tls_as_opt
='-32 --fatal-warnings'
21529 .section .tdata,"awT",@progbits
21534 move.l x@TLSGD(%a5),%a0
21535 move.l x@TLSLDM(%a5),%a0
21536 move.l x@TLSLDO(%a5),%a0
21537 move.l x@TLSIE(%a5),%a0
21538 move.l x@TLSLE(%a5),%a0'
21541 tls_as_opt
='--fatal-warnings'
21545 .section ".tdata","awT",@progbits
21553 addi 3,31,ld0@got@tlsgd
21555 addi 3,31,x1@got@tlsld
21558 addis 9,3,x2@dtprel@ha
21559 addi 9,9,x2@dtprel@l
21560 lwz 9,x3@got@tprel(31)
21563 addis 9,2,x2@tprel@ha
21564 addi 9,9,x2@tprel@l'
21567 tls_as_opt
="-a32 --fatal-warnings"
21571 .section ".tdata","awT",@progbits
21579 addi 3,2,ld0@got@tlsgd
21585 addi 3,2,x1@got@tlsld
21591 addis 9,3,x2@dtprel@ha
21592 addi 9,9,x2@dtprel@l
21595 ld 9,x3@got@dtprel(2)
21601 tls_as_opt
="-a64 --fatal-warnings"
21605 .section ".tdata","awT",@progbits
21612 .long foo@GOTNTPOFF
21613 .long foo@INDNTPOFF
21614 l %r1,foo@GOTNTPOFF(%r12)
21615 l %r1,0(%r1):tls_load:foo
21616 bas %r14,0(%r1,%r13):tls_gdcall:foo
21617 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21620 tls_as_opt
="-m31 --fatal-warnings"
21624 .section ".tdata","awT",@progbits
21631 .quad foo@GOTNTPOFF
21632 lg %r1,foo@GOTNTPOFF(%r12)
21633 larl %r1,foo@INDNTPOFF
21634 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21635 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21638 tls_as_opt
="-m64 -Aesame --fatal-warnings"
21640 sh-
*-* | sh
[34]-*-*)
21642 .section ".tdata","awT",@progbits
21652 tls_as_opt
=--fatal-warnings
21656 sparc
*-sun-solaris2.
[56789]*)
21657 # TLS was introduced in the Solaris 9 4/04 release but
21658 # we do not enable it by default on Solaris 9 either.
21659 if test "x$enable_tls" = xyes
; then
21665 sparc
*-sun-solaris2.
*)
21672 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
21674 .section ".tdata",#alloc,#write,#tls
21677 sethi %tgd_hi22(foo), %o0
21678 add %o0, %tgd_lo10(foo), %o1
21679 add %l7, %o1, %o0, %tgd_add(foo)
21680 call __tls_get_addr, %tgd_call(foo)
21681 sethi %tldm_hi22(foo), %l1
21682 add %l1, %tldm_lo10(foo), %l2
21683 add %l7, %l2, %o0, %tldm_add(foo)
21684 call __tls_get_addr, %tldm_call(foo)
21685 sethi %tldo_hix22(foo), %l3
21686 xor %l3, %tldo_lox10(foo), %l4
21687 add %o0, %l4, %l5, %tldo_add(foo)
21688 sethi %tie_hi22(foo), %o3
21689 add %o3, %tie_lo10(foo), %o3
21690 ld [%l7 + %o3], %o2, %tie_ld(foo)
21691 add %g7, %o2, %o4, %tie_add(foo)
21692 sethi %tle_hix22(foo), %l1
21693 xor %l1, %tle_lox10(foo), %o5
21694 ld [%g7 + %o5], %o1'
21699 .section ".tdata","awT",@progbits
21702 sethi %tgd_hi22(foo), %o0
21703 add %o0, %tgd_lo10(foo), %o1
21704 add %l7, %o1, %o0, %tgd_add(foo)
21705 call __tls_get_addr, %tgd_call(foo)
21706 sethi %tldm_hi22(foo), %l1
21707 add %l1, %tldm_lo10(foo), %l2
21708 add %l7, %l2, %o0, %tldm_add(foo)
21709 call __tls_get_addr, %tldm_call(foo)
21710 sethi %tldo_hix22(foo), %l3
21711 xor %l3, %tldo_lox10(foo), %l4
21712 add %o0, %l4, %l5, %tldo_add(foo)
21713 sethi %tie_hi22(foo), %o3
21714 add %o3, %tie_lo10(foo), %o3
21715 ld [%l7 + %o3], %o2, %tie_ld(foo)
21716 add %g7, %o2, %o4, %tie_add(foo)
21717 sethi %tle_hix22(foo), %l1
21718 xor %l1, %tle_lox10(foo), %o5
21719 ld [%g7 + %o5], %o1'
21722 tls_as_opt
="-32 --fatal-warnings"
21727 .section ".tdata","awT",@progbits
21730 movi a8, foo@TLSFUNC
21731 movi a10, foo@TLSARG
21732 callx8.tls a8, foo@TLSCALL'
21738 if test "x$enable_tls" = xno
; then
21739 : # TLS explicitly disabled.
21740 elif test "x$enable_tls" = xyes
; then
21741 set_have_as_tls
=yes # TLS explicitly enabled.
21742 elif test -z "$tls_first_major"; then
21743 : # If we don't have a check, assume no support.
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
21746 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
21747 if test "${gcc_cv_as_tls+set}" = set; then :
21748 $as_echo_n "(cached) " >&6
21751 if test $in_tree_gas = yes; then
21752 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21753 then gcc_cv_as_tls
=yes
21755 elif test x
$gcc_cv_as != x
; then
21756 echo "$conftest_s" > conftest.s
21757 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21759 (eval $ac_try) 2>&5
21761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21762 test $ac_status = 0; }; }
21766 echo "configure: failed program was" >&5
21769 rm -f conftest.o conftest.s
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
21773 $as_echo "$gcc_cv_as_tls" >&6; }
21774 if test $gcc_cv_as_tls = yes; then
21775 set_have_as_tls
=yes
21778 if test $set_have_as_tls = yes ; then
21780 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
21784 # Target-specific assembler checks.
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
21787 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
21788 gcc_cv_ld_static_dynamic
=no
21789 if test $in_tree_ld = yes ; then
21790 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
21791 gcc_cv_ld_static_dynamic
=yes
21793 elif test x
$gcc_cv_ld != x
; then
21794 # Check if linker supports -Bstatic/-Bdynamic option
21795 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
21796 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
21797 gcc_cv_ld_static_dynamic
=yes
21800 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
21802 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
21806 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
21808 if test x
"$demangler_in_ld" = xyes
; then
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
21810 $as_echo_n "checking linker --demangle support... " >&6; }
21811 gcc_cv_ld_demangle
=no
21812 if test $in_tree_ld = yes; then
21813 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 \
21814 gcc_cv_ld_demangle
=yes
21816 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
21817 # Check if the GNU linker supports --demangle option
21818 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
21819 gcc_cv_ld_demangle
=yes
21822 if test x
"$gcc_cv_ld_demangle" = xyes
; then
21824 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
21828 $as_echo "$gcc_cv_ld_demangle" >&6; }
21832 # All TARGET_ABI_OSF targets.
21833 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
21835 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
21836 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
21837 $as_echo_n "(cached) " >&6
21839 gcc_cv_as_alpha_explicit_relocs
=no
21840 if test $in_tree_gas = yes; then
21841 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21842 then gcc_cv_as_alpha_explicit_relocs
=yes
21844 elif test x
$gcc_cv_as != x
; then
21845 echo ' .set nomacro
21847 extbl $3, $2, $3 !lituse_bytoff!1
21848 ldq $2, a($29) !literal!1
21849 ldq $4, b($29) !literal!2
21850 ldq_u $3, 0($2) !lituse_base!1
21851 ldq $27, f($29) !literal!5
21852 jsr $26, ($27), f !lituse_jsr!5
21853 ldah $29, 0($26) !gpdisp!3
21854 lda $0, c($29) !gprel
21855 ldah $1, d($29) !gprelhigh
21856 lda $1, d($1) !gprellow
21857 lda $29, 0($29) !gpdisp!3' > conftest.s
21858 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21860 (eval $ac_try) 2>&5
21862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21863 test $ac_status = 0; }; }
21865 gcc_cv_as_alpha_explicit_relocs
=yes
21867 echo "configure: failed program was" >&5
21870 rm -f conftest.o conftest.s
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21874 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
21875 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21877 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
21881 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
21882 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
21883 $as_echo_n "(cached) " >&6
21885 gcc_cv_as_alpha_jsrdirect_relocs
=no
21886 if test $in_tree_gas = yes; then
21887 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21888 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
21890 elif test x
$gcc_cv_as != x
; then
21891 echo ' .set nomacro
21893 ldq $27, a($29) !literal!1
21894 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21895 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21897 (eval $ac_try) 2>&5
21899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21900 test $ac_status = 0; }; }
21902 gcc_cv_as_alpha_jsrdirect_relocs
=yes
21904 echo "configure: failed program was" >&5
21907 rm -f conftest.o conftest.s
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21911 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
21912 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21914 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
21921 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
21922 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21925 gcc_cv_as_cris_no_mul_bug
=no
21926 if test $in_tree_gas = yes; then
21927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21928 then gcc_cv_as_cris_no_mul_bug
=yes
21930 elif test x
$gcc_cv_as != x
; then
21931 echo '.text' > conftest.s
21932 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21934 (eval $ac_try) 2>&5
21936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21937 test $ac_status = 0; }; }
21939 gcc_cv_as_cris_no_mul_bug
=yes
21941 echo "configure: failed program was" >&5
21944 rm -f conftest.o conftest.s
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
21948 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
21949 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21951 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
21958 $as_echo_n "checking assembler for .register... " >&6; }
21959 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
21960 $as_echo_n "(cached) " >&6
21962 gcc_cv_as_sparc_register_op
=no
21963 if test x
$gcc_cv_as != x
; then
21964 echo '.register %g2, #scratch' > conftest.s
21965 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21967 (eval $ac_try) 2>&5
21969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21970 test $ac_status = 0; }; }
21972 gcc_cv_as_sparc_register_op
=yes
21974 echo "configure: failed program was" >&5
21977 rm -f conftest.o conftest.s
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
21981 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
21982 if test $gcc_cv_as_sparc_register_op = yes; then
21984 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
21989 $as_echo_n "checking assembler for -relax option... " >&6; }
21990 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
21991 $as_echo_n "(cached) " >&6
21993 gcc_cv_as_sparc_relax
=no
21994 if test x
$gcc_cv_as != x
; then
21995 echo '.text' > conftest.s
21996 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21998 (eval $ac_try) 2>&5
22000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22001 test $ac_status = 0; }; }
22003 gcc_cv_as_sparc_relax
=yes
22005 echo "configure: failed program was" >&5
22008 rm -f conftest.o conftest.s
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22012 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22013 if test $gcc_cv_as_sparc_relax = yes; then
22015 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22020 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22021 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22022 $as_echo_n "(cached) " >&6
22024 gcc_cv_as_sparc_ua_pcrel
=no
22025 if test x
$gcc_cv_as != x
; then
22032 .uaword %r_disp32(foo)' > conftest.s
22033 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22035 (eval $ac_try) 2>&5
22037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22038 test $ac_status = 0; }; }
22040 if test x
$gcc_cv_ld != x \
22041 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22042 gcc_cv_as_sparc_ua_pcrel
=yes
22046 echo "configure: failed program was" >&5
22049 rm -f conftest.o conftest.s
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22053 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22054 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22056 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22060 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22061 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22062 $as_echo_n "(cached) " >&6
22064 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22065 if test x
$gcc_cv_as != x
; then
22069 .uaword %r_disp32(foo)
22070 .byte 0x32, 0x33, 0x34
22074 .skip 4' > conftest.s
22075 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22077 (eval $ac_try) 2>&5
22079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22080 test $ac_status = 0; }; }
22082 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22083 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22084 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22085 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22086 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22087 |
grep 'DISP32' > /dev
/null
2>&1; then
22090 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22095 echo "configure: failed program was" >&5
22098 rm -f conftest.o conftest.s
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22102 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22103 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22105 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22109 fi # unaligned pcrel relocs
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22112 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22113 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22114 $as_echo_n "(cached) " >&6
22116 gcc_cv_as_sparc_offsetable_lo10
=no
22117 if test x
$gcc_cv_as != x
; then
22119 or %g1, %lo(ab) + 12, %g1
22120 or %g1, %lo(ab + 12), %g1' > conftest.s
22121 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22123 (eval $ac_try) 2>&5
22125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22126 test $ac_status = 0; }; }
22128 if test x
$gcc_cv_objdump != x \
22129 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
22130 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
22131 gcc_cv_as_sparc_offsetable_lo10
=yes
22134 echo "configure: failed program was" >&5
22137 rm -f conftest.o conftest.s
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22141 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22142 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22144 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22149 i
[34567]86-*-* | x86_64-
*-*)
22151 cygwin
* | pe | mingw32
*)
22152 # Recent binutils allows the three-operand form of ".comm" on PE. This
22153 # definition is used unconditionally to initialise the default state of
22154 # the target option variable that governs usage of the feature.
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22156 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22157 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22158 $as_echo_n "(cached) " >&6
22160 gcc_cv_as_comm_has_align
=no
22161 if test $in_tree_gas = yes; then
22162 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22163 then gcc_cv_as_comm_has_align
=yes
22165 elif test x
$gcc_cv_as != x
; then
22166 echo '.comm foo,1,32' > conftest.s
22167 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22169 (eval $ac_try) 2>&5
22171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22172 test $ac_status = 0; }; }
22174 gcc_cv_as_comm_has_align
=yes
22176 echo "configure: failed program was" >&5
22179 rm -f conftest.o conftest.s
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22183 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22186 cat >>confdefs.h
<<_ACEOF
22187 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22190 # Used for DWARF 2 in PE
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22192 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22193 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22194 $as_echo_n "(cached) " >&6
22196 gcc_cv_as_ix86_pe_secrel32
=no
22197 if test $in_tree_gas = yes; then
22198 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22199 then gcc_cv_as_ix86_pe_secrel32
=yes
22201 elif test x
$gcc_cv_as != x
; then
22205 .secrel32 foo' > conftest.s
22206 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22208 (eval $ac_try) 2>&5
22210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22211 test $ac_status = 0; }; }
22213 if test x
$gcc_cv_ld != x \
22214 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
22215 gcc_cv_as_ix86_pe_secrel32
=yes
22219 echo "configure: failed program was" >&5
22222 rm -f conftest.o conftest.s
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22226 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22227 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22229 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22236 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22237 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22238 $as_echo_n "(cached) " >&6
22240 gcc_cv_as_ix86_filds
=no
22241 if test x
$gcc_cv_as != x
; then
22242 echo 'filds mem; fists mem' > conftest.s
22243 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22245 (eval $ac_try) 2>&5
22247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22248 test $ac_status = 0; }; }
22250 gcc_cv_as_ix86_filds
=yes
22252 echo "configure: failed program was" >&5
22255 rm -f conftest.o conftest.s
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22259 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22260 if test $gcc_cv_as_ix86_filds = yes; then
22262 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22267 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22268 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22269 $as_echo_n "(cached) " >&6
22271 gcc_cv_as_ix86_fildq
=no
22272 if test x
$gcc_cv_as != x
; then
22273 echo 'fildq mem; fistpq mem' > conftest.s
22274 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22276 (eval $ac_try) 2>&5
22278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22279 test $ac_status = 0; }; }
22281 gcc_cv_as_ix86_fildq
=yes
22283 echo "configure: failed program was" >&5
22286 rm -f conftest.o conftest.s
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22290 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22291 if test $gcc_cv_as_ix86_fildq = yes; then
22293 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22298 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22299 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22300 $as_echo_n "(cached) " >&6
22302 gcc_cv_as_ix86_cmov_sun_syntax
=no
22303 if test x
$gcc_cv_as != x
; then
22304 echo 'cmovl.l %edx, %eax' > conftest.s
22305 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22307 (eval $ac_try) 2>&5
22309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22310 test $ac_status = 0; }; }
22312 gcc_cv_as_ix86_cmov_sun_syntax
=yes
22314 echo "configure: failed program was" >&5
22317 rm -f conftest.o conftest.s
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22321 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22322 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22324 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22329 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22330 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22331 $as_echo_n "(cached) " >&6
22333 gcc_cv_as_ix86_ffreep
=no
22334 if test x
$gcc_cv_as != x
; then
22335 echo 'ffreep %st(1)' > conftest.s
22336 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22338 (eval $ac_try) 2>&5
22340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22341 test $ac_status = 0; }; }
22343 gcc_cv_as_ix86_ffreep
=yes
22345 echo "configure: failed program was" >&5
22348 rm -f conftest.o conftest.s
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22352 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22353 if test $gcc_cv_as_ix86_ffreep = yes; then
22355 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22360 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22361 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
22364 gcc_cv_as_ix86_sahf
=no
22365 if test x
$gcc_cv_as != x
; then
22366 echo 'sahf' > conftest.s
22367 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22369 (eval $ac_try) 2>&5
22371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22372 test $ac_status = 0; }; }
22374 gcc_cv_as_ix86_sahf
=yes
22376 echo "configure: failed program was" >&5
22379 rm -f conftest.o conftest.s
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22383 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22384 if test $gcc_cv_as_ix86_sahf = yes; then
22386 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22391 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22392 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22395 gcc_cv_as_ix86_diff_sect_delta
=no
22396 if test x
$gcc_cv_as != x
; then
22397 echo '.section .rodata
22403 .L2: nop' > conftest.s
22404 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22406 (eval $ac_try) 2>&5
22408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22409 test $ac_status = 0; }; }
22411 gcc_cv_as_ix86_diff_sect_delta
=yes
22413 echo "configure: failed program was" >&5
22416 rm -f conftest.o conftest.s
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22420 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22421 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22423 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22427 # This one is used unconditionally by i386.[ch]; it is to be defined
22428 # to 1 if the feature is present, 0 otherwise.
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22430 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22431 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22434 gcc_cv_as_ix86_gotoff_in_data
=no
22435 if test $in_tree_gas = yes; then
22436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22437 then gcc_cv_as_ix86_gotoff_in_data
=yes
22439 elif test x
$gcc_cv_as != x
; then
22444 .long .L0@GOTOFF' > conftest.s
22445 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22447 (eval $ac_try) 2>&5
22449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22450 test $ac_status = 0; }; }
22452 gcc_cv_as_ix86_gotoff_in_data
=yes
22454 echo "configure: failed program was" >&5
22457 rm -f conftest.o conftest.s
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22461 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
22464 cat >>confdefs.h
<<_ACEOF
22465 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
22472 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
22473 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22476 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
22477 if test $in_tree_gas = yes; then
22478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22479 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22481 elif test x
$gcc_cv_as != x
; then
22483 addl r15 = @ltoffx(x#), gp
22485 ld8.mov r16 = [r15], x#' > conftest.s
22486 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22488 (eval $ac_try) 2>&5
22490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22491 test $ac_status = 0; }; }
22493 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22495 echo "configure: failed program was" >&5
22498 rm -f conftest.o conftest.s
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22502 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
22503 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22505 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
22513 *-*-aix*) conftest_s
=' .machine "pwr5"
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
22518 $as_echo_n "checking assembler for .machine directive support... " >&6; }
22519 if test "${gcc_cv_as_machine_directive+set}" = set; then :
22520 $as_echo_n "(cached) " >&6
22522 gcc_cv_as_machine_directive
=no
22523 if test x
$gcc_cv_as != x
; then
22524 echo ' .machine ppc7400' > conftest.s
22525 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22527 (eval $ac_try) 2>&5
22529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22530 test $ac_status = 0; }; }
22532 gcc_cv_as_machine_directive
=yes
22534 echo "configure: failed program was" >&5
22537 rm -f conftest.o conftest.s
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
22541 $as_echo "$gcc_cv_as_machine_directive" >&6; }
22543 if test x
$gcc_cv_as_machine_directive != xyes
; then
22544 echo "*** This target requires an assembler supporting \".machine\"" >&2
22545 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
22546 test x
$build = x
$target && exit 1
22550 *) conftest_s
=' .machine power4
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
22556 $as_echo_n "checking assembler for mfcr field support... " >&6; }
22557 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
22558 $as_echo_n "(cached) " >&6
22560 gcc_cv_as_powerpc_mfcrf
=no
22561 if test $in_tree_gas = yes; then
22562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22563 then gcc_cv_as_powerpc_mfcrf
=yes
22565 elif test x
$gcc_cv_as != x
; then
22566 echo "$conftest_s" > conftest.s
22567 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22569 (eval $ac_try) 2>&5
22571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22572 test $ac_status = 0; }; }
22574 gcc_cv_as_powerpc_mfcrf
=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_powerpc_mfcrf" >&5
22583 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
22584 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22586 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
22591 *-*-aix*) conftest_s
=' .machine "pwr5"
22594 *) conftest_s
=' .machine power5
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
22600 $as_echo_n "checking assembler for popcntb support... " >&6; }
22601 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22604 gcc_cv_as_powerpc_popcntb
=no
22605 if test $in_tree_gas = yes; then
22606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22607 then gcc_cv_as_powerpc_popcntb
=yes
22609 elif test x
$gcc_cv_as != x
; then
22610 echo "$conftest_s" > conftest.s
22611 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22613 (eval $ac_try) 2>&5
22615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22616 test $ac_status = 0; }; }
22618 gcc_cv_as_powerpc_popcntb
=yes
22620 echo "configure: failed program was" >&5
22623 rm -f conftest.o conftest.s
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
22627 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
22628 if test $gcc_cv_as_powerpc_popcntb = yes; then
22630 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
22635 *-*-aix*) conftest_s
=' .machine "pwr5x"
22638 *) conftest_s
=' .machine power5
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
22644 $as_echo_n "checking assembler for fp round support... " >&6; }
22645 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22648 gcc_cv_as_powerpc_fprnd
=no
22649 if test $in_tree_gas = yes; then
22650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22651 then gcc_cv_as_powerpc_fprnd
=yes
22653 elif test x
$gcc_cv_as != x
; then
22654 echo "$conftest_s" > conftest.s
22655 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22657 (eval $ac_try) 2>&5
22659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22660 test $ac_status = 0; }; }
22662 gcc_cv_as_powerpc_fprnd
=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_powerpc_fprnd" >&5
22671 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
22672 if test $gcc_cv_as_powerpc_fprnd = yes; then
22674 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
22679 *-*-aix*) conftest_s
=' .machine "pwr6"
22682 *) conftest_s
=' .machine power6
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
22688 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
22689 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
22690 $as_echo_n "(cached) " >&6
22692 gcc_cv_as_powerpc_mfpgpr
=no
22693 if test $in_tree_gas = yes; then
22694 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22695 then gcc_cv_as_powerpc_mfpgpr
=yes
22697 elif test x
$gcc_cv_as != x
; then
22698 echo "$conftest_s" > conftest.s
22699 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22701 (eval $ac_try) 2>&5
22703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22704 test $ac_status = 0; }; }
22706 gcc_cv_as_powerpc_mfpgpr
=yes
22708 echo "configure: failed program was" >&5
22711 rm -f conftest.o conftest.s
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22715 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
22716 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22718 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
22723 *-*-aix*) conftest_s
=' .csect .text[PR]
22725 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22729 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22730 *) conftest_s
=' .text
22732 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
22736 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
22737 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
22738 $as_echo_n "(cached) " >&6
22740 gcc_cv_as_powerpc_rel16
=no
22741 if test $in_tree_gas = yes; then
22742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22743 then gcc_cv_as_powerpc_rel16
=yes
22745 elif test x
$gcc_cv_as != x
; then
22746 echo "$conftest_s" > conftest.s
22747 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749 (eval $ac_try) 2>&5
22751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752 test $ac_status = 0; }; }
22754 gcc_cv_as_powerpc_rel16
=yes
22756 echo "configure: failed program was" >&5
22759 rm -f conftest.o conftest.s
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
22763 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
22764 if test $gcc_cv_as_powerpc_rel16 = yes; then
22766 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
22771 *-*-aix*) conftest_s
=' .machine "pwr6"
22774 *) conftest_s
=' .machine power6
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
22780 $as_echo_n "checking assembler for compare bytes support... " >&6; }
22781 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
22782 $as_echo_n "(cached) " >&6
22784 gcc_cv_as_powerpc_cmpb
=no
22785 if test $in_tree_gas = yes; then
22786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22787 then gcc_cv_as_powerpc_cmpb
=yes
22789 elif test x
$gcc_cv_as != x
; then
22790 echo "$conftest_s" > conftest.s
22791 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22793 (eval $ac_try) 2>&5
22795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22796 test $ac_status = 0; }; }
22798 gcc_cv_as_powerpc_cmpb
=yes
22800 echo "configure: failed program was" >&5
22803 rm -f conftest.o conftest.s
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
22807 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
22808 if test $gcc_cv_as_powerpc_cmpb = yes; then
22810 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
22815 *-*-aix*) conftest_s
=' .machine "pwr6"
22818 *) conftest_s
=' .machine power6
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
22824 $as_echo_n "checking assembler for decimal float support... " >&6; }
22825 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
22826 $as_echo_n "(cached) " >&6
22828 gcc_cv_as_powerpc_dfp
=no
22829 if test $in_tree_gas = yes; then
22830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22831 then gcc_cv_as_powerpc_dfp
=yes
22833 elif test x
$gcc_cv_as != x
; then
22834 echo "$conftest_s" > conftest.s
22835 if { ac_try
='$gcc_cv_as -a32 -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_powerpc_dfp
=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_powerpc_dfp" >&5
22851 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
22852 if test $gcc_cv_as_powerpc_dfp = yes; then
22854 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
22859 *-*-aix*) conftest_s
=' .machine "pwr7"
22862 *) conftest_s
=' .machine power7
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
22868 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
22869 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
22870 $as_echo_n "(cached) " >&6
22872 gcc_cv_as_powerpc_vsx
=no
22873 if test $in_tree_gas = yes; then
22874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22875 then gcc_cv_as_powerpc_vsx
=yes
22877 elif test x
$gcc_cv_as != x
; then
22878 echo "$conftest_s" > conftest.s
22879 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22881 (eval $ac_try) 2>&5
22883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22884 test $ac_status = 0; }; }
22886 gcc_cv_as_powerpc_vsx
=yes
22888 echo "configure: failed program was" >&5
22891 rm -f conftest.o conftest.s
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
22895 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
22896 if test $gcc_cv_as_powerpc_vsx = yes; then
22898 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
22903 *-*-aix*) conftest_s
=' .machine "pwr7"
22906 *) conftest_s
=' .machine power7
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
22912 $as_echo_n "checking assembler for popcntd support... " >&6; }
22913 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
22914 $as_echo_n "(cached) " >&6
22916 gcc_cv_as_powerpc_popcntd
=no
22917 if test $in_tree_gas = yes; then
22918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22919 then gcc_cv_as_powerpc_popcntd
=yes
22921 elif test x
$gcc_cv_as != x
; then
22922 echo "$conftest_s" > conftest.s
22923 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22925 (eval $ac_try) 2>&5
22927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22928 test $ac_status = 0; }; }
22930 gcc_cv_as_powerpc_popcntd
=yes
22932 echo "configure: failed program was" >&5
22935 rm -f conftest.o conftest.s
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
22939 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
22940 if test $gcc_cv_as_powerpc_popcntd = yes; then
22942 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
22947 *-*-aix*) conftest_s
=' .csect .text[PR]
22949 *) conftest_s
=' .text
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
22954 $as_echo_n "checking assembler for lwsync support... " >&6; }
22955 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
22956 $as_echo_n "(cached) " >&6
22958 gcc_cv_as_powerpc_lwsync
=no
22959 if test $in_tree_gas = yes; then
22960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22961 then gcc_cv_as_powerpc_lwsync
=yes
22963 elif test x
$gcc_cv_as != x
; then
22964 echo "$conftest_s" > conftest.s
22965 if { ac_try
='$gcc_cv_as -a32 -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_powerpc_lwsync
=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_powerpc_lwsync" >&5
22981 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
22982 if test $gcc_cv_as_powerpc_lwsync = yes; then
22984 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
22989 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
22990 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22993 gcc_cv_as_powerpc_gnu_attribute
=no
22994 if test $in_tree_gas = yes; then
22995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22996 then gcc_cv_as_powerpc_gnu_attribute
=yes
22998 elif test x
$gcc_cv_as != x
; then
22999 echo '.gnu_attribute 4,1' > conftest.s
23000 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23002 (eval $ac_try) 2>&5
23004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23005 test $ac_status = 0; }; }
23007 gcc_cv_as_powerpc_gnu_attribute
=yes
23009 echo "configure: failed program was" >&5
23012 rm -f conftest.o conftest.s
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23016 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23017 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23019 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23024 $as_echo_n "checking assembler for tls marker support... " >&6; }
23025 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23026 $as_echo_n "(cached) " >&6
23028 gcc_cv_as_powerpc_tls_markers
=no
23029 if test $in_tree_gas = yes; then
23030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23031 then gcc_cv_as_powerpc_tls_markers
=yes
23033 elif test x
$gcc_cv_as != x
; then
23034 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23035 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23037 (eval $ac_try) 2>&5
23039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23040 test $ac_status = 0; }; }
23042 gcc_cv_as_powerpc_tls_markers
=yes
23044 echo "configure: failed program was" >&5
23047 rm -f conftest.o conftest.s
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23051 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23052 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23054 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23061 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23062 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23063 $as_echo_n "(cached) " >&6
23065 gcc_cv_as_mips_explicit_relocs
=no
23066 if test $in_tree_gas = yes; then
23067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23068 then gcc_cv_as_mips_explicit_relocs
=yes
23070 elif test x
$gcc_cv_as != x
; then
23071 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23072 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23074 (eval $ac_try) 2>&5
23076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23077 test $ac_status = 0; }; }
23079 gcc_cv_as_mips_explicit_relocs
=yes
23081 echo "configure: failed program was" >&5
23084 rm -f conftest.o conftest.s
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23088 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23089 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23090 if test x
$target_cpu_default = x
23091 then target_cpu_default
=MASK_EXPLICIT_RELOCS
23092 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23096 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23097 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23098 $as_echo_n "(cached) " >&6
23100 gcc_cv_as_mips_no_shared
=no
23101 if test $in_tree_gas = yes; then
23102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23103 then gcc_cv_as_mips_no_shared
=yes
23105 elif test x
$gcc_cv_as != x
; then
23106 echo 'nop' > conftest.s
23107 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23109 (eval $ac_try) 2>&5
23111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23112 test $ac_status = 0; }; }
23114 gcc_cv_as_mips_no_shared
=yes
23116 echo "configure: failed program was" >&5
23119 rm -f conftest.o conftest.s
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23123 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23124 if test $gcc_cv_as_mips_no_shared = yes; then
23126 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23131 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23132 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23133 $as_echo_n "(cached) " >&6
23135 gcc_cv_as_mips_gnu_attribute
=no
23136 if test $in_tree_gas = yes; then
23137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23138 then gcc_cv_as_mips_gnu_attribute
=yes
23140 elif test x
$gcc_cv_as != x
; then
23141 echo '.gnu_attribute 4,1' > conftest.s
23142 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23144 (eval $ac_try) 2>&5
23146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147 test $ac_status = 0; }; }
23149 gcc_cv_as_mips_gnu_attribute
=yes
23151 echo "configure: failed program was" >&5
23154 rm -f conftest.o conftest.s
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23158 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23159 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23161 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23166 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23167 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23168 $as_echo_n "(cached) " >&6
23170 gcc_cv_as_mips_dtprelword
=no
23171 if test $in_tree_gas = yes; then
23172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23173 then gcc_cv_as_mips_dtprelword
=yes
23175 elif test x
$gcc_cv_as != x
; then
23176 echo '.section .tdata,"awT",@progbits
23180 .dtprelword x+0x8000' > conftest.s
23181 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23183 (eval $ac_try) 2>&5
23185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186 test $ac_status = 0; }; }
23188 gcc_cv_as_mips_dtprelword
=yes
23190 echo "configure: failed program was" >&5
23193 rm -f conftest.o conftest.s
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23197 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23198 if test $gcc_cv_as_mips_dtprelword = yes; then
23200 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23206 # Mips and HP-UX need the GNU assembler.
23207 # Linux on IA64 might be able to use the Intel assembler.
23210 mips
*-*-* |
*-*-hpux* )
23211 if test x
$gas_flag = xyes \
23212 ||
test x
"$host" != x
"$build" \
23213 ||
test ! -x "$gcc_cv_as" \
23214 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
23217 echo "*** This configuration requires the GNU assembler" >&2
23223 # ??? Not all targets support dwarf2 debug_line, even within a version
23224 # of gas. Moreover, we need to emit a valid instruction to trigger any
23225 # info to the output file. So, as supported targets are added to gas 2.11,
23226 # add some instruction here to (also) show we expect this might work.
23227 # ??? Once 2.11 is released, probably need to add first known working
23228 # version to the per-target configury.
23230 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
23231 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
23232 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
23233 | spu-
*-* | fido
*-*-* | m32c-
*-*)
23236 ia64
*-*-* | s390
*-*-*)
23243 if test x
"$insn" != x
; then
23245 .file 1 \"conftest.s\"
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23249 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23250 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23251 $as_echo_n "(cached) " >&6
23253 gcc_cv_as_dwarf2_debug_line
=no
23254 if test $in_tree_gas = yes; then
23255 if test $in_tree_gas_is_elf = yes \
23256 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23257 then gcc_cv_as_dwarf2_debug_line
=yes
23259 elif test x
$gcc_cv_as != x
; then
23260 echo "$conftest_s" > conftest.s
23261 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23263 (eval $ac_try) 2>&5
23265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23266 test $ac_status = 0; }; }
23268 if test x
$gcc_cv_objdump != x \
23269 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
23270 |
grep debug_line
> /dev
/null
2>&1; then
23271 gcc_cv_as_dwarf2_debug_line
=yes
23274 echo "configure: failed program was" >&5
23277 rm -f conftest.o conftest.s
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23281 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23284 # The .debug_line file table must be in the exact order that
23285 # we specified the files, since these indices are also used
23286 # by DW_AT_decl_file. Approximate this test by testing if
23287 # the assembler bitches if the same index is assigned twice.
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23289 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23290 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23291 $as_echo_n "(cached) " >&6
23293 gcc_cv_as_dwarf2_file_buggy
=no
23294 if test x
$gcc_cv_as != x
; then
23295 echo ' .file 1 "foo.s"
23296 .file 1 "bar.s"' > conftest.s
23297 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23299 (eval $ac_try) 2>&5
23301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23302 test $ac_status = 0; }; }
23304 gcc_cv_as_dwarf2_file_buggy
=yes
23306 echo "configure: failed program was" >&5
23309 rm -f conftest.o conftest.s
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23313 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
23316 if test $gcc_cv_as_dwarf2_debug_line = yes \
23317 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
23319 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
23324 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
23325 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
23326 $as_echo_n "(cached) " >&6
23328 gcc_cv_as_gdwarf2_flag
=no
23329 if test $in_tree_gas = yes; then
23330 if test $in_tree_gas_is_elf = yes \
23331 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23332 then gcc_cv_as_gdwarf2_flag
=yes
23334 elif test x
$gcc_cv_as != x
; then
23335 echo "$insn" > conftest.s
23336 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23338 (eval $ac_try) 2>&5
23340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23341 test $ac_status = 0; }; }
23343 gcc_cv_as_gdwarf2_flag
=yes
23345 echo "configure: failed program was" >&5
23348 rm -f conftest.o conftest.s
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
23352 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
23353 if test $gcc_cv_as_gdwarf2_flag = yes; then
23355 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
23360 $as_echo_n "checking assembler for --gstabs option... " >&6; }
23361 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
23362 $as_echo_n "(cached) " >&6
23364 gcc_cv_as_gstabs_flag
=no
23365 if test $in_tree_gas = yes; then
23366 if test $in_tree_gas_is_elf = yes \
23367 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23368 then gcc_cv_as_gstabs_flag
=yes
23370 elif test x
$gcc_cv_as != x
; then
23371 echo "$insn" > conftest.s
23372 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23374 (eval $ac_try) 2>&5
23376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23377 test $ac_status = 0; }; }
23379 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23380 # and warns about it, but still exits successfully. So check for
23382 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23384 (eval $ac_try) 2>&5
23386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23387 test $ac_status = 0; }; }
23389 else gcc_cv_as_gstabs_flag
=yes
23392 echo "configure: failed program was" >&5
23395 rm -f conftest.o conftest.s
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
23399 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
23400 if test $gcc_cv_as_gstabs_flag = yes; then
23402 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
23407 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
23408 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
23409 $as_echo_n "(cached) " >&6
23411 gcc_cv_as_debug_prefix_map_flag
=no
23412 if test $in_tree_gas = yes; then
23413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23414 then gcc_cv_as_debug_prefix_map_flag
=yes
23416 elif test x
$gcc_cv_as != x
; then
23417 echo "$insn" > conftest.s
23418 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23420 (eval $ac_try) 2>&5
23422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23423 test $ac_status = 0; }; }
23425 gcc_cv_as_debug_prefix_map_flag
=yes
23427 echo "configure: failed program was" >&5
23430 rm -f conftest.o conftest.s
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23434 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
23435 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23437 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
23443 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
23444 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
23445 $as_echo_n "(cached) " >&6
23447 gcc_cv_as_lcomm_with_alignment
=no
23448 if test x
$gcc_cv_as != x
; then
23449 echo '.lcomm bar,4,16' > conftest.s
23450 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23452 (eval $ac_try) 2>&5
23454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23455 test $ac_status = 0; }; }
23457 gcc_cv_as_lcomm_with_alignment
=yes
23459 echo "configure: failed program was" >&5
23462 rm -f conftest.o conftest.s
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
23466 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
23467 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23469 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
23473 # Check whether --enable-gnu-unique-object was given.
23474 if test "${enable_gnu_unique_object+set}" = set; then :
23475 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
23477 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
23478 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
23482 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
23483 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
23484 $as_echo_n "(cached) " >&6
23486 gcc_cv_as_gnu_unique_object
=no
23487 if test $in_tree_gas = yes; then
23488 if test $in_tree_gas_is_elf = yes \
23489 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23490 then gcc_cv_as_gnu_unique_object
=yes
23492 elif test x
$gcc_cv_as != x
; then
23493 echo '.type foo, @gnu_unique_object' > conftest.s
23494 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23496 (eval $ac_try) 2>&5
23498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499 test $ac_status = 0; }; }
23501 # Also check for ld.so support, i.e. glibc 2.11 or higher.
23502 if test x
$host = x
$build -a x
$host = x
$target &&
23503 glibcver
=`ldd --version 2>/dev/null`; then
23504 glibcmajor
=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
23505 glibcminor
=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
23506 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
23507 if test "$glibcnum" -ge 2011 ; then
23508 gcc_cv_as_gnu_unique_object
=yes
23512 echo "configure: failed program was" >&5
23515 rm -f conftest.o conftest.s
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
23519 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
23520 if test $gcc_cv_as_gnu_unique_object = yes; then
23521 enable_gnu_unique_object
=yes
23525 if test x
$enable_gnu_unique_object = xyes
; then
23527 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
23532 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
23533 if test "${gcc_cv_as_line_zero+set}" = set; then :
23534 $as_echo_n "(cached) " >&6
23536 gcc_cv_as_line_zero
=no
23537 if test $in_tree_gas = yes; then
23538 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23539 then gcc_cv_as_line_zero
=yes
23541 elif test "x$gcc_cv_as" != x
; then
23542 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23543 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23545 (eval $ac_try) 2>&5
23547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23548 test $ac_status = 0; }; } &&
23549 test "x`cat conftest.out`" = x
23551 gcc_cv_as_line_zero
=yes
23553 echo "configure: failed program was" >&5
23555 echo "configure: error output was" >&5
23556 cat conftest.out
>&5
23558 rm -f conftest.o conftest.s conftest.out
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
23562 $as_echo "$gcc_cv_as_line_zero" >&6; }
23563 if test "x$gcc_cv_as_line_zero" = xyes
; then
23565 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
23570 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
23571 gcc_cv_ld_eh_frame_hdr
=no
23572 if test $in_tree_ld = yes ; then
23573 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 \
23574 && test $in_tree_ld_is_elf = yes; then
23575 gcc_cv_ld_eh_frame_hdr
=yes
23577 elif test x
$gcc_cv_ld != x
; then
23578 # Check if linker supports --eh-frame-hdr option
23579 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
23580 gcc_cv_ld_eh_frame_hdr
=yes
23584 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
23586 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
23590 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
23593 $as_echo_n "checking linker position independent executable support... " >&6; }
23595 if test $in_tree_ld = yes ; then
23596 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 \
23597 && test $in_tree_ld_is_elf = yes; then
23600 elif test x
$gcc_cv_ld != x
; then
23601 # Check if linker supports -pie option
23602 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
23606 if test x
"$gcc_cv_ld_pie" = xyes
; then
23608 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
23612 $as_echo "$gcc_cv_ld_pie" >&6; }
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
23615 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
23616 gcc_cv_ld_eh_gc_sections
=no
23617 if test $in_tree_ld = yes ; then
23618 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 \
23619 && test $in_tree_ld_is_elf = yes; then
23620 gcc_cv_ld_eh_gc_sections
=yes
23622 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23623 cat > conftest.s
<<EOF
23626 .type _start, @function
23629 .size _start, .-_start
23630 .section .text.foo,"ax",@progbits
23631 .type foo, @function
23635 .section .gcc_except_table.foo,"a",@progbits
23638 .section .eh_frame,"a",@progbits
23641 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23642 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23643 |
grep "gc-sections option ignored" > /dev
/null
; then
23644 gcc_cv_ld_eh_gc_sections
=no
23645 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23646 gcc_cv_ld_eh_gc_sections
=yes
23647 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23648 if test x
$gcc_cv_as_comdat_group != xyes
; then
23649 gcc_cv_ld_eh_gc_sections
=no
23650 cat > conftest.s
<<EOF
23653 .type _start, @function
23656 .size _start, .-_start
23657 .section .gnu.linkonce.t.foo,"ax",@progbits
23658 .type foo, @function
23662 .section .gcc_except_table.foo,"a",@progbits
23665 .section .eh_frame,"a",@progbits
23668 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23669 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23670 |
grep "gc-sections option ignored" > /dev
/null
; then
23671 gcc_cv_ld_eh_gc_sections
=no
23672 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23673 gcc_cv_ld_eh_gc_sections
=yes
23679 rm -f conftest.s conftest.o conftest
23683 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23684 gcc_cv_ld_eh_gc_sections
=no
23687 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
23689 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
23693 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
23700 $as_echo_n "checking linker --as-needed support... " >&6; }
23701 if test "${gcc_cv_ld_as_needed+set}" = set; then :
23702 $as_echo_n "(cached) " >&6
23704 gcc_cv_ld_as_needed
=no
23705 if test $in_tree_ld = yes ; then
23706 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 \
23707 && test $in_tree_ld_is_elf = yes; then
23708 gcc_cv_ld_as_needed
=yes
23710 elif test x
$gcc_cv_ld != x
; then
23711 # Check if linker supports --as-needed and --no-as-needed options
23712 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
23713 gcc_cv_ld_as_needed
=yes
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
23719 $as_echo "$gcc_cv_ld_as_needed" >&6; }
23720 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
23722 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
23726 case "$target:$tm_file" in
23727 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
23729 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
23730 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
23731 $as_echo_n "(cached) " >&6
23733 gcc_cv_ld_no_dot_syms
=no
23734 if test $in_tree_ld = yes ; then
23735 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
23736 gcc_cv_ld_no_dot_syms
=yes
23738 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
23739 cat > conftest1.s
<<EOF
23743 cat > conftest2.s
<<EOF
23744 .section ".opd","aw"
23747 .type foo,@function
23749 .quad .LEfoo,.TOC.@tocbase,0
23755 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23756 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23757 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
23758 gcc_cv_ld_no_dot_syms
=yes
23760 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
23765 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
23766 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
23768 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
23775 $as_echo_n "checking linker --build-id support... " >&6; }
23776 if test "${gcc_cv_ld_buildid+set}" = set; then :
23777 $as_echo_n "(cached) " >&6
23779 gcc_cv_ld_buildid
=no
23780 if test $in_tree_ld = yes ; then
23781 if test "$gcc_cv_gld_major_version" -eq 2 -a \
23782 "$gcc_cv_gld_minor_version" -ge 18 -o \
23783 "$gcc_cv_gld_major_version" -gt 2 \
23784 && test $in_tree_ld_is_elf = yes; then
23785 gcc_cv_ld_buildid
=yes
23787 elif test x
$gcc_cv_ld != x
; then
23788 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
23789 gcc_cv_ld_buildid
=yes
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
23794 $as_echo "$gcc_cv_ld_buildid" >&6; }
23795 if test x
"$gcc_cv_ld_buildid" = xyes
; then
23797 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
23801 # Check whether --enable-linker-build-id was given.
23802 if test "${enable_linker_build_id+set}" = set; then :
23803 enableval
=$enable_linker_build_id;
23805 enable_linker_build_id
=no
23809 if test x
"$enable_linker_build_id" = xyes
; then
23810 if test x
"$gcc_cv_ld_buildid" = xyes
; then
23812 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
23816 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
23821 $as_echo_n "checking linker --sysroot support... " >&6; }
23822 if test "${gcc_cv_ld_sysroot+set}" = set; then :
23823 $as_echo_n "(cached) " >&6
23825 gcc_cv_ld_sysroot
=no
23826 if test $in_tree_ld = yes ; then
23827 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
23828 gcc_cv_ld_sysroot
=yes
23830 elif test x
$gcc_cv_ld != x
; then
23831 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
23832 gcc_cv_ld_sysroot
=yes
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
23837 $as_echo "$gcc_cv_ld_sysroot" >&6; }
23838 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
23840 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
23844 if test x
$with_sysroot = x
&& test x
$host = x
$target \
23845 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23846 && test "$prefix" != "NONE"; then
23848 cat >>confdefs.h
<<_ACEOF
23849 #define PREFIX_INCLUDE_DIR "$prefix/include"
23854 # Test for stack protector support in target C library.
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
23856 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
23857 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
23858 $as_echo_n "(cached) " >&6
23860 gcc_cv_libc_provides_ssp
=no
23862 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
23863 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
23864 if test "x$with_sysroot" = x
; then
23865 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
23866 elif test "x$with_build_sysroot" != "x"; then
23867 glibc_header_dir
="${with_build_sysroot}/usr/include"
23868 elif test "x$with_sysroot" = xyes
; then
23869 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23871 glibc_header_dir
="${with_sysroot}/usr/include"
23874 glibc_header_dir
=/usr
/include
23876 # glibc 2.4 and later provides __stack_chk_fail and
23877 # either __stack_chk_guard, or TLS access to stack guard canary.
23878 if test -f $glibc_header_dir/features.h \
23879 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23880 $glibc_header_dir/features.h
> /dev
/null
; then
23881 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23882 $glibc_header_dir/features.h
> /dev
/null
; then
23883 gcc_cv_libc_provides_ssp
=yes
23884 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23885 $glibc_header_dir/features.h
> /dev
/null \
23886 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23887 $glibc_header_dir/features.h
> /dev
/null
; then
23888 gcc_cv_libc_provides_ssp
=yes
23889 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23890 $glibc_header_dir/features.h
> /dev
/null
&& \
23891 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
23892 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23893 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
23894 gcc_cv_libc_provides_ssp
=yes
23899 # Avoid complicated tests (see
23900 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
23901 # simply assert that glibc does provide this, which is true for all
23902 # realistically usable GNU/Hurd configurations.
23903 gcc_cv_libc_provides_ssp
=yes;;
23905 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
23906 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
23907 gcc_cv_libc_provides_ssp
=yes
23909 echo "no __stack_chk_fail on this target"
23913 *) gcc_cv_libc_provides_ssp
=no
;;
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
23917 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
23919 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
23921 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
23925 # Check if TFmode long double should be used by default or not.
23926 # Some glibc targets used DFmode long double, but with glibc 2.4
23927 # and later they can use TFmode.
23929 powerpc
*-*-linux* | \
23930 powerpc
*-*-gnu* | \
23931 sparc
*-*-linux* | \
23935 # Check whether --with-long-double-128 was given.
23936 if test "${with_long_double_128+set}" = set; then :
23937 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
23939 gcc_cv_target_ldbl128
=no
23940 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
23941 if test "x$with_sysroot" = x
; then
23942 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
23943 elif test "x$with_build_sysroot" != "x"; then
23944 glibc_header_dir
="${with_build_sysroot}/usr/include"
23945 elif test "x$with_sysroot" = xyes
; then
23946 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23948 glibc_header_dir
="${with_sysroot}/usr/include"
23951 glibc_header_dir
=/usr
/include
23953 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23954 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
23955 && gcc_cv_target_ldbl128
=yes
23961 if test x
$gcc_cv_target_ldbl128 = xyes
; then
23963 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
23967 # Find out what GC implementation we want, or may, use.
23969 # Check whether --with-gc was given.
23970 if test "${with_gc+set}" = set; then :
23971 withval
=$with_gc; case "$withval" in
23978 $as_echo "#define GGC_ZONE 1" >>confdefs.h
23982 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
23990 echo "Using $GGC for garbage collection."
23992 # Libraries to use on the host. This will normally be set by the top
23993 # level Makefile. Here we simply capture the value for our Makefile.
23994 if test -z "${HOST_LIBS+set}"; then
23999 # Use the system's zlib library.
24001 zlibinc
="-I\$(srcdir)/../zlib"
24003 # Check whether --with-system-zlib was given.
24004 if test "${with_system_zlib+set}" = set; then :
24005 withval
=$with_system_zlib; zlibdir
=
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24015 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24016 # Check whether --enable-maintainer-mode was given.
24017 if test "${enable_maintainer_mode+set}" = set; then :
24018 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24025 $as_echo "$maintainer_mode" >&6; }
24027 if test "$maintainer_mode" = "yes"; then
24037 # Make empty files to contain the specs and options for each language.
24038 # Then add #include lines to for a compiler that has specs and/or options.
24044 # These (without "all_") are set in each config-lang.in.
24045 # `language' must be a single word so is spelled singularly.
24048 all_outputs
='Makefile gccbug'
24049 # List of language makefile fragments.
24050 all_lang_makefrags
=
24051 # List of language subdirectory makefiles. Deprecated.
24052 all_lang_makefiles
=
24053 # Additional files for gengtype
24054 all_gtfiles
="$target_gtfiles"
24056 # These are the languages that are set in --enable-languages,
24057 # and are available in the GCC tree.
24058 all_selected_languages
=
24060 # Add the language fragments.
24061 # Languages are added via two mechanisms. Some information must be
24062 # recorded in makefile variables, these are defined in config-lang.in.
24063 # We accumulate them and plug them into the main Makefile.
24064 # The other mechanism is a set of hooks for each of the main targets
24065 # like `clean', `install', etc.
24067 language_hooks
="Make-hooks"
24069 for lang
in ${srcdir}/*/config-lang.
in
24071 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24073 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24074 if test "x$lang_alias" = x
24076 echo "$lang doesn't set \$language." 1>&2
24079 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24080 subdirs
="$subdirs $subdir"
24082 # $gcc_subdir is where the gcc integration files are to be found
24083 # for a language, both for internal compiler purposes (compiler
24084 # sources implementing front-end to GCC tree converters), and for
24085 # build infrastructure purposes (Make-lang.in, etc.)
24087 # This will be <subdir> (relative to $srcdir) if a line like
24088 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24089 # is found in <langdir>/config-lang.in, and will remain <langdir>
24092 # Except for the language alias (fetched above), the regular
24093 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24094 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24095 # only this and the language alias.
24097 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24098 if [ "$gcc_subdir" = "" ]; then
24099 gcc_subdir
="$subdir"
24102 case ",$enable_languages," in
24104 all_selected_languages
="$all_selected_languages $lang_alias"
24105 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
24106 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24117 .
${srcdir}/$gcc_subdir/config-lang.
in
24118 if test "x$language" = x
24120 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24125 case ",$enable_languages," in
24126 *,$lang_alias,*) ;;
24128 for i
in $subdir_requires; do
24129 test -f "${srcdir}/$i/config-lang.in" && continue
24137 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24138 if test -f $srcdir/$gcc_subdir/lang.opt
; then
24139 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24141 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
24142 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24144 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
24145 then all_lang_makefiles
="$gcc_subdir/Makefile"
24147 all_languages
="$all_languages $language"
24148 all_compilers
="$all_compilers $compilers"
24149 all_outputs
="$all_outputs $outputs"
24150 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
24153 # Pick up gtfiles for c
24155 .
${srcdir}/c-config-lang.
in
24156 all_gtfiles
="$all_gtfiles [c] $gtfiles"
24159 for language
in $all_selected_languages
24161 check_languages
="$check_languages check-$language"
24164 # We link each language in with a set of hooks, reached indirectly via
24165 # lang.${target}. Only do so for selected languages.
24169 target_list
="all.cross start.encap rest.encap tags \
24170 install-common install-man install-info install-pdf dvi pdf \
24171 html uninstall info man srcextra srcman srcinfo \
24172 mostlyclean clean distclean maintainer-clean install-plugin"
24174 for t
in $target_list
24177 for lang
in $all_selected_languages
24181 echo "lang.$t: $x" >> Make-hooks
24190 echo "dir ." > .gdbinit
24191 echo "dir ${srcdir}" >> .gdbinit
24192 if test x
$gdb_needs_out_file_path = xyes
24194 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24196 if test "x$subdirs" != x
; then
24199 echo "dir ${srcdir}/$s" >> .gdbinit
24202 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24204 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24208 # Find a directory in which to install a shared libgcc.
24210 # Check whether --enable-version-specific-runtime-libs was given.
24211 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24212 enableval
=$enable_version_specific_runtime_libs;
24217 # Check whether --with-slibdir was given.
24218 if test "${with_slibdir+set}" = set; then :
24219 withval
=$with_slibdir; slibdir
="$with_slibdir"
24221 if test "${enable_version_specific_runtime_libs+set}" = set; then
24222 slibdir
='$(libsubdir)'
24223 elif test "$host" != "$target"; then
24224 slibdir
='$(build_tooldir)/lib'
24226 slibdir
='$(libdir)'
24232 # Substitute configuration variables
24295 if test x
${build} = x
${host} ; then
24296 if test x
${host} = x
${target} ; then
24297 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24299 echo "Links are now set up to build a cross-compiler" 1>&2
24300 echo " from ${host} to ${target}." 1>&2
24303 if test x
${host} = x
${target} ; then
24304 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24305 echo " for ${target}." 1>&2
24307 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24308 echo " from ${host} to ${target}." 1>&2
24315 case "${GMPLIBS}" in
24317 $as_echo "#define HAVE_mpc 1" >>confdefs.h
24326 if test "x${CLOOGLIBS}" != "x" ; then
24328 $as_echo "#define HAVE_cloog 1" >>confdefs.h
24332 # Check for plugin support
24333 # Check whether --enable-plugin was given.
24334 if test "${enable_plugin+set}" = set; then :
24335 enableval
=$enable_plugin; enable_plugin
=$enableval
24337 enable_plugin
=yes; default_plugin
=yes
24342 if test x
"$enable_plugin" = x
"yes"; then
24343 # Check that the host supports -rdynamic and -ldl
24346 saved_LDFLAGS
="$LDFLAGS"
24351 LDFLAGS
="$LDFLAGS -rdynamic"
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
24353 $as_echo_n "checking for -rdynamic... " >&6; }
24354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24355 /* end confdefs.h. */
24365 if ac_fn_c_try_link
"$LINENO"; then :
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24367 $as_echo "yes" >&6; }; have_rdynamic
=yes
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24370 $as_echo "no" >&6; }
24372 rm -f core conftest.err conftest.
$ac_objext \
24373 conftest
$ac_exeext conftest.
$ac_ext
24374 if test x
"$have_rdynamic" = x
"yes" ; then
24375 pluginlibs
="-rdynamic"
24379 LDFLAGS
="$LDFLAGS -ldl"
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldl" >&5
24381 $as_echo_n "checking for -ldl... " >&6; }
24382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24383 /* end confdefs.h. */
24388 volatile int f = 0; if (f) dlopen ("dummy", 0);
24393 if ac_fn_c_try_link
"$LINENO"; then :
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24395 $as_echo "yes" >&6; }; have_dl
=yes
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24398 $as_echo "no" >&6; }
24400 rm -f core conftest.err conftest.
$ac_objext \
24401 conftest
$ac_exeext conftest.
$ac_ext
24402 if test x
"$have_dl" = x
"yes"; then
24403 pluginlibs
="$pluginlibs -ldl"
24406 # Check that we can build shared objects with -fPIC -shared
24407 LDFLAGS
="$LDFLAGS -fPIC -shared"
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
24409 $as_echo_n "checking for -fPIC -shared... " >&6; }
24410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24411 /* end confdefs.h. */
24421 if ac_fn_c_try_link
"$LINENO"; then :
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24423 $as_echo "yes" >&6; }; have_pic_shared
=yes
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24426 $as_echo "no" >&6; }; have_pic_shared
=no
24428 rm -f core conftest.err conftest.
$ac_objext \
24429 conftest
$ac_exeext conftest.
$ac_ext
24430 if test x
"$have_pic_shared" != x
"yes"; then
24435 # If plugin support had been requested but not available, fail.
24436 if test x
"$enable_plugin" = x
"no" ; then
24437 if test x
"$default_plugin" != x
"yes"; then
24439 Building GCC with plugin support requires a host that supports
24440 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
24444 LDFLAGS
="$saved_LDFLAGS"
24450 if test x
"$enable_plugin" = x
"yes"; then
24452 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
24456 # Configure the subdirectories
24457 # AC_CONFIG_SUBDIRS($subdirs)
24459 # Create the Makefile
24460 # and configure language subdirectories
24461 ac_config_files
="$ac_config_files $all_outputs"
24464 ac_config_commands
="$ac_config_commands default"
24466 cat >confcache
<<\_ACEOF
24467 # This file is a shell script that caches the results of configure
24468 # tests run on this system so they can be shared between configure
24469 # scripts and configure runs, see configure's option --config-cache.
24470 # It is not useful on other systems. If it contains results you don't
24471 # want to keep, you may remove or edit it.
24473 # config.status only pays attention to the cache file if you give it
24474 # the --recheck option to rerun configure.
24476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24478 # following values.
24482 # The following way of writing the cache mishandles newlines in values,
24483 # but we know of no workaround that is simple, portable, and efficient.
24484 # So, we kill variables containing newlines.
24485 # Ultrix sh set writes to stderr and can't be redirected directly,
24486 # and sets the high bit in the cache file unless we assign to the vars.
24488 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24489 eval ac_val
=\$
$ac_var
24493 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24497 _ | IFS | as_nl
) ;; #(
24498 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24499 *) { eval $ac_var=; unset $ac_var;} ;;
24505 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24506 *${as_nl}ac_space
=\
*)
24507 # `set' does not quote correctly, so add quotes: double-quote
24508 # substitution turns \\\\ into \\, and sed turns \\ into \.
24511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24514 # `set' quotes correctly as required by POSIX, so do not add quotes.
24515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24526 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24528 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24529 if test -w "$cache_file"; then
24530 test "x$cache_file" != "x/dev/null" &&
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24532 $as_echo "$as_me: updating cache $cache_file" >&6;}
24533 cat confcache
>$cache_file
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24541 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24542 # Let make expand exec_prefix.
24543 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24545 DEFS
=-DHAVE_CONFIG_H
24549 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24550 # 1. Remove the extension, and $U if already installed.
24551 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24552 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24553 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24554 # will be set to the directory where LIBOBJS objects are built.
24555 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24556 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24558 LIBOBJS
=$ac_libobjs
24560 LTLIBOBJS
=$ac_ltlibobjs
24565 : ${CONFIG_STATUS=./config.status}
24567 ac_clean_files_save
=$ac_clean_files
24568 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24574 # Generated by $as_me.
24575 # Run this file to recreate the current configuration.
24576 # Compiler output produced by configure, useful for debugging
24577 # configure, is in config.log if it exists.
24580 ac_cs_recheck=false
24583 SHELL=\${CONFIG_SHELL-$SHELL}
24586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24587 ## -------------------- ##
24588 ## M4sh Initialization. ##
24589 ## -------------------- ##
24591 # Be more Bourne compatible
24592 DUALCASE
=1; export DUALCASE
# for MKS sh
24593 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24597 # is contrary to our usage. Disable this feature.
24598 alias -g '${1+"$@"}'='"$@"'
24599 setopt NO_GLOB_SUBST
24601 case `(set -o) 2>/dev/null` in #(
24613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24614 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24617 # Prefer a ksh shell builtin over an external printf program on Solaris,
24618 # but without wasting forks for bash or zsh.
24619 if test -z "$BASH_VERSION$ZSH_VERSION" \
24620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24621 as_echo='print
-r --'
24622 as_echo_n='print
-rn --'
24623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24624 as_echo='printf %s
\n'
24625 as_echo_n='printf %s
'
24627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24628 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24629 as_echo_n='/usr
/ucb
/echo -n'
24631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24632 as_echo_n_body='eval
24636 expr "X$arg" : "X\\(.*\\)$as_nl";
24637 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24639 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24641 export as_echo_n_body
24642 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24644 export as_echo_body
24645 as_echo='sh
-c $as_echo_body as_echo
'
24648 # The user is always right.
24649 if test "${PATH_SEPARATOR+set}" != set; then
24651 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24652 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24659 # We need space, tab and new line, in precisely that order. Quoting is
24660 # there to prevent editors from complaining about space-tab.
24661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24662 # splitting by setting IFS to empty value.)
24665 # Find who we are. Look in the path if we contain no directory separator.
24667 *[\\/]* ) as_myself=$0 ;;
24668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24669 for as_dir in $PATH
24672 test -z "$as_dir" && as_dir=.
24673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24679 # We did not find ourselves, most probably we were run as `sh COMMAND'
24680 # in which case we are not to be found in the path.
24681 if test "x$as_myself" = x
; then
24684 if test ! -f "$as_myself"; then
24685 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24689 # Unset variables that we do not need and which cause bugs (e.g. in
24690 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24691 # suppresses any "Segmentation fault" message there. '((' could
24692 # trigger a bug in pdksh 5.2.14.
24693 for as_var
in BASH_ENV ENV MAIL MAILPATH
24694 do eval test x\
${$as_var+set} = xset \
24695 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24708 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24711 # as_fn_error ERROR [LINENO LOG_FD]
24712 # ---------------------------------
24713 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24714 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24715 # script with status $?, using 1 if that was 0.
24718 as_status
=$?
; test $as_status -eq 0 && as_status
=1
24720 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24721 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24723 $as_echo "$as_me: error: $1" >&2
24724 as_fn_exit
$as_status
24728 # as_fn_set_status STATUS
24729 # -----------------------
24730 # Set $? to STATUS, without forking.
24731 as_fn_set_status
()
24734 } # as_fn_set_status
24736 # as_fn_exit STATUS
24737 # -----------------
24738 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24742 as_fn_set_status
$1
24748 # Portably unset VAR.
24751 { eval $1=; unset $1;}
24753 as_unset
=as_fn_unset
24754 # as_fn_append VAR VALUE
24755 # ----------------------
24756 # Append the text in VALUE to the end of the definition contained in VAR. Take
24757 # advantage of any shell optimizations that allow amortized linear growth over
24758 # repeated appends, instead of the typical quadratic growth present in naive
24760 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
24761 eval 'as_fn_append ()
24772 # as_fn_arith ARG...
24773 # ------------------
24774 # Perform arithmetic evaluation on the ARGs, and store the result in the
24775 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24776 # must be portable across $(()) and expr.
24777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
24778 eval 'as_fn_arith ()
24785 as_val
=`expr "$@" || test $? -eq 1`
24790 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24791 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24797 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24798 as_basename
=basename
24803 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24809 as_me
=`$as_basename -- "$0" ||
24810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24811 X"$0" : 'X\(//\)$' \| \
24812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24814 sed '/^.*\/\([^/][^/]*\)\/*$/{
24828 # Avoid depending upon Character Ranges.
24829 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24830 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24831 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24832 as_cr_digits
='0123456789'
24833 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24835 ECHO_C
= ECHO_N
= ECHO_T
=
24836 case `echo -n x` in #(((((
24838 case `echo 'xy\c'` in
24839 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24841 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
24848 rm -f conf$$ conf$$.exe conf$$.
file
24849 if test -d conf$$.dir
; then
24850 rm -f conf$$.dir
/conf$$.
file
24853 mkdir conf$$.dir
2>/dev
/null
24855 if (echo >conf$$.
file) 2>/dev
/null
; then
24856 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24858 # ... but there are two gotchas:
24859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24861 # In both cases, we have to default to `cp -p'.
24862 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24864 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24872 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24873 rmdir conf$$.dir
2>/dev
/null
24878 # Create "$as_dir" as a directory, including parents if necessary.
24883 -*) as_dir
=.
/$as_dir;;
24885 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
24889 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24890 *) as_qdir
=$as_dir;;
24892 as_dirs
="'$as_qdir' $as_dirs"
24893 as_dir
=`$as_dirname -- "$as_dir" ||
24894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24895 X"$as_dir" : 'X\(//\)[^/]' \| \
24896 X"$as_dir" : 'X\(//\)$' \| \
24897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24898 $as_echo X"$as_dir" |
24899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24903 /^X\(\/\/\)[^/].*/{
24916 test -d "$as_dir" && break
24918 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24919 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
24923 if mkdir
-p .
2>/dev
/null
; then
24924 as_mkdir_p
='mkdir -p "$as_dir"'
24926 test -d .
/-p && rmdir .
/-p
24930 if test -x / >/dev
/null
2>&1; then
24931 as_test_x
='test -x'
24933 if ls -dL / >/dev
/null
2>&1; then
24940 if test -d "$1"; then
24946 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24947 ???[sx]*):;;*)false;;esac;fi
24951 as_executable_p
=$as_test_x
24953 # Sed expression to map a string onto a valid CPP name.
24954 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24956 # Sed expression to map a string onto a valid variable name.
24957 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24961 ## ----------------------------------- ##
24962 ## Main body of $CONFIG_STATUS script. ##
24963 ## ----------------------------------- ##
24965 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
24967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24968 # Save the log message, to keep $0 and so on meaningful, and to
24969 # report actual input values of CONFIG_FILES etc. instead of their
24970 # values after options handling.
24972 This file was extended by $as_me, which was
24973 generated by GNU Autoconf 2.64. Invocation command line was
24975 CONFIG_FILES = $CONFIG_FILES
24976 CONFIG_HEADERS = $CONFIG_HEADERS
24977 CONFIG_LINKS = $CONFIG_LINKS
24978 CONFIG_COMMANDS = $CONFIG_COMMANDS
24981 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24986 case $ac_config_files in *"
24987 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
24990 case $ac_config_headers in *"
24991 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
24995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24996 # Files that config.status was made for.
24997 config_files="$ac_config_files"
24998 config_headers="$ac_config_headers"
24999 config_commands="$ac_config_commands"
25003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25005 \`$as_me' instantiates files and other configuration actions
25006 from templates according to the current configuration. Unless the files
25007 and actions are specified as TAGs, all are instantiated by default.
25009 Usage: $0 [OPTION]... [TAG]...
25011 -h, --help print this help, then exit
25012 -V, --version print version number and configuration settings, then exit
25013 -q, --quiet, --silent
25014 do not print progress messages
25015 -d, --debug don't remove temporary files
25016 --recheck update $as_me by reconfiguring in the same conditions
25017 --file=FILE[:TEMPLATE]
25018 instantiate the configuration file FILE
25019 --header=FILE[:TEMPLATE]
25020 instantiate the configuration header FILE
25022 Configuration files:
25025 Configuration headers:
25028 Configuration commands:
25031 Report bugs to the package provider."
25034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25037 configured by $0, generated by GNU Autoconf 2.64,
25038 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25040 Copyright (C) 2009 Free Software Foundation, Inc.
25041 This config.status script is free software; the Free Software Foundation
25042 gives unlimited permission to copy, distribute and modify it."
25047 test -n "\$AWK" || AWK=awk
25050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25051 # The default lists apply if the user does not specify any file.
25057 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25058 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25069 # Handling of the options.
25070 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25072 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25073 $as_echo "$ac_cs_version"; exit ;;
25074 --debug |
--debu |
--deb |
--de |
--d |
-d )
25076 --file |
--fil |
--fi |
--f )
25079 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25081 as_fn_append CONFIG_FILES
" '$ac_optarg'"
25082 ac_need_defaults
=false
;;
25083 --header |
--heade |
--head |
--hea )
25086 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25088 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
25089 ac_need_defaults
=false
;;
25091 # Conflict between --help and --header
25092 as_fn_error
"ambiguous option: \`$1'
25093 Try \`$0 --help' for more information.";;
25094 --help |
--hel |
-h )
25095 $as_echo "$ac_cs_usage"; exit ;;
25096 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25097 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25100 # This is an error.
25101 -*) as_fn_error
"unrecognized option: \`$1'
25102 Try \`$0 --help' for more information." ;;
25104 *) as_fn_append ac_config_targets
" $1"
25105 ac_need_defaults
=false
;;
25111 ac_configure_extra_args
=
25113 if $ac_cs_silent; then
25115 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25120 if \$ac_cs_recheck; then
25121 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25123 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25124 CONFIG_SHELL='$SHELL'
25125 export CONFIG_SHELL
25130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25134 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25135 ## Running $as_me. ##
25141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25151 # Handling of arguments.
25152 for ac_config_target
in $ac_config_targets
25154 case $ac_config_target in
25155 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
25156 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
25157 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25158 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
25159 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
25160 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25162 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25167 # If the user did not use the arguments to specify the items to instantiate,
25168 # then the envvar interface is used. Set only those that are not.
25169 # We use the long form for the default assignment because of an extremely
25170 # bizarre bug on SunOS 4.1.3.
25171 if $ac_need_defaults; then
25172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25177 # Have a temporary directory for convenience. Make it in the build tree
25178 # simply because there is no reason against having it here, and in addition,
25179 # creating and moving files from /tmp can sometimes cause problems.
25180 # Hook for its removal unless debugging.
25181 # Note that there is a small window in which the directory will not be cleaned:
25182 # after its creation but before its name has been assigned to `$tmp'.
25186 trap 'exit_status=$?
25187 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25189 trap 'as_fn_exit 1' 1 2 13 15
25191 # Create a (secure) tmp directory for tmp files.
25194 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25195 test -n "$tmp" && test -d "$tmp"
25198 tmp
=.
/conf$$
-$RANDOM
25199 (umask 077 && mkdir
"$tmp")
25200 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
25202 # Set up the scripts for CONFIG_FILES section.
25203 # No need to generate them if there are no CONFIG_FILES.
25204 # This happens for instance with `./config.status config.h'.
25205 if test -n "$CONFIG_FILES"; then
25207 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
25208 ac_cs_awk_getline
=:
25209 ac_cs_awk_pipe_init
=
25210 ac_cs_awk_read_file
='
25211 while ((getline aline < (F[key])) > 0)
25214 ac_cs_awk_pipe_fini
=
25216 ac_cs_awk_getline
=false
25217 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
25218 ac_cs_awk_read_file
='
25220 print "cat " F[key] " &&"
25221 '$ac_cs_awk_pipe_init
25222 # The final `:' finishes the AND list.
25223 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
25225 ac_cr
=`echo X | tr X '\015'`
25226 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25227 # But we know of no other shell where ac_cr would be empty at this
25228 # point, so we can use a bashism as a fallback.
25229 if test "x$ac_cr" = x
; then
25230 eval ac_cr
=\$
\'\\r
\'
25232 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25233 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25236 ac_cs_awk_cr
=$ac_cr
25239 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25242 # Create commands to substitute file output variables.
25244 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25245 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25246 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
25249 } >conf$
$files.sh
&&
25250 . .
/conf$
$files.sh ||
25251 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
25252 rm -f conf$
$files.sh
25255 echo "cat >conf$$subs.awk <<_ACEOF" &&
25256 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25258 } >conf$$subs.sh ||
25259 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25260 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25262 for ac_last_try in false false false false false :; do
25263 . ./conf$$subs.sh ||
25264 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25266 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
25267 if test $ac_delim_n = $ac_delim_num; then
25269 elif $ac_last_try; then
25270 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25272 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25275 rm -f conf$$subs.sh
25277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25278 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25282 s/^/S["/; s
/!.
*/"]=/
25292 s/\(.\{148\}\).*/\1/
25294 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25299 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25306 s/\(.\{148\}\).*/\1/
25308 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25312 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25317 ' <conf$$subs.awk | sed '
25322 ' >>$CONFIG_STATUS || ac_write_fail=1
25323 rm -f conf$$subs.awk
25324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25326 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25327 for (key in S) S_is_set[key] = 1
25329 \$ac_cs_awk_pipe_init
25333 nfields = split(line, field, "@
")
25335 len = length(field[1])
25336 for (i = 2; i < nfields; i++) {
25338 keylen = length(key)
25339 if (S_is_set[key]) {
25341 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25342 len += length(value) + length(field[++i])
25347 if (nfields == 3 && !substed) {
25349 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25350 \$ac_cs_awk_read_file
25356 \$ac_cs_awk_pipe_fini
25359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25360 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25361 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25364 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25365 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25368 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25369 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25370 # trailing colons and then remove the whole line if VPATH becomes empty
25371 # (actually we leave an empty line to preserve line numbers).
25372 if test "x
$srcdir" = x.; then
25373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25374 s/:*\$(srcdir):*/:/
25375 s/:*\${srcdir}:*/:/
25377 s/^\([^=]*=[ ]*\):*/\1/
25383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25384 fi # test -n "$CONFIG_FILES"
25386 # Set up the scripts for CONFIG_HEADERS section.
25387 # No need to generate them if there are no CONFIG_HEADERS.
25388 # This happens for instance with `./config.status Makefile'.
25389 if test -n "$CONFIG_HEADERS"; then
25390 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25394 # Transform confdefs.h into an awk script `defines.awk', embedded as
25395 # here-document in config.status, that substitutes the proper values into
25396 # config.h.in to produce config.h.
25398 # Create a delimiter string that does not exist in confdefs.h, to ease
25399 # handling of long lines.
25401 for ac_last_try in false false :; do
25402 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25403 if test -z "$ac_t"; then
25405 elif $ac_last_try; then
25406 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25408 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25412 # For the awk script, D is an array of macro values keyed by name,
25413 # likewise P contains macro parameters if any. Preserve backslash
25414 # newline sequences.
25416 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25418 s/.\{148\}/&'"$ac_delim"'/g
25421 s/^[ ]*#[ ]*define[ ][ ]*/ /
25428 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25430 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25434 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25435 D["\
1"]=" \
3\\\\\\n
"\\/p
25437 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25442 s/.\{148\}/&'"$ac_delim"'/g
25447 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25450 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25452 ' <confdefs.h | sed '
25453 s/'"$ac_delim"'/"\\\
25454 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25457 for (key in D) D_is_set[key] = 1
25460 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25462 split(line, arg, " ")
25463 if (arg[1] == "#") {
25467 defundef
= substr
(arg
[1], 2)
25470 split(mac1
, mac2
, "(") #)
25472 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25473 if (D_is_set
[macro
]) {
25474 # Preserve the white space surrounding the "#".
25475 print prefix
"define", macro P
[macro
] D
[macro
]
25478 # Replace #undef with comments. This is necessary, for example,
25479 # in the case of _POSIX_SOURCE, which is predefined and required
25480 # on some systems where configure will not decide to define it.
25481 if (defundef
== "undef") {
25482 print
"/*", prefix defundef
, macro
, "*/"
25490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25491 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25492 fi # test -n "$CONFIG_HEADERS"
25495 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25500 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25502 case $ac_mode$ac_tag in
25504 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25505 :[FH
]-) ac_tag
=-:-;;
25506 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25523 -) ac_f
="$tmp/stdin";;
25524 *) # Look for the file first in the build tree, then in the source tree
25525 # (if the path is not absolute). The absolute path cannot be DOS-style,
25526 # because $ac_f cannot contain `:'.
25530 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25532 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25534 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25535 as_fn_append ac_file_inputs
" '$ac_f'"
25538 # Let's still pretend it is `configure' which instantiates (i.e., don't
25539 # use $as_me), people would be surprised to read:
25540 # /* config.h. Generated by config.status. */
25541 configure_input
='Generated from '`
25542 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25544 if test x
"$ac_file" != x-
; then
25545 configure_input
="$ac_file. $configure_input"
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25547 $as_echo "$as_me: creating $ac_file" >&6;}
25549 # Neutralize special characters interpreted by sed in replacement strings.
25550 case $configure_input in #(
25551 *\
&* |
*\|
* |
*\\* )
25552 ac_sed_conf_input
=`$as_echo "$configure_input" |
25553 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25554 *) ac_sed_conf_input
=$configure_input;;
25558 *:-:* |
*:-) cat >"$tmp/stdin" \
25559 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25564 ac_dir
=`$as_dirname -- "$ac_file" ||
25565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25566 X"$ac_file" : 'X\(//\)[^/]' \| \
25567 X"$ac_file" : 'X\(//\)$' \| \
25568 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25569 $as_echo X"$ac_file" |
25570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25574 /^X\(\/\/\)[^/].*/{
25587 as_dir
="$ac_dir"; as_fn_mkdir_p
25591 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25593 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25594 # A ".." for each directory in $ac_dir_suffix.
25595 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25596 case $ac_top_builddir_sub in
25597 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25598 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25601 ac_abs_top_builddir
=$ac_pwd
25602 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25603 # for backward compatibility:
25604 ac_top_builddir
=$ac_top_build_prefix
25607 .
) # We are building in place.
25609 ac_top_srcdir
=$ac_top_builddir_sub
25610 ac_abs_top_srcdir
=$ac_pwd ;;
25611 [\\/]* | ?
:[\\/]* ) # Absolute name.
25612 ac_srcdir
=$srcdir$ac_dir_suffix;
25613 ac_top_srcdir
=$srcdir
25614 ac_abs_top_srcdir
=$srcdir ;;
25615 *) # Relative name.
25616 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25617 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25618 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25620 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25632 # If the template does not know about datarootdir, expand it.
25633 # FIXME: This hack should be removed a few years after 2.60.
25634 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25645 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25646 *datarootdir
*) ac_datarootdir_seen
=yes;;
25647 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25649 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25652 ac_datarootdir_hack='
25653 s&@datadir@&$datadir&g
25654 s&@docdir@&$docdir&g
25655 s&@infodir@&$infodir&g
25656 s&@localedir@&$localedir&g
25657 s&@mandir@&$mandir&g
25658 s&\\\${datarootdir}&$datarootdir&g' ;;
25662 # Neutralize VPATH when `$srcdir' = `.'.
25663 # Shell code in configure.ac might set extrasub.
25664 # FIXME: do we really want to maintain this feature?
25665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25666 ac_sed_extra="$ac_vpsub
25669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25671 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25672 s|@configure_input@|
$ac_sed_conf_input|
;t t
25673 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25674 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
25675 s
&@srcdir@
&$ac_srcdir&;t t
25676 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25677 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25678 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25679 s
&@builddir@
&$ac_builddir&;t t
25680 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25681 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25682 $ac_datarootdir_hack
25684 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25685 if $ac_cs_awk_getline; then
25686 $AWK -f "$tmp/subs.
awk"
25688 $AWK -f "$tmp/subs.
awk" | $SHELL
25690 || as_fn_error "could not create
$ac_file" "$LINENO" 5
25692 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25693 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25694 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25696 which seems to be undefined. Please make sure it is defined." >&5
25697 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25698 which seems to be undefined. Please make sure it is defined." >&2;}
25702 -) cat "$tmp/out" && rm -f "$tmp/out";;
25703 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25705 || as_fn_error "could not create $ac_file" "$LINENO" 5
25711 if test x"$ac_file" != x-; then
25713 $as_echo "/* $configure_input */" \
25714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25715 } >"$tmp/config.h" \
25716 || as_fn_error "could not create $ac_file" "$LINENO" 5
25717 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25719 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25722 mv "$tmp/config.h" "$ac_file" \
25723 || as_fn_error "could not create $ac_file" "$LINENO" 5
25726 $as_echo "/* $configure_input */" \
25727 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25728 || as_fn_error "could not create -" "$LINENO" 5
25732 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25733 $as_echo "$as_me: executing $ac_file commands" >&6;}
25738 case $ac_file$ac_mode in
25739 "as":F) chmod +x as ;;
25740 "collect-ld":F) chmod +x collect-ld ;;
25741 "nm":F) chmod +x nm ;;
25743 case ${CONFIG_HEADERS} in
25744 *auto-host.h:config.in*)
25747 # Make sure all the subdirs exist.
25748 for d in $subdirs doc build
25750 test -d $d || mkdir $d
25760 ac_clean_files=$ac_clean_files_save
25762 test $ac_write_fail = 0 ||
25763 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25766 # configure is writing to config.log, and then calls config.status.
25767 # config.status does its own redirection, appending to config.log.
25768 # Unfortunately, on DOS this fails, as config.log is still kept open
25769 # by configure, so config.status won't be able to
write to it
; its
25770 # output is simply discarded. So we exec the FD to /dev/null,
25771 # effectively closing config.log, so it can be properly (re)opened and
25772 # appended to by config.status. When coming back to configure, we
25773 # need to make the FD available again.
25774 if test "$no_create" != yes; then
25776 ac_config_status_args
=
25777 test "$silent" = yes &&
25778 ac_config_status_args
="$ac_config_status_args --quiet"
25780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25783 # would make configure fail if this is the last instruction.
25784 $ac_cs_success || as_fn_exit $?
25786 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25788 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}