2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 # maybe with a smaller string...
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 # Oops. We lost completely, so just stick with echo.
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686 ac_default_prefix=/usr/local
688 ac_config_libobj_dir=.
695 # Identity of this package.
703 ac_unique_file="tree.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
717 # ifdef HAVE_STDLIB_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
740 ac_subst_vars='LTLIBOBJS
789 TM_MULTILIB_EXCEPTIONS_CONFIG
798 build_xm_include_list
800 build_install_headers_dir
802 all_selected_languages
822 ORIGINAL_NM_FOR_TARGET
824 ORIGINAL_LD_FOR_TARGET
825 ORIGINAL_PLUGIN_LD_FOR_TARGET
827 ORIGINAL_AS_FOR_TARGET
900 CROSS_SYSTEM_HEADER_DIR
901 TARGET_SYSTEM_ROOT_DEFINE
907 ENABLE_BUILD_WITH_CXX
910 valgrind_path_defines
982 program_transform_name
993 ac_subst_files='language_hooks'
995 enable_option_checking
1000 enable_generated_files_in_srcdir
1003 with_demangler_in_ld
1006 enable_werror_always
1009 enable_gather_detailed_mem_stats
1010 enable_build_with_cxx
1014 enable_decimal_float
1029 with_libiconv_prefix
1030 enable_initfini_array
1031 enable_sjlj_exceptions
1032 with_system_libunwind
1035 enable_win32_registry
1041 enable_gnu_unique_object
1042 enable_linker_build_id
1043 with_long_double_128
1046 enable_maintainer_mode
1047 enable_version_specific_runtime_libs
1051 ac_precious_vars='build_alias
1074 # Initialize some variables set by options.
1076 ac_init_version=false
1077 ac_unrecognized_opts=
1078 ac_unrecognized_sep=
1079 # The variables have the same names as the options, with
1080 # dashes changed to underlines.
1081 cache_file=/dev/null
1088 program_transform_name=s,x,x,
1096 # Installation directory options.
1097 # These are left unexpanded so users can "make install exec_prefix=/foo"
1098 # and all the variables that are supposed to be based on exec_prefix
1099 # by default will actually change.
1100 # Use braces instead of parens because sh, perl, etc. also accept them.
1101 # (The list follows the same order as the GNU Coding Standards.)
1102 bindir='${exec_prefix}/bin'
1103 sbindir='${exec_prefix}/sbin'
1104 libexecdir='${exec_prefix}/libexec'
1105 datarootdir='${prefix}/share'
1106 datadir='${datarootdir}'
1107 sysconfdir='${prefix}/etc'
1108 sharedstatedir='${prefix}/com'
1109 localstatedir='${prefix}/var'
1110 includedir='${prefix}/include'
1111 oldincludedir='/usr/include'
1112 docdir='${datarootdir}/doc/${PACKAGE}'
1113 infodir='${datarootdir}/info'
1118 libdir='${exec_prefix}/lib'
1119 localedir='${datarootdir}/locale'
1120 mandir='${datarootdir}/man'
1126 # If the previous option needs an argument, assign it.
1127 if test -n "$ac_prev"; then
1128 eval $ac_prev=\$ac_option
1134 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1138 # Accept the important Cygnus configure options, so we can diagnose typos.
1140 case $ac_dashdash$ac_option in
1144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1147 bindir=$ac_optarg ;;
1149 -build | --build | --buil | --bui | --bu)
1150 ac_prev=build_alias ;;
1151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1152 build_alias=$ac_optarg ;;
1154 -cache-file | --cache-file | --cache-fil | --cache-fi \
1155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1156 ac_prev=cache_file ;;
1157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1159 cache_file=$ac_optarg ;;
1161 --config-cache | -C)
1162 cache_file=config.cache ;;
1164 -datadir | --datadir | --datadi | --datad)
1166 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1167 datadir=$ac_optarg ;;
1169 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1170 | --dataroo | --dataro | --datar)
1171 ac_prev=datarootdir ;;
1172 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1173 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1174 datarootdir=$ac_optarg ;;
1176 -disable-* | --disable-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid feature name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "enable_$ac_useropt"
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1190 eval enable_$ac_useropt=no ;;
1192 -docdir | --docdir | --docdi | --doc | --do)
1194 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1195 docdir=$ac_optarg ;;
1197 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1199 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1200 dvidir=$ac_optarg ;;
1202 -enable-* | --enable-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error "invalid feature name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1211 "enable_$ac_useropt"
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1216 eval enable_$ac_useropt=\$ac_optarg ;;
1218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1220 | --exec | --exe | --ex)
1221 ac_prev=exec_prefix ;;
1222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1224 | --exec=* | --exe=* | --ex=*)
1225 exec_prefix=$ac_optarg ;;
1227 -gas | --gas | --ga | --g)
1228 # Obsolete; use --with-gas.
1231 -help | --help | --hel | --he | -h)
1232 ac_init_help=long ;;
1233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1234 ac_init_help=recursive ;;
1235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1236 ac_init_help=short ;;
1238 -host | --host | --hos | --ho)
1239 ac_prev=host_alias ;;
1240 -host=* | --host=* | --hos=* | --ho=*)
1241 host_alias=$ac_optarg ;;
1243 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1245 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1247 htmldir=$ac_optarg ;;
1249 -includedir | --includedir | --includedi | --included | --include \
1250 | --includ | --inclu | --incl | --inc)
1251 ac_prev=includedir ;;
1252 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1253 | --includ=* | --inclu=* | --incl=* | --inc=*)
1254 includedir=$ac_optarg ;;
1256 -infodir | --infodir | --infodi | --infod | --info | --inf)
1258 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1259 infodir=$ac_optarg ;;
1261 -libdir | --libdir | --libdi | --libd)
1263 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1264 libdir=$ac_optarg ;;
1266 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1267 | --libexe | --libex | --libe)
1268 ac_prev=libexecdir ;;
1269 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1270 | --libexe=* | --libex=* | --libe=*)
1271 libexecdir=$ac_optarg ;;
1273 -localedir | --localedir | --localedi | --localed | --locale)
1274 ac_prev=localedir ;;
1275 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1276 localedir=$ac_optarg ;;
1278 -localstatedir | --localstatedir | --localstatedi | --localstated \
1279 | --localstate | --localstat | --localsta | --localst | --locals)
1280 ac_prev=localstatedir ;;
1281 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1282 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1283 localstatedir=$ac_optarg ;;
1285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1288 mandir=$ac_optarg ;;
1290 -nfp | --nfp | --nf)
1291 # Obsolete; use --without-fp.
1294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1295 | --no-cr | --no-c | -n)
1298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1304 | --oldin | --oldi | --old | --ol | --o)
1305 ac_prev=oldincludedir ;;
1306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1309 oldincludedir=$ac_optarg ;;
1311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1314 prefix=$ac_optarg ;;
1316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1317 | --program-pre | --program-pr | --program-p)
1318 ac_prev=program_prefix ;;
1319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1321 program_prefix=$ac_optarg ;;
1323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1324 | --program-suf | --program-su | --program-s)
1325 ac_prev=program_suffix ;;
1326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1328 program_suffix=$ac_optarg ;;
1330 -program-transform-name | --program-transform-name \
1331 | --program-transform-nam | --program-transform-na \
1332 | --program-transform-n | --program-transform- \
1333 | --program-transform | --program-transfor \
1334 | --program-transfo | --program-transf \
1335 | --program-trans | --program-tran \
1336 | --progr-tra | --program-tr | --program-t)
1337 ac_prev=program_transform_name ;;
1338 -program-transform-name=* | --program-transform-name=* \
1339 | --program-transform-nam=* | --program-transform-na=* \
1340 | --program-transform-n=* | --program-transform-=* \
1341 | --program-transform=* | --program-transfor=* \
1342 | --program-transfo=* | --program-transf=* \
1343 | --program-trans=* | --program-tran=* \
1344 | --progr-tra=* | --program-tr=* | --program-t=*)
1345 program_transform_name=$ac_optarg ;;
1347 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1349 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1350 pdfdir=$ac_optarg ;;
1352 -psdir | --psdir | --psdi | --psd | --ps)
1354 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1358 | -silent | --silent | --silen | --sile | --sil)
1361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1365 sbindir=$ac_optarg ;;
1367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1369 | --sharedst | --shareds | --shared | --share | --shar \
1371 ac_prev=sharedstatedir ;;
1372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1376 sharedstatedir=$ac_optarg ;;
1378 -site | --site | --sit)
1380 -site=* | --site=* | --sit=*)
1383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1386 srcdir=$ac_optarg ;;
1388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1389 | --syscon | --sysco | --sysc | --sys | --sy)
1390 ac_prev=sysconfdir ;;
1391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1393 sysconfdir=$ac_optarg ;;
1395 -target | --target | --targe | --targ | --tar | --ta | --t)
1396 ac_prev=target_alias ;;
1397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1398 target_alias=$ac_optarg ;;
1400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1403 -version | --version | --versio | --versi | --vers | -V)
1404 ac_init_version=: ;;
1407 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1408 # Reject names that are not valid shell variable names.
1409 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1410 as_fn_error "invalid package name: $ac_useropt"
1411 ac_useropt_orig=$ac_useropt
1412 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413 case $ac_user_opts in
1417 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418 ac_unrecognized_sep=', ';;
1420 eval with_$ac_useropt=\$ac_optarg ;;
1422 -without-* | --without-*)
1423 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1424 # Reject names that are not valid shell variable names.
1425 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1426 as_fn_error "invalid package name: $ac_useropt"
1427 ac_useropt_orig=$ac_useropt
1428 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1429 case $ac_user_opts in
1433 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1434 ac_unrecognized_sep=', ';;
1436 eval with_$ac_useropt=no ;;
1439 # Obsolete; use --with-x.
1442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1443 | --x-incl | --x-inc | --x-in | --x-i)
1444 ac_prev=x_includes ;;
1445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1447 x_includes=$ac_optarg ;;
1449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1451 ac_prev=x_libraries ;;
1452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1454 x_libraries=$ac_optarg ;;
1456 -*) as_fn_error "unrecognized option: \`$ac_option'
1457 Try \`$0 --help' for more information."
1461 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1462 # Reject names that are not valid shell variable names.
1463 case $ac_envvar in #(
1464 '' | [0-9]* | *[!_$as_cr_alnum]* )
1465 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1467 eval $ac_envvar=\$ac_optarg
1468 export $ac_envvar ;;
1471 # FIXME: should be removed in autoconf 3.0.
1472 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1473 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1474 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1475 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1481 if test -n "$ac_prev"; then
1482 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1483 as_fn_error "missing argument to $ac_option"
1486 if test -n "$ac_unrecognized_opts"; then
1487 case $enable_option_checking in
1489 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1490 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1494 # Check all directory arguments for consistency.
1495 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1496 datadir sysconfdir sharedstatedir localstatedir includedir \
1497 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1498 libdir localedir mandir
1500 eval ac_val=\$$ac_var
1501 # Remove trailing slashes.
1504 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1505 eval $ac_var=\$ac_val;;
1507 # Be sure to have absolute directory names.
1509 [\\/$]* | ?:[\\/]* ) continue;;
1510 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1512 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1515 # There might be people who depend on the old broken behavior: `$host'
1516 # used to hold the argument of --host etc.
1517 # FIXME: To remove some day.
1520 target=$target_alias
1522 # FIXME: To remove some day.
1523 if test "x$host_alias" != x; then
1524 if test "x$build_alias" = x; then
1525 cross_compiling=maybe
1526 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1527 If a cross compiler is detected then cross compile mode will be used." >&2
1528 elif test "x$build_alias" != "x$host_alias"; then
1534 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1536 test "$silent" = yes && exec 6>/dev/null
1539 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1540 ac_ls_di=`ls -di .` &&
1541 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1542 as_fn_error "working directory cannot be determined"
1543 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1544 as_fn_error "pwd does not report name of working directory"
1547 # Find the source files, if location was not specified.
1548 if test -z "$srcdir"; then
1549 ac_srcdir_defaulted=yes
1550 # Try the directory containing this script, then the parent directory.
1551 ac_confdir=`$as_dirname -- "$as_myself" ||
1552 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1553 X"$as_myself" : 'X\(//\)[^/]' \| \
1554 X"$as_myself" : 'X\(//\)$' \| \
1555 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1556 $as_echo X"$as_myself" |
1557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1575 if test ! -r "$srcdir/$ac_unique_file"; then
1579 ac_srcdir_defaulted=no
1581 if test ! -r "$srcdir/$ac_unique_file"; then
1582 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1583 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1585 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1587 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1589 # When building in place, set srcdir=.
1590 if test "$ac_abs_confdir" = "$ac_pwd"; then
1593 # Remove unnecessary trailing slashes from srcdir.
1594 # Double slashes in file names in object file debugging info
1595 # mess up M-x gdb in Emacs.
1597 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1599 for ac_var in $ac_precious_vars; do
1600 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1601 eval ac_env_${ac_var}_value=\$${ac_var}
1602 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1603 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1607 # Report the --help message.
1609 if test "$ac_init_help" = "long"; then
1610 # Omit some internal or obsolete options to make the list less imposing.
1611 # This message is too long to be a string in the A/UX 3.1 sh.
1613 \`configure' configures this package to adapt to many kinds of systems.
1615 Usage: $0 [OPTION]... [VAR=VALUE]...
1617 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1618 VAR=VALUE. See below for descriptions of some of the useful variables.
1620 Defaults for the options are specified in brackets.
1623 -h, --help display this help and exit
1624 --help=short display options specific to this package
1625 --help=recursive display the short help of all the included packages
1626 -V, --version display version information and exit
1627 -q, --quiet, --silent do not print \`checking...' messages
1628 --cache-file=FILE cache test results in FILE [disabled]
1629 -C, --config-cache alias for \`--cache-file=config.cache'
1630 -n, --no-create do not create output files
1631 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1633 Installation directories:
1634 --prefix=PREFIX install architecture-independent files in PREFIX
1635 [$ac_default_prefix]
1636 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1639 By default, \`make install' will install all the files in
1640 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1641 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1642 for instance \`--prefix=\$HOME'.
1644 For better control, use the options below.
1646 Fine tuning of the installation directories:
1647 --bindir=DIR user executables [EPREFIX/bin]
1648 --sbindir=DIR system admin executables [EPREFIX/sbin]
1649 --libexecdir=DIR program executables [EPREFIX/libexec]
1650 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1651 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1652 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1653 --libdir=DIR object code libraries [EPREFIX/lib]
1654 --includedir=DIR C header files [PREFIX/include]
1655 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1656 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1657 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1658 --infodir=DIR info documentation [DATAROOTDIR/info]
1659 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1660 --mandir=DIR man documentation [DATAROOTDIR/man]
1661 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1662 --htmldir=DIR html documentation [DOCDIR]
1663 --dvidir=DIR dvi documentation [DOCDIR]
1664 --pdfdir=DIR pdf documentation [DOCDIR]
1665 --psdir=DIR ps documentation [DOCDIR]
1671 --program-prefix=PREFIX prepend PREFIX to installed program names
1672 --program-suffix=SUFFIX append SUFFIX to installed program names
1673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1676 --build=BUILD configure for building on BUILD [guessed]
1677 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1678 --target=TARGET configure for building compilers for TARGET [HOST]
1682 if test -n "$ac_init_help"; then
1687 --disable-option-checking ignore unrecognized --enable/--with options
1688 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1689 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1690 --enable-generated-files-in-srcdir
1691 put copies of generated files in source dir
1692 intended for creating source tarballs for users
1693 without texinfo bison or flex.
1694 --enable-werror-always enable -Werror despite compiler version
1695 --enable-checking=LIST
1696 enable expensive run-time checks. With LIST,
1697 enable only specific categories of checks.
1698 Categories are: yes,no,all,none,release.
1699 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1700 rtlflag,rtl,runtime,tree,valgrind,types.
1701 --enable-coverage=LEVEL
1702 enable compiler's code coverage collection.
1703 Use to measure compiler performance and locate
1704 unused parts of the compiler. With LEVEL, specify
1705 optimization. Values are opt, noopt,
1707 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1708 --enable-build-with-cxx build with C++ compiler instead of C compiler
1709 --enable-multilib enable library support for multiple ABIs
1710 --enable-__cxa_atexit enable __cxa_atexit for C++
1711 --enable-decimal-float={no,yes,bid,dpd}
1712 enable decimal float extension to C. Selecting 'bid'
1713 or 'dpd' choses which decimal floating point format
1715 --enable-fixed-point enable fixed-point arithmetic extension to C
1716 --enable-threads enable thread usage for target GCC
1717 --enable-threads=LIB use LIB thread package for target GCC
1718 --enable-tls enable or disable generation of tls code
1719 overriding the assembler check for tls support
1720 --enable-objc-gc enable the use of Boehm's garbage collector with
1721 the GNU Objective-C runtime
1722 --disable-shared don't provide a shared libgcc
1723 --enable-intermodule build the compiler in one step
1724 --enable-languages=LIST specify which front-ends to build
1725 --disable-rpath do not hardcode runtime library paths
1726 --enable-initfini-array use .init_array/.fini_array sections
1727 --enable-sjlj-exceptions
1728 arrange to use setjmp/longjmp exception handling
1729 --enable-secureplt enable -msecure-plt by default for PowerPC
1730 --enable-cld enable -mcld by default for 32bit x86
1731 --disable-win32-registry
1732 disable lookup of installation paths in the
1733 Registry on Windows hosts
1734 --enable-win32-registry enable registry lookup (default)
1735 --enable-win32-registry=KEY
1736 use KEY instead of GCC version as the last portion
1738 --enable-shared[=PKGS] build shared libraries [default=yes]
1739 --enable-static[=PKGS] build static libraries [default=yes]
1740 --enable-fast-install[=PKGS]
1741 optimize for fast installation [default=yes]
1742 --disable-libtool-lock avoid locking (might break parallel builds)
1743 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1745 --enable-linker-build-id
1746 compiler will always pass --build-id to linker
1747 --enable-maintainer-mode
1748 enable make rules and dependencies not useful
1749 (and sometimes confusing) to the casual installer
1750 --enable-version-specific-runtime-libs
1751 specify that runtime libraries should be
1752 installed in a compiler-specific directory
1753 --enable-plugin enable plugin support
1756 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1757 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1758 --with-build-libsubdir=DIR Directory where to find libraries for build system
1759 --with-local-prefix=DIR specifies directory to put local include
1760 --with-gxx-include-dir=DIR
1761 specifies directory to put g++ header files
1762 --with-cpp-install-dir=DIR
1763 install the user visible C preprocessor in DIR
1764 (relative to PREFIX) as well as PREFIX/bin
1765 --with-gnu-ld arrange to work with GNU ld.
1766 --with-ld arrange to use the specified ld (full pathname)
1767 --with-demangler-in-ld try to use demangler in GNU ld.
1768 --with-gnu-as arrange to work with GNU as
1769 --with-as arrange to use the specified as (full pathname)
1770 --with-stabs arrange to use stabs instead of host debug format
1771 --with-dwarf2 force the default debug format to be DWARF 2
1772 --with-build-sysroot=sysroot
1773 use sysroot as the system root during the build
1774 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1775 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1776 --with-bugurl=URL Direct users to URL to report a bug
1777 --with-multilib-list Select multilibs (SH only)
1778 --with-gnu-ld assume the C compiler uses GNU ld default=no
1779 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1780 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1781 --with-system-libunwind use installed libunwind
1782 --with-pic try to use only PIC/non-PIC objects [default=use
1784 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1785 --with-plugin-ld=[ARG] specify the plugin linker
1786 --with-long-double-128 Use 128-bit long double by default.
1787 --with-gc={page,zone} choose the garbage collection mechanism to use
1789 --with-system-zlib use installed libz
1790 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1792 Some influential environment variables:
1793 CC C compiler command
1794 CFLAGS C compiler flags
1795 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1796 nonstandard directory <lib dir>
1797 LIBS libraries to pass to the linker, e.g. -l<library>
1798 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1799 you have headers in a nonstandard directory <include dir>
1800 CXX C++ compiler command
1801 CXXFLAGS C++ compiler flags
1803 CXXCPP C++ preprocessor
1804 GMPLIBS How to link GMP
1805 GMPINC How to find GMP include files
1806 PPLLIBS How to link PPL
1807 PPLINC How to find PPL include files
1808 CLOOGLIBS How to link CLOOG
1809 CLOOGINC How to find CLOOG include files
1810 LIBELFLIBS How to link libelf
1811 LIBELFINC How to find libelf include files
1813 Use these variables to override the choices made by `configure' or to help
1814 it to find libraries and programs with nonstandard names/locations.
1816 Report bugs to the package provider.
1821 if test "$ac_init_help" = "recursive"; then
1822 # If there are subdirs, report their specific --help.
1823 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1824 test -d "$ac_dir" ||
1825 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1832 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1833 # A ".." for each directory in $ac_dir_suffix.
1834 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1835 case $ac_top_builddir_sub in
1836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1840 ac_abs_top_builddir=$ac_pwd
1841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1842 # for backward compatibility:
1843 ac_top_builddir=$ac_top_build_prefix
1846 .) # We are building in place.
1848 ac_top_srcdir=$ac_top_builddir_sub
1849 ac_abs_top_srcdir=$ac_pwd ;;
1850 [\\/]* | ?:[\\/]* ) # Absolute name.
1851 ac_srcdir=$srcdir$ac_dir_suffix;
1852 ac_top_srcdir=$srcdir
1853 ac_abs_top_srcdir=$srcdir ;;
1855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1856 ac_top_srcdir=$ac_top_build_prefix$srcdir
1857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1861 cd "$ac_dir" || { ac_status=$?; continue; }
1862 # Check for guested configure.
1863 if test -f "$ac_srcdir/configure.gnu"; then
1865 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1866 elif test -f "$ac_srcdir/configure"; then
1868 $SHELL "$ac_srcdir/configure" --help=recursive
1870 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1872 cd "$ac_pwd" || { ac_status=$?; break; }
1876 test -n "$ac_init_help" && exit $ac_status
1877 if $ac_init_version; then
1880 generated by GNU Autoconf 2.64
1882 Copyright (C) 2009 Free Software Foundation, Inc.
1883 This configure script is free software; the Free Software Foundation
1884 gives unlimited permission to copy, distribute and modify it.
1889 ## ------------------------ ##
1890 ## Autoconf initialization. ##
1891 ## ------------------------ ##
1893 # ac_fn_c_try_compile LINENO
1894 # --------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_compile ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext
1900 if { { ac_try="$ac_compile"
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929 } # ac_fn_c_try_compile
1931 # ac_fn_cxx_try_compile LINENO
1932 # ----------------------------
1933 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_compile ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 rm -f conftest.$ac_objext
1938 if { { ac_try="$ac_compile"
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_compile") 2>conftest.err
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && {
1954 test -z "$ac_cxx_werror_flag" ||
1955 test ! -s conftest.err
1956 } && test -s conftest.$ac_objext; then :
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967 } # ac_fn_cxx_try_compile
1969 # ac_fn_c_try_cpp LINENO
1970 # ----------------------
1971 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if { { ac_try="$ac_cpp conftest.$ac_ext"
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } >/dev/null && {
1991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1992 test ! -s conftest.err
1996 $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2006 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2009 # the include files in INCLUDES and setting the cache variable VAR
2011 ac_fn_c_check_header_mongrel ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2024 # Is the header compilable?
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2026 $as_echo_n "checking $2 usability... " >&6; }
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_header_compiler=yes
2035 ac_header_compiler=no
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2039 $as_echo "$ac_header_compiler" >&6; }
2041 # Is the header present?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2043 $as_echo_n "checking $2 presence... " >&6; }
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2048 if ac_fn_c_try_cpp "$LINENO"; then :
2049 ac_header_preproc=yes
2051 ac_header_preproc=no
2053 rm -f conftest.err conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2055 $as_echo "$ac_header_preproc" >&6; }
2057 # So? What about this header?
2058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2061 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2067 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2069 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2071 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2073 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2083 eval "$3=\$ac_header_compiler"
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091 } # ac_fn_c_check_header_mongrel
2093 # ac_fn_c_try_run LINENO
2094 # ----------------------
2095 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2096 # that executables *can* be run.
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if { { ac_try="$ac_link"
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_link") 2>&5
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2111 { { case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117 (eval "$ac_try") 2>&5
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; }; }; then :
2123 $as_echo "$as_me: program exited with status $ac_status" >&5
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2127 ac_retval=$ac_status
2129 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2130 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2136 # -------------------------------------------------------
2137 # Tests whether HEADER exists and can be compiled using the include files in
2138 # INCLUDES, setting the cache variable VAR accordingly.
2139 ac_fn_c_check_header_compile ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143 $as_echo_n "checking for $2... " >&6; }
2144 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2145 $as_echo_n "(cached) " >&6
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2152 if ac_fn_c_try_compile "$LINENO"; then :
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2164 } # ac_fn_c_check_header_compile
2166 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2167 # --------------------------------------------
2168 # Tries to find the compile-time value of EXPR in a program that includes
2169 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2171 ac_fn_c_compute_int ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 if test "$cross_compiling" = yes; then
2175 # Depending upon the size, compute the lo and hi bounds.
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array [1 - 2 * !(($2) >= 0)];
2189 if ac_fn_c_try_compile "$LINENO"; then :
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2198 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_hi=$ac_mid; break
2208 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2209 if test $ac_lo -le $ac_mid; then
2213 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) < 0)];
2231 if ac_fn_c_try_compile "$LINENO"; then :
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248 ac_lo=$ac_mid; break
2250 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2251 if test $ac_mid -le $ac_hi; then
2255 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 # Binary search between lo and hi bounds.
2266 while test "x$ac_lo" != "x$ac_hi"; do
2267 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2274 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2281 if ac_fn_c_try_compile "$LINENO"; then :
2284 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2296 static long int longval () { return $2; }
2297 static unsigned long int ulongval () { return $2; }
2304 FILE *f = fopen ("conftest.val", "w");
2309 long int i = longval ();
2312 fprintf (f, "%ld", i);
2316 unsigned long int i = ulongval ();
2319 fprintf (f, "%lu", i);
2321 /* Do not output a trailing newline, as this causes \r\n confusion
2322 on some platforms. */
2323 return ferror (f) || fclose (f) != 0;
2329 if ac_fn_c_try_run "$LINENO"; then :
2330 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2335 conftest.$ac_objext conftest.beam conftest.$ac_ext
2339 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342 } # ac_fn_c_compute_int
2344 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2345 # -------------------------------------------
2346 # Tests whether TYPE exists after having included INCLUDES, setting cache
2347 # variable VAR accordingly.
2348 ac_fn_c_check_type ()
2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2352 $as_echo_n "checking for $2... " >&6; }
2353 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2354 $as_echo_n "(cached) " >&6
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2369 if ac_fn_c_try_compile "$LINENO"; then :
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2382 if ac_fn_c_try_compile "$LINENO"; then :
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2393 $as_echo "$ac_res" >&6; }
2394 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396 } # ac_fn_c_check_type
2398 # ac_fn_c_find_intX_t LINENO BITS VAR
2399 # -----------------------------------
2400 # Finds a signed integer type with width BITS, setting cache variable VAR
2402 ac_fn_c_find_intX_t ()
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2406 $as_echo_n "checking for int$2_t... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2411 for ac_type in int$2_t 'int' 'long int' \
2412 'long long int' 'short int' 'signed char'; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $ac_includes_default
2419 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $ac_includes_default
2433 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2434 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2441 if ac_fn_c_try_compile "$LINENO"; then :
2448 eval "$3=\$ac_type" ;;
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 if test "x$as_val" = x""no; then :
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 } # ac_fn_c_find_intX_t
2469 # ac_fn_c_try_link LINENO
2470 # -----------------------
2471 # Try to link conftest.$ac_ext, and return whether this succeeded.
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 rm -f conftest.$ac_objext conftest$ac_exeext
2476 if { { ac_try="$ac_link"
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482 $as_echo "$ac_try_echo"; } >&5
2483 (eval "$ac_link") 2>conftest.err
2485 if test -s conftest.err; then
2486 grep -v '^ *+' conftest.err >conftest.er1
2487 cat conftest.er1 >&5
2488 mv -f conftest.er1 conftest.err
2490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2491 test $ac_status = 0; } && {
2492 test -z "$ac_c_werror_flag" ||
2493 test ! -s conftest.err
2494 } && test -s conftest$ac_exeext && {
2495 test "$cross_compiling" = yes ||
2496 $as_test_x conftest$ac_exeext
2500 $as_echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2505 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2506 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2507 # interfere with the next link command; also delete a directory that is
2508 # left behind by Apple's compiler. We do this before executing the actions.
2509 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2513 } # ac_fn_c_try_link
2515 # ac_fn_c_find_uintX_t LINENO BITS VAR
2516 # ------------------------------------
2517 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2519 ac_fn_c_find_uintX_t ()
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2523 $as_echo_n "checking for uint$2_t... " >&6; }
2524 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525 $as_echo_n "(cached) " >&6
2528 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2529 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2532 $ac_includes_default
2536 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2543 if ac_fn_c_try_compile "$LINENO"; then :
2548 eval "$3=\$ac_type" ;;
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 if test "x$as_val" = x""no; then :
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565 } # ac_fn_c_find_uintX_t
2567 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2568 # ----------------------------------------------
2569 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2570 ac_fn_c_check_header_preproc ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2574 $as_echo_n "checking for $2... " >&6; }
2575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2582 if ac_fn_c_try_cpp "$LINENO"; then :
2587 rm -f conftest.err conftest.$ac_ext
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591 $as_echo "$ac_res" >&6; }
2592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2594 } # ac_fn_c_check_header_preproc
2596 # ac_fn_c_check_func LINENO FUNC VAR
2597 # ----------------------------------
2598 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2599 ac_fn_c_check_func ()
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2605 $as_echo_n "(cached) " >&6
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2611 #define $2 innocuous_$2
2613 /* System header to define __stub macros and hopefully few prototypes,
2614 which can conflict with char $2 (); below.
2615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2616 <limits.h> exists even on freestanding compilers. */
2619 # include <limits.h>
2621 # include <assert.h>
2626 /* Override any GCC internal prototype to avoid an error.
2627 Use char because int might match the return type of a GCC
2628 builtin and then its argument prototype would still apply. */
2633 /* The GNU C library defines this for functions which it implements
2634 to always fail with ENOSYS. Some functions are actually named
2635 something starting with __ and the normal name is an alias. */
2636 #if defined __stub_$2 || defined __stub___$2
2648 if ac_fn_c_try_link "$LINENO"; then :
2653 rm -f core conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2661 } # ac_fn_c_check_func
2663 # ac_fn_cxx_try_cpp LINENO
2664 # ------------------------
2665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2666 ac_fn_cxx_try_cpp ()
2668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669 if { { ac_try="$ac_cpp conftest.$ac_ext"
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2678 if test -s conftest.err; then
2679 grep -v '^ *+' conftest.err >conftest.er1
2680 cat conftest.er1 >&5
2681 mv -f conftest.er1 conftest.err
2683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684 test $ac_status = 0; } >/dev/null && {
2685 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2686 test ! -s conftest.err
2690 $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2698 } # ac_fn_cxx_try_cpp
2700 # ac_fn_cxx_try_link LINENO
2701 # -------------------------
2702 # Try to link conftest.$ac_ext, and return whether this succeeded.
2703 ac_fn_cxx_try_link ()
2705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { { ac_try="$ac_link"
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713 $as_echo "$ac_try_echo"; } >&5
2714 (eval "$ac_link") 2>conftest.err
2716 if test -s conftest.err; then
2717 grep -v '^ *+' conftest.err >conftest.er1
2718 cat conftest.er1 >&5
2719 mv -f conftest.er1 conftest.err
2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722 test $ac_status = 0; } && {
2723 test -z "$ac_cxx_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest$ac_exeext && {
2726 test "$cross_compiling" = yes ||
2727 $as_test_x conftest$ac_exeext
2731 $as_echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2738 # interfere with the next link command; also delete a directory that is
2739 # left behind by Apple's compiler. We do this before executing the actions.
2740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2744 } # ac_fn_cxx_try_link
2745 cat >config.log <<_ACEOF
2746 This file contains any messages produced by compilers while
2747 running configure, to aid debugging if configure makes a mistake.
2749 It was created by $as_me, which was
2750 generated by GNU Autoconf 2.64. Invocation command line was
2762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 $as_echo "PATH: $as_dir"
2802 # Keep a trace of the command line.
2803 # Strip out --no-create and --no-recursion so they do not pile up.
2804 # Strip out --silent because we don't want to record it for future runs.
2805 # Also quote any args containing shell meta-characters.
2806 # Make two passes to allow for proper duplicate-argument suppression.
2810 ac_must_keep_next=false
2816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2818 | -silent | --silent | --silen | --sile | --sil)
2821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2826 as_fn_append ac_configure_args1 " '$ac_arg'"
2827 if test $ac_must_keep_next = true; then
2828 ac_must_keep_next=false # Got value, back to normal.
2831 *=* | --config-cache | -C | -disable-* | --disable-* \
2832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2834 | -with-* | --with-* | -without-* | --without-* | --x)
2835 case "$ac_configure_args0 " in
2836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2839 -* ) ac_must_keep_next=true ;;
2842 as_fn_append ac_configure_args " '$ac_arg'"
2847 { ac_configure_args0=; unset ac_configure_args0;}
2848 { ac_configure_args1=; unset ac_configure_args1;}
2850 # When interrupted or exit'd, cleanup temporary files, and complete
2851 # config.log. We remove comments because anyway the quotes in there
2852 # would cause problems or look ugly.
2853 # WARNING: Use '\'' to represent an apostrophe within the trap.
2854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2855 trap 'exit_status=$?
2856 # Save into config.log some information that might help in debugging.
2861 ## ---------------- ##
2862 ## Cache variables. ##
2863 ## ---------------- ##
2866 # The following way of writing the cache mishandles newlines in values,
2868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2869 eval ac_val=\$$ac_var
2873 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2877 _ | IFS | as_nl) ;; #(
2878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2879 *) { eval $ac_var=; unset $ac_var;} ;;
2884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2885 *${as_nl}ac_space=\ *)
2887 "s/'\''/'\''\\\\'\'''\''/g;
2888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2899 ## ----------------- ##
2900 ## Output variables. ##
2901 ## ----------------- ##
2904 for ac_var in $ac_subst_vars
2906 eval ac_val=\$$ac_var
2908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2910 $as_echo "$ac_var='\''$ac_val'\''"
2914 if test -n "$ac_subst_files"; then
2916 ## ------------------- ##
2917 ## File substitutions. ##
2918 ## ------------------- ##
2921 for ac_var in $ac_subst_files
2923 eval ac_val=\$$ac_var
2925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2927 $as_echo "$ac_var='\''$ac_val'\''"
2932 if test -s confdefs.h; then
2942 test "$ac_signal" != 0 &&
2943 $as_echo "$as_me: caught signal $ac_signal"
2944 $as_echo "$as_me: exit $exit_status"
2946 rm -f core *.core core.conftest.* &&
2947 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2950 for ac_signal in 1 2 13 15; do
2951 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2955 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2956 rm -f -r conftest* confdefs.h
2958 $as_echo "/* confdefs.h */" > confdefs.h
2960 # Predefined preprocessor variables.
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_NAME "$PACKAGE_NAME"
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2970 cat >>confdefs.h <<_ACEOF
2971 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE_STRING "$PACKAGE_STRING"
2978 cat >>confdefs.h <<_ACEOF
2979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2982 cat >>confdefs.h <<_ACEOF
2983 #define PACKAGE_URL "$PACKAGE_URL"
2987 # Let the site file select an alternate cache file if it wants to.
2988 # Prefer an explicitly selected file to automatically selected ones.
2991 if test -n "$CONFIG_SITE"; then
2992 ac_site_file1=$CONFIG_SITE
2993 elif test "x$prefix" != xNONE; then
2994 ac_site_file1=$prefix/share/config.site
2995 ac_site_file2=$prefix/etc/config.site
2997 ac_site_file1=$ac_default_prefix/share/config.site
2998 ac_site_file2=$ac_default_prefix/etc/config.site
3000 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3002 test "x$ac_site_file" = xNONE && continue
3003 if test -r "$ac_site_file"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3005 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3006 sed 's/^/| /' "$ac_site_file" >&5
3011 if test -r "$cache_file"; then
3012 # Some versions of bash will fail to source /dev/null (special
3013 # files actually), so we avoid doing that.
3014 if test -f "$cache_file"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3016 $as_echo "$as_me: loading cache $cache_file" >&6;}
3018 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3019 *) . "./$cache_file";;
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3024 $as_echo "$as_me: creating cache $cache_file" >&6;}
3028 # Check that the precious variables saved in the cache have kept the same
3030 ac_cache_corrupted=false
3031 for ac_var in $ac_precious_vars; do
3032 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3033 eval ac_new_set=\$ac_env_${ac_var}_set
3034 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3035 eval ac_new_val=\$ac_env_${ac_var}_value
3036 case $ac_old_set,$ac_new_set in
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3039 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3040 ac_cache_corrupted=: ;;
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3043 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3044 ac_cache_corrupted=: ;;
3047 if test "x$ac_old_val" != "x$ac_new_val"; then
3048 # differences in whitespace do not lead to failure.
3049 ac_old_val_w=`echo x $ac_old_val`
3050 ac_new_val_w=`echo x $ac_new_val`
3051 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3053 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3054 ac_cache_corrupted=:
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3057 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3058 eval $ac_var=\$ac_old_val
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3061 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3063 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3066 # Pass precious variables to config.status.
3067 if test "$ac_new_set" = set; then
3069 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3070 *) ac_arg=$ac_var=$ac_new_val ;;
3072 case " $ac_configure_args " in
3073 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3074 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3078 if $ac_cache_corrupted; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3082 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3083 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3085 ## -------------------- ##
3086 ## Main body of script. ##
3087 ## -------------------- ##
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3103 gcc_version=`cat $srcdir/BASE-VER`
3105 # Determine the host, build, and target systems
3107 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3108 for ac_t in install-sh install.sh shtool; do
3109 if test -f "$ac_dir/$ac_t"; then
3111 ac_install_sh="$ac_aux_dir/$ac_t -c"
3116 if test -z "$ac_aux_dir"; then
3117 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3120 # These three variables are undocumented and unsupported,
3121 # and are intended to be withdrawn in a future Autoconf release.
3122 # They can cause serious problems if a builder's source tree is in a directory
3123 # whose full name contains unusual characters.
3124 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3125 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3126 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3129 # Make sure we can run config.sub.
3130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3131 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3134 $as_echo_n "checking build system type... " >&6; }
3135 if test "${ac_cv_build+set}" = set; then :
3136 $as_echo_n "(cached) " >&6
3138 ac_build_alias=$build_alias
3139 test "x$ac_build_alias" = x &&
3140 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3141 test "x$ac_build_alias" = x &&
3142 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3144 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3148 $as_echo "$ac_cv_build" >&6; }
3149 case $ac_cv_build in
3151 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3154 ac_save_IFS=$IFS; IFS='-'
3160 # Remember, the first character of IFS is used to create $*,
3161 # except with old shells:
3164 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3168 $as_echo_n "checking host system type... " >&6; }
3169 if test "${ac_cv_host+set}" = set; then :
3170 $as_echo_n "(cached) " >&6
3172 if test "x$host_alias" = x; then
3173 ac_cv_host=$ac_cv_build
3175 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3176 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3181 $as_echo "$ac_cv_host" >&6; }
3184 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3187 ac_save_IFS=$IFS; IFS='-'
3193 # Remember, the first character of IFS is used to create $*,
3194 # except with old shells:
3197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3201 $as_echo_n "checking target system type... " >&6; }
3202 if test "${ac_cv_target+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3205 if test "x$target_alias" = x; then
3206 ac_cv_target=$ac_cv_host
3208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3209 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3214 $as_echo "$ac_cv_target" >&6; }
3215 case $ac_cv_target in
3217 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3219 target=$ac_cv_target
3220 ac_save_IFS=$IFS; IFS='-'
3226 # Remember, the first character of IFS is used to create $*,
3227 # except with old shells:
3230 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3233 # The aliases save the names the user supplied, while $host etc.
3234 # will get canonicalized.
3235 test -n "$target_alias" &&
3236 test "$program_prefix$program_suffix$program_transform_name" = \
3238 program_prefix=${target_alias}-
3240 # Determine the noncanonical target name, for directory use.
3241 case ${build_alias} in
3242 "") build_noncanonical=${build} ;;
3243 *) build_noncanonical=${build_alias} ;;
3246 case ${host_alias} in
3247 "") host_noncanonical=${build_noncanonical} ;;
3248 *) host_noncanonical=${host_alias} ;;
3251 case ${target_alias} in
3252 "") target_noncanonical=${host_noncanonical} ;;
3253 *) target_noncanonical=${target_alias} ;;
3259 # Determine the target- and build-specific subdirectories
3261 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3262 # have matching libraries, they should use host libraries: Makefile.tpl
3263 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3264 # However, they still use the build modules, because the corresponding
3265 # host modules (e.g. bison) are only built for the host when bootstrap
3267 # - build_subdir is where we find build modules, and never changes.
3268 # - build_libsubdir is where we find build libraries, and can be overridden.
3270 # Prefix 'build-' so this never conflicts with target_subdir.
3271 build_subdir="build-${build_noncanonical}"
3273 # Check whether --with-build-libsubdir was given.
3274 if test "${with_build_libsubdir+set}" = set; then :
3275 withval=$with_build_libsubdir; build_libsubdir="$withval"
3277 build_libsubdir="$build_subdir"
3280 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3281 if ( test $srcdir = . && test -d gcc ) \
3282 || test -d $srcdir/../host-${host_noncanonical}; then
3283 host_subdir="host-${host_noncanonical}"
3288 target_subdir=${target_noncanonical}
3291 # Set program_transform_name
3292 test "$program_prefix" != NONE &&
3293 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3294 # Use a double $ so make ignores it.
3295 test "$program_suffix" != NONE &&
3296 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3297 # Double any \ or $.
3298 # By default was `s,x,x', remove it if useless.
3299 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3300 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3303 # Check for bogus environment variables.
3304 # Test if LIBRARY_PATH contains the notation for the current directory
3305 # since this would lead to problems installing/building glibc.
3306 # LIBRARY_PATH contains the current directory if one of the following
3308 # - one of the terminals (":" and ";") is the first or last sign
3309 # - two terminals occur directly after each other
3310 # - the path contains an element with a dot in it
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3312 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3313 case ${LIBRARY_PATH} in
3314 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3315 library_path_setting="contains current directory"
3318 library_path_setting="ok"
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3322 $as_echo "$library_path_setting" >&6; }
3323 if test "$library_path_setting" != "ok"; then
3325 *** LIBRARY_PATH shouldn't contain the current directory when
3326 *** building gcc. Please change the environment variable
3327 *** and run configure again." "$LINENO" 5
3330 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3331 # since this would lead to problems installing/building glibc.
3332 # GCC_EXEC_PREFIX contains the current directory if one of the following
3334 # - one of the terminals (":" and ";") is the first or last sign
3335 # - two terminals occur directly after each other
3336 # - the path contains an element with a dot in it
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3338 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3339 case ${GCC_EXEC_PREFIX} in
3340 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3341 gcc_exec_prefix_setting="contains current directory"
3344 gcc_exec_prefix_setting="ok"
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3348 $as_echo "$gcc_exec_prefix_setting" >&6; }
3349 if test "$gcc_exec_prefix_setting" != "ok"; then
3351 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3352 *** building gcc. Please change the environment variable
3353 *** and run configure again." "$LINENO" 5
3360 # Specify the local prefix
3363 # Check whether --with-local-prefix was given.
3364 if test "${with_local_prefix+set}" = set; then :
3365 withval=$with_local_prefix; case "${withval}" in
3366 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3368 *) local_prefix=$with_local_prefix ;;
3373 # Default local prefix if it is empty
3374 if test x$local_prefix = x; then
3375 local_prefix=/usr/local
3378 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3379 # passed in by the toplevel make and thus we'd get different behavior
3380 # depending on where we built the sources.
3381 gcc_gxx_include_dir=
3382 # Specify the g++ header file directory
3384 # Check whether --with-gxx-include-dir was given.
3385 if test "${with_gxx_include_dir+set}" = set; then :
3386 withval=$with_gxx_include_dir; case "${withval}" in
3387 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3389 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3394 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3395 if test x${gcc_gxx_include_dir} = x; then
3396 if test x${enable_version_specific_runtime_libs} = xyes; then
3397 gcc_gxx_include_dir='${libsubdir}/include/c++'
3399 libstdcxx_incdir='include/c++/$(version)'
3400 if test x$host != x$target; then
3401 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3403 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3408 # Check whether --with-cpp_install_dir was given.
3409 if test "${with_cpp_install_dir+set}" = set; then :
3410 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3411 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3412 elif test x$withval != xno; then
3413 cpp_install_dir=$withval
3418 # We would like to our source tree to be readonly. However when releases or
3419 # pre-releases are generated, the flex/bison generated files as well as the
3420 # various formats of manuals need to be included along with the rest of the
3421 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3425 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3426 # Check whether --enable-generated-files-in-srcdir was given.
3427 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3428 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3430 generated_files_in_srcdir=no
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3435 $as_echo "$generated_files_in_srcdir" >&6; }
3437 if test "$generated_files_in_srcdir" = "yes"; then
3444 # -------------------
3445 # Find default linker
3446 # -------------------
3450 # Check whether --with-gnu-ld was given.
3451 if test "${with_gnu_ld+set}" = set; then :
3452 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3458 # With pre-defined ld
3460 # Check whether --with-ld was given.
3461 if test "${with_ld+set}" = set; then :
3462 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3465 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3466 if test ! -x "$DEFAULT_LINKER"; then
3467 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3468 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3472 cat >>confdefs.h <<_ACEOF
3473 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3478 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3480 cat >>confdefs.h <<_ACEOF
3481 #define HAVE_GNU_LD $gnu_ld
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3486 $as_echo_n "checking whether a default linker was specified... " >&6; }
3487 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3488 if test x"$gnu_ld_flag" = x"no"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3490 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3493 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3500 # With demangler in GNU ld
3502 # Check whether --with-demangler-in-ld was given.
3503 if test "${with_demangler_in_ld+set}" = set; then :
3504 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3510 # ----------------------
3511 # Find default assembler
3512 # ----------------------
3516 # Check whether --with-gnu-as was given.
3517 if test "${with_gnu_as+set}" = set; then :
3518 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3525 # Check whether --with-as was given.
3526 if test "${with_as+set}" = set; then :
3527 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3530 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3531 if test ! -x "$DEFAULT_ASSEMBLER"; then
3532 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3533 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3537 cat >>confdefs.h <<_ACEOF
3538 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3543 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3545 cat >>confdefs.h <<_ACEOF
3546 #define HAVE_GNU_AS $gnu_as
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3551 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3552 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3553 if test x"$gas_flag" = x"no"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3555 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3558 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3569 # If a non-executable a.out is present (e.g. created by GNU as above even if
3570 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3571 # file, even when creating an executable, so an execution test fails.
3572 # Remove possible default executable files to avoid this.
3574 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3575 # Autoconf includes it.
3576 rm -f a.out a.exe b.out
3578 # Find the native compiler
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 if test -n "$ac_tool_prefix"; then
3585 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3586 set dummy ${ac_tool_prefix}gcc; 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.
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3623 if test -z "$ac_cv_prog_CC"; then
3625 # Extract the first word of "gcc", so it can be a program name with args.
3626 set dummy gcc; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3632 if test -n "$ac_ct_CC"; then
3633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_ac_ct_CC="gcc"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3653 if test -n "$ac_ct_CC"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3655 $as_echo "$ac_ct_CC" >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3661 if test "x$ac_ct_CC" = x; then
3664 case $cross_compiling:$ac_tool_warned in
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3668 ac_tool_warned=yes ;;
3676 if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}cc; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if test "${ac_cv_prog_CC+set}" = set; then :
3683 $as_echo_n "(cached) " >&6
3685 if test -n "$CC"; then
3686 ac_cv_prog_CC="$CC" # Let the user override the test.
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 ac_cv_prog_CC="${ac_tool_prefix}cc"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 if test -n "$CC"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708 $as_echo "$CC" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3717 if test -z "$CC"; then
3718 # Extract the first word of "cc", so it can be a program name with args.
3719 set dummy cc; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if test "${ac_cv_prog_CC+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3725 if test -n "$CC"; then
3726 ac_cv_prog_CC="$CC" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3737 ac_prog_rejected=yes
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 if test $ac_prog_rejected = yes; then
3749 # We found a bogon in the path, so make sure we never use it.
3750 set dummy $ac_cv_prog_CC
3752 if test $# != 0; then
3753 # We chose a different compiler from the bogus one.
3754 # However, it has the same basename, so the bogon will be chosen
3755 # first if we set CC to just the basename; use the full file name.
3757 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3773 if test -z "$CC"; then
3774 if test -n "$ac_tool_prefix"; then
3775 for ac_prog in cl.exe
3777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if test "${ac_cv_prog_CC+set}" = set; then :
3782 $as_echo_n "(cached) " >&6
3784 if test -n "$CC"; then
3785 ac_cv_prog_CC="$CC" # Let the user override the test.
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 if test -n "$CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807 $as_echo "$CC" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3814 test -n "$CC" && break
3817 if test -z "$CC"; then
3819 for ac_prog in cl.exe
3821 # Extract the first word of "$ac_prog", so it can be a program name with args.
3822 set dummy $ac_prog; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3828 if test -n "$ac_ct_CC"; then
3829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3838 ac_cv_prog_ac_ct_CC="$ac_prog"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3849 if test -n "$ac_ct_CC"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3851 $as_echo "$ac_ct_CC" >&6; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3858 test -n "$ac_ct_CC" && break
3861 if test "x$ac_ct_CC" = x; then
3864 case $cross_compiling:$ac_tool_warned in
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868 ac_tool_warned=yes ;;
3877 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error "no acceptable C compiler found in \$PATH
3880 See \`config.log' for more details." "$LINENO" 5; }
3882 # Provide some information about the compiler.
3883 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3886 for ac_option in --version -v -V -qversion; do
3887 { { ac_try="$ac_compiler $ac_option >&5"
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3896 if test -s conftest.err; then
3898 ... rest of stderr output deleted ...
3899 10q' conftest.err >conftest.er1
3900 cat conftest.er1 >&5
3901 rm -f conftest.er1 conftest.err
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3918 ac_clean_files_save=$ac_clean_files
3919 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3920 # Try to create an executable without -o first, disregard a.out.
3921 # It will help us diagnose broken compilers, and finding out an intuition
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3924 $as_echo_n "checking for C compiler default output file name... " >&6; }
3925 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3927 # The possible output files:
3928 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3931 for ac_file in $ac_files
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3935 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3940 if { { ac_try="$ac_link_default"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link_default") 2>&5
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }; then :
3951 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3952 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3953 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3954 # so that the user can short-circuit this test for compilers unknown to
3956 for ac_file in $ac_files ''
3958 test -f "$ac_file" || continue
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3963 # We found the default executable, but exeext='' is most
3967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3971 # We set ac_cv_exeext here because the later test for it is not
3972 # safe: cross compilers may not add the suffix if given an `-o'
3973 # argument, so we may need to know it at that point already.
3974 # Even if this section looks crufty: it has the advantage of
3981 test "$ac_cv_exeext" = no && ac_cv_exeext=
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987 $as_echo "$ac_file" >&6; }
3988 if test -z "$ac_file"; then :
3989 $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 { as_fn_set_status 77
3995 as_fn_error "C compiler cannot create executables
3996 See \`config.log' for more details." "$LINENO" 5; }; }
3998 ac_exeext=$ac_cv_exeext
4000 # Check that the compiler produces executables we can run. If not, either
4001 # the compiler is broken, or we cross compile.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4003 $as_echo_n "checking whether the C compiler works... " >&6; }
4004 # If not cross compiling, check that we can run a simple program.
4005 if test "$cross_compiling" != yes; then
4006 if { ac_try='./$ac_file'
4007 { { case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_try") 2>&5
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; }; then
4019 if test "$cross_compiling" = maybe; then
4022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error "cannot run C compiled programs.
4025 If you meant to cross compile, use \`--host'.
4026 See \`config.log' for more details." "$LINENO" 5; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4031 $as_echo "yes" >&6; }
4033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4034 ac_clean_files=$ac_clean_files_save
4035 # Check that the compiler produces executables we can run. If not, either
4036 # the compiler is broken, or we cross compile.
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4038 $as_echo_n "checking whether we are cross compiling... " >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4040 $as_echo "$cross_compiling" >&6; }
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4043 $as_echo_n "checking for suffix of executables... " >&6; }
4044 if { { ac_try="$ac_link"
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_link") 2>&5
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }; then :
4055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4057 # work properly (i.e., refer to `conftest.exe'), while it won't with
4059 for ac_file in conftest.exe conftest conftest.*; do
4060 test -f "$ac_file" || continue
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error "cannot compute suffix of executables: cannot compile and link
4072 See \`config.log' for more details." "$LINENO" 5; }
4074 rm -f conftest$ac_cv_exeext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4076 $as_echo "$ac_cv_exeext" >&6; }
4078 rm -f conftest.$ac_ext
4079 EXEEXT=$ac_cv_exeext
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4082 $as_echo_n "checking for suffix of object files... " >&6; }
4083 if test "${ac_cv_objext+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 rm -f conftest.o conftest.obj
4098 if { { ac_try="$ac_compile"
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_compile") 2>&5
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }; then :
4109 for ac_file in conftest.o conftest.obj conftest.*; do
4110 test -f "$ac_file" || continue;
4112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4113 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4118 $as_echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4123 as_fn_error "cannot compute suffix of object files: cannot compile
4124 See \`config.log' for more details." "$LINENO" 5; }
4126 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4129 $as_echo "$ac_cv_objext" >&6; }
4130 OBJEXT=$ac_cv_objext
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4133 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4134 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4151 if ac_fn_c_try_compile "$LINENO"; then :
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4161 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4162 if test $ac_compiler_gnu = yes; then
4167 ac_test_CFLAGS=${CFLAGS+set}
4168 ac_save_CFLAGS=$CFLAGS
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4170 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4171 if test "${ac_cv_prog_cc_g+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4174 ac_save_c_werror_flag=$ac_c_werror_flag
4175 ac_c_werror_flag=yes
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4189 if ac_fn_c_try_compile "$LINENO"; then :
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4204 if ac_fn_c_try_compile "$LINENO"; then :
4207 ac_c_werror_flag=$ac_save_c_werror_flag
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4220 if ac_fn_c_try_compile "$LINENO"; then :
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 ac_c_werror_flag=$ac_save_c_werror_flag
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4231 $as_echo "$ac_cv_prog_cc_g" >&6; }
4232 if test "$ac_test_CFLAGS" = set; then
4233 CFLAGS=$ac_save_CFLAGS
4234 elif test $ac_cv_prog_cc_g = yes; then
4235 if test "$GCC" = yes; then
4241 if test "$GCC" = yes; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4248 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4249 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4252 ac_cv_prog_cc_c89=no
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4258 #include <sys/types.h>
4259 #include <sys/stat.h>
4260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4261 struct buf { int x; };
4262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4263 static char *e (p, i)
4269 static char *f (char * (*g) (char **, int), char **p, ...)
4274 s = g (p, va_arg (v,int));
4279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4280 function prototypes and stuff, but not '\xHH' hex character constants.
4281 These don't provoke an error unfortunately, instead are silently treated
4282 as 'x'. The following induces an error, until -std is added to get
4283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4284 array size at least. It's necessary to write '\x00'==0 to get something
4285 that's true only with -std. */
4286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4289 inside strings and character constants. */
4291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4293 int test (int i, double x);
4294 struct s1 {int (*f) (int a);};
4295 struct s2 {int (*f) (double a);};
4296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4310 CC="$ac_save_CC $ac_arg"
4311 if ac_fn_c_try_compile "$LINENO"; then :
4312 ac_cv_prog_cc_c89=$ac_arg
4314 rm -f core conftest.err conftest.$ac_objext
4315 test "x$ac_cv_prog_cc_c89" != "xno" && break
4317 rm -f conftest.$ac_ext
4322 case "x$ac_cv_prog_cc_c89" in
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4325 $as_echo "none needed" >&6; } ;;
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328 $as_echo "unsupported" >&6; } ;;
4330 CC="$CC $ac_cv_prog_cc_c89"
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4334 if test "x$ac_cv_prog_cc_c89" != xno; then :
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 if test "x$CC" != xcc; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4346 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4349 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4351 set dummy $CC; ac_cc=`$as_echo "$2" |
4352 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4353 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4354 $as_echo_n "(cached) " >&6
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4367 # Make sure it works both with $CC and with simple cc.
4368 # We do the test twice because some compilers refuse to overwrite an
4369 # existing .o file with -o, though they will create one.
4370 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4372 if { { case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_try") 2>&5
4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381 test $ac_status = 0; } &&
4382 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_try") 2>&5
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; };
4393 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4394 if test "x$CC" != xcc; then
4395 # Test first that cc exists at all.
4396 if { ac_try='cc -c conftest.$ac_ext >&5'
4397 { { case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_try") 2>&5
4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; }; }; then
4407 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4409 if { { case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_try") 2>&5
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; } &&
4419 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_try") 2>&5
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; };
4433 # cc exists but doesn't like -o.
4434 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4439 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4441 rm -f core conftest*
4444 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4446 $as_echo "yes" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4451 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4455 # expand $ac_aux_dir to an absolute path
4456 am_aux_dir=`cd $ac_aux_dir && pwd`
4458 # FIXME: we rely on the cache variable name because
4459 # there is no other way.
4461 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4462 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4463 if test "$am_t" != yes; then
4464 # Losing compiler, so override with the script.
4465 # FIXME: It is wrong to rewrite CC.
4466 # But if we don't then we get into trouble of one sort or another.
4467 # A longer-term fix would be to have automake use am__CC in this case,
4468 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4469 CC="$am_aux_dir/compile $CC"
4474 ac_cpp='$CXXCPP $CPPFLAGS'
4475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4478 if test -z "$CXX"; then
4479 if test -n "$CCC"; then
4482 if test -n "$ac_tool_prefix"; then
4483 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if test "${ac_cv_prog_CXX+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4492 if test -n "$CXX"; then
4493 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 if test -n "$CXX"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4515 $as_echo "$CXX" >&6; }
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4522 test -n "$CXX" && break
4525 if test -z "$CXX"; then
4527 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4529 # Extract the first word of "$ac_prog", so it can be a program name with args.
4530 set dummy $ac_prog; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4536 if test -n "$ac_ct_CXX"; then
4537 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_ac_ct_CXX="$ac_prog"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4557 if test -n "$ac_ct_CXX"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4559 $as_echo "$ac_ct_CXX" >&6; }
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4566 test -n "$ac_ct_CXX" && break
4569 if test "x$ac_ct_CXX" = x; then
4572 case $cross_compiling:$ac_tool_warned in
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4576 ac_tool_warned=yes ;;
4584 # Provide some information about the compiler.
4585 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4588 for ac_option in --version -v -V -qversion; do
4589 { { ac_try="$ac_compiler $ac_option >&5"
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595 $as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4598 if test -s conftest.err; then
4600 ... rest of stderr output deleted ...
4601 10q' conftest.err >conftest.er1
4602 cat conftest.er1 >&5
4603 rm -f conftest.er1 conftest.err
4605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4606 test $ac_status = 0; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4610 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4611 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4628 if ac_fn_cxx_try_compile "$LINENO"; then :
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4638 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4639 if test $ac_compiler_gnu = yes; then
4644 ac_test_CXXFLAGS=${CXXFLAGS+set}
4645 ac_save_CXXFLAGS=$CXXFLAGS
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4647 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4648 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4651 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4652 ac_cxx_werror_flag=yes
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4666 if ac_fn_cxx_try_compile "$LINENO"; then :
4667 ac_cv_prog_cxx_g=yes
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4681 if ac_fn_cxx_try_compile "$LINENO"; then :
4684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4697 if ac_fn_cxx_try_compile "$LINENO"; then :
4698 ac_cv_prog_cxx_g=yes
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4708 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4709 if test "$ac_test_CXXFLAGS" = set; then
4710 CXXFLAGS=$ac_save_CXXFLAGS
4711 elif test $ac_cv_prog_cxx_g = yes; then
4712 if test "$GXX" = yes; then
4718 if test "$GXX" = yes; then
4725 ac_cpp='$CPP $CPPFLAGS'
4726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -n "$GNATBIND"; then
4742 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 GNATBIND=$ac_cv_prog_GNATBIND
4762 if test -n "$GNATBIND"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4764 $as_echo "$GNATBIND" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4772 if test -z "$ac_cv_prog_GNATBIND"; then
4773 ac_ct_GNATBIND=$GNATBIND
4774 # Extract the first word of "gnatbind", so it can be a program name with args.
4775 set dummy gnatbind; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4781 if test -n "$ac_ct_GNATBIND"; then
4782 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4802 if test -n "$ac_ct_GNATBIND"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4804 $as_echo "$ac_ct_GNATBIND" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4810 if test "x$ac_ct_GNATBIND" = x; then
4813 case $cross_compiling:$ac_tool_warned in
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4819 GNATBIND=$ac_ct_GNATBIND
4822 GNATBIND="$ac_cv_prog_GNATBIND"
4825 if test -n "$ac_tool_prefix"; then
4826 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 if test -n "$GNATMAKE"; then
4834 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 GNATMAKE=$ac_cv_prog_GNATMAKE
4854 if test -n "$GNATMAKE"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4856 $as_echo "$GNATMAKE" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4864 if test -z "$ac_cv_prog_GNATMAKE"; then
4865 ac_ct_GNATMAKE=$GNATMAKE
4866 # Extract the first word of "gnatmake", so it can be a program name with args.
4867 set dummy gnatmake; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4873 if test -n "$ac_ct_GNATMAKE"; then
4874 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4894 if test -n "$ac_ct_GNATMAKE"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4896 $as_echo "$ac_ct_GNATMAKE" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4902 if test "x$ac_ct_GNATMAKE" = x; then
4905 case $cross_compiling:$ac_tool_warned in
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4911 GNATMAKE=$ac_ct_GNATMAKE
4914 GNATMAKE="$ac_cv_prog_GNATMAKE"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4918 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4919 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 cat >conftest.adb <<EOF
4923 procedure conftest is begin null; end conftest;
4925 acx_cv_cc_gcc_supports_ada=no
4926 # There is a bug in old released versions of GCC which causes the
4927 # driver to exit successfully when the appropriate language module
4928 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4929 # Therefore we must check for the error message as well as an
4930 # unsuccessful exit.
4931 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4932 # given a .adb file, but produce no object file. So we must check
4933 # if an object file was really produced to guard against this.
4934 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4935 if test x"$errors" = x && test -f conftest.$ac_objext; then
4936 acx_cv_cc_gcc_supports_ada=yes
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4941 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4943 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4950 # autoconf is lame and doesn't give us any substitution variable for this.
4951 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4952 NO_MINUS_C_MINUS_O=yes
4954 OUTPUT_OPTION='-o $@'
4959 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4960 # optimizations to be activated explicitly by the toplevel.
4962 */prev-gcc/xgcc*) ;;
4963 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4967 # -------------------------
4968 # Check C compiler features
4969 # -------------------------
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4978 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4979 # On Suns, sometimes $CPP names a directory.
4980 if test -n "$CPP" && test -d "$CPP"; then
4983 if test -z "$CPP"; then
4984 if test "${ac_cv_prog_CPP+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4987 # Double quotes because CPP needs to be expanded
4988 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4991 for ac_c_preproc_warn_flag in '' yes
4993 # Use a header file that comes with gcc, so configuring glibc
4994 # with a fresh cross-compiler works.
4995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996 # <limits.h> exists even on freestanding compilers.
4997 # On the NeXT, cc -E runs the code through the compiler's parser,
4998 # not just through cpp. "Syntax error" is here to catch this case.
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5002 # include <limits.h>
5004 # include <assert.h>
5008 if ac_fn_c_try_cpp "$LINENO"; then :
5011 # Broken: fails on valid input.
5014 rm -f conftest.err conftest.$ac_ext
5016 # OK, works on sane cases. Now check whether nonexistent headers
5017 # can be detected and how.
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 #include <ac_nonexistent.h>
5022 if ac_fn_c_try_cpp "$LINENO"; then :
5023 # Broken: success on invalid input.
5026 # Passes both tests.
5030 rm -f conftest.err conftest.$ac_ext
5033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034 rm -f conftest.err conftest.$ac_ext
5035 if $ac_preproc_ok; then :
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5048 $as_echo "$CPP" >&6; }
5050 for ac_c_preproc_warn_flag in '' yes
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
5054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
5056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5061 # include <limits.h>
5063 # include <assert.h>
5067 if ac_fn_c_try_cpp "$LINENO"; then :
5070 # Broken: fails on valid input.
5073 rm -f conftest.err conftest.$ac_ext
5075 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how.
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 #include <ac_nonexistent.h>
5081 if ac_fn_c_try_cpp "$LINENO"; then :
5082 # Broken: success on invalid input.
5085 # Passes both tests.
5089 rm -f conftest.err conftest.$ac_ext
5092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5093 rm -f conftest.err conftest.$ac_ext
5094 if $ac_preproc_ok; then :
5097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5099 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5100 See \`config.log' for more details." "$LINENO" 5; }
5104 ac_cpp='$CPP $CPPFLAGS'
5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5111 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5112 if test "${ac_cv_path_GREP+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5115 if test -z "$GREP"; then
5116 ac_path_GREP_found=false
5117 # Loop through the user's path and test for each of PROGNAME-LIST
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5122 test -z "$as_dir" && as_dir=.
5123 for ac_prog in grep ggrep; do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5126 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5127 # Check for GNU ac_path_GREP and select it if it is found.
5128 # Check for GNU $ac_path_GREP
5129 case `"$ac_path_GREP" --version 2>&1` in
5131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5134 $as_echo_n 0123456789 >"conftest.in"
5137 cat "conftest.in" "conftest.in" >"conftest.tmp"
5138 mv "conftest.tmp" "conftest.in"
5139 cp "conftest.in" "conftest.nl"
5140 $as_echo 'GREP' >> "conftest.nl"
5141 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143 as_fn_arith $ac_count + 1 && ac_count=$as_val
5144 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5145 # Best one so far, save it but keep looking for a better one
5146 ac_cv_path_GREP="$ac_path_GREP"
5147 ac_path_GREP_max=$ac_count
5149 # 10*(2^10) chars as input seems more than enough
5150 test $ac_count -gt 10 && break
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5155 $ac_path_GREP_found && break 3
5160 if test -z "$ac_cv_path_GREP"; then
5161 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5164 ac_cv_path_GREP=$GREP
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5169 $as_echo "$ac_cv_path_GREP" >&6; }
5170 GREP="$ac_cv_path_GREP"
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5174 $as_echo_n "checking for egrep... " >&6; }
5175 if test "${ac_cv_path_EGREP+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5178 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5179 then ac_cv_path_EGREP="$GREP -E"
5181 if test -z "$EGREP"; then
5182 ac_path_EGREP_found=false
5183 # Loop through the user's path and test for each of PROGNAME-LIST
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5188 test -z "$as_dir" && as_dir=.
5189 for ac_prog in egrep; do
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5192 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5193 # Check for GNU ac_path_EGREP and select it if it is found.
5194 # Check for GNU $ac_path_EGREP
5195 case `"$ac_path_EGREP" --version 2>&1` in
5197 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5200 $as_echo_n 0123456789 >"conftest.in"
5203 cat "conftest.in" "conftest.in" >"conftest.tmp"
5204 mv "conftest.tmp" "conftest.in"
5205 cp "conftest.in" "conftest.nl"
5206 $as_echo 'EGREP' >> "conftest.nl"
5207 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5209 as_fn_arith $ac_count + 1 && ac_count=$as_val
5210 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5211 # Best one so far, save it but keep looking for a better one
5212 ac_cv_path_EGREP="$ac_path_EGREP"
5213 ac_path_EGREP_max=$ac_count
5215 # 10*(2^10) chars as input seems more than enough
5216 test $ac_count -gt 10 && break
5218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221 $ac_path_EGREP_found && break 3
5226 if test -z "$ac_cv_path_EGREP"; then
5227 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5230 ac_cv_path_EGREP=$EGREP
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5236 $as_echo "$ac_cv_path_EGREP" >&6; }
5237 EGREP="$ac_cv_path_EGREP"
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5241 $as_echo_n "checking for ANSI C header files... " >&6; }
5242 if test "${ac_cv_header_stdc+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5260 if ac_fn_c_try_compile "$LINENO"; then :
5261 ac_cv_header_stdc=yes
5263 ac_cv_header_stdc=no
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 if test $ac_cv_header_stdc = yes; then
5268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5275 $EGREP "memchr" >/dev/null 2>&1; then :
5278 ac_cv_header_stdc=no
5284 if test $ac_cv_header_stdc = yes; then
5285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "free" >/dev/null 2>&1; then :
5295 ac_cv_header_stdc=no
5301 if test $ac_cv_header_stdc = yes; then
5302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5303 if test "$cross_compiling" = yes; then :
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5310 #if ((' ' & 0x0FF) == 0x020)
5311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5314 # define ISLOWER(c) \
5315 (('a' <= (c) && (c) <= 'i') \
5316 || ('j' <= (c) && (c) <= 'r') \
5317 || ('s' <= (c) && (c) <= 'z'))
5318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5326 for (i = 0; i < 256; i++)
5327 if (XOR (islower (i), ISLOWER (i))
5328 || toupper (i) != TOUPPER (i))
5333 if ac_fn_c_try_run "$LINENO"; then :
5336 ac_cv_header_stdc=no
5338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5339 conftest.$ac_objext conftest.beam conftest.$ac_ext
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5345 $as_echo "$ac_cv_header_stdc" >&6; }
5346 if test $ac_cv_header_stdc = yes; then
5348 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5353 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5354 inttypes.h stdint.h unistd.h
5356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5357 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5359 eval as_val=\$$as_ac_Header
5360 if test "x$as_val" = x""yes; then :
5361 cat >>confdefs.h <<_ACEOF
5362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5371 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5372 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5379 if test "$MINIX" = yes; then
5381 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5384 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5387 $as_echo "#define _MINIX 1" >>confdefs.h
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5393 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5394 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5400 # define __EXTENSIONS__ 1
5401 $ac_includes_default
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411 ac_cv_safe_to_define___extensions__=yes
5413 ac_cv_safe_to_define___extensions__=no
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5418 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5419 test $ac_cv_safe_to_define___extensions__ = yes &&
5420 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5422 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5424 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5426 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5428 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5437 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5438 # On Suns, sometimes $CPP names a directory.
5439 if test -n "$CPP" && test -d "$CPP"; then
5442 if test -z "$CPP"; then
5443 if test "${ac_cv_prog_CPP+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5446 # Double quotes because CPP needs to be expanded
5447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5450 for ac_c_preproc_warn_flag in '' yes
5452 # Use a header file that comes with gcc, so configuring glibc
5453 # with a fresh cross-compiler works.
5454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5455 # <limits.h> exists even on freestanding compilers.
5456 # On the NeXT, cc -E runs the code through the compiler's parser,
5457 # not just through cpp. "Syntax error" is here to catch this case.
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5461 # include <limits.h>
5463 # include <assert.h>
5467 if ac_fn_c_try_cpp "$LINENO"; then :
5470 # Broken: fails on valid input.
5473 rm -f conftest.err conftest.$ac_ext
5475 # OK, works on sane cases. Now check whether nonexistent headers
5476 # can be detected and how.
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479 #include <ac_nonexistent.h>
5481 if ac_fn_c_try_cpp "$LINENO"; then :
5482 # Broken: success on invalid input.
5485 # Passes both tests.
5489 rm -f conftest.err conftest.$ac_ext
5492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493 rm -f conftest.err conftest.$ac_ext
5494 if $ac_preproc_ok; then :
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5507 $as_echo "$CPP" >&6; }
5509 for ac_c_preproc_warn_flag in '' yes
5511 # Use a header file that comes with gcc, so configuring glibc
5512 # with a fresh cross-compiler works.
5513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514 # <limits.h> exists even on freestanding compilers.
5515 # On the NeXT, cc -E runs the code through the compiler's parser,
5516 # not just through cpp. "Syntax error" is here to catch this case.
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5520 # include <limits.h>
5522 # include <assert.h>
5526 if ac_fn_c_try_cpp "$LINENO"; then :
5529 # Broken: fails on valid input.
5532 rm -f conftest.err conftest.$ac_ext
5534 # OK, works on sane cases. Now check whether nonexistent headers
5535 # can be detected and how.
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #include <ac_nonexistent.h>
5540 if ac_fn_c_try_cpp "$LINENO"; then :
5541 # Broken: success on invalid input.
5544 # Passes both tests.
5548 rm -f conftest.err conftest.$ac_ext
5551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5552 rm -f conftest.err conftest.$ac_ext
5553 if $ac_preproc_ok; then :
5556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5558 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5559 See \`config.log' for more details." "$LINENO" 5; }
5563 ac_cpp='$CPP $CPPFLAGS'
5564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5569 $as_echo_n "checking for inline... " >&6; }
5570 if test "${ac_cv_c_inline+set}" = set; then :
5571 $as_echo_n "(cached) " >&6
5574 for ac_kw in inline __inline__ __inline; do
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5579 static $ac_kw foo_t static_foo () {return 0; }
5580 $ac_kw foo_t foo () {return 0; }
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 ac_cv_c_inline=$ac_kw
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 test "$ac_cv_c_inline" != no && break
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5593 $as_echo "$ac_cv_c_inline" >&6; }
5595 case $ac_cv_c_inline in
5598 case $ac_cv_c_inline in
5600 *) ac_val=$ac_cv_c_inline;;
5602 cat >>confdefs.h <<_ACEOF
5604 #define inline $ac_val
5611 # sizeof(char) is 1 by definition.
5612 # The cast to long int works around a bug in the HP C Compiler
5613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5615 # This bug is HP SR number 8606223364.
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5617 $as_echo_n "checking size of void *... " >&6; }
5618 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5624 if test "$ac_cv_type_void_p" = yes; then
5625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5627 { as_fn_set_status 77
5628 as_fn_error "cannot compute sizeof (void *)
5629 See \`config.log' for more details." "$LINENO" 5; }; }
5631 ac_cv_sizeof_void_p=0
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5637 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5641 cat >>confdefs.h <<_ACEOF
5642 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5646 # The cast to long int works around a bug in the HP C Compiler
5647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5649 # This bug is HP SR number 8606223364.
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5651 $as_echo_n "checking size of short... " >&6; }
5652 if test "${ac_cv_sizeof_short+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5658 if test "$ac_cv_type_short" = yes; then
5659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5661 { as_fn_set_status 77
5662 as_fn_error "cannot compute sizeof (short)
5663 See \`config.log' for more details." "$LINENO" 5; }; }
5665 ac_cv_sizeof_short=0
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5671 $as_echo "$ac_cv_sizeof_short" >&6; }
5675 cat >>confdefs.h <<_ACEOF
5676 #define SIZEOF_SHORT $ac_cv_sizeof_short
5680 # The cast to long int works around a bug in the HP C Compiler
5681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5683 # This bug is HP SR number 8606223364.
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5685 $as_echo_n "checking size of int... " >&6; }
5686 if test "${ac_cv_sizeof_int+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5692 if test "$ac_cv_type_int" = yes; then
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 { as_fn_set_status 77
5696 as_fn_error "cannot compute sizeof (int)
5697 See \`config.log' for more details." "$LINENO" 5; }; }
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5705 $as_echo "$ac_cv_sizeof_int" >&6; }
5709 cat >>confdefs.h <<_ACEOF
5710 #define SIZEOF_INT $ac_cv_sizeof_int
5714 # The cast to long int works around a bug in the HP C Compiler
5715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5717 # This bug is HP SR number 8606223364.
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5719 $as_echo_n "checking size of long... " >&6; }
5720 if test "${ac_cv_sizeof_long+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5723 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5726 if test "$ac_cv_type_long" = yes; then
5727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5729 { as_fn_set_status 77
5730 as_fn_error "cannot compute sizeof (long)
5731 See \`config.log' for more details." "$LINENO" 5; }; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5739 $as_echo "$ac_cv_sizeof_long" >&6; }
5743 cat >>confdefs.h <<_ACEOF
5744 #define SIZEOF_LONG $ac_cv_sizeof_long
5748 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5749 if test "x$ac_cv_type_long_long" = x""yes; then :
5751 cat >>confdefs.h <<_ACEOF
5752 #define HAVE_LONG_LONG 1
5755 # The cast to long int works around a bug in the HP C Compiler
5756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5758 # This bug is HP SR number 8606223364.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5760 $as_echo_n "checking size of long long... " >&6; }
5761 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5764 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5767 if test "$ac_cv_type_long_long" = yes; then
5768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5770 { as_fn_set_status 77
5771 as_fn_error "cannot compute sizeof (long long)
5772 See \`config.log' for more details." "$LINENO" 5; }; }
5774 ac_cv_sizeof_long_long=0
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5780 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5784 cat >>confdefs.h <<_ACEOF
5785 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5791 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5792 if test "x$ac_cv_type___int64" = x""yes; then :
5794 cat >>confdefs.h <<_ACEOF
5795 #define HAVE___INT64 1
5798 # The cast to long int works around a bug in the HP C Compiler
5799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5801 # This bug is HP SR number 8606223364.
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5803 $as_echo_n "checking size of __int64... " >&6; }
5804 if test "${ac_cv_sizeof___int64+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5807 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5810 if test "$ac_cv_type___int64" = yes; then
5811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5813 { as_fn_set_status 77
5814 as_fn_error "cannot compute sizeof (__int64)
5815 See \`config.log' for more details." "$LINENO" 5; }; }
5817 ac_cv_sizeof___int64=0
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5823 $as_echo "$ac_cv_sizeof___int64" >&6; }
5827 cat >>confdefs.h <<_ACEOF
5828 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5834 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5835 case $ac_cv_c_int8_t in #(
5839 cat >>confdefs.h <<_ACEOF
5840 #define int8_t $ac_cv_c_int8_t
5845 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5846 case $ac_cv_c_int16_t in #(
5850 cat >>confdefs.h <<_ACEOF
5851 #define int16_t $ac_cv_c_int16_t
5856 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5857 case $ac_cv_c_int32_t in #(
5861 cat >>confdefs.h <<_ACEOF
5862 #define int32_t $ac_cv_c_int32_t
5867 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5868 case $ac_cv_c_int64_t in #(
5872 cat >>confdefs.h <<_ACEOF
5873 #define int64_t $ac_cv_c_int64_t
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5880 $as_echo_n "checking for long long int... " >&6; }
5881 if test "${ac_cv_type_long_long_int+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5887 /* For now, do not test the preprocessor; as of 2007 there are too many
5888 implementations with broken preprocessors. Perhaps this can
5889 be revisited in 2012. In the meantime, code should not expect
5890 #if to work with literals wider than 32 bits. */
5891 /* Test literals. */
5892 long long int ll = 9223372036854775807ll;
5893 long long int nll = -9223372036854775807LL;
5894 unsigned long long int ull = 18446744073709551615ULL;
5895 /* Test constant expressions. */
5896 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5898 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5904 /* Test availability of runtime routines for shift and division. */
5905 long long int llmax = 9223372036854775807ll;
5906 unsigned long long int ullmax = 18446744073709551615ull;
5907 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5908 | (llmax / ll) | (llmax % ll)
5909 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5910 | (ullmax / ull) | (ullmax % ull));
5916 if ac_fn_c_try_link "$LINENO"; then :
5917 if test "$cross_compiling" = yes; then :
5918 ac_cv_type_long_long_int=yes
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5925 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5926 # define LLONG_MAX (HALF - 1 + HALF)
5931 long long int n = 1;
5935 long long int m = n << i;
5938 if (LLONG_MAX / 2 < m)
5946 if ac_fn_c_try_run "$LINENO"; then :
5947 ac_cv_type_long_long_int=yes
5949 ac_cv_type_long_long_int=no
5951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5952 conftest.$ac_objext conftest.beam conftest.$ac_ext
5956 ac_cv_type_long_long_int=no
5958 rm -f core conftest.err conftest.$ac_objext \
5959 conftest$ac_exeext conftest.$ac_ext
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5962 $as_echo "$ac_cv_type_long_long_int" >&6; }
5963 if test $ac_cv_type_long_long_int = yes; then
5965 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5971 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5972 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5974 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5977 test $ac_cv_type_long_long_int = yes \
5978 && ac_type='long long int' \
5979 || ac_type='long int'
5981 cat >>confdefs.h <<_ACEOF
5982 #define intmax_t $ac_type
5989 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5990 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5992 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5995 for ac_type in 'int' 'long int' 'long long int'; do
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998 $ac_includes_default
6002 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6009 if ac_fn_c_try_compile "$LINENO"; then :
6011 cat >>confdefs.h <<_ACEOF
6012 #define intptr_t $ac_type
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 test -z "$ac_type" && break
6023 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6024 case $ac_cv_c_uint8_t in #(
6028 $as_echo "#define _UINT8_T 1" >>confdefs.h
6031 cat >>confdefs.h <<_ACEOF
6032 #define uint8_t $ac_cv_c_uint8_t
6037 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6038 case $ac_cv_c_uint16_t in #(
6043 cat >>confdefs.h <<_ACEOF
6044 #define uint16_t $ac_cv_c_uint16_t
6049 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6050 case $ac_cv_c_uint32_t in #(
6054 $as_echo "#define _UINT32_T 1" >>confdefs.h
6057 cat >>confdefs.h <<_ACEOF
6058 #define uint32_t $ac_cv_c_uint32_t
6063 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6064 case $ac_cv_c_uint64_t in #(
6068 $as_echo "#define _UINT64_T 1" >>confdefs.h
6071 cat >>confdefs.h <<_ACEOF
6072 #define uint64_t $ac_cv_c_uint64_t
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6079 $as_echo_n "checking for unsigned long long int... " >&6; }
6080 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6086 /* For now, do not test the preprocessor; as of 2007 there are too many
6087 implementations with broken preprocessors. Perhaps this can
6088 be revisited in 2012. In the meantime, code should not expect
6089 #if to work with literals wider than 32 bits. */
6090 /* Test literals. */
6091 long long int ll = 9223372036854775807ll;
6092 long long int nll = -9223372036854775807LL;
6093 unsigned long long int ull = 18446744073709551615ULL;
6094 /* Test constant expressions. */
6095 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6097 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6103 /* Test availability of runtime routines for shift and division. */
6104 long long int llmax = 9223372036854775807ll;
6105 unsigned long long int ullmax = 18446744073709551615ull;
6106 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6107 | (llmax / ll) | (llmax % ll)
6108 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6109 | (ullmax / ull) | (ullmax % ull));
6115 if ac_fn_c_try_link "$LINENO"; then :
6116 ac_cv_type_unsigned_long_long_int=yes
6118 ac_cv_type_unsigned_long_long_int=no
6120 rm -f core conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6124 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6125 if test $ac_cv_type_unsigned_long_long_int = yes; then
6127 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6133 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6134 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6136 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6139 test $ac_cv_type_unsigned_long_long_int = yes \
6140 && ac_type='unsigned long long int' \
6141 || ac_type='unsigned long int'
6143 cat >>confdefs.h <<_ACEOF
6144 #define uintmax_t $ac_type
6151 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6152 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6154 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6157 for ac_type in 'unsigned int' 'unsigned long int' \
6158 'unsigned long long int'; do
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6161 $ac_includes_default
6165 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6172 if ac_fn_c_try_compile "$LINENO"; then :
6174 cat >>confdefs.h <<_ACEOF
6175 #define uintptr_t $ac_type
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181 test -z "$ac_type" && break
6199 # ---------------------
6200 # Warnings and checking
6201 # ---------------------
6203 # Check $CC warning features (if it's GCC).
6204 # We want to use -pedantic, but we don't want warnings about
6207 # * overlong strings
6208 # So, we only use -pedantic if we can disable those warnings.
6211 save_CFLAGS="$CFLAGS"
6212 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6213 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6216 $as_echo_n "checking whether $CC supports $option... " >&6; }
6217 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6218 $as_echo_n "(cached) " >&6
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233 eval "$as_acx_Woption=yes"
6235 eval "$as_acx_Woption=no"
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 eval ac_res=\$$as_acx_Woption
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6242 $as_echo "$ac_res" >&6; }
6243 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6244 loose_warn="$loose_warn${loose_warn:+ }$option"
6247 CFLAGS="$save_CFLAGS"
6250 save_CFLAGS="$CFLAGS"
6251 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6252 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6255 $as_echo_n "checking whether $CC supports $option... " >&6; }
6256 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6257 $as_echo_n "(cached) " >&6
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6271 if ac_fn_c_try_compile "$LINENO"; then :
6272 eval "$as_acx_Woption=yes"
6274 eval "$as_acx_Woption=no"
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 eval ac_res=\$$as_acx_Woption
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6281 $as_echo "$ac_res" >&6; }
6282 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6283 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6286 CFLAGS="$save_CFLAGS"
6289 save_CFLAGS="$CFLAGS"
6290 for option in -Wmissing-format-attribute; do
6291 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6294 $as_echo_n "checking whether $CC supports $option... " >&6; }
6295 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6296 $as_echo_n "(cached) " >&6
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6310 if ac_fn_c_try_compile "$LINENO"; then :
6311 eval "$as_acx_Woption=yes"
6313 eval "$as_acx_Woption=no"
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 eval ac_res=\$$as_acx_Woption
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6320 $as_echo "$ac_res" >&6; }
6321 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6322 strict_warn="$strict_warn${strict_warn:+ }$option"
6325 CFLAGS="$save_CFLAGS"
6328 save_CFLAGS="$CFLAGS"
6329 for option in -Wold-style-definition -Wc++-compat; do
6330 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6333 $as_echo_n "checking whether $CC supports $option... " >&6; }
6334 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6335 $as_echo_n "(cached) " >&6
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350 eval "$as_acx_Woption=yes"
6352 eval "$as_acx_Woption=no"
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 eval ac_res=\$$as_acx_Woption
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6359 $as_echo "$ac_res" >&6; }
6360 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6361 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6364 CFLAGS="$save_CFLAGS"
6366 if test "$GCC" = yes; then :
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6368 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6369 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6372 save_CFLAGS="$CFLAGS"
6373 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6385 if ac_fn_c_try_compile "$LINENO"; then :
6386 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6388 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 CFLAGS="$save_CFLAGS"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6394 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6395 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6396 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6401 # Check whether --enable-werror-always was given.
6402 if test "${enable_werror_always+set}" = set; then :
6403 enableval=$enable_werror_always;
6405 enable_werror_always=no
6408 if test $enable_werror_always = yes; then :
6409 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6414 # The above macros do nothing if the compiler is not GCC. However, the
6415 # Makefile has more goo to add other flags, so these variables are used
6416 # to enable warnings only for GCC.
6419 if test "x$GCC" = "xyes"; then
6420 warn_cflags='$(GCC_WARN_CFLAGS)'
6421 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6426 # Enable expensive internal checks
6428 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6432 # Check whether --enable-checking was given.
6433 if test "${enable_checking+set}" = set; then :
6434 enableval=$enable_checking; ac_checking_flags="${enableval}"
6437 # Determine the default checks.
6438 if test x$is_release = x ; then
6439 ac_checking_flags=yes
6441 ac_checking_flags=release
6445 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6446 for check in release $ac_checking_flags
6449 # these set all the flags to specific states
6450 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6451 ac_fold_checking= ; ac_gc_checking=1 ;
6452 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6453 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6454 ac_tree_checking=1 ; ac_valgrind_checking= ;
6455 ac_types_checking=1 ;;
6456 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6457 ac_fold_checking= ; ac_gc_checking= ;
6458 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6459 ac_rtlflag_checking= ; ac_runtime_checking= ;
6460 ac_tree_checking= ; ac_valgrind_checking= ;
6461 ac_types_checking= ;;
6462 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6463 ac_fold_checking=1 ; ac_gc_checking=1 ;
6464 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6465 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6466 ac_tree_checking=1 ; ac_valgrind_checking= ;
6467 ac_types_checking=1 ;;
6468 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6469 ac_fold_checking= ; ac_gc_checking= ;
6470 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6471 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6472 ac_tree_checking= ; ac_valgrind_checking= ;
6473 ac_types_checking= ;;
6474 # these enable particular checks
6475 assert) ac_assert_checking=1 ;;
6476 df) ac_df_checking=1 ;;
6477 fold) ac_fold_checking=1 ;;
6478 gc) ac_gc_checking=1 ;;
6479 gcac) ac_gc_always_collect=1 ;;
6480 gimple) ac_gimple_checking=1 ;;
6481 misc) ac_checking=1 ;;
6482 rtl) ac_rtl_checking=1 ;;
6483 rtlflag) ac_rtlflag_checking=1 ;;
6484 runtime) ac_runtime_checking=1 ;;
6485 tree) ac_tree_checking=1 ;;
6486 types) ac_types_checking=1 ;;
6487 valgrind) ac_valgrind_checking=1 ;;
6488 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6494 if test x$ac_checking != x ; then
6496 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6498 nocommon_flag=-fno-common
6501 if test x$ac_df_checking != x ; then
6503 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6506 if test x$ac_assert_checking != x ; then
6508 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6511 if test x$ac_gimple_checking != x ; then
6513 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6517 if test x$ac_runtime_checking != x ; then
6519 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6522 if test x$ac_tree_checking != x ; then
6524 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6526 TREEBROWSER=tree-browser.o
6528 if test x$ac_types_checking != x ; then
6530 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6534 if test x$ac_rtl_checking != x ; then
6536 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6539 if test x$ac_rtlflag_checking != x ; then
6541 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6544 if test x$ac_gc_checking != x ; then
6546 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6549 if test x$ac_gc_always_collect != x ; then
6551 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6554 if test x$ac_fold_checking != x ; then
6556 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6559 valgrind_path_defines=
6562 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6563 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6571 if test x$ac_valgrind_checking != x ; then
6572 # It is certainly possible that there's valgrind but no valgrind.h.
6573 # GCC relies on making annotations so we must have both.
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6575 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 #include <valgrind/memcheck.h>
6579 #ifndef VALGRIND_DISCARD
6580 #error VALGRIND_DISCARD not defined
6583 if ac_fn_c_try_cpp "$LINENO"; then :
6584 gcc_cv_header_valgrind_memcheck_h=yes
6586 gcc_cv_header_valgrind_memcheck_h=no
6588 rm -f conftest.err conftest.$ac_ext
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6590 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6592 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 #include <memcheck.h>
6596 #ifndef VALGRIND_DISCARD
6597 #error VALGRIND_DISCARD not defined
6600 if ac_fn_c_try_cpp "$LINENO"; then :
6601 gcc_cv_header_memcheck_h=yes
6603 gcc_cv_header_memcheck_h=no
6605 rm -f conftest.err conftest.$ac_ext
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6607 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6609 # Prepare PATH_SEPARATOR.
6610 # The user is always right.
6611 if test "${PATH_SEPARATOR+set}" != set; then
6612 echo "#! /bin/sh" >conf$$.sh
6613 echo "exit 0" >>conf$$.sh
6615 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6623 # Find out how to test for executable files. Don't use a zero-byte file,
6624 # as systems may use methods other than mode bits to determine executability.
6625 cat >conf$$.file <<_ASEOF
6629 chmod +x conf$$.file
6630 if test -x conf$$.file >/dev/null 2>&1; then
6631 ac_executable_p="test -x"
6633 ac_executable_p="test -f"
6637 # Extract the first word of "valgrind", so it can be a program name with args.
6638 set dummy valgrind; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
6644 case "$valgrind_path" in
6646 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6649 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6650 for ac_dir in $PATH; do
6652 test -z "$ac_dir" && ac_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6655 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6656 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6666 valgrind_path="$ac_cv_path_valgrind_path"
6667 if test -n "$valgrind_path"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6669 $as_echo "$valgrind_path" >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6675 if test "x$valgrind_path" = "x" \
6676 || (test $have_valgrind_h = no \
6677 && test $gcc_cv_header_memcheck_h = no \
6678 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6679 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6681 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6682 valgrind_command="$valgrind_path -q"
6684 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6686 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6688 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6691 if test $gcc_cv_header_memcheck_h = yes; then
6693 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6700 # Enable code coverage collection
6701 # Check whether --enable-coverage was given.
6702 if test "${enable_coverage+set}" = set; then :
6703 enableval=$enable_coverage; case "${enableval}" in
6705 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6708 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6711 # a.k.a. --disable-coverage
6715 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6724 # Check whether --enable-gather-detailed-mem-stats was given.
6725 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6726 enableval=$enable_gather_detailed_mem_stats;
6728 enable_gather_detailed_mem_stats=no
6731 if test x$enable_gather_detailed_mem_stats = xyes ; then
6733 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6737 # -------------------------------
6738 # Miscenalleous configure options
6739 # -------------------------------
6741 # See if we are building gcc with C++.
6742 # Check whether --enable-build-with-cxx was given.
6743 if test "${enable_build_with_cxx+set}" = set; then :
6744 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6746 ENABLE_BUILD_WITH_CXX=no
6753 # Check whether --with-stabs was given.
6754 if test "${with_stabs+set}" = set; then :
6755 withval=$with_stabs; stabs="$with_stabs"
6761 # Determine whether or not multilibs are enabled.
6762 # Check whether --enable-multilib was given.
6763 if test "${enable_multilib+set}" = set; then :
6764 enableval=$enable_multilib;
6771 # Enable __cxa_atexit for C++.
6772 # Check whether --enable-__cxa_atexit was given.
6773 if test "${enable___cxa_atexit+set}" = set; then :
6774 enableval=$enable___cxa_atexit;
6778 # Enable C extension for decimal float if target supports it.
6779 # Check whether --enable-decimal-float was given.
6780 if test "${enable_decimal_float+set}" = set; then :
6781 enableval=$enable_decimal_float;
6782 case $enable_decimal_float in
6783 yes | no | bid | dpd) ;;
6784 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6785 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6791 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6792 enable_decimal_float=yes
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6796 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6797 enable_decimal_float=no
6804 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6806 cat >>confdefs.h <<_ACEOF
6807 #define ENABLE_DECIMAL_FLOAT $dfp
6811 # x86's use BID format instead of DPD
6812 case x$enable_decimal_float in
6815 i?86*-*-linux* | x86_64*-*-linux*)
6816 enable_decimal_float=bid
6819 enable_decimal_float=dpd
6824 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6825 # dependency on libdecnumber.
6826 enable_decimal_float=dpd
6831 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6833 cat >>confdefs.h <<_ACEOF
6834 #define ENABLE_DECIMAL_BID_FORMAT $bid
6838 # Enable C extension for fixed-point arithmetic.
6839 # Check whether --enable-fixed-point was given.
6840 if test "${enable_fixed_point+set}" = set; then :
6841 enableval=$enable_fixed_point;
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6850 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6851 enable_fixed_point=no
6854 enable_fixed_point=yes
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6860 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6861 enable_fixed_point=no
6869 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6871 cat >>confdefs.h <<_ACEOF
6872 #define ENABLE_FIXED_POINT $fixedpoint
6877 # Pass with no value to take the default
6878 # Pass with a value to specify a thread package
6879 # Check whether --enable-threads was given.
6880 if test "${enable_threads+set}" = set; then :
6881 enableval=$enable_threads;
6887 # Check whether --enable-tls was given.
6888 if test "${enable_tls+set}" = set; then :
6889 enableval=$enable_tls;
6892 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6893 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6901 # Check whether --enable-objc-gc was given.
6902 if test "${enable_objc_gc+set}" = set; then :
6903 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6914 # Check whether --with-dwarf2 was given.
6915 if test "${with_dwarf2+set}" = set; then :
6916 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6922 # Check whether --enable-shared was given.
6923 if test "${enable_shared+set}" = set; then :
6924 enableval=$enable_shared;
6925 case $enable_shared in
6929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6930 for pkg in $enableval; do
6931 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6946 # Check whether --with-build-sysroot was given.
6947 if test "${with_build_sysroot+set}" = set; then :
6948 withval=$with_build_sysroot;
6953 # Check whether --with-sysroot was given.
6954 if test "${with_sysroot+set}" = set; then :
6955 withval=$with_sysroot;
6956 case ${with_sysroot} in
6957 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6958 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6961 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6962 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6964 if test "x$prefix" = xNONE; then
6965 test_prefix=/usr/local
6969 if test "x$exec_prefix" = xNONE; then
6970 test_exec_prefix=$test_prefix
6972 test_exec_prefix=$exec_prefix
6974 case ${TARGET_SYSTEM_ROOT} in
6975 "${test_prefix}"|"${test_prefix}/"*|\
6976 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6977 '${prefix}'|'${prefix}/'*|\
6978 '${exec_prefix}'|'${exec_prefix}/'*)
6979 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6980 TARGET_SYSTEM_ROOT_DEFINE="$t"
6987 TARGET_SYSTEM_ROOT_DEFINE=
6988 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6996 # Build with intermodule optimisations
6997 # Check whether --enable-intermodule was given.
6998 if test "${enable_intermodule+set}" = set; then :
6999 enableval=$enable_intermodule; case ${enable_intermodule} in
7000 yes) onestep="-onestep";;
7011 # Check whether --with-pkgversion was given.
7012 if test "${with_pkgversion+set}" = set; then :
7013 withval=$with_pkgversion; case "$withval" in
7014 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7016 *) PKGVERSION="($withval) " ;;
7027 # Check whether --with-bugurl was given.
7028 if test "${with_bugurl+set}" = set; then :
7029 withval=$with_bugurl; case "$withval" in
7030 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7033 *) BUGURL="$withval"
7037 BUGURL="http://gcc.gnu.org/bugs.html"
7047 REPORT_BUGS_TO="<$BUGURL>"
7048 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7055 # Sanity check enable_languages in case someone does not run the toplevel
7056 # configure # script.
7057 # Check whether --enable-languages was given.
7058 if test "${enable_languages+set}" = set; then :
7059 enableval=$enable_languages; case ,${enable_languages}, in
7061 # go safe -- we cannot be much sure without the toplevel
7063 # analysis of which target libs are present and usable
7067 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7072 enable_languages=c,${enable_languages}
7081 # Check whether --with-multilib-list was given.
7082 if test "${with_multilib_list+set}" = set; then :
7083 withval=$with_multilib_list; :
7085 with_multilib_list=default
7089 # -------------------------
7090 # Checks for other programs
7091 # -------------------------
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7094 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7096 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7097 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7098 $as_echo_n "(cached) " >&6
7100 cat >conftest.make <<\_ACEOF
7103 @echo '@@@%%%=$(MAKE)=@@@%%%'
7105 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7106 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7108 eval ac_cv_prog_make_${ac_make}_set=yes;;
7110 eval ac_cv_prog_make_${ac_make}_set=no;;
7114 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7116 $as_echo "yes" >&6; }
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 SET_MAKE="MAKE=${MAKE-make}"
7125 # Find some useful tools
7126 for ac_prog in gawk mawk nawk awk
7128 # Extract the first word of "$ac_prog", so it can be a program name with args.
7129 set dummy $ac_prog; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if test "${ac_cv_prog_AWK+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7135 if test -n "$AWK"; then
7136 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_prog_AWK="$ac_prog"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 if test -n "$AWK"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7158 $as_echo "$AWK" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7165 test -n "$AWK" && break
7168 # We need awk to create options.c and options.h.
7169 # Bail out if it's missing.
7171 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7175 $as_echo_n "checking whether ln -s works... " >&6; }
7176 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7177 $as_echo_n "(cached) " >&6
7179 rm -f conftestdata_t
7180 echo >conftestdata_f
7181 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7183 gcc_cv_prog_LN_S="ln -s"
7185 if ln conftestdata_f conftestdata_t 2>/dev/null
7189 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7191 gcc_cv_prog_LN_S="cp -p"
7197 rm -f conftestdata_f conftestdata_t
7200 LN_S="$gcc_cv_prog_LN_S"
7201 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7203 $as_echo "yes" >&6; }
7205 if test "$gcc_cv_prog_LN_S" = "ln"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7207 $as_echo "no, using ln" >&6; }
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7210 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7215 $as_echo_n "checking whether ln works... " >&6; }
7216 if test "${acx_cv_prog_LN+set}" = set; then :
7217 $as_echo_n "(cached) " >&6
7219 rm -f conftestdata_t
7220 echo >conftestdata_f
7221 if ln conftestdata_f conftestdata_t 2>/dev/null
7227 rm -f conftestdata_f conftestdata_t
7230 if test $acx_cv_prog_LN = no; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7233 $as_echo "no, using $LN" >&6; }
7235 LN="$acx_cv_prog_LN"
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7240 if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7246 $as_echo_n "(cached) " >&6
7248 if test -n "$RANLIB"; then
7249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 RANLIB=$ac_cv_prog_RANLIB
7269 if test -n "$RANLIB"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7271 $as_echo "$RANLIB" >&6; }
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7279 if test -z "$ac_cv_prog_RANLIB"; then
7280 ac_ct_RANLIB=$RANLIB
7281 # Extract the first word of "ranlib", so it can be a program name with args.
7282 set dummy ranlib; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7288 if test -n "$ac_ct_RANLIB"; then
7289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_prog_ac_ct_RANLIB="ranlib"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7309 if test -n "$ac_ct_RANLIB"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7311 $as_echo "$ac_ct_RANLIB" >&6; }
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7317 if test "x$ac_ct_RANLIB" = x; then
7320 case $cross_compiling:$ac_tool_warned in
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324 ac_tool_warned=yes ;;
7326 RANLIB=$ac_ct_RANLIB
7329 RANLIB="$ac_cv_prog_RANLIB"
7334 # By default, the Darwin ranlib will not treat common symbols as
7335 # definitions when building the archive table of contents. Other
7336 # ranlibs do that; pass an option to the Darwin ranlib that makes
7337 # it behave similarly.
7345 # Find a good install program. We prefer a C program (faster),
7346 # so one script is as good as another. But avoid the broken or
7347 # incompatible versions:
7348 # SysV /etc/install, /usr/sbin/install
7349 # SunOS /usr/etc/install
7350 # IRIX /sbin/install
7352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7354 # ./install, which can be erroneously created by make from ./install.sh.
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7356 $as_echo_n "checking for a BSD compatible install... " >&6; }
7357 if test -z "$INSTALL"; then
7358 if test "${ac_cv_path_install+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
7361 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7362 for ac_dir in $PATH; do
7363 # Account for people who put trailing slashes in PATH elements.
7365 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7367 # OSF1 and SCO ODT 3.0 have their own names for install.
7368 for ac_prog in ginstall scoinst install; do
7369 if test -f $ac_dir/$ac_prog; then
7370 if test $ac_prog = install &&
7371 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7372 # AIX install. It has an incompatible calling convention.
7373 # OSF/1 installbsd also uses dspmsg, but is usable.
7376 ac_cv_path_install="$ac_dir/$ac_prog -c"
7387 if test "${ac_cv_path_install+set}" = set; then
7388 INSTALL="$ac_cv_path_install"
7390 # As a last resort, use the slow shell script. We don't cache a
7391 # path for INSTALL within a source directory, because that will
7392 # break other packages using the cache if that directory is
7393 # removed, or if the path is relative.
7394 INSTALL="$ac_install_sh"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7398 $as_echo "$INSTALL" >&6; }
7400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7401 # It thinks the first close brace ends the variable substitution.
7402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7407 # See if cmp has --ignore-initial.
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7409 $as_echo_n "checking for cmp's capabilities... " >&6; }
7410 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7415 gcc_cv_prog_cmp_skip=slowcompare
7416 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7417 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7420 gcc_cv_prog_cmp_skip=gnucompare
7423 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7424 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7425 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7428 gcc_cv_prog_cmp_skip=fastcompare
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7436 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7437 make_compare_target=$gcc_cv_prog_cmp_skip
7441 # See if we have the mktemp command.
7442 # Extract the first word of "mktemp", so it can be a program name with args.
7443 set dummy mktemp; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7449 if test -n "$have_mktemp_command"; then
7450 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_have_mktemp_command="yes"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7470 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7471 if test -n "$have_mktemp_command"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7473 $as_echo "$have_mktemp_command" >&6; }
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7481 # See if makeinfo has been installed and is modern enough
7482 # that we can use it.
7484 # Extract the first word of "makeinfo", so it can be a program name with args.
7485 set dummy makeinfo; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7491 if test -n "$MAKEINFO"; then
7492 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_prog_MAKEINFO="makeinfo"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 MAKEINFO=$ac_cv_prog_MAKEINFO
7512 if test -n "$MAKEINFO"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7514 $as_echo "$MAKEINFO" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7521 if test -n "$MAKEINFO"; then
7522 # Found it, now check the version.
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7524 $as_echo_n "checking for modern makeinfo... " >&6; }
7525 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7528 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7529 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7531 case $ac_prog_version in
7532 '') gcc_cv_prog_makeinfo_modern=no;;
7533 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7534 *) gcc_cv_prog_makeinfo_modern=no;;
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7539 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7541 gcc_cv_prog_makeinfo_modern=no
7543 if test $gcc_cv_prog_makeinfo_modern = no; then
7544 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7547 if test $gcc_cv_prog_makeinfo_modern = no; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7549 *** Makeinfo is missing or too old.
7550 *** Info documentation will not be built." >&5
7551 $as_echo "$as_me: WARNING:
7552 *** Makeinfo is missing or too old.
7553 *** Info documentation will not be built." >&2;}
7560 # Is pod2man recent enough to regenerate manpages?
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7562 $as_echo_n "checking for recent Pod::Man... " >&6; }
7563 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7565 $as_echo "yes" >&6; }
7566 GENERATED_MANPAGES=generated-manpages
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7574 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7579 # Extract the first word of "$ac_prog", so it can be a program name with args.
7580 set dummy $ac_prog; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if test "${ac_cv_prog_FLEX+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7586 if test -n "$FLEX"; then
7587 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_prog_FLEX="$ac_prog"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 FLEX=$ac_cv_prog_FLEX
7607 if test -n "$FLEX"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7609 $as_echo "$FLEX" >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7616 test -n "$FLEX" && break
7618 test -n "$FLEX" || FLEX="$MISSING flex"
7622 for ac_prog in bison
7624 # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if test "${ac_cv_prog_BISON+set}" = set; then :
7629 $as_echo_n "(cached) " >&6
7631 if test -n "$BISON"; then
7632 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_prog_BISON="$ac_prog"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 BISON=$ac_cv_prog_BISON
7652 if test -n "$BISON"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7654 $as_echo "$BISON" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7661 test -n "$BISON" && break
7663 test -n "$BISON" || BISON="$MISSING bison"
7666 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7667 # check for build == host before using them.
7670 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7671 && test -d ../binutils ; then
7672 NM='$(objdir)/../binutils/nm-new'
7674 # Extract the first word of "nm", so it can be a program name with args.
7675 set dummy nm; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_NM+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7681 if test -n "$NM"; then
7682 ac_cv_prog_NM="$NM" # Let the user override the test.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7703 if test -n "$NM"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7705 $as_echo "$NM" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7715 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7716 && test -d ../binutils ; then
7717 AR='$(objdir)/../binutils/ar'
7719 # Extract the first word of "ar", so it can be a program name with args.
7720 set dummy ar; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if test "${ac_cv_prog_AR+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7726 if test -n "$AR"; then
7727 ac_cv_prog_AR="$AR" # Let the user override the test.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7748 if test -n "$AR"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7750 $as_echo "$AR" >&6; }
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7760 # --------------------
7761 # Checks for C headers
7762 # --------------------
7764 # Need to reject headers which give warnings, so that the -Werror bootstrap
7765 # works later. *sigh* This needs to come before all header checks.
7767 ac_c_preproc_warn_flag=yes
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7770 $as_echo_n "checking for ANSI C header files... " >&6; }
7771 if test "${ac_cv_header_stdc+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7789 if ac_fn_c_try_compile "$LINENO"; then :
7790 ac_cv_header_stdc=yes
7792 ac_cv_header_stdc=no
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 if test $ac_cv_header_stdc = yes; then
7797 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7804 $EGREP "memchr" >/dev/null 2>&1; then :
7807 ac_cv_header_stdc=no
7813 if test $ac_cv_header_stdc = yes; then
7814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821 $EGREP "free" >/dev/null 2>&1; then :
7824 ac_cv_header_stdc=no
7830 if test $ac_cv_header_stdc = yes; then
7831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7832 if test "$cross_compiling" = yes; then :
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7839 #if ((' ' & 0x0FF) == 0x020)
7840 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7841 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7843 # define ISLOWER(c) \
7844 (('a' <= (c) && (c) <= 'i') \
7845 || ('j' <= (c) && (c) <= 'r') \
7846 || ('s' <= (c) && (c) <= 'z'))
7847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7855 for (i = 0; i < 256; i++)
7856 if (XOR (islower (i), ISLOWER (i))
7857 || toupper (i) != TOUPPER (i))
7862 if ac_fn_c_try_run "$LINENO"; then :
7865 ac_cv_header_stdc=no
7867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7868 conftest.$ac_objext conftest.beam conftest.$ac_ext
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7874 $as_echo "$ac_cv_header_stdc" >&6; }
7875 if test $ac_cv_header_stdc = yes; then
7877 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7882 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7883 if test "${ac_cv_header_time+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #include <sys/types.h>
7889 #include <sys/time.h>
7895 if ((struct tm *) 0)
7901 if ac_fn_c_try_compile "$LINENO"; then :
7902 ac_cv_header_time=yes
7904 ac_cv_header_time=no
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7909 $as_echo "$ac_cv_header_time" >&6; }
7910 if test $ac_cv_header_time = yes; then
7912 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7917 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7918 if test "${gcc_cv_header_string+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7924 #include <strings.h>
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 gcc_cv_header_string=yes
7936 gcc_cv_header_string=no
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7941 $as_echo "$gcc_cv_header_string" >&6; }
7942 if test $gcc_cv_header_string = yes; then
7944 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7949 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7950 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955 #include <sys/types.h>
7956 #include <sys/wait.h>
7958 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7961 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7969 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7974 if ac_fn_c_try_compile "$LINENO"; then :
7975 ac_cv_header_sys_wait_h=yes
7977 ac_cv_header_sys_wait_h=no
7979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7982 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7983 if test $ac_cv_header_sys_wait_h = yes; then
7985 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7989 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7990 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7991 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7992 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7996 eval as_val=\$$as_ac_Header
7997 if test "x$as_val" = x""yes; then :
7998 cat >>confdefs.h <<_ACEOF
7999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8006 # Check for thread headers.
8007 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8008 if test "x$ac_cv_header_thread_h" = x""yes; then :
8014 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8015 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8022 # These tests can't be done till we know if we have limits.h.
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8024 $as_echo_n "checking for CHAR_BIT... " >&6; }
8025 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 #ifdef HAVE_LIMITS_H
8037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8038 $EGREP "found" >/dev/null 2>&1; then :
8039 gcc_cv_decl_char_bit=yes
8041 gcc_cv_decl_char_bit=no
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8048 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8049 if test $gcc_cv_decl_char_bit = no; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8051 $as_echo_n "checking number of bits in a byte... " >&6; }
8052 if test "${gcc_cv_c_nbby+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8057 while test $i -lt 65; do
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8065 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8066 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8072 if ac_fn_c_try_compile "$LINENO"; then :
8073 gcc_cv_c_nbby=$i; break
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8082 $as_echo "$gcc_cv_c_nbby" >&6; }
8083 if test $gcc_cv_c_nbby = failed; then
8084 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8087 cat >>confdefs.h <<_ACEOF
8088 #define CHAR_BIT $gcc_cv_c_nbby
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8094 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8095 if test "${ac_cv_c_bigendian+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8098 ac_cv_c_bigendian=unknown
8099 # See if we're dealing with a universal compiler.
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 #ifndef __APPLE_CC__
8103 not a universal capable compiler
8108 if ac_fn_c_try_compile "$LINENO"; then :
8110 # Check for potential -arch flags. It is not universal unless
8111 # there are at least two -arch flags with different values.
8114 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8115 if test -n "$ac_prev"; then
8117 i?86 | x86_64 | ppc | ppc64)
8118 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8121 ac_cv_c_bigendian=universal
8127 elif test "x$ac_word" = "x-arch"; then
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 if test $ac_cv_c_bigendian = unknown; then
8134 # See if sys/param.h defines the BYTE_ORDER macro.
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137 #include <sys/types.h>
8138 #include <sys/param.h>
8143 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8144 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8153 if ac_fn_c_try_compile "$LINENO"; then :
8154 # It does; now see whether it defined to BIG_ENDIAN or not.
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 #include <sys/types.h>
8158 #include <sys/param.h>
8163 #if BYTE_ORDER != BIG_ENDIAN
8171 if ac_fn_c_try_compile "$LINENO"; then :
8172 ac_cv_c_bigendian=yes
8174 ac_cv_c_bigendian=no
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 if test $ac_cv_c_bigendian = unknown; then
8181 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8189 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8197 if ac_fn_c_try_compile "$LINENO"; then :
8198 # It does; now see whether it defined to _BIG_ENDIAN or not.
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 ac_cv_c_bigendian=yes
8217 ac_cv_c_bigendian=no
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 if test $ac_cv_c_bigendian = unknown; then
8224 # Compile a test program.
8225 if test "$cross_compiling" = yes; then :
8226 # Try to guess by grepping values from an object file.
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8229 short int ascii_mm[] =
8230 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8231 short int ascii_ii[] =
8232 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8233 int use_ascii (int i) {
8234 return ascii_mm[i] + ascii_ii[i];
8236 short int ebcdic_ii[] =
8237 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8238 short int ebcdic_mm[] =
8239 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8240 int use_ebcdic (int i) {
8241 return ebcdic_mm[i] + ebcdic_ii[i];
8248 return use_ascii (foo) == use_ebcdic (foo);
8253 if ac_fn_c_try_compile "$LINENO"; then :
8254 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8255 ac_cv_c_bigendian=yes
8257 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8258 if test "$ac_cv_c_bigendian" = unknown; then
8259 ac_cv_c_bigendian=no
8261 # finding both strings is unlikely to happen, but who knows?
8262 ac_cv_c_bigendian=unknown
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270 $ac_includes_default
8275 /* Are we little or big endian? From Harbison&Steele. */
8279 char c[sizeof (long int)];
8282 return u.c[sizeof (long int) - 1] == 1;
8288 if ac_fn_c_try_run "$LINENO"; then :
8289 ac_cv_c_bigendian=no
8291 ac_cv_c_bigendian=yes
8293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8294 conftest.$ac_objext conftest.beam conftest.$ac_ext
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8300 $as_echo "$ac_cv_c_bigendian" >&6; }
8301 case $ac_cv_c_bigendian in #(
8303 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8309 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8313 as_fn_error "unknown endianness
8314 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8323 # These libraries may be used by collect2.
8324 # We may need a special search path to get them linked.
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8326 $as_echo_n "checking for collect2 libraries... " >&6; }
8327 if test "${gcc_cv_collect2_libs+set}" = set; then :
8328 $as_echo_n "(cached) " >&6
8331 for libs in '' -lld -lmld \
8332 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8333 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8339 /* Override any GCC internal prototype to avoid an error.
8340 Use char because int might match the return type of a GCC
8341 builtin and then its argument prototype would still apply. */
8354 if ac_fn_c_try_link "$LINENO"; then :
8355 gcc_cv_collect2_libs="$libs"; break
8357 rm -f core conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
8361 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8364 $as_echo "$gcc_cv_collect2_libs" >&6; }
8365 case $gcc_cv_collect2_libs in
8367 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8371 # When building Ada code on Alpha, we need exc_resume which is usually in
8372 # -lexc. So test for it.
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8376 $as_echo_n "checking for library containing exc_resume... " >&6; }
8377 if test "${ac_cv_search_exc_resume+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
8380 ac_func_search_save_LIBS=$LIBS
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8384 /* Override any GCC internal prototype to avoid an error.
8385 Use char because int might match the return type of a GCC
8386 builtin and then its argument prototype would still apply. */
8394 return exc_resume ();
8399 for ac_lib in '' exc; do
8400 if test -z "$ac_lib"; then
8401 ac_res="none required"
8404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8406 if ac_fn_c_try_link "$LINENO"; then :
8407 ac_cv_search_exc_resume=$ac_res
8409 rm -f core conftest.err conftest.$ac_objext \
8411 if test "${ac_cv_search_exc_resume+set}" = set; then :
8415 if test "${ac_cv_search_exc_resume+set}" = set; then :
8418 ac_cv_search_exc_resume=no
8421 LIBS=$ac_func_search_save_LIBS
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8424 $as_echo "$ac_cv_search_exc_resume" >&6; }
8425 ac_res=$ac_cv_search_exc_resume
8426 if test "$ac_res" != no; then :
8427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8435 # Some systems put ldexp and frexp in libm instead of libc; assume
8436 # they're both in the same place. jcf-dump needs them.
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8440 $as_echo_n "checking for library containing ldexp... " >&6; }
8441 if test "${ac_cv_search_ldexp+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8444 ac_func_search_save_LIBS=$LIBS
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8448 /* Override any GCC internal prototype to avoid an error.
8449 Use char because int might match the return type of a GCC
8450 builtin and then its argument prototype would still apply. */
8463 for ac_lib in '' m; do
8464 if test -z "$ac_lib"; then
8465 ac_res="none required"
8468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8470 if ac_fn_c_try_link "$LINENO"; then :
8471 ac_cv_search_ldexp=$ac_res
8473 rm -f core conftest.err conftest.$ac_objext \
8475 if test "${ac_cv_search_ldexp+set}" = set; then :
8479 if test "${ac_cv_search_ldexp+set}" = set; then :
8482 ac_cv_search_ldexp=no
8485 LIBS=$ac_func_search_save_LIBS
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8488 $as_echo "$ac_cv_search_ldexp" >&6; }
8489 ac_res=$ac_cv_search_ldexp
8490 if test "$ac_res" != no; then :
8491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8499 # Use <inttypes.h> only if it exists,
8500 # doesn't clash with <sys/types.h>, and declares intmax_t.
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8502 $as_echo_n "checking for inttypes.h... " >&6; }
8503 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8504 $as_echo_n "(cached) " >&6
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 #include <sys/types.h>
8509 #include <inttypes.h>
8518 if ac_fn_c_try_compile "$LINENO"; then :
8519 gcc_cv_header_inttypes_h=yes
8521 gcc_cv_header_inttypes_h=no
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8527 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8528 if test $gcc_cv_header_inttypes_h = yes; then
8530 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8536 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8537 sysconf strsignal getrusage nl_langinfo \
8538 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8539 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
8541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8543 eval as_val=\$$as_ac_var
8544 if test "x$as_val" = x""yes; then :
8545 cat >>confdefs.h <<_ACEOF
8546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8553 if test x$ac_cv_func_mbstowcs = xyes; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8555 $as_echo_n "checking whether mbstowcs works... " >&6; }
8556 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8559 if test "$cross_compiling" = yes; then :
8560 gcc_cv_func_mbstowcs_works=yes
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8571 if ac_fn_c_try_run "$LINENO"; then :
8572 gcc_cv_func_mbstowcs_works=yes
8574 gcc_cv_func_mbstowcs_works=no
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577 conftest.$ac_objext conftest.beam conftest.$ac_ext
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8582 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8583 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8585 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8590 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8591 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8595 cat >>confdefs.h <<_ACEOF
8601 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8602 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8606 cat >>confdefs.h <<_ACEOF
8607 #define caddr_t char *
8614 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8615 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8616 gcc_header_sys_mman_h=yes
8618 gcc_header_sys_mman_h=no
8621 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8622 if test "x$ac_cv_func_mmap" = x""yes; then :
8628 if test "$gcc_header_sys_mman_h" != yes \
8629 || test "$gcc_func_mmap" != yes; then
8630 gcc_cv_func_mmap_file=no
8631 gcc_cv_func_mmap_dev_zero=no
8632 gcc_cv_func_mmap_anon=no
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8635 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8636 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8639 # Add a system to this blacklist if
8640 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8641 # memory area containing the same data that you'd get if you applied
8642 # read() to the same fd. The only system known to have a problem here
8643 # is VMS, where text files have record structure.
8646 gcc_cv_func_mmap_file=no ;;
8648 gcc_cv_func_mmap_file=yes;;
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8652 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8654 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8655 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8658 # Add a system to this blacklist if it has mmap() but /dev/zero
8659 # does not exist, or if mmapping /dev/zero does not give anonymous
8660 # zeroed pages with both the following properties:
8661 # 1. If you map N consecutive pages in with one call, and then
8662 # unmap any subset of those pages, the pages that were not
8663 # explicitly unmapped remain accessible.
8664 # 2. If you map two adjacent blocks of memory and then unmap them
8665 # both at once, they must both go away.
8666 # Systems known to be in this category are Windows (all variants),
8669 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8670 gcc_cv_func_mmap_dev_zero=no ;;
8672 gcc_cv_func_mmap_dev_zero=yes;;
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8676 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8678 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8680 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8681 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8682 $as_echo_n "(cached) " >&6
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686 #include <sys/types.h>
8687 #include <sys/mman.h>
8690 #ifndef MAP_ANONYMOUS
8691 #define MAP_ANONYMOUS MAP_ANON
8697 int n = MAP_ANONYMOUS;
8702 if ac_fn_c_try_compile "$LINENO"; then :
8703 gcc_cv_decl_map_anon=yes
8705 gcc_cv_decl_map_anon=no
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8710 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8712 if test $gcc_cv_decl_map_anon = no; then
8713 gcc_cv_func_mmap_anon=no
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8716 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8717 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8720 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8721 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8722 # doesn't give anonymous zeroed pages with the same properties listed
8723 # above for use of /dev/zero.
8724 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8726 vms* | cygwin* | pe | mingw* | sco* | udk* )
8727 gcc_cv_func_mmap_anon=no ;;
8729 gcc_cv_func_mmap_anon=yes;;
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8733 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8737 if test $gcc_cv_func_mmap_file = yes; then
8739 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8742 if test $gcc_cv_func_mmap_dev_zero = yes; then
8744 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8747 if test $gcc_cv_func_mmap_anon = yes; then
8749 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8756 # Under VMS, vfork works very differently than on Unix. The standard test
8757 # won't work, and it isn't easily adaptable. It makes more sense to
8759 ac_cv_func_vfork_works=yes
8762 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8763 if test "x$ac_cv_type_pid_t" = x""yes; then :
8767 cat >>confdefs.h <<_ACEOF
8773 for ac_header in vfork.h
8775 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8776 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8777 cat >>confdefs.h <<_ACEOF
8778 #define HAVE_VFORK_H 1
8784 for ac_func in fork vfork
8786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8787 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8788 eval as_val=\$$as_ac_var
8789 if test "x$as_val" = x""yes; then :
8790 cat >>confdefs.h <<_ACEOF
8791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8797 if test "x$ac_cv_func_fork" = xyes; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8799 $as_echo_n "checking for working fork... " >&6; }
8800 if test "${ac_cv_func_fork_works+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8803 if test "$cross_compiling" = yes; then :
8804 ac_cv_func_fork_works=cross
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 $ac_includes_default
8813 /* By Ruediger Kuhlmann. */
8820 if ac_fn_c_try_run "$LINENO"; then :
8821 ac_cv_func_fork_works=yes
8823 ac_cv_func_fork_works=no
8825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8826 conftest.$ac_objext conftest.beam conftest.$ac_ext
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8831 $as_echo "$ac_cv_func_fork_works" >&6; }
8834 ac_cv_func_fork_works=$ac_cv_func_fork
8836 if test "x$ac_cv_func_fork_works" = xcross; then
8838 *-*-amigaos* | *-*-msdosdjgpp*)
8839 # Override, as these systems have only a dummy fork() stub
8840 ac_cv_func_fork_works=no
8843 ac_cv_func_fork_works=yes
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8847 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8849 ac_cv_func_vfork_works=$ac_cv_func_vfork
8850 if test "x$ac_cv_func_vfork" = xyes; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8852 $as_echo_n "checking for working vfork... " >&6; }
8853 if test "${ac_cv_func_vfork_works+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8856 if test "$cross_compiling" = yes; then :
8857 ac_cv_func_vfork_works=cross
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 /* Thanks to Paul Eggert for this test. */
8862 $ac_includes_default
8863 #include <sys/wait.h>
8867 /* On some sparc systems, changes by the child to local and incoming
8868 argument registers are propagated back to the parent. The compiler
8869 is told about this with #include <vfork.h>, but some compilers
8870 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8871 static variable whose address is put into a register that is
8872 clobbered by the vfork. */
8875 sparc_address_test (int arg)
8877 sparc_address_test (arg) int arg;
8898 pid_t parent = getpid ();
8901 sparc_address_test (0);
8906 /* Here is another test for sparc vfork register problems. This
8907 test uses lots of local variables, at least as many local
8908 variables as main has allocated so far including compiler
8909 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8910 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8911 reuse the register of parent for one of the local variables,
8912 since it will think that parent can't possibly be used any more
8913 in this routine. Assigning to the local variable will thus
8914 munge parent in the parent process. */
8916 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8917 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8918 /* Convince the compiler that p..p7 are live; otherwise, it might
8919 use the same hardware register for all 8 local variables. */
8920 if (p != p1 || p != p2 || p != p3 || p != p4
8921 || p != p5 || p != p6 || p != p7)
8924 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8925 from child file descriptors. If the child closes a descriptor
8926 before it execs or exits, this munges the parent's descriptor
8927 as well. Test for this by closing stdout in the child. */
8928 _exit(close(fileno(stdout)) != 0);
8933 while (wait(&status) != child)
8936 /* Was there some problem with vforking? */
8939 /* Did the child fail? (This shouldn't happen.) */
8942 /* Did the vfork/compiler bug occur? */
8943 || parent != getpid()
8945 /* Did the file descriptor bug occur? */
8946 || fstat(fileno(stdout), &st) != 0
8951 if ac_fn_c_try_run "$LINENO"; then :
8952 ac_cv_func_vfork_works=yes
8954 ac_cv_func_vfork_works=no
8956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8957 conftest.$ac_objext conftest.beam conftest.$ac_ext
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8962 $as_echo "$ac_cv_func_vfork_works" >&6; }
8965 if test "x$ac_cv_func_fork_works" = xcross; then
8966 ac_cv_func_vfork_works=$ac_cv_func_vfork
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8968 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8971 if test "x$ac_cv_func_vfork_works" = xyes; then
8973 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8977 $as_echo "#define vfork fork" >>confdefs.h
8980 if test "x$ac_cv_func_fork_works" = xyes; then
8982 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8988 if test "X$prefix" = "XNONE"; then
8989 acl_final_prefix="$ac_default_prefix"
8991 acl_final_prefix="$prefix"
8993 if test "X$exec_prefix" = "XNONE"; then
8994 acl_final_exec_prefix='${prefix}'
8996 acl_final_exec_prefix="$exec_prefix"
8998 acl_save_prefix="$prefix"
8999 prefix="$acl_final_prefix"
9000 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9001 prefix="$acl_save_prefix"
9004 # Check whether --with-gnu-ld was given.
9005 if test "${with_gnu_ld+set}" = set; then :
9006 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9011 # Prepare PATH_SEPARATOR.
9012 # The user is always right.
9013 if test "${PATH_SEPARATOR+set}" != set; then
9014 echo "#! /bin/sh" >conf$$.sh
9015 echo "exit 0" >>conf$$.sh
9017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9025 if test "$GCC" = yes; then
9026 # Check if gcc -print-prog-name=ld gives a path.
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9028 $as_echo_n "checking for ld used by GCC... " >&6; }
9031 # gcc leaves a trailing carriage return which upsets mingw
9032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9037 # Accept absolute paths.
9038 [\\/]* | [A-Za-z]:[\\/]*)
9039 re_direlt='/[^/][^/]*/\.\./'
9040 # Canonicalize the path of ld
9041 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9042 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9043 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9045 test -z "$LD" && LD="$ac_prog"
9048 # If it fails, then pretend we aren't using GCC.
9052 # If it is relative, then search for the first ld in PATH.
9056 elif test "$with_gnu_ld" = yes; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9058 $as_echo_n "checking for GNU ld... " >&6; }
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9061 $as_echo_n "checking for non-GNU ld... " >&6; }
9063 if test "${acl_cv_path_LD+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9066 if test -z "$LD"; then
9067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9068 for ac_dir in $PATH; do
9069 test -z "$ac_dir" && ac_dir=.
9070 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9071 acl_cv_path_LD="$ac_dir/$ac_prog"
9072 # Check to see if the program is GNU ld. I'd rather use --version,
9073 # but apparently some GNU ld's only accept -v.
9074 # Break only if it was the GNU/non-GNU ld that we prefer.
9075 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9076 test "$with_gnu_ld" != no && break
9078 test "$with_gnu_ld" != yes && break
9084 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9088 LD="$acl_cv_path_LD"
9089 if test -n "$LD"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9091 $as_echo "$LD" >&6; }
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9096 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9098 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9099 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9102 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9103 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9104 acl_cv_prog_gnu_ld=yes
9106 acl_cv_prog_gnu_ld=no
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9110 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9111 with_gnu_ld=$acl_cv_prog_gnu_ld
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9116 $as_echo_n "checking for shared library run path origin... " >&6; }
9117 if test "${acl_cv_rpath+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9121 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9122 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9129 $as_echo "$acl_cv_rpath" >&6; }
9131 libext="$acl_cv_libext"
9132 shlibext="$acl_cv_shlibext"
9133 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9134 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9135 hardcode_direct="$acl_cv_hardcode_direct"
9136 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9137 # Check whether --enable-rpath was given.
9138 if test "${enable_rpath+set}" = set; then :
9139 enableval=$enable_rpath; :
9153 acl_save_prefix="$prefix"
9154 prefix="$acl_final_prefix"
9155 acl_save_exec_prefix="$exec_prefix"
9156 exec_prefix="$acl_final_exec_prefix"
9158 eval additional_includedir=\"$includedir\"
9159 eval additional_libdir=\"$libdir\"
9161 exec_prefix="$acl_save_exec_prefix"
9162 prefix="$acl_save_prefix"
9165 # Check whether --with-libiconv-prefix was given.
9166 if test "${with_libiconv_prefix+set}" = set; then :
9167 withval=$with_libiconv_prefix;
9168 if test "X$withval" = "Xno"; then
9171 if test "X$withval" = "X"; then
9173 acl_save_prefix="$prefix"
9174 prefix="$acl_final_prefix"
9175 acl_save_exec_prefix="$exec_prefix"
9176 exec_prefix="$acl_final_exec_prefix"
9178 eval additional_includedir=\"$includedir\"
9179 eval additional_libdir=\"$libdir\"
9181 exec_prefix="$acl_save_exec_prefix"
9182 prefix="$acl_save_prefix"
9185 additional_includedir="$withval/include"
9186 additional_libdir="$withval/lib"
9197 names_already_handled=
9198 names_next_round='iconv '
9199 while test -n "$names_next_round"; do
9200 names_this_round="$names_next_round"
9202 for name in $names_this_round; do
9204 for n in $names_already_handled; do
9205 if test "$n" = "$name"; then
9210 if test -z "$already_handled"; then
9211 names_already_handled="$names_already_handled $name"
9212 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9213 eval value=\"\$HAVE_LIB$uppername\"
9214 if test -n "$value"; then
9215 if test "$value" = yes; then
9216 eval value=\"\$LIB$uppername\"
9217 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9218 eval value=\"\$LTLIB$uppername\"
9219 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9228 if test $use_additional = yes; then
9229 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9230 found_dir="$additional_libdir"
9231 found_so="$additional_libdir/lib$name.$shlibext"
9232 if test -f "$additional_libdir/lib$name.la"; then
9233 found_la="$additional_libdir/lib$name.la"
9236 if test -f "$additional_libdir/lib$name.$libext"; then
9237 found_dir="$additional_libdir"
9238 found_a="$additional_libdir/lib$name.$libext"
9239 if test -f "$additional_libdir/lib$name.la"; then
9240 found_la="$additional_libdir/lib$name.la"
9245 if test "X$found_dir" = "X"; then
9246 for x in $LDFLAGS $LTLIBICONV; do
9248 acl_save_prefix="$prefix"
9249 prefix="$acl_final_prefix"
9250 acl_save_exec_prefix="$exec_prefix"
9251 exec_prefix="$acl_final_exec_prefix"
9253 exec_prefix="$acl_save_exec_prefix"
9254 prefix="$acl_save_prefix"
9258 dir=`echo "X$x" | sed -e 's/^X-L//'`
9259 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9261 found_so="$dir/lib$name.$shlibext"
9262 if test -f "$dir/lib$name.la"; then
9263 found_la="$dir/lib$name.la"
9266 if test -f "$dir/lib$name.$libext"; then
9268 found_a="$dir/lib$name.$libext"
9269 if test -f "$dir/lib$name.la"; then
9270 found_la="$dir/lib$name.la"
9276 if test "X$found_dir" != "X"; then
9281 if test "X$found_dir" != "X"; then
9282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9283 if test "X$found_so" != "X"; then
9284 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9288 for x in $ltrpathdirs; do
9289 if test "X$x" = "X$found_dir"; then
9294 if test -z "$haveit"; then
9295 ltrpathdirs="$ltrpathdirs $found_dir"
9297 if test "$hardcode_direct" = yes; then
9298 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9300 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9301 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9303 for x in $rpathdirs; do
9304 if test "X$x" = "X$found_dir"; then
9309 if test -z "$haveit"; then
9310 rpathdirs="$rpathdirs $found_dir"
9314 for x in $LDFLAGS $LIBICONV; do
9316 acl_save_prefix="$prefix"
9317 prefix="$acl_final_prefix"
9318 acl_save_exec_prefix="$exec_prefix"
9319 exec_prefix="$acl_final_exec_prefix"
9321 exec_prefix="$acl_save_exec_prefix"
9322 prefix="$acl_save_prefix"
9324 if test "X$x" = "X-L$found_dir"; then
9329 if test -z "$haveit"; then
9330 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9332 if test "$hardcode_minus_L" != no; then
9333 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9335 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9341 if test "X$found_a" != "X"; then
9342 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9344 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9347 additional_includedir=
9348 case "$found_dir" in
9350 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9351 additional_includedir="$basedir/include"
9354 if test "X$additional_includedir" != "X"; then
9355 if test "X$additional_includedir" != "X/usr/include"; then
9357 if test "X$additional_includedir" = "X/usr/local/include"; then
9358 if test -n "$GCC"; then
9360 linux*) haveit=yes;;
9364 if test -z "$haveit"; then
9365 for x in $CPPFLAGS $INCICONV; do
9367 acl_save_prefix="$prefix"
9368 prefix="$acl_final_prefix"
9369 acl_save_exec_prefix="$exec_prefix"
9370 exec_prefix="$acl_final_exec_prefix"
9372 exec_prefix="$acl_save_exec_prefix"
9373 prefix="$acl_save_prefix"
9375 if test "X$x" = "X-I$additional_includedir"; then
9380 if test -z "$haveit"; then
9381 if test -d "$additional_includedir"; then
9382 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9388 if test -n "$found_la"; then
9389 save_libdir="$libdir"
9391 */* | *\\*) . "$found_la" ;;
9392 *) . "./$found_la" ;;
9394 libdir="$save_libdir"
9395 for dep in $dependency_libs; do
9398 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9399 if test "X$additional_libdir" != "X/usr/lib"; then
9401 if test "X$additional_libdir" = "X/usr/local/lib"; then
9402 if test -n "$GCC"; then
9404 linux*) haveit=yes;;
9408 if test -z "$haveit"; then
9410 for x in $LDFLAGS $LIBICONV; do
9412 acl_save_prefix="$prefix"
9413 prefix="$acl_final_prefix"
9414 acl_save_exec_prefix="$exec_prefix"
9415 exec_prefix="$acl_final_exec_prefix"
9417 exec_prefix="$acl_save_exec_prefix"
9418 prefix="$acl_save_prefix"
9420 if test "X$x" = "X-L$additional_libdir"; then
9425 if test -z "$haveit"; then
9426 if test -d "$additional_libdir"; then
9427 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9431 for x in $LDFLAGS $LTLIBICONV; do
9433 acl_save_prefix="$prefix"
9434 prefix="$acl_final_prefix"
9435 acl_save_exec_prefix="$exec_prefix"
9436 exec_prefix="$acl_final_exec_prefix"
9438 exec_prefix="$acl_save_exec_prefix"
9439 prefix="$acl_save_prefix"
9441 if test "X$x" = "X-L$additional_libdir"; then
9446 if test -z "$haveit"; then
9447 if test -d "$additional_libdir"; then
9448 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9455 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9456 if test "$enable_rpath" != no; then
9458 for x in $rpathdirs; do
9459 if test "X$x" = "X$dir"; then
9464 if test -z "$haveit"; then
9465 rpathdirs="$rpathdirs $dir"
9468 for x in $ltrpathdirs; do
9469 if test "X$x" = "X$dir"; then
9474 if test -z "$haveit"; then
9475 ltrpathdirs="$ltrpathdirs $dir"
9480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9483 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9486 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9487 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9493 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9494 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9500 if test "X$rpathdirs" != "X"; then
9501 if test -n "$hardcode_libdir_separator"; then
9503 for found_dir in $rpathdirs; do
9504 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9506 acl_save_libdir="$libdir"
9508 eval flag=\"$hardcode_libdir_flag_spec\"
9509 libdir="$acl_save_libdir"
9510 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9512 for found_dir in $rpathdirs; do
9513 acl_save_libdir="$libdir"
9515 eval flag=\"$hardcode_libdir_flag_spec\"
9516 libdir="$acl_save_libdir"
9517 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9521 if test "X$ltrpathdirs" != "X"; then
9522 for found_dir in $ltrpathdirs; do
9523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9533 am_save_CPPFLAGS="$CPPFLAGS"
9535 for element in $INCICONV; do
9537 for x in $CPPFLAGS; do
9539 acl_save_prefix="$prefix"
9540 prefix="$acl_final_prefix"
9541 acl_save_exec_prefix="$exec_prefix"
9542 exec_prefix="$acl_final_exec_prefix"
9544 exec_prefix="$acl_save_exec_prefix"
9545 prefix="$acl_save_prefix"
9547 if test "X$x" = "X$element"; then
9552 if test -z "$haveit"; then
9553 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9559 $as_echo_n "checking for iconv... " >&6; }
9560 if test "${am_cv_func_iconv+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9564 am_cv_func_iconv="no, consider installing GNU libiconv"
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9573 iconv_t cd = iconv_open("","");
9574 iconv(cd,NULL,NULL,NULL,NULL);
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 am_cv_func_iconv=yes
9583 rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 if test "$am_cv_func_iconv" != yes; then
9586 am_save_LIBS="$LIBS"
9587 LIBS="$LIBS $LIBICONV"
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9595 iconv_t cd = iconv_open("","");
9596 iconv(cd,NULL,NULL,NULL,NULL);
9602 if ac_fn_c_try_link "$LINENO"; then :
9604 am_cv_func_iconv=yes
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 LIBS="$am_save_LIBS"
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9613 $as_echo "$am_cv_func_iconv" >&6; }
9614 if test "$am_cv_func_iconv" = yes; then
9616 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9619 if test "$am_cv_lib_iconv" = yes; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9621 $as_echo_n "checking how to link with libiconv... " >&6; }
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9623 $as_echo "$LIBICONV" >&6; }
9625 CPPFLAGS="$am_save_CPPFLAGS"
9632 if test "$am_cv_func_iconv" = yes; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9634 $as_echo_n "checking for iconv declaration... " >&6; }
9635 if test "${am_cv_proto_iconv+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9648 #if defined(__STDC__) || defined(__cplusplus)
9649 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9662 if ac_fn_c_try_compile "$LINENO"; then :
9663 am_cv_proto_iconv_arg1=""
9665 am_cv_proto_iconv_arg1="const"
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668 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);"
9671 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9673 }$am_cv_proto_iconv" >&5
9675 }$am_cv_proto_iconv" >&6; }
9677 cat >>confdefs.h <<_ACEOF
9678 #define ICONV_CONST $am_cv_proto_iconv_arg1
9683 # Until we have in-tree GNU iconv:
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9689 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9690 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9704 if ac_fn_c_try_link "$LINENO"; then :
9705 am_cv_val_LC_MESSAGES=yes
9707 am_cv_val_LC_MESSAGES=no
9709 rm -f core conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9713 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9714 if test $am_cv_val_LC_MESSAGES = yes; then
9716 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9723 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9724 if test "${am_cv_langinfo_codeset+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 #include <langinfo.h>
9733 char* cs = nl_langinfo(CODESET);
9738 if ac_fn_c_try_link "$LINENO"; then :
9739 am_cv_langinfo_codeset=yes
9741 am_cv_langinfo_codeset=no
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9748 $as_echo "$am_cv_langinfo_codeset" >&6; }
9749 if test $am_cv_langinfo_codeset = yes; then
9751 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9756 # We will need to find libiberty.h and ansidecl.h
9757 saved_CFLAGS="$CFLAGS"
9758 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9759 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9760 strsignal strstr strverscmp \
9761 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9762 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
9764 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9766 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9767 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9768 $as_echo_n "(cached) " >&6
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9773 #define $ac_tr_decl 1
9775 #include "ansidecl.h"
9782 char *(*pfn) = (char *(*)) $ac_func ;
9788 if ac_fn_c_try_compile "$LINENO"; then :
9789 eval "gcc_cv_have_decl_$ac_func=yes"
9791 eval "gcc_cv_have_decl_$ac_func=no"
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9798 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9799 #define $ac_tr_decl 1
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9805 #define $ac_tr_decl 0
9813 for ac_func in getrlimit setrlimit getrusage
9815 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9817 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9818 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9819 $as_echo_n "(cached) " >&6
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9824 #define $ac_tr_decl 1
9826 #include "ansidecl.h"
9828 #ifdef HAVE_SYS_RESOURCE_H
9829 #include <sys/resource.h>
9837 char *(*pfn) = (char *(*)) $ac_func ;
9843 if ac_fn_c_try_compile "$LINENO"; then :
9844 eval "gcc_cv_have_decl_$ac_func=yes"
9846 eval "gcc_cv_have_decl_$ac_func=no"
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9853 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9854 #define $ac_tr_decl 1
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9860 #define $ac_tr_decl 0
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9871 #include "ansidecl.h"
9873 #ifdef HAVE_SYS_RESOURCE_H
9874 #include <sys/resource.h>
9885 if ac_fn_c_try_compile "$LINENO"; then :
9889 $as_echo "#define rlim_t long" >>confdefs.h
9892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9895 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9896 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9897 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9898 for ac_func in ldgetname
9900 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9902 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9903 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9904 $as_echo_n "(cached) " >&6
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9909 #define $ac_tr_decl 1
9911 #include "ansidecl.h"
9924 char *(*pfn) = (char *(*)) $ac_func ;
9930 if ac_fn_c_try_compile "$LINENO"; then :
9931 eval "gcc_cv_have_decl_$ac_func=yes"
9933 eval "gcc_cv_have_decl_$ac_func=no"
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9940 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9941 #define $ac_tr_decl 1
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9947 #define $ac_tr_decl 0
9955 for ac_func in times
9957 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9959 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9960 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9961 $as_echo_n "(cached) " >&6
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9966 #define $ac_tr_decl 1
9968 #include "ansidecl.h"
9970 #ifdef HAVE_SYS_TIMES_H
9971 #include <sys/times.h>
9979 char *(*pfn) = (char *(*)) $ac_func ;
9985 if ac_fn_c_try_compile "$LINENO"; then :
9986 eval "gcc_cv_have_decl_$ac_func=yes"
9988 eval "gcc_cv_have_decl_$ac_func=no"
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9995 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9996 #define $ac_tr_decl 1
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10002 #define $ac_tr_decl 0
10010 for ac_func in sigaltstack
10012 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10014 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10015 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10016 $as_echo_n "(cached) " >&6
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10021 #define $ac_tr_decl 1
10023 #include "ansidecl.h"
10024 #include "system.h"
10025 #include <signal.h>
10032 char *(*pfn) = (char *(*)) $ac_func ;
10038 if ac_fn_c_try_compile "$LINENO"; then :
10039 eval "gcc_cv_have_decl_$ac_func=yes"
10041 eval "gcc_cv_have_decl_$ac_func=no"
10043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10048 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10049 #define $ac_tr_decl 1
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10055 #define $ac_tr_decl 0
10063 # More time-related stuff.
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10065 $as_echo_n "checking for struct tms... " >&6; }
10066 if test "${ac_cv_struct_tms+set}" = set; then :
10067 $as_echo_n "(cached) " >&6
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10073 #include "ansidecl.h"
10074 #include "system.h"
10075 #ifdef HAVE_SYS_TIMES_H
10076 #include <sys/times.h>
10087 if ac_fn_c_try_compile "$LINENO"; then :
10088 ac_cv_struct_tms=yes
10090 ac_cv_struct_tms=no
10092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10095 $as_echo "$ac_cv_struct_tms" >&6; }
10096 if test $ac_cv_struct_tms = yes; then
10098 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10102 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10103 # revisit after autoconf 2.50.
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10105 $as_echo_n "checking for clock_t... " >&6; }
10106 if test "${gcc_cv_type_clock_t+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10113 #include "ansidecl.h"
10114 #include "system.h"
10124 if ac_fn_c_try_compile "$LINENO"; then :
10125 gcc_cv_type_clock_t=yes
10127 gcc_cv_type_clock_t=no
10129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10132 $as_echo "$gcc_cv_type_clock_t" >&6; }
10133 if test $gcc_cv_type_clock_t = yes; then
10135 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10139 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10140 CFLAGS="$saved_CFLAGS"
10142 # Check whether --enable-initfini-array was given.
10143 if test "${enable_initfini_array+set}" = set; then :
10144 enableval=$enable_initfini_array;
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10148 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10149 if test "${gcc_cv_initfini_array+set}" = set; then :
10150 $as_echo_n "(cached) " >&6
10152 if test "$cross_compiling" = yes; then :
10153 gcc_cv_initfini_array=no
10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h. */
10159 int main (void) { return x; }
10160 int foo (void) { x = 0; }
10161 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10163 if ac_fn_c_try_run "$LINENO"; then :
10164 gcc_cv_initfini_array=yes
10166 gcc_cv_initfini_array=no
10168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10169 conftest.$ac_objext conftest.beam conftest.$ac_ext
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10174 $as_echo "$gcc_cv_initfini_array" >&6; }
10175 enable_initfini_array=$gcc_cv_initfini_array
10179 if test $enable_initfini_array = yes; then
10181 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10185 # mkdir takes a single argument on some systems.
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10187 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10188 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10194 #include <sys/types.h>
10195 #ifdef HAVE_SYS_STAT_H
10196 # include <sys/stat.h>
10198 #ifdef HAVE_UNISTD_H
10199 # include <unistd.h>
10201 #ifdef HAVE_DIRECT_H
10202 # include <direct.h>
10212 if ac_fn_c_try_compile "$LINENO"; then :
10213 gcc_cv_mkdir_takes_one_arg=no
10215 gcc_cv_mkdir_takes_one_arg=yes
10217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10220 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10221 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10223 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10234 # With Setjmp/Longjmp based exception handling.
10235 # Check whether --enable-sjlj-exceptions was given.
10236 if test "${enable_sjlj_exceptions+set}" = set; then :
10237 enableval=$enable_sjlj_exceptions; case $target in
10239 if test $enableval != yes; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10241 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10246 force_sjlj_exceptions=yes
10250 force_sjlj_exceptions=yes
10254 force_sjlj_exceptions=no
10259 if test $force_sjlj_exceptions = yes; then
10260 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10262 cat >>confdefs.h <<_ACEOF
10263 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10268 # For platforms with the unwind ABI which includes an unwind library,
10269 # libunwind, we can choose to use the system libunwind.
10270 # config.gcc also contains tests of with_system_libunwind.
10273 # Check whether --with-system-libunwind was given.
10274 if test "${with_system_libunwind+set}" = set; then :
10275 withval=$with_system_libunwind;
10278 # If system-libunwind was not specifically set, pick a default setting.
10279 if test x$with_system_libunwind = x; then
10281 ia64-*-hpux*) with_system_libunwind=yes ;;
10282 *) with_system_libunwind=no ;;
10285 # Based on system-libunwind and target, do we have ipinfo?
10286 if test x$with_system_libunwind = xyes; then
10288 ia64-*-*) have_unwind_getipinfo=no ;;
10289 *) have_unwind_getipinfo=yes ;;
10292 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10295 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10296 *) have_unwind_getipinfo=yes ;;
10301 if test x$have_unwind_getipinfo = xyes; then
10303 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10308 # --------------------------------------------------------
10309 # Build, host, and target specific configuration fragments
10310 # --------------------------------------------------------
10312 # Collect build-machine-specific information.
10313 . ${srcdir}/config.build
10315 # Collect host-machine-specific information.
10316 . ${srcdir}/config.host
10320 # Collect target-machine-specific information.
10321 . ${srcdir}/config.gcc
10323 extra_objs="${host_extra_objs} ${extra_objs}"
10324 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10326 # Default the target-machine variables that were not explicitly set.
10327 if test x"$tm_file" = x
10328 then tm_file=$cpu_type/$cpu_type.h; fi
10330 if test x"$extra_headers" = x
10331 then extra_headers=; fi
10333 if test x$md_file = x
10334 then md_file=$cpu_type/$cpu_type.md; fi
10336 if test x$out_file = x
10337 then out_file=$cpu_type/$cpu_type.c; fi
10339 if test x"$tmake_file" = x
10340 then tmake_file=$cpu_type/t-$cpu_type
10343 if test x"$dwarf2" = xyes
10344 then tm_file="$tm_file tm-dwarf2.h"
10347 # Say what files are being used for the output code and MD file.
10348 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10349 echo "Using \`$srcdir/config/$md_file' as machine description file."
10351 # If any of the xm_file variables contain nonexistent files, warn
10352 # about them and drop them.
10355 for x in $build_xm_file; do
10356 if test -f $srcdir/config/$x
10358 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10359 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10362 build_xm_file="$bx"
10365 for x in $host_xm_file; do
10366 if test -f $srcdir/config/$x
10368 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10369 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10375 for x in $xm_file; do
10376 if test -f $srcdir/config/$x
10378 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10379 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10385 for f in $tm_file; do
10388 if test $count = ax; then
10389 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10391 echo "Using the following target machine macro files:"
10392 for f in $tm_file; do
10393 echo " $srcdir/config/$f"
10397 if test x$need_64bit_hwint = xyes; then
10399 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10403 if test x$use_long_long_for_widest_fast_int = xyes; then
10405 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10410 for f in $host_xm_file; do
10413 if test $count = a; then
10415 elif test $count = ax; then
10416 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10418 echo "Using the following host machine macro files:"
10419 for f in $host_xm_file; do
10420 echo " $srcdir/config/$f"
10423 echo "Using ${out_host_hook_obj} for host machine hooks."
10425 if test "$host_xm_file" != "$build_xm_file"; then
10427 for f in $build_xm_file; do
10430 if test $count = a; then
10432 elif test $count = ax; then
10433 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10435 echo "Using the following build machine macro files:"
10436 for f in $build_xm_file; do
10437 echo " $srcdir/config/$f"
10443 powerpc*-*-darwin*)
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10445 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10446 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10452 #include <sys/cdefs.h>
10453 #include <sys/signal.h>
10454 #include <ucontext.h>
10455 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10458 if ac_fn_c_try_compile "$LINENO"; then :
10459 gcc_cv_mcontext_underscores=no
10461 gcc_cv_mcontext_underscores=yes
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10466 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10467 if test $gcc_cv_mcontext_underscores = yes; then
10469 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10479 # Check if a valid thread package
10480 case ${enable_threads} in
10483 target_thread_file='single'
10487 target_thread_file='single'
10489 aix | dce | gnat | irix | posix | posix95 | rtems | \
10490 single | solaris | vxworks | win32 | mipssde)
10491 target_thread_file=${enable_threads}
10494 echo "${enable_threads} is an unknown thread package" 1>&2
10499 if test x${thread_file} = x; then
10500 # No thread file set by target-specific clauses in config.gcc,
10501 # so use file chosen by default logic above
10502 thread_file=${target_thread_file}
10505 # Make gthr-default.h if we have a thread file.
10507 if test $thread_file != single; then
10508 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10509 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10510 rm -f gthr-default.h-t
10512 mv -f gthr-default.h-t gthr-default.h
10514 gthread_flags=-DHAVE_GTHR_DEFAULT
10523 if test x$enable___cxa_atexit = xyes || \
10524 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10525 if test x$host = x$target; then
10527 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10528 # keyed to flag_use_cxa_atexit
10533 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10534 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10537 echo "__cxa_atexit can't be enabled on this target"
10543 # We can't check for __cxa_atexit when building a cross, so assume
10547 if test x$use_cxa_atexit = xyes; then
10549 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10554 # Look for a file containing extra machine modes.
10555 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10556 extra_modes_file='$(srcdir)'/config/${extra_modes}
10559 cat >>confdefs.h <<_ACEOF
10560 #define EXTRA_MODES_FILE "config/$extra_modes"
10565 # Convert extra_options into a form suitable for Makefile use.
10567 for f in $extra_options; do
10568 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10572 # auto-host.h is the file containing items generated by autoconf and is
10573 # the first file included by config.h.
10574 # If host=build, it is correct to have bconfig include auto-host.h
10575 # as well. If host!=build, we are in error and need to do more
10576 # work to find out the build config parameters.
10577 if test x$host = x$build
10579 build_auto=auto-host.h
10581 # We create a subdir, then run autoconf in the subdir.
10582 # To prevent recursion we set host and build for the new
10583 # invocation of configure to the build for this invocation
10590 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10591 *) realsrcdir=../${srcdir};;
10593 saved_CFLAGS="${CFLAGS}"
10594 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10595 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10596 ${realsrcdir}/configure \
10597 --enable-languages=${enable_languages-all} \
10598 --target=$target_alias --host=$build_alias --build=$build_alias
10599 CFLAGS="${saved_CFLAGS}"
10601 # We just finished tests for the build machine, so rename
10602 # the file auto-build.h in the gcc directory.
10603 mv auto-host.h ../auto-build.h
10606 build_auto=auto-build.h
10610 tm_file="${tm_file} defaults.h"
10611 tm_p_file="${tm_p_file} tm-preds.h"
10612 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10613 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10614 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10615 # put this back in temporarily.
10616 xm_file="auto-host.h ansidecl.h ${xm_file}"
10622 # Compile in configure arguments.
10623 if test -f configargs.h ; then
10624 # Being re-configured.
10625 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10626 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10628 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10631 # Double all backslashes and backslash all quotes to turn
10632 # gcc_config_arguments into a C string.
10633 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10634 $gcc_config_arguments
10636 gcc_config_arguments_str=`cat conftest.out`
10639 cat > configargs.h <<EOF
10640 /* Generated automatically. */
10641 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10642 static const char thread_model[] = "$thread_file";
10644 static const struct {
10645 const char *name, *value;
10646 } configure_default_options[] = $configure_default_options;
10649 gcc_BASEVER=`cat $srcdir/BASE-VER`
10650 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10651 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10652 if test -f $srcdir/REVISION ; then
10653 gcc_REVISION=`cat $srcdir/REVISION`
10657 cat > plugin-version.h <<EOF
10658 #include "configargs.h"
10660 static char basever[] = "$gcc_BASEVER";
10661 static char datestamp[] = "$gcc_DATESTAMP";
10662 static char devphase[] = "$gcc_DEVPHASE";
10663 static char revision[] = "$gcc_REVISION";
10665 /* FIXME plugins: We should make the version information more precise.
10666 One way to do is to add a checksum. */
10668 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10669 devphase, revision,
10670 configuration_arguments};
10673 # Internationalization
10674 # If we haven't got the data from the intl directory,
10675 # assume NLS is disabled.
10684 if test -f ../intl/config.intl; then
10685 . ../intl/config.intl
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10688 $as_echo_n "checking whether NLS is requested... " >&6; }
10689 if test x"$USE_NLS" != xyes; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10694 $as_echo "yes" >&6; }
10696 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10700 $as_echo_n "checking for catalogs to be installed... " >&6; }
10701 # Look for .po and .gmo files in the source directory.
10704 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10705 # If there aren't any .gmo files the shell will give us the
10706 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10708 case "$cat" in *\**)
10711 # The quadruple backslash is collapsed to a double backslash
10712 # by the backticks, then collapsed again by the double quotes,
10713 # leaving us with one backslash in the sed expression (right
10714 # before the dot that mustn't act as a wildcard).
10715 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10716 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10717 # The user is allowed to set LINGUAS to a list of languages to
10718 # install catalogs for. If it's empty that means "all of them."
10719 if test "x$LINGUAS" = x; then
10720 CATALOGS="$CATALOGS $cat"
10721 XLINGUAS="$XLINGUAS $lang"
10723 case "$LINGUAS" in *$lang*)
10724 CATALOGS="$CATALOGS $cat"
10725 XLINGUAS="$XLINGUAS $lang"
10730 LINGUAS="$XLINGUAS"
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10732 $as_echo "$LINGUAS" >&6; }
10745 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10746 # -liconv on the link line twice.
10747 case "$LIBINTL" in *$LIBICONV*)
10751 # Check whether --enable-secureplt was given.
10752 if test "${enable_secureplt+set}" = set; then :
10753 enableval=$enable_secureplt;
10757 # Check whether --enable-cld was given.
10758 if test "${enable_cld+set}" = set; then :
10759 enableval=$enable_cld;
10765 # Windows32 Registry support for specifying GCC installation paths.
10766 # Check whether --enable-win32-registry was given.
10767 if test "${enable_win32_registry+set}" = set; then :
10768 enableval=$enable_win32_registry;
10773 win32 | pe | cygwin* | mingw32* | uwin*)
10774 if test "x$enable_win32_registry" != xno; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10776 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10777 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10778 $as_echo_n "(cached) " >&6
10780 ac_func_search_save_LIBS=$LIBS
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10790 char RegOpenKeyExA ();
10794 return RegOpenKeyExA ();
10799 for ac_lib in '' advapi32; do
10800 if test -z "$ac_lib"; then
10801 ac_res="none required"
10804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10806 if ac_fn_c_try_link "$LINENO"; then :
10807 ac_cv_search_RegOpenKeyExA=$ac_res
10809 rm -f core conftest.err conftest.$ac_objext \
10811 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10815 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10818 ac_cv_search_RegOpenKeyExA=no
10820 rm conftest.$ac_ext
10821 LIBS=$ac_func_search_save_LIBS
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10824 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10825 ac_res=$ac_cv_search_RegOpenKeyExA
10826 if test "$ac_res" != no; then :
10827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10830 enable_win32_registry=no
10835 if test "x$enable_win32_registry" != xno; then
10837 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10840 if test "x$enable_win32_registry" != xyes \
10841 && test "x$enable_win32_registry" != x; then
10843 cat >>confdefs.h <<_ACEOF
10844 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10852 # Get an absolute path to the GCC top-level source directory
10853 holddir=`${PWDCMD-pwd}`
10855 topdir=`${PWDCMD-pwd}`
10858 # Conditionalize the makefile for this host machine.
10860 for f in ${host_xmake_file}
10862 if test -f ${srcdir}/config/$f
10864 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10868 # Conditionalize the makefile for this target machine.
10870 for f in ${tmake_file}
10872 if test -f ${srcdir}/config/$f
10874 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10877 tmake_file="${tmake_file_}"
10879 out_object_file=`basename $out_file .c`.o
10881 tm_file_list="options.h"
10882 tm_include_list="options.h"
10883 for f in $tm_file; do
10886 f=`echo $f | sed 's/^..//'`
10887 tm_file_list="${tm_file_list} $f"
10888 tm_include_list="${tm_include_list} $f"
10891 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10892 tm_include_list="${tm_include_list} $f"
10895 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10896 tm_include_list="${tm_include_list} config/$f"
10903 for f in $tm_p_file; do
10906 tm_p_file_list="${tm_p_file_list} $f"
10907 tm_p_include_list="${tm_p_include_list} $f"
10910 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10911 tm_p_include_list="${tm_p_include_list} config/$f"
10917 for f in $xm_file; do
10920 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10921 xm_include_list="${xm_include_list} $f"
10924 xm_file_list="${xm_file_list} $f"
10925 xm_include_list="${xm_include_list} $f"
10928 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10929 xm_include_list="${xm_include_list} config/$f"
10935 host_xm_include_list=
10936 for f in $host_xm_file; do
10939 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10940 host_xm_include_list="${host_xm_include_list} $f"
10943 host_xm_file_list="${host_xm_file_list} $f"
10944 host_xm_include_list="${host_xm_include_list} $f"
10947 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10948 host_xm_include_list="${host_xm_include_list} config/$f"
10953 build_xm_file_list=
10954 for f in $build_xm_file; do
10957 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10958 build_xm_include_list="${build_xm_include_list} $f"
10960 auto-build.h | auto-host.h )
10961 build_xm_file_list="${build_xm_file_list} $f"
10962 build_xm_include_list="${build_xm_include_list} $f"
10965 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10966 build_xm_include_list="${build_xm_include_list} config/$f"
10971 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10972 # cross-compiler which does not use the native headers and libraries.
10973 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10976 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10978 if test "x$with_build_sysroot" != x; then
10979 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10981 # This value is used, even on a native system, because
10982 # CROSS_SYSTEM_HEADER_DIR is just
10983 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10984 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10987 if test x$host != x$target
10989 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10991 SYSTEM_HEADER_DIR=$build_system_header_dir
10992 case "$host","$target" in
10993 # Darwin crosses can use the host system's libraries and headers,
10994 # because of the fat library support. Of course, it must be the
10995 # same version of Darwin on both sides. Allow the user to
10996 # just say --target=foo-darwin without a version number to mean
10997 # "the version on this system".
10998 *-*-darwin*,*-*-darwin*)
10999 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11000 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11001 if test $hostos = $targetos -o $targetos = darwin ; then
11003 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11008 i?86-*-*,x86_64-*-* \
11009 | powerpc*-*-*,powerpc64*-*-*)
11010 CROSS="$CROSS -DNATIVE_CROSS" ;;
11012 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11013 SYSTEM_HEADER_DIR=$build_system_header_dir
11016 # If this is a cross-compiler that does not
11017 # have its own set of headers then define
11020 # If this is using newlib, without having the headers available now,
11021 # then define inhibit_libc in LIBGCC2_CFLAGS.
11022 # This prevents libgcc2 from containing any code which requires libc
11024 : ${inhibit_libc=false}
11025 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11026 test x$with_newlib = xyes ; } &&
11027 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11032 # When building gcc with a cross-compiler, we need to adjust things so
11033 # that the generator programs are still built with the native compiler.
11034 # Also, we cannot run fixincludes.
11036 # These are the normal (build=host) settings:
11037 CC_FOR_BUILD='$(CC)'
11038 BUILD_CFLAGS='$(ALL_CFLAGS)'
11039 BUILD_LDFLAGS='$(LDFLAGS)'
11040 STMP_FIXINC=stmp-fixinc
11042 # And these apply if build != host, or we are generating coverage data
11043 if test x$build != x$host || test "x$coverage_flags" != x
11045 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11046 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11049 # Expand extra_headers to include complete path.
11050 # This substitutes for lots of t-* files.
11051 extra_headers_list=
11052 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11053 for file in ${extra_headers} ; do
11054 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11057 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11058 if test x"$use_gcc_tgmath" = xyes
11059 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11062 # Define collect2 in Makefile.
11063 case $host_can_use_collect2 in
11065 *) collect2='collect2$(exeext)' ;;
11069 # Add a definition of USE_COLLECT2 if system wants one.
11070 case $use_collect2 in
11071 no) use_collect2= ;;
11074 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11075 xm_defines="${xm_defines} USE_COLLECT2"
11076 case $host_can_use_collect2 in
11078 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11084 # ---------------------------
11085 # Assembler & linker features
11086 # ---------------------------
11088 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11089 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11090 # However when ld-new is first executed from the build tree, libtool will
11091 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11092 # to the build tree. While doing this we need to use the previous-stage
11093 # linker, or we have an infinite loop. The presence of a shell script as
11094 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11095 # the gcc/collect-ld script. So we need to know how libtool works, or
11096 # exec-tool will fail.
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11102 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11107 macro_version='2.2.6'
11108 macro_revision='1.3012'
11122 ltmain="$ac_aux_dir/ltmain.sh"
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11126 if test "${ac_cv_path_SED+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
11129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11130 for ac_i in 1 2 3 4 5 6 7; do
11131 ac_script="$ac_script$as_nl$ac_script"
11133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11134 { ac_script=; unset ac_script;}
11135 if test -z "$SED"; then
11136 ac_path_SED_found=false
11137 # Loop through the user's path and test for each of PROGNAME-LIST
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11142 test -z "$as_dir" && as_dir=.
11143 for ac_prog in sed gsed; do
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11146 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11147 # Check for GNU ac_path_SED and select it if it is found.
11148 # Check for GNU $ac_path_SED
11149 case `"$ac_path_SED" --version 2>&1` in
11151 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11154 $as_echo_n 0123456789 >"conftest.in"
11157 cat "conftest.in" "conftest.in" >"conftest.tmp"
11158 mv "conftest.tmp" "conftest.in"
11159 cp "conftest.in" "conftest.nl"
11160 $as_echo '' >> "conftest.nl"
11161 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11163 as_fn_arith $ac_count + 1 && ac_count=$as_val
11164 if test $ac_count -gt ${ac_path_SED_max-0}; then
11165 # Best one so far, save it but keep looking for a better one
11166 ac_cv_path_SED="$ac_path_SED"
11167 ac_path_SED_max=$ac_count
11169 # 10*(2^10) chars as input seems more than enough
11170 test $ac_count -gt 10 && break
11172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11175 $ac_path_SED_found && break 3
11180 if test -z "$ac_cv_path_SED"; then
11181 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11184 ac_cv_path_SED=$SED
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11189 $as_echo "$ac_cv_path_SED" >&6; }
11190 SED="$ac_cv_path_SED"
11193 test -z "$SED" && SED=sed
11194 Xsed="$SED -e 1s/^X//"
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11207 $as_echo_n "checking for fgrep... " >&6; }
11208 if test "${ac_cv_path_FGREP+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11212 then ac_cv_path_FGREP="$GREP -F"
11214 if test -z "$FGREP"; then
11215 ac_path_FGREP_found=false
11216 # Loop through the user's path and test for each of PROGNAME-LIST
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11221 test -z "$as_dir" && as_dir=.
11222 for ac_prog in fgrep; do
11223 for ac_exec_ext in '' $ac_executable_extensions; do
11224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11226 # Check for GNU ac_path_FGREP and select it if it is found.
11227 # Check for GNU $ac_path_FGREP
11228 case `"$ac_path_FGREP" --version 2>&1` in
11230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11233 $as_echo_n 0123456789 >"conftest.in"
11236 cat "conftest.in" "conftest.in" >"conftest.tmp"
11237 mv "conftest.tmp" "conftest.in"
11238 cp "conftest.in" "conftest.nl"
11239 $as_echo 'FGREP' >> "conftest.nl"
11240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11242 as_fn_arith $ac_count + 1 && ac_count=$as_val
11243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11244 # Best one so far, save it but keep looking for a better one
11245 ac_cv_path_FGREP="$ac_path_FGREP"
11246 ac_path_FGREP_max=$ac_count
11248 # 10*(2^10) chars as input seems more than enough
11249 test $ac_count -gt 10 && break
11251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11254 $ac_path_FGREP_found && break 3
11259 if test -z "$ac_cv_path_FGREP"; then
11260 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11263 ac_cv_path_FGREP=$FGREP
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11269 $as_echo "$ac_cv_path_FGREP" >&6; }
11270 FGREP="$ac_cv_path_FGREP"
11273 test -z "$GREP" && GREP=grep
11293 # Check whether --with-gnu-ld was given.
11294 if test "${with_gnu_ld+set}" = set; then :
11295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11301 if test "$GCC" = yes; then
11302 # Check if gcc -print-prog-name=ld gives a path.
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11304 $as_echo_n "checking for ld used by $CC... " >&6; }
11307 # gcc leaves a trailing carriage return which upsets mingw
11308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11313 # Accept absolute paths.
11315 re_direlt='/[^/][^/]*/\.\./'
11316 # Canonicalize the pathname of ld
11317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11321 test -z "$LD" && LD="$ac_prog"
11324 # If it fails, then pretend we aren't using GCC.
11328 # If it is relative, then search for the first ld in PATH.
11329 with_gnu_ld=unknown
11332 elif test "$with_gnu_ld" = yes; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11334 $as_echo_n "checking for GNU ld... " >&6; }
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11337 $as_echo_n "checking for non-GNU ld... " >&6; }
11339 if test "${lt_cv_path_LD+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11342 if test -z "$LD"; then
11343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11344 for ac_dir in $PATH; do
11346 test -z "$ac_dir" && ac_dir=.
11347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11348 lt_cv_path_LD="$ac_dir/$ac_prog"
11349 # Check to see if the program is GNU ld. I'd rather use --version,
11350 # but apparently some variants of GNU ld only accept -v.
11351 # Break only if it was the GNU/non-GNU ld that we prefer.
11352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11353 *GNU* | *'with BFD'*)
11354 test "$with_gnu_ld" != no && break
11357 test "$with_gnu_ld" != yes && break
11364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11368 LD="$lt_cv_path_LD"
11369 if test -n "$LD"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11371 $as_echo "$LD" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11376 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11383 case `$LD -v 2>&1 </dev/null` in
11384 *GNU* | *'with BFD'*)
11385 lt_cv_prog_gnu_ld=yes
11388 lt_cv_prog_gnu_ld=no
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11394 with_gnu_ld=$lt_cv_prog_gnu_ld
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11406 if test "${lt_cv_path_NM+set}" = set; then :
11407 $as_echo_n "(cached) " >&6
11409 if test -n "$NM"; then
11410 # Let the user override the test.
11411 lt_cv_path_NM="$NM"
11413 lt_nm_to_check="${ac_tool_prefix}nm"
11414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11415 lt_nm_to_check="$lt_nm_to_check nm"
11417 for lt_tmp_nm in $lt_nm_to_check; do
11418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11421 test -z "$ac_dir" && ac_dir=.
11422 tmp_nm="$ac_dir/$lt_tmp_nm"
11423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11424 # Check to see if the nm accepts a BSD-compat flag.
11425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11426 # nm: unknown option "B" ignored
11427 # Tru64's nm complains that /dev/null is an invalid object file
11428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11429 */dev/null* | *'Invalid file or object type'*)
11430 lt_cv_path_NM="$tmp_nm -B"
11434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11436 lt_cv_path_NM="$tmp_nm -p"
11440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11441 continue # so that we can try to find one that supports BSD flags
11450 : ${lt_cv_path_NM=no}
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11454 $as_echo "$lt_cv_path_NM" >&6; }
11455 if test "$lt_cv_path_NM" != "no"; then
11456 NM="$lt_cv_path_NM"
11458 # Didn't find any BSD compatible name lister, look for dumpbin.
11459 if test -n "$ac_tool_prefix"; then
11460 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11469 if test -n "$DUMPBIN"; then
11470 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11479 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489 DUMPBIN=$ac_cv_prog_DUMPBIN
11490 if test -n "$DUMPBIN"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11492 $as_echo "$DUMPBIN" >&6; }
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11499 test -n "$DUMPBIN" && break
11502 if test -z "$DUMPBIN"; then
11503 ac_ct_DUMPBIN=$DUMPBIN
11504 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11506 # Extract the first word of "$ac_prog", so it can be a program name with args.
11507 set dummy $ac_prog; ac_word=$2
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509 $as_echo_n "checking for $ac_word... " >&6; }
11510 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11513 if test -n "$ac_ct_DUMPBIN"; then
11514 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11534 if test -n "$ac_ct_DUMPBIN"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11536 $as_echo "$ac_ct_DUMPBIN" >&6; }
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11543 test -n "$ac_ct_DUMPBIN" && break
11546 if test "x$ac_ct_DUMPBIN" = x; then
11549 case $cross_compiling:$ac_tool_warned in
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11553 ac_tool_warned=yes ;;
11555 DUMPBIN=$ac_ct_DUMPBIN
11560 if test "$DUMPBIN" != ":"; then
11564 test -z "$NM" && NM=nm
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11572 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11573 if test "${lt_cv_nm_interface+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11576 lt_cv_nm_interface="BSD nm"
11577 echo "int some_variable = 0;" > conftest.$ac_ext
11578 (eval echo "\"\$as_me:11578: $ac_compile\"" >&5)
11579 (eval "$ac_compile" 2>conftest.err)
11580 cat conftest.err >&5
11581 (eval echo "\"\$as_me:11581: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11582 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11583 cat conftest.err >&5
11584 (eval echo "\"\$as_me:11584: output\"" >&5)
11585 cat conftest.out >&5
11586 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11587 lt_cv_nm_interface="MS dumpbin"
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11592 $as_echo "$lt_cv_nm_interface" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11595 $as_echo_n "checking whether ln -s works... " >&6; }
11597 if test "$LN_S" = "ln -s"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599 $as_echo "yes" >&6; }
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11602 $as_echo "no, using $LN_S" >&6; }
11605 # find the maximum length of command line arguments
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11607 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11608 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11609 $as_echo_n "(cached) " >&6
11616 # On DJGPP, this test can blow up pretty badly due to problems in libc
11617 # (any single argument exceeding 2000 bytes causes a buffer overrun
11618 # during glob expansion). Even if it were fixed, the result of this
11619 # check would be larger than it should be.
11620 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11624 # Under GNU Hurd, this test is not required because there is
11625 # no limit to the length of command line arguments.
11626 # Libtool will interpret -1 as no limit whatsoever
11627 lt_cv_sys_max_cmd_len=-1;
11630 cygwin* | mingw* | cegcc*)
11631 # On Win9x/ME, this test blows up -- it succeeds, but takes
11632 # about 5 minutes as the teststring grows exponentially.
11633 # Worse, since 9x/ME are not pre-emptively multitasking,
11634 # you end up with a "frozen" computer, even though with patience
11635 # the test eventually succeeds (with a max line length of 256k).
11636 # Instead, let's just punt: use the minimum linelength reported by
11637 # all of the supported platforms: 8192 (on NT/2K/XP).
11638 lt_cv_sys_max_cmd_len=8192;
11642 # On AmigaOS with pdksh, this test takes hours, literally.
11643 # So we just punt and use a minimum line length of 8192.
11644 lt_cv_sys_max_cmd_len=8192;
11647 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11648 # This has been around since 386BSD, at least. Likely further.
11649 if test -x /sbin/sysctl; then
11650 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11651 elif test -x /usr/sbin/sysctl; then
11652 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11654 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11656 # And add a safety zone
11657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11662 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11663 lt_cv_sys_max_cmd_len=196608
11667 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11668 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11669 # nice to cause kernel panics so lets avoid the loop below.
11670 # First set a reasonable default.
11671 lt_cv_sys_max_cmd_len=16384
11673 if test -x /sbin/sysconfig; then
11674 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11675 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11680 lt_cv_sys_max_cmd_len=102400
11682 sysv5* | sco5v6* | sysv4.2uw2*)
11683 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11684 if test -n "$kargmax"; then
11685 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11687 lt_cv_sys_max_cmd_len=32768
11691 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11692 if test -n "$lt_cv_sys_max_cmd_len"; then
11693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11696 # Make teststring a little bigger before we do anything with it.
11697 # a 1K string should be a reasonable start.
11698 for i in 1 2 3 4 5 6 7 8 ; do
11699 teststring=$teststring$teststring
11701 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11702 # If test is not a shell built-in, we'll probably end up computing a
11703 # maximum length that is only half of the actual maximum length, but
11705 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11706 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11707 test $i != 17 # 1/2 MB should be enough
11710 teststring=$teststring$teststring
11712 # Only check the string length outside the loop.
11713 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11715 # Add a significant safety factor because C++ compilers can tack on
11716 # massive amounts of additional arguments before passing them to the
11717 # linker. It appears as though 1/2 is a usable value.
11718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11725 if test -n $lt_cv_sys_max_cmd_len ; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11727 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11730 $as_echo "none" >&6; }
11732 max_cmd_len=$lt_cv_sys_max_cmd_len
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11744 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11745 # Try some XSI features
11747 ( _lt_dummy="a/b/c"
11748 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11750 && eval 'test $(( 1 + 1 )) -eq 2 \
11751 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11754 $as_echo "$xsi_shell" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11758 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11760 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11762 && lt_shell_append=yes
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11764 $as_echo "$lt_shell_append" >&6; }
11767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11777 # test EBCDIC or ASCII
11778 case `echo X|tr X '\101'` in
11779 A) # ASCII based system
11780 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11781 lt_SP2NL='tr \040 \012'
11782 lt_NL2SP='tr \015\012 \040\040'
11784 *) # EBCDIC based system
11785 lt_SP2NL='tr \100 \n'
11786 lt_NL2SP='tr \r\n \100\100'
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11799 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11800 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
11803 lt_cv_ld_reload_flag='-r'
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11806 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11807 reload_flag=$lt_cv_ld_reload_flag
11808 case $reload_flag in
11810 *) reload_flag=" $reload_flag" ;;
11812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11815 if test "$GCC" = yes; then
11816 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11831 if test -n "$ac_tool_prefix"; then
11832 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11833 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11837 $as_echo_n "(cached) " >&6
11839 if test -n "$OBJDUMP"; then
11840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859 OBJDUMP=$ac_cv_prog_OBJDUMP
11860 if test -n "$OBJDUMP"; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11862 $as_echo "$OBJDUMP" >&6; }
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11870 if test -z "$ac_cv_prog_OBJDUMP"; then
11871 ac_ct_OBJDUMP=$OBJDUMP
11872 # Extract the first word of "objdump", so it can be a program name with args.
11873 set dummy objdump; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11877 $as_echo_n "(cached) " >&6
11879 if test -n "$ac_ct_OBJDUMP"; then
11880 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11889 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11899 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11900 if test -n "$ac_ct_OBJDUMP"; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11902 $as_echo "$ac_ct_OBJDUMP" >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11908 if test "x$ac_ct_OBJDUMP" = x; then
11911 case $cross_compiling:$ac_tool_warned in
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11915 ac_tool_warned=yes ;;
11917 OBJDUMP=$ac_ct_OBJDUMP
11920 OBJDUMP="$ac_cv_prog_OBJDUMP"
11923 test -z "$OBJDUMP" && OBJDUMP=objdump
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11934 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11935 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11938 lt_cv_file_magic_cmd='$MAGIC_CMD'
11939 lt_cv_file_magic_test_file=
11940 lt_cv_deplibs_check_method='unknown'
11941 # Need to set the preceding variable on all platforms that support
11942 # interlibrary dependencies.
11943 # 'none' -- dependencies not supported.
11944 # `unknown' -- same as none, but documents that we really don't know.
11945 # 'pass_all' -- all dependencies passed with no checks.
11946 # 'test_compile' -- check by making test program.
11947 # 'file_magic [[regex]]' -- check by looking for files in library path
11948 # which responds to the $file_magic_cmd with a given extended regex.
11949 # If you have `file' or equivalent on your system and you're not sure
11950 # whether `pass_all' will *always* work, you probably want this one.
11954 lt_cv_deplibs_check_method=pass_all
11958 lt_cv_deplibs_check_method=pass_all
11962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11963 lt_cv_file_magic_cmd='/usr/bin/file -L'
11964 lt_cv_file_magic_test_file=/shlib/libc.so
11968 # func_win32_libid is a shell function defined in ltmain.sh
11969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11970 lt_cv_file_magic_cmd='func_win32_libid'
11974 # Base MSYS/MinGW do not provide the 'file' command needed by
11975 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11976 # unless we find 'file', for example because we are cross-compiling.
11977 if ( file / ) >/dev/null 2>&1; then
11978 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11979 lt_cv_file_magic_cmd='func_win32_libid'
11981 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11982 lt_cv_file_magic_cmd='$OBJDUMP -f'
11987 # use the weaker test based on 'objdump'. See mingw*.
11988 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11989 lt_cv_file_magic_cmd='$OBJDUMP -f'
11992 darwin* | rhapsody*)
11993 lt_cv_deplibs_check_method=pass_all
11996 freebsd* | dragonfly*)
11997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12000 # Not sure whether the presence of OpenBSD here was a mistake.
12001 # Let's accept both of them until this is cleared up.
12002 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12003 lt_cv_file_magic_cmd=/usr/bin/file
12004 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12008 lt_cv_deplibs_check_method=pass_all
12013 lt_cv_deplibs_check_method=pass_all
12016 hpux10.20* | hpux11*)
12017 lt_cv_file_magic_cmd=/usr/bin/file
12020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12021 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12024 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]'
12025 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12029 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12035 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12039 irix5* | irix6* | nonstopux*)
12041 *-32|*"-32 ") libmagic=32-bit;;
12042 *-n32|*"-n32 ") libmagic=N32;;
12043 *-64|*"-64 ") libmagic=64-bit;;
12044 *) libmagic=never-match;;
12046 lt_cv_deplibs_check_method=pass_all
12049 # This must be Linux ELF.
12050 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12051 lt_cv_deplibs_check_method=pass_all
12055 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12064 lt_cv_file_magic_cmd=/usr/bin/file
12065 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12069 lt_cv_deplibs_check_method=pass_all
12073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12080 osf3* | osf4* | osf5*)
12081 lt_cv_deplibs_check_method=pass_all
12085 lt_cv_deplibs_check_method=pass_all
12089 lt_cv_deplibs_check_method=pass_all
12092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12093 lt_cv_deplibs_check_method=pass_all
12097 case $host_vendor in
12099 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]'
12100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12103 lt_cv_deplibs_check_method=pass_all
12106 lt_cv_file_magic_cmd='/bin/file'
12107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12110 lt_cv_file_magic_cmd='/bin/file'
12111 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12112 lt_cv_file_magic_test_file=/lib/libc.so
12115 lt_cv_deplibs_check_method=pass_all
12118 lt_cv_deplibs_check_method=pass_all
12124 lt_cv_deplibs_check_method=pass_all
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12130 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12131 file_magic_cmd=$lt_cv_file_magic_cmd
12132 deplibs_check_method=$lt_cv_deplibs_check_method
12133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12146 if test -n "$ac_tool_prefix"; then
12147 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12148 set dummy ${ac_tool_prefix}ar; ac_word=$2
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if test "${ac_cv_prog_AR+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12154 if test -n "$AR"; then
12155 ac_cv_prog_AR="$AR" # Let the user override the test.
12157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158 for as_dir in $PATH
12161 test -z "$as_dir" && as_dir=.
12162 for ac_exec_ext in '' $ac_executable_extensions; do
12163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12164 ac_cv_prog_AR="${ac_tool_prefix}ar"
12165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 if test -n "$AR"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12177 $as_echo "$AR" >&6; }
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12185 if test -z "$ac_cv_prog_AR"; then
12187 # Extract the first word of "ar", so it can be a program name with args.
12188 set dummy ar; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12194 if test -n "$ac_ct_AR"; then
12195 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12204 ac_cv_prog_ac_ct_AR="ar"
12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12215 if test -n "$ac_ct_AR"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12217 $as_echo "$ac_ct_AR" >&6; }
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12223 if test "x$ac_ct_AR" = x; then
12226 case $cross_compiling:$ac_tool_warned in
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12230 ac_tool_warned=yes ;;
12235 AR="$ac_cv_prog_AR"
12238 test -z "$AR" && AR=ar
12239 test -z "$AR_FLAGS" && AR_FLAGS=cru
12251 if test -n "$ac_tool_prefix"; then
12252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12253 set dummy ${ac_tool_prefix}strip; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if test "${ac_cv_prog_STRIP+set}" = set; then :
12257 $as_echo_n "(cached) " >&6
12259 if test -n "$STRIP"; then
12260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279 STRIP=$ac_cv_prog_STRIP
12280 if test -n "$STRIP"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12282 $as_echo "$STRIP" >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12290 if test -z "$ac_cv_prog_STRIP"; then
12292 # Extract the first word of "strip", so it can be a program name with args.
12293 set dummy strip; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12297 $as_echo_n "(cached) " >&6
12299 if test -n "$ac_ct_STRIP"; then
12300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12306 test -z "$as_dir" && as_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12309 ac_cv_prog_ac_ct_STRIP="strip"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12320 if test -n "$ac_ct_STRIP"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12322 $as_echo "$ac_ct_STRIP" >&6; }
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12328 if test "x$ac_ct_STRIP" = x; then
12331 case $cross_compiling:$ac_tool_warned in
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12335 ac_tool_warned=yes ;;
12340 STRIP="$ac_cv_prog_STRIP"
12343 test -z "$STRIP" && STRIP=:
12350 if test -n "$ac_tool_prefix"; then
12351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12358 if test -n "$RANLIB"; then
12359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 RANLIB=$ac_cv_prog_RANLIB
12379 if test -n "$RANLIB"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12381 $as_echo "$RANLIB" >&6; }
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12389 if test -z "$ac_cv_prog_RANLIB"; then
12390 ac_ct_RANLIB=$RANLIB
12391 # Extract the first word of "ranlib", so it can be a program name with args.
12392 set dummy ranlib; ac_word=$2
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394 $as_echo_n "checking for $ac_word... " >&6; }
12395 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12396 $as_echo_n "(cached) " >&6
12398 if test -n "$ac_ct_RANLIB"; then
12399 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_prog_ac_ct_RANLIB="ranlib"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12419 if test -n "$ac_ct_RANLIB"; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12421 $as_echo "$ac_ct_RANLIB" >&6; }
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12427 if test "x$ac_ct_RANLIB" = x; then
12430 case $cross_compiling:$ac_tool_warned in
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12434 ac_tool_warned=yes ;;
12436 RANLIB=$ac_ct_RANLIB
12439 RANLIB="$ac_cv_prog_RANLIB"
12442 test -z "$RANLIB" && RANLIB=:
12449 # Determine commands to create old-style static archives.
12450 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12451 old_postinstall_cmds='chmod 644 $oldlib'
12452 old_postuninstall_cmds=
12454 if test -n "$RANLIB"; then
12457 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12460 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12463 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12499 # If no C compiler was specified, use CC.
12502 # If no C compiler flags were specified, use CFLAGS.
12503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12505 # Allow CC to be a program name with arguments.
12509 # Check for command to grab the raw symbol name followed by C symbol from nm.
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12511 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12512 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12513 $as_echo_n "(cached) " >&6
12516 # These are sane defaults that work on at least a few old systems.
12517 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12519 # Character class describing NM global symbol codes.
12520 symcode='[BCDEGRST]'
12522 # Regexp to match symbols that can be accessed directly from C.
12523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12525 # Define system-specific variables.
12530 cygwin* | mingw* | pw32* | cegcc*)
12531 symcode='[ABCDGISTW]'
12534 if test "$host_cpu" = ia64; then
12535 symcode='[ABCDEGRST]'
12538 irix* | nonstopux*)
12539 symcode='[BCDEGRST]'
12542 symcode='[BCDEGQRST]'
12553 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12561 # If we're using GNU nm, then use its standard symbol codes.
12562 case `$NM -V 2>&1` in
12563 *GNU* | *'with BFD'*)
12564 symcode='[ABCDGIRSTW]' ;;
12567 # Transform an extracted symbol line into a proper C declaration.
12568 # Some systems (esp. on ia64) link data and code symbols differently,
12569 # so use this general approach.
12570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12572 # Transform an extracted symbol line into symbol name and symbol address
12573 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12574 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'"
12576 # Handle CRLF in mingw tool chain
12580 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12584 # Try without a prefix underscore, then with it.
12585 for ac_symprfx in "" "_"; do
12587 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12588 symxfrm="\\1 $ac_symprfx\\2 \\2"
12590 # Write the raw and C identifiers.
12591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12592 # Fake it for dumpbin and say T for any non-static function
12593 # and D for any global variable.
12594 # Also find C++ and __fastcall symbols from MSVC++,
12595 # which start with @ or ?.
12596 lt_cv_sys_global_symbol_pipe="$AWK '"\
12597 " {last_section=section; section=\$ 3};"\
12598 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12599 " \$ 0!~/External *\|/{next};"\
12600 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12601 " {if(hide[section]) next};"\
12602 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12603 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12604 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12605 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12606 " ' prfx=^$ac_symprfx"
12608 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12611 # Check to see that the pipe works correctly.
12615 cat > conftest.$ac_ext <<_LT_EOF
12620 void nm_test_func(void);
12621 void nm_test_func(void){}
12625 int main(){nm_test_var='a';nm_test_func();return(0);}
12628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12629 (eval $ac_compile) 2>&5
12631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12632 test $ac_status = 0; }; then
12633 # Now try to grab the symbols.
12635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
12636 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12639 test $ac_status = 0; } && test -s "$nlist"; then
12640 # Try sorting and uniquifying the output.
12641 if sort "$nlist" | uniq > "$nlist"T; then
12642 mv -f "$nlist"T "$nlist"
12647 # Make sure that we snagged all the symbols we need.
12648 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12649 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12650 cat <<_LT_EOF > conftest.$ac_ext
12656 # Now generate the symbol file.
12657 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12659 cat <<_LT_EOF >> conftest.$ac_ext
12661 /* The mapping between symbol names and symbols. */
12666 lt__PROGRAM__LTX_preloaded_symbols[] =
12668 { "@PROGRAM@", (void *) 0 },
12670 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12671 cat <<\_LT_EOF >> conftest.$ac_ext
12675 /* This works around a problem in FreeBSD linker */
12676 #ifdef FREEBSD_WORKAROUND
12677 static const void *lt_preloaded_setup() {
12678 return lt__PROGRAM__LTX_preloaded_symbols;
12686 # Now try linking the two files.
12687 mv conftest.$ac_objext conftstm.$ac_objext
12688 lt_save_LIBS="$LIBS"
12689 lt_save_CFLAGS="$CFLAGS"
12690 LIBS="conftstm.$ac_objext"
12691 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12693 (eval $ac_link) 2>&5
12695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12696 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12699 LIBS="$lt_save_LIBS"
12700 CFLAGS="$lt_save_CFLAGS"
12702 echo "cannot find nm_test_func in $nlist" >&5
12705 echo "cannot find nm_test_var in $nlist" >&5
12708 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12711 echo "$progname: failed program was:" >&5
12712 cat conftest.$ac_ext >&5
12714 rm -rf conftest* conftst*
12716 # Do not use the global_symbol_pipe unless it works.
12717 if test "$pipe_works" = yes; then
12720 lt_cv_sys_global_symbol_pipe=
12726 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12727 lt_cv_sys_global_symbol_to_cdecl=
12729 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12731 $as_echo "failed" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12734 $as_echo "ok" >&6; }
12758 # Check whether --enable-libtool-lock was given.
12759 if test "${enable_libtool_lock+set}" = set; then :
12760 enableval=$enable_libtool_lock;
12763 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12765 # Some flags need to be propagated to the compiler or linker for good
12769 # Find out which ABI we are using.
12770 echo 'int i;' > conftest.$ac_ext
12771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12772 (eval $ac_compile) 2>&5
12774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12775 test $ac_status = 0; }; then
12776 case `/usr/bin/file conftest.$ac_objext` in
12778 HPUX_IA64_MODE="32"
12781 HPUX_IA64_MODE="64"
12788 # Find out which ABI we are using.
12789 echo '#line 12789 "configure"' > conftest.$ac_ext
12790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12791 (eval $ac_compile) 2>&5
12793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12794 test $ac_status = 0; }; then
12795 if test "$lt_cv_prog_gnu_ld" = yes; then
12796 case `/usr/bin/file conftest.$ac_objext` in
12798 LD="${LD-ld} -melf32bsmip"
12801 LD="${LD-ld} -melf32bmipn32"
12804 LD="${LD-ld} -melf64bmip"
12808 case `/usr/bin/file conftest.$ac_objext` in
12824 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12825 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12826 # Find out which ABI we are using.
12827 echo 'int i;' > conftest.$ac_ext
12828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12829 (eval $ac_compile) 2>&5
12831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12832 test $ac_status = 0; }; then
12833 case `/usr/bin/file conftest.o` in
12836 x86_64-*kfreebsd*-gnu)
12837 LD="${LD-ld} -m elf_i386_fbsd"
12840 LD="${LD-ld} -m elf_i386"
12842 ppc64-*linux*|powerpc64-*linux*)
12843 LD="${LD-ld} -m elf32ppclinux"
12846 LD="${LD-ld} -m elf_s390"
12849 LD="${LD-ld} -m elf32_sparc"
12855 x86_64-*kfreebsd*-gnu)
12856 LD="${LD-ld} -m elf_x86_64_fbsd"
12859 LD="${LD-ld} -m elf_x86_64"
12861 ppc*-*linux*|powerpc*-*linux*)
12862 LD="${LD-ld} -m elf64ppc"
12864 s390*-*linux*|s390*-*tpf*)
12865 LD="${LD-ld} -m elf64_s390"
12868 LD="${LD-ld} -m elf64_sparc"
12878 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12879 SAVE_CFLAGS="$CFLAGS"
12880 CFLAGS="$CFLAGS -belf"
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12882 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12883 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12884 $as_echo_n "(cached) " >&6
12887 ac_cpp='$CPP $CPPFLAGS'
12888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12903 if ac_fn_c_try_link "$LINENO"; then :
12904 lt_cv_cc_needs_belf=yes
12906 lt_cv_cc_needs_belf=no
12908 rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12911 ac_cpp='$CPP $CPPFLAGS'
12912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12918 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12919 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12920 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12921 CFLAGS="$SAVE_CFLAGS"
12925 # Find out which ABI we are using.
12926 echo 'int i;' > conftest.$ac_ext
12927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12928 (eval $ac_compile) 2>&5
12930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12931 test $ac_status = 0; }; then
12932 case `/usr/bin/file conftest.o` in
12934 case $lt_cv_prog_gnu_ld in
12935 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12937 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12949 need_locks="$enable_libtool_lock"
12953 rhapsody* | darwin*)
12954 if test -n "$ac_tool_prefix"; then
12955 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12956 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958 $as_echo_n "checking for $ac_word... " >&6; }
12959 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12960 $as_echo_n "(cached) " >&6
12962 if test -n "$DSYMUTIL"; then
12963 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12982 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12983 if test -n "$DSYMUTIL"; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12985 $as_echo "$DSYMUTIL" >&6; }
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 $as_echo "no" >&6; }
12993 if test -z "$ac_cv_prog_DSYMUTIL"; then
12994 ac_ct_DSYMUTIL=$DSYMUTIL
12995 # Extract the first word of "dsymutil", so it can be a program name with args.
12996 set dummy dsymutil; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13002 if test -n "$ac_ct_DSYMUTIL"; then
13003 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13012 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13022 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13023 if test -n "$ac_ct_DSYMUTIL"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13025 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13031 if test "x$ac_ct_DSYMUTIL" = x; then
13034 case $cross_compiling:$ac_tool_warned in
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13038 ac_tool_warned=yes ;;
13040 DSYMUTIL=$ac_ct_DSYMUTIL
13043 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13046 if test -n "$ac_tool_prefix"; then
13047 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13048 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050 $as_echo_n "checking for $ac_word... " >&6; }
13051 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13052 $as_echo_n "(cached) " >&6
13054 if test -n "$NMEDIT"; then
13055 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058 for as_dir in $PATH
13061 test -z "$as_dir" && as_dir=.
13062 for ac_exec_ext in '' $ac_executable_extensions; do
13063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13064 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 NMEDIT=$ac_cv_prog_NMEDIT
13075 if test -n "$NMEDIT"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13077 $as_echo "$NMEDIT" >&6; }
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13085 if test -z "$ac_cv_prog_NMEDIT"; then
13086 ac_ct_NMEDIT=$NMEDIT
13087 # Extract the first word of "nmedit", so it can be a program name with args.
13088 set dummy nmedit; ac_word=$2
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090 $as_echo_n "checking for $ac_word... " >&6; }
13091 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13094 if test -n "$ac_ct_NMEDIT"; then
13095 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13104 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13115 if test -n "$ac_ct_NMEDIT"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13117 $as_echo "$ac_ct_NMEDIT" >&6; }
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13123 if test "x$ac_ct_NMEDIT" = x; then
13126 case $cross_compiling:$ac_tool_warned in
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13130 ac_tool_warned=yes ;;
13132 NMEDIT=$ac_ct_NMEDIT
13135 NMEDIT="$ac_cv_prog_NMEDIT"
13138 if test -n "$ac_tool_prefix"; then
13139 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13140 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if test "${ac_cv_prog_LIPO+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13146 if test -n "$LIPO"; then
13147 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166 LIPO=$ac_cv_prog_LIPO
13167 if test -n "$LIPO"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13169 $as_echo "$LIPO" >&6; }
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13177 if test -z "$ac_cv_prog_LIPO"; then
13179 # Extract the first word of "lipo", so it can be a program name with args.
13180 set dummy lipo; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13184 $as_echo_n "(cached) " >&6
13186 if test -n "$ac_ct_LIPO"; then
13187 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196 ac_cv_prog_ac_ct_LIPO="lipo"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13207 if test -n "$ac_ct_LIPO"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13209 $as_echo "$ac_ct_LIPO" >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13215 if test "x$ac_ct_LIPO" = x; then
13218 case $cross_compiling:$ac_tool_warned in
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13222 ac_tool_warned=yes ;;
13227 LIPO="$ac_cv_prog_LIPO"
13230 if test -n "$ac_tool_prefix"; then
13231 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13232 set dummy ${ac_tool_prefix}otool; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13238 if test -n "$OTOOL"; then
13239 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13248 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13258 OTOOL=$ac_cv_prog_OTOOL
13259 if test -n "$OTOOL"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13261 $as_echo "$OTOOL" >&6; }
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13269 if test -z "$ac_cv_prog_OTOOL"; then
13271 # Extract the first word of "otool", so it can be a program name with args.
13272 set dummy otool; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 $as_echo_n "checking for $ac_word... " >&6; }
13275 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13278 if test -n "$ac_ct_OTOOL"; then
13279 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13288 ac_cv_prog_ac_ct_OTOOL="otool"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13298 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13299 if test -n "$ac_ct_OTOOL"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13301 $as_echo "$ac_ct_OTOOL" >&6; }
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13307 if test "x$ac_ct_OTOOL" = x; then
13310 case $cross_compiling:$ac_tool_warned in
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13314 ac_tool_warned=yes ;;
13319 OTOOL="$ac_cv_prog_OTOOL"
13322 if test -n "$ac_tool_prefix"; then
13323 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13324 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326 $as_echo_n "checking for $ac_word... " >&6; }
13327 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13330 if test -n "$OTOOL64"; then
13331 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
13339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13340 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13350 OTOOL64=$ac_cv_prog_OTOOL64
13351 if test -n "$OTOOL64"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13353 $as_echo "$OTOOL64" >&6; }
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13361 if test -z "$ac_cv_prog_OTOOL64"; then
13362 ac_ct_OTOOL64=$OTOOL64
13363 # Extract the first word of "otool64", so it can be a program name with args.
13364 set dummy otool64; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13368 $as_echo_n "(cached) " >&6
13370 if test -n "$ac_ct_OTOOL64"; then
13371 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13377 test -z "$as_dir" && as_dir=.
13378 for ac_exec_ext in '' $ac_executable_extensions; do
13379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13380 ac_cv_prog_ac_ct_OTOOL64="otool64"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13390 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13391 if test -n "$ac_ct_OTOOL64"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13393 $as_echo "$ac_ct_OTOOL64" >&6; }
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13399 if test "x$ac_ct_OTOOL64" = x; then
13402 case $cross_compiling:$ac_tool_warned in
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13406 ac_tool_warned=yes ;;
13408 OTOOL64=$ac_ct_OTOOL64
13411 OTOOL64="$ac_cv_prog_OTOOL64"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13441 $as_echo_n "checking for -single_module linker flag... " >&6; }
13442 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13443 $as_echo_n "(cached) " >&6
13445 lt_cv_apple_cc_single_mod=no
13446 if test -z "${LT_MULTI_MODULE}"; then
13447 # By default we will add the -single_module flag. You can override
13448 # by either setting the environment variable LT_MULTI_MODULE
13449 # non-empty at configure time, or by adding -multi_module to the
13451 rm -rf libconftest.dylib*
13452 echo "int foo(void){return 1;}" > conftest.c
13453 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13454 -dynamiclib -Wl,-single_module conftest.c" >&5
13455 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13456 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13458 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13459 lt_cv_apple_cc_single_mod=yes
13461 cat conftest.err >&5
13463 rm -rf libconftest.dylib*
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13468 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13470 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13471 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13474 lt_cv_ld_exported_symbols_list=no
13475 save_LDFLAGS=$LDFLAGS
13476 echo "_main" > conftest.sym
13477 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13489 if ac_fn_c_try_link "$LINENO"; then :
13490 lt_cv_ld_exported_symbols_list=yes
13492 lt_cv_ld_exported_symbols_list=no
13494 rm -f core conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext conftest.$ac_ext
13496 LDFLAGS="$save_LDFLAGS"
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13500 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13502 rhapsody* | darwin1.[012])
13503 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13505 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13506 darwin*) # darwin 5.x on
13507 # if running on 10.5 or later, the deployment target defaults
13508 # to the OS version, if on x86, and 10.4, the deployment
13509 # target defaults to 10.4. Don't you love it?
13510 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13511 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13512 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13514 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13516 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13520 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13521 _lt_dar_single_mod='$single_module'
13523 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13524 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13526 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13528 if test "$DSYMUTIL" != ":"; then
13529 _lt_dsymutil='~$DSYMUTIL $lib || :'
13536 for ac_header in dlfcn.h
13538 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13539 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13540 cat >>confdefs.h <<_ACEOF
13541 #define HAVE_DLFCN_H 1
13550 ac_cpp='$CXXCPP $CPPFLAGS'
13551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13554 if test -z "$CXX"; then
13555 if test -n "$CCC"; then
13558 if test -n "$ac_tool_prefix"; then
13559 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if test "${ac_cv_prog_CXX+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13568 if test -n "$CXX"; then
13569 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13578 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13588 CXX=$ac_cv_prog_CXX
13589 if test -n "$CXX"; then
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13591 $as_echo "$CXX" >&6; }
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13598 test -n "$CXX" && break
13601 if test -z "$CXX"; then
13603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13605 # Extract the first word of "$ac_prog", so it can be a program name with args.
13606 set dummy $ac_prog; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13612 if test -n "$ac_ct_CXX"; then
13613 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13622 ac_cv_prog_ac_ct_CXX="$ac_prog"
13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13632 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13633 if test -n "$ac_ct_CXX"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13635 $as_echo "$ac_ct_CXX" >&6; }
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 $as_echo "no" >&6; }
13642 test -n "$ac_ct_CXX" && break
13645 if test "x$ac_ct_CXX" = x; then
13648 case $cross_compiling:$ac_tool_warned in
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13652 ac_tool_warned=yes ;;
13660 # Provide some information about the compiler.
13661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13664 for ac_option in --version -v -V -qversion; do
13665 { { ac_try="$ac_compiler $ac_option >&5"
13666 case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13671 $as_echo "$ac_try_echo"; } >&5
13672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13674 if test -s conftest.err; then
13676 ... rest of stderr output deleted ...
13677 10q' conftest.err >conftest.er1
13678 cat conftest.er1 >&5
13679 rm -f conftest.er1 conftest.err
13681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13682 test $ac_status = 0; }
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13686 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13687 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13704 if ac_fn_cxx_try_compile "$LINENO"; then :
13705 ac_compiler_gnu=yes
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13714 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13715 if test $ac_compiler_gnu = yes; then
13720 ac_test_CXXFLAGS=${CXXFLAGS+set}
13721 ac_save_CXXFLAGS=$CXXFLAGS
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13723 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13724 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13725 $as_echo_n "(cached) " >&6
13727 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13728 ac_cxx_werror_flag=yes
13729 ac_cv_prog_cxx_g=no
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13742 if ac_fn_cxx_try_compile "$LINENO"; then :
13743 ac_cv_prog_cxx_g=yes
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13757 if ac_fn_cxx_try_compile "$LINENO"; then :
13760 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13773 if ac_fn_cxx_try_compile "$LINENO"; then :
13774 ac_cv_prog_cxx_g=yes
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13784 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13785 if test "$ac_test_CXXFLAGS" = set; then
13786 CXXFLAGS=$ac_save_CXXFLAGS
13787 elif test $ac_cv_prog_cxx_g = yes; then
13788 if test "$GXX" = yes; then
13794 if test "$GXX" = yes; then
13801 ac_cpp='$CPP $CPPFLAGS'
13802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13807 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13808 (test "X$CXX" != "Xg++"))) ; then
13810 ac_cpp='$CXXCPP $CPPFLAGS'
13811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13815 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13816 if test -z "$CXXCPP"; then
13817 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13818 $as_echo_n "(cached) " >&6
13820 # Double quotes because CXXCPP needs to be expanded
13821 for CXXCPP in "$CXX -E" "/lib/cpp"
13823 ac_preproc_ok=false
13824 for ac_cxx_preproc_warn_flag in '' yes
13826 # Use a header file that comes with gcc, so configuring glibc
13827 # with a fresh cross-compiler works.
13828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13829 # <limits.h> exists even on freestanding compilers.
13830 # On the NeXT, cc -E runs the code through the compiler's parser,
13831 # not just through cpp. "Syntax error" is here to catch this case.
13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h. */
13835 # include <limits.h>
13837 # include <assert.h>
13841 if ac_fn_cxx_try_cpp "$LINENO"; then :
13844 # Broken: fails on valid input.
13847 rm -f conftest.err conftest.$ac_ext
13849 # OK, works on sane cases. Now check whether nonexistent headers
13850 # can be detected and how.
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 #include <ac_nonexistent.h>
13855 if ac_fn_cxx_try_cpp "$LINENO"; then :
13856 # Broken: success on invalid input.
13859 # Passes both tests.
13863 rm -f conftest.err conftest.$ac_ext
13866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13867 rm -f conftest.err conftest.$ac_ext
13868 if $ac_preproc_ok; then :
13873 ac_cv_prog_CXXCPP=$CXXCPP
13876 CXXCPP=$ac_cv_prog_CXXCPP
13878 ac_cv_prog_CXXCPP=$CXXCPP
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13881 $as_echo "$CXXCPP" >&6; }
13882 ac_preproc_ok=false
13883 for ac_cxx_preproc_warn_flag in '' yes
13885 # Use a header file that comes with gcc, so configuring glibc
13886 # with a fresh cross-compiler works.
13887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888 # <limits.h> exists even on freestanding compilers.
13889 # On the NeXT, cc -E runs the code through the compiler's parser,
13890 # not just through cpp. "Syntax error" is here to catch this case.
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13894 # include <limits.h>
13896 # include <assert.h>
13900 if ac_fn_cxx_try_cpp "$LINENO"; then :
13903 # Broken: fails on valid input.
13906 rm -f conftest.err conftest.$ac_ext
13908 # OK, works on sane cases. Now check whether nonexistent headers
13909 # can be detected and how.
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13912 #include <ac_nonexistent.h>
13914 if ac_fn_cxx_try_cpp "$LINENO"; then :
13915 # Broken: success on invalid input.
13918 # Passes both tests.
13922 rm -f conftest.err conftest.$ac_ext
13925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13926 rm -f conftest.err conftest.$ac_ext
13927 if $ac_preproc_ok; then :
13930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13932 _lt_caught_CXX_error=yes; }
13936 ac_cpp='$CPP $CPPFLAGS'
13937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13942 _lt_caught_CXX_error=yes
13956 enable_win32_dll=no
13959 # Check whether --enable-shared was given.
13960 if test "${enable_shared+set}" = set; then :
13961 enableval=$enable_shared; p=${PACKAGE-default}
13963 yes) enable_shared=yes ;;
13964 no) enable_shared=no ;;
13967 # Look at the argument we got. We use all the common list separators.
13968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13969 for pkg in $enableval; do
13971 if test "X$pkg" = "X$p"; then
13990 # Check whether --enable-static was given.
13991 if test "${enable_static+set}" = set; then :
13992 enableval=$enable_static; p=${PACKAGE-default}
13994 yes) enable_static=yes ;;
13995 no) enable_static=no ;;
13998 # Look at the argument we got. We use all the common list separators.
13999 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14000 for pkg in $enableval; do
14002 if test "X$pkg" = "X$p"; then
14022 # Check whether --with-pic was given.
14023 if test "${with_pic+set}" = set; then :
14024 withval=$with_pic; pic_mode="$withval"
14030 test -z "$pic_mode" && pic_mode=default
14038 # Check whether --enable-fast-install was given.
14039 if test "${enable_fast_install+set}" = set; then :
14040 enableval=$enable_fast_install; p=${PACKAGE-default}
14042 yes) enable_fast_install=yes ;;
14043 no) enable_fast_install=no ;;
14045 enable_fast_install=no
14046 # Look at the argument we got. We use all the common list separators.
14047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14048 for pkg in $enableval; do
14050 if test "X$pkg" = "X$p"; then
14051 enable_fast_install=yes
14058 enable_fast_install=yes
14071 # This can be used to rebuild libtool when needed
14072 LIBTOOL_DEPS="$ltmain"
14074 # Always use our own libtool.
14075 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14101 test -z "$LN_S" && LN_S="ln -s"
14116 if test -n "${ZSH_VERSION+set}" ; then
14117 setopt NO_GLOB_SUBST
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14121 $as_echo_n "checking for objdir... " >&6; }
14122 if test "${lt_cv_objdir+set}" = set; then :
14123 $as_echo_n "(cached) " >&6
14125 rm -f .libs 2>/dev/null
14126 mkdir .libs 2>/dev/null
14127 if test -d .libs; then
14130 # MS-DOS does not allow filenames that begin with a dot.
14133 rmdir .libs 2>/dev/null
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14136 $as_echo "$lt_cv_objdir" >&6; }
14137 objdir=$lt_cv_objdir
14143 cat >>confdefs.h <<_ACEOF
14144 #define LT_OBJDIR "$lt_cv_objdir/"
14165 # AIX sometimes has problems with the GCC collect2 program. For some
14166 # reason, if we set the COLLECT_NAMES environment variable, the problems
14167 # vanish in a puff of smoke.
14168 if test "X${COLLECT_NAMES+set}" != Xset; then
14170 export COLLECT_NAMES
14175 # Sed substitution that helps us do robust quoting. It backslashifies
14176 # metacharacters that are still active within double-quoted strings.
14177 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14179 # Same as above, but do not quote variable references.
14180 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14182 # Sed substitution to delay expansion of an escaped shell variable in a
14183 # double_quote_subst'ed string.
14184 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14186 # Sed substitution to delay expansion of an escaped single quote.
14187 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14189 # Sed substitution to avoid accidental globbing in evaled expressions
14190 no_glob_subst='s/\*/\\\*/g'
14192 # Global variables:
14194 can_build_shared=yes
14196 # All known linkers require a `.a' archive for static linking (except MSVC,
14197 # which needs '.lib').
14200 with_gnu_ld="$lt_cv_prog_gnu_ld"
14203 old_CFLAGS="$CFLAGS"
14205 # Set sane defaults for various variables
14206 test -z "$CC" && CC=cc
14207 test -z "$LTCC" && LTCC=$CC
14208 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14209 test -z "$LD" && LD=ld
14210 test -z "$ac_objext" && ac_objext=o
14212 for cc_temp in $compiler""; do
14214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14220 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14223 # Only perform the check for file, if the check method requires it
14224 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14225 case $deplibs_check_method in
14227 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14229 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14230 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14231 $as_echo_n "(cached) " >&6
14235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14238 lt_save_MAGIC_CMD="$MAGIC_CMD"
14239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14241 for ac_dir in $ac_dummy; do
14243 test -z "$ac_dir" && ac_dir=.
14244 if test -f $ac_dir/${ac_tool_prefix}file; then
14245 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14246 if test -n "$file_magic_test_file"; then
14247 case $deplibs_check_method in
14249 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14252 $EGREP "$file_magic_regex" > /dev/null; then
14257 *** Warning: the command libtool uses to detect shared libraries,
14258 *** $file_magic_cmd, produces output that libtool cannot recognize.
14259 *** The result is that libtool may fail to recognize shared libraries
14260 *** as such. This will affect the creation of libtool libraries that
14261 *** depend on shared libraries, but programs linked with such libtool
14262 *** libraries will work regardless of this problem. Nevertheless, you
14263 *** may want to report the problem to your system manager and/or to
14264 *** bug-libtool@gnu.org
14274 MAGIC_CMD="$lt_save_MAGIC_CMD"
14279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14280 if test -n "$MAGIC_CMD"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14282 $as_echo "$MAGIC_CMD" >&6; }
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14292 if test -z "$lt_cv_path_MAGIC_CMD"; then
14293 if test -n "$ac_tool_prefix"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14295 $as_echo_n "checking for file... " >&6; }
14296 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14297 $as_echo_n "(cached) " >&6
14301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14304 lt_save_MAGIC_CMD="$MAGIC_CMD"
14305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14307 for ac_dir in $ac_dummy; do
14309 test -z "$ac_dir" && ac_dir=.
14310 if test -f $ac_dir/file; then
14311 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14312 if test -n "$file_magic_test_file"; then
14313 case $deplibs_check_method in
14315 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14318 $EGREP "$file_magic_regex" > /dev/null; then
14323 *** Warning: the command libtool uses to detect shared libraries,
14324 *** $file_magic_cmd, produces output that libtool cannot recognize.
14325 *** The result is that libtool may fail to recognize shared libraries
14326 *** as such. This will affect the creation of libtool libraries that
14327 *** depend on shared libraries, but programs linked with such libtool
14328 *** libraries will work regardless of this problem. Nevertheless, you
14329 *** may want to report the problem to your system manager and/or to
14330 *** bug-libtool@gnu.org
14340 MAGIC_CMD="$lt_save_MAGIC_CMD"
14345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14346 if test -n "$MAGIC_CMD"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14348 $as_echo "$MAGIC_CMD" >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14364 # Use C for the default configuration in the libtool script
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14374 # Source file extension for C test sources.
14377 # Object file extension for compiled C test sources.
14381 # Code to be used in simple compile tests
14382 lt_simple_compile_test_code="int some_variable = 0;"
14384 # Code to be used in simple link tests
14385 lt_simple_link_test_code='int main(){return(0);}'
14393 # If no C compiler was specified, use CC.
14396 # If no C compiler flags were specified, use CFLAGS.
14397 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14399 # Allow CC to be a program name with arguments.
14402 # Save the default compiler, since it gets overwritten when the other
14403 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14404 compiler_DEFAULT=$CC
14406 # save warnings/boilerplate of simple test code
14407 ac_outfile=conftest.$ac_objext
14408 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14409 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14410 _lt_compiler_boilerplate=`cat conftest.err`
14413 ac_outfile=conftest.$ac_objext
14414 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14415 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14416 _lt_linker_boilerplate=`cat conftest.err`
14421 ## There is no encapsulation within the following macros, do not change
14422 ## the running order or otherwise move them around unless you know exactly
14423 ## what you are doing...
14424 if test -n "$compiler"; then
14426 lt_prog_compiler_no_builtin_flag=
14428 if test "$GCC" = yes; then
14429 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14432 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14433 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14434 $as_echo_n "(cached) " >&6
14436 lt_cv_prog_compiler_rtti_exceptions=no
14437 ac_outfile=conftest.$ac_objext
14438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14439 lt_compiler_flag="-fno-rtti -fno-exceptions"
14440 # Insert the option either (1) after the last *FLAGS variable, or
14441 # (2) before a word containing "conftest.", or (3) at the end.
14442 # Note that $ac_compile itself does not contain backslashes and begins
14443 # with a dollar sign (not a hyphen), so the echo should work correctly.
14444 # The option is referenced via a variable to avoid confusing sed.
14445 lt_compile=`echo "$ac_compile" | $SED \
14446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14448 -e 's:$: $lt_compiler_flag:'`
14449 (eval echo "\"\$as_me:14449: $lt_compile\"" >&5)
14450 (eval "$lt_compile" 2>conftest.err)
14452 cat conftest.err >&5
14453 echo "$as_me:14453: \$? = $ac_status" >&5
14454 if (exit $ac_status) && test -s "$ac_outfile"; then
14455 # The compiler can only warn and ignore the option if not recognized
14456 # So say no if there are warnings other than the usual output.
14457 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14460 lt_cv_prog_compiler_rtti_exceptions=yes
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14467 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14469 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14470 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14482 lt_prog_compiler_wl=
14483 lt_prog_compiler_pic=
14484 lt_prog_compiler_static=
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14487 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14489 if test "$GCC" = yes; then
14490 lt_prog_compiler_wl='-Wl,'
14491 lt_prog_compiler_static='-static'
14495 # All AIX code is PIC.
14496 if test "$host_cpu" = ia64; then
14497 # AIX 5 now supports IA64 processor
14498 lt_prog_compiler_static='-Bstatic'
14505 # see comment about AmigaOS4 .so support
14506 lt_prog_compiler_pic='-fPIC'
14509 # FIXME: we need at least 68020 code to build shared libraries, but
14510 # adding the `-m68020' flag to GCC prevents building anything better,
14512 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14517 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14518 # PIC is the default for these OSes.
14521 mingw* | cygwin* | pw32* | os2* | cegcc*)
14522 # This hack is so that the source file can tell whether it is being
14523 # built for inclusion in a dll (and should export symbols for example).
14524 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14525 # (--disable-auto-import) libraries
14526 lt_prog_compiler_pic='-DDLL_EXPORT'
14529 darwin* | rhapsody*)
14530 # PIC is the default on this platform
14531 # Common symbols not allowed in MH_DYLIB files
14532 lt_prog_compiler_pic='-fno-common'
14536 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14537 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14538 # sets the default TLS model and affects inlining.
14544 lt_prog_compiler_pic='-fPIC'
14550 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14551 # Instead, we relocate shared libraries at runtime.
14555 # Just because we use GCC doesn't mean we suddenly get shared libraries
14556 # on systems that don't support them.
14557 lt_prog_compiler_can_build_shared=no
14562 # QNX uses GNU C++, but need to define -shared option too, otherwise
14563 # it will coredump.
14564 lt_prog_compiler_pic='-fPIC -shared'
14568 if test -d /usr/nec; then
14569 lt_prog_compiler_pic=-Kconform_pic
14574 lt_prog_compiler_pic='-fPIC'
14578 # PORTME Check for flag to pass linker flags through the system compiler.
14581 lt_prog_compiler_wl='-Wl,'
14582 if test "$host_cpu" = ia64; then
14583 # AIX 5 now supports IA64 processor
14584 lt_prog_compiler_static='-Bstatic'
14586 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14590 mingw* | cygwin* | pw32* | os2* | cegcc*)
14591 # This hack is so that the source file can tell whether it is being
14592 # built for inclusion in a dll (and should export symbols for example).
14593 lt_prog_compiler_pic='-DDLL_EXPORT'
14596 hpux9* | hpux10* | hpux11*)
14597 lt_prog_compiler_wl='-Wl,'
14598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14599 # not for PA HP-UX.
14605 lt_prog_compiler_pic='+Z'
14608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14609 lt_prog_compiler_static='${wl}-a ${wl}archive'
14612 irix5* | irix6* | nonstopux*)
14613 lt_prog_compiler_wl='-Wl,'
14614 # PIC (with -KPIC) is the default.
14615 lt_prog_compiler_static='-non_shared'
14618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14619 case $cc_basename in
14620 # old Intel for x86_64 which still supported -KPIC.
14622 lt_prog_compiler_wl='-Wl,'
14623 lt_prog_compiler_pic='-KPIC'
14624 lt_prog_compiler_static='-static'
14626 # icc used to be incompatible with GCC.
14627 # ICC 10 doesn't accept -KPIC any more.
14629 lt_prog_compiler_wl='-Wl,'
14630 lt_prog_compiler_pic='-fPIC'
14631 lt_prog_compiler_static='-static'
14633 # Lahey Fortran 8.1.
14635 lt_prog_compiler_wl='-Wl,'
14636 lt_prog_compiler_pic='--shared'
14637 lt_prog_compiler_static='--static'
14639 pgcc* | pgf77* | pgf90* | pgf95*)
14640 # Portland Group compilers (*not* the Pentium gcc compiler,
14641 # which looks to be a dead project)
14642 lt_prog_compiler_wl='-Wl,'
14643 lt_prog_compiler_pic='-fpic'
14644 lt_prog_compiler_static='-Bstatic'
14647 lt_prog_compiler_wl='-Wl,'
14648 # All Alpha code is PIC.
14649 lt_prog_compiler_static='-non_shared'
14652 # IBM XL C 8.0/Fortran 10.1 on PPC
14653 lt_prog_compiler_wl='-Wl,'
14654 lt_prog_compiler_pic='-qpic'
14655 lt_prog_compiler_static='-qstaticlink'
14658 case `$CC -V 2>&1 | sed 5q` in
14661 lt_prog_compiler_pic='-KPIC'
14662 lt_prog_compiler_static='-Bstatic'
14663 lt_prog_compiler_wl='-Wl,'
14666 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14667 lt_prog_compiler_pic='-KPIC'
14668 lt_prog_compiler_static='-Bstatic'
14669 lt_prog_compiler_wl=''
14677 lt_prog_compiler_pic='-KPIC'
14678 lt_prog_compiler_static='-Bstatic'
14682 # QNX uses GNU C++, but need to define -shared option too, otherwise
14683 # it will coredump.
14684 lt_prog_compiler_pic='-fPIC -shared'
14687 osf3* | osf4* | osf5*)
14688 lt_prog_compiler_wl='-Wl,'
14689 # All OSF/1 code is PIC.
14690 lt_prog_compiler_static='-non_shared'
14694 lt_prog_compiler_static='-non_shared'
14698 lt_prog_compiler_pic='-KPIC'
14699 lt_prog_compiler_static='-Bstatic'
14700 case $cc_basename in
14701 f77* | f90* | f95*)
14702 lt_prog_compiler_wl='-Qoption ld ';;
14704 lt_prog_compiler_wl='-Wl,';;
14709 lt_prog_compiler_wl='-Qoption ld '
14710 lt_prog_compiler_pic='-PIC'
14711 lt_prog_compiler_static='-Bstatic'
14714 sysv4 | sysv4.2uw2* | sysv4.3*)
14715 lt_prog_compiler_wl='-Wl,'
14716 lt_prog_compiler_pic='-KPIC'
14717 lt_prog_compiler_static='-Bstatic'
14721 if test -d /usr/nec ;then
14722 lt_prog_compiler_pic='-Kconform_pic'
14723 lt_prog_compiler_static='-Bstatic'
14727 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14728 lt_prog_compiler_wl='-Wl,'
14729 lt_prog_compiler_pic='-KPIC'
14730 lt_prog_compiler_static='-Bstatic'
14734 lt_prog_compiler_wl='-Wl,'
14735 lt_prog_compiler_can_build_shared=no
14739 lt_prog_compiler_pic='-pic'
14740 lt_prog_compiler_static='-Bstatic'
14744 lt_prog_compiler_can_build_shared=no
14750 # For platforms which do not support PIC, -DPIC is meaningless:
14752 lt_prog_compiler_pic=
14755 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14759 $as_echo "$lt_prog_compiler_pic" >&6; }
14767 # Check to make sure the PIC flag actually works.
14769 if test -n "$lt_prog_compiler_pic"; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14771 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14772 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14775 lt_cv_prog_compiler_pic_works=no
14776 ac_outfile=conftest.$ac_objext
14777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14778 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14779 # Insert the option either (1) after the last *FLAGS variable, or
14780 # (2) before a word containing "conftest.", or (3) at the end.
14781 # Note that $ac_compile itself does not contain backslashes and begins
14782 # with a dollar sign (not a hyphen), so the echo should work correctly.
14783 # The option is referenced via a variable to avoid confusing sed.
14784 lt_compile=`echo "$ac_compile" | $SED \
14785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14787 -e 's:$: $lt_compiler_flag:'`
14788 (eval echo "\"\$as_me:14788: $lt_compile\"" >&5)
14789 (eval "$lt_compile" 2>conftest.err)
14791 cat conftest.err >&5
14792 echo "$as_me:14792: \$? = $ac_status" >&5
14793 if (exit $ac_status) && test -s "$ac_outfile"; then
14794 # The compiler can only warn and ignore the option if not recognized
14795 # So say no if there are warnings other than the usual output.
14796 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14799 lt_cv_prog_compiler_pic_works=yes
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14806 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14808 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14809 case $lt_prog_compiler_pic in
14811 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14814 lt_prog_compiler_pic=
14815 lt_prog_compiler_can_build_shared=no
14826 # Check to make sure the static flag actually works.
14828 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14830 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14831 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14832 $as_echo_n "(cached) " >&6
14834 lt_cv_prog_compiler_static_works=no
14835 save_LDFLAGS="$LDFLAGS"
14836 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14837 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14839 # The linker can only warn and ignore the option if not recognized
14840 # So say no if there are warnings
14841 if test -s conftest.err; then
14842 # Append any errors to the config.log.
14843 cat conftest.err 1>&5
14844 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14846 if diff conftest.exp conftest.er2 >/dev/null; then
14847 lt_cv_prog_compiler_static_works=yes
14850 lt_cv_prog_compiler_static_works=yes
14854 LDFLAGS="$save_LDFLAGS"
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14858 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14860 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14863 lt_prog_compiler_static=
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14874 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14875 $as_echo_n "(cached) " >&6
14877 lt_cv_prog_compiler_c_o=no
14878 $RM -r conftest 2>/dev/null
14882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14884 lt_compiler_flag="-o out/conftest2.$ac_objext"
14885 # Insert the option either (1) after the last *FLAGS variable, or
14886 # (2) before a word containing "conftest.", or (3) at the end.
14887 # Note that $ac_compile itself does not contain backslashes and begins
14888 # with a dollar sign (not a hyphen), so the echo should work correctly.
14889 lt_compile=`echo "$ac_compile" | $SED \
14890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14892 -e 's:$: $lt_compiler_flag:'`
14893 (eval echo "\"\$as_me:14893: $lt_compile\"" >&5)
14894 (eval "$lt_compile" 2>out/conftest.err)
14896 cat out/conftest.err >&5
14897 echo "$as_me:14897: \$? = $ac_status" >&5
14898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14900 # The compiler can only warn and ignore the option if not recognized
14901 # So say no if there are warnings
14902 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14905 lt_cv_prog_compiler_c_o=yes
14910 # SGI C++ compiler will create directory out/ii_files/ for
14911 # template instantiation
14912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14913 $RM out/* && rmdir out
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14920 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14932 lt_cv_prog_compiler_c_o=no
14933 $RM -r conftest 2>/dev/null
14937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14939 lt_compiler_flag="-o out/conftest2.$ac_objext"
14940 # Insert the option either (1) after the last *FLAGS variable, or
14941 # (2) before a word containing "conftest.", or (3) at the end.
14942 # Note that $ac_compile itself does not contain backslashes and begins
14943 # with a dollar sign (not a hyphen), so the echo should work correctly.
14944 lt_compile=`echo "$ac_compile" | $SED \
14945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14947 -e 's:$: $lt_compiler_flag:'`
14948 (eval echo "\"\$as_me:14948: $lt_compile\"" >&5)
14949 (eval "$lt_compile" 2>out/conftest.err)
14951 cat out/conftest.err >&5
14952 echo "$as_me:14952: \$? = $ac_status" >&5
14953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14955 # The compiler can only warn and ignore the option if not recognized
14956 # So say no if there are warnings
14957 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14960 lt_cv_prog_compiler_c_o=yes
14965 # SGI C++ compiler will create directory out/ii_files/ for
14966 # template instantiation
14967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14968 $RM out/* && rmdir out
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14980 hard_links="nottested"
14981 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14982 # do not overwrite the value of need_locks provided by the user
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14984 $as_echo_n "checking if we can lock with hard links... " >&6; }
14987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14989 ln conftest.a conftest.b 2>&5 || hard_links=no
14990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14992 $as_echo "$hard_links" >&6; }
14993 if test "$hard_links" = no; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14995 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15008 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15011 allow_undefined_flag=
15012 always_export_symbols=no
15014 archive_expsym_cmds=
15015 compiler_needs_object=no
15016 enable_shared_with_static_runtimes=no
15017 export_dynamic_flag_spec=
15018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15019 hardcode_automatic=no
15021 hardcode_direct_absolute=no
15022 hardcode_libdir_flag_spec=
15023 hardcode_libdir_flag_spec_ld=
15024 hardcode_libdir_separator=
15025 hardcode_minus_L=no
15026 hardcode_shlibpath_var=unsupported
15028 link_all_deplibs=unknown
15030 module_expsym_cmds=
15031 old_archive_from_new_cmds=
15032 old_archive_from_expsyms_cmds=
15033 thread_safe_flag_spec=
15034 whole_archive_flag_spec=
15035 # include_expsyms should be a list of space-separated symbols to be *always*
15036 # included in the symbol list
15038 # exclude_expsyms can be an extended regexp of symbols to exclude
15039 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15040 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15041 # as well as any symbol that contains `d'.
15042 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15044 # platforms (ab)use it in PIC code, but their linkers get confused if
15045 # the symbol is explicitly referenced. Since portable code cannot
15046 # rely on this symbol name, it's probably fine to never include it in
15047 # preloaded symbol tables.
15048 # Exclude shared library initialization/finalization symbols.
15049 extract_expsyms_cmds=
15052 cygwin* | mingw* | pw32* | cegcc*)
15053 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15054 # When not using gcc, we currently assume that we are using
15055 # Microsoft Visual C++.
15056 if test "$GCC" != yes; then
15061 # we just hope/assume this is gcc and not c89 (= MSVC++)
15070 if test "$with_gnu_ld" = yes; then
15071 # If archive_cmds runs LD, not CC, wlarc should be empty
15074 # Set some defaults for GNU ld with shared library support. These
15075 # are reset later if shared libraries are not supported. Putting them
15076 # here allows them to be overridden if necessary.
15077 runpath_var=LD_RUN_PATH
15078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15079 export_dynamic_flag_spec='${wl}--export-dynamic'
15080 # ancient GNU ld didn't support --whole-archive et. al.
15081 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15082 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15084 whole_archive_flag_spec=
15086 supports_anon_versioning=no
15087 case `$LD -v 2>&1` in
15088 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15089 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15090 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15091 *\ 2.11.*) ;; # other 2.11 versions
15092 *) supports_anon_versioning=yes ;;
15095 # See if GNU ld supports shared libraries.
15098 # On AIX/PPC, the GNU linker is very broken
15099 if test "$host_cpu" != ia64; then
15103 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15104 *** to be unable to reliably create shared libraries on AIX.
15105 *** Therefore, libtool is disabling shared libraries support. If you
15106 *** really care for shared libraries, you may want to modify your PATH
15107 *** so that a non-GNU linker is found, and then restart.
15116 # see comment about AmigaOS4 .so support
15117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118 archive_expsym_cmds=''
15121 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)'
15122 hardcode_libdir_flag_spec='-L$libdir'
15123 hardcode_minus_L=yes
15129 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15130 allow_undefined_flag=unsupported
15131 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15132 # support --undefined. This deserves some investigation. FIXME
15133 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139 cygwin* | mingw* | pw32* | cegcc*)
15140 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15141 # as there is no search path for DLLs.
15142 hardcode_libdir_flag_spec='-L$libdir'
15143 allow_undefined_flag=unsupported
15144 always_export_symbols=no
15145 enable_shared_with_static_runtimes=yes
15146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15148 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15150 # If the export-symbols file already is a .def file (1st line
15151 # is EXPORTS), use it as is; otherwise, prepend...
15152 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15153 cp $export_symbols $output_objdir/$soname.def;
15155 echo EXPORTS > $output_objdir/$soname.def;
15156 cat $export_symbols >> $output_objdir/$soname.def;
15158 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15166 hardcode_shlibpath_var=no
15167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15168 export_dynamic_flag_spec='${wl}-E'
15169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15170 # Instead, shared libraries are loaded at an image base (0x10000000 by
15171 # default) and relocated if they conflict, which is a slow very memory
15172 # consuming and fragmenting process. To avoid this, we pick a random,
15173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15174 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15176 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'
15179 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15181 if test "$host_os" = linux-dietlibc; then
15182 case $cc_basename in
15183 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15186 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15187 && test "$tmp_diet" = no
15190 tmp_sharedflag='-shared'
15191 case $cc_basename,$host_cpu in
15192 pgcc*) # Portland Group C compiler
15193 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'
15194 tmp_addflag=' $pic_flag'
15196 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15197 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'
15198 tmp_addflag=' $pic_flag -Mnomain' ;;
15199 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15200 tmp_addflag=' -i_dynamic' ;;
15201 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15202 tmp_addflag=' -i_dynamic -nofor_main' ;;
15203 ifc* | ifort*) # Intel Fortran compiler
15204 tmp_addflag=' -nofor_main' ;;
15205 lf95*) # Lahey Fortran 8.1
15206 whole_archive_flag_spec=
15207 tmp_sharedflag='--shared' ;;
15208 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15209 tmp_sharedflag='-qmkshrobj'
15212 case `$CC -V 2>&1 | sed 5q` in
15213 *Sun\ C*) # Sun C 5.9
15214 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'
15215 compiler_needs_object=yes
15216 tmp_sharedflag='-G' ;;
15217 *Sun\ F*) # Sun Fortran 8.3
15218 tmp_sharedflag='-G' ;;
15220 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15222 if test "x$supports_anon_versioning" = xyes; then
15223 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15225 echo "local: *; };" >> $output_objdir/$libname.ver~
15226 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15229 case $cc_basename in
15231 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15232 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15233 hardcode_libdir_flag_spec=
15234 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15235 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15236 if test "x$supports_anon_versioning" = xyes; then
15237 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15239 echo "local: *; };" >> $output_objdir/$libname.ver~
15240 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15251 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15260 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15265 *** create shared libraries on Solaris systems. Therefore, libtool
15266 *** is disabling shared libraries support. We urge you to upgrade GNU
15267 *** binutils to release 2.9.1 or newer. Another option is to modify
15268 *** your PATH or compiler configuration so that the native linker is
15269 *** used, and then restart.
15272 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15281 case `$LD -v 2>&1` in
15282 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15286 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15287 *** reliably create shared libraries on SCO systems. Therefore, libtool
15288 *** is disabling shared libraries support. We urge you to upgrade GNU
15289 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15290 *** your PATH or compiler configuration so that the native linker is
15291 *** used, and then restart.
15296 # For security reasons, it is highly recommended that you always
15297 # use absolute paths for naming shared libraries, and exclude the
15298 # DT_RUNPATH tag from executables and libraries. But doing so
15299 # requires that you compile everything twice, which is a pain.
15300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15312 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15314 hardcode_direct=yes
15315 hardcode_shlibpath_var=no
15319 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15321 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15328 if test "$ld_shlibs" = no; then
15330 hardcode_libdir_flag_spec=
15331 export_dynamic_flag_spec=
15332 whole_archive_flag_spec=
15335 # PORTME fill in a description of your system's linker (not GNU ld)
15338 allow_undefined_flag=unsupported
15339 always_export_symbols=yes
15340 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'
15341 # Note: this linker hardcodes the directories in LIBPATH if there
15342 # are no directories specified by -L.
15343 hardcode_minus_L=yes
15344 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15345 # Neither direct hardcoding nor static linking is supported with a
15347 hardcode_direct=unsupported
15352 if test "$host_cpu" = ia64; then
15353 # On IA64, the linker does run time linking by default, so we don't
15354 # have to do anything special.
15355 aix_use_runtimelinking=no
15356 exp_sym_flag='-Bexport'
15359 # If we're using GNU nm, then we don't want the "-C" option.
15360 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15361 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15362 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'
15364 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'
15366 aix_use_runtimelinking=no
15368 # Test if we are trying to use run time linking or normal
15369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15370 # need to do runtime linking.
15371 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15372 for ld_flag in $LDFLAGS; do
15373 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15374 aix_use_runtimelinking=yes
15381 exp_sym_flag='-bexport'
15382 no_entry_flag='-bnoentry'
15385 # When large executables or shared objects are built, AIX ld can
15386 # have problems creating the table of contents. If linking a library
15387 # or program results in "error TOC overflow" add -mminimal-toc to
15388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15392 hardcode_direct=yes
15393 hardcode_direct_absolute=yes
15394 hardcode_libdir_separator=':'
15395 link_all_deplibs=yes
15396 file_list_spec='${wl}-f,'
15398 if test "$GCC" = yes; then
15399 case $host_os in aix4.[012]|aix4.[012].*)
15400 # We only want to do this on AIX 4.2 and lower, the check
15401 # below for broken collect2 doesn't work under 4.3+
15402 collect2name=`${CC} -print-prog-name=collect2`
15403 if test -f "$collect2name" &&
15404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15406 # We have reworked collect2
15409 # We have old collect2
15410 hardcode_direct=unsupported
15411 # It fails to find uninstalled libraries when the uninstalled
15412 # path is not listed in the libpath. Setting hardcode_minus_L
15413 # to unsupported forces relinking
15414 hardcode_minus_L=yes
15415 hardcode_libdir_flag_spec='-L$libdir'
15416 hardcode_libdir_separator=
15420 shared_flag='-shared'
15421 if test "$aix_use_runtimelinking" = yes; then
15422 shared_flag="$shared_flag "'${wl}-G'
15426 if test "$host_cpu" = ia64; then
15427 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15428 # chokes on -Wl,-G. The following line is correct:
15431 if test "$aix_use_runtimelinking" = yes; then
15432 shared_flag='${wl}-G'
15434 shared_flag='${wl}-bM:SRE'
15439 export_dynamic_flag_spec='${wl}-bexpall'
15440 # It seems that -bexpall does not export symbols beginning with
15441 # underscore (_), so it is better to generate a list of symbols to export.
15442 always_export_symbols=yes
15443 if test "$aix_use_runtimelinking" = yes; then
15444 # Warning - without using the other runtime loading flags (-brtl),
15445 # -berok will link without error, but may produce a broken library.
15446 allow_undefined_flag='-berok'
15447 # Determine the default libpath from the value encoded in an
15448 # empty executable.
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15460 if ac_fn_c_try_link "$LINENO"; then :
15462 lt_aix_libpath_sed='
15463 /Import File Strings/,/^$/ {
15469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15470 # Check for a 64-bit object if we didn't find anything.
15471 if test -z "$aix_libpath"; then
15472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15475 rm -f core conftest.err conftest.$ac_objext \
15476 conftest$ac_exeext conftest.$ac_ext
15477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15480 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"
15482 if test "$host_cpu" = ia64; then
15483 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15484 allow_undefined_flag="-z nodefs"
15485 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"
15487 # Determine the default libpath from the value encoded in an
15488 # empty executable.
15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15500 if ac_fn_c_try_link "$LINENO"; then :
15502 lt_aix_libpath_sed='
15503 /Import File Strings/,/^$/ {
15509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15510 # Check for a 64-bit object if we didn't find anything.
15511 if test -z "$aix_libpath"; then
15512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15515 rm -f core conftest.err conftest.$ac_objext \
15516 conftest$ac_exeext conftest.$ac_ext
15517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15520 # Warning - without using the other run time loading flags,
15521 # -berok will link without error, but may produce a broken library.
15522 no_undefined_flag=' ${wl}-bernotok'
15523 allow_undefined_flag=' ${wl}-berok'
15524 # Exported symbols can be pulled into shared objects from archives
15525 whole_archive_flag_spec='$convenience'
15526 archive_cmds_need_lc=yes
15527 # This is similar to how AIX traditionally builds its shared libraries.
15528 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'
15536 # see comment about AmigaOS4 .so support
15537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538 archive_expsym_cmds=''
15541 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15542 hardcode_libdir_flag_spec='-L$libdir'
15543 hardcode_minus_L=yes
15549 export_dynamic_flag_spec=-rdynamic
15552 cygwin* | mingw* | pw32* | cegcc*)
15553 # When not using gcc, we currently assume that we are using
15554 # Microsoft Visual C++.
15555 # hardcode_libdir_flag_spec is actually meaningless, as there is
15556 # no search path for DLLs.
15557 hardcode_libdir_flag_spec=' '
15558 allow_undefined_flag=unsupported
15559 # Tell ltmain to make .lib files, not .a files.
15561 # Tell ltmain to make .dll files, not .so files.
15563 # FIXME: Setting linknames here is a bad hack.
15564 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15565 # The linker will automatically build a .lib file if we build a DLL.
15566 old_archive_from_new_cmds='true'
15567 # FIXME: Should let the user specify the lib program.
15568 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15569 fix_srcfile_path='`cygpath -w "$srcfile"`'
15570 enable_shared_with_static_runtimes=yes
15573 darwin* | rhapsody*)
15576 archive_cmds_need_lc=no
15578 hardcode_automatic=yes
15579 hardcode_shlibpath_var=unsupported
15580 whole_archive_flag_spec=''
15581 link_all_deplibs=yes
15582 allow_undefined_flag="$_lt_dar_allow_undefined"
15583 case $cc_basename in
15584 ifort*) _lt_dar_can_shared=yes ;;
15585 *) _lt_dar_can_shared=$GCC ;;
15587 if test "$_lt_dar_can_shared" = "yes"; then
15588 output_verbose_link_cmd=echo
15589 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15590 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15591 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}"
15592 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}"
15601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15602 hardcode_libdir_flag_spec='-L$libdir'
15603 hardcode_shlibpath_var=no
15610 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15611 # support. Future versions do this automatically, but an explicit c++rt0.o
15612 # does not break anything, and helps significantly (at the cost of a little
15615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15616 hardcode_libdir_flag_spec='-R$libdir'
15617 hardcode_direct=yes
15618 hardcode_shlibpath_var=no
15621 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15624 hardcode_direct=yes
15625 hardcode_minus_L=yes
15626 hardcode_shlibpath_var=no
15629 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15630 freebsd* | dragonfly*)
15631 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15632 hardcode_libdir_flag_spec='-R$libdir'
15633 hardcode_direct=yes
15634 hardcode_shlibpath_var=no
15638 if test "$GCC" = yes; then
15639 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'
15641 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'
15643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15644 hardcode_libdir_separator=:
15645 hardcode_direct=yes
15647 # hardcode_minus_L: Not really in the search PATH,
15648 # but as the default location of the library.
15649 hardcode_minus_L=yes
15650 export_dynamic_flag_spec='${wl}-E'
15654 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15659 if test "$with_gnu_ld" = no; then
15660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15661 hardcode_libdir_flag_spec_ld='+b $libdir'
15662 hardcode_libdir_separator=:
15663 hardcode_direct=yes
15664 hardcode_direct_absolute=yes
15665 export_dynamic_flag_spec='${wl}-E'
15666 # hardcode_minus_L: Not really in the search PATH,
15667 # but as the default location of the library.
15668 hardcode_minus_L=yes
15673 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15676 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15679 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15682 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15688 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15691 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15694 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15698 if test "$with_gnu_ld" = no; then
15699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15700 hardcode_libdir_separator=:
15705 hardcode_shlibpath_var=no
15708 hardcode_direct=yes
15709 hardcode_direct_absolute=yes
15710 export_dynamic_flag_spec='${wl}-E'
15712 # hardcode_minus_L: Not really in the search PATH,
15713 # but as the default location of the library.
15714 hardcode_minus_L=yes
15720 irix5* | irix6* | nonstopux*)
15721 if test "$GCC" = yes; then
15722 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'
15723 # Try to use the -exported_symbol ld option, if it does not
15724 # work, assume that -exports_file does not work either and
15725 # implicitly export all symbols.
15726 save_LDFLAGS="$LDFLAGS"
15727 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15732 if ac_fn_c_try_link "$LINENO"; then :
15733 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'
15736 rm -f core conftest.err conftest.$ac_objext \
15737 conftest$ac_exeext conftest.$ac_ext
15738 LDFLAGS="$save_LDFLAGS"
15740 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'
15741 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'
15743 archive_cmds_need_lc='no'
15744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745 hardcode_libdir_separator=:
15747 link_all_deplibs=yes
15751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15754 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15756 hardcode_libdir_flag_spec='-R$libdir'
15757 hardcode_direct=yes
15758 hardcode_shlibpath_var=no
15762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763 hardcode_direct=yes
15764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15765 hardcode_libdir_separator=:
15766 hardcode_shlibpath_var=no
15773 if test -f /usr/libexec/ld.so; then
15774 hardcode_direct=yes
15775 hardcode_shlibpath_var=no
15776 hardcode_direct_absolute=yes
15777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15779 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15781 export_dynamic_flag_spec='${wl}-E'
15784 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15786 hardcode_libdir_flag_spec='-R$libdir'
15789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15800 hardcode_libdir_flag_spec='-L$libdir'
15801 hardcode_minus_L=yes
15802 allow_undefined_flag=unsupported
15803 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'
15804 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15808 if test "$GCC" = yes; then
15809 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15810 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'
15812 allow_undefined_flag=' -expect_unresolved \*'
15813 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'
15815 archive_cmds_need_lc='no'
15816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15817 hardcode_libdir_separator=:
15820 osf4* | osf5*) # as osf3* with the addition of -msym flag
15821 if test "$GCC" = yes; then
15822 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15823 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'
15824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15826 allow_undefined_flag=' -expect_unresolved \*'
15827 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'
15828 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~
15829 $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'
15831 # Both c and cxx compiler support -rpath directly
15832 hardcode_libdir_flag_spec='-rpath $libdir'
15834 archive_cmds_need_lc='no'
15835 hardcode_libdir_separator=:
15839 no_undefined_flag=' -z defs'
15840 if test "$GCC" = yes; then
15842 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15844 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15846 case `$CC -V 2>&1` in
15849 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15855 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15857 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15861 hardcode_libdir_flag_spec='-R$libdir'
15862 hardcode_shlibpath_var=no
15864 solaris2.[0-5] | solaris2.[0-5].*) ;;
15866 # The compiler driver will combine and reorder linker options,
15867 # but understands `-z linker_flag'. GCC discards it without `$wl',
15868 # but is careful enough not to reorder.
15869 # Supported since Solaris 2.6 (maybe 2.5.1?)
15870 if test "$GCC" = yes; then
15871 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15873 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15877 link_all_deplibs=yes
15881 if test "x$host_vendor" = xsequent; then
15882 # Use $CC to link under sequent, because it throws in some extra .o
15883 # files that make .init and .fini sections work.
15884 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15886 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_libdir_flag_spec='-L$libdir'
15889 hardcode_direct=yes
15890 hardcode_minus_L=yes
15891 hardcode_shlibpath_var=no
15895 case $host_vendor in
15897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898 hardcode_direct=yes # is this really true???
15901 ## LD is ld it makes a PLAMLIB
15902 ## CC just makes a GrossModule.
15903 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15904 reload_cmds='$CC -r -o $output$reload_objs'
15908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15909 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15912 runpath_var='LD_RUN_PATH'
15913 hardcode_shlibpath_var=no
15917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918 hardcode_shlibpath_var=no
15919 export_dynamic_flag_spec='-Bexport'
15923 if test -d /usr/nec; then
15924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15925 hardcode_shlibpath_var=no
15926 runpath_var=LD_RUN_PATH
15927 hardcode_runpath_var=yes
15932 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15933 no_undefined_flag='${wl}-z,text'
15934 archive_cmds_need_lc=no
15935 hardcode_shlibpath_var=no
15936 runpath_var='LD_RUN_PATH'
15938 if test "$GCC" = yes; then
15939 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15940 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15942 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15943 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15947 sysv5* | sco3.2v5* | sco5v6*)
15948 # Note: We can NOT use -z defs as we might desire, because we do not
15949 # link with -lc, and that would cause any symbols used from libc to
15950 # always be unresolved, which means just about no library would
15951 # ever link correctly. If we're not using GNU ld we use -z text
15952 # though, which does catch some bad symbols but isn't as heavy-handed
15954 no_undefined_flag='${wl}-z,text'
15955 allow_undefined_flag='${wl}-z,nodefs'
15956 archive_cmds_need_lc=no
15957 hardcode_shlibpath_var=no
15958 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15959 hardcode_libdir_separator=':'
15960 link_all_deplibs=yes
15961 export_dynamic_flag_spec='${wl}-Bexport'
15962 runpath_var='LD_RUN_PATH'
15964 if test "$GCC" = yes; then
15965 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15968 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15975 hardcode_libdir_flag_spec='-L$libdir'
15976 hardcode_shlibpath_var=no
15984 if test x$host_vendor = xsni; then
15986 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15987 export_dynamic_flag_spec='${wl}-Blargedynsym'
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15994 $as_echo "$ld_shlibs" >&6; }
15995 test "$ld_shlibs" = no && can_build_shared=no
15997 with_gnu_ld=$with_gnu_ld
16014 # Do we need to explicitly link libc?
16016 case "x$archive_cmds_need_lc" in
16018 # Assume -lc should be added
16019 archive_cmds_need_lc=yes
16021 if test "$enable_shared" = yes && test "$GCC" = yes; then
16022 case $archive_cmds in
16024 # FIXME: we may have to deal with multi-command sequences.
16027 # Test whether the compiler implicitly links with -lc since on some
16028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16029 # to ld, don't add -lc before -lgcc.
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16031 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16032 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16033 $as_echo_n "(cached) " >&6
16036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16039 (eval $ac_compile) 2>&5
16041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16042 test $ac_status = 0; } 2>conftest.err; then
16045 libobjs=conftest.$ac_objext
16047 wl=$lt_prog_compiler_wl
16048 pic_flag=$lt_prog_compiler_pic
16054 lt_save_allow_undefined_flag=$allow_undefined_flag
16055 allow_undefined_flag=
16056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16057 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16060 test $ac_status = 0; }
16062 lt_cv_archive_cmds_need_lc=no
16064 lt_cv_archive_cmds_need_lc=yes
16066 allow_undefined_flag=$lt_save_allow_undefined_flag
16068 cat conftest.err 1>&5
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16074 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16075 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16239 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16241 if test "$GCC" = yes; then
16243 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16244 *) lt_awk_arg="/^libraries:/" ;;
16246 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16247 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16248 # if the path contains ";" then we assume it to be the separator
16249 # otherwise default to the standard path separator (i.e. ":") - it is
16250 # assumed that no part of a normal pathname contains ";" but that should
16251 # okay in the real world where ";" in dirpaths is itself problematic.
16252 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16254 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16256 # Ok, now we have the path, separated by spaces, we can step through it
16257 # and add multilib dir if necessary.
16258 lt_tmp_lt_search_path_spec=
16259 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16260 for lt_sys_path in $lt_search_path_spec; do
16261 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16264 test -d "$lt_sys_path" && \
16265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16268 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16269 BEGIN {RS=" "; FS="/|\n";} {
16272 for (lt_i = NF; lt_i > 0; lt_i--) {
16273 if ($lt_i != "" && $lt_i != ".") {
16274 if ($lt_i == "..") {
16277 if (lt_count == 0) {
16278 lt_foo="/" $lt_i lt_foo;
16285 if (lt_foo != "") { lt_freq[lt_foo]++; }
16286 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16288 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
16290 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16292 library_names_spec=
16293 libname_spec='lib$name'
16297 postuninstall_cmds=
16301 shlibpath_overrides_runpath=unknown
16303 dynamic_linker="$host_os ld.so"
16304 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16305 need_lib_prefix=unknown
16306 hardcode_into_libs=no
16308 # when you set need_version to no, make sure it does not cause -set_version
16309 # flags to be left without arguments
16310 need_version=unknown
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16316 shlibpath_var=LIBPATH
16318 # AIX 3 has no versioning support, so we append a major version to the name.
16319 soname_spec='${libname}${release}${shared_ext}$major'
16326 hardcode_into_libs=yes
16327 if test "$host_cpu" = ia64; then
16328 # AIX 5 supports IA64
16329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16330 shlibpath_var=LD_LIBRARY_PATH
16332 # With GCC up to 2.95.x, collect2 would create an import file
16333 # for dependence libraries. The import file would start with
16334 # the line `#! .'. This would cause the generated library to
16335 # depend on `.', always an invalid library. This was fixed in
16336 # development snapshots of GCC prior to 3.0.
16338 aix4 | aix4.[01] | aix4.[01].*)
16339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16341 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16344 can_build_shared=no
16348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16349 # soname into executable. Probably we can add versioning support to
16350 # collect2, so additional links can be useful in future.
16351 if test "$aix_use_runtimelinking" = yes; then
16352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16353 # instead of lib<name>.a to let people know that these are not
16354 # typical AIX shared libraries.
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 # We preserve .a as extension for shared libraries through AIX4.2
16358 # and later when we are not doing run time linking.
16359 library_names_spec='${libname}${release}.a $libname.a'
16360 soname_spec='${libname}${release}${shared_ext}$major'
16362 shlibpath_var=LIBPATH
16369 # Since July 2007 AmigaOS4 officially supports .so libraries.
16370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374 library_names_spec='$libname.ixlibrary $libname.a'
16375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16376 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'
16382 library_names_spec='${libname}${shared_ext}'
16383 dynamic_linker="$host_os ld.so"
16384 shlibpath_var=LIBRARY_PATH
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16396 # the default ld.so.conf also contains /usr/contrib/lib and
16397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16398 # libtool to hard-code these into programs
16401 cygwin* | mingw* | pw32* | cegcc*)
16402 version_type=windows
16407 case $GCC,$host_os in
16408 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16409 library_names_spec='$libname.dll.a'
16410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16411 postinstall_cmds='base_file=`basename \${file}`~
16412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16413 dldir=$destdir/`dirname \$dlpath`~
16414 test -d \$dldir || mkdir -p \$dldir~
16415 $install_prog $dir/$dlname \$dldir/$dlname~
16416 chmod a+x \$dldir/$dlname~
16417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16421 dlpath=$dir/\$dldll~
16423 shlibpath_overrides_runpath=yes
16427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16432 # MinGW DLLs use traditional 'lib' prefix
16433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16434 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16435 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16436 # It is most probably a Windows format PATH printed by
16437 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16438 # path with ; separators, and with drive letters. We can handle the
16439 # drive letters (cygwin fileutils understands them), so leave them,
16440 # especially as we might pass files found there to a mingw objdump,
16441 # which wouldn't understand a cygwinified path. Ahh.
16442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16448 # pw32 DLLs use 'pw' prefix rather than 'lib'
16449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16458 dynamic_linker='Win32 ld.exe'
16459 # FIXME: first we should search . and the directory the executable is in
16463 darwin* | rhapsody*)
16464 dynamic_linker="$host_os dyld"
16465 version_type=darwin
16468 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16469 soname_spec='${libname}${release}${major}$shared_ext'
16470 shlibpath_overrides_runpath=yes
16471 shlibpath_var=DYLD_LIBRARY_PATH
16472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16474 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16475 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 shlibpath_var=LD_LIBRARY_PATH
16491 freebsd* | dragonfly*)
16492 # DragonFly does not have aout. When/if they implement a new
16493 # versioning mechanism, adjust this.
16494 if test -x /usr/bin/objformat; then
16495 objformat=`/usr/bin/objformat`
16498 freebsd[123]*) objformat=aout ;;
16499 *) objformat=elf ;;
16502 version_type=freebsd-$objformat
16503 case $version_type in
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16514 shlibpath_var=LD_LIBRARY_PATH
16517 shlibpath_overrides_runpath=yes
16519 freebsd3.[01]* | freebsdelf3.[01]*)
16520 shlibpath_overrides_runpath=yes
16521 hardcode_into_libs=yes
16523 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16524 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16525 shlibpath_overrides_runpath=no
16526 hardcode_into_libs=yes
16528 *) # from 4.6 on, and DragonFly
16529 shlibpath_overrides_runpath=yes
16530 hardcode_into_libs=yes
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16542 hardcode_into_libs=yes
16545 hpux9* | hpux10* | hpux11*)
16546 # Give a soname corresponding to the major version so that dld.sl refuses to
16547 # link against other versions.
16554 hardcode_into_libs=yes
16555 dynamic_linker="$host_os dld.so"
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559 soname_spec='${libname}${release}${shared_ext}$major'
16560 if test "X$HPUX_IA64_MODE" = X32; then
16561 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16563 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16569 hardcode_into_libs=yes
16570 dynamic_linker="$host_os dld.sl"
16571 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16572 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16580 dynamic_linker="$host_os dld.sl"
16581 shlibpath_var=SHLIB_PATH
16582 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16587 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16588 postinstall_cmds='chmod 555 $lib'
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16598 shlibpath_var=LD_LIBRARY_PATH
16599 shlibpath_overrides_runpath=no
16600 hardcode_into_libs=yes
16603 irix5* | irix6* | nonstopux*)
16605 nonstopux*) version_type=nonstopux ;;
16607 if test "$lt_cv_prog_gnu_ld" = yes; then
16615 soname_spec='${libname}${release}${shared_ext}$major'
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16618 irix5* | nonstopux*)
16619 libsuff= shlibsuff=
16622 case $LD in # libtool.m4 will add one of these switches to LD
16623 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16624 libsuff= shlibsuff= libmagic=32-bit;;
16625 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16626 libsuff=32 shlibsuff=N32 libmagic=N32;;
16627 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16628 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16629 *) libsuff= shlibsuff= libmagic=never-match;;
16633 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16634 shlibpath_overrides_runpath=no
16635 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16636 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16637 hardcode_into_libs=yes
16640 # No shared lib support for Linux oldld, aout, or coff.
16641 linux*oldld* | linux*aout* | linux*coff*)
16645 # This must be Linux ELF.
16646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651 soname_spec='${libname}${release}${shared_ext}$major'
16652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16653 shlibpath_var=LD_LIBRARY_PATH
16654 shlibpath_overrides_runpath=no
16656 # Some binutils ld are patched to set DT_RUNPATH
16657 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16658 $as_echo_n "(cached) " >&6
16660 lt_cv_shlibpath_overrides_runpath=no
16661 save_LDFLAGS=$LDFLAGS
16662 save_libdir=$libdir
16663 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16664 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16676 if ac_fn_c_try_link "$LINENO"; then :
16677 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16678 lt_cv_shlibpath_overrides_runpath=yes
16681 rm -f core conftest.err conftest.$ac_objext \
16682 conftest$ac_exeext conftest.$ac_ext
16683 LDFLAGS=$save_LDFLAGS
16684 libdir=$save_libdir
16688 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16690 # This implies no fast_install, which is unacceptable.
16691 # Some rework will be needed to allow for fast_install
16692 # before this can be enabled.
16693 hardcode_into_libs=yes
16695 # Append ld.so.conf contents to the search path
16696 if test -f /etc/ld.so.conf; then
16697 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' ' '`
16698 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16701 # We used to test for /lib/ld.so.1 and disable shared libraries on
16702 # powerpc, because MkLinux only supported shared libraries with the
16703 # GNU dynamic linker. Since this was broken with cross compilers,
16704 # most powerpc-linux boxes support dynamic linking these days and
16705 # people can always --disable-shared, the test was removed, and we
16706 # assume the GNU/Linux dynamic linker is in use.
16707 dynamic_linker='GNU/Linux ld.so'
16714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16717 dynamic_linker='NetBSD (a.out) ld.so'
16719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16720 soname_spec='${libname}${release}${shared_ext}$major'
16721 dynamic_linker='NetBSD ld.elf_so'
16723 shlibpath_var=LD_LIBRARY_PATH
16724 shlibpath_overrides_runpath=yes
16725 hardcode_into_libs=yes
16730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=yes
16739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740 soname_spec='${libname}${release}${shared_ext}$major'
16741 shlibpath_var=LD_LIBRARY_PATH
16742 shlibpath_overrides_runpath=no
16743 hardcode_into_libs=yes
16744 dynamic_linker='ldqnx.so'
16749 sys_lib_dlsearch_path_spec="/usr/lib"
16751 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16753 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16754 *) need_version=no ;;
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16758 shlibpath_var=LD_LIBRARY_PATH
16759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16761 openbsd2.[89] | openbsd2.[89].*)
16762 shlibpath_overrides_runpath=no
16765 shlibpath_overrides_runpath=yes
16769 shlibpath_overrides_runpath=yes
16774 libname_spec='$name'
16777 library_names_spec='$libname${shared_ext} $libname.a'
16778 dynamic_linker='OS/2 ld.exe'
16779 shlibpath_var=LIBPATH
16782 osf3* | osf4* | osf5*)
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16790 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 shlibpath_overrides_runpath=yes
16805 hardcode_into_libs=yes
16806 # ldd complains unless libraries are executable
16807 postinstall_cmds='chmod +x $lib'
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 shlibpath_overrides_runpath=yes
16816 if test "$with_gnu_ld" = yes; then
16824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16825 soname_spec='${libname}${release}${shared_ext}$major'
16826 shlibpath_var=LD_LIBRARY_PATH
16827 case $host_vendor in
16829 shlibpath_overrides_runpath=no
16831 runpath_var=LD_RUN_PATH
16839 shlibpath_overrides_runpath=no
16840 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16846 if test -d /usr/nec ;then
16848 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16849 soname_spec='$libname${shared_ext}.$major'
16850 shlibpath_var=LD_LIBRARY_PATH
16854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16855 version_type=freebsd-elf
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 shlibpath_overrides_runpath=yes
16862 hardcode_into_libs=yes
16863 if test "$with_gnu_ld" = yes; then
16864 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16866 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16869 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16873 sys_lib_dlsearch_path_spec='/usr/lib'
16877 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882 shlibpath_var=LD_LIBRARY_PATH
16883 shlibpath_overrides_runpath=no
16884 hardcode_into_libs=yes
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 shlibpath_var=LD_LIBRARY_PATH
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16899 $as_echo "$dynamic_linker" >&6; }
16900 test "$dynamic_linker" = no && can_build_shared=no
16902 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16903 if test "$GCC" = yes; then
16904 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16907 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16908 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16910 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16911 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17001 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17003 if test -n "$hardcode_libdir_flag_spec" ||
17004 test -n "$runpath_var" ||
17005 test "X$hardcode_automatic" = "Xyes" ; then
17007 # We can hardcode non-existent directories.
17008 if test "$hardcode_direct" != no &&
17009 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17010 # have to relink, otherwise we might link with an installed library
17011 # when we should be linking with a yet-to-be-installed one
17012 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17013 test "$hardcode_minus_L" != no; then
17014 # Linking always hardcodes the temporary library directory.
17015 hardcode_action=relink
17017 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17018 hardcode_action=immediate
17021 # We cannot hardcode anything, or else we can only hardcode existing
17023 hardcode_action=unsupported
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17026 $as_echo "$hardcode_action" >&6; }
17028 if test "$hardcode_action" = relink ||
17029 test "$inherit_rpath" = yes; then
17030 # Fast installation is not supported
17031 enable_fast_install=no
17032 elif test "$shlibpath_overrides_runpath" = yes ||
17033 test "$enable_shared" = no; then
17034 # Fast installation is not necessary
17035 enable_fast_install=needless
17043 if test "x$enable_dlopen" != xyes; then
17044 enable_dlopen=unknown
17045 enable_dlopen_self=unknown
17046 enable_dlopen_self_static=unknown
17053 lt_cv_dlopen="load_add_on"
17055 lt_cv_dlopen_self=yes
17058 mingw* | pw32* | cegcc*)
17059 lt_cv_dlopen="LoadLibrary"
17064 lt_cv_dlopen="dlopen"
17069 # if libdl is installed we need to link against it
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17071 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17072 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17073 $as_echo_n "(cached) " >&6
17075 ac_check_lib_save_LIBS=$LIBS
17077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h. */
17080 /* Override any GCC internal prototype to avoid an error.
17081 Use char because int might match the return type of a GCC
17082 builtin and then its argument prototype would still apply. */
17095 if ac_fn_c_try_link "$LINENO"; then :
17096 ac_cv_lib_dl_dlopen=yes
17098 ac_cv_lib_dl_dlopen=no
17100 rm -f core conftest.err conftest.$ac_objext \
17101 conftest$ac_exeext conftest.$ac_ext
17102 LIBS=$ac_check_lib_save_LIBS
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17105 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17106 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17110 lt_cv_dlopen="dyld"
17112 lt_cv_dlopen_self=yes
17119 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17120 if test "x$ac_cv_func_shl_load" = x""yes; then :
17121 lt_cv_dlopen="shl_load"
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17124 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17125 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17126 $as_echo_n "(cached) " >&6
17128 ac_check_lib_save_LIBS=$LIBS
17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131 /* end confdefs.h. */
17133 /* Override any GCC internal prototype to avoid an error.
17134 Use char because int might match the return type of a GCC
17135 builtin and then its argument prototype would still apply. */
17143 return shl_load ();
17148 if ac_fn_c_try_link "$LINENO"; then :
17149 ac_cv_lib_dld_shl_load=yes
17151 ac_cv_lib_dld_shl_load=no
17153 rm -f core conftest.err conftest.$ac_objext \
17154 conftest$ac_exeext conftest.$ac_ext
17155 LIBS=$ac_check_lib_save_LIBS
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17158 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17159 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17160 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17162 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17163 if test "x$ac_cv_func_dlopen" = x""yes; then :
17164 lt_cv_dlopen="dlopen"
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17167 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17169 $as_echo_n "(cached) " >&6
17171 ac_check_lib_save_LIBS=$LIBS
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17176 /* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17191 if ac_fn_c_try_link "$LINENO"; then :
17192 ac_cv_lib_dl_dlopen=yes
17194 ac_cv_lib_dl_dlopen=no
17196 rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17198 LIBS=$ac_check_lib_save_LIBS
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17201 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17202 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17206 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17207 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17208 $as_echo_n "(cached) " >&6
17210 ac_check_lib_save_LIBS=$LIBS
17211 LIBS="-lsvld $LIBS"
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17230 if ac_fn_c_try_link "$LINENO"; then :
17231 ac_cv_lib_svld_dlopen=yes
17233 ac_cv_lib_svld_dlopen=no
17235 rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17240 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17241 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17242 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17245 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17247 $as_echo_n "(cached) " >&6
17249 ac_check_lib_save_LIBS=$LIBS
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17254 /* Override any GCC internal prototype to avoid an error.
17255 Use char because int might match the return type of a GCC
17256 builtin and then its argument prototype would still apply. */
17264 return dld_link ();
17269 if ac_fn_c_try_link "$LINENO"; then :
17270 ac_cv_lib_dld_dld_link=yes
17272 ac_cv_lib_dld_dld_link=no
17274 rm -f core conftest.err conftest.$ac_objext \
17275 conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17279 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17280 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17281 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17302 if test "x$lt_cv_dlopen" != xno; then
17308 case $lt_cv_dlopen in
17310 save_CPPFLAGS="$CPPFLAGS"
17311 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17313 save_LDFLAGS="$LDFLAGS"
17314 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17317 LIBS="$lt_cv_dlopen_libs $LIBS"
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17320 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17321 if test "${lt_cv_dlopen_self+set}" = set; then :
17322 $as_echo_n "(cached) " >&6
17324 if test "$cross_compiling" = yes; then :
17325 lt_cv_dlopen_self=cross
17327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17328 lt_status=$lt_dlunknown
17329 cat > conftest.$ac_ext <<_LT_EOF
17330 #line 17330 "configure"
17331 #include "confdefs.h"
17340 # define LT_DLGLOBAL RTLD_GLOBAL
17343 # define LT_DLGLOBAL DL_GLOBAL
17345 # define LT_DLGLOBAL 0
17349 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17350 find out it does not work in some platform. */
17351 #ifndef LT_DLLAZY_OR_NOW
17353 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17356 # define LT_DLLAZY_OR_NOW DL_LAZY
17359 # define LT_DLLAZY_OR_NOW RTLD_NOW
17362 # define LT_DLLAZY_OR_NOW DL_NOW
17364 # define LT_DLLAZY_OR_NOW 0
17371 void fnord() { int i=42;}
17374 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17375 int status = $lt_dlunknown;
17379 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17380 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17381 /* dlclose (self); */
17389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17390 (eval $ac_link) 2>&5
17392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17393 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17394 (./conftest; exit; ) >&5 2>/dev/null
17396 case x$lt_status in
17397 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17398 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17399 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17402 # compilation failed
17403 lt_cv_dlopen_self=no
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17411 $as_echo "$lt_cv_dlopen_self" >&6; }
17413 if test "x$lt_cv_dlopen_self" = xyes; then
17414 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17416 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17417 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17418 $as_echo_n "(cached) " >&6
17420 if test "$cross_compiling" = yes; then :
17421 lt_cv_dlopen_self_static=cross
17423 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17424 lt_status=$lt_dlunknown
17425 cat > conftest.$ac_ext <<_LT_EOF
17426 #line 17426 "configure"
17427 #include "confdefs.h"
17436 # define LT_DLGLOBAL RTLD_GLOBAL
17439 # define LT_DLGLOBAL DL_GLOBAL
17441 # define LT_DLGLOBAL 0
17445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17446 find out it does not work in some platform. */
17447 #ifndef LT_DLLAZY_OR_NOW
17449 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17452 # define LT_DLLAZY_OR_NOW DL_LAZY
17455 # define LT_DLLAZY_OR_NOW RTLD_NOW
17458 # define LT_DLLAZY_OR_NOW DL_NOW
17460 # define LT_DLLAZY_OR_NOW 0
17467 void fnord() { int i=42;}
17470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17471 int status = $lt_dlunknown;
17475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17476 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17477 /* dlclose (self); */
17485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17486 (eval $ac_link) 2>&5
17488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17489 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17490 (./conftest; exit; ) >&5 2>/dev/null
17492 case x$lt_status in
17493 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17494 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17495 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17498 # compilation failed
17499 lt_cv_dlopen_self_static=no
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17507 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17510 CPPFLAGS="$save_CPPFLAGS"
17511 LDFLAGS="$save_LDFLAGS"
17516 case $lt_cv_dlopen_self in
17517 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17518 *) enable_dlopen_self=unknown ;;
17521 case $lt_cv_dlopen_self_static in
17522 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17523 *) enable_dlopen_self_static=unknown ;;
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17546 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17547 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17548 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17549 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17551 $as_echo "yes" >&6; }
17553 # FIXME - insert some real tests, host_os isn't really good enough
17556 if test -n "$STRIP" ; then
17557 striplib="$STRIP -x"
17558 old_striplib="$STRIP -S"
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17560 $as_echo "yes" >&6; }
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17563 $as_echo "no" >&6; }
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17568 $as_echo "no" >&6; }
17584 # Report which library types will actually be built
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17586 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17588 $as_echo "$can_build_shared" >&6; }
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17591 $as_echo_n "checking whether to build shared libraries... " >&6; }
17592 test "$can_build_shared" = "no" && enable_shared=no
17594 # On AIX, shared libraries and static libraries use the same namespace, and
17595 # are all built from PIC.
17598 test "$enable_shared" = yes && enable_static=no
17599 if test -n "$RANLIB"; then
17600 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17601 postinstall_cmds='$RANLIB $lib'
17606 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17607 test "$enable_shared" = yes && enable_static=no
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17612 $as_echo "$enable_shared" >&6; }
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17615 $as_echo_n "checking whether to build static libraries... " >&6; }
17616 # Make sure either enable_shared or enable_static is yes.
17617 test "$enable_shared" = yes || enable_static=yes
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17619 $as_echo "$enable_static" >&6; }
17626 ac_cpp='$CPP $CPPFLAGS'
17627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17635 ac_cpp='$CXXCPP $CPPFLAGS'
17636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17640 archive_cmds_need_lc_CXX=no
17641 allow_undefined_flag_CXX=
17642 always_export_symbols_CXX=no
17643 archive_expsym_cmds_CXX=
17644 compiler_needs_object_CXX=no
17645 export_dynamic_flag_spec_CXX=
17646 hardcode_direct_CXX=no
17647 hardcode_direct_absolute_CXX=no
17648 hardcode_libdir_flag_spec_CXX=
17649 hardcode_libdir_flag_spec_ld_CXX=
17650 hardcode_libdir_separator_CXX=
17651 hardcode_minus_L_CXX=no
17652 hardcode_shlibpath_var_CXX=unsupported
17653 hardcode_automatic_CXX=no
17654 inherit_rpath_CXX=no
17656 module_expsym_cmds_CXX=
17657 link_all_deplibs_CXX=unknown
17658 old_archive_cmds_CXX=$old_archive_cmds
17659 no_undefined_flag_CXX=
17660 whole_archive_flag_spec_CXX=
17661 enable_shared_with_static_runtimes_CXX=no
17663 # Source file extension for C++ test sources.
17666 # Object file extension for compiled C++ test sources.
17670 # No sense in running all these tests if we already determined that
17671 # the CXX compiler isn't working. Some variables (like enable_shared)
17672 # are currently assumed to apply to all compilers on this platform,
17673 # and will be corrupted by setting them based on a non-working compiler.
17674 if test "$_lt_caught_CXX_error" != yes; then
17675 # Code to be used in simple compile tests
17676 lt_simple_compile_test_code="int some_variable = 0;"
17678 # Code to be used in simple link tests
17679 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17688 # If no C compiler was specified, use CC.
17691 # If no C compiler flags were specified, use CFLAGS.
17692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17694 # Allow CC to be a program name with arguments.
17698 # save warnings/boilerplate of simple test code
17699 ac_outfile=conftest.$ac_objext
17700 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17701 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17702 _lt_compiler_boilerplate=`cat conftest.err`
17705 ac_outfile=conftest.$ac_objext
17706 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17707 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17708 _lt_linker_boilerplate=`cat conftest.err`
17712 # Allow CC to be a program name with arguments.
17717 lt_save_with_gnu_ld=$with_gnu_ld
17718 lt_save_path_LD=$lt_cv_path_LD
17719 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17720 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17722 $as_unset lt_cv_prog_gnu_ld
17724 if test -n "${lt_cv_path_LDCXX+set}"; then
17725 lt_cv_path_LD=$lt_cv_path_LDCXX
17727 $as_unset lt_cv_path_LD
17729 test -z "${LDCXX+set}" || LD=$LDCXX
17733 for cc_temp in $compiler""; do
17735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17741 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17744 if test -n "$compiler"; then
17745 # We don't want -fno-exception when compiling C++ code, so set the
17746 # no_builtin_flag separately
17747 if test "$GXX" = yes; then
17748 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17750 lt_prog_compiler_no_builtin_flag_CXX=
17753 if test "$GXX" = yes; then
17754 # Set up default GNU C++ configuration
17758 # Check whether --with-gnu-ld was given.
17759 if test "${with_gnu_ld+set}" = set; then :
17760 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17766 if test "$GCC" = yes; then
17767 # Check if gcc -print-prog-name=ld gives a path.
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17769 $as_echo_n "checking for ld used by $CC... " >&6; }
17772 # gcc leaves a trailing carriage return which upsets mingw
17773 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17775 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17778 # Accept absolute paths.
17780 re_direlt='/[^/][^/]*/\.\./'
17781 # Canonicalize the pathname of ld
17782 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17783 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17784 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17786 test -z "$LD" && LD="$ac_prog"
17789 # If it fails, then pretend we aren't using GCC.
17793 # If it is relative, then search for the first ld in PATH.
17794 with_gnu_ld=unknown
17797 elif test "$with_gnu_ld" = yes; then
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17799 $as_echo_n "checking for GNU ld... " >&6; }
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17802 $as_echo_n "checking for non-GNU ld... " >&6; }
17804 if test "${lt_cv_path_LD+set}" = set; then :
17805 $as_echo_n "(cached) " >&6
17807 if test -z "$LD"; then
17808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17809 for ac_dir in $PATH; do
17811 test -z "$ac_dir" && ac_dir=.
17812 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17813 lt_cv_path_LD="$ac_dir/$ac_prog"
17814 # Check to see if the program is GNU ld. I'd rather use --version,
17815 # but apparently some variants of GNU ld only accept -v.
17816 # Break only if it was the GNU/non-GNU ld that we prefer.
17817 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17818 *GNU* | *'with BFD'*)
17819 test "$with_gnu_ld" != no && break
17822 test "$with_gnu_ld" != yes && break
17829 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17833 LD="$lt_cv_path_LD"
17834 if test -n "$LD"; then
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17836 $as_echo "$LD" >&6; }
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17839 $as_echo "no" >&6; }
17841 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17843 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17844 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17845 $as_echo_n "(cached) " >&6
17847 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17848 case `$LD -v 2>&1 </dev/null` in
17849 *GNU* | *'with BFD'*)
17850 lt_cv_prog_gnu_ld=yes
17853 lt_cv_prog_gnu_ld=no
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17858 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17859 with_gnu_ld=$lt_cv_prog_gnu_ld
17867 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17868 # archiving commands below assume that GNU ld is being used.
17869 if test "$with_gnu_ld" = yes; then
17870 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17871 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'
17873 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17874 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17876 # If archive_cmds runs LD, not CC, wlarc should be empty
17877 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17878 # investigate it a little bit more. (MM)
17881 # ancient GNU ld didn't support --whole-archive et. al.
17882 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17883 $GREP 'no-whole-archive' > /dev/null; then
17884 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17886 whole_archive_flag_spec_CXX=
17892 # A generic and very simple default shared library creation
17893 # command for GNU C++ for the case where it uses the native
17894 # linker, instead of GNU ld. If possible, this setting should
17895 # overridden to take advantage of the native linker features on
17896 # the platform it is being used on.
17897 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17900 # Commands to make compiler produce verbose output that lists
17901 # what "hidden" libraries, object files and flags are used when
17902 # linking a shared library.
17903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
17911 # PORTME: fill in a description of your system's C++ link characteristics
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17913 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17917 # FIXME: insert proper C++ library support
17921 if test "$host_cpu" = ia64; then
17922 # On IA64, the linker does run time linking by default, so we don't
17923 # have to do anything special.
17924 aix_use_runtimelinking=no
17925 exp_sym_flag='-Bexport'
17928 aix_use_runtimelinking=no
17930 # Test if we are trying to use run time linking or normal
17931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17932 # need to do runtime linking.
17933 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17934 for ld_flag in $LDFLAGS; do
17937 aix_use_runtimelinking=yes
17945 exp_sym_flag='-bexport'
17946 no_entry_flag='-bnoentry'
17949 # When large executables or shared objects are built, AIX ld can
17950 # have problems creating the table of contents. If linking a library
17951 # or program results in "error TOC overflow" add -mminimal-toc to
17952 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17953 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17955 archive_cmds_CXX=''
17956 hardcode_direct_CXX=yes
17957 hardcode_direct_absolute_CXX=yes
17958 hardcode_libdir_separator_CXX=':'
17959 link_all_deplibs_CXX=yes
17960 file_list_spec_CXX='${wl}-f,'
17962 if test "$GXX" = yes; then
17963 case $host_os in aix4.[012]|aix4.[012].*)
17964 # We only want to do this on AIX 4.2 and lower, the check
17965 # below for broken collect2 doesn't work under 4.3+
17966 collect2name=`${CC} -print-prog-name=collect2`
17967 if test -f "$collect2name" &&
17968 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17970 # We have reworked collect2
17973 # We have old collect2
17974 hardcode_direct_CXX=unsupported
17975 # It fails to find uninstalled libraries when the uninstalled
17976 # path is not listed in the libpath. Setting hardcode_minus_L
17977 # to unsupported forces relinking
17978 hardcode_minus_L_CXX=yes
17979 hardcode_libdir_flag_spec_CXX='-L$libdir'
17980 hardcode_libdir_separator_CXX=
17983 shared_flag='-shared'
17984 if test "$aix_use_runtimelinking" = yes; then
17985 shared_flag="$shared_flag "'${wl}-G'
17989 if test "$host_cpu" = ia64; then
17990 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17991 # chokes on -Wl,-G. The following line is correct:
17994 if test "$aix_use_runtimelinking" = yes; then
17995 shared_flag='${wl}-G'
17997 shared_flag='${wl}-bM:SRE'
18002 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18003 # It seems that -bexpall does not export symbols beginning with
18004 # underscore (_), so it is better to generate a list of symbols to
18006 always_export_symbols_CXX=yes
18007 if test "$aix_use_runtimelinking" = yes; then
18008 # Warning - without using the other runtime loading flags (-brtl),
18009 # -berok will link without error, but may produce a broken library.
18010 allow_undefined_flag_CXX='-berok'
18011 # Determine the default libpath from the value encoded in an empty
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h. */
18024 if ac_fn_cxx_try_link "$LINENO"; then :
18026 lt_aix_libpath_sed='
18027 /Import File Strings/,/^$/ {
18033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18034 # Check for a 64-bit object if we didn't find anything.
18035 if test -z "$aix_libpath"; then
18036 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18039 rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18043 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18045 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"
18047 if test "$host_cpu" = ia64; then
18048 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18049 allow_undefined_flag_CXX="-z nodefs"
18050 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"
18052 # Determine the default libpath from the value encoded in an
18053 # empty executable.
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18065 if ac_fn_cxx_try_link "$LINENO"; then :
18067 lt_aix_libpath_sed='
18068 /Import File Strings/,/^$/ {
18074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18075 # Check for a 64-bit object if we didn't find anything.
18076 if test -z "$aix_libpath"; then
18077 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18080 rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18084 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18085 # Warning - without using the other run time loading flags,
18086 # -berok will link without error, but may produce a broken library.
18087 no_undefined_flag_CXX=' ${wl}-bernotok'
18088 allow_undefined_flag_CXX=' ${wl}-berok'
18089 # Exported symbols can be pulled into shared objects from archives
18090 whole_archive_flag_spec_CXX='$convenience'
18091 archive_cmds_need_lc_CXX=yes
18092 # This is similar to how AIX traditionally builds its shared
18094 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'
18100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18101 allow_undefined_flag_CXX=unsupported
18102 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18103 # support --undefined. This deserves some investigation. FIXME
18104 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18111 case $cc_basename in
18113 # FIXME: insert proper C++ library support
18119 cygwin* | mingw* | pw32* | cegcc*)
18120 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18121 # as there is no search path for DLLs.
18122 hardcode_libdir_flag_spec_CXX='-L$libdir'
18123 allow_undefined_flag_CXX=unsupported
18124 always_export_symbols_CXX=no
18125 enable_shared_with_static_runtimes_CXX=yes
18127 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18128 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'
18129 # If the export-symbols file already is a .def file (1st line
18130 # is EXPORTS), use it as is; otherwise, prepend...
18131 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18132 cp $export_symbols $output_objdir/$soname.def;
18134 echo EXPORTS > $output_objdir/$soname.def;
18135 cat $export_symbols >> $output_objdir/$soname.def;
18137 $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'
18142 darwin* | rhapsody*)
18145 archive_cmds_need_lc_CXX=no
18146 hardcode_direct_CXX=no
18147 hardcode_automatic_CXX=yes
18148 hardcode_shlibpath_var_CXX=unsupported
18149 whole_archive_flag_spec_CXX=''
18150 link_all_deplibs_CXX=yes
18151 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18152 case $cc_basename in
18153 ifort*) _lt_dar_can_shared=yes ;;
18154 *) _lt_dar_can_shared=$GCC ;;
18156 if test "$_lt_dar_can_shared" = "yes"; then
18157 output_verbose_link_cmd=echo
18158 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}"
18159 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18160 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}"
18161 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}"
18162 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18163 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}"
18164 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}"
18174 case $cc_basename in
18176 # FIXME: insert proper C++ library support
18180 # Green Hills C++ Compiler
18181 # FIXME: insert proper C++ library support
18185 # FIXME: insert proper C++ library support
18192 # C++ shared libraries reported to be fairly broken before
18198 archive_cmds_need_lc_CXX=no
18201 freebsd* | dragonfly*)
18202 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18211 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18212 hardcode_libdir_separator_CXX=:
18213 export_dynamic_flag_spec_CXX='${wl}-E'
18214 hardcode_direct_CXX=yes
18215 hardcode_minus_L_CXX=yes # Not in the search PATH,
18216 # but as the default
18217 # location of the library.
18219 case $cc_basename in
18221 # FIXME: insert proper C++ library support
18225 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'
18226 # Commands to make compiler produce verbose output that lists
18227 # what "hidden" libraries, object files and flags are used when
18228 # linking a shared library.
18230 # There doesn't appear to be a way to prevent this compiler from
18231 # explicitly linking system object files so we need to strip them
18232 # from the output so that they don't get included in the library
18234 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'
18237 if test "$GXX" = yes; then
18238 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'
18240 # FIXME: insert proper C++ library support
18248 if test $with_gnu_ld = no; then
18249 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18250 hardcode_libdir_separator_CXX=:
18256 export_dynamic_flag_spec_CXX='${wl}-E'
18262 hardcode_direct_CXX=no
18263 hardcode_shlibpath_var_CXX=no
18266 hardcode_direct_CXX=yes
18267 hardcode_direct_absolute_CXX=yes
18268 hardcode_minus_L_CXX=yes # Not in the search PATH,
18269 # but as the default
18270 # location of the library.
18274 case $cc_basename in
18276 # FIXME: insert proper C++ library support
18282 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18285 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18288 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18291 # Commands to make compiler produce verbose output that lists
18292 # what "hidden" libraries, object files and flags are used when
18293 # linking a shared library.
18295 # There doesn't appear to be a way to prevent this compiler from
18296 # explicitly linking system object files so we need to strip them
18297 # from the output so that they don't get included in the library
18299 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'
18302 if test "$GXX" = yes; then
18303 if test $with_gnu_ld = no; then
18306 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18309 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18312 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'
18317 # FIXME: insert proper C++ library support
18325 hardcode_direct_CXX=no
18326 hardcode_shlibpath_var_CXX=no
18327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18328 export_dynamic_flag_spec_CXX='${wl}-E'
18329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18330 # Instead, shared libraries are loaded at an image base (0x10000000 by
18331 # default) and relocated if they conflict, which is a slow very memory
18332 # consuming and fragmenting process. To avoid this, we pick a random,
18333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18334 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18335 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'
18336 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'
18339 case $cc_basename in
18342 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'
18344 # Archives containing C++ object files must be created using
18345 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18346 # necessary to make sure instantiated templates are included
18348 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18351 if test "$GXX" = yes; then
18352 if test "$with_gnu_ld" = no; then
18353 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'
18355 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'
18358 link_all_deplibs_CXX=yes
18361 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18362 hardcode_libdir_separator_CXX=:
18363 inherit_rpath_CXX=yes
18366 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18367 case $cc_basename in
18369 # Kuck and Associates, Inc. (KAI) C++ Compiler
18371 # KCC will only create a shared library if the output file
18372 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18373 # to its proper name (with version) after linking.
18374 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'
18375 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'
18376 # Commands to make compiler produce verbose output that lists
18377 # what "hidden" libraries, object files and flags are used when
18378 # linking a shared library.
18380 # There doesn't appear to be a way to prevent this compiler from
18381 # explicitly linking system object files so we need to strip them
18382 # from the output so that they don't get included in the library
18384 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'
18386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18387 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18389 # Archives containing C++ object files must be created using
18390 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18391 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18396 # version 8.0 and above of icpc choke on multiply defined symbols
18397 # if we add $predep_objects and $postdep_objects, however 7.1 and
18398 # earlier do not add the objects themselves.
18399 case `$CC -V 2>&1` in
18401 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18402 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'
18404 *) # Version 8.0 or newer
18407 ia64*) tmp_idyn=' -i_dynamic';;
18409 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18410 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'
18413 archive_cmds_need_lc_CXX=no
18414 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18415 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18416 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18419 # Portland Group C++ compiler
18421 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
18422 prelink_cmds_CXX='tpldir=Template.dir~
18424 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18425 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18426 old_archive_cmds_CXX='tpldir=Template.dir~
18428 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18429 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18431 archive_cmds_CXX='tpldir=Template.dir~
18433 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18434 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18435 archive_expsym_cmds_CXX='tpldir=Template.dir~
18437 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18438 $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'
18440 *) # Version 6 will use weak symbols
18441 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18442 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'
18446 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18448 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'
18452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18453 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'
18455 runpath_var=LD_RUN_PATH
18456 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18457 hardcode_libdir_separator_CXX=:
18459 # Commands to make compiler produce verbose output that lists
18460 # what "hidden" libraries, object files and flags are used when
18461 # linking a shared library.
18463 # There doesn't appear to be a way to prevent this compiler from
18464 # explicitly linking system object files so we need to strip them
18465 # from the output so that they don't get included in the library
18467 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'
18470 # IBM XL 8.0 on PPC, with GNU ld
18471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18472 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18473 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18474 if test "x$supports_anon_versioning" = xyes; then
18475 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18477 echo "local: *; };" >> $output_objdir/$libname.ver~
18478 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18482 case `$CC -V 2>&1 | sed 5q` in
18485 no_undefined_flag_CXX=' -zdefs'
18486 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18487 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'
18488 hardcode_libdir_flag_spec_CXX='-R$libdir'
18489 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'
18490 compiler_needs_object_CXX=yes
18492 # Not sure whether something based on
18493 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18495 output_verbose_link_cmd='echo'
18497 # Archives containing C++ object files must be created using
18498 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18499 # necessary to make sure instantiated templates are included
18501 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18509 # FIXME: insert proper C++ library support
18514 # FIXME: insert proper C++ library support
18519 case $cc_basename in
18521 # FIXME: insert proper C++ library support
18525 # FIXME: insert proper C++ library support
18532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18533 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18535 hardcode_libdir_flag_spec_CXX='-R$libdir'
18536 hardcode_direct_CXX=yes
18537 hardcode_shlibpath_var_CXX=no
18539 # Workaround some broken pre-1.5 toolchains
18540 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18548 # C++ shared libraries are fairly broken
18553 if test -f /usr/libexec/ld.so; then
18554 hardcode_direct_CXX=yes
18555 hardcode_shlibpath_var_CXX=no
18556 hardcode_direct_absolute_CXX=yes
18557 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18558 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18560 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18561 export_dynamic_flag_spec_CXX='${wl}-E'
18562 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18564 output_verbose_link_cmd=echo
18570 osf3* | osf4* | osf5*)
18571 case $cc_basename in
18573 # Kuck and Associates, Inc. (KAI) C++ Compiler
18575 # KCC will only create a shared library if the output file
18576 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18577 # to its proper name (with version) after linking.
18578 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'
18580 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18581 hardcode_libdir_separator_CXX=:
18583 # Archives containing C++ object files must be created using
18584 # the KAI C++ compiler.
18586 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18587 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18591 # Rational C++ 2.4.1
18592 # FIXME: insert proper C++ library support
18598 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18599 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'
18600 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18603 allow_undefined_flag_CXX=' -expect_unresolved \*'
18604 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'
18605 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18606 echo "-hidden">> $lib.exp~
18607 $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~
18609 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18613 hardcode_libdir_separator_CXX=:
18615 # Commands to make compiler produce verbose output that lists
18616 # what "hidden" libraries, object files and flags are used when
18617 # linking a shared library.
18619 # There doesn't appear to be a way to prevent this compiler from
18620 # explicitly linking system object files so we need to strip them
18621 # from the output so that they don't get included in the library
18623 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'
18626 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18627 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18630 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'
18633 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'
18637 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18638 hardcode_libdir_separator_CXX=:
18640 # Commands to make compiler produce verbose output that lists
18641 # what "hidden" libraries, object files and flags are used when
18642 # linking a shared library.
18643 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18646 # FIXME: insert proper C++ library support
18654 # FIXME: insert proper C++ library support
18659 case $cc_basename in
18662 # FIXME: insert proper C++ library support
18667 # FIXME: insert proper C++ library support
18671 # FIXME: insert proper C++ library support
18678 case $cc_basename in
18680 # Sun C++ 4.2, 5.x and Centerline C++
18681 archive_cmds_need_lc_CXX=yes
18682 no_undefined_flag_CXX=' -zdefs'
18683 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18684 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18685 $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'
18687 hardcode_libdir_flag_spec_CXX='-R$libdir'
18688 hardcode_shlibpath_var_CXX=no
18690 solaris2.[0-5] | solaris2.[0-5].*) ;;
18692 # The compiler driver will combine and reorder linker options,
18693 # but understands `-z linker_flag'.
18694 # Supported since Solaris 2.6 (maybe 2.5.1?)
18695 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18698 link_all_deplibs_CXX=yes
18700 output_verbose_link_cmd='echo'
18702 # Archives containing C++ object files must be created using
18703 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18704 # necessary to make sure instantiated templates are included
18706 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18709 # Green Hills C++ Compiler
18710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18712 # The C++ compiler must be used to create the archive.
18713 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18716 # GNU C++ compiler with Solaris linker
18717 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18718 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18719 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18720 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18721 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18722 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18724 # Commands to make compiler produce verbose output that lists
18725 # what "hidden" libraries, object files and flags are used when
18726 # linking a shared library.
18727 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18729 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18731 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18732 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18733 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18735 # Commands to make compiler produce verbose output that lists
18736 # what "hidden" libraries, object files and flags are used when
18737 # linking a shared library.
18738 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18741 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18743 solaris2.[0-5] | solaris2.[0-5].*) ;;
18745 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18753 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18754 no_undefined_flag_CXX='${wl}-z,text'
18755 archive_cmds_need_lc_CXX=no
18756 hardcode_shlibpath_var_CXX=no
18757 runpath_var='LD_RUN_PATH'
18759 case $cc_basename in
18761 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18762 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18765 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18766 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18771 sysv5* | sco3.2v5* | sco5v6*)
18772 # Note: We can NOT use -z defs as we might desire, because we do not
18773 # link with -lc, and that would cause any symbols used from libc to
18774 # always be unresolved, which means just about no library would
18775 # ever link correctly. If we're not using GNU ld we use -z text
18776 # though, which does catch some bad symbols but isn't as heavy-handed
18778 no_undefined_flag_CXX='${wl}-z,text'
18779 allow_undefined_flag_CXX='${wl}-z,nodefs'
18780 archive_cmds_need_lc_CXX=no
18781 hardcode_shlibpath_var_CXX=no
18782 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18783 hardcode_libdir_separator_CXX=':'
18784 link_all_deplibs_CXX=yes
18785 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18786 runpath_var='LD_RUN_PATH'
18788 case $cc_basename in
18790 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18794 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18795 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18801 case $cc_basename in
18803 # NonStop-UX NCC 3.20
18804 # FIXME: insert proper C++ library support
18808 # FIXME: insert proper C++ library support
18815 # FIXME: insert proper C++ library support
18820 # FIXME: insert proper C++ library support
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18826 $as_echo "$ld_shlibs_CXX" >&6; }
18827 test "$ld_shlibs_CXX" = no && can_build_shared=no
18833 ## There is no encapsulation within the following macros, do not change
18834 ## the running order or otherwise move them around unless you know exactly
18835 ## what you are doing...
18836 # Dependencies to place before and after the object being linked:
18837 predep_objects_CXX=
18838 postdep_objects_CXX=
18841 compiler_lib_search_path_CXX=
18843 cat > conftest.$ac_ext <<_LT_EOF
18847 Foo (void) { a = 0; }
18853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18854 (eval $ac_compile) 2>&5
18856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18857 test $ac_status = 0; }; then
18858 # Parse the compiler output and extract the necessary
18859 # objects, libraries and library flags.
18861 # Sentinel used to keep track of whether or not we are before
18862 # the conftest object file.
18863 pre_test_object_deps_done=no
18865 for p in `eval "$output_verbose_link_cmd"`; do
18869 # Some compilers place space between "-{L,R}" and the path.
18870 # Remove the space.
18871 if test $p = "-L" ||
18872 test $p = "-R"; then
18879 if test "$pre_test_object_deps_done" = no; then
18882 # Internal compiler library paths should come after those
18883 # provided the user. The postdeps already come after the
18884 # user supplied libs so there is no need to process them.
18885 if test -z "$compiler_lib_search_path_CXX"; then
18886 compiler_lib_search_path_CXX="${prev}${p}"
18888 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18891 # The "-l" case would never come before the object being
18892 # linked, so don't bother handling this case.
18895 if test -z "$postdeps_CXX"; then
18896 postdeps_CXX="${prev}${p}"
18898 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18904 # This assumes that the test object file only shows up
18905 # once in the compiler output.
18906 if test "$p" = "conftest.$objext"; then
18907 pre_test_object_deps_done=yes
18911 if test "$pre_test_object_deps_done" = no; then
18912 if test -z "$predep_objects_CXX"; then
18913 predep_objects_CXX="$p"
18915 predep_objects_CXX="$predep_objects_CXX $p"
18918 if test -z "$postdep_objects_CXX"; then
18919 postdep_objects_CXX="$p"
18921 postdep_objects_CXX="$postdep_objects_CXX $p"
18926 *) ;; # Ignore the rest.
18934 echo "libtool.m4: error: problem compiling CXX test program"
18937 $RM -f confest.$objext
18939 # PORTME: override above test on systems where it is broken
18942 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18943 # hack all around it, let's just trust "g++" to DTRT.
18944 predep_objects_CXX=
18945 postdep_objects_CXX=
18950 case `$CC -V 2>&1 | sed 5q` in
18954 # The more standards-conforming stlport4 library is
18955 # incompatible with the Cstd library. Avoid specifying
18956 # it if it's in CXXFLAGS. Ignore libCrun as
18957 # -library=stlport4 depends on it.
18958 case " $CXX $CXXFLAGS " in
18959 *" -library=stlport4 "*)
18960 solaris_use_stlport4=yes
18964 if test "$solaris_use_stlport4" != yes; then
18965 postdeps_CXX='-library=Cstd -library=Crun'
18972 case $cc_basename in
18974 # The more standards-conforming stlport4 library is
18975 # incompatible with the Cstd library. Avoid specifying
18976 # it if it's in CXXFLAGS. Ignore libCrun as
18977 # -library=stlport4 depends on it.
18978 case " $CXX $CXXFLAGS " in
18979 *" -library=stlport4 "*)
18980 solaris_use_stlport4=yes
18984 # Adding this requires a known-good setup of shared libraries for
18985 # Sun compiler versions before 5.6, else PIC objects from an old
18986 # archive will be linked into the output, leading to subtle bugs.
18987 if test "$solaris_use_stlport4" != yes; then
18988 postdeps_CXX='-library=Cstd -library=Crun'
18996 case " $postdeps_CXX " in
18997 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18999 compiler_lib_search_dirs_CXX=
19000 if test -n "${compiler_lib_search_path_CXX}"; then
19001 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19034 lt_prog_compiler_wl_CXX=
19035 lt_prog_compiler_pic_CXX=
19036 lt_prog_compiler_static_CXX=
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19039 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19041 # C++ specific cases for pic, static, wl, etc.
19042 if test "$GXX" = yes; then
19043 lt_prog_compiler_wl_CXX='-Wl,'
19044 lt_prog_compiler_static_CXX='-static'
19048 # All AIX code is PIC.
19049 if test "$host_cpu" = ia64; then
19050 # AIX 5 now supports IA64 processor
19051 lt_prog_compiler_static_CXX='-Bstatic'
19058 # see comment about AmigaOS4 .so support
19059 lt_prog_compiler_pic_CXX='-fPIC'
19062 # FIXME: we need at least 68020 code to build shared libraries, but
19063 # adding the `-m68020' flag to GCC prevents building anything better,
19065 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19070 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19071 # PIC is the default for these OSes.
19073 mingw* | cygwin* | os2* | pw32* | cegcc*)
19074 # This hack is so that the source file can tell whether it is being
19075 # built for inclusion in a dll (and should export symbols for example).
19076 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19077 # (--disable-auto-import) libraries
19078 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19080 darwin* | rhapsody*)
19081 # PIC is the default on this platform
19082 # Common symbols not allowed in MH_DYLIB files
19083 lt_prog_compiler_pic_CXX='-fno-common'
19086 # DJGPP does not support shared libraries at all
19087 lt_prog_compiler_pic_CXX=
19090 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19091 # Instead, we relocate shared libraries at runtime.
19094 if test -d /usr/nec; then
19095 lt_prog_compiler_pic_CXX=-Kconform_pic
19099 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19100 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19101 # sets the default TLS model and affects inlining.
19106 lt_prog_compiler_pic_CXX='-fPIC'
19111 # QNX uses GNU C++, but need to define -shared option too, otherwise
19112 # it will coredump.
19113 lt_prog_compiler_pic_CXX='-fPIC -shared'
19116 lt_prog_compiler_pic_CXX='-fPIC'
19122 # All AIX code is PIC.
19123 if test "$host_cpu" = ia64; then
19124 # AIX 5 now supports IA64 processor
19125 lt_prog_compiler_static_CXX='-Bstatic'
19127 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19131 case $cc_basename in
19133 # Green Hills C++ Compiler
19134 # _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"
19139 case $cc_basename in
19141 lt_prog_compiler_pic_CXX='-KPIC'
19144 # Green Hills C++ Compiler
19145 lt_prog_compiler_pic_CXX='-pic'
19151 freebsd* | dragonfly*)
19152 # FreeBSD uses GNU C++
19154 hpux9* | hpux10* | hpux11*)
19155 case $cc_basename in
19157 lt_prog_compiler_wl_CXX='-Wl,'
19158 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19159 if test "$host_cpu" != ia64; then
19160 lt_prog_compiler_pic_CXX='+Z'
19164 lt_prog_compiler_wl_CXX='-Wl,'
19165 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19171 lt_prog_compiler_pic_CXX='+Z'
19180 # This is c89, which is MS Visual C++ (no shared libs)
19181 # Anyone wants to do a port?
19183 irix5* | irix6* | nonstopux*)
19184 case $cc_basename in
19186 lt_prog_compiler_wl_CXX='-Wl,'
19187 lt_prog_compiler_static_CXX='-non_shared'
19188 # CC pic flag -KPIC is the default.
19194 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19195 case $cc_basename in
19198 lt_prog_compiler_wl_CXX='--backend -Wl,'
19199 lt_prog_compiler_pic_CXX='-fPIC'
19202 # old Intel C++ for x86_64 which still supported -KPIC.
19203 lt_prog_compiler_wl_CXX='-Wl,'
19204 lt_prog_compiler_pic_CXX='-KPIC'
19205 lt_prog_compiler_static_CXX='-static'
19208 # Intel C++, used to be incompatible with GCC.
19209 # ICC 10 doesn't accept -KPIC any more.
19210 lt_prog_compiler_wl_CXX='-Wl,'
19211 lt_prog_compiler_pic_CXX='-fPIC'
19212 lt_prog_compiler_static_CXX='-static'
19215 # Portland Group C++ compiler
19216 lt_prog_compiler_wl_CXX='-Wl,'
19217 lt_prog_compiler_pic_CXX='-fpic'
19218 lt_prog_compiler_static_CXX='-Bstatic'
19222 # Make sure the PIC flag is empty. It appears that all Alpha
19223 # Linux and Compaq Tru64 Unix objects are PIC.
19224 lt_prog_compiler_pic_CXX=
19225 lt_prog_compiler_static_CXX='-non_shared'
19228 # IBM XL 8.0 on PPC
19229 lt_prog_compiler_wl_CXX='-Wl,'
19230 lt_prog_compiler_pic_CXX='-qpic'
19231 lt_prog_compiler_static_CXX='-qstaticlink'
19234 case `$CC -V 2>&1 | sed 5q` in
19237 lt_prog_compiler_pic_CXX='-KPIC'
19238 lt_prog_compiler_static_CXX='-Bstatic'
19239 lt_prog_compiler_wl_CXX='-Qoption ld '
19250 case $cc_basename in
19252 lt_prog_compiler_pic_CXX='-W c,exportall'
19261 # QNX uses GNU C++, but need to define -shared option too, otherwise
19262 # it will coredump.
19263 lt_prog_compiler_pic_CXX='-fPIC -shared'
19265 osf3* | osf4* | osf5*)
19266 case $cc_basename in
19268 lt_prog_compiler_wl_CXX='--backend -Wl,'
19271 # Rational C++ 2.4.1
19272 lt_prog_compiler_pic_CXX='-pic'
19275 # Digital/Compaq C++
19276 lt_prog_compiler_wl_CXX='-Wl,'
19277 # Make sure the PIC flag is empty. It appears that all Alpha
19278 # Linux and Compaq Tru64 Unix objects are PIC.
19279 lt_prog_compiler_pic_CXX=
19280 lt_prog_compiler_static_CXX='-non_shared'
19289 case $cc_basename in
19291 # Sun C++ 4.2, 5.x and Centerline C++
19292 lt_prog_compiler_pic_CXX='-KPIC'
19293 lt_prog_compiler_static_CXX='-Bstatic'
19294 lt_prog_compiler_wl_CXX='-Qoption ld '
19297 # Green Hills C++ Compiler
19298 lt_prog_compiler_pic_CXX='-PIC'
19305 case $cc_basename in
19308 lt_prog_compiler_pic_CXX='-pic'
19309 lt_prog_compiler_static_CXX='-Bstatic'
19313 lt_prog_compiler_pic_CXX='-pic'
19319 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19320 case $cc_basename in
19322 lt_prog_compiler_wl_CXX='-Wl,'
19323 lt_prog_compiler_pic_CXX='-KPIC'
19324 lt_prog_compiler_static_CXX='-Bstatic'
19329 case $cc_basename in
19331 # NonStop-UX NCC 3.20
19332 lt_prog_compiler_pic_CXX='-KPIC'
19341 lt_prog_compiler_can_build_shared_CXX=no
19347 # For platforms which do not support PIC, -DPIC is meaningless:
19349 lt_prog_compiler_pic_CXX=
19352 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19356 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19361 # Check to make sure the PIC flag actually works.
19363 if test -n "$lt_prog_compiler_pic_CXX"; then
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19365 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19366 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19367 $as_echo_n "(cached) " >&6
19369 lt_cv_prog_compiler_pic_works_CXX=no
19370 ac_outfile=conftest.$ac_objext
19371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19372 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19373 # Insert the option either (1) after the last *FLAGS variable, or
19374 # (2) before a word containing "conftest.", or (3) at the end.
19375 # Note that $ac_compile itself does not contain backslashes and begins
19376 # with a dollar sign (not a hyphen), so the echo should work correctly.
19377 # The option is referenced via a variable to avoid confusing sed.
19378 lt_compile=`echo "$ac_compile" | $SED \
19379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19381 -e 's:$: $lt_compiler_flag:'`
19382 (eval echo "\"\$as_me:19382: $lt_compile\"" >&5)
19383 (eval "$lt_compile" 2>conftest.err)
19385 cat conftest.err >&5
19386 echo "$as_me:19386: \$? = $ac_status" >&5
19387 if (exit $ac_status) && test -s "$ac_outfile"; then
19388 # The compiler can only warn and ignore the option if not recognized
19389 # So say no if there are warnings other than the usual output.
19390 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19393 lt_cv_prog_compiler_pic_works_CXX=yes
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19400 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19402 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19403 case $lt_prog_compiler_pic_CXX in
19405 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19408 lt_prog_compiler_pic_CXX=
19409 lt_prog_compiler_can_build_shared_CXX=no
19417 # Check to make sure the static flag actually works.
19419 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19421 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19422 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19423 $as_echo_n "(cached) " >&6
19425 lt_cv_prog_compiler_static_works_CXX=no
19426 save_LDFLAGS="$LDFLAGS"
19427 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19428 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19430 # The linker can only warn and ignore the option if not recognized
19431 # So say no if there are warnings
19432 if test -s conftest.err; then
19433 # Append any errors to the config.log.
19434 cat conftest.err 1>&5
19435 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19437 if diff conftest.exp conftest.er2 >/dev/null; then
19438 lt_cv_prog_compiler_static_works_CXX=yes
19441 lt_cv_prog_compiler_static_works_CXX=yes
19445 LDFLAGS="$save_LDFLAGS"
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19449 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19451 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19454 lt_prog_compiler_static_CXX=
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19461 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19462 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19463 $as_echo_n "(cached) " >&6
19465 lt_cv_prog_compiler_c_o_CXX=no
19466 $RM -r conftest 2>/dev/null
19470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19472 lt_compiler_flag="-o out/conftest2.$ac_objext"
19473 # Insert the option either (1) after the last *FLAGS variable, or
19474 # (2) before a word containing "conftest.", or (3) at the end.
19475 # Note that $ac_compile itself does not contain backslashes and begins
19476 # with a dollar sign (not a hyphen), so the echo should work correctly.
19477 lt_compile=`echo "$ac_compile" | $SED \
19478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19480 -e 's:$: $lt_compiler_flag:'`
19481 (eval echo "\"\$as_me:19481: $lt_compile\"" >&5)
19482 (eval "$lt_compile" 2>out/conftest.err)
19484 cat out/conftest.err >&5
19485 echo "$as_me:19485: \$? = $ac_status" >&5
19486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19488 # The compiler can only warn and ignore the option if not recognized
19489 # So say no if there are warnings
19490 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19493 lt_cv_prog_compiler_c_o_CXX=yes
19498 # SGI C++ compiler will create directory out/ii_files/ for
19499 # template instantiation
19500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19501 $RM out/* && rmdir out
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19508 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19514 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19515 $as_echo_n "(cached) " >&6
19517 lt_cv_prog_compiler_c_o_CXX=no
19518 $RM -r conftest 2>/dev/null
19522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19524 lt_compiler_flag="-o out/conftest2.$ac_objext"
19525 # Insert the option either (1) after the last *FLAGS variable, or
19526 # (2) before a word containing "conftest.", or (3) at the end.
19527 # Note that $ac_compile itself does not contain backslashes and begins
19528 # with a dollar sign (not a hyphen), so the echo should work correctly.
19529 lt_compile=`echo "$ac_compile" | $SED \
19530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19532 -e 's:$: $lt_compiler_flag:'`
19533 (eval echo "\"\$as_me:19533: $lt_compile\"" >&5)
19534 (eval "$lt_compile" 2>out/conftest.err)
19536 cat out/conftest.err >&5
19537 echo "$as_me:19537: \$? = $ac_status" >&5
19538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19540 # The compiler can only warn and ignore the option if not recognized
19541 # So say no if there are warnings
19542 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19545 lt_cv_prog_compiler_c_o_CXX=yes
19550 # SGI C++ compiler will create directory out/ii_files/ for
19551 # template instantiation
19552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19553 $RM out/* && rmdir out
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19560 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19565 hard_links="nottested"
19566 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19567 # do not overwrite the value of need_locks provided by the user
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19569 $as_echo_n "checking if we can lock with hard links... " >&6; }
19572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19574 ln conftest.a conftest.b 2>&5 || hard_links=no
19575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19577 $as_echo "$hard_links" >&6; }
19578 if test "$hard_links" = no; then
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19580 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19590 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19592 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19595 # If we're using GNU nm, then we don't want the "-C" option.
19596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19597 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19598 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'
19600 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'
19604 export_symbols_cmds_CXX="$ltdll_cmds"
19606 cygwin* | mingw* | cegcc*)
19607 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'
19610 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19613 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19616 $as_echo "$ld_shlibs_CXX" >&6; }
19617 test "$ld_shlibs_CXX" = no && can_build_shared=no
19619 with_gnu_ld_CXX=$with_gnu_ld
19627 # Do we need to explicitly link libc?
19629 case "x$archive_cmds_need_lc_CXX" in
19631 # Assume -lc should be added
19632 archive_cmds_need_lc_CXX=yes
19634 if test "$enable_shared" = yes && test "$GCC" = yes; then
19635 case $archive_cmds_CXX in
19637 # FIXME: we may have to deal with multi-command sequences.
19640 # Test whether the compiler implicitly links with -lc since on some
19641 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19642 # to ld, don't add -lc before -lgcc.
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19644 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19645 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19646 $as_echo_n "(cached) " >&6
19649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19652 (eval $ac_compile) 2>&5
19654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19655 test $ac_status = 0; } 2>conftest.err; then
19658 libobjs=conftest.$ac_objext
19660 wl=$lt_prog_compiler_wl_CXX
19661 pic_flag=$lt_prog_compiler_pic_CXX
19667 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19668 allow_undefined_flag_CXX=
19669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19670 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19673 test $ac_status = 0; }
19675 lt_cv_archive_cmds_need_lc_CXX=no
19677 lt_cv_archive_cmds_need_lc_CXX=yes
19679 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19681 cat conftest.err 1>&5
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19687 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19688 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19759 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19761 library_names_spec=
19762 libname_spec='lib$name'
19766 postuninstall_cmds=
19770 shlibpath_overrides_runpath=unknown
19772 dynamic_linker="$host_os ld.so"
19773 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19774 need_lib_prefix=unknown
19775 hardcode_into_libs=no
19777 # when you set need_version to no, make sure it does not cause -set_version
19778 # flags to be left without arguments
19779 need_version=unknown
19784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19785 shlibpath_var=LIBPATH
19787 # AIX 3 has no versioning support, so we append a major version to the name.
19788 soname_spec='${libname}${release}${shared_ext}$major'
19795 hardcode_into_libs=yes
19796 if test "$host_cpu" = ia64; then
19797 # AIX 5 supports IA64
19798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19799 shlibpath_var=LD_LIBRARY_PATH
19801 # With GCC up to 2.95.x, collect2 would create an import file
19802 # for dependence libraries. The import file would start with
19803 # the line `#! .'. This would cause the generated library to
19804 # depend on `.', always an invalid library. This was fixed in
19805 # development snapshots of GCC prior to 3.0.
19807 aix4 | aix4.[01] | aix4.[01].*)
19808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19810 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19813 can_build_shared=no
19817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19818 # soname into executable. Probably we can add versioning support to
19819 # collect2, so additional links can be useful in future.
19820 if test "$aix_use_runtimelinking" = yes; then
19821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19822 # instead of lib<name>.a to let people know that these are not
19823 # typical AIX shared libraries.
19824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19826 # We preserve .a as extension for shared libraries through AIX4.2
19827 # and later when we are not doing run time linking.
19828 library_names_spec='${libname}${release}.a $libname.a'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19831 shlibpath_var=LIBPATH
19838 # Since July 2007 AmigaOS4 officially supports .so libraries.
19839 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19843 library_names_spec='$libname.ixlibrary $libname.a'
19844 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19845 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'
19851 library_names_spec='${libname}${shared_ext}'
19852 dynamic_linker="$host_os ld.so"
19853 shlibpath_var=LIBRARY_PATH
19859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19860 soname_spec='${libname}${release}${shared_ext}$major'
19861 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19862 shlibpath_var=LD_LIBRARY_PATH
19863 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19864 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19865 # the default ld.so.conf also contains /usr/contrib/lib and
19866 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19867 # libtool to hard-code these into programs
19870 cygwin* | mingw* | pw32* | cegcc*)
19871 version_type=windows
19876 case $GCC,$host_os in
19877 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19878 library_names_spec='$libname.dll.a'
19879 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19880 postinstall_cmds='base_file=`basename \${file}`~
19881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19882 dldir=$destdir/`dirname \$dlpath`~
19883 test -d \$dldir || mkdir -p \$dldir~
19884 $install_prog $dir/$dlname \$dldir/$dlname~
19885 chmod a+x \$dldir/$dlname~
19886 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19887 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19890 dlpath=$dir/\$dldll~
19892 shlibpath_overrides_runpath=yes
19896 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19897 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19898 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19901 # MinGW DLLs use traditional 'lib' prefix
19902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19903 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19904 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19905 # It is most probably a Windows format PATH printed by
19906 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19907 # path with ; separators, and with drive letters. We can handle the
19908 # drive letters (cygwin fileutils understands them), so leave them,
19909 # especially as we might pass files found there to a mingw objdump,
19910 # which wouldn't understand a cygwinified path. Ahh.
19911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19917 # pw32 DLLs use 'pw' prefix rather than 'lib'
19918 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19924 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19927 dynamic_linker='Win32 ld.exe'
19928 # FIXME: first we should search . and the directory the executable is in
19932 darwin* | rhapsody*)
19933 dynamic_linker="$host_os dyld"
19934 version_type=darwin
19937 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19938 soname_spec='${libname}${release}${major}$shared_ext'
19939 shlibpath_overrides_runpath=yes
19940 shlibpath_var=DYLD_LIBRARY_PATH
19941 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19951 soname_spec='${libname}${release}${shared_ext}$major'
19952 shlibpath_var=LD_LIBRARY_PATH
19959 freebsd* | dragonfly*)
19960 # DragonFly does not have aout. When/if they implement a new
19961 # versioning mechanism, adjust this.
19962 if test -x /usr/bin/objformat; then
19963 objformat=`/usr/bin/objformat`
19966 freebsd[123]*) objformat=aout ;;
19967 *) objformat=elf ;;
19970 version_type=freebsd-$objformat
19971 case $version_type in
19973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19982 shlibpath_var=LD_LIBRARY_PATH
19985 shlibpath_overrides_runpath=yes
19987 freebsd3.[01]* | freebsdelf3.[01]*)
19988 shlibpath_overrides_runpath=yes
19989 hardcode_into_libs=yes
19991 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19992 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19993 shlibpath_overrides_runpath=no
19994 hardcode_into_libs=yes
19996 *) # from 4.6 on, and DragonFly
19997 shlibpath_overrides_runpath=yes
19998 hardcode_into_libs=yes
20007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20008 soname_spec='${libname}${release}${shared_ext}$major'
20009 shlibpath_var=LD_LIBRARY_PATH
20010 hardcode_into_libs=yes
20013 hpux9* | hpux10* | hpux11*)
20014 # Give a soname corresponding to the major version so that dld.sl refuses to
20015 # link against other versions.
20022 hardcode_into_libs=yes
20023 dynamic_linker="$host_os dld.so"
20024 shlibpath_var=LD_LIBRARY_PATH
20025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20027 soname_spec='${libname}${release}${shared_ext}$major'
20028 if test "X$HPUX_IA64_MODE" = X32; then
20029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20037 hardcode_into_libs=yes
20038 dynamic_linker="$host_os dld.sl"
20039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20042 soname_spec='${libname}${release}${shared_ext}$major'
20043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20048 dynamic_linker="$host_os dld.sl"
20049 shlibpath_var=SHLIB_PATH
20050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052 soname_spec='${libname}${release}${shared_ext}$major'
20055 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20056 postinstall_cmds='chmod 555 $lib'
20063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20064 soname_spec='${libname}${release}${shared_ext}$major'
20065 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20066 shlibpath_var=LD_LIBRARY_PATH
20067 shlibpath_overrides_runpath=no
20068 hardcode_into_libs=yes
20071 irix5* | irix6* | nonstopux*)
20073 nonstopux*) version_type=nonstopux ;;
20075 if test "$lt_cv_prog_gnu_ld" = yes; then
20083 soname_spec='${libname}${release}${shared_ext}$major'
20084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20086 irix5* | nonstopux*)
20087 libsuff= shlibsuff=
20090 case $LD in # libtool.m4 will add one of these switches to LD
20091 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20092 libsuff= shlibsuff= libmagic=32-bit;;
20093 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20094 libsuff=32 shlibsuff=N32 libmagic=N32;;
20095 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20096 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20097 *) libsuff= shlibsuff= libmagic=never-match;;
20101 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20102 shlibpath_overrides_runpath=no
20103 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20104 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20105 hardcode_into_libs=yes
20108 # No shared lib support for Linux oldld, aout, or coff.
20109 linux*oldld* | linux*aout* | linux*coff*)
20113 # This must be Linux ELF.
20114 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20119 soname_spec='${libname}${release}${shared_ext}$major'
20120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20121 shlibpath_var=LD_LIBRARY_PATH
20122 shlibpath_overrides_runpath=no
20124 # Some binutils ld are patched to set DT_RUNPATH
20125 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20126 $as_echo_n "(cached) " >&6
20128 lt_cv_shlibpath_overrides_runpath=no
20129 save_LDFLAGS=$LDFLAGS
20130 save_libdir=$libdir
20131 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20132 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h. */
20144 if ac_fn_cxx_try_link "$LINENO"; then :
20145 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20146 lt_cv_shlibpath_overrides_runpath=yes
20149 rm -f core conftest.err conftest.$ac_objext \
20150 conftest$ac_exeext conftest.$ac_ext
20151 LDFLAGS=$save_LDFLAGS
20152 libdir=$save_libdir
20156 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20158 # This implies no fast_install, which is unacceptable.
20159 # Some rework will be needed to allow for fast_install
20160 # before this can be enabled.
20161 hardcode_into_libs=yes
20163 # Append ld.so.conf contents to the search path
20164 if test -f /etc/ld.so.conf; then
20165 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' ' '`
20166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20169 # We used to test for /lib/ld.so.1 and disable shared libraries on
20170 # powerpc, because MkLinux only supported shared libraries with the
20171 # GNU dynamic linker. Since this was broken with cross compilers,
20172 # most powerpc-linux boxes support dynamic linking these days and
20173 # people can always --disable-shared, the test was removed, and we
20174 # assume the GNU/Linux dynamic linker is in use.
20175 dynamic_linker='GNU/Linux ld.so'
20182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20185 dynamic_linker='NetBSD (a.out) ld.so'
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 dynamic_linker='NetBSD ld.elf_so'
20191 shlibpath_var=LD_LIBRARY_PATH
20192 shlibpath_overrides_runpath=yes
20193 hardcode_into_libs=yes
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 shlibpath_overrides_runpath=yes
20207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20208 soname_spec='${libname}${release}${shared_ext}$major'
20209 shlibpath_var=LD_LIBRARY_PATH
20210 shlibpath_overrides_runpath=no
20211 hardcode_into_libs=yes
20212 dynamic_linker='ldqnx.so'
20217 sys_lib_dlsearch_path_spec="/usr/lib"
20219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20221 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20222 *) need_version=no ;;
20224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20226 shlibpath_var=LD_LIBRARY_PATH
20227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20229 openbsd2.[89] | openbsd2.[89].*)
20230 shlibpath_overrides_runpath=no
20233 shlibpath_overrides_runpath=yes
20237 shlibpath_overrides_runpath=yes
20242 libname_spec='$name'
20245 library_names_spec='$libname${shared_ext} $libname.a'
20246 dynamic_linker='OS/2 ld.exe'
20247 shlibpath_var=LIBPATH
20250 osf3* | osf4* | osf5*)
20254 soname_spec='${libname}${release}${shared_ext}$major'
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270 soname_spec='${libname}${release}${shared_ext}$major'
20271 shlibpath_var=LD_LIBRARY_PATH
20272 shlibpath_overrides_runpath=yes
20273 hardcode_into_libs=yes
20274 # ldd complains unless libraries are executable
20275 postinstall_cmds='chmod +x $lib'
20280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20282 shlibpath_var=LD_LIBRARY_PATH
20283 shlibpath_overrides_runpath=yes
20284 if test "$with_gnu_ld" = yes; then
20292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20293 soname_spec='${libname}${release}${shared_ext}$major'
20294 shlibpath_var=LD_LIBRARY_PATH
20295 case $host_vendor in
20297 shlibpath_overrides_runpath=no
20299 runpath_var=LD_RUN_PATH
20307 shlibpath_overrides_runpath=no
20308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20314 if test -d /usr/nec ;then
20316 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20317 soname_spec='$libname${shared_ext}.$major'
20318 shlibpath_var=LD_LIBRARY_PATH
20322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20323 version_type=freebsd-elf
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20327 soname_spec='${libname}${release}${shared_ext}$major'
20328 shlibpath_var=LD_LIBRARY_PATH
20329 shlibpath_overrides_runpath=yes
20330 hardcode_into_libs=yes
20331 if test "$with_gnu_ld" = yes; then
20332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20341 sys_lib_dlsearch_path_spec='/usr/lib'
20345 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350 shlibpath_var=LD_LIBRARY_PATH
20351 shlibpath_overrides_runpath=no
20352 hardcode_into_libs=yes
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 shlibpath_var=LD_LIBRARY_PATH
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20367 $as_echo "$dynamic_linker" >&6; }
20368 test "$dynamic_linker" = no && can_build_shared=no
20370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20371 if test "$GCC" = yes; then
20372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20375 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20376 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20378 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20379 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20418 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20419 hardcode_action_CXX=
20420 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20421 test -n "$runpath_var_CXX" ||
20422 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20424 # We can hardcode non-existent directories.
20425 if test "$hardcode_direct_CXX" != no &&
20426 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20427 # have to relink, otherwise we might link with an installed library
20428 # when we should be linking with a yet-to-be-installed one
20429 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20430 test "$hardcode_minus_L_CXX" != no; then
20431 # Linking always hardcodes the temporary library directory.
20432 hardcode_action_CXX=relink
20434 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20435 hardcode_action_CXX=immediate
20438 # We cannot hardcode anything, or else we can only hardcode existing
20440 hardcode_action_CXX=unsupported
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20443 $as_echo "$hardcode_action_CXX" >&6; }
20445 if test "$hardcode_action_CXX" = relink ||
20446 test "$inherit_rpath_CXX" = yes; then
20447 # Fast installation is not supported
20448 enable_fast_install=no
20449 elif test "$shlibpath_overrides_runpath" = yes ||
20450 test "$enable_shared" = no; then
20451 # Fast installation is not necessary
20452 enable_fast_install=needless
20461 fi # test -n "$compiler"
20467 with_gnu_ld=$lt_save_with_gnu_ld
20468 lt_cv_path_LDCXX=$lt_cv_path_LD
20469 lt_cv_path_LD=$lt_save_path_LD
20470 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20471 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20472 fi # test "$_lt_caught_CXX_error" != yes
20475 ac_cpp='$CPP $CPPFLAGS'
20476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20495 # Only expand once:
20501 # Identify the assembler which will work hand-in-glove with the newly
20502 # built GCC, so that we can examine its features. This is the assembler
20503 # which will be driven by the driver program.
20505 # If build != host, and we aren't building gas in-tree, we identify a
20506 # build->target assembler and hope that it will have the same features
20507 # as the host->target assembler we'll be using.
20508 gcc_cv_gas_major_version=
20509 gcc_cv_gas_minor_version=
20510 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20512 if test "${gcc_cv_as+set}" = set; then :
20516 if test -x "$DEFAULT_ASSEMBLER"; then
20517 gcc_cv_as="$DEFAULT_ASSEMBLER"
20518 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20519 && test -f ../gas/Makefile \
20520 && test x$build = x$host; then
20521 gcc_cv_as=../gas/as-new$build_exeext
20522 elif test -x as$build_exeext; then
20523 # Build using assembler in the current directory.
20524 gcc_cv_as=./as$build_exeext
20525 elif test -x $AS_FOR_TARGET; then
20526 gcc_cv_as="$AS_FOR_TARGET"
20528 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20529 set dummy $AS_FOR_TARGET; ac_word=$2
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20531 $as_echo_n "checking for $ac_word... " >&6; }
20532 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20533 $as_echo_n "(cached) " >&6
20537 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20541 for as_dir in $PATH
20544 test -z "$as_dir" && as_dir=.
20545 for ac_exec_ext in '' $ac_executable_extensions; do
20546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20547 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20558 gcc_cv_as=$ac_cv_path_gcc_cv_as
20559 if test -n "$gcc_cv_as"; then
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20561 $as_echo "$gcc_cv_as" >&6; }
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20564 $as_echo "no" >&6; }
20571 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20573 case "$ORIGINAL_AS_FOR_TARGET" in
20574 ./as | ./as$build_exeext) ;;
20575 *) ac_config_files="$ac_config_files as:exec-tool.in"
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20580 $as_echo_n "checking what assembler to use... " >&6; }
20581 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20582 # Single tree build which includes gas. We want to prefer it
20583 # over whatever linker top-level may have detected, since
20584 # we'll use what we're building after installation anyway.
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20586 $as_echo "newly built gas" >&6; }
20588 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20589 for f in $gcc_cv_as_bfd_srcdir/configure \
20590 $gcc_cv_as_gas_srcdir/configure \
20591 $gcc_cv_as_gas_srcdir/configure.in \
20592 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20593 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20594 if test x$gcc_cv_gas_version != x; then
20598 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20599 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20600 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20601 case $gcc_cv_gas_patch_version in
20602 "") gcc_cv_gas_patch_version="0" ;;
20604 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20605 + $gcc_cv_gas_minor_version \) \* 1000 \
20606 + $gcc_cv_gas_patch_version`
20608 in_tree_gas_is_elf=no
20609 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20610 || (grep 'obj_format = multi' ../gas/Makefile \
20611 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20613 in_tree_gas_is_elf=yes
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20617 $as_echo "$gcc_cv_as" >&6; }
20621 # Identify the linker which will work hand-in-glove with the newly
20622 # built GCC, so that we can examine its features. This is the linker
20623 # which will be driven by the driver program.
20625 # If build != host, and we aren't building gas in-tree, we identify a
20626 # build->target linker and hope that it will have the same features
20627 # as the host->target linker we'll be using.
20628 gcc_cv_gld_major_version=
20629 gcc_cv_gld_minor_version=
20630 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20631 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20633 if test "${gcc_cv_ld+set}" = set; then :
20637 if test -x "$DEFAULT_LINKER"; then
20638 gcc_cv_ld="$DEFAULT_LINKER"
20639 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20640 && test -f ../ld/Makefile \
20641 && test x$build = x$host; then
20642 gcc_cv_ld=../ld/ld-new$build_exeext
20643 elif test -x collect-ld$build_exeext; then
20644 # Build using linker in the current directory.
20645 gcc_cv_ld=./collect-ld$build_exeext
20646 elif test -x $LD_FOR_TARGET; then
20647 gcc_cv_ld="$LD_FOR_TARGET"
20649 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20650 set dummy $LD_FOR_TARGET; ac_word=$2
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20652 $as_echo_n "checking for $ac_word... " >&6; }
20653 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20654 $as_echo_n "(cached) " >&6
20658 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20662 for as_dir in $PATH
20665 test -z "$as_dir" && as_dir=.
20666 for ac_exec_ext in '' $ac_executable_extensions; do
20667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20668 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20679 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20680 if test -n "$gcc_cv_ld"; then
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20682 $as_echo "$gcc_cv_ld" >&6; }
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20685 $as_echo "no" >&6; }
20692 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20693 PLUGIN_LD=`basename $gcc_cv_ld`
20695 # Check whether --with-plugin-ld was given.
20696 if test "${with_plugin_ld+set}" = set; then :
20697 withval=$with_plugin_ld; if test x"$withval" != x; then
20698 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20699 PLUGIN_LD="$withval"
20705 cat >>confdefs.h <<_ACEOF
20706 #define PLUGIN_LD "$PLUGIN_LD"
20710 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20712 case "$ORIGINAL_LD_FOR_TARGET" in
20713 ./collect-ld | ./collect-ld$build_exeext) ;;
20714 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20719 $as_echo_n "checking what linker to use... " >&6; }
20720 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20721 # Single tree build which includes ld. We want to prefer it
20722 # over whatever linker top-level may have detected, since
20723 # we'll use what we're building after installation anyway.
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20725 $as_echo "newly built ld" >&6; }
20727 in_tree_ld_is_elf=no
20728 if (grep 'EMUL = .*elf' ../ld/Makefile \
20729 || grep 'EMUL = .*linux' ../ld/Makefile \
20730 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20731 in_tree_ld_is_elf=yes
20733 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
20735 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20736 if test x$gcc_cv_gld_version != x; then
20740 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20741 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20744 $as_echo "$gcc_cv_ld" >&6; }
20748 # Figure out what nm we will be using.
20749 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20750 if test "${gcc_cv_nm+set}" = set; then :
20754 if test -f $gcc_cv_binutils_srcdir/configure.in \
20755 && test -f ../binutils/Makefile \
20756 && test x$build = x$host; then
20757 gcc_cv_nm=../binutils/nm-new$build_exeext
20758 elif test -x nm$build_exeext; then
20759 gcc_cv_nm=./nm$build_exeext
20760 elif test -x $NM_FOR_TARGET; then
20761 gcc_cv_nm="$NM_FOR_TARGET"
20763 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20764 set dummy $NM_FOR_TARGET; ac_word=$2
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20766 $as_echo_n "checking for $ac_word... " >&6; }
20767 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20768 $as_echo_n "(cached) " >&6
20772 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20776 for as_dir in $PATH
20779 test -z "$as_dir" && as_dir=.
20780 for ac_exec_ext in '' $ac_executable_extensions; do
20781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20782 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20793 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20794 if test -n "$gcc_cv_nm"; then
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20796 $as_echo "$gcc_cv_nm" >&6; }
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799 $as_echo "no" >&6; }
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20807 $as_echo_n "checking what nm to use... " >&6; }
20808 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20809 # Single tree build which includes binutils.
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20811 $as_echo "newly built nm" >&6; }
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20815 $as_echo "$gcc_cv_nm" >&6; }
20819 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20821 case "$ORIGINAL_NM_FOR_TARGET" in
20822 ./nm | ./nm$build_exeext) ;;
20823 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20828 # Figure out what objdump we will be using.
20829 if test "${gcc_cv_objdump+set}" = set; then :
20833 if test -f $gcc_cv_binutils_srcdir/configure.in \
20834 && test -f ../binutils/Makefile \
20835 && test x$build = x$host; then
20836 # Single tree build which includes binutils.
20837 gcc_cv_objdump=../binutils/objdump$build_exeext
20838 elif test -x objdump$build_exeext; then
20839 gcc_cv_objdump=./objdump$build_exeext
20840 elif test -x $OBJDUMP_FOR_TARGET; then
20841 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20843 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20844 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20846 $as_echo_n "checking for $ac_word... " >&6; }
20847 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20848 $as_echo_n "(cached) " >&6
20850 case $gcc_cv_objdump in
20852 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20856 for as_dir in $PATH
20859 test -z "$as_dir" && as_dir=.
20860 for ac_exec_ext in '' $ac_executable_extensions; do
20861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20862 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20873 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20874 if test -n "$gcc_cv_objdump"; then
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20876 $as_echo "$gcc_cv_objdump" >&6; }
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20879 $as_echo "no" >&6; }
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20887 $as_echo_n "checking what objdump to use... " >&6; }
20888 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20889 # Single tree build which includes binutils.
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20891 $as_echo "newly built objdump" >&6; }
20892 elif test x$gcc_cv_objdump = x; then
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20894 $as_echo "not found" >&6; }
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20897 $as_echo "$gcc_cv_objdump" >&6; }
20900 # Figure out what readelf we will be using.
20901 if test "${gcc_cv_readelf+set}" = set; then :
20905 if test -f $gcc_cv_binutils_srcdir/configure.in \
20906 && test -f ../binutils/Makefile \
20907 && test x$build = x$host; then
20908 # Single tree build which includes binutils.
20909 gcc_cv_readelf=../binutils/readelf$build_exeext
20910 elif test -x readelf$build_exeext; then
20911 gcc_cv_readelf=./readelf$build_exeext
20913 # Extract the first word of "readelf", so it can be a program name with args.
20914 set dummy readelf; ac_word=$2
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20916 $as_echo_n "checking for $ac_word... " >&6; }
20917 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20918 $as_echo_n "(cached) " >&6
20920 case $gcc_cv_readelf in
20922 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20926 for as_dir in $PATH
20929 test -z "$as_dir" && as_dir=.
20930 for ac_exec_ext in '' $ac_executable_extensions; do
20931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20932 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20943 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20944 if test -n "$gcc_cv_readelf"; then
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20946 $as_echo "$gcc_cv_readelf" >&6; }
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20949 $as_echo "no" >&6; }
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20957 $as_echo_n "checking what readelf to use... " >&6; }
20958 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20959 # Single tree build which includes binutils.
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20961 $as_echo "newly built readelf" >&6; }
20962 elif test x$gcc_cv_readelf = x; then
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20964 $as_echo "not found" >&6; }
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20967 $as_echo "$gcc_cv_readelf" >&6; }
20970 # Figure out what assembler alignment features are present.
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20972 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20973 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20974 $as_echo_n "(cached) " >&6
20976 gcc_cv_as_balign_and_p2align=no
20977 if test $in_tree_gas = yes; then
20978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20979 then gcc_cv_as_balign_and_p2align=yes
20981 elif test x$gcc_cv_as != x; then
20983 .p2align 2' > conftest.s
20984 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20986 (eval $ac_try) 2>&5
20988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20989 test $ac_status = 0; }; }
20991 gcc_cv_as_balign_and_p2align=yes
20993 echo "configure: failed program was" >&5
20996 rm -f conftest.o conftest.s
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21000 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21001 if test $gcc_cv_as_balign_and_p2align = yes; then
21003 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21008 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21009 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21010 $as_echo_n "(cached) " >&6
21012 gcc_cv_as_max_skip_p2align=no
21013 if test $in_tree_gas = yes; then
21014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21015 then gcc_cv_as_max_skip_p2align=yes
21017 elif test x$gcc_cv_as != x; then
21018 echo '.p2align 4,,7' > conftest.s
21019 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21021 (eval $ac_try) 2>&5
21023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21024 test $ac_status = 0; }; }
21026 gcc_cv_as_max_skip_p2align=yes
21028 echo "configure: failed program was" >&5
21031 rm -f conftest.o conftest.s
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21035 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21036 if test $gcc_cv_as_max_skip_p2align = yes; then
21038 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21043 $as_echo_n "checking assembler for .literal16... " >&6; }
21044 if test "${gcc_cv_as_literal16+set}" = set; then :
21045 $as_echo_n "(cached) " >&6
21047 gcc_cv_as_literal16=no
21048 if test $in_tree_gas = yes; then
21049 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21050 then gcc_cv_as_literal16=yes
21052 elif test x$gcc_cv_as != x; then
21053 echo '.literal16' > conftest.s
21054 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21056 (eval $ac_try) 2>&5
21058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21059 test $ac_status = 0; }; }
21061 gcc_cv_as_literal16=yes
21063 echo "configure: failed program was" >&5
21066 rm -f conftest.o conftest.s
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21070 $as_echo "$gcc_cv_as_literal16" >&6; }
21071 if test $gcc_cv_as_literal16 = yes; then
21073 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21078 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21079 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21080 $as_echo_n "(cached) " >&6
21082 gcc_cv_as_subsection_m1=no
21083 if test $in_tree_gas = yes; then
21084 if test $in_tree_gas_is_elf = yes \
21085 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21086 then gcc_cv_as_subsection_m1=yes
21088 elif test x$gcc_cv_as != x; then
21089 echo 'conftest_label1: .word 0
21091 conftest_label2: .word 0
21092 .previous' > conftest.s
21093 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21095 (eval $ac_try) 2>&5
21097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21098 test $ac_status = 0; }; }
21100 if test x$gcc_cv_nm != x; then
21101 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21102 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21103 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21105 else gcc_cv_as_subsection_m1=yes
21107 rm -f conftest.nm1 conftest.nm2
21110 echo "configure: failed program was" >&5
21113 rm -f conftest.o conftest.s
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21117 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21118 if test $gcc_cv_as_subsection_m1 = yes; then
21120 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21125 $as_echo_n "checking assembler for .weak... " >&6; }
21126 if test "${gcc_cv_as_weak+set}" = set; then :
21127 $as_echo_n "(cached) " >&6
21130 if test $in_tree_gas = yes; then
21131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21132 then gcc_cv_as_weak=yes
21134 elif test x$gcc_cv_as != x; then
21135 echo ' .weak foobar' > conftest.s
21136 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21138 (eval $ac_try) 2>&5
21140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21141 test $ac_status = 0; }; }
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_weak" >&5
21152 $as_echo "$gcc_cv_as_weak" >&6; }
21153 if test $gcc_cv_as_weak = yes; then
21155 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21160 $as_echo_n "checking assembler for .weakref... " >&6; }
21161 if test "${gcc_cv_as_weakref+set}" = set; then :
21162 $as_echo_n "(cached) " >&6
21164 gcc_cv_as_weakref=no
21165 if test $in_tree_gas = yes; then
21166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21167 then gcc_cv_as_weakref=yes
21169 elif test x$gcc_cv_as != x; then
21170 echo ' .weakref foobar, barfnot' > conftest.s
21171 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21173 (eval $ac_try) 2>&5
21175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21176 test $ac_status = 0; }; }
21178 gcc_cv_as_weakref=yes
21180 echo "configure: failed program was" >&5
21183 rm -f conftest.o conftest.s
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21187 $as_echo "$gcc_cv_as_weakref" >&6; }
21188 if test $gcc_cv_as_weakref = yes; then
21190 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21195 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21196 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21197 $as_echo_n "(cached) " >&6
21199 gcc_cv_as_nsubspa_comdat=no
21200 if test $in_tree_gas = yes; then
21201 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21202 then gcc_cv_as_nsubspa_comdat=yes
21204 elif test x$gcc_cv_as != x; then
21205 echo ' .SPACE $TEXT$
21206 .NSUBSPA $CODE$,COMDAT' > conftest.s
21207 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21209 (eval $ac_try) 2>&5
21211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21212 test $ac_status = 0; }; }
21214 gcc_cv_as_nsubspa_comdat=yes
21216 echo "configure: failed program was" >&5
21219 rm -f conftest.o conftest.s
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21223 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21224 if test $gcc_cv_as_nsubspa_comdat = yes; then
21226 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21230 # .hidden needs to be supported in both the assembler and the linker,
21231 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21232 # This is irritatingly difficult to feature test for; we have to check the
21233 # date string after the version number. If we've got an in-tree
21234 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21236 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21238 $as_echo_n "checking assembler for .hidden... " >&6; }
21239 if test "${gcc_cv_as_hidden+set}" = set; then :
21240 $as_echo_n "(cached) " >&6
21242 gcc_cv_as_hidden=no
21243 if test $in_tree_gas = yes; then
21244 if test $in_tree_gas_is_elf = yes \
21245 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21246 then gcc_cv_as_hidden=yes
21248 elif test x$gcc_cv_as != x; then
21249 echo ' .hidden foobar
21250 foobar:' > conftest.s
21251 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21253 (eval $ac_try) 2>&5
21255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21256 test $ac_status = 0; }; }
21258 gcc_cv_as_hidden=yes
21260 echo "configure: failed program was" >&5
21263 rm -f conftest.o conftest.s
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21267 $as_echo "$gcc_cv_as_hidden" >&6; }
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21271 $as_echo_n "checking linker for .hidden support... " >&6; }
21272 if test "${gcc_cv_ld_hidden+set}" = set; then :
21273 $as_echo_n "(cached) " >&6
21275 if test $in_tree_ld = yes ; then
21276 gcc_cv_ld_hidden=no
21277 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 \
21278 && test $in_tree_ld_is_elf = yes; then
21279 gcc_cv_ld_hidden=yes
21282 gcc_cv_ld_hidden=yes
21283 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21284 if echo "$ld_ver" | grep GNU > /dev/null; then
21285 ld_vers=`echo $ld_ver | sed -n \
21286 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21287 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'`
21288 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21289 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21290 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21291 if test 0"$ld_date" -lt 20020404; then
21292 if test -n "$ld_date"; then
21293 # If there was date string, but was earlier than 2002-04-04, fail
21294 gcc_cv_ld_hidden=no
21295 elif test -z "$ld_vers"; then
21296 # If there was no date string nor ld version number, something is wrong
21297 gcc_cv_ld_hidden=no
21299 test -z "$ld_vers_patch" && ld_vers_patch=0
21300 if test "$ld_vers_major" -lt 2; then
21301 gcc_cv_ld_hidden=no
21302 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21303 gcc_cv_ld_hidden="no"
21304 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21305 gcc_cv_ld_hidden=no
21310 case "${target}" in
21311 hppa64*-*-hpux* | ia64*-*-hpux*)
21312 gcc_cv_ld_hidden=yes
21314 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21315 gcc_cv_ld_hidden=yes
21318 gcc_cv_ld_hidden=no
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21325 $as_echo "$gcc_cv_ld_hidden" >&6; }
21326 libgcc_visibility=no
21329 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21330 libgcc_visibility=yes
21332 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21337 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21338 gcc_cv_ld_ro_rw_mix=unknown
21339 if test $in_tree_ld = yes ; then
21340 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 \
21341 && test $in_tree_ld_is_elf = yes; then
21342 gcc_cv_ld_ro_rw_mix=read-write
21344 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21345 echo '.section myfoosect, "a"' > conftest1.s
21346 echo '.section myfoosect, "aw"' > conftest2.s
21347 echo '.byte 1' >> conftest2.s
21348 echo '.section myfoosect, "a"' > conftest3.s
21349 echo '.byte 0' >> conftest3.s
21350 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21351 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21352 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21353 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21354 conftest2.o conftest3.o > /dev/null 2>&1; then
21355 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21356 | sed -e '/myfoosect/!d' -e N`
21357 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21358 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21359 gcc_cv_ld_ro_rw_mix=read-only
21361 gcc_cv_ld_ro_rw_mix=read-write
21365 rm -f conftest.* conftest[123].*
21367 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21369 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21373 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21375 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21377 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21378 if test "${gcc_cv_as_leb128+set}" = set; then :
21379 $as_echo_n "(cached) " >&6
21381 gcc_cv_as_leb128=no
21382 if test $in_tree_gas = yes; then
21383 if test $in_tree_gas_is_elf = yes \
21384 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21385 then gcc_cv_as_leb128=yes
21387 elif test x$gcc_cv_as != x; then
21394 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21396 (eval $ac_try) 2>&5
21398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21399 test $ac_status = 0; }; }
21401 # GAS versions before 2.11 do not support uleb128,
21402 # despite appearing to.
21403 # ??? There exists an elf-specific test that will crash
21404 # the assembler. Perhaps it's better to figure out whether
21405 # arbitrary sections are supported and try the test.
21406 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21407 if echo "$as_ver" | grep GNU > /dev/null; then
21408 as_vers=`echo $as_ver | sed -n \
21409 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21410 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21411 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21412 if test $as_major -eq 2 && test $as_minor -lt 11
21414 else gcc_cv_as_leb128=yes
21418 echo "configure: failed program was" >&5
21421 rm -f conftest.o conftest.s
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21425 $as_echo "$gcc_cv_as_leb128" >&6; }
21426 if test $gcc_cv_as_leb128 = yes; then
21428 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21432 # Check if we have assembler support for unwind directives.
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21434 $as_echo_n "checking assembler for cfi directives... " >&6; }
21435 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21436 $as_echo_n "(cached) " >&6
21438 gcc_cv_as_cfi_directive=no
21439 if test x$gcc_cv_as != x; then
21445 .cfi_escape 1, 2, 3, 4, 5
21446 .cfi_endproc' > conftest.s
21447 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21449 (eval $ac_try) 2>&5
21451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21452 test $ac_status = 0; }; }
21456 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21457 # read-only and read-write sections, we need to make sure that the
21458 # assembler used emits read-write .eh_frame sections.
21459 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21460 if test "x$gcc_cv_objdump" != x; then
21461 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21462 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21463 gcc_cv_as_cfi_directive=no
21465 gcc_cv_as_cfi_directive=yes
21468 # no objdump, err on the side of caution
21469 gcc_cv_as_cfi_directive=no
21472 gcc_cv_as_cfi_directive=yes
21476 gcc_cv_as_cfi_directive=yes
21480 echo "configure: failed program was" >&5
21483 rm -f conftest.o conftest.s
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21487 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21489 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21491 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21492 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21493 $as_echo_n "(cached) " >&6
21495 gcc_cv_as_cfi_advance_working=no
21496 if test x$gcc_cv_as != x; then
21499 .cfi_adjust_cfa_offset 64
21501 .cfi_adjust_cfa_offset 128
21502 .cfi_endproc' > conftest.s
21503 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21505 (eval $ac_try) 2>&5
21507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21508 test $ac_status = 0; }; }
21511 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21512 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
21513 gcc_cv_as_cfi_advance_working=yes
21517 echo "configure: failed program was" >&5
21520 rm -f conftest.o conftest.s
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21524 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21527 # no readelf, err on the side of caution
21528 gcc_cv_as_cfi_advance_working=no
21531 cat >>confdefs.h <<_ACEOF
21532 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21533 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21538 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21539 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21540 $as_echo_n "(cached) " >&6
21542 gcc_cv_as_cfi_personality_directive=no
21543 if test x$gcc_cv_as != x; then
21546 .cfi_personality 0, symbol
21547 .cfi_endproc' > conftest.s
21548 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21550 (eval $ac_try) 2>&5
21552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21553 test $ac_status = 0; }; }
21555 gcc_cv_as_cfi_personality_directive=yes
21557 echo "configure: failed program was" >&5
21560 rm -f conftest.o conftest.s
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21564 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21567 cat >>confdefs.h <<_ACEOF
21568 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21569 then echo 1; else echo 0; fi`
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21574 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21575 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21576 $as_echo_n "(cached) " >&6
21578 gcc_cv_as_cfi_sections_directive=no
21579 if test x$gcc_cv_as != x; then
21581 .cfi_sections .debug_frame, .eh_frame
21583 .cfi_endproc' > conftest.s
21584 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21586 (eval $ac_try) 2>&5
21588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21589 test $ac_status = 0; }; }
21591 gcc_cv_as_cfi_sections_directive=yes
21593 echo "configure: failed program was" >&5
21596 rm -f conftest.o conftest.s
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21600 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21603 cat >>confdefs.h <<_ACEOF
21604 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21605 then echo 1; else echo 0; fi`
21609 # GAS versions up to and including 2.11.0 may mis-optimize
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21612 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21613 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21614 $as_echo_n "(cached) " >&6
21616 gcc_cv_as_eh_frame=no
21617 if test $in_tree_gas = yes; then
21618 if test $in_tree_gas_is_elf = yes \
21619 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21620 then gcc_cv_as_eh_frame=yes
21622 elif test x$gcc_cv_as != x; then
21629 .section .eh_frame,"aw",@progbits
21631 .4byte .LECIE1-.LSCIE1
21645 .4byte .LEFDE1-.LASFDE1
21647 .4byte .LASFDE1-__FRAME_BEGIN__
21654 .LEFDE1:' > conftest.s
21655 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21657 (eval $ac_try) 2>&5
21659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21660 test $ac_status = 0; }; }
21662 cat > conftest.lit <<EOF
21663 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21664 0010 01000000 12000000 18000000 00000000 ................
21665 0020 08000000 04080000 0044 .........D
21667 cat > conftest.big <<EOF
21668 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21669 0010 00000001 00000012 00000018 00000000 ................
21670 0020 00000008 04000000 0844 .........D
21672 # If the assembler didn't choke, and we can objdump,
21673 # and we got the correct data, then succeed.
21674 # The text in the here-document typically retains its unix-style line
21675 # endings, while the output of objdump will use host line endings.
21676 # Therefore, use diff -b for the comparisons.
21677 if test x$gcc_cv_objdump != x \
21678 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21679 | tail -3 > conftest.got \
21680 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21681 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21683 gcc_cv_as_eh_frame=yes
21684 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21686 (eval $ac_try) 2>&5
21688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21689 test $ac_status = 0; }; }; then
21690 gcc_cv_as_eh_frame=buggy
21692 # Uh oh, what do we do now?
21693 gcc_cv_as_eh_frame=no
21696 echo "configure: failed program was" >&5
21699 rm -f conftest.o conftest.s
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21703 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21706 if test $gcc_cv_as_eh_frame = buggy; then
21708 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21713 $as_echo_n "checking assembler for section merging support... " >&6; }
21714 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21715 $as_echo_n "(cached) " >&6
21717 gcc_cv_as_shf_merge=no
21718 if test $in_tree_gas = yes; then
21719 if test $in_tree_gas_is_elf = yes \
21720 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21721 then gcc_cv_as_shf_merge=yes
21723 elif test x$gcc_cv_as != x; then
21724 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21725 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21727 (eval $ac_try) 2>&5
21729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21730 test $ac_status = 0; }; }
21732 gcc_cv_as_shf_merge=yes
21734 echo "configure: failed program was" >&5
21737 rm -f conftest.o conftest.s
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21741 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21743 if test $gcc_cv_as_shf_merge = no; then
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21745 $as_echo_n "checking assembler for section merging support... " >&6; }
21746 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21747 $as_echo_n "(cached) " >&6
21749 gcc_cv_as_shf_merge=no
21750 if test $in_tree_gas = yes; then
21751 if test $in_tree_gas_is_elf = yes \
21752 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21753 then gcc_cv_as_shf_merge=yes
21755 elif test x$gcc_cv_as != x; then
21756 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21757 if { ac_try='$gcc_cv_as --fatal-warnings -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; }; }
21764 gcc_cv_as_shf_merge=yes
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_shf_merge" >&5
21773 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21777 cat >>confdefs.h <<_ACEOF
21778 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21783 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21784 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21785 $as_echo_n "(cached) " >&6
21787 gcc_cv_as_comdat_group=no
21788 if test $in_tree_gas = yes; then
21789 if test $in_tree_gas_is_elf = yes \
21790 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21791 then gcc_cv_as_comdat_group=yes
21793 elif test x$gcc_cv_as != x; then
21794 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21795 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21797 (eval $ac_try) 2>&5
21799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21800 test $ac_status = 0; }; }
21802 gcc_cv_as_comdat_group=yes
21804 echo "configure: failed program was" >&5
21807 rm -f conftest.o conftest.s
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21811 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21813 if test $gcc_cv_as_comdat_group = yes; then
21814 gcc_cv_as_comdat_group_percent=no
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21817 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21818 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21819 $as_echo_n "(cached) " >&6
21821 gcc_cv_as_comdat_group_percent=no
21822 if test $in_tree_gas = yes; then
21823 if test $in_tree_gas_is_elf = yes \
21824 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21825 then gcc_cv_as_comdat_group_percent=yes
21827 elif test x$gcc_cv_as != x; then
21828 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21829 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21831 (eval $ac_try) 2>&5
21833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21834 test $ac_status = 0; }; }
21836 gcc_cv_as_comdat_group_percent=yes
21838 echo "configure: failed program was" >&5
21841 rm -f conftest.o conftest.s
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21845 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21848 if test $in_tree_ld = yes ; then
21850 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 \
21851 && test $in_tree_ld_is_elf = yes; then
21854 elif test x"$ld_vers" != x; then
21856 if test 0"$ld_date" -lt 20050308; then
21857 if test -n "$ld_date"; then
21858 # If there was date string, but was earlier than 2005-03-08, fail
21860 elif test "$ld_vers_major" -lt 2; then
21862 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21867 # assume linkers other than GNU ld don't support COMDAT group
21870 if test $comdat_group = no; then
21871 gcc_cv_as_comdat_group=no
21872 gcc_cv_as_comdat_group_percent=no
21875 cat >>confdefs.h <<_ACEOF
21876 #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`
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21881 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21882 if test "${gcc_cv_as_discriminator+set}" = set; then :
21883 $as_echo_n "(cached) " >&6
21885 gcc_cv_as_discriminator=no
21886 if test $in_tree_gas = yes; then
21887 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21888 then gcc_cv_as_discriminator=yes
21890 elif test x$gcc_cv_as != x; then
21893 .loc 1 1 0 discriminator 1' > conftest.s
21894 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21896 (eval $ac_try) 2>&5
21898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21899 test $ac_status = 0; }; }
21901 gcc_cv_as_discriminator=yes
21903 echo "configure: failed program was" >&5
21906 rm -f conftest.o conftest.s
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21910 $as_echo "$gcc_cv_as_discriminator" >&6; }
21911 if test $gcc_cv_as_discriminator = yes; then
21913 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21917 # Thread-local storage - the check is heavily parameterized.
21925 .section ".tdata","awT",@progbits
21928 ldq $27,__tls_get_addr($29) !literal!1
21929 lda $16,foo($29) !tlsgd!1
21930 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21931 ldq $27,__tls_get_addr($29) !literal!2
21932 lda $16,foo($29) !tlsldm!2
21933 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21934 ldq $1,foo($29) !gotdtprel
21935 ldah $2,foo($29) !dtprelhi
21936 lda $3,foo($2) !dtprello
21937 lda $4,foo($29) !dtprel
21938 ldq $1,foo($29) !gottprel
21939 ldah $2,foo($29) !tprelhi
21940 lda $3,foo($2) !tprello
21941 lda $4,foo($29) !tprel'
21944 tls_as_opt=--fatal-warnings
21946 cris-*-*|crisv32-*-*)
21948 .section ".tdata","awT",@progbits
21955 tls_as_opt=--fatal-warnings
21959 .section ".tdata","awT",@progbits
21962 call #gettlsoff(x)'
21971 .section ".tdata","awT",@progbits
21975 addil LT%foo-$tls_gdidx$,gp
21976 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21979 addil LT%foo-$tls_ldidx$,gp
21981 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21982 addil LR%foo-$tls_dtpoff$,%ret0
21983 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21985 addil LT%foo-$tls_ieoff$,gp
21986 ldw RT%foo-$tls_ieoff$(%r1),%t2
21989 addil LR%foo-$tls_leoff$,%t1
21990 ldo RR%foo-$tls_leoff$(%r1),%t2'
21993 tls_as_opt=--fatal-warnings
21997 .section ".tdata","awT",%progbits
22000 .word foo(gottpoff)
22010 .section ".tdata","awT",@progbits
22014 leal foo@TLSGD(,%ebx,1), %eax
22015 leal foo@TLSLDM(%ebx), %eax
22016 leal foo@DTPOFF(%eax), %edx
22017 movl foo@GOTTPOFF(%ebx), %eax
22018 subl foo@GOTTPOFF(%ebx), %eax
22019 addl foo@GOTNTPOFF(%ebx), %eax
22020 movl foo@INDNTPOFF, %eax
22021 movl $foo@TPOFF, %eax
22022 subl $foo@TPOFF, %eax
22023 leal foo@NTPOFF(%ecx), %eax'
22026 tls_as_opt=--fatal-warnings
22030 .section ".tdata","awT",@progbits
22034 leaq foo@TLSGD(%rip), %rdi
22035 leaq foo@TLSLD(%rip), %rdi
22036 leaq foo@DTPOFF(%rax), %rdx
22037 movq foo@GOTTPOFF(%rip), %rax
22038 movq $foo@TPOFF, %rax'
22041 tls_as_opt=--fatal-warnings
22045 .section ".tdata","awT",@progbits
22048 addl r16 = @ltoff(@dtpmod(foo#)), gp
22049 addl r17 = @ltoff(@dtprel(foo#)), gp
22050 addl r18 = @ltoff(@tprel(foo#)), gp
22051 addl r19 = @dtprel(foo#), gp
22052 adds r21 = @dtprel(foo#), r13
22053 movl r23 = @dtprel(foo#)
22054 addl r20 = @tprel(foo#), gp
22055 adds r22 = @tprel(foo#), r13
22056 movl r24 = @tprel(foo#)'
22059 tls_as_opt=--fatal-warnings
22063 .section .tdata,"awT",@progbits
22067 addiu $4, $28, %tlsgd(x)
22068 addiu $4, $28, %tlsldm(x)
22069 lui $4, %dtprel_hi(x)
22070 addiu $4, $4, %dtprel_lo(x)
22071 lw $4, %gottprel(x)($28)
22072 lui $4, %tprel_hi(x)
22073 addiu $4, $4, %tprel_lo(x)'
22076 tls_as_opt='-32 --fatal-warnings'
22080 .section .tdata,"awT",@progbits
22085 move.l x@TLSGD(%a5),%a0
22086 move.l x@TLSLDM(%a5),%a0
22087 move.l x@TLSLDO(%a5),%a0
22088 move.l x@TLSIE(%a5),%a0
22089 move.l x@TLSLE(%a5),%a0'
22092 tls_as_opt='--fatal-warnings'
22096 .section ".tdata","awT",@progbits
22104 addi 3,31,ld0@got@tlsgd
22106 addi 3,31,x1@got@tlsld
22109 addis 9,3,x2@dtprel@ha
22110 addi 9,9,x2@dtprel@l
22111 lwz 9,x3@got@tprel(31)
22114 addis 9,2,x2@tprel@ha
22115 addi 9,9,x2@tprel@l'
22118 tls_as_opt="-a32 --fatal-warnings"
22122 .section ".tdata","awT",@progbits
22130 addi 3,2,ld0@got@tlsgd
22136 addi 3,2,x1@got@tlsld
22142 addis 9,3,x2@dtprel@ha
22143 addi 9,9,x2@dtprel@l
22146 ld 9,x3@got@dtprel(2)
22152 tls_as_opt="-a64 --fatal-warnings"
22156 .section ".tdata","awT",@progbits
22163 .long foo@GOTNTPOFF
22164 .long foo@INDNTPOFF
22165 l %r1,foo@GOTNTPOFF(%r12)
22166 l %r1,0(%r1):tls_load:foo
22167 bas %r14,0(%r1,%r13):tls_gdcall:foo
22168 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22171 tls_as_opt="-m31 --fatal-warnings"
22175 .section ".tdata","awT",@progbits
22182 .quad foo@GOTNTPOFF
22183 lg %r1,foo@GOTNTPOFF(%r12)
22184 larl %r1,foo@INDNTPOFF
22185 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22186 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22189 tls_as_opt="-m64 -Aesame --fatal-warnings"
22191 sh-*-* | sh[34]-*-*)
22193 .section ".tdata","awT",@progbits
22203 tls_as_opt=--fatal-warnings
22207 sparc*-sun-solaris2.[56789]*)
22208 # TLS was introduced in the Solaris 9 4/04 release but
22209 # we do not enable it by default on Solaris 9 either.
22210 if test "x$enable_tls" = xyes ; then
22216 sparc*-sun-solaris2.*)
22223 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22225 .section ".tdata",#alloc,#write,#tls
22228 sethi %tgd_hi22(foo), %o0
22229 add %o0, %tgd_lo10(foo), %o1
22230 add %l7, %o1, %o0, %tgd_add(foo)
22231 call __tls_get_addr, %tgd_call(foo)
22232 sethi %tldm_hi22(foo), %l1
22233 add %l1, %tldm_lo10(foo), %l2
22234 add %l7, %l2, %o0, %tldm_add(foo)
22235 call __tls_get_addr, %tldm_call(foo)
22236 sethi %tldo_hix22(foo), %l3
22237 xor %l3, %tldo_lox10(foo), %l4
22238 add %o0, %l4, %l5, %tldo_add(foo)
22239 sethi %tie_hi22(foo), %o3
22240 add %o3, %tie_lo10(foo), %o3
22241 ld [%l7 + %o3], %o2, %tie_ld(foo)
22242 add %g7, %o2, %o4, %tie_add(foo)
22243 sethi %tle_hix22(foo), %l1
22244 xor %l1, %tle_lox10(foo), %o5
22245 ld [%g7 + %o5], %o1'
22250 .section ".tdata","awT",@progbits
22253 sethi %tgd_hi22(foo), %o0
22254 add %o0, %tgd_lo10(foo), %o1
22255 add %l7, %o1, %o0, %tgd_add(foo)
22256 call __tls_get_addr, %tgd_call(foo)
22257 sethi %tldm_hi22(foo), %l1
22258 add %l1, %tldm_lo10(foo), %l2
22259 add %l7, %l2, %o0, %tldm_add(foo)
22260 call __tls_get_addr, %tldm_call(foo)
22261 sethi %tldo_hix22(foo), %l3
22262 xor %l3, %tldo_lox10(foo), %l4
22263 add %o0, %l4, %l5, %tldo_add(foo)
22264 sethi %tie_hi22(foo), %o3
22265 add %o3, %tie_lo10(foo), %o3
22266 ld [%l7 + %o3], %o2, %tie_ld(foo)
22267 add %g7, %o2, %o4, %tie_add(foo)
22268 sethi %tle_hix22(foo), %l1
22269 xor %l1, %tle_lox10(foo), %o5
22270 ld [%g7 + %o5], %o1'
22273 tls_as_opt="-32 --fatal-warnings"
22278 .section ".tdata","awT",@progbits
22281 movi a8, foo@TLSFUNC
22282 movi a10, foo@TLSARG
22283 callx8.tls a8, foo@TLSCALL'
22289 if test "x$enable_tls" = xno ; then
22290 : # TLS explicitly disabled.
22291 elif test "x$enable_tls" = xyes ; then
22292 set_have_as_tls=yes # TLS explicitly enabled.
22293 elif test -z "$tls_first_major"; then
22294 : # If we don't have a check, assume no support.
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22297 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22298 if test "${gcc_cv_as_tls+set}" = set; then :
22299 $as_echo_n "(cached) " >&6
22302 if test $in_tree_gas = yes; then
22303 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22304 then gcc_cv_as_tls=yes
22306 elif test x$gcc_cv_as != x; then
22307 echo "$conftest_s" > conftest.s
22308 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22310 (eval $ac_try) 2>&5
22312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22313 test $ac_status = 0; }; }
22317 echo "configure: failed program was" >&5
22320 rm -f conftest.o conftest.s
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22324 $as_echo "$gcc_cv_as_tls" >&6; }
22325 if test $gcc_cv_as_tls = yes; then
22326 set_have_as_tls=yes
22329 if test $set_have_as_tls = yes ; then
22331 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22335 # Target-specific assembler checks.
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22338 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22339 gcc_cv_ld_static_dynamic=no
22340 if test $in_tree_ld = yes ; then
22341 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
22342 gcc_cv_ld_static_dynamic=yes
22344 elif test x$gcc_cv_ld != x; then
22345 # Check if linker supports -Bstatic/-Bdynamic option
22346 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22347 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22348 gcc_cv_ld_static_dynamic=yes
22351 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22353 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22357 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22359 if test x"$demangler_in_ld" = xyes; then
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22361 $as_echo_n "checking linker --demangle support... " >&6; }
22362 gcc_cv_ld_demangle=no
22363 if test $in_tree_ld = yes; then
22364 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 \
22365 gcc_cv_ld_demangle=yes
22367 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22368 # Check if the GNU linker supports --demangle option
22369 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22370 gcc_cv_ld_demangle=yes
22373 if test x"$gcc_cv_ld_demangle" = xyes; then
22375 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22379 $as_echo "$gcc_cv_ld_demangle" >&6; }
22383 # All TARGET_ABI_OSF targets.
22384 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22386 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22387 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22388 $as_echo_n "(cached) " >&6
22390 gcc_cv_as_alpha_explicit_relocs=no
22391 if test $in_tree_gas = yes; then
22392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22393 then gcc_cv_as_alpha_explicit_relocs=yes
22395 elif test x$gcc_cv_as != x; then
22396 echo ' .set nomacro
22398 extbl $3, $2, $3 !lituse_bytoff!1
22399 ldq $2, a($29) !literal!1
22400 ldq $4, b($29) !literal!2
22401 ldq_u $3, 0($2) !lituse_base!1
22402 ldq $27, f($29) !literal!5
22403 jsr $26, ($27), f !lituse_jsr!5
22404 ldah $29, 0($26) !gpdisp!3
22405 lda $0, c($29) !gprel
22406 ldah $1, d($29) !gprelhigh
22407 lda $1, d($1) !gprellow
22408 lda $29, 0($29) !gpdisp!3' > conftest.s
22409 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22411 (eval $ac_try) 2>&5
22413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22414 test $ac_status = 0; }; }
22416 gcc_cv_as_alpha_explicit_relocs=yes
22418 echo "configure: failed program was" >&5
22421 rm -f conftest.o conftest.s
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22425 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22426 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22428 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22432 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22433 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22434 $as_echo_n "(cached) " >&6
22436 gcc_cv_as_alpha_jsrdirect_relocs=no
22437 if test $in_tree_gas = yes; then
22438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22439 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22441 elif test x$gcc_cv_as != x; then
22442 echo ' .set nomacro
22444 ldq $27, a($29) !literal!1
22445 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22446 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22448 (eval $ac_try) 2>&5
22450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22451 test $ac_status = 0; }; }
22453 gcc_cv_as_alpha_jsrdirect_relocs=yes
22455 echo "configure: failed program was" >&5
22458 rm -f conftest.o conftest.s
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22462 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22463 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22465 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22472 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22473 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22476 gcc_cv_as_cris_no_mul_bug=no
22477 if test $in_tree_gas = yes; then
22478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22479 then gcc_cv_as_cris_no_mul_bug=yes
22481 elif test x$gcc_cv_as != x; then
22482 echo '.text' > conftest.s
22483 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22485 (eval $ac_try) 2>&5
22487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22488 test $ac_status = 0; }; }
22490 gcc_cv_as_cris_no_mul_bug=yes
22492 echo "configure: failed program was" >&5
22495 rm -f conftest.o conftest.s
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22499 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22500 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22502 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22509 $as_echo_n "checking assembler for .register... " >&6; }
22510 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22511 $as_echo_n "(cached) " >&6
22513 gcc_cv_as_sparc_register_op=no
22514 if test x$gcc_cv_as != x; then
22515 echo '.register %g2, #scratch' > conftest.s
22516 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22518 (eval $ac_try) 2>&5
22520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22521 test $ac_status = 0; }; }
22523 gcc_cv_as_sparc_register_op=yes
22525 echo "configure: failed program was" >&5
22528 rm -f conftest.o conftest.s
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22532 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22533 if test $gcc_cv_as_sparc_register_op = yes; then
22535 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22540 $as_echo_n "checking assembler for -relax option... " >&6; }
22541 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
22544 gcc_cv_as_sparc_relax=no
22545 if test x$gcc_cv_as != x; then
22546 echo '.text' > conftest.s
22547 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22549 (eval $ac_try) 2>&5
22551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552 test $ac_status = 0; }; }
22554 gcc_cv_as_sparc_relax=yes
22556 echo "configure: failed program was" >&5
22559 rm -f conftest.o conftest.s
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22563 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22564 if test $gcc_cv_as_sparc_relax = yes; then
22566 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22571 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22572 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22573 $as_echo_n "(cached) " >&6
22575 gcc_cv_as_sparc_ua_pcrel=no
22576 if test x$gcc_cv_as != x; then
22583 .uaword %r_disp32(foo)' > conftest.s
22584 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22586 (eval $ac_try) 2>&5
22588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22589 test $ac_status = 0; }; }
22591 if test x$gcc_cv_ld != x \
22592 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22593 gcc_cv_as_sparc_ua_pcrel=yes
22597 echo "configure: failed program was" >&5
22600 rm -f conftest.o conftest.s
22603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22604 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22605 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22607 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22611 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22612 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22613 $as_echo_n "(cached) " >&6
22615 gcc_cv_as_sparc_ua_pcrel_hidden=no
22616 if test x$gcc_cv_as != x; then
22620 .uaword %r_disp32(foo)
22621 .byte 0x32, 0x33, 0x34
22625 .skip 4' > conftest.s
22626 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22628 (eval $ac_try) 2>&5
22630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22631 test $ac_status = 0; }; }
22633 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22634 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22635 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22636 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22637 if $gcc_cv_objdump -R conftest 2> /dev/null \
22638 | grep 'DISP32' > /dev/null 2>&1; then
22641 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22646 echo "configure: failed program was" >&5
22649 rm -f conftest.o conftest.s
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22653 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22654 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22656 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22660 fi # unaligned pcrel relocs
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22663 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22664 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22665 $as_echo_n "(cached) " >&6
22667 gcc_cv_as_sparc_offsetable_lo10=no
22668 if test x$gcc_cv_as != x; then
22670 or %g1, %lo(ab) + 12, %g1
22671 or %g1, %lo(ab + 12), %g1' > conftest.s
22672 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22674 (eval $ac_try) 2>&5
22676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22677 test $ac_status = 0; }; }
22679 if test x$gcc_cv_objdump != x \
22680 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22681 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22682 gcc_cv_as_sparc_offsetable_lo10=yes
22685 echo "configure: failed program was" >&5
22688 rm -f conftest.o conftest.s
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22692 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22693 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22695 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22700 i[34567]86-*-* | x86_64-*-*)
22702 cygwin* | pe | mingw32*)
22703 # Recent binutils allows the three-operand form of ".comm" on PE. This
22704 # definition is used unconditionally to initialise the default state of
22705 # the target option variable that governs usage of the feature.
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22707 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22708 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22709 $as_echo_n "(cached) " >&6
22711 gcc_cv_as_comm_has_align=no
22712 if test $in_tree_gas = yes; then
22713 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22714 then gcc_cv_as_comm_has_align=yes
22716 elif test x$gcc_cv_as != x; then
22717 echo '.comm foo,1,32' > conftest.s
22718 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22720 (eval $ac_try) 2>&5
22722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22723 test $ac_status = 0; }; }
22725 gcc_cv_as_comm_has_align=yes
22727 echo "configure: failed program was" >&5
22730 rm -f conftest.o conftest.s
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22734 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22737 cat >>confdefs.h <<_ACEOF
22738 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22741 # Used for DWARF 2 in PE
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22743 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22744 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22745 $as_echo_n "(cached) " >&6
22747 gcc_cv_as_ix86_pe_secrel32=no
22748 if test $in_tree_gas = yes; then
22749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22750 then gcc_cv_as_ix86_pe_secrel32=yes
22752 elif test x$gcc_cv_as != x; then
22756 .secrel32 foo' > conftest.s
22757 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; }
22764 if test x$gcc_cv_ld != x \
22765 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22766 gcc_cv_as_ix86_pe_secrel32=yes
22770 echo "configure: failed program was" >&5
22773 rm -f conftest.o conftest.s
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22777 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22778 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22780 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22787 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22788 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22789 $as_echo_n "(cached) " >&6
22791 gcc_cv_as_ix86_filds=no
22792 if test x$gcc_cv_as != x; then
22793 echo 'filds mem; fists mem' > conftest.s
22794 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22796 (eval $ac_try) 2>&5
22798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22799 test $ac_status = 0; }; }
22801 gcc_cv_as_ix86_filds=yes
22803 echo "configure: failed program was" >&5
22806 rm -f conftest.o conftest.s
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22810 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22811 if test $gcc_cv_as_ix86_filds = yes; then
22813 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22818 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22819 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22820 $as_echo_n "(cached) " >&6
22822 gcc_cv_as_ix86_fildq=no
22823 if test x$gcc_cv_as != x; then
22824 echo 'fildq mem; fistpq mem' > conftest.s
22825 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22827 (eval $ac_try) 2>&5
22829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22830 test $ac_status = 0; }; }
22832 gcc_cv_as_ix86_fildq=yes
22834 echo "configure: failed program was" >&5
22837 rm -f conftest.o conftest.s
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22841 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22842 if test $gcc_cv_as_ix86_fildq = yes; then
22844 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22849 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22850 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22851 $as_echo_n "(cached) " >&6
22853 gcc_cv_as_ix86_cmov_sun_syntax=no
22854 if test x$gcc_cv_as != x; then
22855 echo 'cmovl.l %edx, %eax' > conftest.s
22856 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22858 (eval $ac_try) 2>&5
22860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22861 test $ac_status = 0; }; }
22863 gcc_cv_as_ix86_cmov_sun_syntax=yes
22865 echo "configure: failed program was" >&5
22868 rm -f conftest.o conftest.s
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22872 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22873 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22875 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22880 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22881 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22882 $as_echo_n "(cached) " >&6
22884 gcc_cv_as_ix86_ffreep=no
22885 if test x$gcc_cv_as != x; then
22886 echo 'ffreep %st(1)' > conftest.s
22887 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22889 (eval $ac_try) 2>&5
22891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22892 test $ac_status = 0; }; }
22894 gcc_cv_as_ix86_ffreep=yes
22896 echo "configure: failed program was" >&5
22899 rm -f conftest.o conftest.s
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22903 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22904 if test $gcc_cv_as_ix86_ffreep = yes; then
22906 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22911 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22912 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22913 $as_echo_n "(cached) " >&6
22915 gcc_cv_as_ix86_sahf=no
22916 if test x$gcc_cv_as != x; then
22917 echo 'sahf' > conftest.s
22918 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22920 (eval $ac_try) 2>&5
22922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22923 test $ac_status = 0; }; }
22925 gcc_cv_as_ix86_sahf=yes
22927 echo "configure: failed program was" >&5
22930 rm -f conftest.o conftest.s
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22934 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22935 if test $gcc_cv_as_ix86_sahf = yes; then
22937 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
22942 $as_echo_n "checking assembler for swap suffix... " >&6; }
22943 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
22944 $as_echo_n "(cached) " >&6
22946 gcc_cv_as_ix86_swap=no
22947 if test x$gcc_cv_as != x; then
22948 echo 'movl.s %esp, %ebp' > conftest.s
22949 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22951 (eval $ac_try) 2>&5
22953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22954 test $ac_status = 0; }; }
22956 gcc_cv_as_ix86_swap=yes
22958 echo "configure: failed program was" >&5
22961 rm -f conftest.o conftest.s
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
22965 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
22966 if test $gcc_cv_as_ix86_swap = yes; then
22968 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22973 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22974 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22975 $as_echo_n "(cached) " >&6
22977 gcc_cv_as_ix86_diff_sect_delta=no
22978 if test x$gcc_cv_as != x; then
22979 echo '.section .rodata
22985 .L2: nop' > conftest.s
22986 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22988 (eval $ac_try) 2>&5
22990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22991 test $ac_status = 0; }; }
22993 gcc_cv_as_ix86_diff_sect_delta=yes
22995 echo "configure: failed program was" >&5
22998 rm -f conftest.o conftest.s
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23002 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23003 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23005 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23009 # This one is used unconditionally by i386.[ch]; it is to be defined
23010 # to 1 if the feature is present, 0 otherwise.
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23012 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23013 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23014 $as_echo_n "(cached) " >&6
23016 gcc_cv_as_ix86_gotoff_in_data=no
23017 if test $in_tree_gas = yes; then
23018 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23019 then gcc_cv_as_ix86_gotoff_in_data=yes
23021 elif test x$gcc_cv_as != x; then
23026 .long .L0@GOTOFF' > conftest.s
23027 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23029 (eval $ac_try) 2>&5
23031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23032 test $ac_status = 0; }; }
23034 gcc_cv_as_ix86_gotoff_in_data=yes
23036 echo "configure: failed program was" >&5
23039 rm -f conftest.o conftest.s
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23043 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23046 cat >>confdefs.h <<_ACEOF
23047 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23054 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23055 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23056 $as_echo_n "(cached) " >&6
23058 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23059 if test $in_tree_gas = yes; then
23060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23061 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23063 elif test x$gcc_cv_as != x; then
23065 addl r15 = @ltoffx(x#), gp
23067 ld8.mov r16 = [r15], x#' > conftest.s
23068 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23070 (eval $ac_try) 2>&5
23072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23073 test $ac_status = 0; }; }
23075 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23077 echo "configure: failed program was" >&5
23080 rm -f conftest.o conftest.s
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23084 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23085 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23087 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23095 *-*-aix*) conftest_s=' .machine "pwr5"
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23100 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23101 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23102 $as_echo_n "(cached) " >&6
23104 gcc_cv_as_machine_directive=no
23105 if test x$gcc_cv_as != x; then
23106 echo ' .machine ppc7400' > conftest.s
23107 if { ac_try='$gcc_cv_as -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_machine_directive=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_machine_directive" >&5
23123 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23125 if test x$gcc_cv_as_machine_directive != xyes; then
23126 echo "*** This target requires an assembler supporting \".machine\"" >&2
23127 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23128 test x$build = x$target && exit 1
23132 *) conftest_s=' .machine power4
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23138 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23139 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23140 $as_echo_n "(cached) " >&6
23142 gcc_cv_as_powerpc_mfcrf=no
23143 if test $in_tree_gas = yes; then
23144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23145 then gcc_cv_as_powerpc_mfcrf=yes
23147 elif test x$gcc_cv_as != x; then
23148 echo "$conftest_s" > conftest.s
23149 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23151 (eval $ac_try) 2>&5
23153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23154 test $ac_status = 0; }; }
23156 gcc_cv_as_powerpc_mfcrf=yes
23158 echo "configure: failed program was" >&5
23161 rm -f conftest.o conftest.s
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23165 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23166 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23168 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23173 *-*-aix*) conftest_s=' .machine "pwr5"
23176 *) conftest_s=' .machine power5
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23182 $as_echo_n "checking assembler for popcntb support... " >&6; }
23183 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23184 $as_echo_n "(cached) " >&6
23186 gcc_cv_as_powerpc_popcntb=no
23187 if test $in_tree_gas = yes; then
23188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23189 then gcc_cv_as_powerpc_popcntb=yes
23191 elif test x$gcc_cv_as != x; then
23192 echo "$conftest_s" > conftest.s
23193 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23195 (eval $ac_try) 2>&5
23197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23198 test $ac_status = 0; }; }
23200 gcc_cv_as_powerpc_popcntb=yes
23202 echo "configure: failed program was" >&5
23205 rm -f conftest.o conftest.s
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23209 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23210 if test $gcc_cv_as_powerpc_popcntb = yes; then
23212 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23217 *-*-aix*) conftest_s=' .machine "pwr5x"
23220 *) conftest_s=' .machine power5
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23226 $as_echo_n "checking assembler for fp round support... " >&6; }
23227 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23228 $as_echo_n "(cached) " >&6
23230 gcc_cv_as_powerpc_fprnd=no
23231 if test $in_tree_gas = yes; then
23232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23233 then gcc_cv_as_powerpc_fprnd=yes
23235 elif test x$gcc_cv_as != x; then
23236 echo "$conftest_s" > conftest.s
23237 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23239 (eval $ac_try) 2>&5
23241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23242 test $ac_status = 0; }; }
23244 gcc_cv_as_powerpc_fprnd=yes
23246 echo "configure: failed program was" >&5
23249 rm -f conftest.o conftest.s
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23253 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23254 if test $gcc_cv_as_powerpc_fprnd = yes; then
23256 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23261 *-*-aix*) conftest_s=' .machine "pwr6"
23264 *) conftest_s=' .machine power6
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23270 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23271 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23272 $as_echo_n "(cached) " >&6
23274 gcc_cv_as_powerpc_mfpgpr=no
23275 if test $in_tree_gas = yes; then
23276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23277 then gcc_cv_as_powerpc_mfpgpr=yes
23279 elif test x$gcc_cv_as != x; then
23280 echo "$conftest_s" > conftest.s
23281 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23283 (eval $ac_try) 2>&5
23285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23286 test $ac_status = 0; }; }
23288 gcc_cv_as_powerpc_mfpgpr=yes
23290 echo "configure: failed program was" >&5
23293 rm -f conftest.o conftest.s
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23297 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23298 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23300 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23305 *-*-aix*) conftest_s=' .csect .text[PR]
23307 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23311 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23312 *) conftest_s=' .text
23314 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23318 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23319 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23320 $as_echo_n "(cached) " >&6
23322 gcc_cv_as_powerpc_rel16=no
23323 if test $in_tree_gas = yes; then
23324 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23325 then gcc_cv_as_powerpc_rel16=yes
23327 elif test x$gcc_cv_as != x; then
23328 echo "$conftest_s" > conftest.s
23329 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23331 (eval $ac_try) 2>&5
23333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23334 test $ac_status = 0; }; }
23336 gcc_cv_as_powerpc_rel16=yes
23338 echo "configure: failed program was" >&5
23341 rm -f conftest.o conftest.s
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23345 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23346 if test $gcc_cv_as_powerpc_rel16 = yes; then
23348 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23353 *-*-aix*) conftest_s=' .machine "pwr6"
23356 *) conftest_s=' .machine power6
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23362 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23363 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23364 $as_echo_n "(cached) " >&6
23366 gcc_cv_as_powerpc_cmpb=no
23367 if test $in_tree_gas = yes; then
23368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23369 then gcc_cv_as_powerpc_cmpb=yes
23371 elif test x$gcc_cv_as != x; then
23372 echo "$conftest_s" > conftest.s
23373 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23375 (eval $ac_try) 2>&5
23377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23378 test $ac_status = 0; }; }
23380 gcc_cv_as_powerpc_cmpb=yes
23382 echo "configure: failed program was" >&5
23385 rm -f conftest.o conftest.s
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23389 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23390 if test $gcc_cv_as_powerpc_cmpb = yes; then
23392 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23397 *-*-aix*) conftest_s=' .machine "pwr6"
23400 *) conftest_s=' .machine power6
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23406 $as_echo_n "checking assembler for decimal float support... " >&6; }
23407 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23408 $as_echo_n "(cached) " >&6
23410 gcc_cv_as_powerpc_dfp=no
23411 if test $in_tree_gas = yes; then
23412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23413 then gcc_cv_as_powerpc_dfp=yes
23415 elif test x$gcc_cv_as != x; then
23416 echo "$conftest_s" > conftest.s
23417 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23419 (eval $ac_try) 2>&5
23421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23422 test $ac_status = 0; }; }
23424 gcc_cv_as_powerpc_dfp=yes
23426 echo "configure: failed program was" >&5
23429 rm -f conftest.o conftest.s
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23433 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23434 if test $gcc_cv_as_powerpc_dfp = yes; then
23436 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23441 *-*-aix*) conftest_s=' .machine "pwr7"
23444 *) conftest_s=' .machine power7
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23450 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23451 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23452 $as_echo_n "(cached) " >&6
23454 gcc_cv_as_powerpc_vsx=no
23455 if test $in_tree_gas = yes; then
23456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23457 then gcc_cv_as_powerpc_vsx=yes
23459 elif test x$gcc_cv_as != x; then
23460 echo "$conftest_s" > conftest.s
23461 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23463 (eval $ac_try) 2>&5
23465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23466 test $ac_status = 0; }; }
23468 gcc_cv_as_powerpc_vsx=yes
23470 echo "configure: failed program was" >&5
23473 rm -f conftest.o conftest.s
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23477 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23478 if test $gcc_cv_as_powerpc_vsx = yes; then
23480 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23485 *-*-aix*) conftest_s=' .machine "pwr7"
23488 *) conftest_s=' .machine power7
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23494 $as_echo_n "checking assembler for popcntd support... " >&6; }
23495 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23496 $as_echo_n "(cached) " >&6
23498 gcc_cv_as_powerpc_popcntd=no
23499 if test $in_tree_gas = yes; then
23500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23501 then gcc_cv_as_powerpc_popcntd=yes
23503 elif test x$gcc_cv_as != x; then
23504 echo "$conftest_s" > conftest.s
23505 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23507 (eval $ac_try) 2>&5
23509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23510 test $ac_status = 0; }; }
23512 gcc_cv_as_powerpc_popcntd=yes
23514 echo "configure: failed program was" >&5
23517 rm -f conftest.o conftest.s
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23521 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23522 if test $gcc_cv_as_powerpc_popcntd = yes; then
23524 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23529 *-*-aix*) conftest_s=' .csect .text[PR]
23531 *) conftest_s=' .text
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23536 $as_echo_n "checking assembler for lwsync support... " >&6; }
23537 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23538 $as_echo_n "(cached) " >&6
23540 gcc_cv_as_powerpc_lwsync=no
23541 if test $in_tree_gas = yes; then
23542 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23543 then gcc_cv_as_powerpc_lwsync=yes
23545 elif test x$gcc_cv_as != x; then
23546 echo "$conftest_s" > conftest.s
23547 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23549 (eval $ac_try) 2>&5
23551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23552 test $ac_status = 0; }; }
23554 gcc_cv_as_powerpc_lwsync=yes
23556 echo "configure: failed program was" >&5
23559 rm -f conftest.o conftest.s
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23563 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23564 if test $gcc_cv_as_powerpc_lwsync = yes; then
23566 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23571 *-*-aix*) conftest_s=' .machine "476"
23574 *) conftest_s=' .machine "476"
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23580 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23581 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23582 $as_echo_n "(cached) " >&6
23584 gcc_cv_as_powerpc_dci=no
23585 if test $in_tree_gas = yes; then
23586 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23587 then gcc_cv_as_powerpc_dci=yes
23589 elif test x$gcc_cv_as != x; then
23590 echo "$conftest_s" > conftest.s
23591 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23593 (eval $ac_try) 2>&5
23595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23596 test $ac_status = 0; }; }
23598 gcc_cv_as_powerpc_dci=yes
23600 echo "configure: failed program was" >&5
23603 rm -f conftest.o conftest.s
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23607 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23608 if test $gcc_cv_as_powerpc_dci = yes; then
23610 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23615 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23616 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23617 $as_echo_n "(cached) " >&6
23619 gcc_cv_as_powerpc_gnu_attribute=no
23620 if test $in_tree_gas = yes; then
23621 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23622 then gcc_cv_as_powerpc_gnu_attribute=yes
23624 elif test x$gcc_cv_as != x; then
23625 echo '.gnu_attribute 4,1' > conftest.s
23626 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23628 (eval $ac_try) 2>&5
23630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23631 test $ac_status = 0; }; }
23633 gcc_cv_as_powerpc_gnu_attribute=yes
23635 echo "configure: failed program was" >&5
23638 rm -f conftest.o conftest.s
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23642 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23643 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23645 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23650 $as_echo_n "checking assembler for tls marker support... " >&6; }
23651 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23652 $as_echo_n "(cached) " >&6
23654 gcc_cv_as_powerpc_tls_markers=no
23655 if test $in_tree_gas = yes; then
23656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23657 then gcc_cv_as_powerpc_tls_markers=yes
23659 elif test x$gcc_cv_as != x; then
23660 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23661 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23663 (eval $ac_try) 2>&5
23665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23666 test $ac_status = 0; }; }
23668 gcc_cv_as_powerpc_tls_markers=yes
23670 echo "configure: failed program was" >&5
23673 rm -f conftest.o conftest.s
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23677 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23678 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23680 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23687 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23688 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23689 $as_echo_n "(cached) " >&6
23691 gcc_cv_as_mips_explicit_relocs=no
23692 if test $in_tree_gas = yes; then
23693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23694 then gcc_cv_as_mips_explicit_relocs=yes
23696 elif test x$gcc_cv_as != x; then
23697 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23698 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23700 (eval $ac_try) 2>&5
23702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23703 test $ac_status = 0; }; }
23705 gcc_cv_as_mips_explicit_relocs=yes
23707 echo "configure: failed program was" >&5
23710 rm -f conftest.o conftest.s
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23714 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23715 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23716 if test x$target_cpu_default = x
23717 then target_cpu_default=MASK_EXPLICIT_RELOCS
23718 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23722 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23723 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23724 $as_echo_n "(cached) " >&6
23726 gcc_cv_as_mips_no_shared=no
23727 if test $in_tree_gas = yes; then
23728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23729 then gcc_cv_as_mips_no_shared=yes
23731 elif test x$gcc_cv_as != x; then
23732 echo 'nop' > conftest.s
23733 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23735 (eval $ac_try) 2>&5
23737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23738 test $ac_status = 0; }; }
23740 gcc_cv_as_mips_no_shared=yes
23742 echo "configure: failed program was" >&5
23745 rm -f conftest.o conftest.s
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23749 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23750 if test $gcc_cv_as_mips_no_shared = yes; then
23752 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23757 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23758 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23759 $as_echo_n "(cached) " >&6
23761 gcc_cv_as_mips_gnu_attribute=no
23762 if test $in_tree_gas = yes; then
23763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23764 then gcc_cv_as_mips_gnu_attribute=yes
23766 elif test x$gcc_cv_as != x; then
23767 echo '.gnu_attribute 4,1' > conftest.s
23768 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23770 (eval $ac_try) 2>&5
23772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23773 test $ac_status = 0; }; }
23775 gcc_cv_as_mips_gnu_attribute=yes
23777 echo "configure: failed program was" >&5
23780 rm -f conftest.o conftest.s
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23784 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23785 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23787 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23792 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23793 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23794 $as_echo_n "(cached) " >&6
23796 gcc_cv_as_mips_dtprelword=no
23797 if test $in_tree_gas = yes; then
23798 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23799 then gcc_cv_as_mips_dtprelword=yes
23801 elif test x$gcc_cv_as != x; then
23802 echo '.section .tdata,"awT",@progbits
23806 .dtprelword x+0x8000' > conftest.s
23807 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23814 gcc_cv_as_mips_dtprelword=yes
23816 echo "configure: failed program was" >&5
23819 rm -f conftest.o conftest.s
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23823 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23824 if test $gcc_cv_as_mips_dtprelword = yes; then
23826 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23831 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23832 gcc_cv_as_ld_jalr_reloc=no
23833 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23834 if test $in_tree_ld = yes ; then
23835 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
23836 && test $in_tree_ld_is_elf = yes; then
23837 gcc_cv_as_ld_jalr_reloc=yes
23839 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
23840 echo ' .ent x' > conftest.s
23841 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
23842 echo ' ld $25,%call16(y)($28)' >> conftest.s
23843 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
23844 echo '1: jalr $25' >> conftest.s
23845 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
23846 echo '1: jalr $25' >> conftest.s
23847 echo ' .end x' >> conftest.s
23848 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
23849 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
23850 if $gcc_cv_objdump -d conftest.so | grep -q jalr \
23851 && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
23852 gcc_cv_as_ld_jalr_reloc=yes
23858 if test $gcc_cv_as_ld_jalr_reloc = yes; then
23859 if test x$target_cpu_default = x; then
23860 target_cpu_default=MASK_RELAX_PIC_CALLS
23862 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
23866 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
23869 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
23870 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
23871 $as_echo_n "(cached) " >&6
23873 gcc_cv_ld_mips_personality_relaxation=no
23874 if test $in_tree_ld = yes ; then
23875 if test "$gcc_cv_gld_major_version" -eq 2 \
23876 -a "$gcc_cv_gld_minor_version" -ge 21 \
23877 -o "$gcc_cv_gld_major_version" -gt 2; then
23878 gcc_cv_ld_mips_personality_relaxation=yes
23880 elif test x$gcc_cv_as != x \
23881 -a x$gcc_cv_ld != x \
23882 -a x$gcc_cv_readelf != x ; then
23883 cat > conftest.s <<EOF
23885 .cfi_personality 0x80,indirect_ptr
23892 .section .data,"aw",@progbits
23896 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
23897 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
23898 if $gcc_cv_readelf -d conftest 2>&1 \
23899 | grep TEXTREL > /dev/null 2>&1; then
23901 elif $gcc_cv_readelf --relocs conftest 2>&1 \
23902 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
23905 gcc_cv_ld_mips_personality_relaxation=yes
23909 rm -f conftest.s conftest.o conftest
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
23912 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
23913 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
23915 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
23921 # Mips and HP-UX need the GNU assembler.
23922 # Linux on IA64 might be able to use the Intel assembler.
23925 mips*-*-* | *-*-hpux* )
23926 if test x$gas_flag = xyes \
23927 || test x"$host" != x"$build" \
23928 || test ! -x "$gcc_cv_as" \
23929 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23932 echo "*** This configuration requires the GNU assembler" >&2
23938 # ??? Not all targets support dwarf2 debug_line, even within a version
23939 # of gas. Moreover, we need to emit a valid instruction to trigger any
23940 # info to the output file. So, as supported targets are added to gas 2.11,
23941 # add some instruction here to (also) show we expect this might work.
23942 # ??? Once 2.11 is released, probably need to add first known working
23943 # version to the per-target configury.
23945 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23946 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23947 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23948 | spu-*-* | fido*-*-* | m32c-*-*)
23951 ia64*-*-* | s390*-*-*)
23958 if test x"$insn" != x; then
23960 .file 1 \"conftest.s\"
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23964 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23965 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23966 $as_echo_n "(cached) " >&6
23968 gcc_cv_as_dwarf2_debug_line=no
23969 if test $in_tree_gas = yes; then
23970 if test $in_tree_gas_is_elf = yes \
23971 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23972 then gcc_cv_as_dwarf2_debug_line=yes
23974 elif test x$gcc_cv_as != x; then
23975 echo "$conftest_s" > conftest.s
23976 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23978 (eval $ac_try) 2>&5
23980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23981 test $ac_status = 0; }; }
23983 if test x$gcc_cv_objdump != x \
23984 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23985 | grep debug_line > /dev/null 2>&1; then
23986 gcc_cv_as_dwarf2_debug_line=yes
23989 echo "configure: failed program was" >&5
23992 rm -f conftest.o conftest.s
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23996 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23999 # The .debug_line file table must be in the exact order that
24000 # we specified the files, since these indices are also used
24001 # by DW_AT_decl_file. Approximate this test by testing if
24002 # the assembler bitches if the same index is assigned twice.
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24004 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24005 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24006 $as_echo_n "(cached) " >&6
24008 gcc_cv_as_dwarf2_file_buggy=no
24009 if test x$gcc_cv_as != x; then
24010 echo ' .file 1 "foo.s"
24011 .file 1 "bar.s"' > conftest.s
24012 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24019 gcc_cv_as_dwarf2_file_buggy=yes
24021 echo "configure: failed program was" >&5
24024 rm -f conftest.o conftest.s
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24028 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24031 if test $gcc_cv_as_dwarf2_debug_line = yes \
24032 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24034 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24039 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24040 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24041 $as_echo_n "(cached) " >&6
24043 gcc_cv_as_gdwarf2_flag=no
24044 if test $in_tree_gas = yes; then
24045 if test $in_tree_gas_is_elf = yes \
24046 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24047 then gcc_cv_as_gdwarf2_flag=yes
24049 elif test x$gcc_cv_as != x; then
24050 echo "$insn" > conftest.s
24051 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
24052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24053 (eval $ac_try) 2>&5
24055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24056 test $ac_status = 0; }; }
24058 gcc_cv_as_gdwarf2_flag=yes
24060 echo "configure: failed program was" >&5
24063 rm -f conftest.o conftest.s
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24067 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24068 if test $gcc_cv_as_gdwarf2_flag = yes; then
24070 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24075 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24076 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24079 gcc_cv_as_gstabs_flag=no
24080 if test $in_tree_gas = yes; then
24081 if test $in_tree_gas_is_elf = yes \
24082 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24083 then gcc_cv_as_gstabs_flag=yes
24085 elif test x$gcc_cv_as != x; then
24086 echo "$insn" > conftest.s
24087 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; }
24094 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24095 # and warns about it, but still exits successfully. So check for
24097 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24099 (eval $ac_try) 2>&5
24101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24102 test $ac_status = 0; }; }
24104 else gcc_cv_as_gstabs_flag=yes
24107 echo "configure: failed program was" >&5
24110 rm -f conftest.o conftest.s
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24114 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24115 if test $gcc_cv_as_gstabs_flag = yes; then
24117 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24122 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24123 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24124 $as_echo_n "(cached) " >&6
24126 gcc_cv_as_debug_prefix_map_flag=no
24127 if test $in_tree_gas = yes; then
24128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24129 then gcc_cv_as_debug_prefix_map_flag=yes
24131 elif test x$gcc_cv_as != x; then
24132 echo "$insn" > conftest.s
24133 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135 (eval $ac_try) 2>&5
24137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138 test $ac_status = 0; }; }
24140 gcc_cv_as_debug_prefix_map_flag=yes
24142 echo "configure: failed program was" >&5
24145 rm -f conftest.o conftest.s
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24149 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24150 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24152 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24158 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24159 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24160 $as_echo_n "(cached) " >&6
24162 gcc_cv_as_lcomm_with_alignment=no
24163 if test x$gcc_cv_as != x; then
24164 echo '.lcomm bar,4,16' > conftest.s
24165 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24172 gcc_cv_as_lcomm_with_alignment=yes
24174 echo "configure: failed program was" >&5
24177 rm -f conftest.o conftest.s
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24181 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24182 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24184 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24188 # Check whether --enable-gnu-unique-object was given.
24189 if test "${enable_gnu_unique_object+set}" = set; then :
24190 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24192 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24193 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24197 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24198 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24199 $as_echo_n "(cached) " >&6
24201 gcc_cv_as_gnu_unique_object=no
24202 if test $in_tree_gas = yes; then
24203 if test $in_tree_gas_is_elf = yes \
24204 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24205 then gcc_cv_as_gnu_unique_object=yes
24207 elif test x$gcc_cv_as != x; then
24208 echo '.type foo, @gnu_unique_object' > conftest.s
24209 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24211 (eval $ac_try) 2>&5
24213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24214 test $ac_status = 0; }; }
24216 gcc_cv_as_gnu_unique_object=yes
24218 echo "configure: failed program was" >&5
24221 rm -f conftest.o conftest.s
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24225 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24226 if test $gcc_cv_as_gnu_unique_object = yes; then
24227 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24228 if test x$host = x$build -a x$host = x$target &&
24229 glibcver=`ldd --version 2>/dev/null`; then
24230 glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
24231 glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
24232 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24233 if test "$glibcnum" -ge 2011 ; then
24234 enable_gnu_unique_object=yes
24240 if test x$enable_gnu_unique_object = xyes; then
24242 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24247 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24248 if test "${gcc_cv_as_line_zero+set}" = set; then :
24249 $as_echo_n "(cached) " >&6
24251 gcc_cv_as_line_zero=no
24252 if test $in_tree_gas = yes; then
24253 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24254 then gcc_cv_as_line_zero=yes
24256 elif test "x$gcc_cv_as" != x; then
24257 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24258 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24260 (eval $ac_try) 2>&5
24262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24263 test $ac_status = 0; }; } &&
24264 test "x`cat conftest.out`" = x
24266 gcc_cv_as_line_zero=yes
24268 echo "configure: failed program was" >&5
24270 echo "configure: error output was" >&5
24271 cat conftest.out >&5
24273 rm -f conftest.o conftest.s conftest.out
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24277 $as_echo "$gcc_cv_as_line_zero" >&6; }
24278 if test "x$gcc_cv_as_line_zero" = xyes; then
24280 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24285 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24286 gcc_cv_ld_eh_frame_hdr=no
24287 if test $in_tree_ld = yes ; then
24288 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 \
24289 && test $in_tree_ld_is_elf = yes; then
24290 gcc_cv_ld_eh_frame_hdr=yes
24292 elif test x$gcc_cv_ld != x; then
24293 # Check if linker supports --eh-frame-hdr option
24294 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24295 gcc_cv_ld_eh_frame_hdr=yes
24299 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24301 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24305 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24308 $as_echo_n "checking linker position independent executable support... " >&6; }
24310 if test $in_tree_ld = yes ; then
24311 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 \
24312 && test $in_tree_ld_is_elf = yes; then
24315 elif test x$gcc_cv_ld != x; then
24316 # Check if linker supports -pie option
24317 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24321 if test x"$gcc_cv_ld_pie" = xyes; then
24323 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24327 $as_echo "$gcc_cv_ld_pie" >&6; }
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24330 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24331 gcc_cv_ld_eh_gc_sections=no
24332 if test $in_tree_ld = yes ; then
24333 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 \
24334 && test $in_tree_ld_is_elf = yes; then
24335 gcc_cv_ld_eh_gc_sections=yes
24337 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24338 cat > conftest.s <<EOF
24341 .type _start, @function
24344 .size _start, .-_start
24345 .section .text.foo,"ax",@progbits
24346 .type foo, @function
24350 .section .gcc_except_table.foo,"a",@progbits
24353 .section .eh_frame,"a",@progbits
24356 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24357 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24358 | grep "gc-sections option ignored" > /dev/null; then
24359 gcc_cv_ld_eh_gc_sections=no
24360 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24361 gcc_cv_ld_eh_gc_sections=yes
24362 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24363 if test x$gcc_cv_as_comdat_group != xyes; then
24364 gcc_cv_ld_eh_gc_sections=no
24365 cat > conftest.s <<EOF
24368 .type _start, @function
24371 .size _start, .-_start
24372 .section .gnu.linkonce.t.foo,"ax",@progbits
24373 .type foo, @function
24377 .section .gcc_except_table.foo,"a",@progbits
24380 .section .eh_frame,"a",@progbits
24383 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24384 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24385 | grep "gc-sections option ignored" > /dev/null; then
24386 gcc_cv_ld_eh_gc_sections=no
24387 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24388 gcc_cv_ld_eh_gc_sections=yes
24394 rm -f conftest.s conftest.o conftest
24398 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24399 gcc_cv_ld_eh_gc_sections=no
24402 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24404 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24408 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24415 $as_echo_n "checking linker --as-needed support... " >&6; }
24416 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24417 $as_echo_n "(cached) " >&6
24419 gcc_cv_ld_as_needed=no
24420 if test $in_tree_ld = yes ; then
24421 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 \
24422 && test $in_tree_ld_is_elf = yes; then
24423 gcc_cv_ld_as_needed=yes
24425 elif test x$gcc_cv_ld != x; then
24426 # Check if linker supports --as-needed and --no-as-needed options
24427 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24428 gcc_cv_ld_as_needed=yes
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24434 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24435 if test x"$gcc_cv_ld_as_needed" = xyes; then
24437 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24441 case "$target:$tm_file" in
24442 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24444 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24445 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24446 $as_echo_n "(cached) " >&6
24448 gcc_cv_ld_no_dot_syms=no
24449 if test $in_tree_ld = yes ; then
24450 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
24451 gcc_cv_ld_no_dot_syms=yes
24453 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24454 cat > conftest1.s <<EOF
24458 cat > conftest2.s <<EOF
24459 .section ".opd","aw"
24462 .type foo,@function
24464 .quad .LEfoo,.TOC.@tocbase,0
24470 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24471 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24472 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24473 gcc_cv_ld_no_dot_syms=yes
24475 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24480 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24481 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24483 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24490 $as_echo_n "checking linker --build-id support... " >&6; }
24491 if test "${gcc_cv_ld_buildid+set}" = set; then :
24492 $as_echo_n "(cached) " >&6
24494 gcc_cv_ld_buildid=no
24495 if test $in_tree_ld = yes ; then
24496 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24497 "$gcc_cv_gld_minor_version" -ge 18 -o \
24498 "$gcc_cv_gld_major_version" -gt 2 \
24499 && test $in_tree_ld_is_elf = yes; then
24500 gcc_cv_ld_buildid=yes
24502 elif test x$gcc_cv_ld != x; then
24503 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24504 gcc_cv_ld_buildid=yes
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24509 $as_echo "$gcc_cv_ld_buildid" >&6; }
24510 if test x"$gcc_cv_ld_buildid" = xyes; then
24512 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24516 # Check whether --enable-linker-build-id was given.
24517 if test "${enable_linker_build_id+set}" = set; then :
24518 enableval=$enable_linker_build_id;
24520 enable_linker_build_id=no
24524 if test x"$enable_linker_build_id" = xyes; then
24525 if test x"$gcc_cv_ld_buildid" = xyes; then
24527 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24531 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24536 $as_echo_n "checking linker --sysroot support... " >&6; }
24537 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24538 $as_echo_n "(cached) " >&6
24540 gcc_cv_ld_sysroot=no
24541 if test $in_tree_ld = yes ; then
24542 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
24543 gcc_cv_ld_sysroot=yes
24545 elif test x$gcc_cv_ld != x; then
24546 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24547 gcc_cv_ld_sysroot=yes
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24552 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24553 if test x"$gcc_cv_ld_sysroot" = xyes; then
24555 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24559 if test x$with_sysroot = x && test x$host = x$target \
24560 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24561 && test "$prefix" != "NONE"; then
24563 cat >>confdefs.h <<_ACEOF
24564 #define PREFIX_INCLUDE_DIR "$prefix/include"
24569 # Test for stack protector support in target C library.
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24571 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24572 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24573 $as_echo_n "(cached) " >&6
24575 gcc_cv_libc_provides_ssp=no
24577 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24578 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24579 if test "x$with_sysroot" = x; then
24580 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24581 elif test "x$with_build_sysroot" != "x"; then
24582 glibc_header_dir="${with_build_sysroot}/usr/include"
24583 elif test "x$with_sysroot" = xyes; then
24584 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24586 glibc_header_dir="${with_sysroot}/usr/include"
24589 glibc_header_dir=/usr/include
24591 # glibc 2.4 and later provides __stack_chk_fail and
24592 # either __stack_chk_guard, or TLS access to stack guard canary.
24593 if test -f $glibc_header_dir/features.h \
24594 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24595 $glibc_header_dir/features.h > /dev/null; then
24596 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24597 $glibc_header_dir/features.h > /dev/null; then
24598 gcc_cv_libc_provides_ssp=yes
24599 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24600 $glibc_header_dir/features.h > /dev/null \
24601 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24602 $glibc_header_dir/features.h > /dev/null; then
24603 gcc_cv_libc_provides_ssp=yes
24604 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24605 $glibc_header_dir/features.h > /dev/null && \
24606 test -f $glibc_header_dir/bits/uClibc_config.h && \
24607 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24608 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24609 gcc_cv_libc_provides_ssp=yes
24614 # Avoid complicated tests (see
24615 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24616 # simply assert that glibc does provide this, which is true for all
24617 # realistically usable GNU/Hurd configurations.
24618 gcc_cv_libc_provides_ssp=yes;;
24619 *-*-darwin* | *-*-freebsd*)
24620 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24621 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24622 gcc_cv_libc_provides_ssp=yes
24624 echo "no __stack_chk_fail on this target"
24628 *) gcc_cv_libc_provides_ssp=no ;;
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24632 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24634 if test x$gcc_cv_libc_provides_ssp = xyes; then
24636 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24640 # Check if TFmode long double should be used by default or not.
24641 # Some glibc targets used DFmode long double, but with glibc 2.4
24642 # and later they can use TFmode.
24644 powerpc*-*-linux* | \
24645 powerpc*-*-gnu* | \
24646 sparc*-*-linux* | \
24650 # Check whether --with-long-double-128 was given.
24651 if test "${with_long_double_128+set}" = set; then :
24652 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24654 gcc_cv_target_ldbl128=no
24655 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24656 if test "x$with_sysroot" = x; then
24657 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24658 elif test "x$with_build_sysroot" != "x"; then
24659 glibc_header_dir="${with_build_sysroot}/usr/include"
24660 elif test "x$with_sysroot" = xyes; then
24661 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24663 glibc_header_dir="${with_sysroot}/usr/include"
24666 glibc_header_dir=/usr/include
24668 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24669 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24670 && gcc_cv_target_ldbl128=yes
24676 if test x$gcc_cv_target_ldbl128 = xyes; then
24678 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24682 # Find out what GC implementation we want, or may, use.
24684 # Check whether --with-gc was given.
24685 if test "${with_gc+set}" = set; then :
24686 withval=$with_gc; case "$withval" in
24693 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24697 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24705 echo "Using $GGC for garbage collection."
24707 # Libraries to use on the host. This will normally be set by the top
24708 # level Makefile. Here we simply capture the value for our Makefile.
24709 if test -z "${HOST_LIBS+set}"; then
24714 # Use the system's zlib library.
24716 zlibinc="-I\$(srcdir)/../zlib"
24718 # Check whether --with-system-zlib was given.
24719 if test "${with_system_zlib+set}" = set; then :
24720 withval=$with_system_zlib; zlibdir=
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24730 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24731 # Check whether --enable-maintainer-mode was given.
24732 if test "${enable_maintainer_mode+set}" = set; then :
24733 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24740 $as_echo "$maintainer_mode" >&6; }
24742 if test "$maintainer_mode" = "yes"; then
24752 # Make empty files to contain the specs and options for each language.
24753 # Then add #include lines to for a compiler that has specs and/or options.
24759 # These (without "all_") are set in each config-lang.in.
24760 # `language' must be a single word so is spelled singularly.
24763 all_outputs='Makefile gccbug'
24764 # List of language makefile fragments.
24765 all_lang_makefrags=
24766 # List of language subdirectory makefiles. Deprecated.
24767 all_lang_makefiles=
24768 # Additional files for gengtype
24769 all_gtfiles="$target_gtfiles"
24771 # These are the languages that are set in --enable-languages,
24772 # and are available in the GCC tree.
24773 all_selected_languages=
24775 # Add the language fragments.
24776 # Languages are added via two mechanisms. Some information must be
24777 # recorded in makefile variables, these are defined in config-lang.in.
24778 # We accumulate them and plug them into the main Makefile.
24779 # The other mechanism is a set of hooks for each of the main targets
24780 # like `clean', `install', etc.
24782 language_hooks="Make-hooks"
24784 for lang in ${srcdir}/*/config-lang.in
24786 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24788 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24789 if test "x$lang_alias" = x
24791 echo "$lang doesn't set \$language." 1>&2
24794 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24795 subdirs="$subdirs $subdir"
24797 # $gcc_subdir is where the gcc integration files are to be found
24798 # for a language, both for internal compiler purposes (compiler
24799 # sources implementing front-end to GCC tree converters), and for
24800 # build infrastructure purposes (Make-lang.in, etc.)
24802 # This will be <subdir> (relative to $srcdir) if a line like
24803 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24804 # is found in <langdir>/config-lang.in, and will remain <langdir>
24807 # Except for the language alias (fetched above), the regular
24808 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24809 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24810 # only this and the language alias.
24812 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24813 if [ "$gcc_subdir" = "" ]; then
24814 gcc_subdir="$subdir"
24817 case ",$enable_languages," in
24819 all_selected_languages="$all_selected_languages $lang_alias"
24820 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24821 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24832 . ${srcdir}/$gcc_subdir/config-lang.in
24833 if test "x$language" = x
24835 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24840 case ",$enable_languages," in
24841 *,$lang_alias,*) ;;
24843 for i in $subdir_requires; do
24844 test -f "${srcdir}/$i/config-lang.in" && continue
24852 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24853 if test -f $srcdir/$gcc_subdir/lang.opt; then
24854 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24856 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24857 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24859 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24860 then all_lang_makefiles="$gcc_subdir/Makefile"
24862 all_languages="$all_languages $language"
24863 all_compilers="$all_compilers $compilers"
24864 all_outputs="$all_outputs $outputs"
24865 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24866 case ",$enable_languages," in
24869 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
24878 # Pick up gtfiles for c
24880 . ${srcdir}/c-config-lang.in
24881 all_gtfiles="$all_gtfiles [c] $gtfiles"
24884 for language in $all_selected_languages
24886 check_languages="$check_languages check-$language"
24889 # We link each language in with a set of hooks, reached indirectly via
24890 # lang.${target}. Only do so for selected languages.
24894 target_list="all.cross start.encap rest.encap tags \
24895 install-common install-man install-info install-pdf dvi pdf \
24896 html uninstall info man srcextra srcman srcinfo \
24897 mostlyclean clean distclean maintainer-clean install-plugin"
24899 for t in $target_list
24902 for lang in $all_selected_languages
24906 echo "lang.$t: $x" >> Make-hooks
24915 echo "dir ." > .gdbinit
24916 echo "dir ${srcdir}" >> .gdbinit
24917 if test x$gdb_needs_out_file_path = xyes
24919 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24921 if test "x$subdirs" != x; then
24924 echo "dir ${srcdir}/$s" >> .gdbinit
24927 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24929 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24933 # Find a directory in which to install a shared libgcc.
24935 # Check whether --enable-version-specific-runtime-libs was given.
24936 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24937 enableval=$enable_version_specific_runtime_libs;
24942 # Check whether --with-slibdir was given.
24943 if test "${with_slibdir+set}" = set; then :
24944 withval=$with_slibdir; slibdir="$with_slibdir"
24946 if test "${enable_version_specific_runtime_libs+set}" = set; then
24947 slibdir='$(libsubdir)'
24948 elif test "$host" != "$target"; then
24949 slibdir='$(build_tooldir)/lib'
24951 slibdir='$(libdir)'
24957 # Substitute configuration variables
25020 if test x${build} = x${host} ; then
25021 if test x${host} = x${target} ; then
25022 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25024 echo "Links are now set up to build a cross-compiler" 1>&2
25025 echo " from ${host} to ${target}." 1>&2
25028 if test x${host} = x${target} ; then
25029 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25030 echo " for ${target}." 1>&2
25032 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25033 echo " from ${host} to ${target}." 1>&2
25040 case "${GMPLIBS}" in
25042 $as_echo "#define HAVE_mpc 1" >>confdefs.h
25051 if test "x${CLOOGLIBS}" != "x" ; then
25053 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25059 if test "x${LIBELFLIBS}" != "x" ; then
25061 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25065 # Check for plugin support
25066 # Check whether --enable-plugin was given.
25067 if test "${enable_plugin+set}" = set; then :
25068 enableval=$enable_plugin; enable_plugin=$enableval
25070 enable_plugin=yes; default_plugin=yes
25075 if test x"$enable_plugin" = x"yes"; then
25076 # Check that the host supports -rdynamic and -ldl
25079 saved_LDFLAGS="$LDFLAGS"
25084 LDFLAGS="$LDFLAGS -rdynamic"
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25086 $as_echo_n "checking for -rdynamic... " >&6; }
25087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25088 /* end confdefs.h. */
25098 if ac_fn_c_try_link "$LINENO"; then :
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25100 $as_echo "yes" >&6; }; have_rdynamic=yes
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25103 $as_echo "no" >&6; }
25105 rm -f core conftest.err conftest.$ac_objext \
25106 conftest$ac_exeext conftest.$ac_ext
25107 if test x"$have_rdynamic" = x"yes" ; then
25108 pluginlibs="-rdynamic"
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25113 $as_echo_n "checking for library containing dlopen... " >&6; }
25114 if test "${ac_cv_search_dlopen+set}" = set; then :
25115 $as_echo_n "(cached) " >&6
25117 ac_func_search_save_LIBS=$LIBS
25118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25119 /* end confdefs.h. */
25121 /* Override any GCC internal prototype to avoid an error.
25122 Use char because int might match the return type of a GCC
25123 builtin and then its argument prototype would still apply. */
25136 for ac_lib in '' dl; do
25137 if test -z "$ac_lib"; then
25138 ac_res="none required"
25141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25143 if ac_fn_c_try_link "$LINENO"; then :
25144 ac_cv_search_dlopen=$ac_res
25146 rm -f core conftest.err conftest.$ac_objext \
25148 if test "${ac_cv_search_dlopen+set}" = set; then :
25152 if test "${ac_cv_search_dlopen+set}" = set; then :
25155 ac_cv_search_dlopen=no
25157 rm conftest.$ac_ext
25158 LIBS=$ac_func_search_save_LIBS
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25161 $as_echo "$ac_cv_search_dlopen" >&6; }
25162 ac_res=$ac_cv_search_dlopen
25163 if test "$ac_res" != no; then :
25164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25168 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25169 pluginlibs="$pluginlibs -ldl"
25172 # Check that we can build shared objects with -fPIC -shared
25173 LDFLAGS="$LDFLAGS -fPIC -shared"
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25175 $as_echo_n "checking for -fPIC -shared... " >&6; }
25176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25177 /* end confdefs.h. */
25187 if ac_fn_c_try_link "$LINENO"; then :
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25189 $as_echo "yes" >&6; }; have_pic_shared=yes
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25192 $as_echo "no" >&6; }; have_pic_shared=no
25194 rm -f core conftest.err conftest.$ac_objext \
25195 conftest$ac_exeext conftest.$ac_ext
25196 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25201 # If plugin support had been requested but not available, fail.
25202 if test x"$enable_plugin" = x"no" ; then
25203 if test x"$default_plugin" != x"yes"; then
25205 Building GCC with plugin support requires a host that supports
25206 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25210 LDFLAGS="$saved_LDFLAGS"
25216 if test x"$enable_plugin" = x"yes"; then
25218 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25222 # Configure the subdirectories
25223 # AC_CONFIG_SUBDIRS($subdirs)
25225 # Create the Makefile
25226 # and configure language subdirectories
25227 ac_config_files="$ac_config_files $all_outputs"
25230 ac_config_commands="$ac_config_commands default"
25232 cat >confcache <<\_ACEOF
25233 # This file is a shell script that caches the results of configure
25234 # tests run on this system so they can be shared between configure
25235 # scripts and configure runs, see configure's option --config-cache.
25236 # It is not useful on other systems. If it contains results you don't
25237 # want to keep, you may remove or edit it.
25239 # config.status only pays attention to the cache file if you give it
25240 # the --recheck option to rerun configure.
25242 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25243 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25244 # following values.
25248 # The following way of writing the cache mishandles newlines in values,
25249 # but we know of no workaround that is simple, portable, and efficient.
25250 # So, we kill variables containing newlines.
25251 # Ultrix sh set writes to stderr and can't be redirected directly,
25252 # and sets the high bit in the cache file unless we assign to the vars.
25254 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25255 eval ac_val=\$$ac_var
25259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25263 _ | IFS | as_nl) ;; #(
25264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25265 *) { eval $ac_var=; unset $ac_var;} ;;
25271 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25272 *${as_nl}ac_space=\ *)
25273 # `set' does not quote correctly, so add quotes: double-quote
25274 # substitution turns \\\\ into \\, and sed turns \\ into \.
25277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25280 # `set' quotes correctly as required by POSIX, so do not add quotes.
25281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25294 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25295 if test -w "$cache_file"; then
25296 test "x$cache_file" != "x/dev/null" &&
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25298 $as_echo "$as_me: updating cache $cache_file" >&6;}
25299 cat confcache >$cache_file
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25302 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25307 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25308 # Let make expand exec_prefix.
25309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25311 DEFS=-DHAVE_CONFIG_H
25315 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25316 # 1. Remove the extension, and $U if already installed.
25317 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25318 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25319 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25320 # will be set to the directory where LIBOBJS objects are built.
25321 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25322 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25324 LIBOBJS=$ac_libobjs
25326 LTLIBOBJS=$ac_ltlibobjs
25331 : ${CONFIG_STATUS=./config.status}
25333 ac_clean_files_save=$ac_clean_files
25334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25336 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25338 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25340 # Generated by $as_me.
25341 # Run this file to recreate the current configuration.
25342 # Compiler output produced by configure, useful for debugging
25343 # configure, is in config.log if it exists.
25346 ac_cs_recheck=false
25349 SHELL=\${CONFIG_SHELL-$SHELL}
25352 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25353 ## -------------------- ##
25354 ## M4sh Initialization. ##
25355 ## -------------------- ##
25357 # Be more Bourne compatible
25358 DUALCASE=1; export DUALCASE # for MKS sh
25359 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25362 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25363 # is contrary to our usage. Disable this feature.
25364 alias -g '${1+"$@"}'='"$@"'
25365 setopt NO_GLOB_SUBST
25367 case `(set -o) 2>/dev/null` in #(
25379 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25380 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25381 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25382 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25383 # Prefer a ksh shell builtin over an external printf program on Solaris,
25384 # but without wasting forks for bash or zsh.
25385 if test -z "$BASH_VERSION$ZSH_VERSION" \
25386 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25387 as_echo='print -r --'
25388 as_echo_n='print -rn --'
25389 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25390 as_echo='printf %s\n'
25391 as_echo_n='printf %s'
25393 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25394 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25395 as_echo_n='/usr/ucb/echo -n'
25397 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25398 as_echo_n_body='eval
25402 expr "X$arg" : "X\\(.*\\)$as_nl";
25403 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25405 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25407 export as_echo_n_body
25408 as_echo_n='sh -c $as_echo_n_body as_echo'
25410 export as_echo_body
25411 as_echo='sh -c $as_echo_body as_echo'
25414 # The user is always right.
25415 if test "${PATH_SEPARATOR+set}" != set; then
25417 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25418 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25425 # We need space, tab and new line, in precisely that order. Quoting is
25426 # there to prevent editors from complaining about space-tab.
25427 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25428 # splitting by setting IFS to empty value.)
25431 # Find who we are. Look in the path if we contain no directory separator.
25433 *[\\/]* ) as_myself=$0 ;;
25434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25435 for as_dir in $PATH
25438 test -z "$as_dir" && as_dir=.
25439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25445 # We did not find ourselves, most probably we were run as `sh COMMAND'
25446 # in which case we are not to be found in the path.
25447 if test "x$as_myself" = x; then
25450 if test ! -f "$as_myself"; then
25451 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25455 # Unset variables that we do not need and which cause bugs (e.g. in
25456 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25457 # suppresses any "Segmentation fault" message there. '((' could
25458 # trigger a bug in pdksh 5.2.14.
25459 for as_var in BASH_ENV ENV MAIL MAILPATH
25460 do eval test x\${$as_var+set} = xset \
25461 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25474 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25477 # as_fn_error ERROR [LINENO LOG_FD]
25478 # ---------------------------------
25479 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25480 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25481 # script with status $?, using 1 if that was 0.
25484 as_status=$?; test $as_status -eq 0 && as_status=1
25486 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25487 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25489 $as_echo "$as_me: error: $1" >&2
25490 as_fn_exit $as_status
25494 # as_fn_set_status STATUS
25495 # -----------------------
25496 # Set $? to STATUS, without forking.
25497 as_fn_set_status ()
25500 } # as_fn_set_status
25502 # as_fn_exit STATUS
25503 # -----------------
25504 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25508 as_fn_set_status $1
25514 # Portably unset VAR.
25517 { eval $1=; unset $1;}
25519 as_unset=as_fn_unset
25520 # as_fn_append VAR VALUE
25521 # ----------------------
25522 # Append the text in VALUE to the end of the definition contained in VAR. Take
25523 # advantage of any shell optimizations that allow amortized linear growth over
25524 # repeated appends, instead of the typical quadratic growth present in naive
25526 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25527 eval 'as_fn_append ()
25538 # as_fn_arith ARG...
25539 # ------------------
25540 # Perform arithmetic evaluation on the ARGs, and store the result in the
25541 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25542 # must be portable across $(()) and expr.
25543 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25544 eval 'as_fn_arith ()
25551 as_val=`expr "$@" || test $? -eq 1`
25556 if expr a : '\(a\)' >/dev/null 2>&1 &&
25557 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25563 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25564 as_basename=basename
25569 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25575 as_me=`$as_basename -- "$0" ||
25576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25577 X"$0" : 'X\(//\)$' \| \
25578 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25580 sed '/^.*\/\([^/][^/]*\)\/*$/{
25594 # Avoid depending upon Character Ranges.
25595 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25596 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25597 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25598 as_cr_digits='0123456789'
25599 as_cr_alnum=$as_cr_Letters$as_cr_digits
25601 ECHO_C= ECHO_N= ECHO_T=
25602 case `echo -n x` in #(((((
25604 case `echo 'xy\c'` in
25605 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25607 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25614 rm -f conf$$ conf$$.exe conf$$.file
25615 if test -d conf$$.dir; then
25616 rm -f conf$$.dir/conf$$.file
25619 mkdir conf$$.dir 2>/dev/null
25621 if (echo >conf$$.file) 2>/dev/null; then
25622 if ln -s conf$$.file conf$$ 2>/dev/null; then
25624 # ... but there are two gotchas:
25625 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25626 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25627 # In both cases, we have to default to `cp -p'.
25628 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25630 elif ln conf$$.file conf$$ 2>/dev/null; then
25638 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25639 rmdir conf$$.dir 2>/dev/null
25644 # Create "$as_dir" as a directory, including parents if necessary.
25649 -*) as_dir=./$as_dir;;
25651 test -d "$as_dir" || eval $as_mkdir_p || {
25655 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25656 *) as_qdir=$as_dir;;
25658 as_dirs="'$as_qdir' $as_dirs"
25659 as_dir=`$as_dirname -- "$as_dir" ||
25660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25661 X"$as_dir" : 'X\(//\)[^/]' \| \
25662 X"$as_dir" : 'X\(//\)$' \| \
25663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25664 $as_echo X"$as_dir" |
25665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25669 /^X\(\/\/\)[^/].*/{
25682 test -d "$as_dir" && break
25684 test -z "$as_dirs" || eval "mkdir $as_dirs"
25685 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25689 if mkdir -p . 2>/dev/null; then
25690 as_mkdir_p='mkdir -p "$as_dir"'
25692 test -d ./-p && rmdir ./-p
25696 if test -x / >/dev/null 2>&1; then
25697 as_test_x='test -x'
25699 if ls -dL / >/dev/null 2>&1; then
25706 if test -d "$1"; then
25712 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25713 ???[sx]*):;;*)false;;esac;fi
25717 as_executable_p=$as_test_x
25719 # Sed expression to map a string onto a valid CPP name.
25720 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25722 # Sed expression to map a string onto a valid variable name.
25723 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25727 ## ----------------------------------- ##
25728 ## Main body of $CONFIG_STATUS script. ##
25729 ## ----------------------------------- ##
25731 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25734 # Save the log message, to keep $0 and so on meaningful, and to
25735 # report actual input values of CONFIG_FILES etc. instead of their
25736 # values after options handling.
25738 This file was extended by $as_me, which was
25739 generated by GNU Autoconf 2.64. Invocation command line was
25741 CONFIG_FILES = $CONFIG_FILES
25742 CONFIG_HEADERS = $CONFIG_HEADERS
25743 CONFIG_LINKS = $CONFIG_LINKS
25744 CONFIG_COMMANDS = $CONFIG_COMMANDS
25747 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25752 case $ac_config_files in *"
25753 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25756 case $ac_config_headers in *"
25757 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25762 # Files that config.status was made for.
25763 config_files="$ac_config_files"
25764 config_headers="$ac_config_headers"
25765 config_commands="$ac_config_commands"
25769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25771 \`$as_me' instantiates files and other configuration actions
25772 from templates according to the current configuration. Unless the files
25773 and actions are specified as TAGs, all are instantiated by default.
25775 Usage: $0 [OPTION]... [TAG]...
25777 -h, --help print this help, then exit
25778 -V, --version print version number and configuration settings, then exit
25779 -q, --quiet, --silent
25780 do not print progress messages
25781 -d, --debug don't remove temporary files
25782 --recheck update $as_me by reconfiguring in the same conditions
25783 --file=FILE[:TEMPLATE]
25784 instantiate the configuration file FILE
25785 --header=FILE[:TEMPLATE]
25786 instantiate the configuration header FILE
25788 Configuration files:
25791 Configuration headers:
25794 Configuration commands:
25797 Report bugs to the package provider."
25800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25803 configured by $0, generated by GNU Autoconf 2.64,
25804 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25806 Copyright (C) 2009 Free Software Foundation, Inc.
25807 This config.status script is free software; the Free Software Foundation
25808 gives unlimited permission to copy, distribute and modify it."
25813 test -n "\$AWK" || AWK=awk
25816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25817 # The default lists apply if the user does not specify any file.
25823 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25824 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25835 # Handling of the options.
25836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25838 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25839 $as_echo "$ac_cs_version"; exit ;;
25840 --debug | --debu | --deb | --de | --d | -d )
25842 --file | --fil | --fi | --f )
25845 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25847 as_fn_append CONFIG_FILES " '$ac_optarg'"
25848 ac_need_defaults=false;;
25849 --header | --heade | --head | --hea )
25852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25854 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25855 ac_need_defaults=false;;
25857 # Conflict between --help and --header
25858 as_fn_error "ambiguous option: \`$1'
25859 Try \`$0 --help' for more information.";;
25860 --help | --hel | -h )
25861 $as_echo "$ac_cs_usage"; exit ;;
25862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25863 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25866 # This is an error.
25867 -*) as_fn_error "unrecognized option: \`$1'
25868 Try \`$0 --help' for more information." ;;
25870 *) as_fn_append ac_config_targets " $1"
25871 ac_need_defaults=false ;;
25877 ac_configure_extra_args=
25879 if $ac_cs_silent; then
25881 ac_configure_extra_args="$ac_configure_extra_args --silent"
25885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25886 if \$ac_cs_recheck; then
25887 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25889 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25890 CONFIG_SHELL='$SHELL'
25891 export CONFIG_SHELL
25896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25901 ## Running $as_me. ##
25907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25917 # Handling of arguments.
25918 for ac_config_target in $ac_config_targets
25920 case $ac_config_target in
25921 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25922 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25923 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25924 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25925 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25926 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25928 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25933 # If the user did not use the arguments to specify the items to instantiate,
25934 # then the envvar interface is used. Set only those that are not.
25935 # We use the long form for the default assignment because of an extremely
25936 # bizarre bug on SunOS 4.1.3.
25937 if $ac_need_defaults; then
25938 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25939 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25943 # Have a temporary directory for convenience. Make it in the build tree
25944 # simply because there is no reason against having it here, and in addition,
25945 # creating and moving files from /tmp can sometimes cause problems.
25946 # Hook for its removal unless debugging.
25947 # Note that there is a small window in which the directory will not be cleaned:
25948 # after its creation but before its name has been assigned to `$tmp'.
25952 trap 'exit_status=$?
25953 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25955 trap 'as_fn_exit 1' 1 2 13 15
25957 # Create a (secure) tmp directory for tmp files.
25960 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25961 test -n "$tmp" && test -d "$tmp"
25964 tmp=./conf$$-$RANDOM
25965 (umask 077 && mkdir "$tmp")
25966 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25968 # Set up the scripts for CONFIG_FILES section.
25969 # No need to generate them if there are no CONFIG_FILES.
25970 # This happens for instance with `./config.status config.h'.
25971 if test -n "$CONFIG_FILES"; then
25973 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25974 ac_cs_awk_getline=:
25975 ac_cs_awk_pipe_init=
25976 ac_cs_awk_read_file='
25977 while ((getline aline < (F[key])) > 0)
25980 ac_cs_awk_pipe_fini=
25982 ac_cs_awk_getline=false
25983 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25984 ac_cs_awk_read_file='
25986 print "cat " F[key] " &&"
25987 '$ac_cs_awk_pipe_init
25988 # The final `:' finishes the AND list.
25989 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25991 ac_cr=`echo X | tr X '\015'`
25992 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25993 # But we know of no other shell where ac_cr would be empty at this
25994 # point, so we can use a bashism as a fallback.
25995 if test "x$ac_cr" = x; then
25996 eval ac_cr=\$\'\\r\'
25998 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25999 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26002 ac_cs_awk_cr=$ac_cr
26005 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26008 # Create commands to substitute file output variables.
26010 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26011 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26012 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26015 } >conf$$files.sh &&
26016 . ./conf$$files.sh ||
26017 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26018 rm -f conf$$files.sh
26021 echo "cat >conf$$subs.awk <<_ACEOF" &&
26022 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26024 } >conf$$subs.sh ||
26025 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26026 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26028 for ac_last_try in false false false false false :; do
26029 . ./conf$$subs.sh ||
26030 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26032 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26033 if test $ac_delim_n = $ac_delim_num; then
26035 elif $ac_last_try; then
26036 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26041 rm -f conf$$subs.sh
26043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26044 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26048 s/^/S["/; s/!.*/"]=/
26058 s/\(.\{148\}\).*/\1/
26060 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26065 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26072 s/\(.\{148\}\).*/\1/
26074 s/["\\]/\\&/g; s/^/"/; s/$/"/
26078 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26083 ' <conf$$subs.awk | sed '
26088 ' >>$CONFIG_STATUS || ac_write_fail=1
26089 rm -f conf$$subs.awk
26090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26092 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26093 for (key in S) S_is_set[key] = 1
26095 \$ac_cs_awk_pipe_init
26099 nfields = split(line, field, "@")
26101 len = length(field[1])
26102 for (i = 2; i < nfields; i++) {
26104 keylen = length(key)
26105 if (S_is_set[key]) {
26107 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26108 len += length(value) + length(field[++i])
26113 if (nfields == 3 && !substed) {
26115 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26116 \$ac_cs_awk_read_file
26122 \$ac_cs_awk_pipe_fini
26125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26126 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26127 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26130 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26131 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26134 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26135 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26136 # trailing colons and then remove the whole line if VPATH becomes empty
26137 # (actually we leave an empty line to preserve line numbers).
26138 if test "x$srcdir" = x.; then
26139 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26140 s/:*\$(srcdir):*/:/
26141 s/:*\${srcdir}:*/:/
26143 s/^\([^=]*=[ ]*\):*/\1/
26149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26150 fi # test -n "$CONFIG_FILES"
26152 # Set up the scripts for CONFIG_HEADERS section.
26153 # No need to generate them if there are no CONFIG_HEADERS.
26154 # This happens for instance with `./config.status Makefile'.
26155 if test -n "$CONFIG_HEADERS"; then
26156 cat >"$tmp/defines.awk" <<\_ACAWK ||
26160 # Transform confdefs.h into an awk script `defines.awk', embedded as
26161 # here-document in config.status, that substitutes the proper values into
26162 # config.h.in to produce config.h.
26164 # Create a delimiter string that does not exist in confdefs.h, to ease
26165 # handling of long lines.
26167 for ac_last_try in false false :; do
26168 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26169 if test -z "$ac_t"; then
26171 elif $ac_last_try; then
26172 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26178 # For the awk script, D is an array of macro values keyed by name,
26179 # likewise P contains macro parameters if any. Preserve backslash
26180 # newline sequences.
26182 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26184 s/.\{148\}/&'"$ac_delim"'/g
26187 s/^[ ]*#[ ]*define[ ][ ]*/ /
26194 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26196 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26201 D["\1"]=" \3\\\\\\n"\\/p
26203 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26208 s/.\{148\}/&'"$ac_delim"'/g
26213 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26216 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26218 ' <confdefs.h | sed '
26219 s/'"$ac_delim"'/"\\\
26220 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26223 for (key in D) D_is_set[key] = 1
26226 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26228 split(line, arg, " ")
26229 if (arg[1] == "#") {
26233 defundef = substr(arg[1], 2)
26236 split(mac1, mac2, "(") #)
26238 prefix = substr(line, 1, index(line, defundef) - 1)
26239 if (D_is_set[macro]) {
26240 # Preserve the white space surrounding the "#".
26241 print prefix "define", macro P[macro] D[macro]
26244 # Replace #undef with comments. This is necessary, for example,
26245 # in the case of _POSIX_SOURCE, which is predefined and required
26246 # on some systems where configure will not decide to define it.
26247 if (defundef == "undef") {
26248 print "/*", prefix defundef, macro, "*/"
26256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26257 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26258 fi # test -n "$CONFIG_HEADERS"
26261 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26266 :[FHLC]) ac_mode=$ac_tag; continue;;
26268 case $ac_mode$ac_tag in
26270 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26271 :[FH]-) ac_tag=-:-;;
26272 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26289 -) ac_f="$tmp/stdin";;
26290 *) # Look for the file first in the build tree, then in the source tree
26291 # (if the path is not absolute). The absolute path cannot be DOS-style,
26292 # because $ac_f cannot contain `:'.
26296 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26298 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26300 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26301 as_fn_append ac_file_inputs " '$ac_f'"
26304 # Let's still pretend it is `configure' which instantiates (i.e., don't
26305 # use $as_me), people would be surprised to read:
26306 # /* config.h. Generated by config.status. */
26307 configure_input='Generated from '`
26308 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26310 if test x"$ac_file" != x-; then
26311 configure_input="$ac_file. $configure_input"
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26313 $as_echo "$as_me: creating $ac_file" >&6;}
26315 # Neutralize special characters interpreted by sed in replacement strings.
26316 case $configure_input in #(
26317 *\&* | *\|* | *\\* )
26318 ac_sed_conf_input=`$as_echo "$configure_input" |
26319 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26320 *) ac_sed_conf_input=$configure_input;;
26324 *:-:* | *:-) cat >"$tmp/stdin" \
26325 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26330 ac_dir=`$as_dirname -- "$ac_file" ||
26331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26332 X"$ac_file" : 'X\(//\)[^/]' \| \
26333 X"$ac_file" : 'X\(//\)$' \| \
26334 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26335 $as_echo X"$ac_file" |
26336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26340 /^X\(\/\/\)[^/].*/{
26353 as_dir="$ac_dir"; as_fn_mkdir_p
26357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26360 # A ".." for each directory in $ac_dir_suffix.
26361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26362 case $ac_top_builddir_sub in
26363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26367 ac_abs_top_builddir=$ac_pwd
26368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26369 # for backward compatibility:
26370 ac_top_builddir=$ac_top_build_prefix
26373 .) # We are building in place.
26375 ac_top_srcdir=$ac_top_builddir_sub
26376 ac_abs_top_srcdir=$ac_pwd ;;
26377 [\\/]* | ?:[\\/]* ) # Absolute name.
26378 ac_srcdir=$srcdir$ac_dir_suffix;
26379 ac_top_srcdir=$srcdir
26380 ac_abs_top_srcdir=$srcdir ;;
26381 *) # Relative name.
26382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26383 ac_top_srcdir=$ac_top_build_prefix$srcdir
26384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26398 # If the template does not know about datarootdir, expand it.
26399 # FIXME: This hack should be removed a few years after 2.60.
26400 ac_datarootdir_hack=; ac_datarootdir_seen=
26411 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26412 *datarootdir*) ac_datarootdir_seen=yes;;
26413 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26415 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26418 ac_datarootdir_hack='
26419 s&@datadir@&$datadir&g
26420 s&@docdir@&$docdir&g
26421 s&@infodir@&$infodir&g
26422 s&@localedir@&$localedir&g
26423 s&@mandir@&$mandir&g
26424 s&\\\${datarootdir}&$datarootdir&g' ;;
26428 # Neutralize VPATH when `$srcdir' = `.'.
26429 # Shell code in configure.ac might set extrasub.
26430 # FIXME: do we really want to maintain this feature?
26431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26432 ac_sed_extra="$ac_vpsub
26435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26438 s|@configure_input@|$ac_sed_conf_input|;t t
26439 s&@top_builddir@&$ac_top_builddir_sub&;t t
26440 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26441 s&@srcdir@&$ac_srcdir&;t t
26442 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26443 s&@top_srcdir@&$ac_top_srcdir&;t t
26444 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26445 s&@builddir@&$ac_builddir&;t t
26446 s&@abs_builddir@&$ac_abs_builddir&;t t
26447 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26448 $ac_datarootdir_hack
26450 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26451 if $ac_cs_awk_getline; then
26452 $AWK -f "$tmp/subs.awk"
26454 $AWK -f "$tmp/subs.awk" | $SHELL
26456 || as_fn_error "could not create $ac_file" "$LINENO" 5
26458 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26459 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26462 which seems to be undefined. Please make sure it is defined." >&5
26463 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26464 which seems to be undefined. Please make sure it is defined." >&2;}
26468 -) cat "$tmp/out" && rm -f "$tmp/out";;
26469 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26471 || as_fn_error "could not create $ac_file" "$LINENO" 5
26477 if test x"$ac_file" != x-; then
26479 $as_echo "/* $configure_input */" \
26480 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26481 } >"$tmp/config.h" \
26482 || as_fn_error "could not create $ac_file" "$LINENO" 5
26483 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26485 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26488 mv "$tmp/config.h" "$ac_file" \
26489 || as_fn_error "could not create $ac_file" "$LINENO" 5
26492 $as_echo "/* $configure_input */" \
26493 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26494 || as_fn_error "could not create -" "$LINENO" 5
26498 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26499 $as_echo "$as_me: executing $ac_file commands" >&6;}
26504 case $ac_file$ac_mode in
26505 "as":F) chmod +x as ;;
26506 "collect-ld":F) chmod +x collect-ld ;;
26507 "nm":F) chmod +x nm ;;
26509 case ${CONFIG_HEADERS} in
26510 *auto-host.h:config.in*)
26513 # Make sure all the subdirs exist.
26514 for d in $subdirs doc build
26516 test -d $d || mkdir $d
26526 ac_clean_files=$ac_clean_files_save
26528 test $ac_write_fail = 0 ||
26529 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26532 # configure is writing to config.log, and then calls config.status.
26533 # config.status does its own redirection, appending to config.log.
26534 # Unfortunately, on DOS this fails, as config.log is still kept open
26535 # by configure, so config.status won't be able to write to it; its
26536 # output is simply discarded. So we exec the FD to /dev/null,
26537 # effectively closing config.log, so it can be properly (re)opened and
26538 # appended to by config.status. When coming back to configure, we
26539 # need to make the FD available again.
26540 if test "$no_create" != yes; then
26542 ac_config_status_args=
26543 test "$silent" = yes &&
26544 ac_config_status_args="$ac_config_status_args --quiet"
26546 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26548 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26549 # would make configure fail if this is the last instruction.
26550 $ac_cs_success || as_fn_exit $?
26552 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26554 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}