2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 # maybe with a smaller string...
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 # Oops. We lost completely, so just stick with echo.
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686 ac_default_prefix=/usr/local
688 ac_config_libobj_dir=.
695 # Identity of this package.
703 ac_unique_file="tree.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
717 # ifdef HAVE_STDLIB_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
740 ac_subst_vars='LTLIBOBJS
787 TM_MULTILIB_EXCEPTIONS_CONFIG
796 build_xm_include_list
798 build_install_headers_dir
800 all_selected_languages
819 ORIGINAL_NM_FOR_TARGET
821 ORIGINAL_LD_FOR_TARGET
823 ORIGINAL_AS_FOR_TARGET
896 CROSS_SYSTEM_HEADER_DIR
897 TARGET_SYSTEM_ROOT_DEFINE
903 ENABLE_BUILD_WITH_CXX
906 valgrind_path_defines
978 program_transform_name
989 ac_subst_files='language_hooks'
991 enable_option_checking
996 enable_generated_files_in_srcdir
1002 enable_werror_always
1005 enable_gather_detailed_mem_stats
1006 enable_build_with_cxx
1010 enable_decimal_float
1025 with_libiconv_prefix
1026 enable_initfini_array
1027 enable_sjlj_exceptions
1028 with_system_libunwind
1031 enable_win32_registry
1036 enable_gnu_unique_object
1037 enable_linker_build_id
1038 with_long_double_128
1041 enable_maintainer_mode
1042 enable_version_specific_runtime_libs
1049 ac_precious_vars='build_alias
1070 # Initialize some variables set by options.
1072 ac_init_version=false
1073 ac_unrecognized_opts=
1074 ac_unrecognized_sep=
1075 # The variables have the same names as the options, with
1076 # dashes changed to underlines.
1077 cache_file=/dev/null
1084 program_transform_name=s,x,x,
1092 # Installation directory options.
1093 # These are left unexpanded so users can "make install exec_prefix=/foo"
1094 # and all the variables that are supposed to be based on exec_prefix
1095 # by default will actually change.
1096 # Use braces instead of parens because sh, perl, etc. also accept them.
1097 # (The list follows the same order as the GNU Coding Standards.)
1098 bindir='${exec_prefix}/bin'
1099 sbindir='${exec_prefix}/sbin'
1100 libexecdir='${exec_prefix}/libexec'
1101 datarootdir='${prefix}/share'
1102 datadir='${datarootdir}'
1103 sysconfdir='${prefix}/etc'
1104 sharedstatedir='${prefix}/com'
1105 localstatedir='${prefix}/var'
1106 includedir='${prefix}/include'
1107 oldincludedir='/usr/include'
1108 docdir='${datarootdir}/doc/${PACKAGE}'
1109 infodir='${datarootdir}/info'
1114 libdir='${exec_prefix}/lib'
1115 localedir='${datarootdir}/locale'
1116 mandir='${datarootdir}/man'
1122 # If the previous option needs an argument, assign it.
1123 if test -n "$ac_prev"; then
1124 eval $ac_prev=\$ac_option
1130 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1134 # Accept the important Cygnus configure options, so we can diagnose typos.
1136 case $ac_dashdash$ac_option in
1140 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1142 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1143 bindir=$ac_optarg ;;
1145 -build | --build | --buil | --bui | --bu)
1146 ac_prev=build_alias ;;
1147 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1148 build_alias=$ac_optarg ;;
1150 -cache-file | --cache-file | --cache-fil | --cache-fi \
1151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1152 ac_prev=cache_file ;;
1153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1155 cache_file=$ac_optarg ;;
1157 --config-cache | -C)
1158 cache_file=config.cache ;;
1160 -datadir | --datadir | --datadi | --datad)
1162 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1163 datadir=$ac_optarg ;;
1165 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1166 | --dataroo | --dataro | --datar)
1167 ac_prev=datarootdir ;;
1168 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1169 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1170 datarootdir=$ac_optarg ;;
1172 -disable-* | --disable-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid feature name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1181 "enable_$ac_useropt"
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1186 eval enable_$ac_useropt=no ;;
1188 -docdir | --docdir | --docdi | --doc | --do)
1190 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1191 docdir=$ac_optarg ;;
1193 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1195 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1196 dvidir=$ac_optarg ;;
1198 -enable-* | --enable-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error "invalid feature name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1207 "enable_$ac_useropt"
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval enable_$ac_useropt=\$ac_optarg ;;
1214 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1215 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1216 | --exec | --exe | --ex)
1217 ac_prev=exec_prefix ;;
1218 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1219 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1220 | --exec=* | --exe=* | --ex=*)
1221 exec_prefix=$ac_optarg ;;
1223 -gas | --gas | --ga | --g)
1224 # Obsolete; use --with-gas.
1227 -help | --help | --hel | --he | -h)
1228 ac_init_help=long ;;
1229 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1230 ac_init_help=recursive ;;
1231 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1232 ac_init_help=short ;;
1234 -host | --host | --hos | --ho)
1235 ac_prev=host_alias ;;
1236 -host=* | --host=* | --hos=* | --ho=*)
1237 host_alias=$ac_optarg ;;
1239 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1241 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1243 htmldir=$ac_optarg ;;
1245 -includedir | --includedir | --includedi | --included | --include \
1246 | --includ | --inclu | --incl | --inc)
1247 ac_prev=includedir ;;
1248 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1249 | --includ=* | --inclu=* | --incl=* | --inc=*)
1250 includedir=$ac_optarg ;;
1252 -infodir | --infodir | --infodi | --infod | --info | --inf)
1254 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1255 infodir=$ac_optarg ;;
1257 -libdir | --libdir | --libdi | --libd)
1259 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1260 libdir=$ac_optarg ;;
1262 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1263 | --libexe | --libex | --libe)
1264 ac_prev=libexecdir ;;
1265 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1266 | --libexe=* | --libex=* | --libe=*)
1267 libexecdir=$ac_optarg ;;
1269 -localedir | --localedir | --localedi | --localed | --locale)
1270 ac_prev=localedir ;;
1271 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1272 localedir=$ac_optarg ;;
1274 -localstatedir | --localstatedir | --localstatedi | --localstated \
1275 | --localstate | --localstat | --localsta | --localst | --locals)
1276 ac_prev=localstatedir ;;
1277 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1278 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1279 localstatedir=$ac_optarg ;;
1281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1284 mandir=$ac_optarg ;;
1286 -nfp | --nfp | --nf)
1287 # Obsolete; use --without-fp.
1290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1291 | --no-cr | --no-c | -n)
1294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1300 | --oldin | --oldi | --old | --ol | --o)
1301 ac_prev=oldincludedir ;;
1302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1305 oldincludedir=$ac_optarg ;;
1307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1310 prefix=$ac_optarg ;;
1312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1313 | --program-pre | --program-pr | --program-p)
1314 ac_prev=program_prefix ;;
1315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1317 program_prefix=$ac_optarg ;;
1319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1320 | --program-suf | --program-su | --program-s)
1321 ac_prev=program_suffix ;;
1322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1324 program_suffix=$ac_optarg ;;
1326 -program-transform-name | --program-transform-name \
1327 | --program-transform-nam | --program-transform-na \
1328 | --program-transform-n | --program-transform- \
1329 | --program-transform | --program-transfor \
1330 | --program-transfo | --program-transf \
1331 | --program-trans | --program-tran \
1332 | --progr-tra | --program-tr | --program-t)
1333 ac_prev=program_transform_name ;;
1334 -program-transform-name=* | --program-transform-name=* \
1335 | --program-transform-nam=* | --program-transform-na=* \
1336 | --program-transform-n=* | --program-transform-=* \
1337 | --program-transform=* | --program-transfor=* \
1338 | --program-transfo=* | --program-transf=* \
1339 | --program-trans=* | --program-tran=* \
1340 | --progr-tra=* | --program-tr=* | --program-t=*)
1341 program_transform_name=$ac_optarg ;;
1343 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1345 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1346 pdfdir=$ac_optarg ;;
1348 -psdir | --psdir | --psdi | --psd | --ps)
1350 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1354 | -silent | --silent | --silen | --sile | --sil)
1357 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1359 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1361 sbindir=$ac_optarg ;;
1363 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1364 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1365 | --sharedst | --shareds | --shared | --share | --shar \
1367 ac_prev=sharedstatedir ;;
1368 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1369 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1370 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1372 sharedstatedir=$ac_optarg ;;
1374 -site | --site | --sit)
1376 -site=* | --site=* | --sit=*)
1379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1382 srcdir=$ac_optarg ;;
1384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1385 | --syscon | --sysco | --sysc | --sys | --sy)
1386 ac_prev=sysconfdir ;;
1387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1389 sysconfdir=$ac_optarg ;;
1391 -target | --target | --targe | --targ | --tar | --ta | --t)
1392 ac_prev=target_alias ;;
1393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1394 target_alias=$ac_optarg ;;
1396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1399 -version | --version | --versio | --versi | --vers | -V)
1400 ac_init_version=: ;;
1403 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1404 # Reject names that are not valid shell variable names.
1405 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1406 as_fn_error "invalid package name: $ac_useropt"
1407 ac_useropt_orig=$ac_useropt
1408 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1409 case $ac_user_opts in
1413 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1414 ac_unrecognized_sep=', ';;
1416 eval with_$ac_useropt=\$ac_optarg ;;
1418 -without-* | --without-*)
1419 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1422 as_fn_error "invalid package name: $ac_useropt"
1423 ac_useropt_orig=$ac_useropt
1424 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425 case $ac_user_opts in
1429 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1430 ac_unrecognized_sep=', ';;
1432 eval with_$ac_useropt=no ;;
1435 # Obsolete; use --with-x.
1438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1439 | --x-incl | --x-inc | --x-in | --x-i)
1440 ac_prev=x_includes ;;
1441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1443 x_includes=$ac_optarg ;;
1445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1447 ac_prev=x_libraries ;;
1448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1450 x_libraries=$ac_optarg ;;
1452 -*) as_fn_error "unrecognized option: \`$ac_option'
1453 Try \`$0 --help' for more information."
1457 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1458 # Reject names that are not valid shell variable names.
1459 case $ac_envvar in #(
1460 '' | [0-9]* | *[!_$as_cr_alnum]* )
1461 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1463 eval $ac_envvar=\$ac_optarg
1464 export $ac_envvar ;;
1467 # FIXME: should be removed in autoconf 3.0.
1468 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1469 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1470 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1471 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1477 if test -n "$ac_prev"; then
1478 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1479 as_fn_error "missing argument to $ac_option"
1482 if test -n "$ac_unrecognized_opts"; then
1483 case $enable_option_checking in
1485 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1486 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1490 # Check all directory arguments for consistency.
1491 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1492 datadir sysconfdir sharedstatedir localstatedir includedir \
1493 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1494 libdir localedir mandir
1496 eval ac_val=\$$ac_var
1497 # Remove trailing slashes.
1500 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1501 eval $ac_var=\$ac_val;;
1503 # Be sure to have absolute directory names.
1505 [\\/$]* | ?:[\\/]* ) continue;;
1506 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1508 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1511 # There might be people who depend on the old broken behavior: `$host'
1512 # used to hold the argument of --host etc.
1513 # FIXME: To remove some day.
1516 target=$target_alias
1518 # FIXME: To remove some day.
1519 if test "x$host_alias" != x; then
1520 if test "x$build_alias" = x; then
1521 cross_compiling=maybe
1522 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1523 If a cross compiler is detected then cross compile mode will be used." >&2
1524 elif test "x$build_alias" != "x$host_alias"; then
1530 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1532 test "$silent" = yes && exec 6>/dev/null
1535 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1536 ac_ls_di=`ls -di .` &&
1537 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1538 as_fn_error "working directory cannot be determined"
1539 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1540 as_fn_error "pwd does not report name of working directory"
1543 # Find the source files, if location was not specified.
1544 if test -z "$srcdir"; then
1545 ac_srcdir_defaulted=yes
1546 # Try the directory containing this script, then the parent directory.
1547 ac_confdir=`$as_dirname -- "$as_myself" ||
1548 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1549 X"$as_myself" : 'X\(//\)[^/]' \| \
1550 X"$as_myself" : 'X\(//\)$' \| \
1551 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1552 $as_echo X"$as_myself" |
1553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1571 if test ! -r "$srcdir/$ac_unique_file"; then
1575 ac_srcdir_defaulted=no
1577 if test ! -r "$srcdir/$ac_unique_file"; then
1578 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1579 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1581 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1583 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1585 # When building in place, set srcdir=.
1586 if test "$ac_abs_confdir" = "$ac_pwd"; then
1589 # Remove unnecessary trailing slashes from srcdir.
1590 # Double slashes in file names in object file debugging info
1591 # mess up M-x gdb in Emacs.
1593 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1595 for ac_var in $ac_precious_vars; do
1596 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1597 eval ac_env_${ac_var}_value=\$${ac_var}
1598 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1599 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1603 # Report the --help message.
1605 if test "$ac_init_help" = "long"; then
1606 # Omit some internal or obsolete options to make the list less imposing.
1607 # This message is too long to be a string in the A/UX 3.1 sh.
1609 \`configure' configures this package to adapt to many kinds of systems.
1611 Usage: $0 [OPTION]... [VAR=VALUE]...
1613 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1614 VAR=VALUE. See below for descriptions of some of the useful variables.
1616 Defaults for the options are specified in brackets.
1619 -h, --help display this help and exit
1620 --help=short display options specific to this package
1621 --help=recursive display the short help of all the included packages
1622 -V, --version display version information and exit
1623 -q, --quiet, --silent do not print \`checking...' messages
1624 --cache-file=FILE cache test results in FILE [disabled]
1625 -C, --config-cache alias for \`--cache-file=config.cache'
1626 -n, --no-create do not create output files
1627 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1629 Installation directories:
1630 --prefix=PREFIX install architecture-independent files in PREFIX
1631 [$ac_default_prefix]
1632 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1635 By default, \`make install' will install all the files in
1636 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1637 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1638 for instance \`--prefix=\$HOME'.
1640 For better control, use the options below.
1642 Fine tuning of the installation directories:
1643 --bindir=DIR user executables [EPREFIX/bin]
1644 --sbindir=DIR system admin executables [EPREFIX/sbin]
1645 --libexecdir=DIR program executables [EPREFIX/libexec]
1646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1649 --libdir=DIR object code libraries [EPREFIX/lib]
1650 --includedir=DIR C header files [PREFIX/include]
1651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1652 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1653 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1654 --infodir=DIR info documentation [DATAROOTDIR/info]
1655 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1656 --mandir=DIR man documentation [DATAROOTDIR/man]
1657 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1658 --htmldir=DIR html documentation [DOCDIR]
1659 --dvidir=DIR dvi documentation [DOCDIR]
1660 --pdfdir=DIR pdf documentation [DOCDIR]
1661 --psdir=DIR ps documentation [DOCDIR]
1667 --program-prefix=PREFIX prepend PREFIX to installed program names
1668 --program-suffix=SUFFIX append SUFFIX to installed program names
1669 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1672 --build=BUILD configure for building on BUILD [guessed]
1673 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1674 --target=TARGET configure for building compilers for TARGET [HOST]
1678 if test -n "$ac_init_help"; then
1683 --disable-option-checking ignore unrecognized --enable/--with options
1684 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1685 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1686 --enable-generated-files-in-srcdir
1687 put copies of generated files in source dir
1688 intended for creating source tarballs for users
1689 without texinfo bison or flex.
1690 --enable-werror-always enable -Werror despite compiler version
1691 --enable-checking=LIST
1692 enable expensive run-time checks. With LIST,
1693 enable only specific categories of checks.
1694 Categories are: yes,no,all,none,release.
1695 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1696 rtlflag,rtl,runtime,tree,valgrind,types.
1697 --enable-coverage=LEVEL
1698 enable compiler's code coverage collection.
1699 Use to measure compiler performance and locate
1700 unused parts of the compiler. With LEVEL, specify
1701 optimization. Values are opt, noopt,
1703 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1704 --enable-build-with-cxx build with C++ compiler instead of C compiler
1705 --enable-multilib enable library support for multiple ABIs
1706 --enable-__cxa_atexit enable __cxa_atexit for C++
1707 --enable-decimal-float={no,yes,bid,dpd}
1708 enable decimal float extension to C. Selecting 'bid'
1709 or 'dpd' choses which decimal floating point format
1711 --enable-fixed-point enable fixed-point arithmetic extension to C
1712 --enable-threads enable thread usage for target GCC
1713 --enable-threads=LIB use LIB thread package for target GCC
1714 --enable-tls enable or disable generation of tls code
1715 overriding the assembler check for tls support
1716 --enable-objc-gc enable the use of Boehm's garbage collector with
1717 the GNU Objective-C runtime
1718 --disable-shared don't provide a shared libgcc
1719 --enable-intermodule build the compiler in one step
1720 --enable-languages=LIST specify which front-ends to build
1721 --disable-rpath do not hardcode runtime library paths
1722 --enable-initfini-array use .init_array/.fini_array sections
1723 --enable-sjlj-exceptions
1724 arrange to use setjmp/longjmp exception handling
1725 --enable-secureplt enable -msecure-plt by default for PowerPC
1726 --enable-cld enable -mcld by default for 32bit x86
1727 --disable-win32-registry
1728 disable lookup of installation paths in the
1729 Registry on Windows hosts
1730 --enable-win32-registry enable registry lookup (default)
1731 --enable-win32-registry=KEY
1732 use KEY instead of GCC version as the last portion
1734 --enable-shared[=PKGS] build shared libraries [default=yes]
1735 --enable-static[=PKGS] build static libraries [default=yes]
1736 --enable-fast-install[=PKGS]
1737 optimize for fast installation [default=yes]
1738 --disable-libtool-lock avoid locking (might break parallel builds)
1739 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1741 --enable-linker-build-id
1742 compiler will always pass --build-id to linker
1743 --enable-maintainer-mode
1744 enable make rules and dependencies not useful
1745 (and sometimes confusing) to the casual installer
1746 --enable-version-specific-runtime-libs
1747 specify that runtime libraries should be
1748 installed in a compiler-specific directory
1749 --enable-plugin enable plugin support
1752 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1753 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1754 --with-build-libsubdir=DIR Directory where to find libraries for build system
1755 --with-local-prefix=DIR specifies directory to put local include
1756 --with-gxx-include-dir=DIR
1757 specifies directory to put g++ header files
1758 --with-cpp-install-dir=DIR
1759 install the user visible C preprocessor in DIR
1760 (relative to PREFIX) as well as PREFIX/bin
1761 --with-gnu-ld arrange to work with GNU ld.
1762 --with-ld arrange to use the specified ld (full pathname)
1763 --with-demangler-in-ld try to use demangler in GNU ld.
1764 --with-gnu-as arrange to work with GNU as
1765 --with-as arrange to use the specified as (full pathname)
1766 --with-stabs arrange to use stabs instead of host debug format
1767 --with-dwarf2 force the default debug format to be DWARF 2
1768 --with-build-sysroot=sysroot
1769 use sysroot as the system root during the build
1770 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1771 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1772 --with-bugurl=URL Direct users to URL to report a bug
1773 --with-multilib-list Select multilibs (SH only)
1774 --with-gnu-ld assume the C compiler uses GNU ld default=no
1775 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1776 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1777 --with-system-libunwind use installed libunwind
1778 --with-pic try to use only PIC/non-PIC objects [default=use
1780 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1781 --with-long-double-128 Use 128-bit long double by default.
1782 --with-gc={page,zone} choose the garbage collection mechanism to use
1784 --with-system-zlib use installed libz
1785 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1786 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1787 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1788 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1790 Some influential environment variables:
1791 CC C compiler command
1792 CFLAGS C compiler flags
1793 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1794 nonstandard directory <lib dir>
1795 LIBS libraries to pass to the linker, e.g. -l<library>
1796 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1797 you have headers in a nonstandard directory <include dir>
1798 CXX C++ compiler command
1799 CXXFLAGS C++ compiler flags
1801 CXXCPP C++ preprocessor
1802 GMPLIBS How to link GMP
1803 GMPINC How to find GMP include files
1804 PPLLIBS How to link PPL
1805 PPLINC How to find PPL include files
1806 CLOOGLIBS How to link CLOOG
1807 CLOOGINC How to find CLOOG include files
1809 Use these variables to override the choices made by `configure' or to help
1810 it to find libraries and programs with nonstandard names/locations.
1812 Report bugs to the package provider.
1817 if test "$ac_init_help" = "recursive"; then
1818 # If there are subdirs, report their specific --help.
1819 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1820 test -d "$ac_dir" ||
1821 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1828 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1829 # A ".." for each directory in $ac_dir_suffix.
1830 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1831 case $ac_top_builddir_sub in
1832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1836 ac_abs_top_builddir=$ac_pwd
1837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1838 # for backward compatibility:
1839 ac_top_builddir=$ac_top_build_prefix
1842 .) # We are building in place.
1844 ac_top_srcdir=$ac_top_builddir_sub
1845 ac_abs_top_srcdir=$ac_pwd ;;
1846 [\\/]* | ?:[\\/]* ) # Absolute name.
1847 ac_srcdir=$srcdir$ac_dir_suffix;
1848 ac_top_srcdir=$srcdir
1849 ac_abs_top_srcdir=$srcdir ;;
1851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1852 ac_top_srcdir=$ac_top_build_prefix$srcdir
1853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1857 cd "$ac_dir" || { ac_status=$?; continue; }
1858 # Check for guested configure.
1859 if test -f "$ac_srcdir/configure.gnu"; then
1861 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1862 elif test -f "$ac_srcdir/configure"; then
1864 $SHELL "$ac_srcdir/configure" --help=recursive
1866 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1868 cd "$ac_pwd" || { ac_status=$?; break; }
1872 test -n "$ac_init_help" && exit $ac_status
1873 if $ac_init_version; then
1876 generated by GNU Autoconf 2.64
1878 Copyright (C) 2009 Free Software Foundation, Inc.
1879 This configure script is free software; the Free Software Foundation
1880 gives unlimited permission to copy, distribute and modify it.
1885 ## ------------------------ ##
1886 ## Autoconf initialization. ##
1887 ## ------------------------ ##
1889 # ac_fn_c_try_compile LINENO
1890 # --------------------------
1891 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_c_try_compile ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext
1896 if { { ac_try="$ac_compile"
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_compile") 2>conftest.err
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_c_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest.$ac_objext; then :
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 } # ac_fn_c_try_compile
1927 # ac_fn_cxx_try_compile LINENO
1928 # ----------------------------
1929 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1930 ac_fn_cxx_try_compile ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 rm -f conftest.$ac_objext
1934 if { { ac_try="$ac_compile"
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_compile") 2>conftest.err
1943 if test -s conftest.err; then
1944 grep -v '^ *+' conftest.err >conftest.er1
1945 cat conftest.er1 >&5
1946 mv -f conftest.er1 conftest.err
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && {
1950 test -z "$ac_cxx_werror_flag" ||
1951 test ! -s conftest.err
1952 } && test -s conftest.$ac_objext; then :
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 } # ac_fn_cxx_try_compile
1965 # ac_fn_c_try_cpp LINENO
1966 # ----------------------
1967 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if { { ac_try="$ac_cpp conftest.$ac_ext"
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1980 if test -s conftest.err; then
1981 grep -v '^ *+' conftest.err >conftest.er1
1982 cat conftest.er1 >&5
1983 mv -f conftest.er1 conftest.err
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } >/dev/null && {
1987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1988 test ! -s conftest.err
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1997 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2005 # the include files in INCLUDES and setting the cache variable VAR
2007 ac_fn_c_check_header_mongrel ()
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 # Is the header compilable?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2022 $as_echo_n "checking $2 usability... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_header_compiler=yes
2031 ac_header_compiler=no
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2035 $as_echo "$ac_header_compiler" >&6; }
2037 # Is the header present?
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2039 $as_echo_n "checking $2 presence... " >&6; }
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2044 if ac_fn_c_try_cpp "$LINENO"; then :
2045 ac_header_preproc=yes
2047 ac_header_preproc=no
2049 rm -f conftest.err conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2051 $as_echo "$ac_header_preproc" >&6; }
2053 # So? What about this header?
2054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2057 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2063 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2065 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2067 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2069 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2077 $as_echo_n "(cached) " >&6
2079 eval "$3=\$ac_header_compiler"
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2087 } # ac_fn_c_check_header_mongrel
2089 # ac_fn_c_try_run LINENO
2090 # ----------------------
2091 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2092 # that executables *can* be run.
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if { { ac_try="$ac_link"
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102 $as_echo "$ac_try_echo"; } >&5
2103 (eval "$ac_link") 2>&5
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2107 { { case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2112 $as_echo "$ac_try_echo"; } >&5
2113 (eval "$ac_try") 2>&5
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; }; }; then :
2119 $as_echo "$as_me: program exited with status $ac_status" >&5
2120 $as_echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2123 ac_retval=$ac_status
2125 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2126 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2131 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2132 # -------------------------------------------------------
2133 # Tests whether HEADER exists and can be compiled using the include files in
2134 # INCLUDES, setting the cache variable VAR accordingly.
2135 ac_fn_c_check_header_compile ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2141 $as_echo_n "(cached) " >&6
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2148 if ac_fn_c_try_compile "$LINENO"; then :
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2160 } # ac_fn_c_check_header_compile
2162 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2163 # --------------------------------------------
2164 # Tries to find the compile-time value of EXPR in a program that includes
2165 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2167 ac_fn_c_compute_int ()
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 if test "$cross_compiling" = yes; then
2171 # Depending upon the size, compute the lo and hi bounds.
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2178 static int test_array [1 - 2 * !(($2) >= 0)];
2185 if ac_fn_c_try_compile "$LINENO"; then :
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2194 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202 ac_hi=$ac_mid; break
2204 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2205 if test $ac_lo -le $ac_mid; then
2209 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) < 0)];
2227 if ac_fn_c_try_compile "$LINENO"; then :
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2236 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 ac_lo=$ac_mid; break
2246 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2247 if test $ac_mid -le $ac_hi; then
2251 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 # Binary search between lo and hi bounds.
2262 while test "x$ac_lo" != "x$ac_hi"; do
2263 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2270 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277 if ac_fn_c_try_compile "$LINENO"; then :
2280 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2292 static long int longval () { return $2; }
2293 static unsigned long int ulongval () { return $2; }
2300 FILE *f = fopen ("conftest.val", "w");
2305 long int i = longval ();
2308 fprintf (f, "%ld", i);
2312 unsigned long int i = ulongval ();
2315 fprintf (f, "%lu", i);
2317 /* Do not output a trailing newline, as this causes \r\n confusion
2318 on some platforms. */
2319 return ferror (f) || fclose (f) != 0;
2325 if ac_fn_c_try_run "$LINENO"; then :
2326 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2331 conftest.$ac_objext conftest.beam conftest.$ac_ext
2335 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338 } # ac_fn_c_compute_int
2340 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2341 # -------------------------------------------
2342 # Tests whether TYPE exists after having included INCLUDES, setting cache
2343 # variable VAR accordingly.
2344 ac_fn_c_check_type ()
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2350 $as_echo_n "(cached) " >&6
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2365 if ac_fn_c_try_compile "$LINENO"; then :
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2378 if ac_fn_c_try_compile "$LINENO"; then :
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 } # ac_fn_c_check_type
2394 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2395 # ----------------------------------------------
2396 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2397 ac_fn_c_check_header_preproc ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2403 $as_echo_n "(cached) " >&6
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2409 if ac_fn_c_try_cpp "$LINENO"; then :
2414 rm -f conftest.err conftest.$ac_ext
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421 } # ac_fn_c_check_header_preproc
2423 # ac_fn_c_try_link LINENO
2424 # -----------------------
2425 # Try to link conftest.$ac_ext, and return whether this succeeded.
2428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2429 rm -f conftest.$ac_objext conftest$ac_exeext
2430 if { { ac_try="$ac_link"
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436 $as_echo "$ac_try_echo"; } >&5
2437 (eval "$ac_link") 2>conftest.err
2439 if test -s conftest.err; then
2440 grep -v '^ *+' conftest.err >conftest.er1
2441 cat conftest.er1 >&5
2442 mv -f conftest.er1 conftest.err
2444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2445 test $ac_status = 0; } && {
2446 test -z "$ac_c_werror_flag" ||
2447 test ! -s conftest.err
2448 } && test -s conftest$ac_exeext && {
2449 test "$cross_compiling" = yes ||
2450 $as_test_x conftest$ac_exeext
2454 $as_echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2459 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2460 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2461 # interfere with the next link command; also delete a directory that is
2462 # left behind by Apple's compiler. We do this before executing the actions.
2463 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2464 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 } # ac_fn_c_try_link
2469 # ac_fn_c_check_func LINENO FUNC VAR
2470 # ----------------------------------
2471 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2472 ac_fn_c_check_func ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478 $as_echo_n "(cached) " >&6
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2484 #define $2 innocuous_$2
2486 /* System header to define __stub macros and hopefully few prototypes,
2487 which can conflict with char $2 (); below.
2488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2489 <limits.h> exists even on freestanding compilers. */
2492 # include <limits.h>
2494 # include <assert.h>
2499 /* Override any GCC internal prototype to avoid an error.
2500 Use char because int might match the return type of a GCC
2501 builtin and then its argument prototype would still apply. */
2506 /* The GNU C library defines this for functions which it implements
2507 to always fail with ENOSYS. Some functions are actually named
2508 something starting with __ and the normal name is an alias. */
2509 #if defined __stub_$2 || defined __stub___$2
2521 if ac_fn_c_try_link "$LINENO"; then :
2526 rm -f core conftest.err conftest.$ac_objext \
2527 conftest$ac_exeext conftest.$ac_ext
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2534 } # ac_fn_c_check_func
2536 # ac_fn_cxx_try_cpp LINENO
2537 # ------------------------
2538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2539 ac_fn_cxx_try_cpp ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 if { { ac_try="$ac_cpp conftest.$ac_ext"
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2551 if test -s conftest.err; then
2552 grep -v '^ *+' conftest.err >conftest.er1
2553 cat conftest.er1 >&5
2554 mv -f conftest.er1 conftest.err
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } >/dev/null && {
2558 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2559 test ! -s conftest.err
2563 $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2571 } # ac_fn_cxx_try_cpp
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { { ac_try="$ac_link"
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link") 2>conftest.err
2589 if test -s conftest.err; then
2590 grep -v '^ *+' conftest.err >conftest.er1
2591 cat conftest.er1 >&5
2592 mv -f conftest.er1 conftest.err
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; } && {
2596 test -z "$ac_cxx_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest$ac_exeext && {
2599 test "$cross_compiling" = yes ||
2600 $as_test_x conftest$ac_exeext
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611 # interfere with the next link command; also delete a directory that is
2612 # left behind by Apple's compiler. We do this before executing the actions.
2613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2617 } # ac_fn_cxx_try_link
2618 cat >config.log <<_ACEOF
2619 This file contains any messages produced by compilers while
2620 running configure, to aid debugging if configure makes a mistake.
2622 It was created by $as_me, which was
2623 generated by GNU Autoconf 2.64. Invocation command line was
2635 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2636 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2637 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2638 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2639 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2641 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2642 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2644 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2645 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2646 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2647 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2648 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2649 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2650 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 $as_echo "PATH: $as_dir"
2675 # Keep a trace of the command line.
2676 # Strip out --no-create and --no-recursion so they do not pile up.
2677 # Strip out --silent because we don't want to record it for future runs.
2678 # Also quote any args containing shell meta-characters.
2679 # Make two passes to allow for proper duplicate-argument suppression.
2683 ac_must_keep_next=false
2689 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691 | -silent | --silent | --silen | --sile | --sil)
2694 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2697 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2699 as_fn_append ac_configure_args1 " '$ac_arg'"
2700 if test $ac_must_keep_next = true; then
2701 ac_must_keep_next=false # Got value, back to normal.
2704 *=* | --config-cache | -C | -disable-* | --disable-* \
2705 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707 | -with-* | --with-* | -without-* | --without-* | --x)
2708 case "$ac_configure_args0 " in
2709 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2712 -* ) ac_must_keep_next=true ;;
2715 as_fn_append ac_configure_args " '$ac_arg'"
2720 { ac_configure_args0=; unset ac_configure_args0;}
2721 { ac_configure_args1=; unset ac_configure_args1;}
2723 # When interrupted or exit'd, cleanup temporary files, and complete
2724 # config.log. We remove comments because anyway the quotes in there
2725 # would cause problems or look ugly.
2726 # WARNING: Use '\'' to represent an apostrophe within the trap.
2727 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 trap 'exit_status=$?
2729 # Save into config.log some information that might help in debugging.
2734 ## ---------------- ##
2735 ## Cache variables. ##
2736 ## ---------------- ##
2739 # The following way of writing the cache mishandles newlines in values,
2741 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2742 eval ac_val=\$$ac_var
2746 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2747 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2750 _ | IFS | as_nl) ;; #(
2751 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2752 *) { eval $ac_var=; unset $ac_var;} ;;
2757 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2758 *${as_nl}ac_space=\ *)
2760 "s/'\''/'\''\\\\'\'''\''/g;
2761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2772 ## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##
2777 for ac_var in $ac_subst_vars
2779 eval ac_val=\$$ac_var
2781 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2783 $as_echo "$ac_var='\''$ac_val'\''"
2787 if test -n "$ac_subst_files"; then
2789 ## ------------------- ##
2790 ## File substitutions. ##
2791 ## ------------------- ##
2794 for ac_var in $ac_subst_files
2796 eval ac_val=\$$ac_var
2798 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2800 $as_echo "$ac_var='\''$ac_val'\''"
2805 if test -s confdefs.h; then
2815 test "$ac_signal" != 0 &&
2816 $as_echo "$as_me: caught signal $ac_signal"
2817 $as_echo "$as_me: exit $exit_status"
2819 rm -f core *.core core.conftest.* &&
2820 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2823 for ac_signal in 1 2 13 15; do
2824 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2829 rm -f -r conftest* confdefs.h
2831 $as_echo "/* confdefs.h */" > confdefs.h
2833 # Predefined preprocessor variables.
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_NAME "$PACKAGE_NAME"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_STRING "$PACKAGE_STRING"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_URL "$PACKAGE_URL"
2860 # Let the site file select an alternate cache file if it wants to.
2861 # Prefer an explicitly selected file to automatically selected ones.
2864 if test -n "$CONFIG_SITE"; then
2865 ac_site_file1=$CONFIG_SITE
2866 elif test "x$prefix" != xNONE; then
2867 ac_site_file1=$prefix/share/config.site
2868 ac_site_file2=$prefix/etc/config.site
2870 ac_site_file1=$ac_default_prefix/share/config.site
2871 ac_site_file2=$ac_default_prefix/etc/config.site
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2875 test "x$ac_site_file" = xNONE && continue
2876 if test -r "$ac_site_file"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879 sed 's/^/| /' "$ac_site_file" >&5
2884 if test -r "$cache_file"; then
2885 # Some versions of bash will fail to source /dev/null (special
2886 # files actually), so we avoid doing that.
2887 if test -f "$cache_file"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2889 $as_echo "$as_me: loading cache $cache_file" >&6;}
2891 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2892 *) . "./$cache_file";;
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2897 $as_echo "$as_me: creating cache $cache_file" >&6;}
2901 # Check that the precious variables saved in the cache have kept the same
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906 eval ac_new_set=\$ac_env_${ac_var}_set
2907 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908 eval ac_new_val=\$ac_env_${ac_var}_value
2909 case $ac_old_set,$ac_new_set in
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2917 ac_cache_corrupted=: ;;
2920 if test "x$ac_old_val" != "x$ac_new_val"; then
2921 # differences in whitespace do not lead to failure.
2922 ac_old_val_w=`echo x $ac_old_val`
2923 ac_new_val_w=`echo x $ac_new_val`
2924 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2927 ac_cache_corrupted=:
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931 eval $ac_var=\$ac_old_val
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2934 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2939 # Pass precious variables to config.status.
2940 if test "$ac_new_set" = set; then
2942 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943 *) ac_arg=$ac_var=$ac_new_val ;;
2945 case " $ac_configure_args " in
2946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2947 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2951 if $ac_cache_corrupted; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2976 gcc_version=`cat $srcdir/BASE-VER`
2978 # Determine the host, build, and target systems
2980 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2981 for ac_t in install-sh install.sh shtool; do
2982 if test -f "$ac_dir/$ac_t"; then
2984 ac_install_sh="$ac_aux_dir/$ac_t -c"
2989 if test -z "$ac_aux_dir"; then
2990 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2993 # These three variables are undocumented and unsupported,
2994 # and are intended to be withdrawn in a future Autoconf release.
2995 # They can cause serious problems if a builder's source tree is in a directory
2996 # whose full name contains unusual characters.
2997 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2998 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2999 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3002 # Make sure we can run config.sub.
3003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3004 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3007 $as_echo_n "checking build system type... " >&6; }
3008 if test "${ac_cv_build+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3011 ac_build_alias=$build_alias
3012 test "x$ac_build_alias" = x &&
3013 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3014 test "x$ac_build_alias" = x &&
3015 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3017 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3021 $as_echo "$ac_cv_build" >&6; }
3022 case $ac_cv_build in
3024 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3027 ac_save_IFS=$IFS; IFS='-'
3033 # Remember, the first character of IFS is used to create $*,
3034 # except with old shells:
3037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3041 $as_echo_n "checking host system type... " >&6; }
3042 if test "${ac_cv_host+set}" = set; then :
3043 $as_echo_n "(cached) " >&6
3045 if test "x$host_alias" = x; then
3046 ac_cv_host=$ac_cv_build
3048 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3049 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3054 $as_echo "$ac_cv_host" >&6; }
3057 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3060 ac_save_IFS=$IFS; IFS='-'
3066 # Remember, the first character of IFS is used to create $*,
3067 # except with old shells:
3070 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3074 $as_echo_n "checking target system type... " >&6; }
3075 if test "${ac_cv_target+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3078 if test "x$target_alias" = x; then
3079 ac_cv_target=$ac_cv_host
3081 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3082 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3087 $as_echo "$ac_cv_target" >&6; }
3088 case $ac_cv_target in
3090 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3092 target=$ac_cv_target
3093 ac_save_IFS=$IFS; IFS='-'
3099 # Remember, the first character of IFS is used to create $*,
3100 # except with old shells:
3103 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3106 # The aliases save the names the user supplied, while $host etc.
3107 # will get canonicalized.
3108 test -n "$target_alias" &&
3109 test "$program_prefix$program_suffix$program_transform_name" = \
3111 program_prefix=${target_alias}-
3113 # Determine the noncanonical target name, for directory use.
3114 case ${build_alias} in
3115 "") build_noncanonical=${build} ;;
3116 *) build_noncanonical=${build_alias} ;;
3119 case ${host_alias} in
3120 "") host_noncanonical=${build_noncanonical} ;;
3121 *) host_noncanonical=${host_alias} ;;
3124 case ${target_alias} in
3125 "") target_noncanonical=${host_noncanonical} ;;
3126 *) target_noncanonical=${target_alias} ;;
3132 # Determine the target- and build-specific subdirectories
3134 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3135 # have matching libraries, they should use host libraries: Makefile.tpl
3136 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3137 # However, they still use the build modules, because the corresponding
3138 # host modules (e.g. bison) are only built for the host when bootstrap
3140 # - build_subdir is where we find build modules, and never changes.
3141 # - build_libsubdir is where we find build libraries, and can be overridden.
3143 # Prefix 'build-' so this never conflicts with target_subdir.
3144 build_subdir="build-${build_noncanonical}"
3146 # Check whether --with-build-libsubdir was given.
3147 if test "${with_build_libsubdir+set}" = set; then :
3148 withval=$with_build_libsubdir; build_libsubdir="$withval"
3150 build_libsubdir="$build_subdir"
3153 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3154 if ( test $srcdir = . && test -d gcc ) \
3155 || test -d $srcdir/../host-${host_noncanonical}; then
3156 host_subdir="host-${host_noncanonical}"
3161 target_subdir=${target_noncanonical}
3164 # Set program_transform_name
3165 test "$program_prefix" != NONE &&
3166 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3170 # Double any \ or $.
3171 # By default was `s,x,x', remove it if useless.
3172 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3176 # Check for bogus environment variables.
3177 # Test if LIBRARY_PATH contains the notation for the current directory
3178 # since this would lead to problems installing/building glibc.
3179 # LIBRARY_PATH contains the current directory if one of the following
3181 # - one of the terminals (":" and ";") is the first or last sign
3182 # - two terminals occur directly after each other
3183 # - the path contains an element with a dot in it
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3185 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3186 case ${LIBRARY_PATH} in
3187 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3188 library_path_setting="contains current directory"
3191 library_path_setting="ok"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3195 $as_echo "$library_path_setting" >&6; }
3196 if test "$library_path_setting" != "ok"; then
3198 *** LIBRARY_PATH shouldn't contain the current directory when
3199 *** building gcc. Please change the environment variable
3200 *** and run configure again." "$LINENO" 5
3203 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3204 # since this would lead to problems installing/building glibc.
3205 # GCC_EXEC_PREFIX contains the current directory if one of the following
3207 # - one of the terminals (":" and ";") is the first or last sign
3208 # - two terminals occur directly after each other
3209 # - the path contains an element with a dot in it
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3211 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3212 case ${GCC_EXEC_PREFIX} in
3213 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3214 gcc_exec_prefix_setting="contains current directory"
3217 gcc_exec_prefix_setting="ok"
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3221 $as_echo "$gcc_exec_prefix_setting" >&6; }
3222 if test "$gcc_exec_prefix_setting" != "ok"; then
3224 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3225 *** building gcc. Please change the environment variable
3226 *** and run configure again." "$LINENO" 5
3233 # Specify the local prefix
3236 # Check whether --with-local-prefix was given.
3237 if test "${with_local_prefix+set}" = set; then :
3238 withval=$with_local_prefix; case "${withval}" in
3239 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3241 *) local_prefix=$with_local_prefix ;;
3246 # Default local prefix if it is empty
3247 if test x$local_prefix = x; then
3248 local_prefix=/usr/local
3251 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3252 # passed in by the toplevel make and thus we'd get different behavior
3253 # depending on where we built the sources.
3254 gcc_gxx_include_dir=
3255 # Specify the g++ header file directory
3257 # Check whether --with-gxx-include-dir was given.
3258 if test "${with_gxx_include_dir+set}" = set; then :
3259 withval=$with_gxx_include_dir; case "${withval}" in
3260 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3262 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3267 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3268 if test x${gcc_gxx_include_dir} = x; then
3269 if test x${enable_version_specific_runtime_libs} = xyes; then
3270 gcc_gxx_include_dir='${libsubdir}/include/c++'
3272 libstdcxx_incdir='include/c++/$(version)'
3273 if test x$host != x$target; then
3274 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3276 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3281 # Check whether --with-cpp_install_dir was given.
3282 if test "${with_cpp_install_dir+set}" = set; then :
3283 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3284 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3285 elif test x$withval != xno; then
3286 cpp_install_dir=$withval
3291 # We would like to our source tree to be readonly. However when releases or
3292 # pre-releases are generated, the flex/bison generated files as well as the
3293 # various formats of manuals need to be included along with the rest of the
3294 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3298 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3299 # Check whether --enable-generated-files-in-srcdir was given.
3300 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3301 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3303 generated_files_in_srcdir=no
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3308 $as_echo "$generated_files_in_srcdir" >&6; }
3310 if test "$generated_files_in_srcdir" = "yes"; then
3317 # -------------------
3318 # Find default linker
3319 # -------------------
3323 # Check whether --with-gnu-ld was given.
3324 if test "${with_gnu_ld+set}" = set; then :
3325 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3331 # With pre-defined ld
3333 # Check whether --with-ld was given.
3334 if test "${with_ld+set}" = set; then :
3335 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3338 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3339 if test ! -x "$DEFAULT_LINKER"; then
3340 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3341 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3345 cat >>confdefs.h <<_ACEOF
3346 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3351 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3353 cat >>confdefs.h <<_ACEOF
3354 #define HAVE_GNU_LD $gnu_ld
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3359 $as_echo_n "checking whether a default linker was specified... " >&6; }
3360 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3361 if test x"$gnu_ld_flag" = x"no"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3363 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3366 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3373 # With demangler in GNU ld
3375 # Check whether --with-demangler-in-ld was given.
3376 if test "${with_demangler_in_ld+set}" = set; then :
3377 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3383 # ----------------------
3384 # Find default assembler
3385 # ----------------------
3389 # Check whether --with-gnu-as was given.
3390 if test "${with_gnu_as+set}" = set; then :
3391 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3398 # Check whether --with-as was given.
3399 if test "${with_as+set}" = set; then :
3400 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3403 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3404 if test ! -x "$DEFAULT_ASSEMBLER"; then
3405 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3406 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3410 cat >>confdefs.h <<_ACEOF
3411 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3416 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3418 cat >>confdefs.h <<_ACEOF
3419 #define HAVE_GNU_AS $gnu_as
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3424 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3425 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3426 if test x"$gas_flag" = x"no"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3428 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3431 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3442 # If a non-executable a.out is present (e.g. created by GNU as above even if
3443 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3444 # file, even when creating an executable, so an execution test fails.
3445 # Remove possible default executable files to avoid this.
3447 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3448 # Autoconf includes it.
3449 rm -f a.out a.exe b.out
3451 # Find the native compiler
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3496 if test -z "$ac_cv_prog_CC"; then
3498 # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$ac_ct_CC"; then
3506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_ac_ct_CC="gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3534 if test "x$ac_ct_CC" = x; then
3537 case $cross_compiling:$ac_tool_warned in
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3549 if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}cc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC="${ac_tool_prefix}cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3590 if test -z "$CC"; then
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610 ac_prog_rejected=yes
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy $ac_cv_prog_CC
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog in cl.exe
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$CC" && break
3690 if test -z "$CC"; then
3692 for ac_prog in cl.exe
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_ac_ct_CC="$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$ac_ct_CC" && break
3734 if test "x$ac_ct_CC" = x; then
3737 case $cross_compiling:$ac_tool_warned in
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3759 for ac_option in --version -v -V -qversion; do
3760 { { ac_try="$ac_compiler $ac_option >&5"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 if test -s conftest.err; then
3771 ... rest of stderr output deleted ...
3772 10q' conftest.err >conftest.er1
3773 cat conftest.er1 >&5
3774 rm -f conftest.er1 conftest.err
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797 $as_echo_n "checking for C compiler default output file name... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804 for ac_file in $ac_files
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3813 if { { ac_try="$ac_link_default"
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link_default") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3829 for ac_file in $ac_files ''
3831 test -f "$ac_file" || continue
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3836 # We found the default executable, but exeext='' is most
3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an `-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 if test -z "$ac_file"; then :
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status 77
3868 as_fn_error "C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3871 ac_exeext=$ac_cv_exeext
3873 # Check that the compiler produces executables we can run. If not, either
3874 # the compiler is broken, or we cross compile.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 # If not cross compiling, check that we can run a simple program.
3878 if test "$cross_compiling" != yes; then
3879 if { ac_try='./$ac_file'
3880 { { case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886 (eval "$ac_try") 2>&5
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; }; then
3892 if test "$cross_compiling" = maybe; then
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error "cannot run C compiled programs.
3898 If you meant to cross compile, use \`--host'.
3899 See \`config.log' for more details." "$LINENO" 5; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3907 ac_clean_files=$ac_clean_files_save
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916 $as_echo_n "checking for suffix of executables... " >&6; }
3917 if { { ac_try="$ac_link"
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; then :
3928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3929 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3930 # work properly (i.e., refer to `conftest.exe'), while it won't with
3932 for ac_file in conftest.exe conftest conftest.*; do
3933 test -f "$ac_file" || continue
3935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error "cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3947 rm -f conftest$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949 $as_echo "$ac_cv_exeext" >&6; }
3951 rm -f conftest.$ac_ext
3952 EXEEXT=$ac_cv_exeext
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_compile") 2>&5
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 for ac_file in conftest.o conftest.obj conftest.*; do
3983 test -f "$ac_file" || continue;
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error "cannot compute suffix of object files: cannot compile
3997 See \`config.log' for more details." "$LINENO" 5; }
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4024 if ac_fn_c_try_compile "$LINENO"; then :
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 ac_save_c_werror_flag=$ac_c_werror_flag
4048 ac_c_werror_flag=yes
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4062 if ac_fn_c_try_compile "$LINENO"; then :
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4093 if ac_fn_c_try_compile "$LINENO"; then :
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_c_werror_flag=$ac_save_c_werror_flag
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106 CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108 if test "$GCC" = yes; then
4114 if test "$GCC" = yes; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 ac_cv_prog_cc_c89=no
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4147 s = g (p, va_arg (v,int));
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4153 function prototypes and stuff, but not '\xHH' hex character constants.
4154 These don't provoke an error unfortunately, instead are silently treated
4155 as 'x'. The following induces an error, until -std is added to get
4156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4157 array size at least. It's necessary to write '\x00'==0 to get something
4158 that's true only with -std. */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162 inside strings and character constants. */
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183 CC="$ac_save_CC $ac_arg"
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_c89=$ac_arg
4187 rm -f core conftest.err conftest.$ac_objext
4188 test "x$ac_cv_prog_cc_c89" != "xno" && break
4190 rm -f conftest.$ac_ext
4195 case "x$ac_cv_prog_cc_c89" in
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4203 CC="$CC $ac_cv_prog_cc_c89"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 if test "x$CC" != xcc; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4219 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4222 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4224 set dummy $CC; ac_cc=`$as_echo "$2" |
4225 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4227 $as_echo_n "(cached) " >&6
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4240 # Make sure it works both with $CC and with simple cc.
4241 # We do the test twice because some compilers refuse to overwrite an
4242 # existing .o file with -o, though they will create one.
4243 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4245 if { { case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_try") 2>&5
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; } &&
4255 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_try") 2>&5
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; };
4266 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4267 if test "x$CC" != xcc; then
4268 # Test first that cc exists at all.
4269 if { ac_try='cc -c conftest.$ac_ext >&5'
4270 { { case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276 (eval "$ac_try") 2>&5
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }; }; then
4280 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4306 # cc exists but doesn't like -o.
4307 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4312 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4314 rm -f core conftest*
4317 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4324 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4328 # expand $ac_aux_dir to an absolute path
4329 am_aux_dir=`cd $ac_aux_dir && pwd`
4331 # FIXME: we rely on the cache variable name because
4332 # there is no other way.
4334 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4336 if test "$am_t" != yes; then
4337 # Losing compiler, so override with the script.
4338 # FIXME: It is wrong to rewrite CC.
4339 # But if we don't then we get into trouble of one sort or another.
4340 # A longer-term fix would be to have automake use am__CC in this case,
4341 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4342 CC="$am_aux_dir/compile $CC"
4347 ac_cpp='$CXXCPP $CPPFLAGS'
4348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352 if test -n "$CCC"; then
4355 if test -n "$ac_tool_prefix"; then
4356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CXX+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4365 if test -n "$CXX"; then
4366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 if test -n "$CXX"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4395 test -n "$CXX" && break
4398 if test -z "$CXX"; then
4400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4402 # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$ac_ct_CXX"; then
4410 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_ac_ct_CXX="$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4439 test -n "$ac_ct_CXX" && break
4442 if test "x$ac_ct_CXX" = x; then
4445 case $cross_compiling:$ac_tool_warned in
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4461 for ac_option in --version -v -V -qversion; do
4462 { { ac_try="$ac_compiler $ac_option >&5"
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4471 if test -s conftest.err; then
4473 ... rest of stderr output deleted ...
4474 10q' conftest.err >conftest.er1
4475 cat conftest.er1 >&5
4476 rm -f conftest.er1 conftest.err
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525 ac_cxx_werror_flag=yes
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540 ac_cv_prog_cxx_g=yes
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 ac_cv_prog_cxx_g=yes
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583 CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585 if test "$GXX" = yes; then
4591 if test "$GXX" = yes; then
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4614 if test -n "$GNATBIND"; then
4615 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 GNATBIND=$ac_cv_prog_GNATBIND
4635 if test -n "$GNATBIND"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4637 $as_echo "$GNATBIND" >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4645 if test -z "$ac_cv_prog_GNATBIND"; then
4646 ac_ct_GNATBIND=$GNATBIND
4647 # Extract the first word of "gnatbind", so it can be a program name with args.
4648 set dummy gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$ac_ct_GNATBIND"; then
4655 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4675 if test -n "$ac_ct_GNATBIND"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4677 $as_echo "$ac_ct_GNATBIND" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4683 if test "x$ac_ct_GNATBIND" = x; then
4686 case $cross_compiling:$ac_tool_warned in
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4692 GNATBIND=$ac_ct_GNATBIND
4695 GNATBIND="$ac_cv_prog_GNATBIND"
4698 if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4706 if test -n "$GNATMAKE"; then
4707 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 GNATMAKE=$ac_cv_prog_GNATMAKE
4727 if test -n "$GNATMAKE"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4729 $as_echo "$GNATMAKE" >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4737 if test -z "$ac_cv_prog_GNATMAKE"; then
4738 ac_ct_GNATMAKE=$GNATMAKE
4739 # Extract the first word of "gnatmake", so it can be a program name with args.
4740 set dummy gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4746 if test -n "$ac_ct_GNATMAKE"; then
4747 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4767 if test -n "$ac_ct_GNATMAKE"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4769 $as_echo "$ac_ct_GNATMAKE" >&6; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4775 if test "x$ac_ct_GNATMAKE" = x; then
4778 case $cross_compiling:$ac_tool_warned in
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4784 GNATMAKE=$ac_ct_GNATMAKE
4787 GNATMAKE="$ac_cv_prog_GNATMAKE"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4791 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4792 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4795 cat >conftest.adb <<EOF
4796 procedure conftest is begin null; end conftest;
4798 acx_cv_cc_gcc_supports_ada=no
4799 # There is a bug in old released versions of GCC which causes the
4800 # driver to exit successfully when the appropriate language module
4801 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4802 # Therefore we must check for the error message as well as an
4803 # unsuccessful exit.
4804 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4805 # given a .adb file, but produce no object file. So we must check
4806 # if an object file was really produced to guard against this.
4807 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4808 if test x"$errors" = x && test -f conftest.$ac_objext; then
4809 acx_cv_cc_gcc_supports_ada=yes
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4814 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4816 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4823 # autoconf is lame and doesn't give us any substitution variable for this.
4824 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4825 NO_MINUS_C_MINUS_O=yes
4827 OUTPUT_OPTION='-o $@'
4832 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4833 # optimizations to be activated explicitly by the toplevel.
4835 */prev-gcc/xgcc*) ;;
4836 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4840 # -------------------------
4841 # Check C compiler features
4842 # -------------------------
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4851 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4852 # On Suns, sometimes $CPP names a directory.
4853 if test -n "$CPP" && test -d "$CPP"; then
4856 if test -z "$CPP"; then
4857 if test "${ac_cv_prog_CPP+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4860 # Double quotes because CPP needs to be expanded
4861 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4864 for ac_c_preproc_warn_flag in '' yes
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869 # <limits.h> exists even on freestanding compilers.
4870 # On the NeXT, cc -E runs the code through the compiler's parser,
4871 # not just through cpp. "Syntax error" is here to catch this case.
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4875 # include <limits.h>
4877 # include <assert.h>
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4884 # Broken: fails on valid input.
4887 rm -f conftest.err conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896 # Broken: success on invalid input.
4899 # Passes both tests.
4903 rm -f conftest.err conftest.$ac_ext
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4921 $as_echo "$CPP" >&6; }
4923 for ac_c_preproc_warn_flag in '' yes
4925 # Use a header file that comes with gcc, so configuring glibc
4926 # with a fresh cross-compiler works.
4927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928 # <limits.h> exists even on freestanding compilers.
4929 # On the NeXT, cc -E runs the code through the compiler's parser,
4930 # not just through cpp. "Syntax error" is here to catch this case.
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4934 # include <limits.h>
4936 # include <assert.h>
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4943 # Broken: fails on valid input.
4946 rm -f conftest.err conftest.$ac_ext
4948 # OK, works on sane cases. Now check whether nonexistent headers
4949 # can be detected and how.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4954 if ac_fn_c_try_cpp "$LINENO"; then :
4955 # Broken: success on invalid input.
4958 # Passes both tests.
4962 rm -f conftest.err conftest.$ac_ext
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.$ac_ext
4967 if $ac_preproc_ok; then :
4970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." "$LINENO" 5; }
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4985 if test "${ac_cv_path_GREP+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4988 if test -z "$GREP"; then
4989 ac_path_GREP_found=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4995 test -z "$as_dir" && as_dir=.
4996 for ac_prog in grep ggrep; do
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4999 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5000 # Check for GNU ac_path_GREP and select it if it is found.
5001 # Check for GNU $ac_path_GREP
5002 case `"$ac_path_GREP" --version 2>&1` in
5004 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5007 $as_echo_n 0123456789 >"conftest.in"
5010 cat "conftest.in" "conftest.in" >"conftest.tmp"
5011 mv "conftest.tmp" "conftest.in"
5012 cp "conftest.in" "conftest.nl"
5013 $as_echo 'GREP' >> "conftest.nl"
5014 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016 as_fn_arith $ac_count + 1 && ac_count=$as_val
5017 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5018 # Best one so far, save it but keep looking for a better one
5019 ac_cv_path_GREP="$ac_path_GREP"
5020 ac_path_GREP_max=$ac_count
5022 # 10*(2^10) chars as input seems more than enough
5023 test $ac_count -gt 10 && break
5025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5028 $ac_path_GREP_found && break 3
5033 if test -z "$ac_cv_path_GREP"; then
5034 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5037 ac_cv_path_GREP=$GREP
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5042 $as_echo "$ac_cv_path_GREP" >&6; }
5043 GREP="$ac_cv_path_GREP"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5047 $as_echo_n "checking for egrep... " >&6; }
5048 if test "${ac_cv_path_EGREP+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5051 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5052 then ac_cv_path_EGREP="$GREP -E"
5054 if test -z "$EGREP"; then
5055 ac_path_EGREP_found=false
5056 # Loop through the user's path and test for each of PROGNAME-LIST
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5061 test -z "$as_dir" && as_dir=.
5062 for ac_prog in egrep; do
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5065 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5066 # Check for GNU ac_path_EGREP and select it if it is found.
5067 # Check for GNU $ac_path_EGREP
5068 case `"$ac_path_EGREP" --version 2>&1` in
5070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5073 $as_echo_n 0123456789 >"conftest.in"
5076 cat "conftest.in" "conftest.in" >"conftest.tmp"
5077 mv "conftest.tmp" "conftest.in"
5078 cp "conftest.in" "conftest.nl"
5079 $as_echo 'EGREP' >> "conftest.nl"
5080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5082 as_fn_arith $ac_count + 1 && ac_count=$as_val
5083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5084 # Best one so far, save it but keep looking for a better one
5085 ac_cv_path_EGREP="$ac_path_EGREP"
5086 ac_path_EGREP_max=$ac_count
5088 # 10*(2^10) chars as input seems more than enough
5089 test $ac_count -gt 10 && break
5091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5094 $ac_path_EGREP_found && break 3
5099 if test -z "$ac_cv_path_EGREP"; then
5100 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5103 ac_cv_path_EGREP=$EGREP
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5109 $as_echo "$ac_cv_path_EGREP" >&6; }
5110 EGREP="$ac_cv_path_EGREP"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5114 $as_echo_n "checking for ANSI C header files... " >&6; }
5115 if test "${ac_cv_header_stdc+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_header_stdc=yes
5136 ac_cv_header_stdc=no
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 if test $ac_cv_header_stdc = yes; then
5141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148 $EGREP "memchr" >/dev/null 2>&1; then :
5151 ac_cv_header_stdc=no
5157 if test $ac_cv_header_stdc = yes; then
5158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "free" >/dev/null 2>&1; then :
5168 ac_cv_header_stdc=no
5174 if test $ac_cv_header_stdc = yes; then
5175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5176 if test "$cross_compiling" = yes; then :
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5187 # define ISLOWER(c) \
5188 (('a' <= (c) && (c) <= 'i') \
5189 || ('j' <= (c) && (c) <= 'r') \
5190 || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5199 for (i = 0; i < 256; i++)
5200 if (XOR (islower (i), ISLOWER (i))
5201 || toupper (i) != TOUPPER (i))
5206 if ac_fn_c_try_run "$LINENO"; then :
5209 ac_cv_header_stdc=no
5211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5212 conftest.$ac_objext conftest.beam conftest.$ac_ext
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5218 $as_echo "$ac_cv_header_stdc" >&6; }
5219 if test $ac_cv_header_stdc = yes; then
5221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5227 inttypes.h stdint.h unistd.h
5229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5232 eval as_val=\$$as_ac_Header
5233 if test "x$as_val" = x""yes; then :
5234 cat >>confdefs.h <<_ACEOF
5235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5244 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5252 if test "$MINIX" = yes; then
5254 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5257 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5260 $as_echo "#define _MINIX 1" >>confdefs.h
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5266 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5267 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5273 # define __EXTENSIONS__ 1
5274 $ac_includes_default
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 ac_cv_safe_to_define___extensions__=yes
5286 ac_cv_safe_to_define___extensions__=no
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5291 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5292 test $ac_cv_safe_to_define___extensions__ = yes &&
5293 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5295 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5297 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5299 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5301 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5315 if test -z "$CPP"; then
5316 if test "${ac_cv_prog_CPP+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 # Double quotes because CPP needs to be expanded
5320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5323 for ac_c_preproc_warn_flag in '' yes
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5334 # include <limits.h>
5336 # include <assert.h>
5340 if ac_fn_c_try_cpp "$LINENO"; then :
5343 # Broken: fails on valid input.
5346 rm -f conftest.err conftest.$ac_ext
5348 # OK, works on sane cases. Now check whether nonexistent headers
5349 # can be detected and how.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <ac_nonexistent.h>
5354 if ac_fn_c_try_cpp "$LINENO"; then :
5355 # Broken: success on invalid input.
5358 # Passes both tests.
5362 rm -f conftest.err conftest.$ac_ext
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.$ac_ext
5367 if $ac_preproc_ok; then :
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5380 $as_echo "$CPP" >&6; }
5382 for ac_c_preproc_warn_flag in '' yes
5384 # Use a header file that comes with gcc, so configuring glibc
5385 # with a fresh cross-compiler works.
5386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387 # <limits.h> exists even on freestanding compilers.
5388 # On the NeXT, cc -E runs the code through the compiler's parser,
5389 # not just through cpp. "Syntax error" is here to catch this case.
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 # include <limits.h>
5395 # include <assert.h>
5399 if ac_fn_c_try_cpp "$LINENO"; then :
5402 # Broken: fails on valid input.
5405 rm -f conftest.err conftest.$ac_ext
5407 # OK, works on sane cases. Now check whether nonexistent headers
5408 # can be detected and how.
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #include <ac_nonexistent.h>
5413 if ac_fn_c_try_cpp "$LINENO"; then :
5414 # Broken: success on invalid input.
5417 # Passes both tests.
5421 rm -f conftest.err conftest.$ac_ext
5424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5425 rm -f conftest.err conftest.$ac_ext
5426 if $ac_preproc_ok; then :
5429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5431 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." "$LINENO" 5; }
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5442 $as_echo_n "checking for inline... " >&6; }
5443 if test "${ac_cv_c_inline+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5447 for ac_kw in inline __inline__ __inline; do
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5452 static $ac_kw foo_t static_foo () {return 0; }
5453 $ac_kw foo_t foo () {return 0; }
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 ac_cv_c_inline=$ac_kw
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 test "$ac_cv_c_inline" != no && break
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5466 $as_echo "$ac_cv_c_inline" >&6; }
5468 case $ac_cv_c_inline in
5471 case $ac_cv_c_inline in
5473 *) ac_val=$ac_cv_c_inline;;
5475 cat >>confdefs.h <<_ACEOF
5477 #define inline $ac_val
5484 # sizeof(char) is 1 by definition.
5485 # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5490 $as_echo_n "checking size of void *... " >&6; }
5491 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5494 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5497 if test "$ac_cv_type_void_p" = yes; then
5498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 { as_fn_set_status 77
5501 as_fn_error "cannot compute sizeof (void *)
5502 See \`config.log' for more details." "$LINENO" 5; }; }
5504 ac_cv_sizeof_void_p=0
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5514 cat >>confdefs.h <<_ACEOF
5515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5519 # The cast to long int works around a bug in the HP C Compiler
5520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5522 # This bug is HP SR number 8606223364.
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5524 $as_echo_n "checking size of short... " >&6; }
5525 if test "${ac_cv_sizeof_short+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5528 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5531 if test "$ac_cv_type_short" = yes; then
5532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 { as_fn_set_status 77
5535 as_fn_error "cannot compute sizeof (short)
5536 See \`config.log' for more details." "$LINENO" 5; }; }
5538 ac_cv_sizeof_short=0
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5544 $as_echo "$ac_cv_sizeof_short" >&6; }
5548 cat >>confdefs.h <<_ACEOF
5549 #define SIZEOF_SHORT $ac_cv_sizeof_short
5553 # The cast to long int works around a bug in the HP C Compiler
5554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5556 # This bug is HP SR number 8606223364.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5558 $as_echo_n "checking size of int... " >&6; }
5559 if test "${ac_cv_sizeof_int+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5562 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5565 if test "$ac_cv_type_int" = yes; then
5566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 { as_fn_set_status 77
5569 as_fn_error "cannot compute sizeof (int)
5570 See \`config.log' for more details." "$LINENO" 5; }; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5578 $as_echo "$ac_cv_sizeof_int" >&6; }
5582 cat >>confdefs.h <<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5587 # The cast to long int works around a bug in the HP C Compiler
5588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5590 # This bug is HP SR number 8606223364.
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5592 $as_echo_n "checking size of long... " >&6; }
5593 if test "${ac_cv_sizeof_long+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5599 if test "$ac_cv_type_long" = yes; then
5600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602 { as_fn_set_status 77
5603 as_fn_error "cannot compute sizeof (long)
5604 See \`config.log' for more details." "$LINENO" 5; }; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5612 $as_echo "$ac_cv_sizeof_long" >&6; }
5616 cat >>confdefs.h <<_ACEOF
5617 #define SIZEOF_LONG $ac_cv_sizeof_long
5621 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5622 if test "x$ac_cv_type_long_long" = x""yes; then :
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_LONG_LONG 1
5628 # The cast to long int works around a bug in the HP C Compiler
5629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5631 # This bug is HP SR number 8606223364.
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5633 $as_echo_n "checking size of long long... " >&6; }
5634 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5640 if test "$ac_cv_type_long_long" = yes; then
5641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 { as_fn_set_status 77
5644 as_fn_error "cannot compute sizeof (long long)
5645 See \`config.log' for more details." "$LINENO" 5; }; }
5647 ac_cv_sizeof_long_long=0
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5653 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5657 cat >>confdefs.h <<_ACEOF
5658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5664 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5665 if test "x$ac_cv_type___int64" = x""yes; then :
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE___INT64 1
5671 # The cast to long int works around a bug in the HP C Compiler
5672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5674 # This bug is HP SR number 8606223364.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5676 $as_echo_n "checking size of __int64... " >&6; }
5677 if test "${ac_cv_sizeof___int64+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5680 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5683 if test "$ac_cv_type___int64" = yes; then
5684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686 { as_fn_set_status 77
5687 as_fn_error "cannot compute sizeof (__int64)
5688 See \`config.log' for more details." "$LINENO" 5; }; }
5690 ac_cv_sizeof___int64=0
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5696 $as_echo "$ac_cv_sizeof___int64" >&6; }
5700 cat >>confdefs.h <<_ACEOF
5701 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5708 # ---------------------
5709 # Warnings and checking
5710 # ---------------------
5712 # Check $CC warning features (if it's GCC).
5713 # We want to use -pedantic, but we don't want warnings about
5716 # * overlong strings
5717 # So, we only use -pedantic if we can disable those warnings.
5720 save_CFLAGS="$CFLAGS"
5721 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
5722 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5725 $as_echo_n "checking whether $CC supports $option... " >&6; }
5726 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5727 $as_echo_n "(cached) " >&6
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742 eval "$as_acx_Woption=yes"
5744 eval "$as_acx_Woption=no"
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 eval ac_res=\$$as_acx_Woption
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5751 $as_echo "$ac_res" >&6; }
5752 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5753 loose_warn="$loose_warn${loose_warn:+ }$option"
5756 CFLAGS="$save_CFLAGS"
5759 save_CFLAGS="$CFLAGS"
5760 for option in -Wstrict-prototypes -Wmissing-prototypes; do
5761 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5764 $as_echo_n "checking whether $CC supports $option... " >&6; }
5765 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5766 $as_echo_n "(cached) " >&6
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 eval "$as_acx_Woption=yes"
5783 eval "$as_acx_Woption=no"
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 eval ac_res=\$$as_acx_Woption
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5790 $as_echo "$ac_res" >&6; }
5791 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5792 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
5795 CFLAGS="$save_CFLAGS"
5798 save_CFLAGS="$CFLAGS"
5799 for option in -Wmissing-format-attribute; do
5800 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5803 $as_echo_n "checking whether $CC supports $option... " >&6; }
5804 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5805 $as_echo_n "(cached) " >&6
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5819 if ac_fn_c_try_compile "$LINENO"; then :
5820 eval "$as_acx_Woption=yes"
5822 eval "$as_acx_Woption=no"
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 eval ac_res=\$$as_acx_Woption
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5829 $as_echo "$ac_res" >&6; }
5830 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5831 strict_warn="$strict_warn${strict_warn:+ }$option"
5834 CFLAGS="$save_CFLAGS"
5837 save_CFLAGS="$CFLAGS"
5838 for option in -Wold-style-definition -Wc++-compat; do
5839 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5842 $as_echo_n "checking whether $CC supports $option... " >&6; }
5843 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5844 $as_echo_n "(cached) " >&6
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5858 if ac_fn_c_try_compile "$LINENO"; then :
5859 eval "$as_acx_Woption=yes"
5861 eval "$as_acx_Woption=no"
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 eval ac_res=\$$as_acx_Woption
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5868 $as_echo "$ac_res" >&6; }
5869 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5870 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
5873 CFLAGS="$save_CFLAGS"
5875 if test "$GCC" = yes; then :
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
5877 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
5878 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5881 save_CFLAGS="$CFLAGS"
5882 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5894 if ac_fn_c_try_compile "$LINENO"; then :
5895 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
5897 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 CFLAGS="$save_CFLAGS"
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
5903 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
5904 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
5905 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
5910 # Check whether --enable-werror-always was given.
5911 if test "${enable_werror_always+set}" = set; then :
5912 enableval=$enable_werror_always;
5914 enable_werror_always=no
5917 if test $enable_werror_always = yes; then :
5918 strict_warn="$strict_warn${strict_warn:+ }-Werror"
5923 # The above macros do nothing if the compiler is not GCC. However, the
5924 # Makefile has more goo to add other flags, so these variables are used
5925 # to enable warnings only for GCC.
5928 if test "x$GCC" = "xyes"; then
5929 warn_cflags='$(GCC_WARN_CFLAGS)'
5930 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
5935 # Enable expensive internal checks
5937 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
5941 # Check whether --enable-checking was given.
5942 if test "${enable_checking+set}" = set; then :
5943 enableval=$enable_checking; ac_checking_flags="${enableval}"
5946 # Determine the default checks.
5947 if test x$is_release = x ; then
5948 ac_checking_flags=yes
5950 ac_checking_flags=release
5954 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
5955 for check in release $ac_checking_flags
5958 # these set all the flags to specific states
5959 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
5960 ac_fold_checking= ; ac_gc_checking=1 ;
5961 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
5962 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
5963 ac_tree_checking=1 ; ac_valgrind_checking= ;
5964 ac_types_checking=1 ;;
5965 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
5966 ac_fold_checking= ; ac_gc_checking= ;
5967 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
5968 ac_rtlflag_checking= ; ac_runtime_checking= ;
5969 ac_tree_checking= ; ac_valgrind_checking= ;
5970 ac_types_checking= ;;
5971 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
5972 ac_fold_checking=1 ; ac_gc_checking=1 ;
5973 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
5974 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
5975 ac_tree_checking=1 ; ac_valgrind_checking= ;
5976 ac_types_checking=1 ;;
5977 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
5978 ac_fold_checking= ; ac_gc_checking= ;
5979 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
5980 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
5981 ac_tree_checking= ; ac_valgrind_checking= ;
5982 ac_types_checking= ;;
5983 # these enable particular checks
5984 assert) ac_assert_checking=1 ;;
5985 df) ac_df_checking=1 ;;
5986 fold) ac_fold_checking=1 ;;
5987 gc) ac_gc_checking=1 ;;
5988 gcac) ac_gc_always_collect=1 ;;
5989 gimple) ac_gimple_checking=1 ;;
5990 misc) ac_checking=1 ;;
5991 rtl) ac_rtl_checking=1 ;;
5992 rtlflag) ac_rtlflag_checking=1 ;;
5993 runtime) ac_runtime_checking=1 ;;
5994 tree) ac_tree_checking=1 ;;
5995 types) ac_types_checking=1 ;;
5996 valgrind) ac_valgrind_checking=1 ;;
5997 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6003 if test x$ac_checking != x ; then
6005 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6007 nocommon_flag=-fno-common
6010 if test x$ac_df_checking != x ; then
6012 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6015 if test x$ac_assert_checking != x ; then
6017 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6020 if test x$ac_gimple_checking != x ; then
6022 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6026 if test x$ac_runtime_checking != x ; then
6028 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6031 if test x$ac_tree_checking != x ; then
6033 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6035 TREEBROWSER=tree-browser.o
6037 if test x$ac_types_checking != x ; then
6039 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6043 if test x$ac_rtl_checking != x ; then
6045 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6048 if test x$ac_rtlflag_checking != x ; then
6050 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6053 if test x$ac_gc_checking != x ; then
6055 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6058 if test x$ac_gc_always_collect != x ; then
6060 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6063 if test x$ac_fold_checking != x ; then
6065 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6068 valgrind_path_defines=
6071 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6072 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6080 if test x$ac_valgrind_checking != x ; then
6081 # It is certainly possible that there's valgrind but no valgrind.h.
6082 # GCC relies on making annotations so we must have both.
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6084 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 #include <valgrind/memcheck.h>
6088 #ifndef VALGRIND_DISCARD
6089 #error VALGRIND_DISCARD not defined
6092 if ac_fn_c_try_cpp "$LINENO"; then :
6093 gcc_cv_header_valgrind_memcheck_h=yes
6095 gcc_cv_header_valgrind_memcheck_h=no
6097 rm -f conftest.err conftest.$ac_ext
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6099 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6101 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include <memcheck.h>
6105 #ifndef VALGRIND_DISCARD
6106 #error VALGRIND_DISCARD not defined
6109 if ac_fn_c_try_cpp "$LINENO"; then :
6110 gcc_cv_header_memcheck_h=yes
6112 gcc_cv_header_memcheck_h=no
6114 rm -f conftest.err conftest.$ac_ext
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6116 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6118 # Prepare PATH_SEPARATOR.
6119 # The user is always right.
6120 if test "${PATH_SEPARATOR+set}" != set; then
6121 echo "#! /bin/sh" >conf$$.sh
6122 echo "exit 0" >>conf$$.sh
6124 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6132 # Find out how to test for executable files. Don't use a zero-byte file,
6133 # as systems may use methods other than mode bits to determine executability.
6134 cat >conf$$.file <<_ASEOF
6138 chmod +x conf$$.file
6139 if test -x conf$$.file >/dev/null 2>&1; then
6140 ac_executable_p="test -x"
6142 ac_executable_p="test -f"
6146 # Extract the first word of "valgrind", so it can be a program name with args.
6147 set dummy valgrind; ac_word=$2
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6151 $as_echo_n "(cached) " >&6
6153 case "$valgrind_path" in
6155 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6158 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6159 for ac_dir in $PATH; do
6161 test -z "$ac_dir" && ac_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6164 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6165 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6175 valgrind_path="$ac_cv_path_valgrind_path"
6176 if test -n "$valgrind_path"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6178 $as_echo "$valgrind_path" >&6; }
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6184 if test "x$valgrind_path" = "x" \
6185 || (test $have_valgrind_h = no \
6186 && test $gcc_cv_header_memcheck_h = no \
6187 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6188 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6190 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6191 valgrind_command="$valgrind_path -q"
6193 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6195 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6197 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6200 if test $gcc_cv_header_memcheck_h = yes; then
6202 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6209 # Enable code coverage collection
6210 # Check whether --enable-coverage was given.
6211 if test "${enable_coverage+set}" = set; then :
6212 enableval=$enable_coverage; case "${enableval}" in
6214 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6217 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6220 # a.k.a. --disable-coverage
6224 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6233 # Check whether --enable-gather-detailed-mem-stats was given.
6234 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6235 enableval=$enable_gather_detailed_mem_stats;
6237 enable_gather_detailed_mem_stats=no
6240 if test x$enable_gather_detailed_mem_stats = xyes ; then
6242 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6246 # -------------------------------
6247 # Miscenalleous configure options
6248 # -------------------------------
6250 # See if we are building gcc with C++.
6251 # Check whether --enable-build-with-cxx was given.
6252 if test "${enable_build_with_cxx+set}" = set; then :
6253 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6255 ENABLE_BUILD_WITH_CXX=no
6262 # Check whether --with-stabs was given.
6263 if test "${with_stabs+set}" = set; then :
6264 withval=$with_stabs; stabs="$with_stabs"
6270 # Determine whether or not multilibs are enabled.
6271 # Check whether --enable-multilib was given.
6272 if test "${enable_multilib+set}" = set; then :
6273 enableval=$enable_multilib;
6280 # Enable __cxa_atexit for C++.
6281 # Check whether --enable-__cxa_atexit was given.
6282 if test "${enable___cxa_atexit+set}" = set; then :
6283 enableval=$enable___cxa_atexit;
6287 # Enable C extension for decimal float if target supports it.
6288 # Check whether --enable-decimal-float was given.
6289 if test "${enable_decimal_float+set}" = set; then :
6290 enableval=$enable_decimal_float;
6291 case $enable_decimal_float in
6292 yes | no | bid | dpd) ;;
6293 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6294 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6300 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6301 enable_decimal_float=yes
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6305 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6306 enable_decimal_float=no
6313 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6315 cat >>confdefs.h <<_ACEOF
6316 #define ENABLE_DECIMAL_FLOAT $dfp
6320 # x86's use BID format instead of DPD
6321 case x$enable_decimal_float in
6324 i?86*-*-linux* | x86_64*-*-linux*)
6325 enable_decimal_float=bid
6328 enable_decimal_float=dpd
6333 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6334 # dependency on libdecnumber.
6335 enable_decimal_float=dpd
6340 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6342 cat >>confdefs.h <<_ACEOF
6343 #define ENABLE_DECIMAL_BID_FORMAT $bid
6347 # Enable C extension for fixed-point arithmetic.
6348 # Check whether --enable-fixed-point was given.
6349 if test "${enable_fixed_point+set}" = set; then :
6350 enableval=$enable_fixed_point;
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6359 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6360 enable_fixed_point=no
6363 enable_fixed_point=yes
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6369 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6370 enable_fixed_point=no
6378 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6380 cat >>confdefs.h <<_ACEOF
6381 #define ENABLE_FIXED_POINT $fixedpoint
6386 # Pass with no value to take the default
6387 # Pass with a value to specify a thread package
6388 # Check whether --enable-threads was given.
6389 if test "${enable_threads+set}" = set; then :
6390 enableval=$enable_threads;
6396 # Check whether --enable-tls was given.
6397 if test "${enable_tls+set}" = set; then :
6398 enableval=$enable_tls;
6401 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6402 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6410 # Check whether --enable-objc-gc was given.
6411 if test "${enable_objc_gc+set}" = set; then :
6412 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6423 # Check whether --with-dwarf2 was given.
6424 if test "${with_dwarf2+set}" = set; then :
6425 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6431 # Check whether --enable-shared was given.
6432 if test "${enable_shared+set}" = set; then :
6433 enableval=$enable_shared;
6434 case $enable_shared in
6438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6439 for pkg in $enableval; do
6440 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6455 # Check whether --with-build-sysroot was given.
6456 if test "${with_build_sysroot+set}" = set; then :
6457 withval=$with_build_sysroot;
6462 # Check whether --with-sysroot was given.
6463 if test "${with_sysroot+set}" = set; then :
6464 withval=$with_sysroot;
6465 case ${with_sysroot} in
6466 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6467 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6470 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6471 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6473 if test "x$prefix" = xNONE; then
6474 test_prefix=/usr/local
6478 if test "x$exec_prefix" = xNONE; then
6479 test_exec_prefix=$test_prefix
6481 test_exec_prefix=$exec_prefix
6483 case ${TARGET_SYSTEM_ROOT} in
6484 "${test_prefix}"|"${test_prefix}/"*|\
6485 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6486 '${prefix}'|'${prefix}/'*|\
6487 '${exec_prefix}'|'${exec_prefix}/'*)
6488 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6489 TARGET_SYSTEM_ROOT_DEFINE="$t"
6496 TARGET_SYSTEM_ROOT_DEFINE=
6497 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6505 # Build with intermodule optimisations
6506 # Check whether --enable-intermodule was given.
6507 if test "${enable_intermodule+set}" = set; then :
6508 enableval=$enable_intermodule; case ${enable_intermodule} in
6509 yes) onestep="-onestep";;
6520 # Check whether --with-pkgversion was given.
6521 if test "${with_pkgversion+set}" = set; then :
6522 withval=$with_pkgversion; case "$withval" in
6523 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6525 *) PKGVERSION="($withval) " ;;
6536 # Check whether --with-bugurl was given.
6537 if test "${with_bugurl+set}" = set; then :
6538 withval=$with_bugurl; case "$withval" in
6539 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6542 *) BUGURL="$withval"
6546 BUGURL="http://gcc.gnu.org/bugs.html"
6556 REPORT_BUGS_TO="<$BUGURL>"
6557 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6564 # Sanity check enable_languages in case someone does not run the toplevel
6565 # configure # script.
6566 # Check whether --enable-languages was given.
6567 if test "${enable_languages+set}" = set; then :
6568 enableval=$enable_languages; case ,${enable_languages}, in
6570 # go safe -- we cannot be much sure without the toplevel
6572 # analysis of which target libs are present and usable
6576 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6581 enable_languages=c,${enable_languages}
6589 # Used by documentation targets
6595 # Check whether --with-multilib-list was given.
6596 if test "${with_multilib_list+set}" = set; then :
6597 withval=$with_multilib_list; :
6599 with_multilib_list=default
6603 # -------------------------
6604 # Checks for other programs
6605 # -------------------------
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6608 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6610 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6611 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6612 $as_echo_n "(cached) " >&6
6614 cat >conftest.make <<\_ACEOF
6617 @echo '@@@%%%=$(MAKE)=@@@%%%'
6619 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6620 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6622 eval ac_cv_prog_make_${ac_make}_set=yes;;
6624 eval ac_cv_prog_make_${ac_make}_set=no;;
6628 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6630 $as_echo "yes" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 SET_MAKE="MAKE=${MAKE-make}"
6639 # Find some useful tools
6640 for ac_prog in gawk mawk nawk awk
6642 # Extract the first word of "$ac_prog", so it can be a program name with args.
6643 set dummy $ac_prog; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if test "${ac_cv_prog_AWK+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6649 if test -n "$AWK"; then
6650 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_AWK="$ac_prog"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 if test -n "$AWK"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6672 $as_echo "$AWK" >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6679 test -n "$AWK" && break
6682 # We need awk to create options.c and options.h.
6683 # Bail out if it's missing.
6685 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6689 $as_echo_n "checking whether ln -s works... " >&6; }
6690 if test "${gcc_cv_prog_LN_S+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6693 rm -f conftestdata_t
6694 echo >conftestdata_f
6695 if ln -s conftestdata_f conftestdata_t 2>/dev/null
6697 gcc_cv_prog_LN_S="ln -s"
6699 if ln conftestdata_f conftestdata_t 2>/dev/null
6703 if cp -p conftestdata_f conftestdata_t 2>/dev/null
6705 gcc_cv_prog_LN_S="cp -p"
6711 rm -f conftestdata_f conftestdata_t
6714 LN_S="$gcc_cv_prog_LN_S"
6715 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6717 $as_echo "yes" >&6; }
6719 if test "$gcc_cv_prog_LN_S" = "ln"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
6721 $as_echo "no, using ln" >&6; }
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
6724 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
6729 $as_echo_n "checking whether ln works... " >&6; }
6730 if test "${acx_cv_prog_LN+set}" = set; then :
6731 $as_echo_n "(cached) " >&6
6733 rm -f conftestdata_t
6734 echo >conftestdata_f
6735 if ln conftestdata_f conftestdata_t 2>/dev/null
6741 rm -f conftestdata_f conftestdata_t
6744 if test $acx_cv_prog_LN = no; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
6747 $as_echo "no, using $LN" >&6; }
6749 LN="$acx_cv_prog_LN"
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6751 $as_echo "yes" >&6; }
6754 if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6760 $as_echo_n "(cached) " >&6
6762 if test -n "$RANLIB"; then
6763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 RANLIB=$ac_cv_prog_RANLIB
6783 if test -n "$RANLIB"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6785 $as_echo "$RANLIB" >&6; }
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6793 if test -z "$ac_cv_prog_RANLIB"; then
6794 ac_ct_RANLIB=$RANLIB
6795 # Extract the first word of "ranlib", so it can be a program name with args.
6796 set dummy ranlib; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6800 $as_echo_n "(cached) " >&6
6802 if test -n "$ac_ct_RANLIB"; then
6803 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_prog_ac_ct_RANLIB="ranlib"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6823 if test -n "$ac_ct_RANLIB"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6825 $as_echo "$ac_ct_RANLIB" >&6; }
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6831 if test "x$ac_ct_RANLIB" = x; then
6834 case $cross_compiling:$ac_tool_warned in
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838 ac_tool_warned=yes ;;
6840 RANLIB=$ac_ct_RANLIB
6843 RANLIB="$ac_cv_prog_RANLIB"
6848 # By default, the Darwin ranlib will not treat common symbols as
6849 # definitions when building the archive table of contents. Other
6850 # ranlibs do that; pass an option to the Darwin ranlib that makes
6851 # it behave similarly.
6859 # Find a good install program. We prefer a C program (faster),
6860 # so one script is as good as another. But avoid the broken or
6861 # incompatible versions:
6862 # SysV /etc/install, /usr/sbin/install
6863 # SunOS /usr/etc/install
6864 # IRIX /sbin/install
6866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6868 # ./install, which can be erroneously created by make from ./install.sh.
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
6870 $as_echo_n "checking for a BSD compatible install... " >&6; }
6871 if test -z "$INSTALL"; then
6872 if test "${ac_cv_path_install+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6875 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
6876 for ac_dir in $PATH; do
6877 # Account for people who put trailing slashes in PATH elements.
6879 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6881 # OSF1 and SCO ODT 3.0 have their own names for install.
6882 for ac_prog in ginstall scoinst install; do
6883 if test -f $ac_dir/$ac_prog; then
6884 if test $ac_prog = install &&
6885 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6886 # AIX install. It has an incompatible calling convention.
6887 # OSF/1 installbsd also uses dspmsg, but is usable.
6890 ac_cv_path_install="$ac_dir/$ac_prog -c"
6901 if test "${ac_cv_path_install+set}" = set; then
6902 INSTALL="$ac_cv_path_install"
6904 # As a last resort, use the slow shell script. We don't cache a
6905 # path for INSTALL within a source directory, because that will
6906 # break other packages using the cache if that directory is
6907 # removed, or if the path is relative.
6908 INSTALL="$ac_install_sh"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6912 $as_echo "$INSTALL" >&6; }
6914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6915 # It thinks the first close brace ends the variable substitution.
6916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6918 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6921 # See if cmp has --ignore-initial.
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
6923 $as_echo_n "checking for cmp's capabilities... " >&6; }
6924 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6929 gcc_cv_prog_cmp_skip=slowcompare
6930 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
6931 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6934 gcc_cv_prog_cmp_skip=gnucompare
6937 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
6938 if cmp t1 t2 2 2 > /dev/null 2>&1; then
6939 if cmp t1 t2 1 1 > /dev/null 2>&1; then
6942 gcc_cv_prog_cmp_skip=fastcompare
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
6950 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
6951 make_compare_target=$gcc_cv_prog_cmp_skip
6955 # See if we have the mktemp command.
6956 # Extract the first word of "mktemp", so it can be a program name with args.
6957 set dummy mktemp; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6963 if test -n "$have_mktemp_command"; then
6964 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_prog_have_mktemp_command="yes"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
6984 have_mktemp_command=$ac_cv_prog_have_mktemp_command
6985 if test -n "$have_mktemp_command"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
6987 $as_echo "$have_mktemp_command" >&6; }
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6995 # See if makeinfo has been installed and is modern enough
6996 # that we can use it.
6998 # Extract the first word of "makeinfo", so it can be a program name with args.
6999 set dummy makeinfo; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
7005 if test -n "$MAKEINFO"; then
7006 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_prog_MAKEINFO="makeinfo"
7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 MAKEINFO=$ac_cv_prog_MAKEINFO
7026 if test -n "$MAKEINFO"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7028 $as_echo "$MAKEINFO" >&6; }
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7035 if test -n "$MAKEINFO"; then
7036 # Found it, now check the version.
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7038 $as_echo_n "checking for modern makeinfo... " >&6; }
7039 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7040 $as_echo_n "(cached) " >&6
7042 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7043 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7045 case $ac_prog_version in
7046 '') gcc_cv_prog_makeinfo_modern=no;;
7047 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7048 *) gcc_cv_prog_makeinfo_modern=no;;
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7053 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7055 gcc_cv_prog_makeinfo_modern=no
7057 if test $gcc_cv_prog_makeinfo_modern = no; then
7058 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7061 if test $gcc_cv_prog_makeinfo_modern = no; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7063 *** Makeinfo is missing or too old.
7064 *** Info documentation will not be built." >&5
7065 $as_echo "$as_me: WARNING:
7066 *** Makeinfo is missing or too old.
7067 *** Info documentation will not be built." >&2;}
7074 # Is pod2man recent enough to regenerate manpages?
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7076 $as_echo_n "checking for recent Pod::Man... " >&6; }
7077 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7079 $as_echo "yes" >&6; }
7080 GENERATED_MANPAGES=generated-manpages
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7088 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7093 # Extract the first word of "$ac_prog", so it can be a program name with args.
7094 set dummy $ac_prog; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if test "${ac_cv_prog_FLEX+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7100 if test -n "$FLEX"; then
7101 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_prog_FLEX="$ac_prog"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 FLEX=$ac_cv_prog_FLEX
7121 if test -n "$FLEX"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7123 $as_echo "$FLEX" >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7130 test -n "$FLEX" && break
7132 test -n "$FLEX" || FLEX="$MISSING flex"
7136 for ac_prog in bison
7138 # Extract the first word of "$ac_prog", so it can be a program name with args.
7139 set dummy $ac_prog; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_BISON+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7145 if test -n "$BISON"; then
7146 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_BISON="$ac_prog"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 BISON=$ac_cv_prog_BISON
7166 if test -n "$BISON"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7168 $as_echo "$BISON" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7175 test -n "$BISON" && break
7177 test -n "$BISON" || BISON="$MISSING bison"
7180 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7181 # check for build == host before using them.
7184 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7185 && test -d ../binutils ; then
7186 NM='$(objdir)/../binutils/nm-new'
7188 # Extract the first word of "nm", so it can be a program name with args.
7189 set dummy nm; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_NM+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7195 if test -n "$NM"; then
7196 ac_cv_prog_NM="$NM" # Let the user override the test.
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7217 if test -n "$NM"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7219 $as_echo "$NM" >&6; }
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7229 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7230 && test -d ../binutils ; then
7231 AR='$(objdir)/../binutils/ar'
7233 # Extract the first word of "ar", so it can be a program name with args.
7234 set dummy ar; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if test "${ac_cv_prog_AR+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7240 if test -n "$AR"; then
7241 ac_cv_prog_AR="$AR" # Let the user override the test.
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7262 if test -n "$AR"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7264 $as_echo "$AR" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7274 # --------------------
7275 # Checks for C headers
7276 # --------------------
7278 # Need to reject headers which give warnings, so that the -Werror bootstrap
7279 # works later. *sigh* This needs to come before all header checks.
7281 ac_c_preproc_warn_flag=yes
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7284 $as_echo_n "checking for ANSI C header files... " >&6; }
7285 if test "${ac_cv_header_stdc+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7303 if ac_fn_c_try_compile "$LINENO"; then :
7304 ac_cv_header_stdc=yes
7306 ac_cv_header_stdc=no
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 if test $ac_cv_header_stdc = yes; then
7311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318 $EGREP "memchr" >/dev/null 2>&1; then :
7321 ac_cv_header_stdc=no
7327 if test $ac_cv_header_stdc = yes; then
7328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7335 $EGREP "free" >/dev/null 2>&1; then :
7338 ac_cv_header_stdc=no
7344 if test $ac_cv_header_stdc = yes; then
7345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7346 if test "$cross_compiling" = yes; then :
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7353 #if ((' ' & 0x0FF) == 0x020)
7354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7357 # define ISLOWER(c) \
7358 (('a' <= (c) && (c) <= 'i') \
7359 || ('j' <= (c) && (c) <= 'r') \
7360 || ('s' <= (c) && (c) <= 'z'))
7361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7369 for (i = 0; i < 256; i++)
7370 if (XOR (islower (i), ISLOWER (i))
7371 || toupper (i) != TOUPPER (i))
7376 if ac_fn_c_try_run "$LINENO"; then :
7379 ac_cv_header_stdc=no
7381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7382 conftest.$ac_objext conftest.beam conftest.$ac_ext
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7388 $as_echo "$ac_cv_header_stdc" >&6; }
7389 if test $ac_cv_header_stdc = yes; then
7391 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7396 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7397 if test "${ac_cv_header_time+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7402 #include <sys/types.h>
7403 #include <sys/time.h>
7409 if ((struct tm *) 0)
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416 ac_cv_header_time=yes
7418 ac_cv_header_time=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7423 $as_echo "$ac_cv_header_time" >&6; }
7424 if test $ac_cv_header_time = yes; then
7426 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7431 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7432 if test "${gcc_cv_header_string+set}" = set; then :
7433 $as_echo_n "(cached) " >&6
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7438 #include <strings.h>
7447 if ac_fn_c_try_compile "$LINENO"; then :
7448 gcc_cv_header_string=yes
7450 gcc_cv_header_string=no
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7455 $as_echo "$gcc_cv_header_string" >&6; }
7456 if test $gcc_cv_header_string = yes; then
7458 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7463 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7464 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 #include <sys/types.h>
7470 #include <sys/wait.h>
7472 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7475 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7483 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7488 if ac_fn_c_try_compile "$LINENO"; then :
7489 ac_cv_header_sys_wait_h=yes
7491 ac_cv_header_sys_wait_h=no
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7496 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7497 if test $ac_cv_header_sys_wait_h = yes; then
7499 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7503 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7504 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7505 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7506 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7510 eval as_val=\$$as_ac_Header
7511 if test "x$as_val" = x""yes; then :
7512 cat >>confdefs.h <<_ACEOF
7513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520 # Check for thread headers.
7521 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7522 if test "x$ac_cv_header_thread_h" = x""yes; then :
7528 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7529 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7536 # These tests can't be done till we know if we have limits.h.
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7538 $as_echo_n "checking for CHAR_BIT... " >&6; }
7539 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 #ifdef HAVE_LIMITS_H
7551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7552 $EGREP "found" >/dev/null 2>&1; then :
7553 gcc_cv_decl_char_bit=yes
7555 gcc_cv_decl_char_bit=no
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7562 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7563 if test $gcc_cv_decl_char_bit = no; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7565 $as_echo_n "checking number of bits in a byte... " >&6; }
7566 if test "${gcc_cv_c_nbby+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7571 while test $i -lt 65; do
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7579 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7580 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7586 if ac_fn_c_try_compile "$LINENO"; then :
7587 gcc_cv_c_nbby=$i; break
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7596 $as_echo "$gcc_cv_c_nbby" >&6; }
7597 if test $gcc_cv_c_nbby = failed; then
7598 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7601 cat >>confdefs.h <<_ACEOF
7602 #define CHAR_BIT $gcc_cv_c_nbby
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7608 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7609 if test "${ac_cv_c_bigendian+set}" = set; then :
7610 $as_echo_n "(cached) " >&6
7612 ac_cv_c_bigendian=unknown
7613 # See if we're dealing with a universal compiler.
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616 #ifndef __APPLE_CC__
7617 not a universal capable compiler
7622 if ac_fn_c_try_compile "$LINENO"; then :
7624 # Check for potential -arch flags. It is not universal unless
7625 # there are at least two -arch flags with different values.
7628 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7629 if test -n "$ac_prev"; then
7631 i?86 | x86_64 | ppc | ppc64)
7632 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7635 ac_cv_c_bigendian=universal
7641 elif test "x$ac_word" = "x-arch"; then
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647 if test $ac_cv_c_bigendian = unknown; then
7648 # See if sys/param.h defines the BYTE_ORDER macro.
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7651 #include <sys/types.h>
7652 #include <sys/param.h>
7657 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7658 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7667 if ac_fn_c_try_compile "$LINENO"; then :
7668 # It does; now see whether it defined to BIG_ENDIAN or not.
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7671 #include <sys/types.h>
7672 #include <sys/param.h>
7677 #if BYTE_ORDER != BIG_ENDIAN
7685 if ac_fn_c_try_compile "$LINENO"; then :
7686 ac_cv_c_bigendian=yes
7688 ac_cv_c_bigendian=no
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 if test $ac_cv_c_bigendian = unknown; then
7695 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7703 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7711 if ac_fn_c_try_compile "$LINENO"; then :
7712 # It does; now see whether it defined to _BIG_ENDIAN or not.
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7728 if ac_fn_c_try_compile "$LINENO"; then :
7729 ac_cv_c_bigendian=yes
7731 ac_cv_c_bigendian=no
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 if test $ac_cv_c_bigendian = unknown; then
7738 # Compile a test program.
7739 if test "$cross_compiling" = yes; then :
7740 # Try to guess by grepping values from an object file.
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 short int ascii_mm[] =
7744 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7745 short int ascii_ii[] =
7746 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7747 int use_ascii (int i) {
7748 return ascii_mm[i] + ascii_ii[i];
7750 short int ebcdic_ii[] =
7751 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7752 short int ebcdic_mm[] =
7753 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7754 int use_ebcdic (int i) {
7755 return ebcdic_mm[i] + ebcdic_ii[i];
7762 return use_ascii (foo) == use_ebcdic (foo);
7767 if ac_fn_c_try_compile "$LINENO"; then :
7768 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7769 ac_cv_c_bigendian=yes
7771 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7772 if test "$ac_cv_c_bigendian" = unknown; then
7773 ac_cv_c_bigendian=no
7775 # finding both strings is unlikely to happen, but who knows?
7776 ac_cv_c_bigendian=unknown
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7784 $ac_includes_default
7789 /* Are we little or big endian? From Harbison&Steele. */
7793 char c[sizeof (long int)];
7796 return u.c[sizeof (long int) - 1] == 1;
7802 if ac_fn_c_try_run "$LINENO"; then :
7803 ac_cv_c_bigendian=no
7805 ac_cv_c_bigendian=yes
7807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7808 conftest.$ac_objext conftest.beam conftest.$ac_ext
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7814 $as_echo "$ac_cv_c_bigendian" >&6; }
7815 case $ac_cv_c_bigendian in #(
7817 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7823 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7827 as_fn_error "unknown endianness
7828 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7837 # These libraries may be used by collect2.
7838 # We may need a special search path to get them linked.
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
7840 $as_echo_n "checking for collect2 libraries... " >&6; }
7841 if test "${gcc_cv_collect2_libs+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7845 for libs in '' -lld -lmld \
7846 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
7847 '-L/usr/lib/cmplrs/cc3.11 -lmld'
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7853 /* Override any GCC internal prototype to avoid an error.
7854 Use char because int might match the return type of a GCC
7855 builtin and then its argument prototype would still apply. */
7868 if ac_fn_c_try_link "$LINENO"; then :
7869 gcc_cv_collect2_libs="$libs"; break
7871 rm -f core conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7875 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
7878 $as_echo "$gcc_cv_collect2_libs" >&6; }
7879 case $gcc_cv_collect2_libs in
7881 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
7885 # When building Ada code on Alpha, we need exc_resume which is usually in
7886 # -lexc. So test for it.
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
7890 $as_echo_n "checking for library containing exc_resume... " >&6; }
7891 if test "${ac_cv_search_exc_resume+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7894 ac_func_search_save_LIBS=$LIBS
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7898 /* Override any GCC internal prototype to avoid an error.
7899 Use char because int might match the return type of a GCC
7900 builtin and then its argument prototype would still apply. */
7908 return exc_resume ();
7913 for ac_lib in '' exc; do
7914 if test -z "$ac_lib"; then
7915 ac_res="none required"
7918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7920 if ac_fn_c_try_link "$LINENO"; then :
7921 ac_cv_search_exc_resume=$ac_res
7923 rm -f core conftest.err conftest.$ac_objext \
7925 if test "${ac_cv_search_exc_resume+set}" = set; then :
7929 if test "${ac_cv_search_exc_resume+set}" = set; then :
7932 ac_cv_search_exc_resume=no
7935 LIBS=$ac_func_search_save_LIBS
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
7938 $as_echo "$ac_cv_search_exc_resume" >&6; }
7939 ac_res=$ac_cv_search_exc_resume
7940 if test "$ac_res" != no; then :
7941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7949 # Some systems put ldexp and frexp in libm instead of libc; assume
7950 # they're both in the same place. jcf-dump needs them.
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
7954 $as_echo_n "checking for library containing ldexp... " >&6; }
7955 if test "${ac_cv_search_ldexp+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
7958 ac_func_search_save_LIBS=$LIBS
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7962 /* Override any GCC internal prototype to avoid an error.
7963 Use char because int might match the return type of a GCC
7964 builtin and then its argument prototype would still apply. */
7977 for ac_lib in '' m; do
7978 if test -z "$ac_lib"; then
7979 ac_res="none required"
7982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7984 if ac_fn_c_try_link "$LINENO"; then :
7985 ac_cv_search_ldexp=$ac_res
7987 rm -f core conftest.err conftest.$ac_objext \
7989 if test "${ac_cv_search_ldexp+set}" = set; then :
7993 if test "${ac_cv_search_ldexp+set}" = set; then :
7996 ac_cv_search_ldexp=no
7999 LIBS=$ac_func_search_save_LIBS
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8002 $as_echo "$ac_cv_search_ldexp" >&6; }
8003 ac_res=$ac_cv_search_ldexp
8004 if test "$ac_res" != no; then :
8005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8013 # Use <inttypes.h> only if it exists,
8014 # doesn't clash with <sys/types.h>, and declares intmax_t.
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8016 $as_echo_n "checking for inttypes.h... " >&6; }
8017 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8022 #include <sys/types.h>
8023 #include <inttypes.h>
8032 if ac_fn_c_try_compile "$LINENO"; then :
8033 gcc_cv_header_inttypes_h=yes
8035 gcc_cv_header_inttypes_h=no
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8041 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8042 if test $gcc_cv_header_inttypes_h = yes; then
8044 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8050 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8051 sysconf strsignal getrusage nl_langinfo \
8052 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8053 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
8055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8056 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8057 eval as_val=\$$as_ac_var
8058 if test "x$as_val" = x""yes; then :
8059 cat >>confdefs.h <<_ACEOF
8060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8067 if test x$ac_cv_func_mbstowcs = xyes; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8069 $as_echo_n "checking whether mbstowcs works... " >&6; }
8070 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
8073 if test "$cross_compiling" = yes; then :
8074 gcc_cv_func_mbstowcs_works=yes
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8085 if ac_fn_c_try_run "$LINENO"; then :
8086 gcc_cv_func_mbstowcs_works=yes
8088 gcc_cv_func_mbstowcs_works=no
8090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8091 conftest.$ac_objext conftest.beam conftest.$ac_ext
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8096 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8097 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8099 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8104 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8105 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8109 cat >>confdefs.h <<_ACEOF
8115 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8116 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8120 cat >>confdefs.h <<_ACEOF
8121 #define caddr_t char *
8128 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8129 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8130 gcc_header_sys_mman_h=yes
8132 gcc_header_sys_mman_h=no
8135 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8136 if test "x$ac_cv_func_mmap" = x""yes; then :
8142 if test "$gcc_header_sys_mman_h" != yes \
8143 || test "$gcc_func_mmap" != yes; then
8144 gcc_cv_func_mmap_file=no
8145 gcc_cv_func_mmap_dev_zero=no
8146 gcc_cv_func_mmap_anon=no
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8149 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8150 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8153 # Add a system to this blacklist if
8154 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8155 # memory area containing the same data that you'd get if you applied
8156 # read() to the same fd. The only system known to have a problem here
8157 # is VMS, where text files have record structure.
8160 gcc_cv_func_mmap_file=no ;;
8162 gcc_cv_func_mmap_file=yes;;
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8166 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8168 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8169 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8172 # Add a system to this blacklist if it has mmap() but /dev/zero
8173 # does not exist, or if mmapping /dev/zero does not give anonymous
8174 # zeroed pages with both the following properties:
8175 # 1. If you map N consecutive pages in with one call, and then
8176 # unmap any subset of those pages, the pages that were not
8177 # explicitly unmapped remain accessible.
8178 # 2. If you map two adjacent blocks of memory and then unmap them
8179 # both at once, they must both go away.
8180 # Systems known to be in this category are Windows (all variants),
8183 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8184 gcc_cv_func_mmap_dev_zero=no ;;
8186 gcc_cv_func_mmap_dev_zero=yes;;
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8190 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8192 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8194 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8195 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #include <sys/types.h>
8201 #include <sys/mman.h>
8204 #ifndef MAP_ANONYMOUS
8205 #define MAP_ANONYMOUS MAP_ANON
8211 int n = MAP_ANONYMOUS;
8216 if ac_fn_c_try_compile "$LINENO"; then :
8217 gcc_cv_decl_map_anon=yes
8219 gcc_cv_decl_map_anon=no
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8224 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8226 if test $gcc_cv_decl_map_anon = no; then
8227 gcc_cv_func_mmap_anon=no
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8230 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8231 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8234 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8235 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8236 # doesn't give anonymous zeroed pages with the same properties listed
8237 # above for use of /dev/zero.
8238 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8240 vms* | cygwin* | pe | mingw* | sco* | udk* )
8241 gcc_cv_func_mmap_anon=no ;;
8243 gcc_cv_func_mmap_anon=yes;;
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8247 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8251 if test $gcc_cv_func_mmap_file = yes; then
8253 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8256 if test $gcc_cv_func_mmap_dev_zero = yes; then
8258 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8261 if test $gcc_cv_func_mmap_anon = yes; then
8263 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8270 # Under VMS, vfork works very differently than on Unix. The standard test
8271 # won't work, and it isn't easily adaptable. It makes more sense to
8273 ac_cv_func_vfork_works=yes
8276 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8277 if test "x$ac_cv_type_pid_t" = x""yes; then :
8281 cat >>confdefs.h <<_ACEOF
8287 for ac_header in vfork.h
8289 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8290 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8291 cat >>confdefs.h <<_ACEOF
8292 #define HAVE_VFORK_H 1
8298 for ac_func in fork vfork
8300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8302 eval as_val=\$$as_ac_var
8303 if test "x$as_val" = x""yes; then :
8304 cat >>confdefs.h <<_ACEOF
8305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8311 if test "x$ac_cv_func_fork" = xyes; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8313 $as_echo_n "checking for working fork... " >&6; }
8314 if test "${ac_cv_func_fork_works+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8317 if test "$cross_compiling" = yes; then :
8318 ac_cv_func_fork_works=cross
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 $ac_includes_default
8327 /* By Ruediger Kuhlmann. */
8334 if ac_fn_c_try_run "$LINENO"; then :
8335 ac_cv_func_fork_works=yes
8337 ac_cv_func_fork_works=no
8339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8340 conftest.$ac_objext conftest.beam conftest.$ac_ext
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8345 $as_echo "$ac_cv_func_fork_works" >&6; }
8348 ac_cv_func_fork_works=$ac_cv_func_fork
8350 if test "x$ac_cv_func_fork_works" = xcross; then
8352 *-*-amigaos* | *-*-msdosdjgpp*)
8353 # Override, as these systems have only a dummy fork() stub
8354 ac_cv_func_fork_works=no
8357 ac_cv_func_fork_works=yes
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8361 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8363 ac_cv_func_vfork_works=$ac_cv_func_vfork
8364 if test "x$ac_cv_func_vfork" = xyes; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8366 $as_echo_n "checking for working vfork... " >&6; }
8367 if test "${ac_cv_func_vfork_works+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8370 if test "$cross_compiling" = yes; then :
8371 ac_cv_func_vfork_works=cross
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 /* Thanks to Paul Eggert for this test. */
8376 $ac_includes_default
8377 #include <sys/wait.h>
8381 /* On some sparc systems, changes by the child to local and incoming
8382 argument registers are propagated back to the parent. The compiler
8383 is told about this with #include <vfork.h>, but some compilers
8384 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8385 static variable whose address is put into a register that is
8386 clobbered by the vfork. */
8389 sparc_address_test (int arg)
8391 sparc_address_test (arg) int arg;
8412 pid_t parent = getpid ();
8415 sparc_address_test (0);
8420 /* Here is another test for sparc vfork register problems. This
8421 test uses lots of local variables, at least as many local
8422 variables as main has allocated so far including compiler
8423 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8424 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8425 reuse the register of parent for one of the local variables,
8426 since it will think that parent can't possibly be used any more
8427 in this routine. Assigning to the local variable will thus
8428 munge parent in the parent process. */
8430 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8431 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8432 /* Convince the compiler that p..p7 are live; otherwise, it might
8433 use the same hardware register for all 8 local variables. */
8434 if (p != p1 || p != p2 || p != p3 || p != p4
8435 || p != p5 || p != p6 || p != p7)
8438 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8439 from child file descriptors. If the child closes a descriptor
8440 before it execs or exits, this munges the parent's descriptor
8441 as well. Test for this by closing stdout in the child. */
8442 _exit(close(fileno(stdout)) != 0);
8447 while (wait(&status) != child)
8450 /* Was there some problem with vforking? */
8453 /* Did the child fail? (This shouldn't happen.) */
8456 /* Did the vfork/compiler bug occur? */
8457 || parent != getpid()
8459 /* Did the file descriptor bug occur? */
8460 || fstat(fileno(stdout), &st) != 0
8465 if ac_fn_c_try_run "$LINENO"; then :
8466 ac_cv_func_vfork_works=yes
8468 ac_cv_func_vfork_works=no
8470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8471 conftest.$ac_objext conftest.beam conftest.$ac_ext
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8476 $as_echo "$ac_cv_func_vfork_works" >&6; }
8479 if test "x$ac_cv_func_fork_works" = xcross; then
8480 ac_cv_func_vfork_works=$ac_cv_func_vfork
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8482 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8485 if test "x$ac_cv_func_vfork_works" = xyes; then
8487 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8491 $as_echo "#define vfork fork" >>confdefs.h
8494 if test "x$ac_cv_func_fork_works" = xyes; then
8496 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8502 if test "X$prefix" = "XNONE"; then
8503 acl_final_prefix="$ac_default_prefix"
8505 acl_final_prefix="$prefix"
8507 if test "X$exec_prefix" = "XNONE"; then
8508 acl_final_exec_prefix='${prefix}'
8510 acl_final_exec_prefix="$exec_prefix"
8512 acl_save_prefix="$prefix"
8513 prefix="$acl_final_prefix"
8514 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8515 prefix="$acl_save_prefix"
8518 # Check whether --with-gnu-ld was given.
8519 if test "${with_gnu_ld+set}" = set; then :
8520 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8525 # Prepare PATH_SEPARATOR.
8526 # The user is always right.
8527 if test "${PATH_SEPARATOR+set}" != set; then
8528 echo "#! /bin/sh" >conf$$.sh
8529 echo "exit 0" >>conf$$.sh
8531 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8539 if test "$GCC" = yes; then
8540 # Check if gcc -print-prog-name=ld gives a path.
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8542 $as_echo_n "checking for ld used by GCC... " >&6; }
8545 # gcc leaves a trailing carriage return which upsets mingw
8546 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8548 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8551 # Accept absolute paths.
8552 [\\/]* | [A-Za-z]:[\\/]*)
8553 re_direlt='/[^/][^/]*/\.\./'
8554 # Canonicalize the path of ld
8555 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8556 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8557 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8559 test -z "$LD" && LD="$ac_prog"
8562 # If it fails, then pretend we aren't using GCC.
8566 # If it is relative, then search for the first ld in PATH.
8570 elif test "$with_gnu_ld" = yes; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8572 $as_echo_n "checking for GNU ld... " >&6; }
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8575 $as_echo_n "checking for non-GNU ld... " >&6; }
8577 if test "${acl_cv_path_LD+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8580 if test -z "$LD"; then
8581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8582 for ac_dir in $PATH; do
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8585 acl_cv_path_LD="$ac_dir/$ac_prog"
8586 # Check to see if the program is GNU ld. I'd rather use --version,
8587 # but apparently some GNU ld's only accept -v.
8588 # Break only if it was the GNU/non-GNU ld that we prefer.
8589 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8590 test "$with_gnu_ld" != no && break
8592 test "$with_gnu_ld" != yes && break
8598 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8602 LD="$acl_cv_path_LD"
8603 if test -n "$LD"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8605 $as_echo "$LD" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8610 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8612 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8613 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8616 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8617 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8618 acl_cv_prog_gnu_ld=yes
8620 acl_cv_prog_gnu_ld=no
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8624 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8625 with_gnu_ld=$acl_cv_prog_gnu_ld
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8630 $as_echo_n "checking for shared library run path origin... " >&6; }
8631 if test "${acl_cv_rpath+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8635 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8636 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8643 $as_echo "$acl_cv_rpath" >&6; }
8645 libext="$acl_cv_libext"
8646 shlibext="$acl_cv_shlibext"
8647 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8648 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8649 hardcode_direct="$acl_cv_hardcode_direct"
8650 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8651 # Check whether --enable-rpath was given.
8652 if test "${enable_rpath+set}" = set; then :
8653 enableval=$enable_rpath; :
8667 acl_save_prefix="$prefix"
8668 prefix="$acl_final_prefix"
8669 acl_save_exec_prefix="$exec_prefix"
8670 exec_prefix="$acl_final_exec_prefix"
8672 eval additional_includedir=\"$includedir\"
8673 eval additional_libdir=\"$libdir\"
8675 exec_prefix="$acl_save_exec_prefix"
8676 prefix="$acl_save_prefix"
8679 # Check whether --with-libiconv-prefix was given.
8680 if test "${with_libiconv_prefix+set}" = set; then :
8681 withval=$with_libiconv_prefix;
8682 if test "X$withval" = "Xno"; then
8685 if test "X$withval" = "X"; then
8687 acl_save_prefix="$prefix"
8688 prefix="$acl_final_prefix"
8689 acl_save_exec_prefix="$exec_prefix"
8690 exec_prefix="$acl_final_exec_prefix"
8692 eval additional_includedir=\"$includedir\"
8693 eval additional_libdir=\"$libdir\"
8695 exec_prefix="$acl_save_exec_prefix"
8696 prefix="$acl_save_prefix"
8699 additional_includedir="$withval/include"
8700 additional_libdir="$withval/lib"
8711 names_already_handled=
8712 names_next_round='iconv '
8713 while test -n "$names_next_round"; do
8714 names_this_round="$names_next_round"
8716 for name in $names_this_round; do
8718 for n in $names_already_handled; do
8719 if test "$n" = "$name"; then
8724 if test -z "$already_handled"; then
8725 names_already_handled="$names_already_handled $name"
8726 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8727 eval value=\"\$HAVE_LIB$uppername\"
8728 if test -n "$value"; then
8729 if test "$value" = yes; then
8730 eval value=\"\$LIB$uppername\"
8731 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8732 eval value=\"\$LTLIB$uppername\"
8733 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8742 if test $use_additional = yes; then
8743 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8744 found_dir="$additional_libdir"
8745 found_so="$additional_libdir/lib$name.$shlibext"
8746 if test -f "$additional_libdir/lib$name.la"; then
8747 found_la="$additional_libdir/lib$name.la"
8750 if test -f "$additional_libdir/lib$name.$libext"; then
8751 found_dir="$additional_libdir"
8752 found_a="$additional_libdir/lib$name.$libext"
8753 if test -f "$additional_libdir/lib$name.la"; then
8754 found_la="$additional_libdir/lib$name.la"
8759 if test "X$found_dir" = "X"; then
8760 for x in $LDFLAGS $LTLIBICONV; do
8762 acl_save_prefix="$prefix"
8763 prefix="$acl_final_prefix"
8764 acl_save_exec_prefix="$exec_prefix"
8765 exec_prefix="$acl_final_exec_prefix"
8767 exec_prefix="$acl_save_exec_prefix"
8768 prefix="$acl_save_prefix"
8772 dir=`echo "X$x" | sed -e 's/^X-L//'`
8773 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8775 found_so="$dir/lib$name.$shlibext"
8776 if test -f "$dir/lib$name.la"; then
8777 found_la="$dir/lib$name.la"
8780 if test -f "$dir/lib$name.$libext"; then
8782 found_a="$dir/lib$name.$libext"
8783 if test -f "$dir/lib$name.la"; then
8784 found_la="$dir/lib$name.la"
8790 if test "X$found_dir" != "X"; then
8795 if test "X$found_dir" != "X"; then
8796 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8797 if test "X$found_so" != "X"; then
8798 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8799 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8802 for x in $ltrpathdirs; do
8803 if test "X$x" = "X$found_dir"; then
8808 if test -z "$haveit"; then
8809 ltrpathdirs="$ltrpathdirs $found_dir"
8811 if test "$hardcode_direct" = yes; then
8812 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8814 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8817 for x in $rpathdirs; do
8818 if test "X$x" = "X$found_dir"; then
8823 if test -z "$haveit"; then
8824 rpathdirs="$rpathdirs $found_dir"
8828 for x in $LDFLAGS $LIBICONV; do
8830 acl_save_prefix="$prefix"
8831 prefix="$acl_final_prefix"
8832 acl_save_exec_prefix="$exec_prefix"
8833 exec_prefix="$acl_final_exec_prefix"
8835 exec_prefix="$acl_save_exec_prefix"
8836 prefix="$acl_save_prefix"
8838 if test "X$x" = "X-L$found_dir"; then
8843 if test -z "$haveit"; then
8844 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8846 if test "$hardcode_minus_L" != no; then
8847 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8849 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8855 if test "X$found_a" != "X"; then
8856 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8858 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8861 additional_includedir=
8862 case "$found_dir" in
8864 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8865 additional_includedir="$basedir/include"
8868 if test "X$additional_includedir" != "X"; then
8869 if test "X$additional_includedir" != "X/usr/include"; then
8871 if test "X$additional_includedir" = "X/usr/local/include"; then
8872 if test -n "$GCC"; then
8874 linux*) haveit=yes;;
8878 if test -z "$haveit"; then
8879 for x in $CPPFLAGS $INCICONV; do
8881 acl_save_prefix="$prefix"
8882 prefix="$acl_final_prefix"
8883 acl_save_exec_prefix="$exec_prefix"
8884 exec_prefix="$acl_final_exec_prefix"
8886 exec_prefix="$acl_save_exec_prefix"
8887 prefix="$acl_save_prefix"
8889 if test "X$x" = "X-I$additional_includedir"; then
8894 if test -z "$haveit"; then
8895 if test -d "$additional_includedir"; then
8896 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8902 if test -n "$found_la"; then
8903 save_libdir="$libdir"
8905 */* | *\\*) . "$found_la" ;;
8906 *) . "./$found_la" ;;
8908 libdir="$save_libdir"
8909 for dep in $dependency_libs; do
8912 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8913 if test "X$additional_libdir" != "X/usr/lib"; then
8915 if test "X$additional_libdir" = "X/usr/local/lib"; then
8916 if test -n "$GCC"; then
8918 linux*) haveit=yes;;
8922 if test -z "$haveit"; then
8924 for x in $LDFLAGS $LIBICONV; do
8926 acl_save_prefix="$prefix"
8927 prefix="$acl_final_prefix"
8928 acl_save_exec_prefix="$exec_prefix"
8929 exec_prefix="$acl_final_exec_prefix"
8931 exec_prefix="$acl_save_exec_prefix"
8932 prefix="$acl_save_prefix"
8934 if test "X$x" = "X-L$additional_libdir"; then
8939 if test -z "$haveit"; then
8940 if test -d "$additional_libdir"; then
8941 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8945 for x in $LDFLAGS $LTLIBICONV; do
8947 acl_save_prefix="$prefix"
8948 prefix="$acl_final_prefix"
8949 acl_save_exec_prefix="$exec_prefix"
8950 exec_prefix="$acl_final_exec_prefix"
8952 exec_prefix="$acl_save_exec_prefix"
8953 prefix="$acl_save_prefix"
8955 if test "X$x" = "X-L$additional_libdir"; then
8960 if test -z "$haveit"; then
8961 if test -d "$additional_libdir"; then
8962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8969 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8970 if test "$enable_rpath" != no; then
8972 for x in $rpathdirs; do
8973 if test "X$x" = "X$dir"; then
8978 if test -z "$haveit"; then
8979 rpathdirs="$rpathdirs $dir"
8982 for x in $ltrpathdirs; do
8983 if test "X$x" = "X$dir"; then
8988 if test -z "$haveit"; then
8989 ltrpathdirs="$ltrpathdirs $dir"
8994 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8997 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9000 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9001 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9007 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9008 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9014 if test "X$rpathdirs" != "X"; then
9015 if test -n "$hardcode_libdir_separator"; then
9017 for found_dir in $rpathdirs; do
9018 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9020 acl_save_libdir="$libdir"
9022 eval flag=\"$hardcode_libdir_flag_spec\"
9023 libdir="$acl_save_libdir"
9024 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9026 for found_dir in $rpathdirs; do
9027 acl_save_libdir="$libdir"
9029 eval flag=\"$hardcode_libdir_flag_spec\"
9030 libdir="$acl_save_libdir"
9031 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9035 if test "X$ltrpathdirs" != "X"; then
9036 for found_dir in $ltrpathdirs; do
9037 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9047 am_save_CPPFLAGS="$CPPFLAGS"
9049 for element in $INCICONV; do
9051 for x in $CPPFLAGS; do
9053 acl_save_prefix="$prefix"
9054 prefix="$acl_final_prefix"
9055 acl_save_exec_prefix="$exec_prefix"
9056 exec_prefix="$acl_final_exec_prefix"
9058 exec_prefix="$acl_save_exec_prefix"
9059 prefix="$acl_save_prefix"
9061 if test "X$x" = "X$element"; then
9066 if test -z "$haveit"; then
9067 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9073 $as_echo_n "checking for iconv... " >&6; }
9074 if test "${am_cv_func_iconv+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
9078 am_cv_func_iconv="no, consider installing GNU libiconv"
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9087 iconv_t cd = iconv_open("","");
9088 iconv(cd,NULL,NULL,NULL,NULL);
9094 if ac_fn_c_try_link "$LINENO"; then :
9095 am_cv_func_iconv=yes
9097 rm -f core conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
9099 if test "$am_cv_func_iconv" != yes; then
9100 am_save_LIBS="$LIBS"
9101 LIBS="$LIBS $LIBICONV"
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9109 iconv_t cd = iconv_open("","");
9110 iconv(cd,NULL,NULL,NULL,NULL);
9116 if ac_fn_c_try_link "$LINENO"; then :
9118 am_cv_func_iconv=yes
9120 rm -f core conftest.err conftest.$ac_objext \
9121 conftest$ac_exeext conftest.$ac_ext
9122 LIBS="$am_save_LIBS"
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9127 $as_echo "$am_cv_func_iconv" >&6; }
9128 if test "$am_cv_func_iconv" = yes; then
9130 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9133 if test "$am_cv_lib_iconv" = yes; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9135 $as_echo_n "checking how to link with libiconv... " >&6; }
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9137 $as_echo "$LIBICONV" >&6; }
9139 CPPFLAGS="$am_save_CPPFLAGS"
9146 if test "$am_cv_func_iconv" = yes; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9148 $as_echo_n "checking for iconv declaration... " >&6; }
9149 if test "${am_cv_proto_iconv+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9162 #if defined(__STDC__) || defined(__cplusplus)
9163 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177 am_cv_proto_iconv_arg1=""
9179 am_cv_proto_iconv_arg1="const"
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 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);"
9185 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9187 }$am_cv_proto_iconv" >&5
9189 }$am_cv_proto_iconv" >&6; }
9191 cat >>confdefs.h <<_ACEOF
9192 #define ICONV_CONST $am_cv_proto_iconv_arg1
9197 # Until we have in-tree GNU iconv:
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9203 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9204 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9205 $as_echo_n "(cached) " >&6
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9218 if ac_fn_c_try_link "$LINENO"; then :
9219 am_cv_val_LC_MESSAGES=yes
9221 am_cv_val_LC_MESSAGES=no
9223 rm -f core conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9227 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9228 if test $am_cv_val_LC_MESSAGES = yes; then
9230 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9237 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9238 if test "${am_cv_langinfo_codeset+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243 #include <langinfo.h>
9247 char* cs = nl_langinfo(CODESET);
9252 if ac_fn_c_try_link "$LINENO"; then :
9253 am_cv_langinfo_codeset=yes
9255 am_cv_langinfo_codeset=no
9257 rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9262 $as_echo "$am_cv_langinfo_codeset" >&6; }
9263 if test $am_cv_langinfo_codeset = yes; then
9265 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9270 # We will need to find libiberty.h and ansidecl.h
9271 saved_CFLAGS="$CFLAGS"
9272 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9273 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9274 strsignal strstr strverscmp \
9275 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9276 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
9278 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9280 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9281 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9282 $as_echo_n "(cached) " >&6
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9287 #define $ac_tr_decl 1
9289 #include "ansidecl.h"
9296 char *(*pfn) = (char *(*)) $ac_func ;
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303 eval "gcc_cv_have_decl_$ac_func=yes"
9305 eval "gcc_cv_have_decl_$ac_func=no"
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9312 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9313 #define $ac_tr_decl 1
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9319 #define $ac_tr_decl 0
9327 for ac_func in getrlimit setrlimit getrusage
9329 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9331 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9332 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9333 $as_echo_n "(cached) " >&6
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9338 #define $ac_tr_decl 1
9340 #include "ansidecl.h"
9342 #ifdef HAVE_SYS_RESOURCE_H
9343 #include <sys/resource.h>
9351 char *(*pfn) = (char *(*)) $ac_func ;
9357 if ac_fn_c_try_compile "$LINENO"; then :
9358 eval "gcc_cv_have_decl_$ac_func=yes"
9360 eval "gcc_cv_have_decl_$ac_func=no"
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9365 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9367 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9368 #define $ac_tr_decl 1
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9374 #define $ac_tr_decl 0
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9385 #include "ansidecl.h"
9387 #ifdef HAVE_SYS_RESOURCE_H
9388 #include <sys/resource.h>
9399 if ac_fn_c_try_compile "$LINENO"; then :
9403 $as_echo "#define rlim_t long" >>confdefs.h
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9409 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9410 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9411 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9412 for ac_func in ldgetname
9414 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9416 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9417 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9418 $as_echo_n "(cached) " >&6
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9423 #define $ac_tr_decl 1
9425 #include "ansidecl.h"
9438 char *(*pfn) = (char *(*)) $ac_func ;
9444 if ac_fn_c_try_compile "$LINENO"; then :
9445 eval "gcc_cv_have_decl_$ac_func=yes"
9447 eval "gcc_cv_have_decl_$ac_func=no"
9449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9454 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9455 #define $ac_tr_decl 1
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9461 #define $ac_tr_decl 0
9469 for ac_func in times
9471 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9473 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9474 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9475 $as_echo_n "(cached) " >&6
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9480 #define $ac_tr_decl 1
9482 #include "ansidecl.h"
9484 #ifdef HAVE_SYS_TIMES_H
9485 #include <sys/times.h>
9493 char *(*pfn) = (char *(*)) $ac_func ;
9499 if ac_fn_c_try_compile "$LINENO"; then :
9500 eval "gcc_cv_have_decl_$ac_func=yes"
9502 eval "gcc_cv_have_decl_$ac_func=no"
9504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9509 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9510 #define $ac_tr_decl 1
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9516 #define $ac_tr_decl 0
9524 for ac_func in sigaltstack
9526 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9528 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9529 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9530 $as_echo_n "(cached) " >&6
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9535 #define $ac_tr_decl 1
9537 #include "ansidecl.h"
9546 char *(*pfn) = (char *(*)) $ac_func ;
9552 if ac_fn_c_try_compile "$LINENO"; then :
9553 eval "gcc_cv_have_decl_$ac_func=yes"
9555 eval "gcc_cv_have_decl_$ac_func=no"
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9562 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9563 #define $ac_tr_decl 1
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9569 #define $ac_tr_decl 0
9577 # More time-related stuff.
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9579 $as_echo_n "checking for struct tms... " >&6; }
9580 if test "${ac_cv_struct_tms+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9587 #include "ansidecl.h"
9589 #ifdef HAVE_SYS_TIMES_H
9590 #include <sys/times.h>
9601 if ac_fn_c_try_compile "$LINENO"; then :
9602 ac_cv_struct_tms=yes
9606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
9609 $as_echo "$ac_cv_struct_tms" >&6; }
9610 if test $ac_cv_struct_tms = yes; then
9612 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
9616 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9617 # revisit after autoconf 2.50.
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
9619 $as_echo_n "checking for clock_t... " >&6; }
9620 if test "${gcc_cv_type_clock_t+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9627 #include "ansidecl.h"
9638 if ac_fn_c_try_compile "$LINENO"; then :
9639 gcc_cv_type_clock_t=yes
9641 gcc_cv_type_clock_t=no
9643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
9646 $as_echo "$gcc_cv_type_clock_t" >&6; }
9647 if test $gcc_cv_type_clock_t = yes; then
9649 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
9653 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9654 CFLAGS="$saved_CFLAGS"
9656 # Check whether --enable-initfini-array was given.
9657 if test "${enable_initfini_array+set}" = set; then :
9658 enableval=$enable_initfini_array;
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
9662 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
9663 if test "${gcc_cv_initfini_array+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9666 if test "$cross_compiling" = yes; then :
9667 gcc_cv_initfini_array=no
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9673 int main (void) { return x; }
9674 int foo (void) { x = 0; }
9675 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9677 if ac_fn_c_try_run "$LINENO"; then :
9678 gcc_cv_initfini_array=yes
9680 gcc_cv_initfini_array=no
9682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9683 conftest.$ac_objext conftest.beam conftest.$ac_ext
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
9688 $as_echo "$gcc_cv_initfini_array" >&6; }
9689 enable_initfini_array=$gcc_cv_initfini_array
9693 if test $enable_initfini_array = yes; then
9695 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
9699 # mkdir takes a single argument on some systems.
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
9701 $as_echo_n "checking if mkdir takes one argument... " >&6; }
9702 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9708 #include <sys/types.h>
9709 #ifdef HAVE_SYS_STAT_H
9710 # include <sys/stat.h>
9712 #ifdef HAVE_UNISTD_H
9713 # include <unistd.h>
9715 #ifdef HAVE_DIRECT_H
9716 # include <direct.h>
9726 if ac_fn_c_try_compile "$LINENO"; then :
9727 gcc_cv_mkdir_takes_one_arg=no
9729 gcc_cv_mkdir_takes_one_arg=yes
9731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
9734 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
9735 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9737 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
9748 # With Setjmp/Longjmp based exception handling.
9749 # Check whether --enable-sjlj-exceptions was given.
9750 if test "${enable_sjlj_exceptions+set}" = set; then :
9751 enableval=$enable_sjlj_exceptions; case $target in
9753 if test $enableval != yes; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
9755 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
9760 force_sjlj_exceptions=yes
9764 force_sjlj_exceptions=yes
9768 force_sjlj_exceptions=no
9773 if test $force_sjlj_exceptions = yes; then
9774 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9776 cat >>confdefs.h <<_ACEOF
9777 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9782 # For platforms with the unwind ABI which includes an unwind library,
9783 # libunwind, we can choose to use the system libunwind.
9784 # config.gcc also contains tests of with_system_libunwind.
9787 # Check whether --with-system-libunwind was given.
9788 if test "${with_system_libunwind+set}" = set; then :
9789 withval=$with_system_libunwind;
9792 # If system-libunwind was not specifically set, pick a default setting.
9793 if test x$with_system_libunwind = x; then
9795 ia64-*-hpux*) with_system_libunwind=yes ;;
9796 *) with_system_libunwind=no ;;
9799 # Based on system-libunwind and target, do we have ipinfo?
9800 if test x$with_system_libunwind = xyes; then
9802 ia64-*-*) have_unwind_getipinfo=no ;;
9803 *) have_unwind_getipinfo=yes ;;
9806 # Darwin before version 9 does not have _Unwind_GetIPInfo.
9809 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
9810 *) have_unwind_getipinfo=yes ;;
9815 if test x$have_unwind_getipinfo = xyes; then
9817 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
9822 # --------------------------------------------------------
9823 # Build, host, and target specific configuration fragments
9824 # --------------------------------------------------------
9826 # Collect build-machine-specific information.
9827 . ${srcdir}/config.build
9829 # Collect host-machine-specific information.
9830 . ${srcdir}/config.host
9834 # Collect target-machine-specific information.
9835 . ${srcdir}/config.gcc
9837 extra_objs="${host_extra_objs} ${extra_objs}"
9838 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9840 # Default the target-machine variables that were not explicitly set.
9841 if test x"$tm_file" = x
9842 then tm_file=$cpu_type/$cpu_type.h; fi
9844 if test x"$extra_headers" = x
9845 then extra_headers=; fi
9847 if test x$md_file = x
9848 then md_file=$cpu_type/$cpu_type.md; fi
9850 if test x$out_file = x
9851 then out_file=$cpu_type/$cpu_type.c; fi
9853 if test x"$tmake_file" = x
9854 then tmake_file=$cpu_type/t-$cpu_type
9857 if test x"$dwarf2" = xyes
9858 then tm_file="$tm_file tm-dwarf2.h"
9861 # Say what files are being used for the output code and MD file.
9862 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9863 echo "Using \`$srcdir/config/$md_file' as machine description file."
9865 # If any of the xm_file variables contain nonexistent files, warn
9866 # about them and drop them.
9869 for x in $build_xm_file; do
9870 if test -f $srcdir/config/$x
9872 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9873 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9879 for x in $host_xm_file; do
9880 if test -f $srcdir/config/$x
9882 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9883 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9889 for x in $xm_file; do
9890 if test -f $srcdir/config/$x
9892 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9893 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9899 for f in $tm_file; do
9902 if test $count = ax; then
9903 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9905 echo "Using the following target machine macro files:"
9906 for f in $tm_file; do
9907 echo " $srcdir/config/$f"
9911 if test x$need_64bit_hwint = xyes; then
9913 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
9917 if test x$use_long_long_for_widest_fast_int = xyes; then
9919 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
9924 for f in $host_xm_file; do
9927 if test $count = a; then
9929 elif test $count = ax; then
9930 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9932 echo "Using the following host machine macro files:"
9933 for f in $host_xm_file; do
9934 echo " $srcdir/config/$f"
9937 echo "Using ${out_host_hook_obj} for host machine hooks."
9939 if test "$host_xm_file" != "$build_xm_file"; then
9941 for f in $build_xm_file; do
9944 if test $count = a; then
9946 elif test $count = ax; then
9947 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9949 echo "Using the following build machine macro files:"
9950 for f in $build_xm_file; do
9951 echo " $srcdir/config/$f"
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
9959 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
9960 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
9961 $as_echo_n "(cached) " >&6
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9966 #include <sys/cdefs.h>
9967 #include <sys/signal.h>
9968 #include <ucontext.h>
9969 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973 gcc_cv_mcontext_underscores=no
9975 gcc_cv_mcontext_underscores=yes
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
9980 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
9981 if test $gcc_cv_mcontext_underscores = yes; then
9983 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
9993 # Check if a valid thread package
9994 case ${enable_threads} in
9997 target_thread_file='single'
10001 target_thread_file='single'
10003 aix | dce | gnat | irix | posix | posix95 | rtems | \
10004 single | solaris | vxworks | win32 | mipssde)
10005 target_thread_file=${enable_threads}
10008 echo "${enable_threads} is an unknown thread package" 1>&2
10013 if test x${thread_file} = x; then
10014 # No thread file set by target-specific clauses in config.gcc,
10015 # so use file chosen by default logic above
10016 thread_file=${target_thread_file}
10019 # Make gthr-default.h if we have a thread file.
10021 if test $thread_file != single; then
10022 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10023 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10024 rm -f gthr-default.h-t
10026 mv -f gthr-default.h-t gthr-default.h
10028 gthread_flags=-DHAVE_GTHR_DEFAULT
10037 if test x$enable___cxa_atexit = xyes || \
10038 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10039 if test x$host = x$target; then
10041 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10042 # keyed to flag_use_cxa_atexit
10047 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10048 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10051 echo "__cxa_atexit can't be enabled on this target"
10057 # We can't check for __cxa_atexit when building a cross, so assume
10061 if test x$use_cxa_atexit = xyes; then
10063 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10068 # Look for a file containing extra machine modes.
10069 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10070 extra_modes_file='$(srcdir)'/config/${extra_modes}
10073 cat >>confdefs.h <<_ACEOF
10074 #define EXTRA_MODES_FILE "config/$extra_modes"
10079 # Convert extra_options into a form suitable for Makefile use.
10081 for f in $extra_options; do
10082 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10086 # auto-host.h is the file containing items generated by autoconf and is
10087 # the first file included by config.h.
10088 # If host=build, it is correct to have bconfig include auto-host.h
10089 # as well. If host!=build, we are in error and need to do more
10090 # work to find out the build config parameters.
10091 if test x$host = x$build
10093 build_auto=auto-host.h
10095 # We create a subdir, then run autoconf in the subdir.
10096 # To prevent recursion we set host and build for the new
10097 # invocation of configure to the build for this invocation
10104 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10105 *) realsrcdir=../${srcdir};;
10107 saved_CFLAGS="${CFLAGS}"
10108 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10109 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10110 ${realsrcdir}/configure \
10111 --enable-languages=${enable_languages-all} \
10112 --target=$target_alias --host=$build_alias --build=$build_alias
10113 CFLAGS="${saved_CFLAGS}"
10115 # We just finished tests for the build machine, so rename
10116 # the file auto-build.h in the gcc directory.
10117 mv auto-host.h ../auto-build.h
10120 build_auto=auto-build.h
10124 tm_file="${tm_file} defaults.h"
10125 tm_p_file="${tm_p_file} tm-preds.h"
10126 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10127 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10128 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10129 # put this back in temporarily.
10130 xm_file="auto-host.h ansidecl.h ${xm_file}"
10136 # Compile in configure arguments.
10137 if test -f configargs.h ; then
10138 # Being re-configured.
10139 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10140 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10142 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10145 # Double all backslashes and backslash all quotes to turn
10146 # gcc_config_arguments into a C string.
10147 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10148 $gcc_config_arguments
10150 gcc_config_arguments_str=`cat conftest.out`
10153 cat > configargs.h <<EOF
10154 /* Generated automatically. */
10155 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10156 static const char thread_model[] = "$thread_file";
10158 static const struct {
10159 const char *name, *value;
10160 } configure_default_options[] = $configure_default_options;
10163 gcc_BASEVER=`cat $srcdir/BASE-VER`
10164 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10165 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10166 if test -f $srcdir/REVISION ; then
10167 gcc_REVISION=`cat $srcdir/REVISION`
10171 cat > plugin-version.h <<EOF
10172 #include "configargs.h"
10174 static char basever[] = "$gcc_BASEVER";
10175 static char datestamp[] = "$gcc_DATESTAMP";
10176 static char devphase[] = "$gcc_DEVPHASE";
10177 static char revision[] = "$gcc_REVISION";
10179 /* FIXME plugins: We should make the version information more precise.
10180 One way to do is to add a checksum. */
10182 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10183 devphase, revision,
10184 configuration_arguments};
10187 # Internationalization
10188 # If we haven't got the data from the intl directory,
10189 # assume NLS is disabled.
10198 if test -f ../intl/config.intl; then
10199 . ../intl/config.intl
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10202 $as_echo_n "checking whether NLS is requested... " >&6; }
10203 if test x"$USE_NLS" != xyes; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10208 $as_echo "yes" >&6; }
10210 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10214 $as_echo_n "checking for catalogs to be installed... " >&6; }
10215 # Look for .po and .gmo files in the source directory.
10218 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10219 # If there aren't any .gmo files the shell will give us the
10220 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10222 case "$cat" in *\**)
10225 # The quadruple backslash is collapsed to a double backslash
10226 # by the backticks, then collapsed again by the double quotes,
10227 # leaving us with one backslash in the sed expression (right
10228 # before the dot that mustn't act as a wildcard).
10229 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10230 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10231 # The user is allowed to set LINGUAS to a list of languages to
10232 # install catalogs for. If it's empty that means "all of them."
10233 if test "x$LINGUAS" = x; then
10234 CATALOGS="$CATALOGS $cat"
10235 XLINGUAS="$XLINGUAS $lang"
10237 case "$LINGUAS" in *$lang*)
10238 CATALOGS="$CATALOGS $cat"
10239 XLINGUAS="$XLINGUAS $lang"
10244 LINGUAS="$XLINGUAS"
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10246 $as_echo "$LINGUAS" >&6; }
10259 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10260 # -liconv on the link line twice.
10261 case "$LIBINTL" in *$LIBICONV*)
10265 # Check whether --enable-secureplt was given.
10266 if test "${enable_secureplt+set}" = set; then :
10267 enableval=$enable_secureplt;
10271 # Check whether --enable-cld was given.
10272 if test "${enable_cld+set}" = set; then :
10273 enableval=$enable_cld;
10279 # Windows32 Registry support for specifying GCC installation paths.
10280 # Check whether --enable-win32-registry was given.
10281 if test "${enable_win32_registry+set}" = set; then :
10282 enableval=$enable_win32_registry;
10287 win32 | pe | cygwin* | mingw32* | uwin*)
10288 if test "x$enable_win32_registry" != xno; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10290 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10291 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10292 $as_echo_n "(cached) " >&6
10294 ac_func_search_save_LIBS=$LIBS
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10298 /* Override any GCC internal prototype to avoid an error.
10299 Use char because int might match the return type of a GCC
10300 builtin and then its argument prototype would still apply. */
10304 char RegOpenKeyExA ();
10308 return RegOpenKeyExA ();
10313 for ac_lib in '' advapi32; do
10314 if test -z "$ac_lib"; then
10315 ac_res="none required"
10318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10320 if ac_fn_c_try_link "$LINENO"; then :
10321 ac_cv_search_RegOpenKeyExA=$ac_res
10323 rm -f core conftest.err conftest.$ac_objext \
10325 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10329 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10332 ac_cv_search_RegOpenKeyExA=no
10334 rm conftest.$ac_ext
10335 LIBS=$ac_func_search_save_LIBS
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10338 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10339 ac_res=$ac_cv_search_RegOpenKeyExA
10340 if test "$ac_res" != no; then :
10341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10344 enable_win32_registry=no
10349 if test "x$enable_win32_registry" != xno; then
10351 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10354 if test "x$enable_win32_registry" != xyes \
10355 && test "x$enable_win32_registry" != x; then
10357 cat >>confdefs.h <<_ACEOF
10358 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10366 # Get an absolute path to the GCC top-level source directory
10367 holddir=`${PWDCMD-pwd}`
10369 topdir=`${PWDCMD-pwd}`
10372 # Conditionalize the makefile for this host machine.
10374 for f in ${host_xmake_file}
10376 if test -f ${srcdir}/config/$f
10378 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10382 # Conditionalize the makefile for this target machine.
10384 for f in ${tmake_file}
10386 if test -f ${srcdir}/config/$f
10388 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10391 tmake_file="${tmake_file_}"
10393 out_object_file=`basename $out_file .c`.o
10395 tm_file_list="options.h"
10396 tm_include_list="options.h"
10397 for f in $tm_file; do
10400 f=`echo $f | sed 's/^..//'`
10401 tm_file_list="${tm_file_list} $f"
10402 tm_include_list="${tm_include_list} $f"
10405 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10406 tm_include_list="${tm_include_list} $f"
10409 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10410 tm_include_list="${tm_include_list} config/$f"
10417 for f in $tm_p_file; do
10420 tm_p_file_list="${tm_p_file_list} $f"
10421 tm_p_include_list="${tm_p_include_list} $f"
10424 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10425 tm_p_include_list="${tm_p_include_list} config/$f"
10431 for f in $xm_file; do
10434 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10435 xm_include_list="${xm_include_list} $f"
10438 xm_file_list="${xm_file_list} $f"
10439 xm_include_list="${xm_include_list} $f"
10442 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10443 xm_include_list="${xm_include_list} config/$f"
10449 host_xm_include_list=
10450 for f in $host_xm_file; do
10453 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10454 host_xm_include_list="${host_xm_include_list} $f"
10457 host_xm_file_list="${host_xm_file_list} $f"
10458 host_xm_include_list="${host_xm_include_list} $f"
10461 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10462 host_xm_include_list="${host_xm_include_list} config/$f"
10467 build_xm_file_list=
10468 for f in $build_xm_file; do
10471 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10472 build_xm_include_list="${build_xm_include_list} $f"
10474 auto-build.h | auto-host.h )
10475 build_xm_file_list="${build_xm_file_list} $f"
10476 build_xm_include_list="${build_xm_include_list} $f"
10479 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10480 build_xm_include_list="${build_xm_include_list} config/$f"
10485 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10486 # cross-compiler which does not use the native headers and libraries.
10487 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10490 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10492 if test "x$with_build_sysroot" != x; then
10493 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10495 # This value is used, even on a native system, because
10496 # CROSS_SYSTEM_HEADER_DIR is just
10497 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10498 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10501 if test x$host != x$target
10503 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10505 SYSTEM_HEADER_DIR=$build_system_header_dir
10506 case "$host","$target" in
10507 # Darwin crosses can use the host system's libraries and headers,
10508 # because of the fat library support. Of course, it must be the
10509 # same version of Darwin on both sides. Allow the user to
10510 # just say --target=foo-darwin without a version number to mean
10511 # "the version on this system".
10512 *-*-darwin*,*-*-darwin*)
10513 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10514 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10515 if test $hostos = $targetos -o $targetos = darwin ; then
10517 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10522 i?86-*-*,x86_64-*-* \
10523 | powerpc*-*-*,powerpc64*-*-*)
10524 CROSS="$CROSS -DNATIVE_CROSS" ;;
10526 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10527 SYSTEM_HEADER_DIR=$build_system_header_dir
10530 # If this is a cross-compiler that does not
10531 # have its own set of headers then define
10534 # If this is using newlib, without having the headers available now,
10535 # then define inhibit_libc in LIBGCC2_CFLAGS.
10536 # This prevents libgcc2 from containing any code which requires libc
10538 : ${inhibit_libc=false}
10539 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10540 test x$with_newlib = xyes ; } &&
10541 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10546 # When building gcc with a cross-compiler, we need to adjust things so
10547 # that the generator programs are still built with the native compiler.
10548 # Also, we cannot run fixincludes.
10550 # These are the normal (build=host) settings:
10551 CC_FOR_BUILD='$(CC)'
10552 BUILD_CFLAGS='$(ALL_CFLAGS)'
10553 BUILD_LDFLAGS='$(LDFLAGS)'
10554 STMP_FIXINC=stmp-fixinc
10556 # And these apply if build != host, or we are generating coverage data
10557 if test x$build != x$host || test "x$coverage_flags" != x
10559 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10560 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10563 # Expand extra_headers to include complete path.
10564 # This substitutes for lots of t-* files.
10565 extra_headers_list=
10566 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10567 for file in ${extra_headers} ; do
10568 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10571 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10572 if test x"$use_gcc_tgmath" = xyes
10573 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10576 # Define collect2 in Makefile.
10577 case $host_can_use_collect2 in
10579 *) collect2='collect2$(exeext)' ;;
10583 # Add a definition of USE_COLLECT2 if system wants one.
10584 case $use_collect2 in
10585 no) use_collect2= ;;
10588 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10589 xm_defines="${xm_defines} USE_COLLECT2"
10590 case $host_can_use_collect2 in
10592 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
10598 # ---------------------------
10599 # Assembler & linker features
10600 # ---------------------------
10602 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
10603 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
10604 # However when ld-new is first executed from the build tree, libtool will
10605 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
10606 # to the build tree. While doing this we need to use the previous-stage
10607 # linker, or we have an infinite loop. The presence of a shell script as
10608 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
10609 # the gcc/collect-ld script. So we need to know how libtool works, or
10610 # exec-tool will fail.
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10616 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10621 macro_version='2.2.6'
10622 macro_revision='1.3012'
10636 ltmain="$ac_aux_dir/ltmain.sh"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10639 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10640 if test "${ac_cv_path_SED+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10643 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10644 for ac_i in 1 2 3 4 5 6 7; do
10645 ac_script="$ac_script$as_nl$ac_script"
10647 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10648 { ac_script=; unset ac_script;}
10649 if test -z "$SED"; then
10650 ac_path_SED_found=false
10651 # Loop through the user's path and test for each of PROGNAME-LIST
10652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653 for as_dir in $PATH
10656 test -z "$as_dir" && as_dir=.
10657 for ac_prog in sed gsed; do
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10660 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10661 # Check for GNU ac_path_SED and select it if it is found.
10662 # Check for GNU $ac_path_SED
10663 case `"$ac_path_SED" --version 2>&1` in
10665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10668 $as_echo_n 0123456789 >"conftest.in"
10671 cat "conftest.in" "conftest.in" >"conftest.tmp"
10672 mv "conftest.tmp" "conftest.in"
10673 cp "conftest.in" "conftest.nl"
10674 $as_echo '' >> "conftest.nl"
10675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10677 as_fn_arith $ac_count + 1 && ac_count=$as_val
10678 if test $ac_count -gt ${ac_path_SED_max-0}; then
10679 # Best one so far, save it but keep looking for a better one
10680 ac_cv_path_SED="$ac_path_SED"
10681 ac_path_SED_max=$ac_count
10683 # 10*(2^10) chars as input seems more than enough
10684 test $ac_count -gt 10 && break
10686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10689 $ac_path_SED_found && break 3
10694 if test -z "$ac_cv_path_SED"; then
10695 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
10698 ac_cv_path_SED=$SED
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10703 $as_echo "$ac_cv_path_SED" >&6; }
10704 SED="$ac_cv_path_SED"
10707 test -z "$SED" && SED=sed
10708 Xsed="$SED -e 1s/^X//"
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10721 $as_echo_n "checking for fgrep... " >&6; }
10722 if test "${ac_cv_path_FGREP+set}" = set; then :
10723 $as_echo_n "(cached) " >&6
10725 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10726 then ac_cv_path_FGREP="$GREP -F"
10728 if test -z "$FGREP"; then
10729 ac_path_FGREP_found=false
10730 # Loop through the user's path and test for each of PROGNAME-LIST
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10735 test -z "$as_dir" && as_dir=.
10736 for ac_prog in fgrep; do
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10739 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10740 # Check for GNU ac_path_FGREP and select it if it is found.
10741 # Check for GNU $ac_path_FGREP
10742 case `"$ac_path_FGREP" --version 2>&1` in
10744 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10747 $as_echo_n 0123456789 >"conftest.in"
10750 cat "conftest.in" "conftest.in" >"conftest.tmp"
10751 mv "conftest.tmp" "conftest.in"
10752 cp "conftest.in" "conftest.nl"
10753 $as_echo 'FGREP' >> "conftest.nl"
10754 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10756 as_fn_arith $ac_count + 1 && ac_count=$as_val
10757 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10758 # Best one so far, save it but keep looking for a better one
10759 ac_cv_path_FGREP="$ac_path_FGREP"
10760 ac_path_FGREP_max=$ac_count
10762 # 10*(2^10) chars as input seems more than enough
10763 test $ac_count -gt 10 && break
10765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10768 $ac_path_FGREP_found && break 3
10773 if test -z "$ac_cv_path_FGREP"; then
10774 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10777 ac_cv_path_FGREP=$FGREP
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10783 $as_echo "$ac_cv_path_FGREP" >&6; }
10784 FGREP="$ac_cv_path_FGREP"
10787 test -z "$GREP" && GREP=grep
10807 # Check whether --with-gnu-ld was given.
10808 if test "${with_gnu_ld+set}" = set; then :
10809 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10815 if test "$GCC" = yes; then
10816 # Check if gcc -print-prog-name=ld gives a path.
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10818 $as_echo_n "checking for ld used by $CC... " >&6; }
10821 # gcc leaves a trailing carriage return which upsets mingw
10822 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10824 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10827 # Accept absolute paths.
10829 re_direlt='/[^/][^/]*/\.\./'
10830 # Canonicalize the pathname of ld
10831 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10832 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10833 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10835 test -z "$LD" && LD="$ac_prog"
10838 # If it fails, then pretend we aren't using GCC.
10842 # If it is relative, then search for the first ld in PATH.
10843 with_gnu_ld=unknown
10846 elif test "$with_gnu_ld" = yes; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10848 $as_echo_n "checking for GNU ld... " >&6; }
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10851 $as_echo_n "checking for non-GNU ld... " >&6; }
10853 if test "${lt_cv_path_LD+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10856 if test -z "$LD"; then
10857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10858 for ac_dir in $PATH; do
10860 test -z "$ac_dir" && ac_dir=.
10861 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10862 lt_cv_path_LD="$ac_dir/$ac_prog"
10863 # Check to see if the program is GNU ld. I'd rather use --version,
10864 # but apparently some variants of GNU ld only accept -v.
10865 # Break only if it was the GNU/non-GNU ld that we prefer.
10866 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10867 *GNU* | *'with BFD'*)
10868 test "$with_gnu_ld" != no && break
10871 test "$with_gnu_ld" != yes && break
10878 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10882 LD="$lt_cv_path_LD"
10883 if test -n "$LD"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10885 $as_echo "$LD" >&6; }
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; }
10890 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10892 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10893 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10894 $as_echo_n "(cached) " >&6
10896 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10897 case `$LD -v 2>&1 </dev/null` in
10898 *GNU* | *'with BFD'*)
10899 lt_cv_prog_gnu_ld=yes
10902 lt_cv_prog_gnu_ld=no
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10907 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10908 with_gnu_ld=$lt_cv_prog_gnu_ld
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10919 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10920 if test "${lt_cv_path_NM+set}" = set; then :
10921 $as_echo_n "(cached) " >&6
10923 if test -n "$NM"; then
10924 # Let the user override the test.
10925 lt_cv_path_NM="$NM"
10927 lt_nm_to_check="${ac_tool_prefix}nm"
10928 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10929 lt_nm_to_check="$lt_nm_to_check nm"
10931 for lt_tmp_nm in $lt_nm_to_check; do
10932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10933 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10935 test -z "$ac_dir" && ac_dir=.
10936 tmp_nm="$ac_dir/$lt_tmp_nm"
10937 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10938 # Check to see if the nm accepts a BSD-compat flag.
10939 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10940 # nm: unknown option "B" ignored
10941 # Tru64's nm complains that /dev/null is an invalid object file
10942 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10943 */dev/null* | *'Invalid file or object type'*)
10944 lt_cv_path_NM="$tmp_nm -B"
10948 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10950 lt_cv_path_NM="$tmp_nm -p"
10954 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10955 continue # so that we can try to find one that supports BSD flags
10964 : ${lt_cv_path_NM=no}
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10968 $as_echo "$lt_cv_path_NM" >&6; }
10969 if test "$lt_cv_path_NM" != "no"; then
10970 NM="$lt_cv_path_NM"
10972 # Didn't find any BSD compatible name lister, look for dumpbin.
10973 if test -n "$ac_tool_prefix"; then
10974 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
10976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979 $as_echo_n "checking for $ac_word... " >&6; }
10980 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
10981 $as_echo_n "(cached) " >&6
10983 if test -n "$DUMPBIN"; then
10984 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10993 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11003 DUMPBIN=$ac_cv_prog_DUMPBIN
11004 if test -n "$DUMPBIN"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11006 $as_echo "$DUMPBIN" >&6; }
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11013 test -n "$DUMPBIN" && break
11016 if test -z "$DUMPBIN"; then
11017 ac_ct_DUMPBIN=$DUMPBIN
11018 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11020 # Extract the first word of "$ac_prog", so it can be a program name with args.
11021 set dummy $ac_prog; ac_word=$2
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11023 $as_echo_n "checking for $ac_word... " >&6; }
11024 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11027 if test -n "$ac_ct_DUMPBIN"; then
11028 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031 for as_dir in $PATH
11034 test -z "$as_dir" && as_dir=.
11035 for ac_exec_ext in '' $ac_executable_extensions; do
11036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11037 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11048 if test -n "$ac_ct_DUMPBIN"; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11050 $as_echo "$ac_ct_DUMPBIN" >&6; }
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11057 test -n "$ac_ct_DUMPBIN" && break
11060 if test "x$ac_ct_DUMPBIN" = x; then
11063 case $cross_compiling:$ac_tool_warned in
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11067 ac_tool_warned=yes ;;
11069 DUMPBIN=$ac_ct_DUMPBIN
11074 if test "$DUMPBIN" != ":"; then
11078 test -z "$NM" && NM=nm
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11086 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11087 if test "${lt_cv_nm_interface+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
11090 lt_cv_nm_interface="BSD nm"
11091 echo "int some_variable = 0;" > conftest.$ac_ext
11092 (eval echo "\"\$as_me:11092: $ac_compile\"" >&5)
11093 (eval "$ac_compile" 2>conftest.err)
11094 cat conftest.err >&5
11095 (eval echo "\"\$as_me:11095: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11096 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11097 cat conftest.err >&5
11098 (eval echo "\"\$as_me:11098: output\"" >&5)
11099 cat conftest.out >&5
11100 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11101 lt_cv_nm_interface="MS dumpbin"
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11106 $as_echo "$lt_cv_nm_interface" >&6; }
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11109 $as_echo_n "checking whether ln -s works... " >&6; }
11111 if test "$LN_S" = "ln -s"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113 $as_echo "yes" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11116 $as_echo "no, using $LN_S" >&6; }
11119 # find the maximum length of command line arguments
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11121 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11122 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11130 # On DJGPP, this test can blow up pretty badly due to problems in libc
11131 # (any single argument exceeding 2000 bytes causes a buffer overrun
11132 # during glob expansion). Even if it were fixed, the result of this
11133 # check would be larger than it should be.
11134 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11138 # Under GNU Hurd, this test is not required because there is
11139 # no limit to the length of command line arguments.
11140 # Libtool will interpret -1 as no limit whatsoever
11141 lt_cv_sys_max_cmd_len=-1;
11144 cygwin* | mingw* | cegcc*)
11145 # On Win9x/ME, this test blows up -- it succeeds, but takes
11146 # about 5 minutes as the teststring grows exponentially.
11147 # Worse, since 9x/ME are not pre-emptively multitasking,
11148 # you end up with a "frozen" computer, even though with patience
11149 # the test eventually succeeds (with a max line length of 256k).
11150 # Instead, let's just punt: use the minimum linelength reported by
11151 # all of the supported platforms: 8192 (on NT/2K/XP).
11152 lt_cv_sys_max_cmd_len=8192;
11156 # On AmigaOS with pdksh, this test takes hours, literally.
11157 # So we just punt and use a minimum line length of 8192.
11158 lt_cv_sys_max_cmd_len=8192;
11161 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11162 # This has been around since 386BSD, at least. Likely further.
11163 if test -x /sbin/sysctl; then
11164 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11165 elif test -x /usr/sbin/sysctl; then
11166 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11168 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11170 # And add a safety zone
11171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11176 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11177 lt_cv_sys_max_cmd_len=196608
11181 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11182 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11183 # nice to cause kernel panics so lets avoid the loop below.
11184 # First set a reasonable default.
11185 lt_cv_sys_max_cmd_len=16384
11187 if test -x /sbin/sysconfig; then
11188 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11189 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11194 lt_cv_sys_max_cmd_len=102400
11196 sysv5* | sco5v6* | sysv4.2uw2*)
11197 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11198 if test -n "$kargmax"; then
11199 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11201 lt_cv_sys_max_cmd_len=32768
11205 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11206 if test -n "$lt_cv_sys_max_cmd_len"; then
11207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11210 # Make teststring a little bigger before we do anything with it.
11211 # a 1K string should be a reasonable start.
11212 for i in 1 2 3 4 5 6 7 8 ; do
11213 teststring=$teststring$teststring
11215 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11216 # If test is not a shell built-in, we'll probably end up computing a
11217 # maximum length that is only half of the actual maximum length, but
11219 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11220 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11221 test $i != 17 # 1/2 MB should be enough
11224 teststring=$teststring$teststring
11226 # Only check the string length outside the loop.
11227 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11229 # Add a significant safety factor because C++ compilers can tack on
11230 # massive amounts of additional arguments before passing them to the
11231 # linker. It appears as though 1/2 is a usable value.
11232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11239 if test -n $lt_cv_sys_max_cmd_len ; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11241 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11244 $as_echo "none" >&6; }
11246 max_cmd_len=$lt_cv_sys_max_cmd_len
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11258 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11259 # Try some XSI features
11261 ( _lt_dummy="a/b/c"
11262 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11264 && eval 'test $(( 1 + 1 )) -eq 2 \
11265 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11268 $as_echo "$xsi_shell" >&6; }
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11272 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11274 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11276 && lt_shell_append=yes
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11278 $as_echo "$lt_shell_append" >&6; }
11281 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11291 # test EBCDIC or ASCII
11292 case `echo X|tr X '\101'` in
11293 A) # ASCII based system
11294 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11295 lt_SP2NL='tr \040 \012'
11296 lt_NL2SP='tr \015\012 \040\040'
11298 *) # EBCDIC based system
11299 lt_SP2NL='tr \100 \n'
11300 lt_NL2SP='tr \r\n \100\100'
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11313 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11314 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11317 lt_cv_ld_reload_flag='-r'
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11320 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11321 reload_flag=$lt_cv_ld_reload_flag
11322 case $reload_flag in
11324 *) reload_flag=" $reload_flag" ;;
11326 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11329 if test "$GCC" = yes; then
11330 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11345 if test -n "$ac_tool_prefix"; then
11346 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11347 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349 $as_echo_n "checking for $ac_word... " >&6; }
11350 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11353 if test -n "$OBJDUMP"; then
11354 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11363 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 OBJDUMP=$ac_cv_prog_OBJDUMP
11374 if test -n "$OBJDUMP"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11376 $as_echo "$OBJDUMP" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11384 if test -z "$ac_cv_prog_OBJDUMP"; then
11385 ac_ct_OBJDUMP=$OBJDUMP
11386 # Extract the first word of "objdump", so it can be a program name with args.
11387 set dummy objdump; ac_word=$2
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11389 $as_echo_n "checking for $ac_word... " >&6; }
11390 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11391 $as_echo_n "(cached) " >&6
11393 if test -n "$ac_ct_OBJDUMP"; then
11394 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $PATH
11400 test -z "$as_dir" && as_dir=.
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11403 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11414 if test -n "$ac_ct_OBJDUMP"; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11416 $as_echo "$ac_ct_OBJDUMP" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11422 if test "x$ac_ct_OBJDUMP" = x; then
11425 case $cross_compiling:$ac_tool_warned in
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11429 ac_tool_warned=yes ;;
11431 OBJDUMP=$ac_ct_OBJDUMP
11434 OBJDUMP="$ac_cv_prog_OBJDUMP"
11437 test -z "$OBJDUMP" && OBJDUMP=objdump
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11448 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11449 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11452 lt_cv_file_magic_cmd='$MAGIC_CMD'
11453 lt_cv_file_magic_test_file=
11454 lt_cv_deplibs_check_method='unknown'
11455 # Need to set the preceding variable on all platforms that support
11456 # interlibrary dependencies.
11457 # 'none' -- dependencies not supported.
11458 # `unknown' -- same as none, but documents that we really don't know.
11459 # 'pass_all' -- all dependencies passed with no checks.
11460 # 'test_compile' -- check by making test program.
11461 # 'file_magic [[regex]]' -- check by looking for files in library path
11462 # which responds to the $file_magic_cmd with a given extended regex.
11463 # If you have `file' or equivalent on your system and you're not sure
11464 # whether `pass_all' will *always* work, you probably want this one.
11468 lt_cv_deplibs_check_method=pass_all
11472 lt_cv_deplibs_check_method=pass_all
11476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11477 lt_cv_file_magic_cmd='/usr/bin/file -L'
11478 lt_cv_file_magic_test_file=/shlib/libc.so
11482 # func_win32_libid is a shell function defined in ltmain.sh
11483 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11484 lt_cv_file_magic_cmd='func_win32_libid'
11488 # Base MSYS/MinGW do not provide the 'file' command needed by
11489 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11490 # unless we find 'file', for example because we are cross-compiling.
11491 if ( file / ) >/dev/null 2>&1; then
11492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11493 lt_cv_file_magic_cmd='func_win32_libid'
11495 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11496 lt_cv_file_magic_cmd='$OBJDUMP -f'
11501 # use the weaker test based on 'objdump'. See mingw*.
11502 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11503 lt_cv_file_magic_cmd='$OBJDUMP -f'
11506 darwin* | rhapsody*)
11507 lt_cv_deplibs_check_method=pass_all
11510 freebsd* | dragonfly*)
11511 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11514 # Not sure whether the presence of OpenBSD here was a mistake.
11515 # Let's accept both of them until this is cleared up.
11516 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11517 lt_cv_file_magic_cmd=/usr/bin/file
11518 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11522 lt_cv_deplibs_check_method=pass_all
11527 lt_cv_deplibs_check_method=pass_all
11530 hpux10.20* | hpux11*)
11531 lt_cv_file_magic_cmd=/usr/bin/file
11534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11535 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11538 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]'
11539 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11543 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11549 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11553 irix5* | irix6* | nonstopux*)
11555 *-32|*"-32 ") libmagic=32-bit;;
11556 *-n32|*"-n32 ") libmagic=N32;;
11557 *-64|*"-64 ") libmagic=64-bit;;
11558 *) libmagic=never-match;;
11560 lt_cv_deplibs_check_method=pass_all
11563 # This must be Linux ELF.
11564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11565 lt_cv_deplibs_check_method=pass_all
11569 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11578 lt_cv_file_magic_cmd=/usr/bin/file
11579 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11583 lt_cv_deplibs_check_method=pass_all
11587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11594 osf3* | osf4* | osf5*)
11595 lt_cv_deplibs_check_method=pass_all
11599 lt_cv_deplibs_check_method=pass_all
11603 lt_cv_deplibs_check_method=pass_all
11606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11607 lt_cv_deplibs_check_method=pass_all
11611 case $host_vendor in
11613 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]'
11614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11617 lt_cv_deplibs_check_method=pass_all
11620 lt_cv_file_magic_cmd='/bin/file'
11621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11624 lt_cv_file_magic_cmd='/bin/file'
11625 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11626 lt_cv_file_magic_test_file=/lib/libc.so
11629 lt_cv_deplibs_check_method=pass_all
11632 lt_cv_deplibs_check_method=pass_all
11638 lt_cv_deplibs_check_method=pass_all
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11644 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11645 file_magic_cmd=$lt_cv_file_magic_cmd
11646 deplibs_check_method=$lt_cv_deplibs_check_method
11647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11660 if test -n "$ac_tool_prefix"; then
11661 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11662 set dummy ${ac_tool_prefix}ar; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if test "${ac_cv_prog_AR+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
11668 if test -n "$AR"; then
11669 ac_cv_prog_AR="$AR" # Let the user override the test.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_prog_AR="${ac_tool_prefix}ar"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11689 if test -n "$AR"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11691 $as_echo "$AR" >&6; }
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11699 if test -z "$ac_cv_prog_AR"; then
11701 # Extract the first word of "ar", so it can be a program name with args.
11702 set dummy ar; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11708 if test -n "$ac_ct_AR"; then
11709 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11715 test -z "$as_dir" && as_dir=.
11716 for ac_exec_ext in '' $ac_executable_extensions; do
11717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11718 ac_cv_prog_ac_ct_AR="ar"
11719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11729 if test -n "$ac_ct_AR"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11731 $as_echo "$ac_ct_AR" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11737 if test "x$ac_ct_AR" = x; then
11740 case $cross_compiling:$ac_tool_warned in
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11744 ac_tool_warned=yes ;;
11749 AR="$ac_cv_prog_AR"
11752 test -z "$AR" && AR=ar
11753 test -z "$AR_FLAGS" && AR_FLAGS=cru
11765 if test -n "$ac_tool_prefix"; then
11766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11767 set dummy ${ac_tool_prefix}strip; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if test "${ac_cv_prog_STRIP+set}" = set; then :
11771 $as_echo_n "(cached) " >&6
11773 if test -n "$STRIP"; then
11774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 STRIP=$ac_cv_prog_STRIP
11794 if test -n "$STRIP"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11796 $as_echo "$STRIP" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11804 if test -z "$ac_cv_prog_STRIP"; then
11806 # Extract the first word of "strip", so it can be a program name with args.
11807 set dummy strip; ac_word=$2
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 $as_echo_n "checking for $ac_word... " >&6; }
11810 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11811 $as_echo_n "(cached) " >&6
11813 if test -n "$ac_ct_STRIP"; then
11814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in $PATH
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11823 ac_cv_prog_ac_ct_STRIP="strip"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11834 if test -n "$ac_ct_STRIP"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11836 $as_echo "$ac_ct_STRIP" >&6; }
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11842 if test "x$ac_ct_STRIP" = x; then
11845 case $cross_compiling:$ac_tool_warned in
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11849 ac_tool_warned=yes ;;
11854 STRIP="$ac_cv_prog_STRIP"
11857 test -z "$STRIP" && STRIP=:
11864 if test -n "$ac_tool_prefix"; then
11865 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11866 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 $as_echo_n "checking for $ac_word... " >&6; }
11869 if test "${ac_cv_prog_RANLIB+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11872 if test -n "$RANLIB"; then
11873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876 for as_dir in $PATH
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11882 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11892 RANLIB=$ac_cv_prog_RANLIB
11893 if test -n "$RANLIB"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11895 $as_echo "$RANLIB" >&6; }
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11903 if test -z "$ac_cv_prog_RANLIB"; then
11904 ac_ct_RANLIB=$RANLIB
11905 # Extract the first word of "ranlib", so it can be a program name with args.
11906 set dummy ranlib; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11912 if test -n "$ac_ct_RANLIB"; then
11913 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11922 ac_cv_prog_ac_ct_RANLIB="ranlib"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11933 if test -n "$ac_ct_RANLIB"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11935 $as_echo "$ac_ct_RANLIB" >&6; }
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11941 if test "x$ac_ct_RANLIB" = x; then
11944 case $cross_compiling:$ac_tool_warned in
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11948 ac_tool_warned=yes ;;
11950 RANLIB=$ac_ct_RANLIB
11953 RANLIB="$ac_cv_prog_RANLIB"
11956 test -z "$RANLIB" && RANLIB=:
11963 # Determine commands to create old-style static archives.
11964 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11965 old_postinstall_cmds='chmod 644 $oldlib'
11966 old_postuninstall_cmds=
11968 if test -n "$RANLIB"; then
11971 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11974 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11977 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12013 # If no C compiler was specified, use CC.
12016 # If no C compiler flags were specified, use CFLAGS.
12017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12019 # Allow CC to be a program name with arguments.
12023 # Check for command to grab the raw symbol name followed by C symbol from nm.
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12025 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12026 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12027 $as_echo_n "(cached) " >&6
12030 # These are sane defaults that work on at least a few old systems.
12031 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12033 # Character class describing NM global symbol codes.
12034 symcode='[BCDEGRST]'
12036 # Regexp to match symbols that can be accessed directly from C.
12037 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12039 # Define system-specific variables.
12044 cygwin* | mingw* | pw32* | cegcc*)
12045 symcode='[ABCDGISTW]'
12048 if test "$host_cpu" = ia64; then
12049 symcode='[ABCDEGRST]'
12052 irix* | nonstopux*)
12053 symcode='[BCDEGRST]'
12056 symcode='[BCDEGQRST]'
12067 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12075 # If we're using GNU nm, then use its standard symbol codes.
12076 case `$NM -V 2>&1` in
12077 *GNU* | *'with BFD'*)
12078 symcode='[ABCDGIRSTW]' ;;
12081 # Transform an extracted symbol line into a proper C declaration.
12082 # Some systems (esp. on ia64) link data and code symbols differently,
12083 # so use this general approach.
12084 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12086 # Transform an extracted symbol line into symbol name and symbol address
12087 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12088 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'"
12090 # Handle CRLF in mingw tool chain
12094 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12098 # Try without a prefix underscore, then with it.
12099 for ac_symprfx in "" "_"; do
12101 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12102 symxfrm="\\1 $ac_symprfx\\2 \\2"
12104 # Write the raw and C identifiers.
12105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12106 # Fake it for dumpbin and say T for any non-static function
12107 # and D for any global variable.
12108 # Also find C++ and __fastcall symbols from MSVC++,
12109 # which start with @ or ?.
12110 lt_cv_sys_global_symbol_pipe="$AWK '"\
12111 " {last_section=section; section=\$ 3};"\
12112 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12113 " \$ 0!~/External *\|/{next};"\
12114 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12115 " {if(hide[section]) next};"\
12116 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12117 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12118 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12119 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12120 " ' prfx=^$ac_symprfx"
12122 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12125 # Check to see that the pipe works correctly.
12129 cat > conftest.$ac_ext <<_LT_EOF
12134 void nm_test_func(void);
12135 void nm_test_func(void){}
12139 int main(){nm_test_var='a';nm_test_func();return(0);}
12142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12143 (eval $ac_compile) 2>&5
12145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12146 test $ac_status = 0; }; then
12147 # Now try to grab the symbols.
12149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
12150 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153 test $ac_status = 0; } && test -s "$nlist"; then
12154 # Try sorting and uniquifying the output.
12155 if sort "$nlist" | uniq > "$nlist"T; then
12156 mv -f "$nlist"T "$nlist"
12161 # Make sure that we snagged all the symbols we need.
12162 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12163 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12164 cat <<_LT_EOF > conftest.$ac_ext
12170 # Now generate the symbol file.
12171 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12173 cat <<_LT_EOF >> conftest.$ac_ext
12175 /* The mapping between symbol names and symbols. */
12180 lt__PROGRAM__LTX_preloaded_symbols[] =
12182 { "@PROGRAM@", (void *) 0 },
12184 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12185 cat <<\_LT_EOF >> conftest.$ac_ext
12189 /* This works around a problem in FreeBSD linker */
12190 #ifdef FREEBSD_WORKAROUND
12191 static const void *lt_preloaded_setup() {
12192 return lt__PROGRAM__LTX_preloaded_symbols;
12200 # Now try linking the two files.
12201 mv conftest.$ac_objext conftstm.$ac_objext
12202 lt_save_LIBS="$LIBS"
12203 lt_save_CFLAGS="$CFLAGS"
12204 LIBS="conftstm.$ac_objext"
12205 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12207 (eval $ac_link) 2>&5
12209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12210 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12213 LIBS="$lt_save_LIBS"
12214 CFLAGS="$lt_save_CFLAGS"
12216 echo "cannot find nm_test_func in $nlist" >&5
12219 echo "cannot find nm_test_var in $nlist" >&5
12222 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12225 echo "$progname: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12228 rm -rf conftest* conftst*
12230 # Do not use the global_symbol_pipe unless it works.
12231 if test "$pipe_works" = yes; then
12234 lt_cv_sys_global_symbol_pipe=
12240 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12241 lt_cv_sys_global_symbol_to_cdecl=
12243 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12245 $as_echo "failed" >&6; }
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12248 $as_echo "ok" >&6; }
12272 # Check whether --enable-libtool-lock was given.
12273 if test "${enable_libtool_lock+set}" = set; then :
12274 enableval=$enable_libtool_lock;
12277 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12279 # Some flags need to be propagated to the compiler or linker for good
12283 # Find out which ABI we are using.
12284 echo 'int i;' > conftest.$ac_ext
12285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12286 (eval $ac_compile) 2>&5
12288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12289 test $ac_status = 0; }; then
12290 case `/usr/bin/file conftest.$ac_objext` in
12292 HPUX_IA64_MODE="32"
12295 HPUX_IA64_MODE="64"
12302 # Find out which ABI we are using.
12303 echo '#line 12303 "configure"' > conftest.$ac_ext
12304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12305 (eval $ac_compile) 2>&5
12307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308 test $ac_status = 0; }; then
12309 if test "$lt_cv_prog_gnu_ld" = yes; then
12310 case `/usr/bin/file conftest.$ac_objext` in
12312 LD="${LD-ld} -melf32bsmip"
12315 LD="${LD-ld} -melf32bmipn32"
12318 LD="${LD-ld} -melf64bmip"
12322 case `/usr/bin/file conftest.$ac_objext` in
12338 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12339 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12340 # Find out which ABI we are using.
12341 echo 'int i;' > conftest.$ac_ext
12342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12343 (eval $ac_compile) 2>&5
12345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12346 test $ac_status = 0; }; then
12347 case `/usr/bin/file conftest.o` in
12350 x86_64-*kfreebsd*-gnu)
12351 LD="${LD-ld} -m elf_i386_fbsd"
12354 LD="${LD-ld} -m elf_i386"
12356 ppc64-*linux*|powerpc64-*linux*)
12357 LD="${LD-ld} -m elf32ppclinux"
12360 LD="${LD-ld} -m elf_s390"
12363 LD="${LD-ld} -m elf32_sparc"
12369 x86_64-*kfreebsd*-gnu)
12370 LD="${LD-ld} -m elf_x86_64_fbsd"
12373 LD="${LD-ld} -m elf_x86_64"
12375 ppc*-*linux*|powerpc*-*linux*)
12376 LD="${LD-ld} -m elf64ppc"
12378 s390*-*linux*|s390*-*tpf*)
12379 LD="${LD-ld} -m elf64_s390"
12382 LD="${LD-ld} -m elf64_sparc"
12392 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12393 SAVE_CFLAGS="$CFLAGS"
12394 CFLAGS="$CFLAGS -belf"
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12396 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12397 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12398 $as_echo_n "(cached) " >&6
12401 ac_cpp='$CPP $CPPFLAGS'
12402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12417 if ac_fn_c_try_link "$LINENO"; then :
12418 lt_cv_cc_needs_belf=yes
12420 lt_cv_cc_needs_belf=no
12422 rm -f core conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12425 ac_cpp='$CPP $CPPFLAGS'
12426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12432 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12433 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12434 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12435 CFLAGS="$SAVE_CFLAGS"
12439 # Find out which ABI we are using.
12440 echo 'int i;' > conftest.$ac_ext
12441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12442 (eval $ac_compile) 2>&5
12444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12445 test $ac_status = 0; }; then
12446 case `/usr/bin/file conftest.o` in
12448 case $lt_cv_prog_gnu_ld in
12449 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12451 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12463 need_locks="$enable_libtool_lock"
12467 rhapsody* | darwin*)
12468 if test -n "$ac_tool_prefix"; then
12469 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12470 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12474 $as_echo_n "(cached) " >&6
12476 if test -n "$DSYMUTIL"; then
12477 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12486 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12496 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12497 if test -n "$DSYMUTIL"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12499 $as_echo "$DSYMUTIL" >&6; }
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12507 if test -z "$ac_cv_prog_DSYMUTIL"; then
12508 ac_ct_DSYMUTIL=$DSYMUTIL
12509 # Extract the first word of "dsymutil", so it can be a program name with args.
12510 set dummy dsymutil; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12516 if test -n "$ac_ct_DSYMUTIL"; then
12517 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12537 if test -n "$ac_ct_DSYMUTIL"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12539 $as_echo "$ac_ct_DSYMUTIL" >&6; }
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12545 if test "x$ac_ct_DSYMUTIL" = x; then
12548 case $cross_compiling:$ac_tool_warned in
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12552 ac_tool_warned=yes ;;
12554 DSYMUTIL=$ac_ct_DSYMUTIL
12557 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12560 if test -n "$ac_tool_prefix"; then
12561 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12562 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564 $as_echo_n "checking for $ac_word... " >&6; }
12565 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
12566 $as_echo_n "(cached) " >&6
12568 if test -n "$NMEDIT"; then
12569 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572 for as_dir in $PATH
12575 test -z "$as_dir" && as_dir=.
12576 for ac_exec_ext in '' $ac_executable_extensions; do
12577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12578 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12588 NMEDIT=$ac_cv_prog_NMEDIT
12589 if test -n "$NMEDIT"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12591 $as_echo "$NMEDIT" >&6; }
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12599 if test -z "$ac_cv_prog_NMEDIT"; then
12600 ac_ct_NMEDIT=$NMEDIT
12601 # Extract the first word of "nmedit", so it can be a program name with args.
12602 set dummy nmedit; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
12608 if test -n "$ac_ct_NMEDIT"; then
12609 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12615 test -z "$as_dir" && as_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12618 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12628 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12629 if test -n "$ac_ct_NMEDIT"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12631 $as_echo "$ac_ct_NMEDIT" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12637 if test "x$ac_ct_NMEDIT" = x; then
12640 case $cross_compiling:$ac_tool_warned in
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12644 ac_tool_warned=yes ;;
12646 NMEDIT=$ac_ct_NMEDIT
12649 NMEDIT="$ac_cv_prog_NMEDIT"
12652 if test -n "$ac_tool_prefix"; then
12653 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12654 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if test "${ac_cv_prog_LIPO+set}" = set; then :
12658 $as_echo_n "(cached) " >&6
12660 if test -n "$LIPO"; then
12661 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664 for as_dir in $PATH
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12670 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12680 LIPO=$ac_cv_prog_LIPO
12681 if test -n "$LIPO"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12683 $as_echo "$LIPO" >&6; }
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12691 if test -z "$ac_cv_prog_LIPO"; then
12693 # Extract the first word of "lipo", so it can be a program name with args.
12694 set dummy lipo; ac_word=$2
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 $as_echo_n "checking for $ac_word... " >&6; }
12697 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
12698 $as_echo_n "(cached) " >&6
12700 if test -n "$ac_ct_LIPO"; then
12701 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12710 ac_cv_prog_ac_ct_LIPO="lipo"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12721 if test -n "$ac_ct_LIPO"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12723 $as_echo "$ac_ct_LIPO" >&6; }
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12729 if test "x$ac_ct_LIPO" = x; then
12732 case $cross_compiling:$ac_tool_warned in
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12736 ac_tool_warned=yes ;;
12741 LIPO="$ac_cv_prog_LIPO"
12744 if test -n "$ac_tool_prefix"; then
12745 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12746 set dummy ${ac_tool_prefix}otool; ac_word=$2
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12748 $as_echo_n "checking for $ac_word... " >&6; }
12749 if test "${ac_cv_prog_OTOOL+set}" = set; then :
12750 $as_echo_n "(cached) " >&6
12752 if test -n "$OTOOL"; then
12753 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756 for as_dir in $PATH
12759 test -z "$as_dir" && as_dir=.
12760 for ac_exec_ext in '' $ac_executable_extensions; do
12761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12762 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 OTOOL=$ac_cv_prog_OTOOL
12773 if test -n "$OTOOL"; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12775 $as_echo "$OTOOL" >&6; }
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12783 if test -z "$ac_cv_prog_OTOOL"; then
12785 # Extract the first word of "otool", so it can be a program name with args.
12786 set dummy otool; ac_word=$2
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12788 $as_echo_n "checking for $ac_word... " >&6; }
12789 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
12790 $as_echo_n "(cached) " >&6
12792 if test -n "$ac_ct_OTOOL"; then
12793 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in $PATH
12799 test -z "$as_dir" && as_dir=.
12800 for ac_exec_ext in '' $ac_executable_extensions; do
12801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12802 ac_cv_prog_ac_ct_OTOOL="otool"
12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12813 if test -n "$ac_ct_OTOOL"; then
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12815 $as_echo "$ac_ct_OTOOL" >&6; }
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818 $as_echo "no" >&6; }
12821 if test "x$ac_ct_OTOOL" = x; then
12824 case $cross_compiling:$ac_tool_warned in
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12828 ac_tool_warned=yes ;;
12833 OTOOL="$ac_cv_prog_OTOOL"
12836 if test -n "$ac_tool_prefix"; then
12837 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12838 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12840 $as_echo_n "checking for $ac_word... " >&6; }
12841 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
12842 $as_echo_n "(cached) " >&6
12844 if test -n "$OTOOL64"; then
12845 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848 for as_dir in $PATH
12851 test -z "$as_dir" && as_dir=.
12852 for ac_exec_ext in '' $ac_executable_extensions; do
12853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12854 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 OTOOL64=$ac_cv_prog_OTOOL64
12865 if test -n "$OTOOL64"; then
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12867 $as_echo "$OTOOL64" >&6; }
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 $as_echo "no" >&6; }
12875 if test -z "$ac_cv_prog_OTOOL64"; then
12876 ac_ct_OTOOL64=$OTOOL64
12877 # Extract the first word of "otool64", so it can be a program name with args.
12878 set dummy otool64; ac_word=$2
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12880 $as_echo_n "checking for $ac_word... " >&6; }
12881 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
12882 $as_echo_n "(cached) " >&6
12884 if test -n "$ac_ct_OTOOL64"; then
12885 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888 for as_dir in $PATH
12891 test -z "$as_dir" && as_dir=.
12892 for ac_exec_ext in '' $ac_executable_extensions; do
12893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12894 ac_cv_prog_ac_ct_OTOOL64="otool64"
12895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12905 if test -n "$ac_ct_OTOOL64"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12907 $as_echo "$ac_ct_OTOOL64" >&6; }
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12913 if test "x$ac_ct_OTOOL64" = x; then
12916 case $cross_compiling:$ac_tool_warned in
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12920 ac_tool_warned=yes ;;
12922 OTOOL64=$ac_ct_OTOOL64
12925 OTOOL64="$ac_cv_prog_OTOOL64"
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12955 $as_echo_n "checking for -single_module linker flag... " >&6; }
12956 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12959 lt_cv_apple_cc_single_mod=no
12960 if test -z "${LT_MULTI_MODULE}"; then
12961 # By default we will add the -single_module flag. You can override
12962 # by either setting the environment variable LT_MULTI_MODULE
12963 # non-empty at configure time, or by adding -multi_module to the
12965 rm -rf libconftest.dylib*
12966 echo "int foo(void){return 1;}" > conftest.c
12967 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12968 -dynamiclib -Wl,-single_module conftest.c" >&5
12969 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12970 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12972 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12973 lt_cv_apple_cc_single_mod=yes
12975 cat conftest.err >&5
12977 rm -rf libconftest.dylib*
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12982 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12984 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12985 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
12986 $as_echo_n "(cached) " >&6
12988 lt_cv_ld_exported_symbols_list=no
12989 save_LDFLAGS=$LDFLAGS
12990 echo "_main" > conftest.sym
12991 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
13003 if ac_fn_c_try_link "$LINENO"; then :
13004 lt_cv_ld_exported_symbols_list=yes
13006 lt_cv_ld_exported_symbols_list=no
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 LDFLAGS="$save_LDFLAGS"
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13014 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13016 rhapsody* | darwin1.[012])
13017 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13019 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13020 darwin*) # darwin 5.x on
13021 # if running on 10.5 or later, the deployment target defaults
13022 # to the OS version, if on x86, and 10.4, the deployment
13023 # target defaults to 10.4. Don't you love it?
13024 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13025 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13026 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13028 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13030 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13034 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13035 _lt_dar_single_mod='$single_module'
13037 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13038 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13040 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13042 if test "$DSYMUTIL" != ":"; then
13043 _lt_dsymutil='~$DSYMUTIL $lib || :'
13050 for ac_header in dlfcn.h
13052 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13053 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13054 cat >>confdefs.h <<_ACEOF
13055 #define HAVE_DLFCN_H 1
13064 ac_cpp='$CXXCPP $CPPFLAGS'
13065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13068 if test -z "$CXX"; then
13069 if test -n "$CCC"; then
13072 if test -n "$ac_tool_prefix"; then
13073 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13078 $as_echo_n "checking for $ac_word... " >&6; }
13079 if test "${ac_cv_prog_CXX+set}" = set; then :
13080 $as_echo_n "(cached) " >&6
13082 if test -n "$CXX"; then
13083 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13092 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13102 CXX=$ac_cv_prog_CXX
13103 if test -n "$CXX"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13105 $as_echo "$CXX" >&6; }
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13112 test -n "$CXX" && break
13115 if test -z "$CXX"; then
13117 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13119 # Extract the first word of "$ac_prog", so it can be a program name with args.
13120 set dummy $ac_prog; ac_word=$2
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122 $as_echo_n "checking for $ac_word... " >&6; }
13123 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13126 if test -n "$ac_ct_CXX"; then
13127 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13136 ac_cv_prog_ac_ct_CXX="$ac_prog"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13146 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13147 if test -n "$ac_ct_CXX"; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13149 $as_echo "$ac_ct_CXX" >&6; }
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13156 test -n "$ac_ct_CXX" && break
13159 if test "x$ac_ct_CXX" = x; then
13162 case $cross_compiling:$ac_tool_warned in
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13166 ac_tool_warned=yes ;;
13174 # Provide some information about the compiler.
13175 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13178 for ac_option in --version -v -V -qversion; do
13179 { { ac_try="$ac_compiler $ac_option >&5"
13180 case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13185 $as_echo "$ac_try_echo"; } >&5
13186 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13188 if test -s conftest.err; then
13190 ... rest of stderr output deleted ...
13191 10q' conftest.err >conftest.er1
13192 cat conftest.er1 >&5
13193 rm -f conftest.er1 conftest.err
13195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13196 test $ac_status = 0; }
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13200 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13201 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13218 if ac_fn_cxx_try_compile "$LINENO"; then :
13219 ac_compiler_gnu=yes
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13228 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13229 if test $ac_compiler_gnu = yes; then
13234 ac_test_CXXFLAGS=${CXXFLAGS+set}
13235 ac_save_CXXFLAGS=$CXXFLAGS
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13237 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13238 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13241 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13242 ac_cxx_werror_flag=yes
13243 ac_cv_prog_cxx_g=no
13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h. */
13256 if ac_fn_cxx_try_compile "$LINENO"; then :
13257 ac_cv_prog_cxx_g=yes
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13271 if ac_fn_cxx_try_compile "$LINENO"; then :
13274 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13287 if ac_fn_cxx_try_compile "$LINENO"; then :
13288 ac_cv_prog_cxx_g=yes
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13298 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13299 if test "$ac_test_CXXFLAGS" = set; then
13300 CXXFLAGS=$ac_save_CXXFLAGS
13301 elif test $ac_cv_prog_cxx_g = yes; then
13302 if test "$GXX" = yes; then
13308 if test "$GXX" = yes; then
13315 ac_cpp='$CPP $CPPFLAGS'
13316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13320 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13321 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13322 (test "X$CXX" != "Xg++"))) ; then
13324 ac_cpp='$CXXCPP $CPPFLAGS'
13325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13329 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13330 if test -z "$CXXCPP"; then
13331 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13334 # Double quotes because CXXCPP needs to be expanded
13335 for CXXCPP in "$CXX -E" "/lib/cpp"
13337 ac_preproc_ok=false
13338 for ac_cxx_preproc_warn_flag in '' yes
13340 # Use a header file that comes with gcc, so configuring glibc
13341 # with a fresh cross-compiler works.
13342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13343 # <limits.h> exists even on freestanding compilers.
13344 # On the NeXT, cc -E runs the code through the compiler's parser,
13345 # not just through cpp. "Syntax error" is here to catch this case.
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13349 # include <limits.h>
13351 # include <assert.h>
13355 if ac_fn_cxx_try_cpp "$LINENO"; then :
13358 # Broken: fails on valid input.
13361 rm -f conftest.err conftest.$ac_ext
13363 # OK, works on sane cases. Now check whether nonexistent headers
13364 # can be detected and how.
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367 #include <ac_nonexistent.h>
13369 if ac_fn_cxx_try_cpp "$LINENO"; then :
13370 # Broken: success on invalid input.
13373 # Passes both tests.
13377 rm -f conftest.err conftest.$ac_ext
13380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13381 rm -f conftest.err conftest.$ac_ext
13382 if $ac_preproc_ok; then :
13387 ac_cv_prog_CXXCPP=$CXXCPP
13390 CXXCPP=$ac_cv_prog_CXXCPP
13392 ac_cv_prog_CXXCPP=$CXXCPP
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13395 $as_echo "$CXXCPP" >&6; }
13396 ac_preproc_ok=false
13397 for ac_cxx_preproc_warn_flag in '' yes
13399 # Use a header file that comes with gcc, so configuring glibc
13400 # with a fresh cross-compiler works.
13401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402 # <limits.h> exists even on freestanding compilers.
13403 # On the NeXT, cc -E runs the code through the compiler's parser,
13404 # not just through cpp. "Syntax error" is here to catch this case.
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13408 # include <limits.h>
13410 # include <assert.h>
13414 if ac_fn_cxx_try_cpp "$LINENO"; then :
13417 # Broken: fails on valid input.
13420 rm -f conftest.err conftest.$ac_ext
13422 # OK, works on sane cases. Now check whether nonexistent headers
13423 # can be detected and how.
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 #include <ac_nonexistent.h>
13428 if ac_fn_cxx_try_cpp "$LINENO"; then :
13429 # Broken: success on invalid input.
13432 # Passes both tests.
13436 rm -f conftest.err conftest.$ac_ext
13439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13440 rm -f conftest.err conftest.$ac_ext
13441 if $ac_preproc_ok; then :
13444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13446 _lt_caught_CXX_error=yes; }
13450 ac_cpp='$CPP $CPPFLAGS'
13451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13456 _lt_caught_CXX_error=yes
13470 enable_win32_dll=no
13473 # Check whether --enable-shared was given.
13474 if test "${enable_shared+set}" = set; then :
13475 enableval=$enable_shared; p=${PACKAGE-default}
13477 yes) enable_shared=yes ;;
13478 no) enable_shared=no ;;
13481 # Look at the argument we got. We use all the common list separators.
13482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13483 for pkg in $enableval; do
13485 if test "X$pkg" = "X$p"; then
13504 # Check whether --enable-static was given.
13505 if test "${enable_static+set}" = set; then :
13506 enableval=$enable_static; p=${PACKAGE-default}
13508 yes) enable_static=yes ;;
13509 no) enable_static=no ;;
13512 # Look at the argument we got. We use all the common list separators.
13513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13514 for pkg in $enableval; do
13516 if test "X$pkg" = "X$p"; then
13536 # Check whether --with-pic was given.
13537 if test "${with_pic+set}" = set; then :
13538 withval=$with_pic; pic_mode="$withval"
13544 test -z "$pic_mode" && pic_mode=default
13552 # Check whether --enable-fast-install was given.
13553 if test "${enable_fast_install+set}" = set; then :
13554 enableval=$enable_fast_install; p=${PACKAGE-default}
13556 yes) enable_fast_install=yes ;;
13557 no) enable_fast_install=no ;;
13559 enable_fast_install=no
13560 # Look at the argument we got. We use all the common list separators.
13561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13562 for pkg in $enableval; do
13564 if test "X$pkg" = "X$p"; then
13565 enable_fast_install=yes
13572 enable_fast_install=yes
13585 # This can be used to rebuild libtool when needed
13586 LIBTOOL_DEPS="$ltmain"
13588 # Always use our own libtool.
13589 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13615 test -z "$LN_S" && LN_S="ln -s"
13630 if test -n "${ZSH_VERSION+set}" ; then
13631 setopt NO_GLOB_SUBST
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13635 $as_echo_n "checking for objdir... " >&6; }
13636 if test "${lt_cv_objdir+set}" = set; then :
13637 $as_echo_n "(cached) " >&6
13639 rm -f .libs 2>/dev/null
13640 mkdir .libs 2>/dev/null
13641 if test -d .libs; then
13644 # MS-DOS does not allow filenames that begin with a dot.
13647 rmdir .libs 2>/dev/null
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13650 $as_echo "$lt_cv_objdir" >&6; }
13651 objdir=$lt_cv_objdir
13657 cat >>confdefs.h <<_ACEOF
13658 #define LT_OBJDIR "$lt_cv_objdir/"
13679 # AIX sometimes has problems with the GCC collect2 program. For some
13680 # reason, if we set the COLLECT_NAMES environment variable, the problems
13681 # vanish in a puff of smoke.
13682 if test "X${COLLECT_NAMES+set}" != Xset; then
13684 export COLLECT_NAMES
13689 # Sed substitution that helps us do robust quoting. It backslashifies
13690 # metacharacters that are still active within double-quoted strings.
13691 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13693 # Same as above, but do not quote variable references.
13694 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13696 # Sed substitution to delay expansion of an escaped shell variable in a
13697 # double_quote_subst'ed string.
13698 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13700 # Sed substitution to delay expansion of an escaped single quote.
13701 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13703 # Sed substitution to avoid accidental globbing in evaled expressions
13704 no_glob_subst='s/\*/\\\*/g'
13706 # Global variables:
13708 can_build_shared=yes
13710 # All known linkers require a `.a' archive for static linking (except MSVC,
13711 # which needs '.lib').
13714 with_gnu_ld="$lt_cv_prog_gnu_ld"
13717 old_CFLAGS="$CFLAGS"
13719 # Set sane defaults for various variables
13720 test -z "$CC" && CC=cc
13721 test -z "$LTCC" && LTCC=$CC
13722 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13723 test -z "$LD" && LD=ld
13724 test -z "$ac_objext" && ac_objext=o
13726 for cc_temp in $compiler""; do
13728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13734 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13737 # Only perform the check for file, if the check method requires it
13738 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13739 case $deplibs_check_method in
13741 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13743 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13744 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13745 $as_echo_n "(cached) " >&6
13749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13752 lt_save_MAGIC_CMD="$MAGIC_CMD"
13753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13754 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13755 for ac_dir in $ac_dummy; do
13757 test -z "$ac_dir" && ac_dir=.
13758 if test -f $ac_dir/${ac_tool_prefix}file; then
13759 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13760 if test -n "$file_magic_test_file"; then
13761 case $deplibs_check_method in
13763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13766 $EGREP "$file_magic_regex" > /dev/null; then
13771 *** Warning: the command libtool uses to detect shared libraries,
13772 *** $file_magic_cmd, produces output that libtool cannot recognize.
13773 *** The result is that libtool may fail to recognize shared libraries
13774 *** as such. This will affect the creation of libtool libraries that
13775 *** depend on shared libraries, but programs linked with such libtool
13776 *** libraries will work regardless of this problem. Nevertheless, you
13777 *** may want to report the problem to your system manager and/or to
13778 *** bug-libtool@gnu.org
13788 MAGIC_CMD="$lt_save_MAGIC_CMD"
13793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13794 if test -n "$MAGIC_CMD"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13796 $as_echo "$MAGIC_CMD" >&6; }
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 $as_echo "no" >&6; }
13806 if test -z "$lt_cv_path_MAGIC_CMD"; then
13807 if test -n "$ac_tool_prefix"; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13809 $as_echo_n "checking for file... " >&6; }
13810 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13811 $as_echo_n "(cached) " >&6
13815 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13818 lt_save_MAGIC_CMD="$MAGIC_CMD"
13819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13821 for ac_dir in $ac_dummy; do
13823 test -z "$ac_dir" && ac_dir=.
13824 if test -f $ac_dir/file; then
13825 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13826 if test -n "$file_magic_test_file"; then
13827 case $deplibs_check_method in
13829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13832 $EGREP "$file_magic_regex" > /dev/null; then
13837 *** Warning: the command libtool uses to detect shared libraries,
13838 *** $file_magic_cmd, produces output that libtool cannot recognize.
13839 *** The result is that libtool may fail to recognize shared libraries
13840 *** as such. This will affect the creation of libtool libraries that
13841 *** depend on shared libraries, but programs linked with such libtool
13842 *** libraries will work regardless of this problem. Nevertheless, you
13843 *** may want to report the problem to your system manager and/or to
13844 *** bug-libtool@gnu.org
13854 MAGIC_CMD="$lt_save_MAGIC_CMD"
13859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13860 if test -n "$MAGIC_CMD"; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13862 $as_echo "$MAGIC_CMD" >&6; }
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865 $as_echo "no" >&6; }
13878 # Use C for the default configuration in the libtool script
13882 ac_cpp='$CPP $CPPFLAGS'
13883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13888 # Source file extension for C test sources.
13891 # Object file extension for compiled C test sources.
13895 # Code to be used in simple compile tests
13896 lt_simple_compile_test_code="int some_variable = 0;"
13898 # Code to be used in simple link tests
13899 lt_simple_link_test_code='int main(){return(0);}'
13907 # If no C compiler was specified, use CC.
13910 # If no C compiler flags were specified, use CFLAGS.
13911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13913 # Allow CC to be a program name with arguments.
13916 # Save the default compiler, since it gets overwritten when the other
13917 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13918 compiler_DEFAULT=$CC
13920 # save warnings/boilerplate of simple test code
13921 ac_outfile=conftest.$ac_objext
13922 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13923 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13924 _lt_compiler_boilerplate=`cat conftest.err`
13927 ac_outfile=conftest.$ac_objext
13928 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13929 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13930 _lt_linker_boilerplate=`cat conftest.err`
13935 ## There is no encapsulation within the following macros, do not change
13936 ## the running order or otherwise move them around unless you know exactly
13937 ## what you are doing...
13938 if test -n "$compiler"; then
13940 lt_prog_compiler_no_builtin_flag=
13942 if test "$GCC" = yes; then
13943 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13946 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13947 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
13948 $as_echo_n "(cached) " >&6
13950 lt_cv_prog_compiler_rtti_exceptions=no
13951 ac_outfile=conftest.$ac_objext
13952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13953 lt_compiler_flag="-fno-rtti -fno-exceptions"
13954 # Insert the option either (1) after the last *FLAGS variable, or
13955 # (2) before a word containing "conftest.", or (3) at the end.
13956 # Note that $ac_compile itself does not contain backslashes and begins
13957 # with a dollar sign (not a hyphen), so the echo should work correctly.
13958 # The option is referenced via a variable to avoid confusing sed.
13959 lt_compile=`echo "$ac_compile" | $SED \
13960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13962 -e 's:$: $lt_compiler_flag:'`
13963 (eval echo "\"\$as_me:13963: $lt_compile\"" >&5)
13964 (eval "$lt_compile" 2>conftest.err)
13966 cat conftest.err >&5
13967 echo "$as_me:13967: \$? = $ac_status" >&5
13968 if (exit $ac_status) && test -s "$ac_outfile"; then
13969 # The compiler can only warn and ignore the option if not recognized
13970 # So say no if there are warnings other than the usual output.
13971 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13973 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13974 lt_cv_prog_compiler_rtti_exceptions=yes
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13981 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13983 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13984 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13996 lt_prog_compiler_wl=
13997 lt_prog_compiler_pic=
13998 lt_prog_compiler_static=
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14001 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14003 if test "$GCC" = yes; then
14004 lt_prog_compiler_wl='-Wl,'
14005 lt_prog_compiler_static='-static'
14009 # All AIX code is PIC.
14010 if test "$host_cpu" = ia64; then
14011 # AIX 5 now supports IA64 processor
14012 lt_prog_compiler_static='-Bstatic'
14019 # see comment about AmigaOS4 .so support
14020 lt_prog_compiler_pic='-fPIC'
14023 # FIXME: we need at least 68020 code to build shared libraries, but
14024 # adding the `-m68020' flag to GCC prevents building anything better,
14026 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14031 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14032 # PIC is the default for these OSes.
14035 mingw* | cygwin* | pw32* | os2* | cegcc*)
14036 # This hack is so that the source file can tell whether it is being
14037 # built for inclusion in a dll (and should export symbols for example).
14038 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14039 # (--disable-auto-import) libraries
14040 lt_prog_compiler_pic='-DDLL_EXPORT'
14043 darwin* | rhapsody*)
14044 # PIC is the default on this platform
14045 # Common symbols not allowed in MH_DYLIB files
14046 lt_prog_compiler_pic='-fno-common'
14050 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14051 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14052 # sets the default TLS model and affects inlining.
14058 lt_prog_compiler_pic='-fPIC'
14064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14065 # Instead, we relocate shared libraries at runtime.
14069 # Just because we use GCC doesn't mean we suddenly get shared libraries
14070 # on systems that don't support them.
14071 lt_prog_compiler_can_build_shared=no
14076 # QNX uses GNU C++, but need to define -shared option too, otherwise
14077 # it will coredump.
14078 lt_prog_compiler_pic='-fPIC -shared'
14082 if test -d /usr/nec; then
14083 lt_prog_compiler_pic=-Kconform_pic
14088 lt_prog_compiler_pic='-fPIC'
14092 # PORTME Check for flag to pass linker flags through the system compiler.
14095 lt_prog_compiler_wl='-Wl,'
14096 if test "$host_cpu" = ia64; then
14097 # AIX 5 now supports IA64 processor
14098 lt_prog_compiler_static='-Bstatic'
14100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14104 mingw* | cygwin* | pw32* | os2* | cegcc*)
14105 # This hack is so that the source file can tell whether it is being
14106 # built for inclusion in a dll (and should export symbols for example).
14107 lt_prog_compiler_pic='-DDLL_EXPORT'
14110 hpux9* | hpux10* | hpux11*)
14111 lt_prog_compiler_wl='-Wl,'
14112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14113 # not for PA HP-UX.
14119 lt_prog_compiler_pic='+Z'
14122 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14123 lt_prog_compiler_static='${wl}-a ${wl}archive'
14126 irix5* | irix6* | nonstopux*)
14127 lt_prog_compiler_wl='-Wl,'
14128 # PIC (with -KPIC) is the default.
14129 lt_prog_compiler_static='-non_shared'
14132 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14133 case $cc_basename in
14134 # old Intel for x86_64 which still supported -KPIC.
14136 lt_prog_compiler_wl='-Wl,'
14137 lt_prog_compiler_pic='-KPIC'
14138 lt_prog_compiler_static='-static'
14140 # icc used to be incompatible with GCC.
14141 # ICC 10 doesn't accept -KPIC any more.
14143 lt_prog_compiler_wl='-Wl,'
14144 lt_prog_compiler_pic='-fPIC'
14145 lt_prog_compiler_static='-static'
14147 # Lahey Fortran 8.1.
14149 lt_prog_compiler_wl='-Wl,'
14150 lt_prog_compiler_pic='--shared'
14151 lt_prog_compiler_static='--static'
14153 pgcc* | pgf77* | pgf90* | pgf95*)
14154 # Portland Group compilers (*not* the Pentium gcc compiler,
14155 # which looks to be a dead project)
14156 lt_prog_compiler_wl='-Wl,'
14157 lt_prog_compiler_pic='-fpic'
14158 lt_prog_compiler_static='-Bstatic'
14161 lt_prog_compiler_wl='-Wl,'
14162 # All Alpha code is PIC.
14163 lt_prog_compiler_static='-non_shared'
14166 # IBM XL C 8.0/Fortran 10.1 on PPC
14167 lt_prog_compiler_wl='-Wl,'
14168 lt_prog_compiler_pic='-qpic'
14169 lt_prog_compiler_static='-qstaticlink'
14172 case `$CC -V 2>&1 | sed 5q` in
14175 lt_prog_compiler_pic='-KPIC'
14176 lt_prog_compiler_static='-Bstatic'
14177 lt_prog_compiler_wl='-Wl,'
14180 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14181 lt_prog_compiler_pic='-KPIC'
14182 lt_prog_compiler_static='-Bstatic'
14183 lt_prog_compiler_wl=''
14191 lt_prog_compiler_pic='-KPIC'
14192 lt_prog_compiler_static='-Bstatic'
14196 # QNX uses GNU C++, but need to define -shared option too, otherwise
14197 # it will coredump.
14198 lt_prog_compiler_pic='-fPIC -shared'
14201 osf3* | osf4* | osf5*)
14202 lt_prog_compiler_wl='-Wl,'
14203 # All OSF/1 code is PIC.
14204 lt_prog_compiler_static='-non_shared'
14208 lt_prog_compiler_static='-non_shared'
14212 lt_prog_compiler_pic='-KPIC'
14213 lt_prog_compiler_static='-Bstatic'
14214 case $cc_basename in
14215 f77* | f90* | f95*)
14216 lt_prog_compiler_wl='-Qoption ld ';;
14218 lt_prog_compiler_wl='-Wl,';;
14223 lt_prog_compiler_wl='-Qoption ld '
14224 lt_prog_compiler_pic='-PIC'
14225 lt_prog_compiler_static='-Bstatic'
14228 sysv4 | sysv4.2uw2* | sysv4.3*)
14229 lt_prog_compiler_wl='-Wl,'
14230 lt_prog_compiler_pic='-KPIC'
14231 lt_prog_compiler_static='-Bstatic'
14235 if test -d /usr/nec ;then
14236 lt_prog_compiler_pic='-Kconform_pic'
14237 lt_prog_compiler_static='-Bstatic'
14241 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14242 lt_prog_compiler_wl='-Wl,'
14243 lt_prog_compiler_pic='-KPIC'
14244 lt_prog_compiler_static='-Bstatic'
14248 lt_prog_compiler_wl='-Wl,'
14249 lt_prog_compiler_can_build_shared=no
14253 lt_prog_compiler_pic='-pic'
14254 lt_prog_compiler_static='-Bstatic'
14258 lt_prog_compiler_can_build_shared=no
14264 # For platforms which do not support PIC, -DPIC is meaningless:
14266 lt_prog_compiler_pic=
14269 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14273 $as_echo "$lt_prog_compiler_pic" >&6; }
14281 # Check to make sure the PIC flag actually works.
14283 if test -n "$lt_prog_compiler_pic"; then
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14285 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14286 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14287 $as_echo_n "(cached) " >&6
14289 lt_cv_prog_compiler_pic_works=no
14290 ac_outfile=conftest.$ac_objext
14291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14292 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14293 # Insert the option either (1) after the last *FLAGS variable, or
14294 # (2) before a word containing "conftest.", or (3) at the end.
14295 # Note that $ac_compile itself does not contain backslashes and begins
14296 # with a dollar sign (not a hyphen), so the echo should work correctly.
14297 # The option is referenced via a variable to avoid confusing sed.
14298 lt_compile=`echo "$ac_compile" | $SED \
14299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14301 -e 's:$: $lt_compiler_flag:'`
14302 (eval echo "\"\$as_me:14302: $lt_compile\"" >&5)
14303 (eval "$lt_compile" 2>conftest.err)
14305 cat conftest.err >&5
14306 echo "$as_me:14306: \$? = $ac_status" >&5
14307 if (exit $ac_status) && test -s "$ac_outfile"; then
14308 # The compiler can only warn and ignore the option if not recognized
14309 # So say no if there are warnings other than the usual output.
14310 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14312 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14313 lt_cv_prog_compiler_pic_works=yes
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14320 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14322 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14323 case $lt_prog_compiler_pic in
14325 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14328 lt_prog_compiler_pic=
14329 lt_prog_compiler_can_build_shared=no
14340 # Check to make sure the static flag actually works.
14342 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14344 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14345 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14348 lt_cv_prog_compiler_static_works=no
14349 save_LDFLAGS="$LDFLAGS"
14350 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14351 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14353 # The linker can only warn and ignore the option if not recognized
14354 # So say no if there are warnings
14355 if test -s conftest.err; then
14356 # Append any errors to the config.log.
14357 cat conftest.err 1>&5
14358 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14360 if diff conftest.exp conftest.er2 >/dev/null; then
14361 lt_cv_prog_compiler_static_works=yes
14364 lt_cv_prog_compiler_static_works=yes
14368 LDFLAGS="$save_LDFLAGS"
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14372 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14374 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14377 lt_prog_compiler_static=
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14387 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14388 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14389 $as_echo_n "(cached) " >&6
14391 lt_cv_prog_compiler_c_o=no
14392 $RM -r conftest 2>/dev/null
14396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14398 lt_compiler_flag="-o out/conftest2.$ac_objext"
14399 # Insert the option either (1) after the last *FLAGS variable, or
14400 # (2) before a word containing "conftest.", or (3) at the end.
14401 # Note that $ac_compile itself does not contain backslashes and begins
14402 # with a dollar sign (not a hyphen), so the echo should work correctly.
14403 lt_compile=`echo "$ac_compile" | $SED \
14404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14406 -e 's:$: $lt_compiler_flag:'`
14407 (eval echo "\"\$as_me:14407: $lt_compile\"" >&5)
14408 (eval "$lt_compile" 2>out/conftest.err)
14410 cat out/conftest.err >&5
14411 echo "$as_me:14411: \$? = $ac_status" >&5
14412 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14414 # The compiler can only warn and ignore the option if not recognized
14415 # So say no if there are warnings
14416 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14419 lt_cv_prog_compiler_c_o=yes
14424 # SGI C++ compiler will create directory out/ii_files/ for
14425 # template instantiation
14426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14427 $RM out/* && rmdir out
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14434 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14442 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14443 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14446 lt_cv_prog_compiler_c_o=no
14447 $RM -r conftest 2>/dev/null
14451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14453 lt_compiler_flag="-o out/conftest2.$ac_objext"
14454 # Insert the option either (1) after the last *FLAGS variable, or
14455 # (2) before a word containing "conftest.", or (3) at the end.
14456 # Note that $ac_compile itself does not contain backslashes and begins
14457 # with a dollar sign (not a hyphen), so the echo should work correctly.
14458 lt_compile=`echo "$ac_compile" | $SED \
14459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14461 -e 's:$: $lt_compiler_flag:'`
14462 (eval echo "\"\$as_me:14462: $lt_compile\"" >&5)
14463 (eval "$lt_compile" 2>out/conftest.err)
14465 cat out/conftest.err >&5
14466 echo "$as_me:14466: \$? = $ac_status" >&5
14467 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14469 # The compiler can only warn and ignore the option if not recognized
14470 # So say no if there are warnings
14471 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14472 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14473 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14474 lt_cv_prog_compiler_c_o=yes
14479 # SGI C++ compiler will create directory out/ii_files/ for
14480 # template instantiation
14481 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14482 $RM out/* && rmdir out
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14489 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14494 hard_links="nottested"
14495 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14496 # do not overwrite the value of need_locks provided by the user
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14498 $as_echo_n "checking if we can lock with hard links... " >&6; }
14501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14503 ln conftest.a conftest.b 2>&5 || hard_links=no
14504 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14506 $as_echo "$hard_links" >&6; }
14507 if test "$hard_links" = no; then
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14509 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14522 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14525 allow_undefined_flag=
14526 always_export_symbols=no
14528 archive_expsym_cmds=
14529 compiler_needs_object=no
14530 enable_shared_with_static_runtimes=no
14531 export_dynamic_flag_spec=
14532 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14533 hardcode_automatic=no
14535 hardcode_direct_absolute=no
14536 hardcode_libdir_flag_spec=
14537 hardcode_libdir_flag_spec_ld=
14538 hardcode_libdir_separator=
14539 hardcode_minus_L=no
14540 hardcode_shlibpath_var=unsupported
14542 link_all_deplibs=unknown
14544 module_expsym_cmds=
14545 old_archive_from_new_cmds=
14546 old_archive_from_expsyms_cmds=
14547 thread_safe_flag_spec=
14548 whole_archive_flag_spec=
14549 # include_expsyms should be a list of space-separated symbols to be *always*
14550 # included in the symbol list
14552 # exclude_expsyms can be an extended regexp of symbols to exclude
14553 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14554 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14555 # as well as any symbol that contains `d'.
14556 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14557 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14558 # platforms (ab)use it in PIC code, but their linkers get confused if
14559 # the symbol is explicitly referenced. Since portable code cannot
14560 # rely on this symbol name, it's probably fine to never include it in
14561 # preloaded symbol tables.
14562 # Exclude shared library initialization/finalization symbols.
14563 extract_expsyms_cmds=
14566 cygwin* | mingw* | pw32* | cegcc*)
14567 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14568 # When not using gcc, we currently assume that we are using
14569 # Microsoft Visual C++.
14570 if test "$GCC" != yes; then
14575 # we just hope/assume this is gcc and not c89 (= MSVC++)
14584 if test "$with_gnu_ld" = yes; then
14585 # If archive_cmds runs LD, not CC, wlarc should be empty
14588 # Set some defaults for GNU ld with shared library support. These
14589 # are reset later if shared libraries are not supported. Putting them
14590 # here allows them to be overridden if necessary.
14591 runpath_var=LD_RUN_PATH
14592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14593 export_dynamic_flag_spec='${wl}--export-dynamic'
14594 # ancient GNU ld didn't support --whole-archive et. al.
14595 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14596 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14598 whole_archive_flag_spec=
14600 supports_anon_versioning=no
14601 case `$LD -v 2>&1` in
14602 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14603 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14604 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14605 *\ 2.11.*) ;; # other 2.11 versions
14606 *) supports_anon_versioning=yes ;;
14609 # See if GNU ld supports shared libraries.
14612 # On AIX/PPC, the GNU linker is very broken
14613 if test "$host_cpu" != ia64; then
14617 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14618 *** to be unable to reliably create shared libraries on AIX.
14619 *** Therefore, libtool is disabling shared libraries support. If you
14620 *** really care for shared libraries, you may want to modify your PATH
14621 *** so that a non-GNU linker is found, and then restart.
14630 # see comment about AmigaOS4 .so support
14631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14632 archive_expsym_cmds=''
14635 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)'
14636 hardcode_libdir_flag_spec='-L$libdir'
14637 hardcode_minus_L=yes
14643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14644 allow_undefined_flag=unsupported
14645 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14646 # support --undefined. This deserves some investigation. FIXME
14647 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14653 cygwin* | mingw* | pw32* | cegcc*)
14654 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14655 # as there is no search path for DLLs.
14656 hardcode_libdir_flag_spec='-L$libdir'
14657 allow_undefined_flag=unsupported
14658 always_export_symbols=no
14659 enable_shared_with_static_runtimes=yes
14660 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14664 # If the export-symbols file already is a .def file (1st line
14665 # is EXPORTS), use it as is; otherwise, prepend...
14666 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14667 cp $export_symbols $output_objdir/$soname.def;
14669 echo EXPORTS > $output_objdir/$soname.def;
14670 cat $export_symbols >> $output_objdir/$soname.def;
14672 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14680 hardcode_shlibpath_var=no
14681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14682 export_dynamic_flag_spec='${wl}-E'
14683 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14684 # Instead, shared libraries are loaded at an image base (0x10000000 by
14685 # default) and relocated if they conflict, which is a slow very memory
14686 # consuming and fragmenting process. To avoid this, we pick a random,
14687 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14688 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14690 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'
14693 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14695 if test "$host_os" = linux-dietlibc; then
14696 case $cc_basename in
14697 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14700 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14701 && test "$tmp_diet" = no
14704 tmp_sharedflag='-shared'
14705 case $cc_basename,$host_cpu in
14706 pgcc*) # Portland Group C compiler
14707 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'
14708 tmp_addflag=' $pic_flag'
14710 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14711 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'
14712 tmp_addflag=' $pic_flag -Mnomain' ;;
14713 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14714 tmp_addflag=' -i_dynamic' ;;
14715 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14716 tmp_addflag=' -i_dynamic -nofor_main' ;;
14717 ifc* | ifort*) # Intel Fortran compiler
14718 tmp_addflag=' -nofor_main' ;;
14719 lf95*) # Lahey Fortran 8.1
14720 whole_archive_flag_spec=
14721 tmp_sharedflag='--shared' ;;
14722 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14723 tmp_sharedflag='-qmkshrobj'
14726 case `$CC -V 2>&1 | sed 5q` in
14727 *Sun\ C*) # Sun C 5.9
14728 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'
14729 compiler_needs_object=yes
14730 tmp_sharedflag='-G' ;;
14731 *Sun\ F*) # Sun Fortran 8.3
14732 tmp_sharedflag='-G' ;;
14734 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14736 if test "x$supports_anon_versioning" = xyes; then
14737 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14738 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14739 echo "local: *; };" >> $output_objdir/$libname.ver~
14740 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14743 case $cc_basename in
14745 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14746 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14747 hardcode_libdir_flag_spec=
14748 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14749 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14750 if test "x$supports_anon_versioning" = xyes; then
14751 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14753 echo "local: *; };" >> $output_objdir/$libname.ver~
14754 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14765 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14774 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14778 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14779 *** create shared libraries on Solaris systems. Therefore, libtool
14780 *** is disabling shared libraries support. We urge you to upgrade GNU
14781 *** binutils to release 2.9.1 or newer. Another option is to modify
14782 *** your PATH or compiler configuration so that the native linker is
14783 *** used, and then restart.
14786 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14794 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14795 case `$LD -v 2>&1` in
14796 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14800 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14801 *** reliably create shared libraries on SCO systems. Therefore, libtool
14802 *** is disabling shared libraries support. We urge you to upgrade GNU
14803 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14804 *** your PATH or compiler configuration so that the native linker is
14805 *** used, and then restart.
14810 # For security reasons, it is highly recommended that you always
14811 # use absolute paths for naming shared libraries, and exclude the
14812 # DT_RUNPATH tag from executables and libraries. But doing so
14813 # requires that you compile everything twice, which is a pain.
14814 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14817 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14826 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14828 hardcode_direct=yes
14829 hardcode_shlibpath_var=no
14833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14842 if test "$ld_shlibs" = no; then
14844 hardcode_libdir_flag_spec=
14845 export_dynamic_flag_spec=
14846 whole_archive_flag_spec=
14849 # PORTME fill in a description of your system's linker (not GNU ld)
14852 allow_undefined_flag=unsupported
14853 always_export_symbols=yes
14854 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'
14855 # Note: this linker hardcodes the directories in LIBPATH if there
14856 # are no directories specified by -L.
14857 hardcode_minus_L=yes
14858 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14859 # Neither direct hardcoding nor static linking is supported with a
14861 hardcode_direct=unsupported
14866 if test "$host_cpu" = ia64; then
14867 # On IA64, the linker does run time linking by default, so we don't
14868 # have to do anything special.
14869 aix_use_runtimelinking=no
14870 exp_sym_flag='-Bexport'
14873 # If we're using GNU nm, then we don't want the "-C" option.
14874 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14875 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14876 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'
14878 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'
14880 aix_use_runtimelinking=no
14882 # Test if we are trying to use run time linking or normal
14883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14884 # need to do runtime linking.
14885 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14886 for ld_flag in $LDFLAGS; do
14887 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14888 aix_use_runtimelinking=yes
14895 exp_sym_flag='-bexport'
14896 no_entry_flag='-bnoentry'
14899 # When large executables or shared objects are built, AIX ld can
14900 # have problems creating the table of contents. If linking a library
14901 # or program results in "error TOC overflow" add -mminimal-toc to
14902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14906 hardcode_direct=yes
14907 hardcode_direct_absolute=yes
14908 hardcode_libdir_separator=':'
14909 link_all_deplibs=yes
14910 file_list_spec='${wl}-f,'
14912 if test "$GCC" = yes; then
14913 case $host_os in aix4.[012]|aix4.[012].*)
14914 # We only want to do this on AIX 4.2 and lower, the check
14915 # below for broken collect2 doesn't work under 4.3+
14916 collect2name=`${CC} -print-prog-name=collect2`
14917 if test -f "$collect2name" &&
14918 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14920 # We have reworked collect2
14923 # We have old collect2
14924 hardcode_direct=unsupported
14925 # It fails to find uninstalled libraries when the uninstalled
14926 # path is not listed in the libpath. Setting hardcode_minus_L
14927 # to unsupported forces relinking
14928 hardcode_minus_L=yes
14929 hardcode_libdir_flag_spec='-L$libdir'
14930 hardcode_libdir_separator=
14934 shared_flag='-shared'
14935 if test "$aix_use_runtimelinking" = yes; then
14936 shared_flag="$shared_flag "'${wl}-G'
14940 if test "$host_cpu" = ia64; then
14941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14942 # chokes on -Wl,-G. The following line is correct:
14945 if test "$aix_use_runtimelinking" = yes; then
14946 shared_flag='${wl}-G'
14948 shared_flag='${wl}-bM:SRE'
14953 export_dynamic_flag_spec='${wl}-bexpall'
14954 # It seems that -bexpall does not export symbols beginning with
14955 # underscore (_), so it is better to generate a list of symbols to export.
14956 always_export_symbols=yes
14957 if test "$aix_use_runtimelinking" = yes; then
14958 # Warning - without using the other runtime loading flags (-brtl),
14959 # -berok will link without error, but may produce a broken library.
14960 allow_undefined_flag='-berok'
14961 # Determine the default libpath from the value encoded in an
14962 # empty executable.
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14974 if ac_fn_c_try_link "$LINENO"; then :
14976 lt_aix_libpath_sed='
14977 /Import File Strings/,/^$/ {
14983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14984 # Check for a 64-bit object if we didn't find anything.
14985 if test -z "$aix_libpath"; then
14986 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14993 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14994 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"
14996 if test "$host_cpu" = ia64; then
14997 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14998 allow_undefined_flag="-z nodefs"
14999 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"
15001 # Determine the default libpath from the value encoded in an
15002 # empty executable.
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15014 if ac_fn_c_try_link "$LINENO"; then :
15016 lt_aix_libpath_sed='
15017 /Import File Strings/,/^$/ {
15023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15024 # Check for a 64-bit object if we didn't find anything.
15025 if test -z "$aix_libpath"; then
15026 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15029 rm -f core conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15033 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15034 # Warning - without using the other run time loading flags,
15035 # -berok will link without error, but may produce a broken library.
15036 no_undefined_flag=' ${wl}-bernotok'
15037 allow_undefined_flag=' ${wl}-berok'
15038 # Exported symbols can be pulled into shared objects from archives
15039 whole_archive_flag_spec='$convenience'
15040 archive_cmds_need_lc=yes
15041 # This is similar to how AIX traditionally builds its shared libraries.
15042 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'
15050 # see comment about AmigaOS4 .so support
15051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052 archive_expsym_cmds=''
15055 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)'
15056 hardcode_libdir_flag_spec='-L$libdir'
15057 hardcode_minus_L=yes
15063 export_dynamic_flag_spec=-rdynamic
15066 cygwin* | mingw* | pw32* | cegcc*)
15067 # When not using gcc, we currently assume that we are using
15068 # Microsoft Visual C++.
15069 # hardcode_libdir_flag_spec is actually meaningless, as there is
15070 # no search path for DLLs.
15071 hardcode_libdir_flag_spec=' '
15072 allow_undefined_flag=unsupported
15073 # Tell ltmain to make .lib files, not .a files.
15075 # Tell ltmain to make .dll files, not .so files.
15077 # FIXME: Setting linknames here is a bad hack.
15078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15079 # The linker will automatically build a .lib file if we build a DLL.
15080 old_archive_from_new_cmds='true'
15081 # FIXME: Should let the user specify the lib program.
15082 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15083 fix_srcfile_path='`cygpath -w "$srcfile"`'
15084 enable_shared_with_static_runtimes=yes
15087 darwin* | rhapsody*)
15090 archive_cmds_need_lc=no
15092 hardcode_automatic=yes
15093 hardcode_shlibpath_var=unsupported
15094 whole_archive_flag_spec=''
15095 link_all_deplibs=yes
15096 allow_undefined_flag="$_lt_dar_allow_undefined"
15097 case $cc_basename in
15098 ifort*) _lt_dar_can_shared=yes ;;
15099 *) _lt_dar_can_shared=$GCC ;;
15101 if test "$_lt_dar_can_shared" = "yes"; then
15102 output_verbose_link_cmd=echo
15103 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15104 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15105 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}"
15106 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}"
15115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15116 hardcode_libdir_flag_spec='-L$libdir'
15117 hardcode_shlibpath_var=no
15124 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15125 # support. Future versions do this automatically, but an explicit c++rt0.o
15126 # does not break anything, and helps significantly (at the cost of a little
15129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15130 hardcode_libdir_flag_spec='-R$libdir'
15131 hardcode_direct=yes
15132 hardcode_shlibpath_var=no
15135 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15138 hardcode_direct=yes
15139 hardcode_minus_L=yes
15140 hardcode_shlibpath_var=no
15143 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15144 freebsd* | dragonfly*)
15145 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15146 hardcode_libdir_flag_spec='-R$libdir'
15147 hardcode_direct=yes
15148 hardcode_shlibpath_var=no
15152 if test "$GCC" = yes; then
15153 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'
15155 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'
15157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15158 hardcode_libdir_separator=:
15159 hardcode_direct=yes
15161 # hardcode_minus_L: Not really in the search PATH,
15162 # but as the default location of the library.
15163 hardcode_minus_L=yes
15164 export_dynamic_flag_spec='${wl}-E'
15168 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15169 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15173 if test "$with_gnu_ld" = no; then
15174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15175 hardcode_libdir_flag_spec_ld='+b $libdir'
15176 hardcode_libdir_separator=:
15177 hardcode_direct=yes
15178 hardcode_direct_absolute=yes
15179 export_dynamic_flag_spec='${wl}-E'
15180 # hardcode_minus_L: Not really in the search PATH,
15181 # but as the default location of the library.
15182 hardcode_minus_L=yes
15187 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15190 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15196 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15202 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15205 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15208 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15212 if test "$with_gnu_ld" = no; then
15213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15214 hardcode_libdir_separator=:
15219 hardcode_shlibpath_var=no
15222 hardcode_direct=yes
15223 hardcode_direct_absolute=yes
15224 export_dynamic_flag_spec='${wl}-E'
15226 # hardcode_minus_L: Not really in the search PATH,
15227 # but as the default location of the library.
15228 hardcode_minus_L=yes
15234 irix5* | irix6* | nonstopux*)
15235 if test "$GCC" = yes; then
15236 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'
15237 # Try to use the -exported_symbol ld option, if it does not
15238 # work, assume that -exports_file does not work either and
15239 # implicitly export all symbols.
15240 save_LDFLAGS="$LDFLAGS"
15241 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243 /* end confdefs.h. */
15246 if ac_fn_c_try_link "$LINENO"; then :
15247 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'
15250 rm -f core conftest.err conftest.$ac_objext \
15251 conftest$ac_exeext conftest.$ac_ext
15252 LDFLAGS="$save_LDFLAGS"
15254 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'
15255 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'
15257 archive_cmds_need_lc='no'
15258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15259 hardcode_libdir_separator=:
15261 link_all_deplibs=yes
15265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15268 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15270 hardcode_libdir_flag_spec='-R$libdir'
15271 hardcode_direct=yes
15272 hardcode_shlibpath_var=no
15276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15277 hardcode_direct=yes
15278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15279 hardcode_libdir_separator=:
15280 hardcode_shlibpath_var=no
15287 if test -f /usr/libexec/ld.so; then
15288 hardcode_direct=yes
15289 hardcode_shlibpath_var=no
15290 hardcode_direct_absolute=yes
15291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15293 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15294 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15295 export_dynamic_flag_spec='${wl}-E'
15298 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15300 hardcode_libdir_flag_spec='-R$libdir'
15303 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15314 hardcode_libdir_flag_spec='-L$libdir'
15315 hardcode_minus_L=yes
15316 allow_undefined_flag=unsupported
15317 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'
15318 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15322 if test "$GCC" = yes; then
15323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15324 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'
15326 allow_undefined_flag=' -expect_unresolved \*'
15327 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'
15329 archive_cmds_need_lc='no'
15330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15331 hardcode_libdir_separator=:
15334 osf4* | osf5*) # as osf3* with the addition of -msym flag
15335 if test "$GCC" = yes; then
15336 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15337 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'
15338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15340 allow_undefined_flag=' -expect_unresolved \*'
15341 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'
15342 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~
15343 $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'
15345 # Both c and cxx compiler support -rpath directly
15346 hardcode_libdir_flag_spec='-rpath $libdir'
15348 archive_cmds_need_lc='no'
15349 hardcode_libdir_separator=:
15353 no_undefined_flag=' -z defs'
15354 if test "$GCC" = yes; then
15356 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15357 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15358 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15360 case `$CC -V 2>&1` in
15363 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15364 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15365 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15369 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15371 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15375 hardcode_libdir_flag_spec='-R$libdir'
15376 hardcode_shlibpath_var=no
15378 solaris2.[0-5] | solaris2.[0-5].*) ;;
15380 # The compiler driver will combine and reorder linker options,
15381 # but understands `-z linker_flag'. GCC discards it without `$wl',
15382 # but is careful enough not to reorder.
15383 # Supported since Solaris 2.6 (maybe 2.5.1?)
15384 if test "$GCC" = yes; then
15385 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15387 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15391 link_all_deplibs=yes
15395 if test "x$host_vendor" = xsequent; then
15396 # Use $CC to link under sequent, because it throws in some extra .o
15397 # files that make .init and .fini sections work.
15398 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15400 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15402 hardcode_libdir_flag_spec='-L$libdir'
15403 hardcode_direct=yes
15404 hardcode_minus_L=yes
15405 hardcode_shlibpath_var=no
15409 case $host_vendor in
15411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_direct=yes # is this really true???
15415 ## LD is ld it makes a PLAMLIB
15416 ## CC just makes a GrossModule.
15417 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15418 reload_cmds='$CC -r -o $output$reload_objs'
15422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15423 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15426 runpath_var='LD_RUN_PATH'
15427 hardcode_shlibpath_var=no
15431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432 hardcode_shlibpath_var=no
15433 export_dynamic_flag_spec='-Bexport'
15437 if test -d /usr/nec; then
15438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439 hardcode_shlibpath_var=no
15440 runpath_var=LD_RUN_PATH
15441 hardcode_runpath_var=yes
15446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15447 no_undefined_flag='${wl}-z,text'
15448 archive_cmds_need_lc=no
15449 hardcode_shlibpath_var=no
15450 runpath_var='LD_RUN_PATH'
15452 if test "$GCC" = yes; then
15453 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15454 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15456 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15457 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15461 sysv5* | sco3.2v5* | sco5v6*)
15462 # Note: We can NOT use -z defs as we might desire, because we do not
15463 # link with -lc, and that would cause any symbols used from libc to
15464 # always be unresolved, which means just about no library would
15465 # ever link correctly. If we're not using GNU ld we use -z text
15466 # though, which does catch some bad symbols but isn't as heavy-handed
15468 no_undefined_flag='${wl}-z,text'
15469 allow_undefined_flag='${wl}-z,nodefs'
15470 archive_cmds_need_lc=no
15471 hardcode_shlibpath_var=no
15472 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15473 hardcode_libdir_separator=':'
15474 link_all_deplibs=yes
15475 export_dynamic_flag_spec='${wl}-Bexport'
15476 runpath_var='LD_RUN_PATH'
15478 if test "$GCC" = yes; then
15479 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15480 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15482 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15483 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489 hardcode_libdir_flag_spec='-L$libdir'
15490 hardcode_shlibpath_var=no
15498 if test x$host_vendor = xsni; then
15500 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15501 export_dynamic_flag_spec='${wl}-Blargedynsym'
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15508 $as_echo "$ld_shlibs" >&6; }
15509 test "$ld_shlibs" = no && can_build_shared=no
15511 with_gnu_ld=$with_gnu_ld
15528 # Do we need to explicitly link libc?
15530 case "x$archive_cmds_need_lc" in
15532 # Assume -lc should be added
15533 archive_cmds_need_lc=yes
15535 if test "$enable_shared" = yes && test "$GCC" = yes; then
15536 case $archive_cmds in
15538 # FIXME: we may have to deal with multi-command sequences.
15541 # Test whether the compiler implicitly links with -lc since on some
15542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15543 # to ld, don't add -lc before -lgcc.
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15545 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15546 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15547 $as_echo_n "(cached) " >&6
15550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15553 (eval $ac_compile) 2>&5
15555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15556 test $ac_status = 0; } 2>conftest.err; then
15559 libobjs=conftest.$ac_objext
15561 wl=$lt_prog_compiler_wl
15562 pic_flag=$lt_prog_compiler_pic
15568 lt_save_allow_undefined_flag=$allow_undefined_flag
15569 allow_undefined_flag=
15570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15571 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15574 test $ac_status = 0; }
15576 lt_cv_archive_cmds_need_lc=no
15578 lt_cv_archive_cmds_need_lc=yes
15580 allow_undefined_flag=$lt_save_allow_undefined_flag
15582 cat conftest.err 1>&5
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15588 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15589 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15753 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15755 if test "$GCC" = yes; then
15757 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15758 *) lt_awk_arg="/^libraries:/" ;;
15760 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15761 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
15762 # if the path contains ";" then we assume it to be the separator
15763 # otherwise default to the standard path separator (i.e. ":") - it is
15764 # assumed that no part of a normal pathname contains ";" but that should
15765 # okay in the real world where ";" in dirpaths is itself problematic.
15766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15768 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15770 # Ok, now we have the path, separated by spaces, we can step through it
15771 # and add multilib dir if necessary.
15772 lt_tmp_lt_search_path_spec=
15773 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15774 for lt_sys_path in $lt_search_path_spec; do
15775 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15776 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15778 test -d "$lt_sys_path" && \
15779 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15782 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
15783 BEGIN {RS=" "; FS="/|\n";} {
15786 for (lt_i = NF; lt_i > 0; lt_i--) {
15787 if ($lt_i != "" && $lt_i != ".") {
15788 if ($lt_i == "..") {
15791 if (lt_count == 0) {
15792 lt_foo="/" $lt_i lt_foo;
15799 if (lt_foo != "") { lt_freq[lt_foo]++; }
15800 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15802 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
15804 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15806 library_names_spec=
15807 libname_spec='lib$name'
15811 postuninstall_cmds=
15815 shlibpath_overrides_runpath=unknown
15817 dynamic_linker="$host_os ld.so"
15818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15819 need_lib_prefix=unknown
15820 hardcode_into_libs=no
15822 # when you set need_version to no, make sure it does not cause -set_version
15823 # flags to be left without arguments
15824 need_version=unknown
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15830 shlibpath_var=LIBPATH
15832 # AIX 3 has no versioning support, so we append a major version to the name.
15833 soname_spec='${libname}${release}${shared_ext}$major'
15840 hardcode_into_libs=yes
15841 if test "$host_cpu" = ia64; then
15842 # AIX 5 supports IA64
15843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15844 shlibpath_var=LD_LIBRARY_PATH
15846 # With GCC up to 2.95.x, collect2 would create an import file
15847 # for dependence libraries. The import file would start with
15848 # the line `#! .'. This would cause the generated library to
15849 # depend on `.', always an invalid library. This was fixed in
15850 # development snapshots of GCC prior to 3.0.
15852 aix4 | aix4.[01] | aix4.[01].*)
15853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15855 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15858 can_build_shared=no
15862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15863 # soname into executable. Probably we can add versioning support to
15864 # collect2, so additional links can be useful in future.
15865 if test "$aix_use_runtimelinking" = yes; then
15866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15867 # instead of lib<name>.a to let people know that these are not
15868 # typical AIX shared libraries.
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871 # We preserve .a as extension for shared libraries through AIX4.2
15872 # and later when we are not doing run time linking.
15873 library_names_spec='${libname}${release}.a $libname.a'
15874 soname_spec='${libname}${release}${shared_ext}$major'
15876 shlibpath_var=LIBPATH
15883 # Since July 2007 AmigaOS4 officially supports .so libraries.
15884 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15888 library_names_spec='$libname.ixlibrary $libname.a'
15889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15890 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'
15896 library_names_spec='${libname}${shared_ext}'
15897 dynamic_linker="$host_os ld.so"
15898 shlibpath_var=LIBRARY_PATH
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905 soname_spec='${libname}${release}${shared_ext}$major'
15906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15907 shlibpath_var=LD_LIBRARY_PATH
15908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15910 # the default ld.so.conf also contains /usr/contrib/lib and
15911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15912 # libtool to hard-code these into programs
15915 cygwin* | mingw* | pw32* | cegcc*)
15916 version_type=windows
15921 case $GCC,$host_os in
15922 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15923 library_names_spec='$libname.dll.a'
15924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15925 postinstall_cmds='base_file=`basename \${file}`~
15926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15927 dldir=$destdir/`dirname \$dlpath`~
15928 test -d \$dldir || mkdir -p \$dldir~
15929 $install_prog $dir/$dlname \$dldir/$dlname~
15930 chmod a+x \$dldir/$dlname~
15931 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15932 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15935 dlpath=$dir/\$dldll~
15937 shlibpath_overrides_runpath=yes
15941 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15942 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15943 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15946 # MinGW DLLs use traditional 'lib' prefix
15947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15948 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15949 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15950 # It is most probably a Windows format PATH printed by
15951 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15952 # path with ; separators, and with drive letters. We can handle the
15953 # drive letters (cygwin fileutils understands them), so leave them,
15954 # especially as we might pass files found there to a mingw objdump,
15955 # which wouldn't understand a cygwinified path. Ahh.
15956 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15958 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15962 # pw32 DLLs use 'pw' prefix rather than 'lib'
15963 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15972 dynamic_linker='Win32 ld.exe'
15973 # FIXME: first we should search . and the directory the executable is in
15977 darwin* | rhapsody*)
15978 dynamic_linker="$host_os dyld"
15979 version_type=darwin
15982 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15983 soname_spec='${libname}${release}${major}$shared_ext'
15984 shlibpath_overrides_runpath=yes
15985 shlibpath_var=DYLD_LIBRARY_PATH
15986 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15988 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15989 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 shlibpath_var=LD_LIBRARY_PATH
16005 freebsd* | dragonfly*)
16006 # DragonFly does not have aout. When/if they implement a new
16007 # versioning mechanism, adjust this.
16008 if test -x /usr/bin/objformat; then
16009 objformat=`/usr/bin/objformat`
16012 freebsd[123]*) objformat=aout ;;
16013 *) objformat=elf ;;
16016 version_type=freebsd-$objformat
16017 case $version_type in
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16028 shlibpath_var=LD_LIBRARY_PATH
16031 shlibpath_overrides_runpath=yes
16033 freebsd3.[01]* | freebsdelf3.[01]*)
16034 shlibpath_overrides_runpath=yes
16035 hardcode_into_libs=yes
16037 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16038 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16039 shlibpath_overrides_runpath=no
16040 hardcode_into_libs=yes
16042 *) # from 4.6 on, and DragonFly
16043 shlibpath_overrides_runpath=yes
16044 hardcode_into_libs=yes
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 shlibpath_var=LD_LIBRARY_PATH
16056 hardcode_into_libs=yes
16059 hpux9* | hpux10* | hpux11*)
16060 # Give a soname corresponding to the major version so that dld.sl refuses to
16061 # link against other versions.
16068 hardcode_into_libs=yes
16069 dynamic_linker="$host_os dld.so"
16070 shlibpath_var=LD_LIBRARY_PATH
16071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 if test "X$HPUX_IA64_MODE" = X32; then
16075 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16077 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16083 hardcode_into_libs=yes
16084 dynamic_linker="$host_os dld.sl"
16085 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16089 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16094 dynamic_linker="$host_os dld.sl"
16095 shlibpath_var=SHLIB_PATH
16096 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16101 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16102 postinstall_cmds='chmod 555 $lib'
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 shlibpath_overrides_runpath=no
16114 hardcode_into_libs=yes
16117 irix5* | irix6* | nonstopux*)
16119 nonstopux*) version_type=nonstopux ;;
16121 if test "$lt_cv_prog_gnu_ld" = yes; then
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16132 irix5* | nonstopux*)
16133 libsuff= shlibsuff=
16136 case $LD in # libtool.m4 will add one of these switches to LD
16137 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16138 libsuff= shlibsuff= libmagic=32-bit;;
16139 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16140 libsuff=32 shlibsuff=N32 libmagic=N32;;
16141 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16142 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16143 *) libsuff= shlibsuff= libmagic=never-match;;
16147 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16148 shlibpath_overrides_runpath=no
16149 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16150 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16151 hardcode_into_libs=yes
16154 # No shared lib support for Linux oldld, aout, or coff.
16155 linux*oldld* | linux*aout* | linux*coff*)
16159 # This must be Linux ELF.
16160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165 soname_spec='${libname}${release}${shared_ext}$major'
16166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 shlibpath_overrides_runpath=no
16170 # Some binutils ld are patched to set DT_RUNPATH
16171 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16172 $as_echo_n "(cached) " >&6
16174 lt_cv_shlibpath_overrides_runpath=no
16175 save_LDFLAGS=$LDFLAGS
16176 save_libdir=$libdir
16177 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16178 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h. */
16190 if ac_fn_c_try_link "$LINENO"; then :
16191 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16192 lt_cv_shlibpath_overrides_runpath=yes
16195 rm -f core conftest.err conftest.$ac_objext \
16196 conftest$ac_exeext conftest.$ac_ext
16197 LDFLAGS=$save_LDFLAGS
16198 libdir=$save_libdir
16202 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16204 # This implies no fast_install, which is unacceptable.
16205 # Some rework will be needed to allow for fast_install
16206 # before this can be enabled.
16207 hardcode_into_libs=yes
16209 # Append ld.so.conf contents to the search path
16210 if test -f /etc/ld.so.conf; then
16211 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' ' '`
16212 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16215 # We used to test for /lib/ld.so.1 and disable shared libraries on
16216 # powerpc, because MkLinux only supported shared libraries with the
16217 # GNU dynamic linker. Since this was broken with cross compilers,
16218 # most powerpc-linux boxes support dynamic linking these days and
16219 # people can always --disable-shared, the test was removed, and we
16220 # assume the GNU/Linux dynamic linker is in use.
16221 dynamic_linker='GNU/Linux ld.so'
16228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16231 dynamic_linker='NetBSD (a.out) ld.so'
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 dynamic_linker='NetBSD ld.elf_so'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 shlibpath_overrides_runpath=yes
16239 hardcode_into_libs=yes
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245 shlibpath_var=LD_LIBRARY_PATH
16246 shlibpath_overrides_runpath=yes
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254 soname_spec='${libname}${release}${shared_ext}$major'
16255 shlibpath_var=LD_LIBRARY_PATH
16256 shlibpath_overrides_runpath=no
16257 hardcode_into_libs=yes
16258 dynamic_linker='ldqnx.so'
16263 sys_lib_dlsearch_path_spec="/usr/lib"
16265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16268 *) need_version=no ;;
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16275 openbsd2.[89] | openbsd2.[89].*)
16276 shlibpath_overrides_runpath=no
16279 shlibpath_overrides_runpath=yes
16283 shlibpath_overrides_runpath=yes
16288 libname_spec='$name'
16291 library_names_spec='$libname${shared_ext} $libname.a'
16292 dynamic_linker='OS/2 ld.exe'
16293 shlibpath_var=LIBPATH
16296 osf3* | osf4* | osf5*)
16300 soname_spec='${libname}${release}${shared_ext}$major'
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16302 shlibpath_var=LD_LIBRARY_PATH
16303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316 soname_spec='${libname}${release}${shared_ext}$major'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 shlibpath_overrides_runpath=yes
16319 hardcode_into_libs=yes
16320 # ldd complains unless libraries are executable
16321 postinstall_cmds='chmod +x $lib'
16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=yes
16330 if test "$with_gnu_ld" = yes; then
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16339 soname_spec='${libname}${release}${shared_ext}$major'
16340 shlibpath_var=LD_LIBRARY_PATH
16341 case $host_vendor in
16343 shlibpath_overrides_runpath=no
16345 runpath_var=LD_RUN_PATH
16353 shlibpath_overrides_runpath=no
16354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16360 if test -d /usr/nec ;then
16362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16363 soname_spec='$libname${shared_ext}.$major'
16364 shlibpath_var=LD_LIBRARY_PATH
16368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16369 version_type=freebsd-elf
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 shlibpath_var=LD_LIBRARY_PATH
16375 shlibpath_overrides_runpath=yes
16376 hardcode_into_libs=yes
16377 if test "$with_gnu_ld" = yes; then
16378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16387 sys_lib_dlsearch_path_spec='/usr/lib'
16391 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 shlibpath_overrides_runpath=no
16398 hardcode_into_libs=yes
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404 soname_spec='${libname}${release}${shared_ext}$major'
16405 shlibpath_var=LD_LIBRARY_PATH
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16413 $as_echo "$dynamic_linker" >&6; }
16414 test "$dynamic_linker" = no && can_build_shared=no
16416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16417 if test "$GCC" = yes; then
16418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16421 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16422 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16424 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16425 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16515 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16517 if test -n "$hardcode_libdir_flag_spec" ||
16518 test -n "$runpath_var" ||
16519 test "X$hardcode_automatic" = "Xyes" ; then
16521 # We can hardcode non-existent directories.
16522 if test "$hardcode_direct" != no &&
16523 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16524 # have to relink, otherwise we might link with an installed library
16525 # when we should be linking with a yet-to-be-installed one
16526 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16527 test "$hardcode_minus_L" != no; then
16528 # Linking always hardcodes the temporary library directory.
16529 hardcode_action=relink
16531 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16532 hardcode_action=immediate
16535 # We cannot hardcode anything, or else we can only hardcode existing
16537 hardcode_action=unsupported
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16540 $as_echo "$hardcode_action" >&6; }
16542 if test "$hardcode_action" = relink ||
16543 test "$inherit_rpath" = yes; then
16544 # Fast installation is not supported
16545 enable_fast_install=no
16546 elif test "$shlibpath_overrides_runpath" = yes ||
16547 test "$enable_shared" = no; then
16548 # Fast installation is not necessary
16549 enable_fast_install=needless
16557 if test "x$enable_dlopen" != xyes; then
16558 enable_dlopen=unknown
16559 enable_dlopen_self=unknown
16560 enable_dlopen_self_static=unknown
16567 lt_cv_dlopen="load_add_on"
16569 lt_cv_dlopen_self=yes
16572 mingw* | pw32* | cegcc*)
16573 lt_cv_dlopen="LoadLibrary"
16578 lt_cv_dlopen="dlopen"
16583 # if libdl is installed we need to link against it
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16585 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16587 $as_echo_n "(cached) " >&6
16589 ac_check_lib_save_LIBS=$LIBS
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h. */
16594 /* Override any GCC internal prototype to avoid an error.
16595 Use char because int might match the return type of a GCC
16596 builtin and then its argument prototype would still apply. */
16609 if ac_fn_c_try_link "$LINENO"; then :
16610 ac_cv_lib_dl_dlopen=yes
16612 ac_cv_lib_dl_dlopen=no
16614 rm -f core conftest.err conftest.$ac_objext \
16615 conftest$ac_exeext conftest.$ac_ext
16616 LIBS=$ac_check_lib_save_LIBS
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16619 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16620 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16624 lt_cv_dlopen="dyld"
16626 lt_cv_dlopen_self=yes
16633 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16634 if test "x$ac_cv_func_shl_load" = x""yes; then :
16635 lt_cv_dlopen="shl_load"
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16638 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16640 $as_echo_n "(cached) " >&6
16642 ac_check_lib_save_LIBS=$LIBS
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16647 /* Override any GCC internal prototype to avoid an error.
16648 Use char because int might match the return type of a GCC
16649 builtin and then its argument prototype would still apply. */
16657 return shl_load ();
16662 if ac_fn_c_try_link "$LINENO"; then :
16663 ac_cv_lib_dld_shl_load=yes
16665 ac_cv_lib_dld_shl_load=no
16667 rm -f core conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16672 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16673 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16674 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16676 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16677 if test "x$ac_cv_func_dlopen" = x""yes; then :
16678 lt_cv_dlopen="dlopen"
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16683 $as_echo_n "(cached) " >&6
16685 ac_check_lib_save_LIBS=$LIBS
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16690 /* Override any GCC internal prototype to avoid an error.
16691 Use char because int might match the return type of a GCC
16692 builtin and then its argument prototype would still apply. */
16705 if ac_fn_c_try_link "$LINENO"; then :
16706 ac_cv_lib_dl_dlopen=yes
16708 ac_cv_lib_dl_dlopen=no
16710 rm -f core conftest.err conftest.$ac_objext \
16711 conftest$ac_exeext conftest.$ac_ext
16712 LIBS=$ac_check_lib_save_LIBS
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16716 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16720 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16721 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16722 $as_echo_n "(cached) " >&6
16724 ac_check_lib_save_LIBS=$LIBS
16725 LIBS="-lsvld $LIBS"
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16729 /* Override any GCC internal prototype to avoid an error.
16730 Use char because int might match the return type of a GCC
16731 builtin and then its argument prototype would still apply. */
16744 if ac_fn_c_try_link "$LINENO"; then :
16745 ac_cv_lib_svld_dlopen=yes
16747 ac_cv_lib_svld_dlopen=no
16749 rm -f core conftest.err conftest.$ac_objext \
16750 conftest$ac_exeext conftest.$ac_ext
16751 LIBS=$ac_check_lib_save_LIBS
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16754 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16755 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
16756 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16759 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16760 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16761 $as_echo_n "(cached) " >&6
16763 ac_check_lib_save_LIBS=$LIBS
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16768 /* Override any GCC internal prototype to avoid an error.
16769 Use char because int might match the return type of a GCC
16770 builtin and then its argument prototype would still apply. */
16778 return dld_link ();
16783 if ac_fn_c_try_link "$LINENO"; then :
16784 ac_cv_lib_dld_dld_link=yes
16786 ac_cv_lib_dld_dld_link=no
16788 rm -f core conftest.err conftest.$ac_objext \
16789 conftest$ac_exeext conftest.$ac_ext
16790 LIBS=$ac_check_lib_save_LIBS
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16793 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16794 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
16795 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16816 if test "x$lt_cv_dlopen" != xno; then
16822 case $lt_cv_dlopen in
16824 save_CPPFLAGS="$CPPFLAGS"
16825 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16827 save_LDFLAGS="$LDFLAGS"
16828 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16831 LIBS="$lt_cv_dlopen_libs $LIBS"
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16834 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16835 if test "${lt_cv_dlopen_self+set}" = set; then :
16836 $as_echo_n "(cached) " >&6
16838 if test "$cross_compiling" = yes; then :
16839 lt_cv_dlopen_self=cross
16841 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16842 lt_status=$lt_dlunknown
16843 cat > conftest.$ac_ext <<_LT_EOF
16844 #line 16844 "configure"
16845 #include "confdefs.h"
16854 # define LT_DLGLOBAL RTLD_GLOBAL
16857 # define LT_DLGLOBAL DL_GLOBAL
16859 # define LT_DLGLOBAL 0
16863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16864 find out it does not work in some platform. */
16865 #ifndef LT_DLLAZY_OR_NOW
16867 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16870 # define LT_DLLAZY_OR_NOW DL_LAZY
16873 # define LT_DLLAZY_OR_NOW RTLD_NOW
16876 # define LT_DLLAZY_OR_NOW DL_NOW
16878 # define LT_DLLAZY_OR_NOW 0
16885 void fnord() { int i=42;}
16888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16889 int status = $lt_dlunknown;
16893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16894 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16895 /* dlclose (self); */
16903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16904 (eval $ac_link) 2>&5
16906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16907 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16908 (./conftest; exit; ) >&5 2>/dev/null
16910 case x$lt_status in
16911 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16912 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16913 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16916 # compilation failed
16917 lt_cv_dlopen_self=no
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16925 $as_echo "$lt_cv_dlopen_self" >&6; }
16927 if test "x$lt_cv_dlopen_self" = xyes; then
16928 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16930 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16931 if test "${lt_cv_dlopen_self_static+set}" = set; then :
16932 $as_echo_n "(cached) " >&6
16934 if test "$cross_compiling" = yes; then :
16935 lt_cv_dlopen_self_static=cross
16937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16938 lt_status=$lt_dlunknown
16939 cat > conftest.$ac_ext <<_LT_EOF
16940 #line 16940 "configure"
16941 #include "confdefs.h"
16950 # define LT_DLGLOBAL RTLD_GLOBAL
16953 # define LT_DLGLOBAL DL_GLOBAL
16955 # define LT_DLGLOBAL 0
16959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16960 find out it does not work in some platform. */
16961 #ifndef LT_DLLAZY_OR_NOW
16963 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16966 # define LT_DLLAZY_OR_NOW DL_LAZY
16969 # define LT_DLLAZY_OR_NOW RTLD_NOW
16972 # define LT_DLLAZY_OR_NOW DL_NOW
16974 # define LT_DLLAZY_OR_NOW 0
16981 void fnord() { int i=42;}
16984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16985 int status = $lt_dlunknown;
16989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16990 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16991 /* dlclose (self); */
16999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17000 (eval $ac_link) 2>&5
17002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17003 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17004 (./conftest; exit; ) >&5 2>/dev/null
17006 case x$lt_status in
17007 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17008 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17009 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17012 # compilation failed
17013 lt_cv_dlopen_self_static=no
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17021 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17024 CPPFLAGS="$save_CPPFLAGS"
17025 LDFLAGS="$save_LDFLAGS"
17030 case $lt_cv_dlopen_self in
17031 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17032 *) enable_dlopen_self=unknown ;;
17035 case $lt_cv_dlopen_self_static in
17036 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17037 *) enable_dlopen_self_static=unknown ;;
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17060 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17061 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17062 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17063 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17065 $as_echo "yes" >&6; }
17067 # FIXME - insert some real tests, host_os isn't really good enough
17070 if test -n "$STRIP" ; then
17071 striplib="$STRIP -x"
17072 old_striplib="$STRIP -S"
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17074 $as_echo "yes" >&6; }
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077 $as_echo "no" >&6; }
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17082 $as_echo "no" >&6; }
17098 # Report which library types will actually be built
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17100 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17102 $as_echo "$can_build_shared" >&6; }
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17105 $as_echo_n "checking whether to build shared libraries... " >&6; }
17106 test "$can_build_shared" = "no" && enable_shared=no
17108 # On AIX, shared libraries and static libraries use the same namespace, and
17109 # are all built from PIC.
17112 test "$enable_shared" = yes && enable_static=no
17113 if test -n "$RANLIB"; then
17114 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17115 postinstall_cmds='$RANLIB $lib'
17120 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17121 test "$enable_shared" = yes && enable_static=no
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17126 $as_echo "$enable_shared" >&6; }
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17129 $as_echo_n "checking whether to build static libraries... " >&6; }
17130 # Make sure either enable_shared or enable_static is yes.
17131 test "$enable_shared" = yes || enable_static=yes
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17133 $as_echo "$enable_static" >&6; }
17140 ac_cpp='$CPP $CPPFLAGS'
17141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17149 ac_cpp='$CXXCPP $CPPFLAGS'
17150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17154 archive_cmds_need_lc_CXX=no
17155 allow_undefined_flag_CXX=
17156 always_export_symbols_CXX=no
17157 archive_expsym_cmds_CXX=
17158 compiler_needs_object_CXX=no
17159 export_dynamic_flag_spec_CXX=
17160 hardcode_direct_CXX=no
17161 hardcode_direct_absolute_CXX=no
17162 hardcode_libdir_flag_spec_CXX=
17163 hardcode_libdir_flag_spec_ld_CXX=
17164 hardcode_libdir_separator_CXX=
17165 hardcode_minus_L_CXX=no
17166 hardcode_shlibpath_var_CXX=unsupported
17167 hardcode_automatic_CXX=no
17168 inherit_rpath_CXX=no
17170 module_expsym_cmds_CXX=
17171 link_all_deplibs_CXX=unknown
17172 old_archive_cmds_CXX=$old_archive_cmds
17173 no_undefined_flag_CXX=
17174 whole_archive_flag_spec_CXX=
17175 enable_shared_with_static_runtimes_CXX=no
17177 # Source file extension for C++ test sources.
17180 # Object file extension for compiled C++ test sources.
17184 # No sense in running all these tests if we already determined that
17185 # the CXX compiler isn't working. Some variables (like enable_shared)
17186 # are currently assumed to apply to all compilers on this platform,
17187 # and will be corrupted by setting them based on a non-working compiler.
17188 if test "$_lt_caught_CXX_error" != yes; then
17189 # Code to be used in simple compile tests
17190 lt_simple_compile_test_code="int some_variable = 0;"
17192 # Code to be used in simple link tests
17193 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17195 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17202 # If no C compiler was specified, use CC.
17205 # If no C compiler flags were specified, use CFLAGS.
17206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17208 # Allow CC to be a program name with arguments.
17212 # save warnings/boilerplate of simple test code
17213 ac_outfile=conftest.$ac_objext
17214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17216 _lt_compiler_boilerplate=`cat conftest.err`
17219 ac_outfile=conftest.$ac_objext
17220 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17222 _lt_linker_boilerplate=`cat conftest.err`
17226 # Allow CC to be a program name with arguments.
17231 lt_save_with_gnu_ld=$with_gnu_ld
17232 lt_save_path_LD=$lt_cv_path_LD
17233 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17234 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17236 $as_unset lt_cv_prog_gnu_ld
17238 if test -n "${lt_cv_path_LDCXX+set}"; then
17239 lt_cv_path_LD=$lt_cv_path_LDCXX
17241 $as_unset lt_cv_path_LD
17243 test -z "${LDCXX+set}" || LD=$LDCXX
17247 for cc_temp in $compiler""; do
17249 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17250 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17255 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17258 if test -n "$compiler"; then
17259 # We don't want -fno-exception when compiling C++ code, so set the
17260 # no_builtin_flag separately
17261 if test "$GXX" = yes; then
17262 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17264 lt_prog_compiler_no_builtin_flag_CXX=
17267 if test "$GXX" = yes; then
17268 # Set up default GNU C++ configuration
17272 # Check whether --with-gnu-ld was given.
17273 if test "${with_gnu_ld+set}" = set; then :
17274 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17280 if test "$GCC" = yes; then
17281 # Check if gcc -print-prog-name=ld gives a path.
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17283 $as_echo_n "checking for ld used by $CC... " >&6; }
17286 # gcc leaves a trailing carriage return which upsets mingw
17287 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17289 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17292 # Accept absolute paths.
17294 re_direlt='/[^/][^/]*/\.\./'
17295 # Canonicalize the pathname of ld
17296 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17297 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17298 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17300 test -z "$LD" && LD="$ac_prog"
17303 # If it fails, then pretend we aren't using GCC.
17307 # If it is relative, then search for the first ld in PATH.
17308 with_gnu_ld=unknown
17311 elif test "$with_gnu_ld" = yes; then
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17313 $as_echo_n "checking for GNU ld... " >&6; }
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17316 $as_echo_n "checking for non-GNU ld... " >&6; }
17318 if test "${lt_cv_path_LD+set}" = set; then :
17319 $as_echo_n "(cached) " >&6
17321 if test -z "$LD"; then
17322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17323 for ac_dir in $PATH; do
17325 test -z "$ac_dir" && ac_dir=.
17326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17327 lt_cv_path_LD="$ac_dir/$ac_prog"
17328 # Check to see if the program is GNU ld. I'd rather use --version,
17329 # but apparently some variants of GNU ld only accept -v.
17330 # Break only if it was the GNU/non-GNU ld that we prefer.
17331 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17332 *GNU* | *'with BFD'*)
17333 test "$with_gnu_ld" != no && break
17336 test "$with_gnu_ld" != yes && break
17343 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17347 LD="$lt_cv_path_LD"
17348 if test -n "$LD"; then
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17350 $as_echo "$LD" >&6; }
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17353 $as_echo "no" >&6; }
17355 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17357 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17358 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17359 $as_echo_n "(cached) " >&6
17361 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17362 case `$LD -v 2>&1 </dev/null` in
17363 *GNU* | *'with BFD'*)
17364 lt_cv_prog_gnu_ld=yes
17367 lt_cv_prog_gnu_ld=no
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17372 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17373 with_gnu_ld=$lt_cv_prog_gnu_ld
17381 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17382 # archiving commands below assume that GNU ld is being used.
17383 if test "$with_gnu_ld" = yes; then
17384 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17385 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'
17387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17388 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17390 # If archive_cmds runs LD, not CC, wlarc should be empty
17391 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17392 # investigate it a little bit more. (MM)
17395 # ancient GNU ld didn't support --whole-archive et. al.
17396 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17397 $GREP 'no-whole-archive' > /dev/null; then
17398 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17400 whole_archive_flag_spec_CXX=
17406 # A generic and very simple default shared library creation
17407 # command for GNU C++ for the case where it uses the native
17408 # linker, instead of GNU ld. If possible, this setting should
17409 # overridden to take advantage of the native linker features on
17410 # the platform it is being used on.
17411 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17414 # Commands to make compiler produce verbose output that lists
17415 # what "hidden" libraries, object files and flags are used when
17416 # linking a shared library.
17417 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17425 # PORTME: fill in a description of your system's C++ link characteristics
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17427 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17431 # FIXME: insert proper C++ library support
17435 if test "$host_cpu" = ia64; then
17436 # On IA64, the linker does run time linking by default, so we don't
17437 # have to do anything special.
17438 aix_use_runtimelinking=no
17439 exp_sym_flag='-Bexport'
17442 aix_use_runtimelinking=no
17444 # Test if we are trying to use run time linking or normal
17445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17446 # need to do runtime linking.
17447 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17448 for ld_flag in $LDFLAGS; do
17451 aix_use_runtimelinking=yes
17459 exp_sym_flag='-bexport'
17460 no_entry_flag='-bnoentry'
17463 # When large executables or shared objects are built, AIX ld can
17464 # have problems creating the table of contents. If linking a library
17465 # or program results in "error TOC overflow" add -mminimal-toc to
17466 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17467 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17469 archive_cmds_CXX=''
17470 hardcode_direct_CXX=yes
17471 hardcode_direct_absolute_CXX=yes
17472 hardcode_libdir_separator_CXX=':'
17473 link_all_deplibs_CXX=yes
17474 file_list_spec_CXX='${wl}-f,'
17476 if test "$GXX" = yes; then
17477 case $host_os in aix4.[012]|aix4.[012].*)
17478 # We only want to do this on AIX 4.2 and lower, the check
17479 # below for broken collect2 doesn't work under 4.3+
17480 collect2name=`${CC} -print-prog-name=collect2`
17481 if test -f "$collect2name" &&
17482 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17484 # We have reworked collect2
17487 # We have old collect2
17488 hardcode_direct_CXX=unsupported
17489 # It fails to find uninstalled libraries when the uninstalled
17490 # path is not listed in the libpath. Setting hardcode_minus_L
17491 # to unsupported forces relinking
17492 hardcode_minus_L_CXX=yes
17493 hardcode_libdir_flag_spec_CXX='-L$libdir'
17494 hardcode_libdir_separator_CXX=
17497 shared_flag='-shared'
17498 if test "$aix_use_runtimelinking" = yes; then
17499 shared_flag="$shared_flag "'${wl}-G'
17503 if test "$host_cpu" = ia64; then
17504 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17505 # chokes on -Wl,-G. The following line is correct:
17508 if test "$aix_use_runtimelinking" = yes; then
17509 shared_flag='${wl}-G'
17511 shared_flag='${wl}-bM:SRE'
17516 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17517 # It seems that -bexpall does not export symbols beginning with
17518 # underscore (_), so it is better to generate a list of symbols to
17520 always_export_symbols_CXX=yes
17521 if test "$aix_use_runtimelinking" = yes; then
17522 # Warning - without using the other runtime loading flags (-brtl),
17523 # -berok will link without error, but may produce a broken library.
17524 allow_undefined_flag_CXX='-berok'
17525 # Determine the default libpath from the value encoded in an empty
17527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17538 if ac_fn_cxx_try_link "$LINENO"; then :
17540 lt_aix_libpath_sed='
17541 /Import File Strings/,/^$/ {
17547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17548 # Check for a 64-bit object if we didn't find anything.
17549 if test -z "$aix_libpath"; then
17550 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17553 rm -f core conftest.err conftest.$ac_objext \
17554 conftest$ac_exeext conftest.$ac_ext
17555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17557 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17559 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"
17561 if test "$host_cpu" = ia64; then
17562 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17563 allow_undefined_flag_CXX="-z nodefs"
17564 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"
17566 # Determine the default libpath from the value encoded in an
17567 # empty executable.
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17579 if ac_fn_cxx_try_link "$LINENO"; then :
17581 lt_aix_libpath_sed='
17582 /Import File Strings/,/^$/ {
17588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17589 # Check for a 64-bit object if we didn't find anything.
17590 if test -z "$aix_libpath"; then
17591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17594 rm -f core conftest.err conftest.$ac_objext \
17595 conftest$ac_exeext conftest.$ac_ext
17596 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17598 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17599 # Warning - without using the other run time loading flags,
17600 # -berok will link without error, but may produce a broken library.
17601 no_undefined_flag_CXX=' ${wl}-bernotok'
17602 allow_undefined_flag_CXX=' ${wl}-berok'
17603 # Exported symbols can be pulled into shared objects from archives
17604 whole_archive_flag_spec_CXX='$convenience'
17605 archive_cmds_need_lc_CXX=yes
17606 # This is similar to how AIX traditionally builds its shared
17608 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'
17614 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17615 allow_undefined_flag_CXX=unsupported
17616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17617 # support --undefined. This deserves some investigation. FIXME
17618 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17625 case $cc_basename in
17627 # FIXME: insert proper C++ library support
17633 cygwin* | mingw* | pw32* | cegcc*)
17634 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17635 # as there is no search path for DLLs.
17636 hardcode_libdir_flag_spec_CXX='-L$libdir'
17637 allow_undefined_flag_CXX=unsupported
17638 always_export_symbols_CXX=no
17639 enable_shared_with_static_runtimes_CXX=yes
17641 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17642 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'
17643 # If the export-symbols file already is a .def file (1st line
17644 # is EXPORTS), use it as is; otherwise, prepend...
17645 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17646 cp $export_symbols $output_objdir/$soname.def;
17648 echo EXPORTS > $output_objdir/$soname.def;
17649 cat $export_symbols >> $output_objdir/$soname.def;
17651 $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'
17656 darwin* | rhapsody*)
17659 archive_cmds_need_lc_CXX=no
17660 hardcode_direct_CXX=no
17661 hardcode_automatic_CXX=yes
17662 hardcode_shlibpath_var_CXX=unsupported
17663 whole_archive_flag_spec_CXX=''
17664 link_all_deplibs_CXX=yes
17665 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17666 case $cc_basename in
17667 ifort*) _lt_dar_can_shared=yes ;;
17668 *) _lt_dar_can_shared=$GCC ;;
17670 if test "$_lt_dar_can_shared" = "yes"; then
17671 output_verbose_link_cmd=echo
17672 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}"
17673 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17674 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}"
17675 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}"
17676 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17677 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}"
17678 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}"
17688 case $cc_basename in
17690 # FIXME: insert proper C++ library support
17694 # Green Hills C++ Compiler
17695 # FIXME: insert proper C++ library support
17699 # FIXME: insert proper C++ library support
17706 # C++ shared libraries reported to be fairly broken before
17712 archive_cmds_need_lc_CXX=no
17715 freebsd* | dragonfly*)
17716 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17725 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17726 hardcode_libdir_separator_CXX=:
17727 export_dynamic_flag_spec_CXX='${wl}-E'
17728 hardcode_direct_CXX=yes
17729 hardcode_minus_L_CXX=yes # Not in the search PATH,
17730 # but as the default
17731 # location of the library.
17733 case $cc_basename in
17735 # FIXME: insert proper C++ library support
17739 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'
17740 # Commands to make compiler produce verbose output that lists
17741 # what "hidden" libraries, object files and flags are used when
17742 # linking a shared library.
17744 # There doesn't appear to be a way to prevent this compiler from
17745 # explicitly linking system object files so we need to strip them
17746 # from the output so that they don't get included in the library
17748 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17751 if test "$GXX" = yes; then
17752 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'
17754 # FIXME: insert proper C++ library support
17762 if test $with_gnu_ld = no; then
17763 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17764 hardcode_libdir_separator_CXX=:
17770 export_dynamic_flag_spec_CXX='${wl}-E'
17776 hardcode_direct_CXX=no
17777 hardcode_shlibpath_var_CXX=no
17780 hardcode_direct_CXX=yes
17781 hardcode_direct_absolute_CXX=yes
17782 hardcode_minus_L_CXX=yes # Not in the search PATH,
17783 # but as the default
17784 # location of the library.
17788 case $cc_basename in
17790 # FIXME: insert proper C++ library support
17796 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17799 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17802 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17805 # Commands to make compiler produce verbose output that lists
17806 # what "hidden" libraries, object files and flags are used when
17807 # linking a shared library.
17809 # There doesn't appear to be a way to prevent this compiler from
17810 # explicitly linking system object files so we need to strip them
17811 # from the output so that they don't get included in the library
17813 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'
17816 if test "$GXX" = yes; then
17817 if test $with_gnu_ld = no; then
17820 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17823 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17826 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'
17831 # FIXME: insert proper C++ library support
17839 hardcode_direct_CXX=no
17840 hardcode_shlibpath_var_CXX=no
17841 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17842 export_dynamic_flag_spec_CXX='${wl}-E'
17843 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17844 # Instead, shared libraries are loaded at an image base (0x10000000 by
17845 # default) and relocated if they conflict, which is a slow very memory
17846 # consuming and fragmenting process. To avoid this, we pick a random,
17847 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17848 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17849 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'
17850 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'
17853 case $cc_basename in
17856 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'
17858 # Archives containing C++ object files must be created using
17859 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17860 # necessary to make sure instantiated templates are included
17862 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17865 if test "$GXX" = yes; then
17866 if test "$with_gnu_ld" = no; then
17867 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'
17869 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'
17872 link_all_deplibs_CXX=yes
17875 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17876 hardcode_libdir_separator_CXX=:
17877 inherit_rpath_CXX=yes
17880 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17881 case $cc_basename in
17883 # Kuck and Associates, Inc. (KAI) C++ Compiler
17885 # KCC will only create a shared library if the output file
17886 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17887 # to its proper name (with version) after linking.
17888 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'
17889 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'
17890 # Commands to make compiler produce verbose output that lists
17891 # what "hidden" libraries, object files and flags are used when
17892 # linking a shared library.
17894 # There doesn't appear to be a way to prevent this compiler from
17895 # explicitly linking system object files so we need to strip them
17896 # from the output so that they don't get included in the library
17898 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'
17900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17901 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17903 # Archives containing C++ object files must be created using
17904 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17905 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17910 # version 8.0 and above of icpc choke on multiply defined symbols
17911 # if we add $predep_objects and $postdep_objects, however 7.1 and
17912 # earlier do not add the objects themselves.
17913 case `$CC -V 2>&1` in
17915 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17916 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'
17918 *) # Version 8.0 or newer
17921 ia64*) tmp_idyn=' -i_dynamic';;
17923 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17924 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'
17927 archive_cmds_need_lc_CXX=no
17928 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17929 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17930 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17933 # Portland Group C++ compiler
17935 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
17936 prelink_cmds_CXX='tpldir=Template.dir~
17938 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17939 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17940 old_archive_cmds_CXX='tpldir=Template.dir~
17942 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17943 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17945 archive_cmds_CXX='tpldir=Template.dir~
17947 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17948 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17949 archive_expsym_cmds_CXX='tpldir=Template.dir~
17951 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17952 $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'
17954 *) # Version 6 will use weak symbols
17955 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17956 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'
17960 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17961 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17962 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'
17966 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17967 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'
17969 runpath_var=LD_RUN_PATH
17970 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17971 hardcode_libdir_separator_CXX=:
17973 # Commands to make compiler produce verbose output that lists
17974 # what "hidden" libraries, object files and flags are used when
17975 # linking a shared library.
17977 # There doesn't appear to be a way to prevent this compiler from
17978 # explicitly linking system object files so we need to strip them
17979 # from the output so that they don't get included in the library
17981 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'
17984 # IBM XL 8.0 on PPC, with GNU ld
17985 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17986 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17987 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17988 if test "x$supports_anon_versioning" = xyes; then
17989 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17990 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17991 echo "local: *; };" >> $output_objdir/$libname.ver~
17992 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17996 case `$CC -V 2>&1 | sed 5q` in
17999 no_undefined_flag_CXX=' -zdefs'
18000 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18001 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'
18002 hardcode_libdir_flag_spec_CXX='-R$libdir'
18003 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'
18004 compiler_needs_object_CXX=yes
18006 # Not sure whether something based on
18007 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18009 output_verbose_link_cmd='echo'
18011 # Archives containing C++ object files must be created using
18012 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18013 # necessary to make sure instantiated templates are included
18015 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18023 # FIXME: insert proper C++ library support
18028 # FIXME: insert proper C++ library support
18033 case $cc_basename in
18035 # FIXME: insert proper C++ library support
18039 # FIXME: insert proper C++ library support
18046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18047 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18049 hardcode_libdir_flag_spec_CXX='-R$libdir'
18050 hardcode_direct_CXX=yes
18051 hardcode_shlibpath_var_CXX=no
18053 # Workaround some broken pre-1.5 toolchains
18054 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18062 # C++ shared libraries are fairly broken
18067 if test -f /usr/libexec/ld.so; then
18068 hardcode_direct_CXX=yes
18069 hardcode_shlibpath_var_CXX=no
18070 hardcode_direct_absolute_CXX=yes
18071 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18072 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18074 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18075 export_dynamic_flag_spec_CXX='${wl}-E'
18076 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18078 output_verbose_link_cmd=echo
18084 osf3* | osf4* | osf5*)
18085 case $cc_basename in
18087 # Kuck and Associates, Inc. (KAI) C++ Compiler
18089 # KCC will only create a shared library if the output file
18090 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18091 # to its proper name (with version) after linking.
18092 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'
18094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18095 hardcode_libdir_separator_CXX=:
18097 # Archives containing C++ object files must be created using
18098 # the KAI C++ compiler.
18100 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18101 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18105 # Rational C++ 2.4.1
18106 # FIXME: insert proper C++ library support
18112 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18113 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'
18114 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18117 allow_undefined_flag_CXX=' -expect_unresolved \*'
18118 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'
18119 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18120 echo "-hidden">> $lib.exp~
18121 $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~
18123 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18127 hardcode_libdir_separator_CXX=:
18129 # Commands to make compiler produce verbose output that lists
18130 # what "hidden" libraries, object files and flags are used when
18131 # linking a shared library.
18133 # There doesn't appear to be a way to prevent this compiler from
18134 # explicitly linking system object files so we need to strip them
18135 # from the output so that they don't get included in the library
18137 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'
18140 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18144 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'
18147 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'
18151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18152 hardcode_libdir_separator_CXX=:
18154 # Commands to make compiler produce verbose output that lists
18155 # what "hidden" libraries, object files and flags are used when
18156 # linking a shared library.
18157 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18160 # FIXME: insert proper C++ library support
18168 # FIXME: insert proper C++ library support
18173 case $cc_basename in
18176 # FIXME: insert proper C++ library support
18181 # FIXME: insert proper C++ library support
18185 # FIXME: insert proper C++ library support
18192 case $cc_basename in
18194 # Sun C++ 4.2, 5.x and Centerline C++
18195 archive_cmds_need_lc_CXX=yes
18196 no_undefined_flag_CXX=' -zdefs'
18197 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18198 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18199 $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'
18201 hardcode_libdir_flag_spec_CXX='-R$libdir'
18202 hardcode_shlibpath_var_CXX=no
18204 solaris2.[0-5] | solaris2.[0-5].*) ;;
18206 # The compiler driver will combine and reorder linker options,
18207 # but understands `-z linker_flag'.
18208 # Supported since Solaris 2.6 (maybe 2.5.1?)
18209 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18212 link_all_deplibs_CXX=yes
18214 output_verbose_link_cmd='echo'
18216 # Archives containing C++ object files must be created using
18217 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18218 # necessary to make sure instantiated templates are included
18220 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18223 # Green Hills C++ Compiler
18224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18226 # The C++ compiler must be used to create the archive.
18227 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18230 # GNU C++ compiler with Solaris linker
18231 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18232 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18233 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18234 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18235 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18236 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18238 # Commands to make compiler produce verbose output that lists
18239 # what "hidden" libraries, object files and flags are used when
18240 # linking a shared library.
18241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18243 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18245 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18246 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18247 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18249 # Commands to make compiler produce verbose output that lists
18250 # what "hidden" libraries, object files and flags are used when
18251 # linking a shared library.
18252 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18255 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18257 solaris2.[0-5] | solaris2.[0-5].*) ;;
18259 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18267 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18268 no_undefined_flag_CXX='${wl}-z,text'
18269 archive_cmds_need_lc_CXX=no
18270 hardcode_shlibpath_var_CXX=no
18271 runpath_var='LD_RUN_PATH'
18273 case $cc_basename in
18275 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18276 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18279 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18280 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18285 sysv5* | sco3.2v5* | sco5v6*)
18286 # Note: We can NOT use -z defs as we might desire, because we do not
18287 # link with -lc, and that would cause any symbols used from libc to
18288 # always be unresolved, which means just about no library would
18289 # ever link correctly. If we're not using GNU ld we use -z text
18290 # though, which does catch some bad symbols but isn't as heavy-handed
18292 no_undefined_flag_CXX='${wl}-z,text'
18293 allow_undefined_flag_CXX='${wl}-z,nodefs'
18294 archive_cmds_need_lc_CXX=no
18295 hardcode_shlibpath_var_CXX=no
18296 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18297 hardcode_libdir_separator_CXX=':'
18298 link_all_deplibs_CXX=yes
18299 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18300 runpath_var='LD_RUN_PATH'
18302 case $cc_basename in
18304 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18305 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18308 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18309 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18315 case $cc_basename in
18317 # NonStop-UX NCC 3.20
18318 # FIXME: insert proper C++ library support
18322 # FIXME: insert proper C++ library support
18329 # FIXME: insert proper C++ library support
18334 # FIXME: insert proper C++ library support
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18340 $as_echo "$ld_shlibs_CXX" >&6; }
18341 test "$ld_shlibs_CXX" = no && can_build_shared=no
18347 ## There is no encapsulation within the following macros, do not change
18348 ## the running order or otherwise move them around unless you know exactly
18349 ## what you are doing...
18350 # Dependencies to place before and after the object being linked:
18351 predep_objects_CXX=
18352 postdep_objects_CXX=
18355 compiler_lib_search_path_CXX=
18357 cat > conftest.$ac_ext <<_LT_EOF
18361 Foo (void) { a = 0; }
18367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18368 (eval $ac_compile) 2>&5
18370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18371 test $ac_status = 0; }; then
18372 # Parse the compiler output and extract the necessary
18373 # objects, libraries and library flags.
18375 # Sentinel used to keep track of whether or not we are before
18376 # the conftest object file.
18377 pre_test_object_deps_done=no
18379 for p in `eval "$output_verbose_link_cmd"`; do
18383 # Some compilers place space between "-{L,R}" and the path.
18384 # Remove the space.
18385 if test $p = "-L" ||
18386 test $p = "-R"; then
18393 if test "$pre_test_object_deps_done" = no; then
18396 # Internal compiler library paths should come after those
18397 # provided the user. The postdeps already come after the
18398 # user supplied libs so there is no need to process them.
18399 if test -z "$compiler_lib_search_path_CXX"; then
18400 compiler_lib_search_path_CXX="${prev}${p}"
18402 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18405 # The "-l" case would never come before the object being
18406 # linked, so don't bother handling this case.
18409 if test -z "$postdeps_CXX"; then
18410 postdeps_CXX="${prev}${p}"
18412 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18418 # This assumes that the test object file only shows up
18419 # once in the compiler output.
18420 if test "$p" = "conftest.$objext"; then
18421 pre_test_object_deps_done=yes
18425 if test "$pre_test_object_deps_done" = no; then
18426 if test -z "$predep_objects_CXX"; then
18427 predep_objects_CXX="$p"
18429 predep_objects_CXX="$predep_objects_CXX $p"
18432 if test -z "$postdep_objects_CXX"; then
18433 postdep_objects_CXX="$p"
18435 postdep_objects_CXX="$postdep_objects_CXX $p"
18440 *) ;; # Ignore the rest.
18448 echo "libtool.m4: error: problem compiling CXX test program"
18451 $RM -f confest.$objext
18453 # PORTME: override above test on systems where it is broken
18456 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18457 # hack all around it, let's just trust "g++" to DTRT.
18458 predep_objects_CXX=
18459 postdep_objects_CXX=
18464 case `$CC -V 2>&1 | sed 5q` in
18468 # The more standards-conforming stlport4 library is
18469 # incompatible with the Cstd library. Avoid specifying
18470 # it if it's in CXXFLAGS. Ignore libCrun as
18471 # -library=stlport4 depends on it.
18472 case " $CXX $CXXFLAGS " in
18473 *" -library=stlport4 "*)
18474 solaris_use_stlport4=yes
18478 if test "$solaris_use_stlport4" != yes; then
18479 postdeps_CXX='-library=Cstd -library=Crun'
18486 case $cc_basename in
18488 # The more standards-conforming stlport4 library is
18489 # incompatible with the Cstd library. Avoid specifying
18490 # it if it's in CXXFLAGS. Ignore libCrun as
18491 # -library=stlport4 depends on it.
18492 case " $CXX $CXXFLAGS " in
18493 *" -library=stlport4 "*)
18494 solaris_use_stlport4=yes
18498 # Adding this requires a known-good setup of shared libraries for
18499 # Sun compiler versions before 5.6, else PIC objects from an old
18500 # archive will be linked into the output, leading to subtle bugs.
18501 if test "$solaris_use_stlport4" != yes; then
18502 postdeps_CXX='-library=Cstd -library=Crun'
18510 case " $postdeps_CXX " in
18511 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18513 compiler_lib_search_dirs_CXX=
18514 if test -n "${compiler_lib_search_path_CXX}"; then
18515 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18548 lt_prog_compiler_wl_CXX=
18549 lt_prog_compiler_pic_CXX=
18550 lt_prog_compiler_static_CXX=
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18553 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18555 # C++ specific cases for pic, static, wl, etc.
18556 if test "$GXX" = yes; then
18557 lt_prog_compiler_wl_CXX='-Wl,'
18558 lt_prog_compiler_static_CXX='-static'
18562 # All AIX code is PIC.
18563 if test "$host_cpu" = ia64; then
18564 # AIX 5 now supports IA64 processor
18565 lt_prog_compiler_static_CXX='-Bstatic'
18572 # see comment about AmigaOS4 .so support
18573 lt_prog_compiler_pic_CXX='-fPIC'
18576 # FIXME: we need at least 68020 code to build shared libraries, but
18577 # adding the `-m68020' flag to GCC prevents building anything better,
18579 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18584 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18585 # PIC is the default for these OSes.
18587 mingw* | cygwin* | os2* | pw32* | cegcc*)
18588 # This hack is so that the source file can tell whether it is being
18589 # built for inclusion in a dll (and should export symbols for example).
18590 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18591 # (--disable-auto-import) libraries
18592 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18594 darwin* | rhapsody*)
18595 # PIC is the default on this platform
18596 # Common symbols not allowed in MH_DYLIB files
18597 lt_prog_compiler_pic_CXX='-fno-common'
18600 # DJGPP does not support shared libraries at all
18601 lt_prog_compiler_pic_CXX=
18604 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18605 # Instead, we relocate shared libraries at runtime.
18608 if test -d /usr/nec; then
18609 lt_prog_compiler_pic_CXX=-Kconform_pic
18613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18615 # sets the default TLS model and affects inlining.
18620 lt_prog_compiler_pic_CXX='-fPIC'
18625 # QNX uses GNU C++, but need to define -shared option too, otherwise
18626 # it will coredump.
18627 lt_prog_compiler_pic_CXX='-fPIC -shared'
18630 lt_prog_compiler_pic_CXX='-fPIC'
18636 # All AIX code is PIC.
18637 if test "$host_cpu" = ia64; then
18638 # AIX 5 now supports IA64 processor
18639 lt_prog_compiler_static_CXX='-Bstatic'
18641 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18645 case $cc_basename in
18647 # Green Hills C++ Compiler
18648 # _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"
18653 case $cc_basename in
18655 lt_prog_compiler_pic_CXX='-KPIC'
18658 # Green Hills C++ Compiler
18659 lt_prog_compiler_pic_CXX='-pic'
18665 freebsd* | dragonfly*)
18666 # FreeBSD uses GNU C++
18668 hpux9* | hpux10* | hpux11*)
18669 case $cc_basename in
18671 lt_prog_compiler_wl_CXX='-Wl,'
18672 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18673 if test "$host_cpu" != ia64; then
18674 lt_prog_compiler_pic_CXX='+Z'
18678 lt_prog_compiler_wl_CXX='-Wl,'
18679 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18685 lt_prog_compiler_pic_CXX='+Z'
18694 # This is c89, which is MS Visual C++ (no shared libs)
18695 # Anyone wants to do a port?
18697 irix5* | irix6* | nonstopux*)
18698 case $cc_basename in
18700 lt_prog_compiler_wl_CXX='-Wl,'
18701 lt_prog_compiler_static_CXX='-non_shared'
18702 # CC pic flag -KPIC is the default.
18708 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18709 case $cc_basename in
18712 lt_prog_compiler_wl_CXX='--backend -Wl,'
18713 lt_prog_compiler_pic_CXX='-fPIC'
18716 # old Intel C++ for x86_64 which still supported -KPIC.
18717 lt_prog_compiler_wl_CXX='-Wl,'
18718 lt_prog_compiler_pic_CXX='-KPIC'
18719 lt_prog_compiler_static_CXX='-static'
18722 # Intel C++, used to be incompatible with GCC.
18723 # ICC 10 doesn't accept -KPIC any more.
18724 lt_prog_compiler_wl_CXX='-Wl,'
18725 lt_prog_compiler_pic_CXX='-fPIC'
18726 lt_prog_compiler_static_CXX='-static'
18729 # Portland Group C++ compiler
18730 lt_prog_compiler_wl_CXX='-Wl,'
18731 lt_prog_compiler_pic_CXX='-fpic'
18732 lt_prog_compiler_static_CXX='-Bstatic'
18736 # Make sure the PIC flag is empty. It appears that all Alpha
18737 # Linux and Compaq Tru64 Unix objects are PIC.
18738 lt_prog_compiler_pic_CXX=
18739 lt_prog_compiler_static_CXX='-non_shared'
18742 # IBM XL 8.0 on PPC
18743 lt_prog_compiler_wl_CXX='-Wl,'
18744 lt_prog_compiler_pic_CXX='-qpic'
18745 lt_prog_compiler_static_CXX='-qstaticlink'
18748 case `$CC -V 2>&1 | sed 5q` in
18751 lt_prog_compiler_pic_CXX='-KPIC'
18752 lt_prog_compiler_static_CXX='-Bstatic'
18753 lt_prog_compiler_wl_CXX='-Qoption ld '
18764 case $cc_basename in
18766 lt_prog_compiler_pic_CXX='-W c,exportall'
18775 # QNX uses GNU C++, but need to define -shared option too, otherwise
18776 # it will coredump.
18777 lt_prog_compiler_pic_CXX='-fPIC -shared'
18779 osf3* | osf4* | osf5*)
18780 case $cc_basename in
18782 lt_prog_compiler_wl_CXX='--backend -Wl,'
18785 # Rational C++ 2.4.1
18786 lt_prog_compiler_pic_CXX='-pic'
18789 # Digital/Compaq C++
18790 lt_prog_compiler_wl_CXX='-Wl,'
18791 # Make sure the PIC flag is empty. It appears that all Alpha
18792 # Linux and Compaq Tru64 Unix objects are PIC.
18793 lt_prog_compiler_pic_CXX=
18794 lt_prog_compiler_static_CXX='-non_shared'
18803 case $cc_basename in
18805 # Sun C++ 4.2, 5.x and Centerline C++
18806 lt_prog_compiler_pic_CXX='-KPIC'
18807 lt_prog_compiler_static_CXX='-Bstatic'
18808 lt_prog_compiler_wl_CXX='-Qoption ld '
18811 # Green Hills C++ Compiler
18812 lt_prog_compiler_pic_CXX='-PIC'
18819 case $cc_basename in
18822 lt_prog_compiler_pic_CXX='-pic'
18823 lt_prog_compiler_static_CXX='-Bstatic'
18827 lt_prog_compiler_pic_CXX='-pic'
18833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18834 case $cc_basename in
18836 lt_prog_compiler_wl_CXX='-Wl,'
18837 lt_prog_compiler_pic_CXX='-KPIC'
18838 lt_prog_compiler_static_CXX='-Bstatic'
18843 case $cc_basename in
18845 # NonStop-UX NCC 3.20
18846 lt_prog_compiler_pic_CXX='-KPIC'
18855 lt_prog_compiler_can_build_shared_CXX=no
18861 # For platforms which do not support PIC, -DPIC is meaningless:
18863 lt_prog_compiler_pic_CXX=
18866 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
18870 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18875 # Check to make sure the PIC flag actually works.
18877 if test -n "$lt_prog_compiler_pic_CXX"; then
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18879 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18880 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
18881 $as_echo_n "(cached) " >&6
18883 lt_cv_prog_compiler_pic_works_CXX=no
18884 ac_outfile=conftest.$ac_objext
18885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18886 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18887 # Insert the option either (1) after the last *FLAGS variable, or
18888 # (2) before a word containing "conftest.", or (3) at the end.
18889 # Note that $ac_compile itself does not contain backslashes and begins
18890 # with a dollar sign (not a hyphen), so the echo should work correctly.
18891 # The option is referenced via a variable to avoid confusing sed.
18892 lt_compile=`echo "$ac_compile" | $SED \
18893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18895 -e 's:$: $lt_compiler_flag:'`
18896 (eval echo "\"\$as_me:18896: $lt_compile\"" >&5)
18897 (eval "$lt_compile" 2>conftest.err)
18899 cat conftest.err >&5
18900 echo "$as_me:18900: \$? = $ac_status" >&5
18901 if (exit $ac_status) && test -s "$ac_outfile"; then
18902 # The compiler can only warn and ignore the option if not recognized
18903 # So say no if there are warnings other than the usual output.
18904 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18907 lt_cv_prog_compiler_pic_works_CXX=yes
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18914 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18916 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18917 case $lt_prog_compiler_pic_CXX in
18919 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18922 lt_prog_compiler_pic_CXX=
18923 lt_prog_compiler_can_build_shared_CXX=no
18931 # Check to make sure the static flag actually works.
18933 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18936 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
18937 $as_echo_n "(cached) " >&6
18939 lt_cv_prog_compiler_static_works_CXX=no
18940 save_LDFLAGS="$LDFLAGS"
18941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18942 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18944 # The linker can only warn and ignore the option if not recognized
18945 # So say no if there are warnings
18946 if test -s conftest.err; then
18947 # Append any errors to the config.log.
18948 cat conftest.err 1>&5
18949 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18951 if diff conftest.exp conftest.er2 >/dev/null; then
18952 lt_cv_prog_compiler_static_works_CXX=yes
18955 lt_cv_prog_compiler_static_works_CXX=yes
18959 LDFLAGS="$save_LDFLAGS"
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18963 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18965 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18968 lt_prog_compiler_static_CXX=
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18975 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18976 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18977 $as_echo_n "(cached) " >&6
18979 lt_cv_prog_compiler_c_o_CXX=no
18980 $RM -r conftest 2>/dev/null
18984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18986 lt_compiler_flag="-o out/conftest2.$ac_objext"
18987 # Insert the option either (1) after the last *FLAGS variable, or
18988 # (2) before a word containing "conftest.", or (3) at the end.
18989 # Note that $ac_compile itself does not contain backslashes and begins
18990 # with a dollar sign (not a hyphen), so the echo should work correctly.
18991 lt_compile=`echo "$ac_compile" | $SED \
18992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18994 -e 's:$: $lt_compiler_flag:'`
18995 (eval echo "\"\$as_me:18995: $lt_compile\"" >&5)
18996 (eval "$lt_compile" 2>out/conftest.err)
18998 cat out/conftest.err >&5
18999 echo "$as_me:18999: \$? = $ac_status" >&5
19000 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19002 # The compiler can only warn and ignore the option if not recognized
19003 # So say no if there are warnings
19004 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19005 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19006 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19007 lt_cv_prog_compiler_c_o_CXX=yes
19012 # SGI C++ compiler will create directory out/ii_files/ for
19013 # template instantiation
19014 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19015 $RM out/* && rmdir out
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19022 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19027 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19028 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19029 $as_echo_n "(cached) " >&6
19031 lt_cv_prog_compiler_c_o_CXX=no
19032 $RM -r conftest 2>/dev/null
19036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19038 lt_compiler_flag="-o out/conftest2.$ac_objext"
19039 # Insert the option either (1) after the last *FLAGS variable, or
19040 # (2) before a word containing "conftest.", or (3) at the end.
19041 # Note that $ac_compile itself does not contain backslashes and begins
19042 # with a dollar sign (not a hyphen), so the echo should work correctly.
19043 lt_compile=`echo "$ac_compile" | $SED \
19044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19046 -e 's:$: $lt_compiler_flag:'`
19047 (eval echo "\"\$as_me:19047: $lt_compile\"" >&5)
19048 (eval "$lt_compile" 2>out/conftest.err)
19050 cat out/conftest.err >&5
19051 echo "$as_me:19051: \$? = $ac_status" >&5
19052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19054 # The compiler can only warn and ignore the option if not recognized
19055 # So say no if there are warnings
19056 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19059 lt_cv_prog_compiler_c_o_CXX=yes
19064 # SGI C++ compiler will create directory out/ii_files/ for
19065 # template instantiation
19066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19067 $RM out/* && rmdir out
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19074 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19079 hard_links="nottested"
19080 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19081 # do not overwrite the value of need_locks provided by the user
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19083 $as_echo_n "checking if we can lock with hard links... " >&6; }
19086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19088 ln conftest.a conftest.b 2>&5 || hard_links=no
19089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19091 $as_echo "$hard_links" >&6; }
19092 if test "$hard_links" = no; then
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19094 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19104 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19106 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19109 # If we're using GNU nm, then we don't want the "-C" option.
19110 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19111 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19112 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'
19114 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'
19118 export_symbols_cmds_CXX="$ltdll_cmds"
19120 cygwin* | mingw* | cegcc*)
19121 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'
19124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19127 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19130 $as_echo "$ld_shlibs_CXX" >&6; }
19131 test "$ld_shlibs_CXX" = no && can_build_shared=no
19133 with_gnu_ld_CXX=$with_gnu_ld
19141 # Do we need to explicitly link libc?
19143 case "x$archive_cmds_need_lc_CXX" in
19145 # Assume -lc should be added
19146 archive_cmds_need_lc_CXX=yes
19148 if test "$enable_shared" = yes && test "$GCC" = yes; then
19149 case $archive_cmds_CXX in
19151 # FIXME: we may have to deal with multi-command sequences.
19154 # Test whether the compiler implicitly links with -lc since on some
19155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19156 # to ld, don't add -lc before -lgcc.
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19158 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19159 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19160 $as_echo_n "(cached) " >&6
19163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19166 (eval $ac_compile) 2>&5
19168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19169 test $ac_status = 0; } 2>conftest.err; then
19172 libobjs=conftest.$ac_objext
19174 wl=$lt_prog_compiler_wl_CXX
19175 pic_flag=$lt_prog_compiler_pic_CXX
19181 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19182 allow_undefined_flag_CXX=
19183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19184 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19187 test $ac_status = 0; }
19189 lt_cv_archive_cmds_need_lc_CXX=no
19191 lt_cv_archive_cmds_need_lc_CXX=yes
19193 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19195 cat conftest.err 1>&5
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19201 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19202 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19273 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19275 library_names_spec=
19276 libname_spec='lib$name'
19280 postuninstall_cmds=
19284 shlibpath_overrides_runpath=unknown
19286 dynamic_linker="$host_os ld.so"
19287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19288 need_lib_prefix=unknown
19289 hardcode_into_libs=no
19291 # when you set need_version to no, make sure it does not cause -set_version
19292 # flags to be left without arguments
19293 need_version=unknown
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19299 shlibpath_var=LIBPATH
19301 # AIX 3 has no versioning support, so we append a major version to the name.
19302 soname_spec='${libname}${release}${shared_ext}$major'
19309 hardcode_into_libs=yes
19310 if test "$host_cpu" = ia64; then
19311 # AIX 5 supports IA64
19312 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19313 shlibpath_var=LD_LIBRARY_PATH
19315 # With GCC up to 2.95.x, collect2 would create an import file
19316 # for dependence libraries. The import file would start with
19317 # the line `#! .'. This would cause the generated library to
19318 # depend on `.', always an invalid library. This was fixed in
19319 # development snapshots of GCC prior to 3.0.
19321 aix4 | aix4.[01] | aix4.[01].*)
19322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19324 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19327 can_build_shared=no
19331 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19332 # soname into executable. Probably we can add versioning support to
19333 # collect2, so additional links can be useful in future.
19334 if test "$aix_use_runtimelinking" = yes; then
19335 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19336 # instead of lib<name>.a to let people know that these are not
19337 # typical AIX shared libraries.
19338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19340 # We preserve .a as extension for shared libraries through AIX4.2
19341 # and later when we are not doing run time linking.
19342 library_names_spec='${libname}${release}.a $libname.a'
19343 soname_spec='${libname}${release}${shared_ext}$major'
19345 shlibpath_var=LIBPATH
19352 # Since July 2007 AmigaOS4 officially supports .so libraries.
19353 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19357 library_names_spec='$libname.ixlibrary $libname.a'
19358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19359 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'
19365 library_names_spec='${libname}${shared_ext}'
19366 dynamic_linker="$host_os ld.so"
19367 shlibpath_var=LIBRARY_PATH
19373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19374 soname_spec='${libname}${release}${shared_ext}$major'
19375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19376 shlibpath_var=LD_LIBRARY_PATH
19377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19379 # the default ld.so.conf also contains /usr/contrib/lib and
19380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19381 # libtool to hard-code these into programs
19384 cygwin* | mingw* | pw32* | cegcc*)
19385 version_type=windows
19390 case $GCC,$host_os in
19391 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19392 library_names_spec='$libname.dll.a'
19393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19394 postinstall_cmds='base_file=`basename \${file}`~
19395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19396 dldir=$destdir/`dirname \$dlpath`~
19397 test -d \$dldir || mkdir -p \$dldir~
19398 $install_prog $dir/$dlname \$dldir/$dlname~
19399 chmod a+x \$dldir/$dlname~
19400 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19401 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19404 dlpath=$dir/\$dldll~
19406 shlibpath_overrides_runpath=yes
19410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19412 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19415 # MinGW DLLs use traditional 'lib' prefix
19416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19417 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19418 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19419 # It is most probably a Windows format PATH printed by
19420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19421 # path with ; separators, and with drive letters. We can handle the
19422 # drive letters (cygwin fileutils understands them), so leave them,
19423 # especially as we might pass files found there to a mingw objdump,
19424 # which wouldn't understand a cygwinified path. Ahh.
19425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19431 # pw32 DLLs use 'pw' prefix rather than 'lib'
19432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19441 dynamic_linker='Win32 ld.exe'
19442 # FIXME: first we should search . and the directory the executable is in
19446 darwin* | rhapsody*)
19447 dynamic_linker="$host_os dyld"
19448 version_type=darwin
19451 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19452 soname_spec='${libname}${release}${major}$shared_ext'
19453 shlibpath_overrides_runpath=yes
19454 shlibpath_var=DYLD_LIBRARY_PATH
19455 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19457 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19465 soname_spec='${libname}${release}${shared_ext}$major'
19466 shlibpath_var=LD_LIBRARY_PATH
19473 freebsd* | dragonfly*)
19474 # DragonFly does not have aout. When/if they implement a new
19475 # versioning mechanism, adjust this.
19476 if test -x /usr/bin/objformat; then
19477 objformat=`/usr/bin/objformat`
19480 freebsd[123]*) objformat=aout ;;
19481 *) objformat=elf ;;
19484 version_type=freebsd-$objformat
19485 case $version_type in
19487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19496 shlibpath_var=LD_LIBRARY_PATH
19499 shlibpath_overrides_runpath=yes
19501 freebsd3.[01]* | freebsdelf3.[01]*)
19502 shlibpath_overrides_runpath=yes
19503 hardcode_into_libs=yes
19505 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19506 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19507 shlibpath_overrides_runpath=no
19508 hardcode_into_libs=yes
19510 *) # from 4.6 on, and DragonFly
19511 shlibpath_overrides_runpath=yes
19512 hardcode_into_libs=yes
19521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19522 soname_spec='${libname}${release}${shared_ext}$major'
19523 shlibpath_var=LD_LIBRARY_PATH
19524 hardcode_into_libs=yes
19527 hpux9* | hpux10* | hpux11*)
19528 # Give a soname corresponding to the major version so that dld.sl refuses to
19529 # link against other versions.
19536 hardcode_into_libs=yes
19537 dynamic_linker="$host_os dld.so"
19538 shlibpath_var=LD_LIBRARY_PATH
19539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19541 soname_spec='${libname}${release}${shared_ext}$major'
19542 if test "X$HPUX_IA64_MODE" = X32; then
19543 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19551 hardcode_into_libs=yes
19552 dynamic_linker="$host_os dld.sl"
19553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19556 soname_spec='${libname}${release}${shared_ext}$major'
19557 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19562 dynamic_linker="$host_os dld.sl"
19563 shlibpath_var=SHLIB_PATH
19564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19566 soname_spec='${libname}${release}${shared_ext}$major'
19569 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19570 postinstall_cmds='chmod 555 $lib'
19577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19578 soname_spec='${libname}${release}${shared_ext}$major'
19579 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19580 shlibpath_var=LD_LIBRARY_PATH
19581 shlibpath_overrides_runpath=no
19582 hardcode_into_libs=yes
19585 irix5* | irix6* | nonstopux*)
19587 nonstopux*) version_type=nonstopux ;;
19589 if test "$lt_cv_prog_gnu_ld" = yes; then
19597 soname_spec='${libname}${release}${shared_ext}$major'
19598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19600 irix5* | nonstopux*)
19601 libsuff= shlibsuff=
19604 case $LD in # libtool.m4 will add one of these switches to LD
19605 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19606 libsuff= shlibsuff= libmagic=32-bit;;
19607 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19608 libsuff=32 shlibsuff=N32 libmagic=N32;;
19609 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19610 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19611 *) libsuff= shlibsuff= libmagic=never-match;;
19615 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19616 shlibpath_overrides_runpath=no
19617 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19618 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19619 hardcode_into_libs=yes
19622 # No shared lib support for Linux oldld, aout, or coff.
19623 linux*oldld* | linux*aout* | linux*coff*)
19627 # This must be Linux ELF.
19628 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19633 soname_spec='${libname}${release}${shared_ext}$major'
19634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19635 shlibpath_var=LD_LIBRARY_PATH
19636 shlibpath_overrides_runpath=no
19638 # Some binutils ld are patched to set DT_RUNPATH
19639 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
19640 $as_echo_n "(cached) " >&6
19642 lt_cv_shlibpath_overrides_runpath=no
19643 save_LDFLAGS=$LDFLAGS
19644 save_libdir=$libdir
19645 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19646 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648 /* end confdefs.h. */
19658 if ac_fn_cxx_try_link "$LINENO"; then :
19659 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19660 lt_cv_shlibpath_overrides_runpath=yes
19663 rm -f core conftest.err conftest.$ac_objext \
19664 conftest$ac_exeext conftest.$ac_ext
19665 LDFLAGS=$save_LDFLAGS
19666 libdir=$save_libdir
19670 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19672 # This implies no fast_install, which is unacceptable.
19673 # Some rework will be needed to allow for fast_install
19674 # before this can be enabled.
19675 hardcode_into_libs=yes
19677 # Append ld.so.conf contents to the search path
19678 if test -f /etc/ld.so.conf; then
19679 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' ' '`
19680 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19683 # We used to test for /lib/ld.so.1 and disable shared libraries on
19684 # powerpc, because MkLinux only supported shared libraries with the
19685 # GNU dynamic linker. Since this was broken with cross compilers,
19686 # most powerpc-linux boxes support dynamic linking these days and
19687 # people can always --disable-shared, the test was removed, and we
19688 # assume the GNU/Linux dynamic linker is in use.
19689 dynamic_linker='GNU/Linux ld.so'
19696 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19699 dynamic_linker='NetBSD (a.out) ld.so'
19701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19702 soname_spec='${libname}${release}${shared_ext}$major'
19703 dynamic_linker='NetBSD ld.elf_so'
19705 shlibpath_var=LD_LIBRARY_PATH
19706 shlibpath_overrides_runpath=yes
19707 hardcode_into_libs=yes
19712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19713 shlibpath_var=LD_LIBRARY_PATH
19714 shlibpath_overrides_runpath=yes
19721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19722 soname_spec='${libname}${release}${shared_ext}$major'
19723 shlibpath_var=LD_LIBRARY_PATH
19724 shlibpath_overrides_runpath=no
19725 hardcode_into_libs=yes
19726 dynamic_linker='ldqnx.so'
19731 sys_lib_dlsearch_path_spec="/usr/lib"
19733 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19735 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19736 *) need_version=no ;;
19738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19740 shlibpath_var=LD_LIBRARY_PATH
19741 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19743 openbsd2.[89] | openbsd2.[89].*)
19744 shlibpath_overrides_runpath=no
19747 shlibpath_overrides_runpath=yes
19751 shlibpath_overrides_runpath=yes
19756 libname_spec='$name'
19759 library_names_spec='$libname${shared_ext} $libname.a'
19760 dynamic_linker='OS/2 ld.exe'
19761 shlibpath_var=LIBPATH
19764 osf3* | osf4* | osf5*)
19768 soname_spec='${libname}${release}${shared_ext}$major'
19769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19770 shlibpath_var=LD_LIBRARY_PATH
19771 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19772 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784 soname_spec='${libname}${release}${shared_ext}$major'
19785 shlibpath_var=LD_LIBRARY_PATH
19786 shlibpath_overrides_runpath=yes
19787 hardcode_into_libs=yes
19788 # ldd complains unless libraries are executable
19789 postinstall_cmds='chmod +x $lib'
19794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19795 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19796 shlibpath_var=LD_LIBRARY_PATH
19797 shlibpath_overrides_runpath=yes
19798 if test "$with_gnu_ld" = yes; then
19806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19807 soname_spec='${libname}${release}${shared_ext}$major'
19808 shlibpath_var=LD_LIBRARY_PATH
19809 case $host_vendor in
19811 shlibpath_overrides_runpath=no
19813 runpath_var=LD_RUN_PATH
19821 shlibpath_overrides_runpath=no
19822 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19828 if test -d /usr/nec ;then
19830 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19831 soname_spec='$libname${shared_ext}.$major'
19832 shlibpath_var=LD_LIBRARY_PATH
19836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19837 version_type=freebsd-elf
19840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19841 soname_spec='${libname}${release}${shared_ext}$major'
19842 shlibpath_var=LD_LIBRARY_PATH
19843 shlibpath_overrides_runpath=yes
19844 hardcode_into_libs=yes
19845 if test "$with_gnu_ld" = yes; then
19846 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19848 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19851 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19855 sys_lib_dlsearch_path_spec='/usr/lib'
19859 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19864 shlibpath_var=LD_LIBRARY_PATH
19865 shlibpath_overrides_runpath=no
19866 hardcode_into_libs=yes
19871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19872 soname_spec='${libname}${release}${shared_ext}$major'
19873 shlibpath_var=LD_LIBRARY_PATH
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19881 $as_echo "$dynamic_linker" >&6; }
19882 test "$dynamic_linker" = no && can_build_shared=no
19884 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19885 if test "$GCC" = yes; then
19886 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19889 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19890 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19892 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19893 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19932 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19933 hardcode_action_CXX=
19934 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19935 test -n "$runpath_var_CXX" ||
19936 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19938 # We can hardcode non-existent directories.
19939 if test "$hardcode_direct_CXX" != no &&
19940 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19941 # have to relink, otherwise we might link with an installed library
19942 # when we should be linking with a yet-to-be-installed one
19943 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19944 test "$hardcode_minus_L_CXX" != no; then
19945 # Linking always hardcodes the temporary library directory.
19946 hardcode_action_CXX=relink
19948 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19949 hardcode_action_CXX=immediate
19952 # We cannot hardcode anything, or else we can only hardcode existing
19954 hardcode_action_CXX=unsupported
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19957 $as_echo "$hardcode_action_CXX" >&6; }
19959 if test "$hardcode_action_CXX" = relink ||
19960 test "$inherit_rpath_CXX" = yes; then
19961 # Fast installation is not supported
19962 enable_fast_install=no
19963 elif test "$shlibpath_overrides_runpath" = yes ||
19964 test "$enable_shared" = no; then
19965 # Fast installation is not necessary
19966 enable_fast_install=needless
19975 fi # test -n "$compiler"
19981 with_gnu_ld=$lt_save_with_gnu_ld
19982 lt_cv_path_LDCXX=$lt_cv_path_LD
19983 lt_cv_path_LD=$lt_save_path_LD
19984 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19985 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19986 fi # test "$_lt_caught_CXX_error" != yes
19989 ac_cpp='$CPP $CPPFLAGS'
19990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20009 # Only expand once:
20015 # Identify the assembler which will work hand-in-glove with the newly
20016 # built GCC, so that we can examine its features. This is the assembler
20017 # which will be driven by the driver program.
20019 # If build != host, and we aren't building gas in-tree, we identify a
20020 # build->target assembler and hope that it will have the same features
20021 # as the host->target assembler we'll be using.
20022 gcc_cv_gas_major_version=
20023 gcc_cv_gas_minor_version=
20024 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20026 if test "${gcc_cv_as+set}" = set; then :
20030 if test -x "$DEFAULT_ASSEMBLER"; then
20031 gcc_cv_as="$DEFAULT_ASSEMBLER"
20032 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20033 && test -f ../gas/Makefile \
20034 && test x$build = x$host; then
20035 gcc_cv_as=../gas/as-new$build_exeext
20036 elif test -x as$build_exeext; then
20037 # Build using assembler in the current directory.
20038 gcc_cv_as=./as$build_exeext
20039 elif test -x $AS_FOR_TARGET; then
20040 gcc_cv_as="$AS_FOR_TARGET"
20042 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20043 set dummy $AS_FOR_TARGET; ac_word=$2
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20045 $as_echo_n "checking for $ac_word... " >&6; }
20046 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20047 $as_echo_n "(cached) " >&6
20051 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20055 for as_dir in $PATH
20058 test -z "$as_dir" && as_dir=.
20059 for ac_exec_ext in '' $ac_executable_extensions; do
20060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20061 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20072 gcc_cv_as=$ac_cv_path_gcc_cv_as
20073 if test -n "$gcc_cv_as"; then
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20075 $as_echo "$gcc_cv_as" >&6; }
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20078 $as_echo "no" >&6; }
20085 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20087 case "$ORIGINAL_AS_FOR_TARGET" in
20088 ./as | ./as$build_exeext) ;;
20089 *) ac_config_files="$ac_config_files as:exec-tool.in"
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20094 $as_echo_n "checking what assembler to use... " >&6; }
20095 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20096 # Single tree build which includes gas. We want to prefer it
20097 # over whatever linker top-level may have detected, since
20098 # we'll use what we're building after installation anyway.
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20100 $as_echo "newly built gas" >&6; }
20102 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20103 for f in $gcc_cv_as_bfd_srcdir/configure \
20104 $gcc_cv_as_gas_srcdir/configure \
20105 $gcc_cv_as_gas_srcdir/configure.in \
20106 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20107 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20108 if test x$gcc_cv_gas_version != x; then
20112 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20113 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20114 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20115 case $gcc_cv_gas_patch_version in
20116 "") gcc_cv_gas_patch_version="0" ;;
20118 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20119 + $gcc_cv_gas_minor_version \) \* 1000 \
20120 + $gcc_cv_gas_patch_version`
20122 in_tree_gas_is_elf=no
20123 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20124 || (grep 'obj_format = multi' ../gas/Makefile \
20125 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20127 in_tree_gas_is_elf=yes
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20131 $as_echo "$gcc_cv_as" >&6; }
20135 # Identify the linker which will work hand-in-glove with the newly
20136 # built GCC, so that we can examine its features. This is the linker
20137 # which will be driven by the driver program.
20139 # If build != host, and we aren't building gas in-tree, we identify a
20140 # build->target linker and hope that it will have the same features
20141 # as the host->target linker we'll be using.
20142 gcc_cv_gld_major_version=
20143 gcc_cv_gld_minor_version=
20144 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20145 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20147 if test "${gcc_cv_ld+set}" = set; then :
20151 if test -x "$DEFAULT_LINKER"; then
20152 gcc_cv_ld="$DEFAULT_LINKER"
20153 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20154 && test -f ../ld/Makefile \
20155 && test x$build = x$host; then
20156 gcc_cv_ld=../ld/ld-new$build_exeext
20157 elif test -x collect-ld$build_exeext; then
20158 # Build using linker in the current directory.
20159 gcc_cv_ld=./collect-ld$build_exeext
20160 elif test -x $LD_FOR_TARGET; then
20161 gcc_cv_ld="$LD_FOR_TARGET"
20163 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20164 set dummy $LD_FOR_TARGET; ac_word=$2
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20166 $as_echo_n "checking for $ac_word... " >&6; }
20167 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20168 $as_echo_n "(cached) " >&6
20172 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20176 for as_dir in $PATH
20179 test -z "$as_dir" && as_dir=.
20180 for ac_exec_ext in '' $ac_executable_extensions; do
20181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20182 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20193 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20194 if test -n "$gcc_cv_ld"; then
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20196 $as_echo "$gcc_cv_ld" >&6; }
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199 $as_echo "no" >&6; }
20206 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20208 case "$ORIGINAL_LD_FOR_TARGET" in
20209 ./collect-ld | ./collect-ld$build_exeext) ;;
20210 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20215 $as_echo_n "checking what linker to use... " >&6; }
20216 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20217 # Single tree build which includes ld. We want to prefer it
20218 # over whatever linker top-level may have detected, since
20219 # we'll use what we're building after installation anyway.
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20221 $as_echo "newly built ld" >&6; }
20223 in_tree_ld_is_elf=no
20224 if (grep 'EMUL = .*elf' ../ld/Makefile \
20225 || grep 'EMUL = .*linux' ../ld/Makefile \
20226 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20227 in_tree_ld_is_elf=yes
20229 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
20231 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20232 if test x$gcc_cv_gld_version != x; then
20236 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20237 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20240 $as_echo "$gcc_cv_ld" >&6; }
20244 # Figure out what nm we will be using.
20245 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20246 if test "${gcc_cv_nm+set}" = set; then :
20250 if test -f $gcc_cv_binutils_srcdir/configure.in \
20251 && test -f ../binutils/Makefile \
20252 && test x$build = x$host; then
20253 gcc_cv_nm=../binutils/nm-new$build_exeext
20254 elif test -x nm$build_exeext; then
20255 gcc_cv_nm=./nm$build_exeext
20256 elif test -x $NM_FOR_TARGET; then
20257 gcc_cv_nm="$NM_FOR_TARGET"
20259 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20260 set dummy $NM_FOR_TARGET; ac_word=$2
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20262 $as_echo_n "checking for $ac_word... " >&6; }
20263 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20264 $as_echo_n "(cached) " >&6
20268 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20272 for as_dir in $PATH
20275 test -z "$as_dir" && as_dir=.
20276 for ac_exec_ext in '' $ac_executable_extensions; do
20277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20278 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20289 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20290 if test -n "$gcc_cv_nm"; then
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20292 $as_echo "$gcc_cv_nm" >&6; }
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20295 $as_echo "no" >&6; }
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20303 $as_echo_n "checking what nm to use... " >&6; }
20304 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20305 # Single tree build which includes binutils.
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20307 $as_echo "newly built nm" >&6; }
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20311 $as_echo "$gcc_cv_nm" >&6; }
20315 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20317 case "$ORIGINAL_NM_FOR_TARGET" in
20318 ./nm | ./nm$build_exeext) ;;
20319 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20324 # Figure out what objdump we will be using.
20325 if test "${gcc_cv_objdump+set}" = set; then :
20329 if test -f $gcc_cv_binutils_srcdir/configure.in \
20330 && test -f ../binutils/Makefile \
20331 && test x$build = x$host; then
20332 # Single tree build which includes binutils.
20333 gcc_cv_objdump=../binutils/objdump$build_exeext
20334 elif test -x objdump$build_exeext; then
20335 gcc_cv_objdump=./objdump$build_exeext
20336 elif test -x $OBJDUMP_FOR_TARGET; then
20337 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20339 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20340 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20342 $as_echo_n "checking for $ac_word... " >&6; }
20343 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20344 $as_echo_n "(cached) " >&6
20346 case $gcc_cv_objdump in
20348 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20352 for as_dir in $PATH
20355 test -z "$as_dir" && as_dir=.
20356 for ac_exec_ext in '' $ac_executable_extensions; do
20357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20358 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20369 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20370 if test -n "$gcc_cv_objdump"; then
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20372 $as_echo "$gcc_cv_objdump" >&6; }
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20375 $as_echo "no" >&6; }
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20383 $as_echo_n "checking what objdump to use... " >&6; }
20384 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20385 # Single tree build which includes binutils.
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20387 $as_echo "newly built objdump" >&6; }
20388 elif test x$gcc_cv_objdump = x; then
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20390 $as_echo "not found" >&6; }
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20393 $as_echo "$gcc_cv_objdump" >&6; }
20396 # Figure out what readelf we will be using.
20397 if test "${gcc_cv_readelf+set}" = set; then :
20401 if test -f $gcc_cv_binutils_srcdir/configure.in \
20402 && test -f ../binutils/Makefile \
20403 && test x$build = x$host; then
20404 # Single tree build which includes binutils.
20405 gcc_cv_readelf=../binutils/readelf$build_exeext
20406 elif test -x readelf$build_exeext; then
20407 gcc_cv_readelf=./readelf$build_exeext
20409 # Extract the first word of "readelf", so it can be a program name with args.
20410 set dummy readelf; ac_word=$2
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20412 $as_echo_n "checking for $ac_word... " >&6; }
20413 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20414 $as_echo_n "(cached) " >&6
20416 case $gcc_cv_readelf in
20418 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20422 for as_dir in $PATH
20425 test -z "$as_dir" && as_dir=.
20426 for ac_exec_ext in '' $ac_executable_extensions; do
20427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20428 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20439 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20440 if test -n "$gcc_cv_readelf"; then
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20442 $as_echo "$gcc_cv_readelf" >&6; }
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20445 $as_echo "no" >&6; }
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20453 $as_echo_n "checking what readelf to use... " >&6; }
20454 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20455 # Single tree build which includes binutils.
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20457 $as_echo "newly built readelf" >&6; }
20458 elif test x$gcc_cv_readelf = x; then
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20460 $as_echo "not found" >&6; }
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20463 $as_echo "$gcc_cv_readelf" >&6; }
20466 # Figure out what assembler alignment features are present.
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20468 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20469 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20470 $as_echo_n "(cached) " >&6
20472 gcc_cv_as_balign_and_p2align=no
20473 if test $in_tree_gas = yes; then
20474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20475 then gcc_cv_as_balign_and_p2align=yes
20477 elif test x$gcc_cv_as != x; then
20479 .p2align 2' > conftest.s
20480 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20482 (eval $ac_try) 2>&5
20484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20485 test $ac_status = 0; }; }
20487 gcc_cv_as_balign_and_p2align=yes
20489 echo "configure: failed program was" >&5
20492 rm -f conftest.o conftest.s
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20496 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20497 if test $gcc_cv_as_balign_and_p2align = yes; then
20499 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20504 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20505 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20506 $as_echo_n "(cached) " >&6
20508 gcc_cv_as_max_skip_p2align=no
20509 if test $in_tree_gas = yes; then
20510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20511 then gcc_cv_as_max_skip_p2align=yes
20513 elif test x$gcc_cv_as != x; then
20514 echo '.p2align 4,,7' > conftest.s
20515 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20517 (eval $ac_try) 2>&5
20519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20520 test $ac_status = 0; }; }
20522 gcc_cv_as_max_skip_p2align=yes
20524 echo "configure: failed program was" >&5
20527 rm -f conftest.o conftest.s
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
20531 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
20532 if test $gcc_cv_as_max_skip_p2align = yes; then
20534 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
20539 $as_echo_n "checking assembler for .literal16... " >&6; }
20540 if test "${gcc_cv_as_literal16+set}" = set; then :
20541 $as_echo_n "(cached) " >&6
20543 gcc_cv_as_literal16=no
20544 if test $in_tree_gas = yes; then
20545 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20546 then gcc_cv_as_literal16=yes
20548 elif test x$gcc_cv_as != x; then
20549 echo '.literal16' > conftest.s
20550 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20552 (eval $ac_try) 2>&5
20554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20555 test $ac_status = 0; }; }
20557 gcc_cv_as_literal16=yes
20559 echo "configure: failed program was" >&5
20562 rm -f conftest.o conftest.s
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
20566 $as_echo "$gcc_cv_as_literal16" >&6; }
20567 if test $gcc_cv_as_literal16 = yes; then
20569 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
20574 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
20575 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
20576 $as_echo_n "(cached) " >&6
20578 gcc_cv_as_subsection_m1=no
20579 if test $in_tree_gas = yes; then
20580 if test $in_tree_gas_is_elf = yes \
20581 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20582 then gcc_cv_as_subsection_m1=yes
20584 elif test x$gcc_cv_as != x; then
20585 echo 'conftest_label1: .word 0
20587 conftest_label2: .word 0
20588 .previous' > conftest.s
20589 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20591 (eval $ac_try) 2>&5
20593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20594 test $ac_status = 0; }; }
20596 if test x$gcc_cv_nm != x; then
20597 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20598 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20599 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20601 else gcc_cv_as_subsection_m1=yes
20603 rm -f conftest.nm1 conftest.nm2
20606 echo "configure: failed program was" >&5
20609 rm -f conftest.o conftest.s
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
20613 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
20614 if test $gcc_cv_as_subsection_m1 = yes; then
20616 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
20621 $as_echo_n "checking assembler for .weak... " >&6; }
20622 if test "${gcc_cv_as_weak+set}" = set; then :
20623 $as_echo_n "(cached) " >&6
20626 if test $in_tree_gas = yes; then
20627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20628 then gcc_cv_as_weak=yes
20630 elif test x$gcc_cv_as != x; then
20631 echo ' .weak foobar' > conftest.s
20632 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20634 (eval $ac_try) 2>&5
20636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20637 test $ac_status = 0; }; }
20641 echo "configure: failed program was" >&5
20644 rm -f conftest.o conftest.s
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
20648 $as_echo "$gcc_cv_as_weak" >&6; }
20649 if test $gcc_cv_as_weak = yes; then
20651 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
20656 $as_echo_n "checking assembler for .weakref... " >&6; }
20657 if test "${gcc_cv_as_weakref+set}" = set; then :
20658 $as_echo_n "(cached) " >&6
20660 gcc_cv_as_weakref=no
20661 if test $in_tree_gas = yes; then
20662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20663 then gcc_cv_as_weakref=yes
20665 elif test x$gcc_cv_as != x; then
20666 echo ' .weakref foobar, barfnot' > conftest.s
20667 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20669 (eval $ac_try) 2>&5
20671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20672 test $ac_status = 0; }; }
20674 gcc_cv_as_weakref=yes
20676 echo "configure: failed program was" >&5
20679 rm -f conftest.o conftest.s
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
20683 $as_echo "$gcc_cv_as_weakref" >&6; }
20684 if test $gcc_cv_as_weakref = yes; then
20686 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
20691 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
20692 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
20693 $as_echo_n "(cached) " >&6
20695 gcc_cv_as_nsubspa_comdat=no
20696 if test $in_tree_gas = yes; then
20697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20698 then gcc_cv_as_nsubspa_comdat=yes
20700 elif test x$gcc_cv_as != x; then
20701 echo ' .SPACE $TEXT$
20702 .NSUBSPA $CODE$,COMDAT' > conftest.s
20703 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20705 (eval $ac_try) 2>&5
20707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20708 test $ac_status = 0; }; }
20710 gcc_cv_as_nsubspa_comdat=yes
20712 echo "configure: failed program was" >&5
20715 rm -f conftest.o conftest.s
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
20719 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
20720 if test $gcc_cv_as_nsubspa_comdat = yes; then
20722 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
20726 # .hidden needs to be supported in both the assembler and the linker,
20727 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20728 # This is irritatingly difficult to feature test for; we have to check the
20729 # date string after the version number. If we've got an in-tree
20730 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20732 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
20734 $as_echo_n "checking assembler for .hidden... " >&6; }
20735 if test "${gcc_cv_as_hidden+set}" = set; then :
20736 $as_echo_n "(cached) " >&6
20738 gcc_cv_as_hidden=no
20739 if test $in_tree_gas = yes; then
20740 if test $in_tree_gas_is_elf = yes \
20741 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20742 then gcc_cv_as_hidden=yes
20744 elif test x$gcc_cv_as != x; then
20745 echo ' .hidden foobar
20746 foobar:' > conftest.s
20747 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20749 (eval $ac_try) 2>&5
20751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20752 test $ac_status = 0; }; }
20754 gcc_cv_as_hidden=yes
20756 echo "configure: failed program was" >&5
20759 rm -f conftest.o conftest.s
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
20763 $as_echo "$gcc_cv_as_hidden" >&6; }
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
20767 $as_echo_n "checking linker for .hidden support... " >&6; }
20768 if test "${gcc_cv_ld_hidden+set}" = set; then :
20769 $as_echo_n "(cached) " >&6
20771 if test $in_tree_ld = yes ; then
20772 gcc_cv_ld_hidden=no
20773 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 \
20774 && test $in_tree_ld_is_elf = yes; then
20775 gcc_cv_ld_hidden=yes
20778 gcc_cv_ld_hidden=yes
20779 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20780 if echo "$ld_ver" | grep GNU > /dev/null; then
20781 ld_vers=`echo $ld_ver | sed -n \
20782 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20783 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'`
20784 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20785 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20786 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20787 if test 0"$ld_date" -lt 20020404; then
20788 if test -n "$ld_date"; then
20789 # If there was date string, but was earlier than 2002-04-04, fail
20790 gcc_cv_ld_hidden=no
20791 elif test -z "$ld_vers"; then
20792 # If there was no date string nor ld version number, something is wrong
20793 gcc_cv_ld_hidden=no
20795 test -z "$ld_vers_patch" && ld_vers_patch=0
20796 if test "$ld_vers_major" -lt 2; then
20797 gcc_cv_ld_hidden=no
20798 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20799 gcc_cv_ld_hidden="no"
20800 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20801 gcc_cv_ld_hidden=no
20806 case "${target}" in
20807 hppa64*-*-hpux* | ia64*-*-hpux*)
20808 gcc_cv_ld_hidden=yes
20810 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
20811 gcc_cv_ld_hidden=yes
20814 gcc_cv_ld_hidden=no
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
20821 $as_echo "$gcc_cv_ld_hidden" >&6; }
20822 libgcc_visibility=no
20825 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20826 libgcc_visibility=yes
20828 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
20833 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
20834 gcc_cv_ld_ro_rw_mix=unknown
20835 if test $in_tree_ld = yes ; then
20836 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 \
20837 && test $in_tree_ld_is_elf = yes; then
20838 gcc_cv_ld_ro_rw_mix=read-write
20840 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
20841 echo '.section myfoosect, "a"' > conftest1.s
20842 echo '.section myfoosect, "aw"' > conftest2.s
20843 echo '.byte 1' >> conftest2.s
20844 echo '.section myfoosect, "a"' > conftest3.s
20845 echo '.byte 0' >> conftest3.s
20846 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
20847 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
20848 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
20849 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
20850 conftest2.o conftest3.o > /dev/null 2>&1; then
20851 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
20852 | sed -e '/myfoosect/!d' -e N`
20853 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
20854 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
20855 gcc_cv_ld_ro_rw_mix=read-only
20857 gcc_cv_ld_ro_rw_mix=read-write
20861 rm -f conftest.* conftest[123].*
20863 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
20865 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
20869 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
20871 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
20873 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
20874 if test "${gcc_cv_as_leb128+set}" = set; then :
20875 $as_echo_n "(cached) " >&6
20877 gcc_cv_as_leb128=no
20878 if test $in_tree_gas = yes; then
20879 if test $in_tree_gas_is_elf = yes \
20880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20881 then gcc_cv_as_leb128=yes
20883 elif test x$gcc_cv_as != x; then
20890 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20892 (eval $ac_try) 2>&5
20894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20895 test $ac_status = 0; }; }
20897 # GAS versions before 2.11 do not support uleb128,
20898 # despite appearing to.
20899 # ??? There exists an elf-specific test that will crash
20900 # the assembler. Perhaps it's better to figure out whether
20901 # arbitrary sections are supported and try the test.
20902 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20903 if echo "$as_ver" | grep GNU > /dev/null; then
20904 as_vers=`echo $as_ver | sed -n \
20905 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20906 as_major=`expr "$as_vers" : '\([0-9]*\)'`
20907 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20908 if test $as_major -eq 2 && test $as_minor -lt 11
20910 else gcc_cv_as_leb128=yes
20914 echo "configure: failed program was" >&5
20917 rm -f conftest.o conftest.s
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
20921 $as_echo "$gcc_cv_as_leb128" >&6; }
20922 if test $gcc_cv_as_leb128 = yes; then
20924 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
20928 # Check if we have assembler support for unwind directives.
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
20930 $as_echo_n "checking assembler for cfi directives... " >&6; }
20931 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
20932 $as_echo_n "(cached) " >&6
20934 gcc_cv_as_cfi_directive=no
20935 if test x$gcc_cv_as != x; then
20941 .cfi_escape 1, 2, 3, 4, 5
20942 .cfi_endproc' > conftest.s
20943 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20945 (eval $ac_try) 2>&5
20947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20948 test $ac_status = 0; }; }
20952 # If the linker used on Solaris (like Sun ld) isn't capable of merging
20953 # read-only and read-write sections, we need to make sure that the
20954 # assembler used emits read-write .eh_frame sections.
20955 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
20956 if test "x$gcc_cv_objdump" != x; then
20957 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
20958 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
20959 gcc_cv_as_cfi_directive=no
20961 gcc_cv_as_cfi_directive=yes
20964 # no objdump, err on the side of caution
20965 gcc_cv_as_cfi_directive=no
20968 gcc_cv_as_cfi_directive=yes
20972 gcc_cv_as_cfi_directive=yes
20976 echo "configure: failed program was" >&5
20979 rm -f conftest.o conftest.s
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
20983 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
20985 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
20987 $as_echo_n "checking assembler for working cfi advance... " >&6; }
20988 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
20989 $as_echo_n "(cached) " >&6
20991 gcc_cv_as_cfi_advance_working=no
20992 if test x$gcc_cv_as != x; then
20995 .cfi_adjust_cfa_offset 64
20997 .cfi_adjust_cfa_offset 128
20998 .cfi_endproc' > conftest.s
20999 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21001 (eval $ac_try) 2>&5
21003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21004 test $ac_status = 0; }; }
21007 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21008 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
21009 gcc_cv_as_cfi_advance_working=yes
21013 echo "configure: failed program was" >&5
21016 rm -f conftest.o conftest.s
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21020 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21023 # no readelf, err on the side of caution
21024 gcc_cv_as_cfi_advance_working=no
21027 cat >>confdefs.h <<_ACEOF
21028 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21029 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21034 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21035 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21036 $as_echo_n "(cached) " >&6
21038 gcc_cv_as_cfi_personality_directive=no
21039 if test x$gcc_cv_as != x; then
21042 .cfi_personality 0, symbol
21043 .cfi_endproc' > conftest.s
21044 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21046 (eval $ac_try) 2>&5
21048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21049 test $ac_status = 0; }; }
21051 gcc_cv_as_cfi_personality_directive=yes
21053 echo "configure: failed program was" >&5
21056 rm -f conftest.o conftest.s
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21060 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21063 cat >>confdefs.h <<_ACEOF
21064 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21065 then echo 1; else echo 0; fi`
21069 # GAS versions up to and including 2.11.0 may mis-optimize
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21072 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21073 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21074 $as_echo_n "(cached) " >&6
21076 gcc_cv_as_eh_frame=no
21077 if test $in_tree_gas = yes; then
21078 if test $in_tree_gas_is_elf = yes \
21079 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21080 then gcc_cv_as_eh_frame=yes
21082 elif test x$gcc_cv_as != x; then
21089 .section .eh_frame,"aw",@progbits
21091 .4byte .LECIE1-.LSCIE1
21105 .4byte .LEFDE1-.LASFDE1
21107 .4byte .LASFDE1-__FRAME_BEGIN__
21114 .LEFDE1:' > conftest.s
21115 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21117 (eval $ac_try) 2>&5
21119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21120 test $ac_status = 0; }; }
21122 cat > conftest.lit <<EOF
21123 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21124 0010 01000000 12000000 18000000 00000000 ................
21125 0020 08000000 04080000 0044 .........D
21127 cat > conftest.big <<EOF
21128 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21129 0010 00000001 00000012 00000018 00000000 ................
21130 0020 00000008 04000000 0844 .........D
21132 # If the assembler didn't choke, and we can objdump,
21133 # and we got the correct data, then succeed.
21134 # The text in the here-document typically retains its unix-style line
21135 # endings, while the output of objdump will use host line endings.
21136 # Therefore, use diff -b for the comparisons.
21137 if test x$gcc_cv_objdump != x \
21138 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21139 | tail -3 > conftest.got \
21140 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21141 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21143 gcc_cv_as_eh_frame=yes
21144 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21146 (eval $ac_try) 2>&5
21148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21149 test $ac_status = 0; }; }; then
21150 gcc_cv_as_eh_frame=buggy
21152 # Uh oh, what do we do now?
21153 gcc_cv_as_eh_frame=no
21156 echo "configure: failed program was" >&5
21159 rm -f conftest.o conftest.s
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21163 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21166 if test $gcc_cv_as_eh_frame = buggy; then
21168 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21173 $as_echo_n "checking assembler for section merging support... " >&6; }
21174 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21175 $as_echo_n "(cached) " >&6
21177 gcc_cv_as_shf_merge=no
21178 if test $in_tree_gas = yes; then
21179 if test $in_tree_gas_is_elf = yes \
21180 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21181 then gcc_cv_as_shf_merge=yes
21183 elif test x$gcc_cv_as != x; then
21184 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21185 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21187 (eval $ac_try) 2>&5
21189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21190 test $ac_status = 0; }; }
21192 gcc_cv_as_shf_merge=yes
21194 echo "configure: failed program was" >&5
21197 rm -f conftest.o conftest.s
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21201 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21203 if test $gcc_cv_as_shf_merge = no; then
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21205 $as_echo_n "checking assembler for section merging support... " >&6; }
21206 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21207 $as_echo_n "(cached) " >&6
21209 gcc_cv_as_shf_merge=no
21210 if test $in_tree_gas = yes; then
21211 if test $in_tree_gas_is_elf = yes \
21212 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21213 then gcc_cv_as_shf_merge=yes
21215 elif test x$gcc_cv_as != x; then
21216 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21217 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21219 (eval $ac_try) 2>&5
21221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21222 test $ac_status = 0; }; }
21224 gcc_cv_as_shf_merge=yes
21226 echo "configure: failed program was" >&5
21229 rm -f conftest.o conftest.s
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21233 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21237 cat >>confdefs.h <<_ACEOF
21238 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21243 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21244 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21245 $as_echo_n "(cached) " >&6
21247 gcc_cv_as_comdat_group=no
21248 if test $in_tree_gas = yes; then
21249 if test $in_tree_gas_is_elf = yes \
21250 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21251 then gcc_cv_as_comdat_group=yes
21253 elif test x$gcc_cv_as != x; then
21254 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21255 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21257 (eval $ac_try) 2>&5
21259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21260 test $ac_status = 0; }; }
21262 gcc_cv_as_comdat_group=yes
21264 echo "configure: failed program was" >&5
21267 rm -f conftest.o conftest.s
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21271 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21273 if test $gcc_cv_as_comdat_group = yes; then
21274 gcc_cv_as_comdat_group_percent=no
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21277 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21278 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21279 $as_echo_n "(cached) " >&6
21281 gcc_cv_as_comdat_group_percent=no
21282 if test $in_tree_gas = yes; then
21283 if test $in_tree_gas_is_elf = yes \
21284 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21285 then gcc_cv_as_comdat_group_percent=yes
21287 elif test x$gcc_cv_as != x; then
21288 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21289 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21291 (eval $ac_try) 2>&5
21293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21294 test $ac_status = 0; }; }
21296 gcc_cv_as_comdat_group_percent=yes
21298 echo "configure: failed program was" >&5
21301 rm -f conftest.o conftest.s
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21305 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21308 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21310 if test 0"$ld_date" -lt 20050308; then
21311 if test -n "$ld_date"; then
21312 # If there was date string, but was earlier than 2005-03-08, fail
21314 elif test "$ld_vers_major" -lt 2; then
21316 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21321 # assume linkers other than GNU ld don't support COMDAT group
21324 if test $comdat_group = no; then
21325 gcc_cv_as_comdat_group=no
21326 gcc_cv_as_comdat_group_percent=no
21329 cat >>confdefs.h <<_ACEOF
21330 #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`
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21335 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21336 if test "${gcc_cv_as_discriminator+set}" = set; then :
21337 $as_echo_n "(cached) " >&6
21339 gcc_cv_as_discriminator=no
21340 if test $in_tree_gas = yes; then
21341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21342 then gcc_cv_as_discriminator=yes
21344 elif test x$gcc_cv_as != x; then
21347 .loc 1 1 0 discriminator 1' > conftest.s
21348 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21350 (eval $ac_try) 2>&5
21352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21353 test $ac_status = 0; }; }
21355 gcc_cv_as_discriminator=yes
21357 echo "configure: failed program was" >&5
21360 rm -f conftest.o conftest.s
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21364 $as_echo "$gcc_cv_as_discriminator" >&6; }
21365 if test $gcc_cv_as_discriminator = yes; then
21367 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21371 # Thread-local storage - the check is heavily parameterized.
21379 .section ".tdata","awT",@progbits
21382 ldq $27,__tls_get_addr($29) !literal!1
21383 lda $16,foo($29) !tlsgd!1
21384 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21385 ldq $27,__tls_get_addr($29) !literal!2
21386 lda $16,foo($29) !tlsldm!2
21387 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21388 ldq $1,foo($29) !gotdtprel
21389 ldah $2,foo($29) !dtprelhi
21390 lda $3,foo($2) !dtprello
21391 lda $4,foo($29) !dtprel
21392 ldq $1,foo($29) !gottprel
21393 ldah $2,foo($29) !tprelhi
21394 lda $3,foo($2) !tprello
21395 lda $4,foo($29) !tprel'
21398 tls_as_opt=--fatal-warnings
21400 cris-*-*|crisv32-*-*)
21402 .section ".tdata","awT",@progbits
21409 tls_as_opt=--fatal-warnings
21413 .section ".tdata","awT",@progbits
21416 call #gettlsoff(x)'
21425 .section ".tdata","awT",@progbits
21429 addil LT%foo-$tls_gdidx$,gp
21430 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21433 addil LT%foo-$tls_ldidx$,gp
21435 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21436 addil LR%foo-$tls_dtpoff$,%ret0
21437 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21439 addil LT%foo-$tls_ieoff$,gp
21440 ldw RT%foo-$tls_ieoff$(%r1),%t2
21443 addil LR%foo-$tls_leoff$,%t1
21444 ldo RR%foo-$tls_leoff$(%r1),%t2'
21447 tls_as_opt=--fatal-warnings
21451 .section ".tdata","awT",%progbits
21454 .word foo(gottpoff)
21464 .section ".tdata","awT",@progbits
21468 leal foo@TLSGD(,%ebx,1), %eax
21469 leal foo@TLSLDM(%ebx), %eax
21470 leal foo@DTPOFF(%eax), %edx
21471 movl foo@GOTTPOFF(%ebx), %eax
21472 subl foo@GOTTPOFF(%ebx), %eax
21473 addl foo@GOTNTPOFF(%ebx), %eax
21474 movl foo@INDNTPOFF, %eax
21475 movl $foo@TPOFF, %eax
21476 subl $foo@TPOFF, %eax
21477 leal foo@NTPOFF(%ecx), %eax'
21480 tls_as_opt=--fatal-warnings
21484 .section ".tdata","awT",@progbits
21488 leaq foo@TLSGD(%rip), %rdi
21489 leaq foo@TLSLD(%rip), %rdi
21490 leaq foo@DTPOFF(%rax), %rdx
21491 movq foo@GOTTPOFF(%rip), %rax
21492 movq $foo@TPOFF, %rax'
21495 tls_as_opt=--fatal-warnings
21499 .section ".tdata","awT",@progbits
21502 addl r16 = @ltoff(@dtpmod(foo#)), gp
21503 addl r17 = @ltoff(@dtprel(foo#)), gp
21504 addl r18 = @ltoff(@tprel(foo#)), gp
21505 addl r19 = @dtprel(foo#), gp
21506 adds r21 = @dtprel(foo#), r13
21507 movl r23 = @dtprel(foo#)
21508 addl r20 = @tprel(foo#), gp
21509 adds r22 = @tprel(foo#), r13
21510 movl r24 = @tprel(foo#)'
21513 tls_as_opt=--fatal-warnings
21517 .section .tdata,"awT",@progbits
21521 addiu $4, $28, %tlsgd(x)
21522 addiu $4, $28, %tlsldm(x)
21523 lui $4, %dtprel_hi(x)
21524 addiu $4, $4, %dtprel_lo(x)
21525 lw $4, %gottprel(x)($28)
21526 lui $4, %tprel_hi(x)
21527 addiu $4, $4, %tprel_lo(x)'
21530 tls_as_opt='-32 --fatal-warnings'
21534 .section .tdata,"awT",@progbits
21539 move.l x@TLSGD(%a5),%a0
21540 move.l x@TLSLDM(%a5),%a0
21541 move.l x@TLSLDO(%a5),%a0
21542 move.l x@TLSIE(%a5),%a0
21543 move.l x@TLSLE(%a5),%a0'
21546 tls_as_opt='--fatal-warnings'
21550 .section ".tdata","awT",@progbits
21558 addi 3,31,ld0@got@tlsgd
21560 addi 3,31,x1@got@tlsld
21563 addis 9,3,x2@dtprel@ha
21564 addi 9,9,x2@dtprel@l
21565 lwz 9,x3@got@tprel(31)
21568 addis 9,2,x2@tprel@ha
21569 addi 9,9,x2@tprel@l'
21572 tls_as_opt="-a32 --fatal-warnings"
21576 .section ".tdata","awT",@progbits
21584 addi 3,2,ld0@got@tlsgd
21590 addi 3,2,x1@got@tlsld
21596 addis 9,3,x2@dtprel@ha
21597 addi 9,9,x2@dtprel@l
21600 ld 9,x3@got@dtprel(2)
21606 tls_as_opt="-a64 --fatal-warnings"
21610 .section ".tdata","awT",@progbits
21617 .long foo@GOTNTPOFF
21618 .long foo@INDNTPOFF
21619 l %r1,foo@GOTNTPOFF(%r12)
21620 l %r1,0(%r1):tls_load:foo
21621 bas %r14,0(%r1,%r13):tls_gdcall:foo
21622 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21625 tls_as_opt="-m31 --fatal-warnings"
21629 .section ".tdata","awT",@progbits
21636 .quad foo@GOTNTPOFF
21637 lg %r1,foo@GOTNTPOFF(%r12)
21638 larl %r1,foo@INDNTPOFF
21639 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21640 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21643 tls_as_opt="-m64 -Aesame --fatal-warnings"
21645 sh-*-* | sh[34]-*-*)
21647 .section ".tdata","awT",@progbits
21657 tls_as_opt=--fatal-warnings
21661 sparc*-sun-solaris2.[56789]*)
21662 # TLS was introduced in the Solaris 9 4/04 release but
21663 # we do not enable it by default on Solaris 9 either.
21664 if test "x$enable_tls" = xyes ; then
21670 sparc*-sun-solaris2.*)
21677 if test x$on_solaris = xyes && test x$gas_flag = xno; then
21679 .section ".tdata",#alloc,#write,#tls
21682 sethi %tgd_hi22(foo), %o0
21683 add %o0, %tgd_lo10(foo), %o1
21684 add %l7, %o1, %o0, %tgd_add(foo)
21685 call __tls_get_addr, %tgd_call(foo)
21686 sethi %tldm_hi22(foo), %l1
21687 add %l1, %tldm_lo10(foo), %l2
21688 add %l7, %l2, %o0, %tldm_add(foo)
21689 call __tls_get_addr, %tldm_call(foo)
21690 sethi %tldo_hix22(foo), %l3
21691 xor %l3, %tldo_lox10(foo), %l4
21692 add %o0, %l4, %l5, %tldo_add(foo)
21693 sethi %tie_hi22(foo), %o3
21694 add %o3, %tie_lo10(foo), %o3
21695 ld [%l7 + %o3], %o2, %tie_ld(foo)
21696 add %g7, %o2, %o4, %tie_add(foo)
21697 sethi %tle_hix22(foo), %l1
21698 xor %l1, %tle_lox10(foo), %o5
21699 ld [%g7 + %o5], %o1'
21704 .section ".tdata","awT",@progbits
21707 sethi %tgd_hi22(foo), %o0
21708 add %o0, %tgd_lo10(foo), %o1
21709 add %l7, %o1, %o0, %tgd_add(foo)
21710 call __tls_get_addr, %tgd_call(foo)
21711 sethi %tldm_hi22(foo), %l1
21712 add %l1, %tldm_lo10(foo), %l2
21713 add %l7, %l2, %o0, %tldm_add(foo)
21714 call __tls_get_addr, %tldm_call(foo)
21715 sethi %tldo_hix22(foo), %l3
21716 xor %l3, %tldo_lox10(foo), %l4
21717 add %o0, %l4, %l5, %tldo_add(foo)
21718 sethi %tie_hi22(foo), %o3
21719 add %o3, %tie_lo10(foo), %o3
21720 ld [%l7 + %o3], %o2, %tie_ld(foo)
21721 add %g7, %o2, %o4, %tie_add(foo)
21722 sethi %tle_hix22(foo), %l1
21723 xor %l1, %tle_lox10(foo), %o5
21724 ld [%g7 + %o5], %o1'
21727 tls_as_opt="-32 --fatal-warnings"
21732 .section ".tdata","awT",@progbits
21735 movi a8, foo@TLSFUNC
21736 movi a10, foo@TLSARG
21737 callx8.tls a8, foo@TLSCALL'
21743 if test "x$enable_tls" = xno ; then
21744 : # TLS explicitly disabled.
21745 elif test "x$enable_tls" = xyes ; then
21746 set_have_as_tls=yes # TLS explicitly enabled.
21747 elif test -z "$tls_first_major"; then
21748 : # If we don't have a check, assume no support.
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
21751 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
21752 if test "${gcc_cv_as_tls+set}" = set; then :
21753 $as_echo_n "(cached) " >&6
21756 if test $in_tree_gas = yes; then
21757 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21758 then gcc_cv_as_tls=yes
21760 elif test x$gcc_cv_as != x; then
21761 echo "$conftest_s" > conftest.s
21762 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21764 (eval $ac_try) 2>&5
21766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21767 test $ac_status = 0; }; }
21771 echo "configure: failed program was" >&5
21774 rm -f conftest.o conftest.s
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
21778 $as_echo "$gcc_cv_as_tls" >&6; }
21779 if test $gcc_cv_as_tls = yes; then
21780 set_have_as_tls=yes
21783 if test $set_have_as_tls = yes ; then
21785 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
21789 # Target-specific assembler checks.
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
21792 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
21793 gcc_cv_ld_static_dynamic=no
21794 if test $in_tree_ld = yes ; then
21795 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
21796 gcc_cv_ld_static_dynamic=yes
21798 elif test x$gcc_cv_ld != x; then
21799 # Check if linker supports -Bstatic/-Bdynamic option
21800 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21801 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21802 gcc_cv_ld_static_dynamic=yes
21805 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21807 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
21811 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
21813 if test x"$demangler_in_ld" = xyes; then
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
21815 $as_echo_n "checking linker --demangle support... " >&6; }
21816 gcc_cv_ld_demangle=no
21817 if test $in_tree_ld = yes; then
21818 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 \
21819 gcc_cv_ld_demangle=yes
21821 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21822 # Check if the GNU linker supports --demangle option
21823 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21824 gcc_cv_ld_demangle=yes
21827 if test x"$gcc_cv_ld_demangle" = xyes; then
21829 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
21833 $as_echo "$gcc_cv_ld_demangle" >&6; }
21837 # All TARGET_ABI_OSF targets.
21838 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
21840 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
21841 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
21842 $as_echo_n "(cached) " >&6
21844 gcc_cv_as_alpha_explicit_relocs=no
21845 if test $in_tree_gas = yes; then
21846 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21847 then gcc_cv_as_alpha_explicit_relocs=yes
21849 elif test x$gcc_cv_as != x; then
21850 echo ' .set nomacro
21852 extbl $3, $2, $3 !lituse_bytoff!1
21853 ldq $2, a($29) !literal!1
21854 ldq $4, b($29) !literal!2
21855 ldq_u $3, 0($2) !lituse_base!1
21856 ldq $27, f($29) !literal!5
21857 jsr $26, ($27), f !lituse_jsr!5
21858 ldah $29, 0($26) !gpdisp!3
21859 lda $0, c($29) !gprel
21860 ldah $1, d($29) !gprelhigh
21861 lda $1, d($1) !gprellow
21862 lda $29, 0($29) !gpdisp!3' > conftest.s
21863 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21865 (eval $ac_try) 2>&5
21867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21868 test $ac_status = 0; }; }
21870 gcc_cv_as_alpha_explicit_relocs=yes
21872 echo "configure: failed program was" >&5
21875 rm -f conftest.o conftest.s
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21879 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
21880 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21882 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
21886 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
21887 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
21888 $as_echo_n "(cached) " >&6
21890 gcc_cv_as_alpha_jsrdirect_relocs=no
21891 if test $in_tree_gas = yes; then
21892 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21893 then gcc_cv_as_alpha_jsrdirect_relocs=yes
21895 elif test x$gcc_cv_as != x; then
21896 echo ' .set nomacro
21898 ldq $27, a($29) !literal!1
21899 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21900 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21902 (eval $ac_try) 2>&5
21904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21905 test $ac_status = 0; }; }
21907 gcc_cv_as_alpha_jsrdirect_relocs=yes
21909 echo "configure: failed program was" >&5
21912 rm -f conftest.o conftest.s
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21916 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
21917 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21919 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
21926 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
21927 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
21928 $as_echo_n "(cached) " >&6
21930 gcc_cv_as_cris_no_mul_bug=no
21931 if test $in_tree_gas = yes; then
21932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21933 then gcc_cv_as_cris_no_mul_bug=yes
21935 elif test x$gcc_cv_as != x; then
21936 echo '.text' > conftest.s
21937 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21939 (eval $ac_try) 2>&5
21941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21942 test $ac_status = 0; }; }
21944 gcc_cv_as_cris_no_mul_bug=yes
21946 echo "configure: failed program was" >&5
21949 rm -f conftest.o conftest.s
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
21953 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
21954 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21956 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
21963 $as_echo_n "checking assembler for .register... " >&6; }
21964 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
21965 $as_echo_n "(cached) " >&6
21967 gcc_cv_as_sparc_register_op=no
21968 if test x$gcc_cv_as != x; then
21969 echo '.register %g2, #scratch' > conftest.s
21970 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21972 (eval $ac_try) 2>&5
21974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21975 test $ac_status = 0; }; }
21977 gcc_cv_as_sparc_register_op=yes
21979 echo "configure: failed program was" >&5
21982 rm -f conftest.o conftest.s
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
21986 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
21987 if test $gcc_cv_as_sparc_register_op = yes; then
21989 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
21994 $as_echo_n "checking assembler for -relax option... " >&6; }
21995 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
21996 $as_echo_n "(cached) " >&6
21998 gcc_cv_as_sparc_relax=no
21999 if test x$gcc_cv_as != x; then
22000 echo '.text' > conftest.s
22001 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22003 (eval $ac_try) 2>&5
22005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22006 test $ac_status = 0; }; }
22008 gcc_cv_as_sparc_relax=yes
22010 echo "configure: failed program was" >&5
22013 rm -f conftest.o conftest.s
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22017 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22018 if test $gcc_cv_as_sparc_relax = yes; then
22020 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22025 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22026 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22027 $as_echo_n "(cached) " >&6
22029 gcc_cv_as_sparc_ua_pcrel=no
22030 if test x$gcc_cv_as != x; then
22037 .uaword %r_disp32(foo)' > conftest.s
22038 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22040 (eval $ac_try) 2>&5
22042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22043 test $ac_status = 0; }; }
22045 if test x$gcc_cv_ld != x \
22046 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22047 gcc_cv_as_sparc_ua_pcrel=yes
22051 echo "configure: failed program was" >&5
22054 rm -f conftest.o conftest.s
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22058 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22059 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22061 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22065 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22066 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22069 gcc_cv_as_sparc_ua_pcrel_hidden=no
22070 if test x$gcc_cv_as != x; then
22074 .uaword %r_disp32(foo)
22075 .byte 0x32, 0x33, 0x34
22079 .skip 4' > conftest.s
22080 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22082 (eval $ac_try) 2>&5
22084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22085 test $ac_status = 0; }; }
22087 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22088 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22089 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22090 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22091 if $gcc_cv_objdump -R conftest 2> /dev/null \
22092 | grep 'DISP32' > /dev/null 2>&1; then
22095 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22100 echo "configure: failed program was" >&5
22103 rm -f conftest.o conftest.s
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22107 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22108 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22110 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22114 fi # unaligned pcrel relocs
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22117 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22118 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22119 $as_echo_n "(cached) " >&6
22121 gcc_cv_as_sparc_offsetable_lo10=no
22122 if test x$gcc_cv_as != x; then
22124 or %g1, %lo(ab) + 12, %g1
22125 or %g1, %lo(ab + 12), %g1' > conftest.s
22126 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22128 (eval $ac_try) 2>&5
22130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22131 test $ac_status = 0; }; }
22133 if test x$gcc_cv_objdump != x \
22134 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22135 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22136 gcc_cv_as_sparc_offsetable_lo10=yes
22139 echo "configure: failed program was" >&5
22142 rm -f conftest.o conftest.s
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22146 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22147 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22149 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22154 i[34567]86-*-* | x86_64-*-*)
22156 cygwin* | pe | mingw32*)
22157 # Recent binutils allows the three-operand form of ".comm" on PE. This
22158 # definition is used unconditionally to initialise the default state of
22159 # the target option variable that governs usage of the feature.
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22161 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22162 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22163 $as_echo_n "(cached) " >&6
22165 gcc_cv_as_comm_has_align=no
22166 if test $in_tree_gas = yes; then
22167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22168 then gcc_cv_as_comm_has_align=yes
22170 elif test x$gcc_cv_as != x; then
22171 echo '.comm foo,1,32' > conftest.s
22172 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22174 (eval $ac_try) 2>&5
22176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22177 test $ac_status = 0; }; }
22179 gcc_cv_as_comm_has_align=yes
22181 echo "configure: failed program was" >&5
22184 rm -f conftest.o conftest.s
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22188 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22191 cat >>confdefs.h <<_ACEOF
22192 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22195 # Used for DWARF 2 in PE
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22197 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22198 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22199 $as_echo_n "(cached) " >&6
22201 gcc_cv_as_ix86_pe_secrel32=no
22202 if test $in_tree_gas = yes; then
22203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22204 then gcc_cv_as_ix86_pe_secrel32=yes
22206 elif test x$gcc_cv_as != x; then
22210 .secrel32 foo' > conftest.s
22211 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22213 (eval $ac_try) 2>&5
22215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22216 test $ac_status = 0; }; }
22218 if test x$gcc_cv_ld != x \
22219 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22220 gcc_cv_as_ix86_pe_secrel32=yes
22224 echo "configure: failed program was" >&5
22227 rm -f conftest.o conftest.s
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22231 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22232 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22234 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22241 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22242 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22243 $as_echo_n "(cached) " >&6
22245 gcc_cv_as_ix86_filds=no
22246 if test x$gcc_cv_as != x; then
22247 echo 'filds mem; fists mem' > conftest.s
22248 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22250 (eval $ac_try) 2>&5
22252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22253 test $ac_status = 0; }; }
22255 gcc_cv_as_ix86_filds=yes
22257 echo "configure: failed program was" >&5
22260 rm -f conftest.o conftest.s
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22264 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22265 if test $gcc_cv_as_ix86_filds = yes; then
22267 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22272 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22273 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22274 $as_echo_n "(cached) " >&6
22276 gcc_cv_as_ix86_fildq=no
22277 if test x$gcc_cv_as != x; then
22278 echo 'fildq mem; fistpq mem' > conftest.s
22279 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22281 (eval $ac_try) 2>&5
22283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22284 test $ac_status = 0; }; }
22286 gcc_cv_as_ix86_fildq=yes
22288 echo "configure: failed program was" >&5
22291 rm -f conftest.o conftest.s
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22295 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22296 if test $gcc_cv_as_ix86_fildq = yes; then
22298 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22303 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22304 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22305 $as_echo_n "(cached) " >&6
22307 gcc_cv_as_ix86_cmov_sun_syntax=no
22308 if test x$gcc_cv_as != x; then
22309 echo 'cmovl.l %edx, %eax' > conftest.s
22310 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22312 (eval $ac_try) 2>&5
22314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22315 test $ac_status = 0; }; }
22317 gcc_cv_as_ix86_cmov_sun_syntax=yes
22319 echo "configure: failed program was" >&5
22322 rm -f conftest.o conftest.s
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22326 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22327 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22329 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22334 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22335 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22336 $as_echo_n "(cached) " >&6
22338 gcc_cv_as_ix86_ffreep=no
22339 if test x$gcc_cv_as != x; then
22340 echo 'ffreep %st(1)' > conftest.s
22341 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22343 (eval $ac_try) 2>&5
22345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22346 test $ac_status = 0; }; }
22348 gcc_cv_as_ix86_ffreep=yes
22350 echo "configure: failed program was" >&5
22353 rm -f conftest.o conftest.s
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22357 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22358 if test $gcc_cv_as_ix86_ffreep = yes; then
22360 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22365 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22366 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22369 gcc_cv_as_ix86_sahf=no
22370 if test x$gcc_cv_as != x; then
22371 echo 'sahf' > conftest.s
22372 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22374 (eval $ac_try) 2>&5
22376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22377 test $ac_status = 0; }; }
22379 gcc_cv_as_ix86_sahf=yes
22381 echo "configure: failed program was" >&5
22384 rm -f conftest.o conftest.s
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22388 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22389 if test $gcc_cv_as_ix86_sahf = yes; then
22391 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22396 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22397 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22398 $as_echo_n "(cached) " >&6
22400 gcc_cv_as_ix86_diff_sect_delta=no
22401 if test x$gcc_cv_as != x; then
22402 echo '.section .rodata
22408 .L2: nop' > 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_ix86_diff_sect_delta=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_ix86_diff_sect_delta" >&5
22425 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22426 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22428 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22432 # This one is used unconditionally by i386.[ch]; it is to be defined
22433 # to 1 if the feature is present, 0 otherwise.
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22435 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22436 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22437 $as_echo_n "(cached) " >&6
22439 gcc_cv_as_ix86_gotoff_in_data=no
22440 if test $in_tree_gas = yes; then
22441 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22442 then gcc_cv_as_ix86_gotoff_in_data=yes
22444 elif test x$gcc_cv_as != x; then
22449 .long .L0@GOTOFF' > conftest.s
22450 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22452 (eval $ac_try) 2>&5
22454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22455 test $ac_status = 0; }; }
22457 gcc_cv_as_ix86_gotoff_in_data=yes
22459 echo "configure: failed program was" >&5
22462 rm -f conftest.o conftest.s
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22466 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
22469 cat >>confdefs.h <<_ACEOF
22470 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
22477 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
22478 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
22479 $as_echo_n "(cached) " >&6
22481 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22482 if test $in_tree_gas = yes; then
22483 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22484 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22486 elif test x$gcc_cv_as != x; then
22488 addl r15 = @ltoffx(x#), gp
22490 ld8.mov r16 = [r15], x#' > conftest.s
22491 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22493 (eval $ac_try) 2>&5
22495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22496 test $ac_status = 0; }; }
22498 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22500 echo "configure: failed program was" >&5
22503 rm -f conftest.o conftest.s
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22507 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
22508 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22510 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
22518 *-*-aix*) conftest_s=' .machine "pwr5"
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
22523 $as_echo_n "checking assembler for .machine directive support... " >&6; }
22524 if test "${gcc_cv_as_machine_directive+set}" = set; then :
22525 $as_echo_n "(cached) " >&6
22527 gcc_cv_as_machine_directive=no
22528 if test x$gcc_cv_as != x; then
22529 echo ' .machine ppc7400' > conftest.s
22530 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22532 (eval $ac_try) 2>&5
22534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22535 test $ac_status = 0; }; }
22537 gcc_cv_as_machine_directive=yes
22539 echo "configure: failed program was" >&5
22542 rm -f conftest.o conftest.s
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
22546 $as_echo "$gcc_cv_as_machine_directive" >&6; }
22548 if test x$gcc_cv_as_machine_directive != xyes; then
22549 echo "*** This target requires an assembler supporting \".machine\"" >&2
22550 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22551 test x$build = x$target && exit 1
22555 *) conftest_s=' .machine power4
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
22561 $as_echo_n "checking assembler for mfcr field support... " >&6; }
22562 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
22563 $as_echo_n "(cached) " >&6
22565 gcc_cv_as_powerpc_mfcrf=no
22566 if test $in_tree_gas = yes; then
22567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22568 then gcc_cv_as_powerpc_mfcrf=yes
22570 elif test x$gcc_cv_as != x; then
22571 echo "$conftest_s" > conftest.s
22572 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22574 (eval $ac_try) 2>&5
22576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577 test $ac_status = 0; }; }
22579 gcc_cv_as_powerpc_mfcrf=yes
22581 echo "configure: failed program was" >&5
22584 rm -f conftest.o conftest.s
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
22588 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
22589 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22591 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
22596 *-*-aix*) conftest_s=' .machine "pwr5"
22599 *) conftest_s=' .machine power5
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
22605 $as_echo_n "checking assembler for popcntb support... " >&6; }
22606 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
22607 $as_echo_n "(cached) " >&6
22609 gcc_cv_as_powerpc_popcntb=no
22610 if test $in_tree_gas = yes; then
22611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22612 then gcc_cv_as_powerpc_popcntb=yes
22614 elif test x$gcc_cv_as != x; then
22615 echo "$conftest_s" > conftest.s
22616 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22618 (eval $ac_try) 2>&5
22620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22621 test $ac_status = 0; }; }
22623 gcc_cv_as_powerpc_popcntb=yes
22625 echo "configure: failed program was" >&5
22628 rm -f conftest.o conftest.s
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
22632 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
22633 if test $gcc_cv_as_powerpc_popcntb = yes; then
22635 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
22640 *-*-aix*) conftest_s=' .machine "pwr5x"
22643 *) conftest_s=' .machine power5
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
22649 $as_echo_n "checking assembler for fp round support... " >&6; }
22650 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
22651 $as_echo_n "(cached) " >&6
22653 gcc_cv_as_powerpc_fprnd=no
22654 if test $in_tree_gas = yes; then
22655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22656 then gcc_cv_as_powerpc_fprnd=yes
22658 elif test x$gcc_cv_as != x; then
22659 echo "$conftest_s" > conftest.s
22660 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22662 (eval $ac_try) 2>&5
22664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22665 test $ac_status = 0; }; }
22667 gcc_cv_as_powerpc_fprnd=yes
22669 echo "configure: failed program was" >&5
22672 rm -f conftest.o conftest.s
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
22676 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
22677 if test $gcc_cv_as_powerpc_fprnd = yes; then
22679 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
22684 *-*-aix*) conftest_s=' .machine "pwr6"
22687 *) conftest_s=' .machine power6
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
22693 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
22694 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
22695 $as_echo_n "(cached) " >&6
22697 gcc_cv_as_powerpc_mfpgpr=no
22698 if test $in_tree_gas = yes; then
22699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22700 then gcc_cv_as_powerpc_mfpgpr=yes
22702 elif test x$gcc_cv_as != x; then
22703 echo "$conftest_s" > conftest.s
22704 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22706 (eval $ac_try) 2>&5
22708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22709 test $ac_status = 0; }; }
22711 gcc_cv_as_powerpc_mfpgpr=yes
22713 echo "configure: failed program was" >&5
22716 rm -f conftest.o conftest.s
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22720 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
22721 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22723 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
22728 *-*-aix*) conftest_s=' .csect .text[PR]
22730 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22734 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22735 *) conftest_s=' .text
22737 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
22741 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
22742 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
22743 $as_echo_n "(cached) " >&6
22745 gcc_cv_as_powerpc_rel16=no
22746 if test $in_tree_gas = yes; then
22747 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22748 then gcc_cv_as_powerpc_rel16=yes
22750 elif test x$gcc_cv_as != x; then
22751 echo "$conftest_s" > conftest.s
22752 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22754 (eval $ac_try) 2>&5
22756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22757 test $ac_status = 0; }; }
22759 gcc_cv_as_powerpc_rel16=yes
22761 echo "configure: failed program was" >&5
22764 rm -f conftest.o conftest.s
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
22768 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
22769 if test $gcc_cv_as_powerpc_rel16 = yes; then
22771 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
22776 *-*-aix*) conftest_s=' .machine "pwr6"
22779 *) conftest_s=' .machine power6
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
22785 $as_echo_n "checking assembler for compare bytes support... " >&6; }
22786 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
22787 $as_echo_n "(cached) " >&6
22789 gcc_cv_as_powerpc_cmpb=no
22790 if test $in_tree_gas = yes; then
22791 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22792 then gcc_cv_as_powerpc_cmpb=yes
22794 elif test x$gcc_cv_as != x; then
22795 echo "$conftest_s" > conftest.s
22796 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22798 (eval $ac_try) 2>&5
22800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22801 test $ac_status = 0; }; }
22803 gcc_cv_as_powerpc_cmpb=yes
22805 echo "configure: failed program was" >&5
22808 rm -f conftest.o conftest.s
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
22812 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
22813 if test $gcc_cv_as_powerpc_cmpb = yes; then
22815 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
22820 *-*-aix*) conftest_s=' .machine "pwr6"
22823 *) conftest_s=' .machine power6
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
22829 $as_echo_n "checking assembler for decimal float support... " >&6; }
22830 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
22831 $as_echo_n "(cached) " >&6
22833 gcc_cv_as_powerpc_dfp=no
22834 if test $in_tree_gas = yes; then
22835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22836 then gcc_cv_as_powerpc_dfp=yes
22838 elif test x$gcc_cv_as != x; then
22839 echo "$conftest_s" > conftest.s
22840 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22842 (eval $ac_try) 2>&5
22844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22845 test $ac_status = 0; }; }
22847 gcc_cv_as_powerpc_dfp=yes
22849 echo "configure: failed program was" >&5
22852 rm -f conftest.o conftest.s
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
22856 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
22857 if test $gcc_cv_as_powerpc_dfp = yes; then
22859 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
22864 *-*-aix*) conftest_s=' .machine "pwr7"
22867 *) conftest_s=' .machine power7
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
22873 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
22874 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
22875 $as_echo_n "(cached) " >&6
22877 gcc_cv_as_powerpc_vsx=no
22878 if test $in_tree_gas = yes; then
22879 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22880 then gcc_cv_as_powerpc_vsx=yes
22882 elif test x$gcc_cv_as != x; then
22883 echo "$conftest_s" > conftest.s
22884 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22886 (eval $ac_try) 2>&5
22888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22889 test $ac_status = 0; }; }
22891 gcc_cv_as_powerpc_vsx=yes
22893 echo "configure: failed program was" >&5
22896 rm -f conftest.o conftest.s
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
22900 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
22901 if test $gcc_cv_as_powerpc_vsx = yes; then
22903 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
22908 *-*-aix*) conftest_s=' .machine "pwr7"
22911 *) conftest_s=' .machine power7
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
22917 $as_echo_n "checking assembler for popcntd support... " >&6; }
22918 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
22919 $as_echo_n "(cached) " >&6
22921 gcc_cv_as_powerpc_popcntd=no
22922 if test $in_tree_gas = yes; then
22923 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22924 then gcc_cv_as_powerpc_popcntd=yes
22926 elif test x$gcc_cv_as != x; then
22927 echo "$conftest_s" > conftest.s
22928 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22930 (eval $ac_try) 2>&5
22932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22933 test $ac_status = 0; }; }
22935 gcc_cv_as_powerpc_popcntd=yes
22937 echo "configure: failed program was" >&5
22940 rm -f conftest.o conftest.s
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
22944 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
22945 if test $gcc_cv_as_powerpc_popcntd = yes; then
22947 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
22952 *-*-aix*) conftest_s=' .csect .text[PR]
22954 *) conftest_s=' .text
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
22959 $as_echo_n "checking assembler for lwsync support... " >&6; }
22960 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
22961 $as_echo_n "(cached) " >&6
22963 gcc_cv_as_powerpc_lwsync=no
22964 if test $in_tree_gas = yes; then
22965 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22966 then gcc_cv_as_powerpc_lwsync=yes
22968 elif test x$gcc_cv_as != x; then
22969 echo "$conftest_s" > conftest.s
22970 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22972 (eval $ac_try) 2>&5
22974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22975 test $ac_status = 0; }; }
22977 gcc_cv_as_powerpc_lwsync=yes
22979 echo "configure: failed program was" >&5
22982 rm -f conftest.o conftest.s
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
22986 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
22987 if test $gcc_cv_as_powerpc_lwsync = yes; then
22989 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
22994 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
22995 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
22996 $as_echo_n "(cached) " >&6
22998 gcc_cv_as_powerpc_gnu_attribute=no
22999 if test $in_tree_gas = yes; then
23000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23001 then gcc_cv_as_powerpc_gnu_attribute=yes
23003 elif test x$gcc_cv_as != x; then
23004 echo '.gnu_attribute 4,1' > conftest.s
23005 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23007 (eval $ac_try) 2>&5
23009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23010 test $ac_status = 0; }; }
23012 gcc_cv_as_powerpc_gnu_attribute=yes
23014 echo "configure: failed program was" >&5
23017 rm -f conftest.o conftest.s
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23021 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23022 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23024 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23029 $as_echo_n "checking assembler for tls marker support... " >&6; }
23030 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23031 $as_echo_n "(cached) " >&6
23033 gcc_cv_as_powerpc_tls_markers=no
23034 if test $in_tree_gas = yes; then
23035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23036 then gcc_cv_as_powerpc_tls_markers=yes
23038 elif test x$gcc_cv_as != x; then
23039 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23040 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23042 (eval $ac_try) 2>&5
23044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23045 test $ac_status = 0; }; }
23047 gcc_cv_as_powerpc_tls_markers=yes
23049 echo "configure: failed program was" >&5
23052 rm -f conftest.o conftest.s
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23056 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23057 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23059 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23066 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23067 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23068 $as_echo_n "(cached) " >&6
23070 gcc_cv_as_mips_explicit_relocs=no
23071 if test $in_tree_gas = yes; then
23072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23073 then gcc_cv_as_mips_explicit_relocs=yes
23075 elif test x$gcc_cv_as != x; then
23076 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23077 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23079 (eval $ac_try) 2>&5
23081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23082 test $ac_status = 0; }; }
23084 gcc_cv_as_mips_explicit_relocs=yes
23086 echo "configure: failed program was" >&5
23089 rm -f conftest.o conftest.s
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23093 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23094 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23095 if test x$target_cpu_default = x
23096 then target_cpu_default=MASK_EXPLICIT_RELOCS
23097 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23101 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23102 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23103 $as_echo_n "(cached) " >&6
23105 gcc_cv_as_mips_no_shared=no
23106 if test $in_tree_gas = yes; then
23107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23108 then gcc_cv_as_mips_no_shared=yes
23110 elif test x$gcc_cv_as != x; then
23111 echo 'nop' > conftest.s
23112 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23114 (eval $ac_try) 2>&5
23116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23117 test $ac_status = 0; }; }
23119 gcc_cv_as_mips_no_shared=yes
23121 echo "configure: failed program was" >&5
23124 rm -f conftest.o conftest.s
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23128 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23129 if test $gcc_cv_as_mips_no_shared = yes; then
23131 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23136 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23137 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23138 $as_echo_n "(cached) " >&6
23140 gcc_cv_as_mips_gnu_attribute=no
23141 if test $in_tree_gas = yes; then
23142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23143 then gcc_cv_as_mips_gnu_attribute=yes
23145 elif test x$gcc_cv_as != x; then
23146 echo '.gnu_attribute 4,1' > conftest.s
23147 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23149 (eval $ac_try) 2>&5
23151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23152 test $ac_status = 0; }; }
23154 gcc_cv_as_mips_gnu_attribute=yes
23156 echo "configure: failed program was" >&5
23159 rm -f conftest.o conftest.s
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23163 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23164 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23166 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23171 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23172 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23173 $as_echo_n "(cached) " >&6
23175 gcc_cv_as_mips_dtprelword=no
23176 if test $in_tree_gas = yes; then
23177 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23178 then gcc_cv_as_mips_dtprelword=yes
23180 elif test x$gcc_cv_as != x; then
23181 echo '.section .tdata,"awT",@progbits
23185 .dtprelword x+0x8000' > conftest.s
23186 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23188 (eval $ac_try) 2>&5
23190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23191 test $ac_status = 0; }; }
23193 gcc_cv_as_mips_dtprelword=yes
23195 echo "configure: failed program was" >&5
23198 rm -f conftest.o conftest.s
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23202 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23203 if test $gcc_cv_as_mips_dtprelword = yes; then
23205 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23211 # Mips and HP-UX need the GNU assembler.
23212 # Linux on IA64 might be able to use the Intel assembler.
23215 mips*-*-* | *-*-hpux* )
23216 if test x$gas_flag = xyes \
23217 || test x"$host" != x"$build" \
23218 || test ! -x "$gcc_cv_as" \
23219 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23222 echo "*** This configuration requires the GNU assembler" >&2
23228 # ??? Not all targets support dwarf2 debug_line, even within a version
23229 # of gas. Moreover, we need to emit a valid instruction to trigger any
23230 # info to the output file. So, as supported targets are added to gas 2.11,
23231 # add some instruction here to (also) show we expect this might work.
23232 # ??? Once 2.11 is released, probably need to add first known working
23233 # version to the per-target configury.
23235 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23236 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23237 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23238 | spu-*-* | fido*-*-* | m32c-*-*)
23241 ia64*-*-* | s390*-*-*)
23248 if test x"$insn" != x; then
23250 .file 1 \"conftest.s\"
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23254 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23255 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23256 $as_echo_n "(cached) " >&6
23258 gcc_cv_as_dwarf2_debug_line=no
23259 if test $in_tree_gas = yes; then
23260 if test $in_tree_gas_is_elf = yes \
23261 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23262 then gcc_cv_as_dwarf2_debug_line=yes
23264 elif test x$gcc_cv_as != x; then
23265 echo "$conftest_s" > conftest.s
23266 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268 (eval $ac_try) 2>&5
23270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271 test $ac_status = 0; }; }
23273 if test x$gcc_cv_objdump != x \
23274 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23275 | grep debug_line > /dev/null 2>&1; then
23276 gcc_cv_as_dwarf2_debug_line=yes
23279 echo "configure: failed program was" >&5
23282 rm -f conftest.o conftest.s
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23286 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23289 # The .debug_line file table must be in the exact order that
23290 # we specified the files, since these indices are also used
23291 # by DW_AT_decl_file. Approximate this test by testing if
23292 # the assembler bitches if the same index is assigned twice.
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23294 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23295 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23296 $as_echo_n "(cached) " >&6
23298 gcc_cv_as_dwarf2_file_buggy=no
23299 if test x$gcc_cv_as != x; then
23300 echo ' .file 1 "foo.s"
23301 .file 1 "bar.s"' > conftest.s
23302 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23304 (eval $ac_try) 2>&5
23306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23307 test $ac_status = 0; }; }
23309 gcc_cv_as_dwarf2_file_buggy=yes
23311 echo "configure: failed program was" >&5
23314 rm -f conftest.o conftest.s
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23318 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
23321 if test $gcc_cv_as_dwarf2_debug_line = yes \
23322 && test $gcc_cv_as_dwarf2_file_buggy = no; then
23324 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
23329 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
23330 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
23331 $as_echo_n "(cached) " >&6
23333 gcc_cv_as_gdwarf2_flag=no
23334 if test $in_tree_gas = yes; then
23335 if test $in_tree_gas_is_elf = yes \
23336 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23337 then gcc_cv_as_gdwarf2_flag=yes
23339 elif test x$gcc_cv_as != x; then
23340 echo "$insn" > conftest.s
23341 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23343 (eval $ac_try) 2>&5
23345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23346 test $ac_status = 0; }; }
23348 gcc_cv_as_gdwarf2_flag=yes
23350 echo "configure: failed program was" >&5
23353 rm -f conftest.o conftest.s
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
23357 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
23358 if test $gcc_cv_as_gdwarf2_flag = yes; then
23360 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
23365 $as_echo_n "checking assembler for --gstabs option... " >&6; }
23366 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
23367 $as_echo_n "(cached) " >&6
23369 gcc_cv_as_gstabs_flag=no
23370 if test $in_tree_gas = yes; then
23371 if test $in_tree_gas_is_elf = yes \
23372 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23373 then gcc_cv_as_gstabs_flag=yes
23375 elif test x$gcc_cv_as != x; then
23376 echo "$insn" > conftest.s
23377 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23379 (eval $ac_try) 2>&5
23381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23382 test $ac_status = 0; }; }
23384 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23385 # and warns about it, but still exits successfully. So check for
23387 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23389 (eval $ac_try) 2>&5
23391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23392 test $ac_status = 0; }; }
23394 else gcc_cv_as_gstabs_flag=yes
23397 echo "configure: failed program was" >&5
23400 rm -f conftest.o conftest.s
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
23404 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
23405 if test $gcc_cv_as_gstabs_flag = yes; then
23407 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
23412 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
23413 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
23414 $as_echo_n "(cached) " >&6
23416 gcc_cv_as_debug_prefix_map_flag=no
23417 if test $in_tree_gas = yes; then
23418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23419 then gcc_cv_as_debug_prefix_map_flag=yes
23421 elif test x$gcc_cv_as != x; then
23422 echo "$insn" > conftest.s
23423 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23425 (eval $ac_try) 2>&5
23427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23428 test $ac_status = 0; }; }
23430 gcc_cv_as_debug_prefix_map_flag=yes
23432 echo "configure: failed program was" >&5
23435 rm -f conftest.o conftest.s
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23439 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
23440 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23442 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
23448 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
23449 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
23450 $as_echo_n "(cached) " >&6
23452 gcc_cv_as_lcomm_with_alignment=no
23453 if test x$gcc_cv_as != x; then
23454 echo '.lcomm bar,4,16' > conftest.s
23455 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23457 (eval $ac_try) 2>&5
23459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23460 test $ac_status = 0; }; }
23462 gcc_cv_as_lcomm_with_alignment=yes
23464 echo "configure: failed program was" >&5
23467 rm -f conftest.o conftest.s
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
23471 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
23472 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23474 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
23478 # Check whether --enable-gnu-unique-object was given.
23479 if test "${enable_gnu_unique_object+set}" = set; then :
23480 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
23482 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
23483 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
23487 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
23488 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
23489 $as_echo_n "(cached) " >&6
23491 gcc_cv_as_gnu_unique_object=no
23492 if test $in_tree_gas = yes; then
23493 if test $in_tree_gas_is_elf = yes \
23494 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23495 then gcc_cv_as_gnu_unique_object=yes
23497 elif test x$gcc_cv_as != x; then
23498 echo '.type foo, @gnu_unique_object' > conftest.s
23499 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23501 (eval $ac_try) 2>&5
23503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23504 test $ac_status = 0; }; }
23506 # Also check for ld.so support, i.e. glibc 2.11 or higher.
23507 if test x$host = x$build -a x$host = x$target &&
23508 glibcver=`ldd --version 2>/dev/null`; then
23509 glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
23510 glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
23511 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
23512 if test "$glibcnum" -ge 2011 ; then
23513 gcc_cv_as_gnu_unique_object=yes
23517 echo "configure: failed program was" >&5
23520 rm -f conftest.o conftest.s
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
23524 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
23525 if test $gcc_cv_as_gnu_unique_object = yes; then
23526 enable_gnu_unique_object=yes
23530 if test x$enable_gnu_unique_object = xyes; then
23532 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
23537 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
23538 if test "${gcc_cv_as_line_zero+set}" = set; then :
23539 $as_echo_n "(cached) " >&6
23541 gcc_cv_as_line_zero=no
23542 if test $in_tree_gas = yes; then
23543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23544 then gcc_cv_as_line_zero=yes
23546 elif test "x$gcc_cv_as" != x; then
23547 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23548 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23550 (eval $ac_try) 2>&5
23552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23553 test $ac_status = 0; }; } &&
23554 test "x`cat conftest.out`" = x
23556 gcc_cv_as_line_zero=yes
23558 echo "configure: failed program was" >&5
23560 echo "configure: error output was" >&5
23561 cat conftest.out >&5
23563 rm -f conftest.o conftest.s conftest.out
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
23567 $as_echo "$gcc_cv_as_line_zero" >&6; }
23568 if test "x$gcc_cv_as_line_zero" = xyes; then
23570 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
23575 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
23576 gcc_cv_ld_eh_frame_hdr=no
23577 if test $in_tree_ld = yes ; then
23578 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 \
23579 && test $in_tree_ld_is_elf = yes; then
23580 gcc_cv_ld_eh_frame_hdr=yes
23582 elif test x$gcc_cv_ld != x; then
23583 # Check if linker supports --eh-frame-hdr option
23584 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23585 gcc_cv_ld_eh_frame_hdr=yes
23589 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23591 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
23595 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
23598 $as_echo_n "checking linker position independent executable support... " >&6; }
23600 if test $in_tree_ld = yes ; then
23601 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 \
23602 && test $in_tree_ld_is_elf = yes; then
23605 elif test x$gcc_cv_ld != x; then
23606 # Check if linker supports -pie option
23607 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23611 if test x"$gcc_cv_ld_pie" = xyes; then
23613 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
23617 $as_echo "$gcc_cv_ld_pie" >&6; }
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
23620 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
23621 gcc_cv_ld_eh_gc_sections=no
23622 if test $in_tree_ld = yes ; then
23623 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 \
23624 && test $in_tree_ld_is_elf = yes; then
23625 gcc_cv_ld_eh_gc_sections=yes
23627 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23628 cat > conftest.s <<EOF
23631 .type _start, @function
23634 .size _start, .-_start
23635 .section .text.foo,"ax",@progbits
23636 .type foo, @function
23640 .section .gcc_except_table.foo,"a",@progbits
23643 .section .eh_frame,"a",@progbits
23646 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23647 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23648 | grep "gc-sections option ignored" > /dev/null; then
23649 gcc_cv_ld_eh_gc_sections=no
23650 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23651 gcc_cv_ld_eh_gc_sections=yes
23652 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23653 if test x$gcc_cv_as_comdat_group != xyes; then
23654 gcc_cv_ld_eh_gc_sections=no
23655 cat > conftest.s <<EOF
23658 .type _start, @function
23661 .size _start, .-_start
23662 .section .gnu.linkonce.t.foo,"ax",@progbits
23663 .type foo, @function
23667 .section .gcc_except_table.foo,"a",@progbits
23670 .section .eh_frame,"a",@progbits
23673 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23674 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23675 | grep "gc-sections option ignored" > /dev/null; then
23676 gcc_cv_ld_eh_gc_sections=no
23677 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23678 gcc_cv_ld_eh_gc_sections=yes
23684 rm -f conftest.s conftest.o conftest
23688 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23689 gcc_cv_ld_eh_gc_sections=no
23692 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23694 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
23698 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
23705 $as_echo_n "checking linker --as-needed support... " >&6; }
23706 if test "${gcc_cv_ld_as_needed+set}" = set; then :
23707 $as_echo_n "(cached) " >&6
23709 gcc_cv_ld_as_needed=no
23710 if test $in_tree_ld = yes ; then
23711 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 \
23712 && test $in_tree_ld_is_elf = yes; then
23713 gcc_cv_ld_as_needed=yes
23715 elif test x$gcc_cv_ld != x; then
23716 # Check if linker supports --as-needed and --no-as-needed options
23717 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23718 gcc_cv_ld_as_needed=yes
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
23724 $as_echo "$gcc_cv_ld_as_needed" >&6; }
23725 if test x"$gcc_cv_ld_as_needed" = xyes; then
23727 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
23731 case "$target:$tm_file" in
23732 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
23734 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
23735 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
23736 $as_echo_n "(cached) " >&6
23738 gcc_cv_ld_no_dot_syms=no
23739 if test $in_tree_ld = yes ; then
23740 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
23741 gcc_cv_ld_no_dot_syms=yes
23743 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23744 cat > conftest1.s <<EOF
23748 cat > conftest2.s <<EOF
23749 .section ".opd","aw"
23752 .type foo,@function
23754 .quad .LEfoo,.TOC.@tocbase,0
23760 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23761 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23762 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23763 gcc_cv_ld_no_dot_syms=yes
23765 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
23770 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
23771 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23773 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
23780 $as_echo_n "checking linker --build-id support... " >&6; }
23781 if test "${gcc_cv_ld_buildid+set}" = set; then :
23782 $as_echo_n "(cached) " >&6
23784 gcc_cv_ld_buildid=no
23785 if test $in_tree_ld = yes ; then
23786 if test "$gcc_cv_gld_major_version" -eq 2 -a \
23787 "$gcc_cv_gld_minor_version" -ge 18 -o \
23788 "$gcc_cv_gld_major_version" -gt 2 \
23789 && test $in_tree_ld_is_elf = yes; then
23790 gcc_cv_ld_buildid=yes
23792 elif test x$gcc_cv_ld != x; then
23793 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
23794 gcc_cv_ld_buildid=yes
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
23799 $as_echo "$gcc_cv_ld_buildid" >&6; }
23800 if test x"$gcc_cv_ld_buildid" = xyes; then
23802 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
23806 # Check whether --enable-linker-build-id was given.
23807 if test "${enable_linker_build_id+set}" = set; then :
23808 enableval=$enable_linker_build_id;
23810 enable_linker_build_id=no
23814 if test x"$enable_linker_build_id" = xyes; then
23815 if test x"$gcc_cv_ld_buildid" = xyes; then
23817 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
23821 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
23826 $as_echo_n "checking linker --sysroot support... " >&6; }
23827 if test "${gcc_cv_ld_sysroot+set}" = set; then :
23828 $as_echo_n "(cached) " >&6
23830 gcc_cv_ld_sysroot=no
23831 if test $in_tree_ld = yes ; then
23832 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
23833 gcc_cv_ld_sysroot=yes
23835 elif test x$gcc_cv_ld != x; then
23836 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23837 gcc_cv_ld_sysroot=yes
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
23842 $as_echo "$gcc_cv_ld_sysroot" >&6; }
23843 if test x"$gcc_cv_ld_sysroot" = xyes; then
23845 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
23849 if test x$with_sysroot = x && test x$host = x$target \
23850 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23851 && test "$prefix" != "NONE"; then
23853 cat >>confdefs.h <<_ACEOF
23854 #define PREFIX_INCLUDE_DIR "$prefix/include"
23859 # Test for stack protector support in target C library.
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
23861 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
23862 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
23863 $as_echo_n "(cached) " >&6
23865 gcc_cv_libc_provides_ssp=no
23867 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
23868 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23869 if test "x$with_sysroot" = x; then
23870 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23871 elif test "x$with_build_sysroot" != "x"; then
23872 glibc_header_dir="${with_build_sysroot}/usr/include"
23873 elif test "x$with_sysroot" = xyes; then
23874 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23876 glibc_header_dir="${with_sysroot}/usr/include"
23879 glibc_header_dir=/usr/include
23881 # glibc 2.4 and later provides __stack_chk_fail and
23882 # either __stack_chk_guard, or TLS access to stack guard canary.
23883 if test -f $glibc_header_dir/features.h \
23884 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23885 $glibc_header_dir/features.h > /dev/null; then
23886 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23887 $glibc_header_dir/features.h > /dev/null; then
23888 gcc_cv_libc_provides_ssp=yes
23889 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23890 $glibc_header_dir/features.h > /dev/null \
23891 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23892 $glibc_header_dir/features.h > /dev/null; then
23893 gcc_cv_libc_provides_ssp=yes
23894 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23895 $glibc_header_dir/features.h > /dev/null && \
23896 test -f $glibc_header_dir/bits/uClibc_config.h && \
23897 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23898 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23899 gcc_cv_libc_provides_ssp=yes
23904 # Avoid complicated tests (see
23905 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
23906 # simply assert that glibc does provide this, which is true for all
23907 # realistically usable GNU/Hurd configurations.
23908 gcc_cv_libc_provides_ssp=yes;;
23910 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
23911 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
23912 gcc_cv_libc_provides_ssp=yes
23914 echo "no __stack_chk_fail on this target"
23918 *) gcc_cv_libc_provides_ssp=no ;;
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
23922 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
23924 if test x$gcc_cv_libc_provides_ssp = xyes; then
23926 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
23930 # Check if TFmode long double should be used by default or not.
23931 # Some glibc targets used DFmode long double, but with glibc 2.4
23932 # and later they can use TFmode.
23934 powerpc*-*-linux* | \
23935 powerpc*-*-gnu* | \
23936 sparc*-*-linux* | \
23940 # Check whether --with-long-double-128 was given.
23941 if test "${with_long_double_128+set}" = set; then :
23942 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
23944 gcc_cv_target_ldbl128=no
23945 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23946 if test "x$with_sysroot" = x; then
23947 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23948 elif test "x$with_build_sysroot" != "x"; then
23949 glibc_header_dir="${with_build_sysroot}/usr/include"
23950 elif test "x$with_sysroot" = xyes; then
23951 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23953 glibc_header_dir="${with_sysroot}/usr/include"
23956 glibc_header_dir=/usr/include
23958 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23959 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23960 && gcc_cv_target_ldbl128=yes
23966 if test x$gcc_cv_target_ldbl128 = xyes; then
23968 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
23972 # Find out what GC implementation we want, or may, use.
23974 # Check whether --with-gc was given.
23975 if test "${with_gc+set}" = set; then :
23976 withval=$with_gc; case "$withval" in
23983 $as_echo "#define GGC_ZONE 1" >>confdefs.h
23987 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
23995 echo "Using $GGC for garbage collection."
23997 # Libraries to use on the host. This will normally be set by the top
23998 # level Makefile. Here we simply capture the value for our Makefile.
23999 if test -z "${HOST_LIBS+set}"; then
24004 # Use the system's zlib library.
24006 zlibinc="-I\$(srcdir)/../zlib"
24008 # Check whether --with-system-zlib was given.
24009 if test "${with_system_zlib+set}" = set; then :
24010 withval=$with_system_zlib; zlibdir=
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24020 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24021 # Check whether --enable-maintainer-mode was given.
24022 if test "${enable_maintainer_mode+set}" = set; then :
24023 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24030 $as_echo "$maintainer_mode" >&6; }
24032 if test "$maintainer_mode" = "yes"; then
24042 # Make empty files to contain the specs and options for each language.
24043 # Then add #include lines to for a compiler that has specs and/or options.
24049 # These (without "all_") are set in each config-lang.in.
24050 # `language' must be a single word so is spelled singularly.
24053 all_outputs='Makefile gccbug'
24054 # List of language makefile fragments.
24055 all_lang_makefrags=
24056 # List of language subdirectory makefiles. Deprecated.
24057 all_lang_makefiles=
24058 # Additional files for gengtype
24059 all_gtfiles="$target_gtfiles"
24061 # These are the languages that are set in --enable-languages,
24062 # and are available in the GCC tree.
24063 all_selected_languages=
24065 # Add the language fragments.
24066 # Languages are added via two mechanisms. Some information must be
24067 # recorded in makefile variables, these are defined in config-lang.in.
24068 # We accumulate them and plug them into the main Makefile.
24069 # The other mechanism is a set of hooks for each of the main targets
24070 # like `clean', `install', etc.
24072 language_hooks="Make-hooks"
24074 for lang in ${srcdir}/*/config-lang.in
24076 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24078 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24079 if test "x$lang_alias" = x
24081 echo "$lang doesn't set \$language." 1>&2
24084 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24085 subdirs="$subdirs $subdir"
24087 # $gcc_subdir is where the gcc integration files are to be found
24088 # for a language, both for internal compiler purposes (compiler
24089 # sources implementing front-end to GCC tree converters), and for
24090 # build infrastructure purposes (Make-lang.in, etc.)
24092 # This will be <subdir> (relative to $srcdir) if a line like
24093 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24094 # is found in <langdir>/config-lang.in, and will remain <langdir>
24097 # Except for the language alias (fetched above), the regular
24098 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24099 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24100 # only this and the language alias.
24102 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24103 if [ "$gcc_subdir" = "" ]; then
24104 gcc_subdir="$subdir"
24107 case ",$enable_languages," in
24109 all_selected_languages="$all_selected_languages $lang_alias"
24110 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24111 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24122 . ${srcdir}/$gcc_subdir/config-lang.in
24123 if test "x$language" = x
24125 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24130 case ",$enable_languages," in
24131 *,$lang_alias,*) ;;
24133 for i in $subdir_requires; do
24134 test -f "${srcdir}/$i/config-lang.in" && continue
24142 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24143 if test -f $srcdir/$gcc_subdir/lang.opt; then
24144 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24146 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24147 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24149 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24150 then all_lang_makefiles="$gcc_subdir/Makefile"
24152 all_languages="$all_languages $language"
24153 all_compilers="$all_compilers $compilers"
24154 all_outputs="$all_outputs $outputs"
24155 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24158 # Pick up gtfiles for c
24160 . ${srcdir}/c-config-lang.in
24161 all_gtfiles="$all_gtfiles [c] $gtfiles"
24164 for language in $all_selected_languages
24166 check_languages="$check_languages check-$language"
24169 # We link each language in with a set of hooks, reached indirectly via
24170 # lang.${target}. Only do so for selected languages.
24174 target_list="all.cross start.encap rest.encap tags \
24175 install-common install-man install-info install-pdf dvi pdf \
24176 html uninstall info man srcextra srcman srcinfo \
24177 mostlyclean clean distclean maintainer-clean install-plugin"
24179 for t in $target_list
24182 for lang in $all_selected_languages
24186 echo "lang.$t: $x" >> Make-hooks
24195 echo "dir ." > .gdbinit
24196 echo "dir ${srcdir}" >> .gdbinit
24197 if test x$gdb_needs_out_file_path = xyes
24199 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24201 if test "x$subdirs" != x; then
24204 echo "dir ${srcdir}/$s" >> .gdbinit
24207 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24209 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24213 # Find a directory in which to install a shared libgcc.
24215 # Check whether --enable-version-specific-runtime-libs was given.
24216 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24217 enableval=$enable_version_specific_runtime_libs;
24222 # Check whether --with-slibdir was given.
24223 if test "${with_slibdir+set}" = set; then :
24224 withval=$with_slibdir; slibdir="$with_slibdir"
24226 if test "${enable_version_specific_runtime_libs+set}" = set; then
24227 slibdir='$(libsubdir)'
24228 elif test "$host" != "$target"; then
24229 slibdir='$(build_tooldir)/lib'
24231 slibdir='$(libdir)'
24238 # Check whether --with-datarootdir was given.
24239 if test "${with_datarootdir+set}" = set; then :
24240 withval=$with_datarootdir; datarootdir="\${prefix}/$with_datarootdir"
24242 datarootdir='$(prefix)/share'
24248 # Check whether --with-docdir was given.
24249 if test "${with_docdir+set}" = set; then :
24250 withval=$with_docdir; docdir="\${prefix}/$with_docdir"
24252 docdir='$(datarootdir)'
24258 # Check whether --with-htmldir was given.
24259 if test "${with_htmldir+set}" = set; then :
24260 withval=$with_htmldir; htmldir="\${prefix}/$with_htmldir"
24262 htmldir='$(docdir)'
24267 # Substitute configuration variables
24330 if test x${build} = x${host} ; then
24331 if test x${host} = x${target} ; then
24332 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24334 echo "Links are now set up to build a cross-compiler" 1>&2
24335 echo " from ${host} to ${target}." 1>&2
24338 if test x${host} = x${target} ; then
24339 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24340 echo " for ${target}." 1>&2
24342 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24343 echo " from ${host} to ${target}." 1>&2
24350 case "${GMPLIBS}" in
24352 $as_echo "#define HAVE_mpc 1" >>confdefs.h
24361 if test "x${CLOOGLIBS}" != "x" ; then
24363 $as_echo "#define HAVE_cloog 1" >>confdefs.h
24367 # Check for plugin support
24368 # Check whether --enable-plugin was given.
24369 if test "${enable_plugin+set}" = set; then :
24370 enableval=$enable_plugin; enable_plugin=$enableval
24372 enable_plugin=yes; default_plugin=yes
24377 if test x"$enable_plugin" = x"yes"; then
24378 # Check that the host supports -rdynamic and -ldl
24381 saved_LDFLAGS="$LDFLAGS"
24386 LDFLAGS="$LDFLAGS -rdynamic"
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
24388 $as_echo_n "checking for -rdynamic... " >&6; }
24389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24390 /* end confdefs.h. */
24400 if ac_fn_c_try_link "$LINENO"; then :
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24402 $as_echo "yes" >&6; }; have_rdynamic=yes
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24405 $as_echo "no" >&6; }
24407 rm -f core conftest.err conftest.$ac_objext \
24408 conftest$ac_exeext conftest.$ac_ext
24409 if test x"$have_rdynamic" = x"yes" ; then
24410 pluginlibs="-rdynamic"
24414 LDFLAGS="$LDFLAGS -ldl"
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldl" >&5
24416 $as_echo_n "checking for -ldl... " >&6; }
24417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24418 /* end confdefs.h. */
24423 volatile int f = 0; if (f) dlopen ("dummy", 0);
24428 if ac_fn_c_try_link "$LINENO"; then :
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24430 $as_echo "yes" >&6; }; have_dl=yes
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24433 $as_echo "no" >&6; }
24435 rm -f core conftest.err conftest.$ac_objext \
24436 conftest$ac_exeext conftest.$ac_ext
24437 if test x"$have_dl" = x"yes"; then
24438 pluginlibs="$pluginlibs -ldl"
24441 # Check that we can build shared objects with -fPIC -shared
24442 LDFLAGS="$LDFLAGS -fPIC -shared"
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
24444 $as_echo_n "checking for -fPIC -shared... " >&6; }
24445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24446 /* end confdefs.h. */
24456 if ac_fn_c_try_link "$LINENO"; then :
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24458 $as_echo "yes" >&6; }; have_pic_shared=yes
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24461 $as_echo "no" >&6; }; have_pic_shared=no
24463 rm -f core conftest.err conftest.$ac_objext \
24464 conftest$ac_exeext conftest.$ac_ext
24465 if test x"$have_pic_shared" != x"yes"; then
24470 # If plugin support had been requested but not available, fail.
24471 if test x"$enable_plugin" = x"no" ; then
24472 if test x"$default_plugin" != x"yes"; then
24474 Building GCC with plugin support requires a host that supports
24475 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
24479 LDFLAGS="$saved_LDFLAGS"
24485 if test x"$enable_plugin" = x"yes"; then
24487 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
24491 # Configure the subdirectories
24492 # AC_CONFIG_SUBDIRS($subdirs)
24494 # Create the Makefile
24495 # and configure language subdirectories
24496 ac_config_files="$ac_config_files $all_outputs"
24499 ac_config_commands="$ac_config_commands default"
24501 cat >confcache <<\_ACEOF
24502 # This file is a shell script that caches the results of configure
24503 # tests run on this system so they can be shared between configure
24504 # scripts and configure runs, see configure's option --config-cache.
24505 # It is not useful on other systems. If it contains results you don't
24506 # want to keep, you may remove or edit it.
24508 # config.status only pays attention to the cache file if you give it
24509 # the --recheck option to rerun configure.
24511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24513 # following values.
24517 # The following way of writing the cache mishandles newlines in values,
24518 # but we know of no workaround that is simple, portable, and efficient.
24519 # So, we kill variables containing newlines.
24520 # Ultrix sh set writes to stderr and can't be redirected directly,
24521 # and sets the high bit in the cache file unless we assign to the vars.
24523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24524 eval ac_val=\$$ac_var
24528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24532 _ | IFS | as_nl) ;; #(
24533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24534 *) { eval $ac_var=; unset $ac_var;} ;;
24540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24541 *${as_nl}ac_space=\ *)
24542 # `set' does not quote correctly, so add quotes: double-quote
24543 # substitution turns \\\\ into \\, and sed turns \\ into \.
24546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24549 # `set' quotes correctly as required by POSIX, so do not add quotes.
24550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24564 if test -w "$cache_file"; then
24565 test "x$cache_file" != "x/dev/null" &&
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24567 $as_echo "$as_me: updating cache $cache_file" >&6;}
24568 cat confcache >$cache_file
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24571 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24577 # Let make expand exec_prefix.
24578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24580 DEFS=-DHAVE_CONFIG_H
24584 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24585 # 1. Remove the extension, and $U if already installed.
24586 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24587 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24588 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24589 # will be set to the directory where LIBOBJS objects are built.
24590 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24591 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24593 LIBOBJS=$ac_libobjs
24595 LTLIBOBJS=$ac_ltlibobjs
24600 : ${CONFIG_STATUS=./config.status}
24602 ac_clean_files_save=$ac_clean_files
24603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24605 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24607 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24609 # Generated by $as_me.
24610 # Run this file to recreate the current configuration.
24611 # Compiler output produced by configure, useful for debugging
24612 # configure, is in config.log if it exists.
24615 ac_cs_recheck=false
24618 SHELL=\${CONFIG_SHELL-$SHELL}
24621 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24622 ## -------------------- ##
24623 ## M4sh Initialization. ##
24624 ## -------------------- ##
24626 # Be more Bourne compatible
24627 DUALCASE=1; export DUALCASE # for MKS sh
24628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24631 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24632 # is contrary to our usage. Disable this feature.
24633 alias -g '${1+"$@"}'='"$@"'
24634 setopt NO_GLOB_SUBST
24636 case `(set -o) 2>/dev/null` in #(
24648 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24649 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24652 # Prefer a ksh shell builtin over an external printf program on Solaris,
24653 # but without wasting forks for bash or zsh.
24654 if test -z "$BASH_VERSION$ZSH_VERSION" \
24655 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24656 as_echo='print -r --'
24657 as_echo_n='print -rn --'
24658 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24659 as_echo='printf %s\n'
24660 as_echo_n='printf %s'
24662 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24663 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24664 as_echo_n='/usr/ucb/echo -n'
24666 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24667 as_echo_n_body='eval
24671 expr "X$arg" : "X\\(.*\\)$as_nl";
24672 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24674 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24676 export as_echo_n_body
24677 as_echo_n='sh -c $as_echo_n_body as_echo'
24679 export as_echo_body
24680 as_echo='sh -c $as_echo_body as_echo'
24683 # The user is always right.
24684 if test "${PATH_SEPARATOR+set}" != set; then
24686 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24687 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24694 # We need space, tab and new line, in precisely that order. Quoting is
24695 # there to prevent editors from complaining about space-tab.
24696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24697 # splitting by setting IFS to empty value.)
24700 # Find who we are. Look in the path if we contain no directory separator.
24702 *[\\/]* ) as_myself=$0 ;;
24703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24704 for as_dir in $PATH
24707 test -z "$as_dir" && as_dir=.
24708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24714 # We did not find ourselves, most probably we were run as `sh COMMAND'
24715 # in which case we are not to be found in the path.
24716 if test "x$as_myself" = x; then
24719 if test ! -f "$as_myself"; then
24720 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24724 # Unset variables that we do not need and which cause bugs (e.g. in
24725 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24726 # suppresses any "Segmentation fault" message there. '((' could
24727 # trigger a bug in pdksh 5.2.14.
24728 for as_var in BASH_ENV ENV MAIL MAILPATH
24729 do eval test x\${$as_var+set} = xset \
24730 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24746 # as_fn_error ERROR [LINENO LOG_FD]
24747 # ---------------------------------
24748 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24749 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24750 # script with status $?, using 1 if that was 0.
24753 as_status=$?; test $as_status -eq 0 && as_status=1
24755 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24756 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24758 $as_echo "$as_me: error: $1" >&2
24759 as_fn_exit $as_status
24763 # as_fn_set_status STATUS
24764 # -----------------------
24765 # Set $? to STATUS, without forking.
24766 as_fn_set_status ()
24769 } # as_fn_set_status
24771 # as_fn_exit STATUS
24772 # -----------------
24773 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24777 as_fn_set_status $1
24783 # Portably unset VAR.
24786 { eval $1=; unset $1;}
24788 as_unset=as_fn_unset
24789 # as_fn_append VAR VALUE
24790 # ----------------------
24791 # Append the text in VALUE to the end of the definition contained in VAR. Take
24792 # advantage of any shell optimizations that allow amortized linear growth over
24793 # repeated appends, instead of the typical quadratic growth present in naive
24795 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24796 eval 'as_fn_append ()
24807 # as_fn_arith ARG...
24808 # ------------------
24809 # Perform arithmetic evaluation on the ARGs, and store the result in the
24810 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24811 # must be portable across $(()) and expr.
24812 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24813 eval 'as_fn_arith ()
24820 as_val=`expr "$@" || test $? -eq 1`
24825 if expr a : '\(a\)' >/dev/null 2>&1 &&
24826 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24832 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24833 as_basename=basename
24838 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24844 as_me=`$as_basename -- "$0" ||
24845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24846 X"$0" : 'X\(//\)$' \| \
24847 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24849 sed '/^.*\/\([^/][^/]*\)\/*$/{
24863 # Avoid depending upon Character Ranges.
24864 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24865 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24866 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24867 as_cr_digits='0123456789'
24868 as_cr_alnum=$as_cr_Letters$as_cr_digits
24870 ECHO_C= ECHO_N= ECHO_T=
24871 case `echo -n x` in #(((((
24873 case `echo 'xy\c'` in
24874 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24876 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24883 rm -f conf$$ conf$$.exe conf$$.file
24884 if test -d conf$$.dir; then
24885 rm -f conf$$.dir/conf$$.file
24888 mkdir conf$$.dir 2>/dev/null
24890 if (echo >conf$$.file) 2>/dev/null; then
24891 if ln -s conf$$.file conf$$ 2>/dev/null; then
24893 # ... but there are two gotchas:
24894 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24895 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24896 # In both cases, we have to default to `cp -p'.
24897 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24899 elif ln conf$$.file conf$$ 2>/dev/null; then
24907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24908 rmdir conf$$.dir 2>/dev/null
24913 # Create "$as_dir" as a directory, including parents if necessary.
24918 -*) as_dir=./$as_dir;;
24920 test -d "$as_dir" || eval $as_mkdir_p || {
24924 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24925 *) as_qdir=$as_dir;;
24927 as_dirs="'$as_qdir' $as_dirs"
24928 as_dir=`$as_dirname -- "$as_dir" ||
24929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24930 X"$as_dir" : 'X\(//\)[^/]' \| \
24931 X"$as_dir" : 'X\(//\)$' \| \
24932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24933 $as_echo X"$as_dir" |
24934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24938 /^X\(\/\/\)[^/].*/{
24951 test -d "$as_dir" && break
24953 test -z "$as_dirs" || eval "mkdir $as_dirs"
24954 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24958 if mkdir -p . 2>/dev/null; then
24959 as_mkdir_p='mkdir -p "$as_dir"'
24961 test -d ./-p && rmdir ./-p
24965 if test -x / >/dev/null 2>&1; then
24966 as_test_x='test -x'
24968 if ls -dL / >/dev/null 2>&1; then
24975 if test -d "$1"; then
24981 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24982 ???[sx]*):;;*)false;;esac;fi
24986 as_executable_p=$as_test_x
24988 # Sed expression to map a string onto a valid CPP name.
24989 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24991 # Sed expression to map a string onto a valid variable name.
24992 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24996 ## ----------------------------------- ##
24997 ## Main body of $CONFIG_STATUS script. ##
24998 ## ----------------------------------- ##
25000 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25003 # Save the log message, to keep $0 and so on meaningful, and to
25004 # report actual input values of CONFIG_FILES etc. instead of their
25005 # values after options handling.
25007 This file was extended by $as_me, which was
25008 generated by GNU Autoconf 2.64. Invocation command line was
25010 CONFIG_FILES = $CONFIG_FILES
25011 CONFIG_HEADERS = $CONFIG_HEADERS
25012 CONFIG_LINKS = $CONFIG_LINKS
25013 CONFIG_COMMANDS = $CONFIG_COMMANDS
25016 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25021 case $ac_config_files in *"
25022 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25025 case $ac_config_headers in *"
25026 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25031 # Files that config.status was made for.
25032 config_files="$ac_config_files"
25033 config_headers="$ac_config_headers"
25034 config_commands="$ac_config_commands"
25038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25040 \`$as_me' instantiates files and other configuration actions
25041 from templates according to the current configuration. Unless the files
25042 and actions are specified as TAGs, all are instantiated by default.
25044 Usage: $0 [OPTION]... [TAG]...
25046 -h, --help print this help, then exit
25047 -V, --version print version number and configuration settings, then exit
25048 -q, --quiet, --silent
25049 do not print progress messages
25050 -d, --debug don't remove temporary files
25051 --recheck update $as_me by reconfiguring in the same conditions
25052 --file=FILE[:TEMPLATE]
25053 instantiate the configuration file FILE
25054 --header=FILE[:TEMPLATE]
25055 instantiate the configuration header FILE
25057 Configuration files:
25060 Configuration headers:
25063 Configuration commands:
25066 Report bugs to the package provider."
25069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25072 configured by $0, generated by GNU Autoconf 2.64,
25073 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25075 Copyright (C) 2009 Free Software Foundation, Inc.
25076 This config.status script is free software; the Free Software Foundation
25077 gives unlimited permission to copy, distribute and modify it."
25082 test -n "\$AWK" || AWK=awk
25085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25086 # The default lists apply if the user does not specify any file.
25092 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25093 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25104 # Handling of the options.
25105 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25107 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25108 $as_echo "$ac_cs_version"; exit ;;
25109 --debug | --debu | --deb | --de | --d | -d )
25111 --file | --fil | --fi | --f )
25114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25116 as_fn_append CONFIG_FILES " '$ac_optarg'"
25117 ac_need_defaults=false;;
25118 --header | --heade | --head | --hea )
25121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25123 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25124 ac_need_defaults=false;;
25126 # Conflict between --help and --header
25127 as_fn_error "ambiguous option: \`$1'
25128 Try \`$0 --help' for more information.";;
25129 --help | --hel | -h )
25130 $as_echo "$ac_cs_usage"; exit ;;
25131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25132 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25135 # This is an error.
25136 -*) as_fn_error "unrecognized option: \`$1'
25137 Try \`$0 --help' for more information." ;;
25139 *) as_fn_append ac_config_targets " $1"
25140 ac_need_defaults=false ;;
25146 ac_configure_extra_args=
25148 if $ac_cs_silent; then
25150 ac_configure_extra_args="$ac_configure_extra_args --silent"
25154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25155 if \$ac_cs_recheck; then
25156 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25158 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25159 CONFIG_SHELL='$SHELL'
25160 export CONFIG_SHELL
25165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25170 ## Running $as_me. ##
25176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25186 # Handling of arguments.
25187 for ac_config_target in $ac_config_targets
25189 case $ac_config_target in
25190 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25191 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25192 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25193 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25194 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25195 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25197 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25202 # If the user did not use the arguments to specify the items to instantiate,
25203 # then the envvar interface is used. Set only those that are not.
25204 # We use the long form for the default assignment because of an extremely
25205 # bizarre bug on SunOS 4.1.3.
25206 if $ac_need_defaults; then
25207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25212 # Have a temporary directory for convenience. Make it in the build tree
25213 # simply because there is no reason against having it here, and in addition,
25214 # creating and moving files from /tmp can sometimes cause problems.
25215 # Hook for its removal unless debugging.
25216 # Note that there is a small window in which the directory will not be cleaned:
25217 # after its creation but before its name has been assigned to `$tmp'.
25221 trap 'exit_status=$?
25222 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25224 trap 'as_fn_exit 1' 1 2 13 15
25226 # Create a (secure) tmp directory for tmp files.
25229 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25230 test -n "$tmp" && test -d "$tmp"
25233 tmp=./conf$$-$RANDOM
25234 (umask 077 && mkdir "$tmp")
25235 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25237 # Set up the scripts for CONFIG_FILES section.
25238 # No need to generate them if there are no CONFIG_FILES.
25239 # This happens for instance with `./config.status config.h'.
25240 if test -n "$CONFIG_FILES"; then
25242 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25243 ac_cs_awk_getline=:
25244 ac_cs_awk_pipe_init=
25245 ac_cs_awk_read_file='
25246 while ((getline aline < (F[key])) > 0)
25249 ac_cs_awk_pipe_fini=
25251 ac_cs_awk_getline=false
25252 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25253 ac_cs_awk_read_file='
25255 print "cat " F[key] " &&"
25256 '$ac_cs_awk_pipe_init
25257 # The final `:' finishes the AND list.
25258 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25260 ac_cr=`echo X | tr X '\015'`
25261 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25262 # But we know of no other shell where ac_cr would be empty at this
25263 # point, so we can use a bashism as a fallback.
25264 if test "x$ac_cr" = x; then
25265 eval ac_cr=\$\'\\r\'
25267 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25268 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25271 ac_cs_awk_cr=$ac_cr
25274 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25277 # Create commands to substitute file output variables.
25279 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25280 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25281 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25284 } >conf$$files.sh &&
25285 . ./conf$$files.sh ||
25286 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25287 rm -f conf$$files.sh
25290 echo "cat >conf$$subs.awk <<_ACEOF" &&
25291 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25293 } >conf$$subs.sh ||
25294 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25295 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25297 for ac_last_try in false false false false false :; do
25298 . ./conf$$subs.sh ||
25299 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25301 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25302 if test $ac_delim_n = $ac_delim_num; then
25304 elif $ac_last_try; then
25305 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25310 rm -f conf$$subs.sh
25312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25313 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25317 s/^/S["/; s/!.*/"]=/
25327 s/\(.\{148\}\).*/\1/
25329 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25341 s/\(.\{148\}\).*/\1/
25343 s/["\\]/\\&/g; s/^/"/; s/$/"/
25347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25352 ' <conf$$subs.awk | sed '
25357 ' >>$CONFIG_STATUS || ac_write_fail=1
25358 rm -f conf$$subs.awk
25359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25361 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25362 for (key in S) S_is_set[key] = 1
25364 \$ac_cs_awk_pipe_init
25368 nfields = split(line, field, "@")
25370 len = length(field[1])
25371 for (i = 2; i < nfields; i++) {
25373 keylen = length(key)
25374 if (S_is_set[key]) {
25376 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25377 len += length(value) + length(field[++i])
25382 if (nfields == 3 && !substed) {
25384 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25385 \$ac_cs_awk_read_file
25391 \$ac_cs_awk_pipe_fini
25394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25395 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25396 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25399 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25400 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25403 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25404 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25405 # trailing colons and then remove the whole line if VPATH becomes empty
25406 # (actually we leave an empty line to preserve line numbers).
25407 if test "x$srcdir" = x.; then
25408 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25409 s/:*\$(srcdir):*/:/
25410 s/:*\${srcdir}:*/:/
25412 s/^\([^=]*=[ ]*\):*/\1/
25418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25419 fi # test -n "$CONFIG_FILES"
25421 # Set up the scripts for CONFIG_HEADERS section.
25422 # No need to generate them if there are no CONFIG_HEADERS.
25423 # This happens for instance with `./config.status Makefile'.
25424 if test -n "$CONFIG_HEADERS"; then
25425 cat >"$tmp/defines.awk" <<\_ACAWK ||
25429 # Transform confdefs.h into an awk script `defines.awk', embedded as
25430 # here-document in config.status, that substitutes the proper values into
25431 # config.h.in to produce config.h.
25433 # Create a delimiter string that does not exist in confdefs.h, to ease
25434 # handling of long lines.
25436 for ac_last_try in false false :; do
25437 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25438 if test -z "$ac_t"; then
25440 elif $ac_last_try; then
25441 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25447 # For the awk script, D is an array of macro values keyed by name,
25448 # likewise P contains macro parameters if any. Preserve backslash
25449 # newline sequences.
25451 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25453 s/.\{148\}/&'"$ac_delim"'/g
25456 s/^[ ]*#[ ]*define[ ][ ]*/ /
25463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25470 D["\1"]=" \3\\\\\\n"\\/p
25472 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25477 s/.\{148\}/&'"$ac_delim"'/g
25482 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25485 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25487 ' <confdefs.h | sed '
25488 s/'"$ac_delim"'/"\\\
25489 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25492 for (key in D) D_is_set[key] = 1
25495 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25497 split(line, arg, " ")
25498 if (arg[1] == "#") {
25502 defundef = substr(arg[1], 2)
25505 split(mac1, mac2, "(") #)
25507 prefix = substr(line, 1, index(line, defundef) - 1)
25508 if (D_is_set[macro]) {
25509 # Preserve the white space surrounding the "#".
25510 print prefix "define", macro P[macro] D[macro]
25513 # Replace #undef with comments. This is necessary, for example,
25514 # in the case of _POSIX_SOURCE, which is predefined and required
25515 # on some systems where configure will not decide to define it.
25516 if (defundef == "undef") {
25517 print "/*", prefix defundef, macro, "*/"
25525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25526 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25527 fi # test -n "$CONFIG_HEADERS"
25530 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25535 :[FHLC]) ac_mode=$ac_tag; continue;;
25537 case $ac_mode$ac_tag in
25539 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25540 :[FH]-) ac_tag=-:-;;
25541 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25558 -) ac_f="$tmp/stdin";;
25559 *) # Look for the file first in the build tree, then in the source tree
25560 # (if the path is not absolute). The absolute path cannot be DOS-style,
25561 # because $ac_f cannot contain `:'.
25565 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25567 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25569 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25570 as_fn_append ac_file_inputs " '$ac_f'"
25573 # Let's still pretend it is `configure' which instantiates (i.e., don't
25574 # use $as_me), people would be surprised to read:
25575 # /* config.h. Generated by config.status. */
25576 configure_input='Generated from '`
25577 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25579 if test x"$ac_file" != x-; then
25580 configure_input="$ac_file. $configure_input"
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25582 $as_echo "$as_me: creating $ac_file" >&6;}
25584 # Neutralize special characters interpreted by sed in replacement strings.
25585 case $configure_input in #(
25586 *\&* | *\|* | *\\* )
25587 ac_sed_conf_input=`$as_echo "$configure_input" |
25588 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25589 *) ac_sed_conf_input=$configure_input;;
25593 *:-:* | *:-) cat >"$tmp/stdin" \
25594 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25599 ac_dir=`$as_dirname -- "$ac_file" ||
25600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25601 X"$ac_file" : 'X\(//\)[^/]' \| \
25602 X"$ac_file" : 'X\(//\)$' \| \
25603 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25604 $as_echo X"$ac_file" |
25605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25609 /^X\(\/\/\)[^/].*/{
25622 as_dir="$ac_dir"; as_fn_mkdir_p
25626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25629 # A ".." for each directory in $ac_dir_suffix.
25630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25631 case $ac_top_builddir_sub in
25632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25636 ac_abs_top_builddir=$ac_pwd
25637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25638 # for backward compatibility:
25639 ac_top_builddir=$ac_top_build_prefix
25642 .) # We are building in place.
25644 ac_top_srcdir=$ac_top_builddir_sub
25645 ac_abs_top_srcdir=$ac_pwd ;;
25646 [\\/]* | ?:[\\/]* ) # Absolute name.
25647 ac_srcdir=$srcdir$ac_dir_suffix;
25648 ac_top_srcdir=$srcdir
25649 ac_abs_top_srcdir=$srcdir ;;
25650 *) # Relative name.
25651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25652 ac_top_srcdir=$ac_top_build_prefix$srcdir
25653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25667 # If the template does not know about datarootdir, expand it.
25668 # FIXME: This hack should be removed a few years after 2.60.
25669 ac_datarootdir_hack=; ac_datarootdir_seen=
25680 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25681 *datarootdir*) ac_datarootdir_seen=yes;;
25682 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25684 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25687 ac_datarootdir_hack='
25688 s&@datadir@&$datadir&g
25689 s&@docdir@&$docdir&g
25690 s&@infodir@&$infodir&g
25691 s&@localedir@&$localedir&g
25692 s&@mandir@&$mandir&g
25693 s&\\\${datarootdir}&$datarootdir&g' ;;
25697 # Neutralize VPATH when `$srcdir' = `.'.
25698 # Shell code in configure.ac might set extrasub.
25699 # FIXME: do we really want to maintain this feature?
25700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25701 ac_sed_extra="$ac_vpsub
25704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25707 s|@configure_input@|$ac_sed_conf_input|;t t
25708 s&@top_builddir@&$ac_top_builddir_sub&;t t
25709 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25710 s&@srcdir@&$ac_srcdir&;t t
25711 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25712 s&@top_srcdir@&$ac_top_srcdir&;t t
25713 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25714 s&@builddir@&$ac_builddir&;t t
25715 s&@abs_builddir@&$ac_abs_builddir&;t t
25716 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25717 $ac_datarootdir_hack
25719 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25720 if $ac_cs_awk_getline; then
25721 $AWK -f "$tmp/subs.awk"
25723 $AWK -f "$tmp/subs.awk" | $SHELL
25725 || as_fn_error "could not create $ac_file" "$LINENO" 5
25727 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25728 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25731 which seems to be undefined. Please make sure it is defined." >&5
25732 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25733 which seems to be undefined. Please make sure it is defined." >&2;}
25737 -) cat "$tmp/out" && rm -f "$tmp/out";;
25738 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25740 || as_fn_error "could not create $ac_file" "$LINENO" 5
25746 if test x"$ac_file" != x-; then
25748 $as_echo "/* $configure_input */" \
25749 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25750 } >"$tmp/config.h" \
25751 || as_fn_error "could not create $ac_file" "$LINENO" 5
25752 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25757 mv "$tmp/config.h" "$ac_file" \
25758 || as_fn_error "could not create $ac_file" "$LINENO" 5
25761 $as_echo "/* $configure_input */" \
25762 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25763 || as_fn_error "could not create -" "$LINENO" 5
25767 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25768 $as_echo "$as_me: executing $ac_file commands" >&6;}
25773 case $ac_file$ac_mode in
25774 "as":F) chmod +x as ;;
25775 "collect-ld":F) chmod +x collect-ld ;;
25776 "nm":F) chmod +x nm ;;
25778 case ${CONFIG_HEADERS} in
25779 *auto-host.h:config.in*)
25782 # Make sure all the subdirs exist.
25783 for d in $subdirs doc build
25785 test -d $d || mkdir $d
25795 ac_clean_files=$ac_clean_files_save
25797 test $ac_write_fail = 0 ||
25798 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25801 # configure is writing to config.log, and then calls config.status.
25802 # config.status does its own redirection, appending to config.log.
25803 # Unfortunately, on DOS this fails, as config.log is still kept open
25804 # by configure, so config.status won't be able to write to it; its
25805 # output is simply discarded. So we exec the FD to /dev/null,
25806 # effectively closing config.log, so it can be properly (re)opened and
25807 # appended to by config.status. When coming back to configure, we
25808 # need to make the FD available again.
25809 if test "$no_create" != yes; then
25811 ac_config_status_args=
25812 test "$silent" = yes &&
25813 ac_config_status_args="$ac_config_status_args --quiet"
25815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25818 # would make configure fail if this is the last instruction.
25819 $ac_cs_success || as_fn_exit $?
25821 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25823 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}