2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec
; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo
; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo
; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset
; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
308 for dir
in $PATH /usr
/ucb
; do
310 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho
; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL
=/bin
/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
349 SHELL
="$CONFIG_SHELL"
351 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string
=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix
=/usr
/local
404 ac_config_libobj_dir
=.
409 SHELL
=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
423 ac_unique_file
="tree.c"
424 # Factoring default headers for most tests.
425 ac_includes_default
="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn c_loose_warn strict_warn c_strict_warn warn_cflags warn_cxxflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags ENABLE_BUILD_WITH_CXX enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CXXCPP objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump gcc_cv_readelf libgcc_visibility GGC HOST_LIBS zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file TM_ENDIAN_CONFIG TM_MULTILIB_CONFIG TM_MULTILIB_EXCEPTIONS_CONFIG extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines use_gcc_stdint c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC PPLLIBS PPLINC CLOOGLIBS CLOOGINC pluginlibs enable_plugin LIBOBJS LTLIBOBJS'
462 ac_subst_files
='language_hooks'
465 # Initialize some variables set by options.
467 ac_init_version
=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name
=s
,x
,x
,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir
='${exec_prefix}/bin'
491 sbindir
='${exec_prefix}/sbin'
492 libexecdir
='${exec_prefix}/libexec'
493 datadir
='${prefix}/share'
494 sysconfdir
='${prefix}/etc'
495 sharedstatedir
='${prefix}/com'
496 localstatedir
='${prefix}/var'
497 libdir
='${exec_prefix}/lib'
498 includedir
='${prefix}/include'
499 oldincludedir
='/usr/include'
500 infodir
='${prefix}/info'
501 mandir
='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
521 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
524 -build |
--build |
--buil |
--bui |
--bu)
525 ac_prev
=build_alias
;;
526 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
527 build_alias
=$ac_optarg ;;
529 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
530 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
531 ac_prev
=cache_file
;;
532 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
533 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
534 cache_file
=$ac_optarg ;;
537 cache_file
=config.cache
;;
539 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
541 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
543 datadir
=$ac_optarg ;;
545 -disable-* |
--disable-*)
546 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* |
--enable-*)
555 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
568 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
569 |
--exec |
--exe |
--ex)
570 ac_prev
=exec_prefix
;;
571 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
572 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
573 |
--exec=* |
--exe=* |
--ex=*)
574 exec_prefix
=$ac_optarg ;;
576 -gas |
--gas |
--ga |
--g)
577 # Obsolete; use --with-gas.
580 -help |
--help |
--hel |
--he |
-h)
582 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
583 ac_init_help
=recursive
;;
584 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
585 ac_init_help
=short
;;
587 -host |
--host |
--hos |
--ho)
588 ac_prev
=host_alias
;;
589 -host=* |
--host=* |
--hos=* |
--ho=*)
590 host_alias
=$ac_optarg ;;
592 -includedir |
--includedir |
--includedi |
--included |
--include \
593 |
--includ |
--inclu |
--incl |
--inc)
594 ac_prev
=includedir
;;
595 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
596 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
597 includedir
=$ac_optarg ;;
599 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
601 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
602 infodir
=$ac_optarg ;;
604 -libdir |
--libdir |
--libdi |
--libd)
606 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
609 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
610 |
--libexe |
--libex |
--libe)
611 ac_prev
=libexecdir
;;
612 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
613 |
--libexe=* |
--libex=* |
--libe=*)
614 libexecdir
=$ac_optarg ;;
616 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
617 |
--localstate |
--localstat |
--localsta |
--localst \
618 |
--locals |
--local |
--loca |
--loc |
--lo)
619 ac_prev
=localstatedir
;;
620 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
621 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
622 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
623 localstatedir
=$ac_optarg ;;
625 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
627 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
631 # Obsolete; use --without-fp.
634 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
635 |
--no-cr |
--no-c |
-n)
638 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
639 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
642 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
643 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
644 |
--oldin |
--oldi |
--old |
--ol |
--o)
645 ac_prev
=oldincludedir
;;
646 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
647 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
648 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
649 oldincludedir
=$ac_optarg ;;
651 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
653 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
656 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
657 |
--program-pre |
--program-pr |
--program-p)
658 ac_prev
=program_prefix
;;
659 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
660 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
661 program_prefix
=$ac_optarg ;;
663 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
664 |
--program-suf |
--program-su |
--program-s)
665 ac_prev
=program_suffix
;;
666 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
667 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
668 program_suffix
=$ac_optarg ;;
670 -program-transform-name |
--program-transform-name \
671 |
--program-transform-nam |
--program-transform-na \
672 |
--program-transform-n |
--program-transform- \
673 |
--program-transform |
--program-transfor \
674 |
--program-transfo |
--program-transf \
675 |
--program-trans |
--program-tran \
676 |
--progr-tra |
--program-tr |
--program-t)
677 ac_prev
=program_transform_name
;;
678 -program-transform-name=* |
--program-transform-name=* \
679 |
--program-transform-nam=* |
--program-transform-na=* \
680 |
--program-transform-n=* |
--program-transform-=* \
681 |
--program-transform=* |
--program-transfor=* \
682 |
--program-transfo=* |
--program-transf=* \
683 |
--program-trans=* |
--program-tran=* \
684 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
685 program_transform_name
=$ac_optarg ;;
687 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
688 |
-silent |
--silent |
--silen |
--sile |
--sil)
691 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
693 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
695 sbindir
=$ac_optarg ;;
697 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
698 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
699 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
701 ac_prev
=sharedstatedir
;;
702 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
703 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
704 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
706 sharedstatedir
=$ac_optarg ;;
708 -site |
--site |
--sit)
710 -site=* |
--site=* |
--sit=*)
713 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
715 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
718 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
719 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
720 ac_prev
=sysconfdir
;;
721 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
722 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
723 sysconfdir
=$ac_optarg ;;
725 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
726 ac_prev
=target_alias
;;
727 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
728 target_alias
=$ac_optarg ;;
730 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
733 -version |
--version |
--versio |
--versi |
--vers |
-V)
737 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package
=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* |
--without-*)
750 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package
=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
763 |
--x-incl |
--x-inc |
--x-in |
--x-i)
764 ac_prev
=x_includes
;;
765 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
766 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
767 x_includes
=$ac_optarg ;;
769 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
770 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
771 ac_prev
=x_libraries
;;
772 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
773 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
774 x_libraries
=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var
in exec_prefix prefix
811 eval ac_val
=$
`echo $ac_var`
813 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val
=$
`echo $ac_var`
825 [\\/$
]* | ?
:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x
; then
840 if test "x$build_alias" = x
; then
841 cross_compiling
=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
852 test "$silent" = yes && exec 6>/dev
/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted
=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir
=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted
=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set
=${build_alias+set}
892 ac_env_build_alias_value
=$build_alias
893 ac_cv_env_build_alias_set
=${build_alias+set}
894 ac_cv_env_build_alias_value
=$build_alias
895 ac_env_host_alias_set
=${host_alias+set}
896 ac_env_host_alias_value
=$host_alias
897 ac_cv_env_host_alias_set
=${host_alias+set}
898 ac_cv_env_host_alias_value
=$host_alias
899 ac_env_target_alias_set
=${target_alias+set}
900 ac_env_target_alias_value
=$target_alias
901 ac_cv_env_target_alias_set
=${target_alias+set}
902 ac_cv_env_target_alias_value
=$target_alias
903 ac_env_CC_set
=${CC+set}
905 ac_cv_env_CC_set
=${CC+set}
906 ac_cv_env_CC_value
=$CC
907 ac_env_CFLAGS_set
=${CFLAGS+set}
908 ac_env_CFLAGS_value
=$CFLAGS
909 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value
=$CFLAGS
911 ac_env_LDFLAGS_set
=${LDFLAGS+set}
912 ac_env_LDFLAGS_value
=$LDFLAGS
913 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value
=$LDFLAGS
915 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value
=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
919 ac_env_CXX_set
=${CXX+set}
920 ac_env_CXX_value
=$CXX
921 ac_cv_env_CXX_set
=${CXX+set}
922 ac_cv_env_CXX_value
=$CXX
923 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
924 ac_env_CXXFLAGS_value
=$CXXFLAGS
925 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
926 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
927 ac_env_CPP_set
=${CPP+set}
928 ac_env_CPP_value
=$CPP
929 ac_cv_env_CPP_set
=${CPP+set}
930 ac_cv_env_CPP_value
=$CPP
931 ac_env_CXXCPP_set
=${CXXCPP+set}
932 ac_env_CXXCPP_value
=$CXXCPP
933 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
934 ac_cv_env_CXXCPP_value
=$CXXCPP
935 ac_env_GMPLIBS_set
=${GMPLIBS+set}
936 ac_env_GMPLIBS_value
=$GMPLIBS
937 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
938 ac_cv_env_GMPLIBS_value
=$GMPLIBS
939 ac_env_GMPINC_set
=${GMPINC+set}
940 ac_env_GMPINC_value
=$GMPINC
941 ac_cv_env_GMPINC_set
=${GMPINC+set}
942 ac_cv_env_GMPINC_value
=$GMPINC
943 ac_env_PPLLIBS_set
=${PPLLIBS+set}
944 ac_env_PPLLIBS_value
=$PPLLIBS
945 ac_cv_env_PPLLIBS_set
=${PPLLIBS+set}
946 ac_cv_env_PPLLIBS_value
=$PPLLIBS
947 ac_env_PPLINC_set
=${PPLINC+set}
948 ac_env_PPLINC_value
=$PPLINC
949 ac_cv_env_PPLINC_set
=${PPLINC+set}
950 ac_cv_env_PPLINC_value
=$PPLINC
951 ac_env_CLOOGLIBS_set
=${CLOOGLIBS+set}
952 ac_env_CLOOGLIBS_value
=$CLOOGLIBS
953 ac_cv_env_CLOOGLIBS_set
=${CLOOGLIBS+set}
954 ac_cv_env_CLOOGLIBS_value
=$CLOOGLIBS
955 ac_env_CLOOGINC_set
=${CLOOGINC+set}
956 ac_env_CLOOGINC_value
=$CLOOGINC
957 ac_cv_env_CLOOGINC_set
=${CLOOGINC+set}
958 ac_cv_env_CLOOGINC_value
=$CLOOGINC
961 # Report the --help message.
963 if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
967 \`configure' configures this package to adapt to many kinds of systems.
969 Usage: $0 [OPTION]... [VAR=VALUE]...
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE. See below for descriptions of some of the useful variables.
974 Defaults for the options are specified in brackets.
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
990 Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1001 For better control, use the options below.
1003 Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1021 --program-prefix=PREFIX prepend PREFIX to installed program names
1022 --program-suffix=SUFFIX append SUFFIX to installed program names
1023 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1026 --build=BUILD configure
for building on BUILD
[guessed
]
1027 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1028 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1032 if test -n "$ac_init_help"; then
1037 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1038 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1039 --enable-generated-files-in-srcdir
1040 put copies of generated files
in source dir
1041 intended
for creating
source tarballs
for users
1042 without texinfo bison or flex.
1043 --enable-werror-always enable -Werror despite compiler version
1044 --enable-checking=LIST
1045 enable expensive run-time checks. With LIST
,
1046 enable only specific categories of checks.
1047 Categories are
: yes,no
,all
,none
,release.
1048 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1049 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1050 --enable-coverage=LEVEL
1051 enable compiler
's code coverage collection.
1052 Use to measure compiler performance and locate
1053 unused parts of the compiler. With LEVEL, specify
1054 optimization. Values are opt, noopt,
1056 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1057 --enable-build-with-cxx build with C++ compiler instead of C compiler
1058 --enable-multilib enable library support for multiple ABIs
1059 --enable-__cxa_atexit enable __cxa_atexit for C++
1060 --enable-decimal-float={no,yes,bid,dpd}
1061 enable decimal float extension to C. Selecting 'bid
'
1062 or 'dpd
' choses which decimal floating point format
1064 --enable-fixed-point enable fixed-point arithmetic extension to C
1065 --enable-threads enable thread usage for target GCC
1066 --enable-threads=LIB use LIB thread package for target GCC
1067 --enable-tls enable or disable generation of tls code
1068 overriding the assembler check for tls support
1069 --enable-objc-gc enable the use of Boehm's garbage collector with
1070 the GNU Objective-C runtime
1071 --disable-shared don
't provide a shared libgcc
1072 --enable-intermodule build the compiler in one step
1073 --enable-languages=LIST specify which front-ends to build
1074 --disable-rpath do not hardcode runtime library paths
1075 --enable-initfini-array use .init_array/.fini_array sections
1076 --enable-sjlj-exceptions
1077 arrange to use setjmp/longjmp exception handling
1078 --enable-secureplt enable -msecure-plt by default for PowerPC
1079 --enable-cld enable -mcld by default for 32bit x86
1080 --disable-win32-registry
1081 disable lookup of installation paths in the
1082 Registry on Windows hosts
1083 --enable-win32-registry enable registry lookup (default)
1084 --enable-win32-registry=KEY
1085 use KEY instead of GCC version as the last portion
1087 --enable-shared[=PKGS]
1088 build shared libraries [default=yes]
1089 --enable-static[=PKGS]
1090 build static libraries [default=yes]
1091 --enable-fast-install[=PKGS]
1092 optimize for fast installation [default=yes]
1093 --disable-libtool-lock avoid locking (might break parallel builds)
1094 --enable-linker-build-id
1095 compiler will always pass --build-id to linker
1096 --enable-maintainer-mode
1097 enable make rules and dependencies not useful
1098 (and sometimes confusing) to the casual installer
1099 --enable-version-specific-runtime-libs
1100 specify that runtime libraries should be
1101 installed in a compiler-specific directory
1102 --enable-plugin enable plugin support
1105 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1106 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1107 --with-build-libsubdir=DIR Directory where to find libraries for build system
1108 --with-local-prefix=DIR specifies directory to put local include
1109 --with-gxx-include-dir=DIR
1110 specifies directory to put g++ header files
1111 --with-cpp-install-dir=DIR
1112 install the user visible C preprocessor in DIR
1113 (relative to PREFIX) as well as PREFIX/bin
1114 --with-gnu-ld arrange to work with GNU ld.
1115 --with-ld arrange to use the specified ld (full pathname)
1116 --with-demangler-in-ld try to use demangler in GNU ld.
1117 --with-gnu-as arrange to work with GNU as
1118 --with-as arrange to use the specified as (full pathname)
1119 --with-stabs arrange to use stabs instead of host debug format
1120 --with-dwarf2 force the default debug format to be DWARF 2
1121 --with-build-sysroot=sysroot
1122 use sysroot as the system root during the build
1123 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1124 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1125 --with-bugurl=URL Direct users to URL to report a bug
1126 --with-multilib-list Select multilibs (SH only)
1127 --with-gnu-ld assume the C compiler uses GNU ld default=no
1128 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1129 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1130 --with-system-libunwind use installed libunwind
1131 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1133 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1134 --with-long-double-128 Use
128-bit long double by default.
1135 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1137 --with-system-zlib use installed libz
1138 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1139 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
1140 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
1141 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
1143 Some influential environment variables
:
1144 CC C compiler
command
1145 CFLAGS C compiler flags
1146 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1147 nonstandard directory
<lib dir
>
1148 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1149 headers
in a nonstandard directory
<include dir
>
1150 CXX C
++ compiler
command
1151 CXXFLAGS C
++ compiler flags
1153 CXXCPP C
++ preprocessor
1154 GMPLIBS How to link GMP
1155 GMPINC How to
find GMP include files
1156 PPLLIBS How to link PPL
1157 PPLINC How to
find PPL include files
1158 CLOOGLIBS How to link CLOOG
1159 CLOOGINC How to
find CLOOG include files
1161 Use these variables to override the choices made by
`configure' or to help
1162 it to find libraries and programs with nonstandard names/locations.
1167 if test "$ac_init_help" = "recursive"; then
1168 # If there are subdirs, report their specific --help.
1170 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1171 test -d $ac_dir || continue
1174 if test "$ac_dir" != .; then
1175 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1176 # A "../" for each directory in $ac_dir_suffix.
1177 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1179 ac_dir_suffix= ac_top_builddir=
1183 .) # No --srcdir option. We are building in place.
1185 if test -z "$ac_top_builddir"; then
1188 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1190 [\\/]* | ?:[\\/]* ) # Absolute path.
1191 ac_srcdir=$srcdir$ac_dir_suffix;
1192 ac_top_srcdir=$srcdir ;;
1194 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1195 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1198 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1199 # the directories may not exist.
1201 .) ac_abs_builddir="$ac_dir";;
1204 .) ac_abs_builddir=`pwd`;;
1205 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1206 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1209 case $ac_abs_builddir in
1210 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1212 case ${ac_top_builddir}. in
1213 .) ac_abs_top_builddir=$ac_abs_builddir;;
1214 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1215 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1218 case $ac_abs_builddir in
1219 .) ac_abs_srcdir=$ac_srcdir;;
1222 .) ac_abs_srcdir=$ac_abs_builddir;;
1223 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1224 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1227 case $ac_abs_builddir in
1228 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1230 case $ac_top_srcdir in
1231 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1232 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1233 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1238 # Check for guested configure; otherwise get Cygnus style configure.
1239 if test -f $ac_srcdir/configure.gnu; then
1241 $SHELL $ac_srcdir/configure.gnu --help=recursive
1242 elif test -f $ac_srcdir/configure; then
1244 $SHELL $ac_srcdir/configure --help=recursive
1245 elif test -f $ac_srcdir/configure.ac ||
1246 test -f $ac_srcdir/configure.in; then
1248 $ac_configure --help
1250 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1256 test -n "$ac_init_help" && exit 0
1257 if $ac_init_version; then
1260 Copyright (C) 2003 Free Software Foundation, Inc.
1261 This configure script is free software; the Free Software Foundation
1262 gives unlimited permission to copy, distribute and modify it.
1268 This file contains any messages produced by compilers while
1269 running configure, to aid debugging if configure makes a mistake.
1271 It was created by $as_me, which was
1272 generated by GNU Autoconf 2.59. Invocation command line was
1283 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1284 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1285 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1286 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1287 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1289 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1290 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1292 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1293 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1294 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1295 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1296 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1297 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1298 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1306 test -z "$as_dir" && as_dir=.
1307 echo "PATH: $as_dir"
1322 # Keep a trace of the command line.
1323 # Strip out --no-create and --no-recursion so they do not pile up.
1324 # Strip out --silent because we don't want to record it for future runs.
1325 # Also quote any args containing shell meta-characters.
1326 # Make two passes to allow for proper duplicate-argument suppression.
1331 ac_must_keep_next=false
1337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339 | -silent | --silent | --silen | --sile | --sil)
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1345 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1347 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1348 if test $ac_must_keep_next = true; then
1349 ac_must_keep_next=false # Got value, back to normal.
1352 *=* | --config-cache | -C | -disable-* | --disable-* \
1353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1355 | -with-* | --with-* | -without-* | --without-* | --x)
1356 case "$ac_configure_args0 " in
1357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1360 -* ) ac_must_keep_next=true ;;
1363 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1364 # Get rid of the leading space.
1370 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1371 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1373 # When interrupted or exit'd, cleanup temporary files, and complete
1374 # config.log. We remove comments because anyway the quotes in there
1375 # would cause problems or look ugly.
1376 # WARNING: Be sure not to use single quotes in there, as some shells,
1377 # such as our DU 5.0 friend, will then `close
' the trap.
1378 trap 'exit_status
=$?
1379 # Save into config.log some information that might help in debugging.
1384 ## ---------------- ##
1385 ## Cache variables. ##
1386 ## ---------------- ##
1389 # The following way of writing the cache mishandles newlines in values,
1392 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1395 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1400 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1407 ## ----------------- ##
1408 ## Output variables. ##
1409 ## ----------------- ##
1412 for ac_var
in $ac_subst_vars
1414 eval ac_val
=$
`echo $ac_var`
1415 echo "$ac_var='"'"'$ac_val'"'"'"
1419 if test -n "$ac_subst_files"; then
1426 for ac_var
in $ac_subst_files
1428 eval ac_val
=$
`echo $ac_var`
1429 echo "$ac_var='"'"'$ac_val'"'"'"
1434 if test -s confdefs.h
; then
1441 sed "/^$/d" confdefs.h |
sort
1444 test "$ac_signal" != 0 &&
1445 echo "$as_me: caught signal $ac_signal"
1446 echo "$as_me: exit $exit_status"
1448 rm -f core
*.core
&&
1449 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1452 for ac_signal in 1 2 13 15; do
1453 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1458 rm -rf conftest* confdefs.h
1459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1462 # Predefined preprocessor variables.
1464 cat >>confdefs.h <<_ACEOF
1465 #define PACKAGE_NAME "$PACKAGE_NAME"
1469 cat >>confdefs.h <<_ACEOF
1470 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1474 cat >>confdefs.h <<_ACEOF
1475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1479 cat >>confdefs.h <<_ACEOF
1480 #define PACKAGE_STRING "$PACKAGE_STRING"
1484 cat >>confdefs.h <<_ACEOF
1485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1489 # Let the site file select an alternate cache file if it wants to.
1490 # Prefer explicitly selected file to automatically selected ones.
1491 if test -z "$CONFIG_SITE"; then
1492 if test "x$prefix" != xNONE; then
1493 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1495 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1498 for ac_site_file in $CONFIG_SITE; do
1499 if test -r "$ac_site_file"; then
1500 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1501 echo "$as_me: loading site script $ac_site_file" >&6;}
1502 sed 's
/^
/|
/' "$ac_site_file" >&5
1507 if test -r "$cache_file"; then
1508 # Some versions of bash will fail to source /dev/null (special
1509 # files actually), so we avoid doing that.
1510 if test -f "$cache_file"; then
1511 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1512 echo "$as_me: loading cache $cache_file" >&6;}
1514 [\\/]* | ?:[\\/]* ) . $cache_file;;
1515 *) . ./$cache_file;;
1519 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1520 echo "$as_me: creating cache $cache_file" >&6;}
1524 # Check that the precious variables saved in the cache have kept the same
1526 ac_cache_corrupted=false
1527 for ac_var in `(set) 2>&1 |
1528 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1529 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1530 eval ac_new_set=\$ac_env_${ac_var}_set
1531 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1532 eval ac_new_val="\$ac_env_${ac_var}_value"
1533 case $ac_old_set,$ac_new_set in
1535 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1536 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1537 ac_cache_corrupted=: ;;
1539 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1540 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1541 ac_cache_corrupted=: ;;
1544 if test "x$ac_old_val" != "x$ac_new_val"; then
1545 # differences in whitespace do not lead to failure.
1546 ac_old_val_w=`echo x $ac_old_val`
1547 ac_new_val_w=`echo x $ac_new_val`
1548 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1549 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1550 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1551 ac_cache_corrupted=:
1553 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1554 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1555 eval $ac_var=\$ac_old_val
1557 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1558 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1559 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1560 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1563 # Pass precious variables to config.status.
1564 if test "$ac_new_set" = set; then
1566 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1567 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1568 *) ac_arg=$ac_var=$ac_new_val ;;
1570 case " $ac_configure_args " in
1571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1572 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1576 if $ac_cache_corrupted; then
1577 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1578 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1579 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1580 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1581 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1582 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1583 { (exit 1); exit 1; }; }
1587 ac_cpp='$CPP $CPPFLAGS'
1588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1617 gcc_version=`cat $srcdir/BASE-VER
`
1619 # Determine the host, build, and target systems
1621 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1622 if test -f $ac_dir/install-sh; then
1624 ac_install_sh="$ac_aux_dir/install-sh -c"
1626 elif test -f $ac_dir/install.sh; then
1628 ac_install_sh="$ac_aux_dir/install.sh -c"
1630 elif test -f $ac_dir/shtool; then
1632 ac_install_sh="$ac_aux_dir/shtool install -c"
1636 if test -z "$ac_aux_dir"; then
1637 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1638 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1639 { (exit 1); exit 1; }; }
1641 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1642 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1643 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1645 # Make sure we can run config.sub.
1646 $ac_config_sub sun4 >/dev/null 2>&1 ||
1647 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1648 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1649 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: checking build system type" >&5
1652 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1653 if test "${ac_cv_build+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 ac_cv_build_alias=$build_alias
1657 test -z "$ac_cv_build_alias" &&
1658 ac_cv_build_alias=`$ac_config_guess`
1659 test -z "$ac_cv_build_alias" &&
1660 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1661 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1662 { (exit 1); exit 1; }; }
1663 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1664 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1666 { (exit 1); exit 1; }; }
1669 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1670 echo "${ECHO_T}$ac_cv_build" >&6
1672 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1677 echo "$as_me:$LINENO: checking host system type" >&5
1678 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1679 if test "${ac_cv_host+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 ac_cv_host_alias=$host_alias
1683 test -z "$ac_cv_host_alias" &&
1684 ac_cv_host_alias=$ac_cv_build_alias
1685 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1686 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1688 { (exit 1); exit 1; }; }
1691 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1692 echo "${ECHO_T}$ac_cv_host" >&6
1694 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1699 echo "$as_me:$LINENO: checking target system type" >&5
1700 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1701 if test "${ac_cv_target+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 ac_cv_target_alias=$target_alias
1705 test "x$ac_cv_target_alias" = "x" &&
1706 ac_cv_target_alias=$ac_cv_host_alias
1707 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1708 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1709 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1710 { (exit 1); exit 1; }; }
1713 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1714 echo "${ECHO_T}$ac_cv_target" >&6
1715 target=$ac_cv_target
1716 target_cpu=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717 target_vendor=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718 target_os=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1721 # The aliases save the names the user supplied, while $host etc.
1722 # will get canonicalized.
1723 test -n "$target_alias" &&
1724 test "$program_prefix$program_suffix$program_transform_name" = \
1726 program_prefix=${target_alias}-
1728 # Determine the noncanonical target name, for directory use.
1729 case ${build_alias} in
1730 "") build_noncanonical=${build} ;;
1731 *) build_noncanonical=${build_alias} ;;
1734 case ${host_alias} in
1735 "") host_noncanonical=${build_noncanonical} ;;
1736 *) host_noncanonical=${host_alias} ;;
1739 case ${target_alias} in
1740 "") target_noncanonical=${host_noncanonical} ;;
1741 *) target_noncanonical=${target_alias} ;;
1747 # Determine the target- and build-specific subdirectories
1749 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1750 # have matching libraries, they should use host libraries: Makefile.tpl
1751 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1752 # However, they still use the build modules, because the corresponding
1753 # host modules (e.g. bison) are only built for the host when bootstrap
1755 # - build_subdir is where we find build modules, and never changes.
1756 # - build_libsubdir is where we find build libraries, and can be overridden.
1758 # Prefix 'build-' so this never conflicts with target_subdir.
1759 build_subdir="build-${build_noncanonical}"
1761 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1762 if test "${with_build_libsubdir+set}" = set; then
1763 withval="$with_build_libsubdir"
1764 build_libsubdir="$withval"
1766 build_libsubdir="$build_subdir"
1768 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1769 if ( test $srcdir = . && test -d gcc ) \
1770 || test -d $srcdir/../host-${host_noncanonical}; then
1771 host_subdir="host-${host_noncanonical}"
1776 target_subdir=${target_noncanonical}
1779 # Set program_transform_name
1780 test "$program_prefix" != NONE &&
1781 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1782 # Use a double $ so make ignores it.
1783 test "$program_suffix" != NONE &&
1784 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1785 # Double any \ or $. echo might interpret backslashes.
1786 # By default was `s
,x
,x
', remove it if useless.
1787 cat <<\_ACEOF >conftest.sed
1788 s/[\\$]/&&/g;s/;s,x,x,$//
1790 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1794 # Check for bogus environment variables.
1795 # Test if LIBRARY_PATH contains the notation for the current directory
1796 # since this would lead to problems installing/building glibc.
1797 # LIBRARY_PATH contains the current directory if one of the following
1799 # - one of the terminals (":" and ";") is the first or last sign
1800 # - two terminals occur directly after each other
1801 # - the path contains an element with a dot in it
1802 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1803 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1804 case ${LIBRARY_PATH} in
1805 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1806 library_path_setting="contains current directory"
1809 library_path_setting="ok"
1812 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1813 echo "${ECHO_T}$library_path_setting" >&6
1814 if test "$library_path_setting" != "ok"; then
1815 { { echo "$as_me:$LINENO: error:
1816 *** LIBRARY_PATH shouldn't contain the current directory when
1817 *** building gcc. Please change the environment variable
1818 *** and run configure again.
" >&5
1819 echo "$as_me: error
:
1820 *** LIBRARY_PATH shouldn
't contain the current directory when
1821 *** building gcc. Please change the environment variable
1822 *** and run configure again." >&2;}
1823 { (exit 1); exit 1; }; }
1826 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1827 # since this would lead to problems installing/building glibc.
1828 # GCC_EXEC_PREFIX contains the current directory if one of the following
1830 # - one of the terminals (":" and ";") is the first or last sign
1831 # - two terminals occur directly after each other
1832 # - the path contains an element with a dot in it
1833 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1834 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1835 case ${GCC_EXEC_PREFIX} in
1836 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1837 gcc_exec_prefix_setting="contains current directory"
1840 gcc_exec_prefix_setting="ok"
1843 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1844 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1845 if test "$gcc_exec_prefix_setting" != "ok"; then
1846 { { echo "$as_me:$LINENO: error:
1847 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1848 *** building gcc. Please change the environment variable
1849 *** and run configure again.
" >&5
1850 echo "$as_me: error
:
1851 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
1852 *** building gcc. Please change the environment variable
1853 *** and run configure again." >&2;}
1854 { (exit 1); exit 1; }; }
1861 # Specify the local prefix
1864 # Check whether --with-local-prefix or --without-local-prefix was given.
1865 if test "${with_local_prefix+set}" = set; then
1866 withval="$with_local_prefix"
1867 case "${withval}" in
1868 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1869 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1870 { (exit 1); exit 1; }; } ;;
1872 *) local_prefix=$with_local_prefix ;;
1876 # Default local prefix if it is empty
1877 if test x$local_prefix = x; then
1878 local_prefix=/usr/local
1881 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
1882 # passed in by the toplevel make and thus we'd get different behavior
1883 # depending on where we built the sources.
1884 gcc_gxx_include_dir
=
1885 # Specify the g++ header file directory
1887 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1888 if test "${with_gxx_include_dir+set}" = set; then
1889 withval
="$with_gxx_include_dir"
1890 case "${withval}" in
1891 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1892 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1893 { (exit 1); exit 1; }; } ;;
1895 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1899 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1900 if test x
${gcc_gxx_include_dir} = x
; then
1901 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1902 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1904 libstdcxx_incdir
='include/c++/$(version)'
1905 if test x
$host != x
$target; then
1906 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1908 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1913 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1914 if test "${with_cpp_install_dir+set}" = set; then
1915 withval
="$with_cpp_install_dir"
1916 if test x
$withval = xyes
; then
1917 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1918 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1919 { (exit 1); exit 1; }; }
1920 elif test x
$withval != xno
; then
1921 cpp_install_dir
=$withval
1925 # We would like to our source tree to be readonly. However when releases or
1926 # pre-releases are generated, the flex/bison generated files as well as the
1927 # various formats of manuals need to be included along with the rest of the
1928 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1931 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1932 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1933 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1934 if test "${enable_generated_files_in_srcdir+set}" = set; then
1935 enableval
="$enable_generated_files_in_srcdir"
1936 generated_files_in_srcdir
=$enableval
1938 generated_files_in_srcdir
=no
1941 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1942 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1944 if test "$generated_files_in_srcdir" = "yes"; then
1951 # -------------------
1952 # Find default linker
1953 # -------------------
1957 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1958 if test "${with_gnu_ld+set}" = set; then
1959 withval
="$with_gnu_ld"
1960 gnu_ld_flag
="$with_gnu_ld"
1965 # With pre-defined ld
1967 # Check whether --with-ld or --without-ld was given.
1968 if test "${with_ld+set}" = set; then
1970 DEFAULT_LINKER
="$with_ld"
1972 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1973 if test ! -x "$DEFAULT_LINKER"; then
1974 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1975 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1976 { (exit 1); exit 1; }; }
1977 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1981 cat >>confdefs.h
<<_ACEOF
1982 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1987 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1989 cat >>confdefs.h
<<_ACEOF
1990 #define HAVE_GNU_LD $gnu_ld
1994 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1995 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1996 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1997 if test x
"$gnu_ld_flag" = x
"no"; then
1998 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1999 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
2001 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2002 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2009 # With demangler in GNU ld
2011 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
2012 if test "${with_demangler_in_ld+set}" = set; then
2013 withval
="$with_demangler_in_ld"
2014 demangler_in_ld
="$with_demangler_in_ld"
2019 # ----------------------
2020 # Find default assembler
2021 # ----------------------
2025 # Check whether --with-gnu-as or --without-gnu-as was given.
2026 if test "${with_gnu_as+set}" = set; then
2027 withval
="$with_gnu_as"
2028 gas_flag
="$with_gnu_as"
2034 # Check whether --with-as or --without-as was given.
2035 if test "${with_as+set}" = set; then
2037 DEFAULT_ASSEMBLER
="$with_as"
2039 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2040 if test ! -x "$DEFAULT_ASSEMBLER"; then
2041 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2042 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2043 { (exit 1); exit 1; }; }
2044 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2048 cat >>confdefs.h
<<_ACEOF
2049 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2054 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2056 cat >>confdefs.h
<<_ACEOF
2057 #define HAVE_GNU_AS $gnu_as
2061 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2062 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2063 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2064 if test x
"$gas_flag" = x
"no"; then
2065 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2066 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2068 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2069 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2080 # If a non-executable a.out is present (e.g. created by GNU as above even if
2081 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2082 # file, even when creating an executable, so an execution test fails.
2083 # Remove possible default executable files to avoid this.
2085 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2086 # Autoconf includes it.
2087 rm -f a.out a.exe b.out
2089 # Find the native compiler
2091 ac_cpp
='$CPP $CPPFLAGS'
2092 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2095 if test -n "$ac_tool_prefix"; then
2096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2097 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test -n "$CC"; then
2104 ac_cv_prog_CC
="$CC" # Let the user override the test.
2106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir
=.
2111 for ac_exec_ext
in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 if test -n "$CC"; then
2124 echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2132 if test -z "$ac_cv_prog_CC"; then
2134 # Extract the first word of "gcc", so it can be a program name with args.
2135 set dummy gcc
; ac_word
=$2
2136 echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 if test -n "$ac_ct_CC"; then
2142 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir
=.
2149 for ac_exec_ext
in '' $ac_executable_extensions; do
2150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151 ac_cv_prog_ac_ct_CC
="gcc"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2161 if test -n "$ac_ct_CC"; then
2162 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163 echo "${ECHO_T}$ac_ct_CC" >&6
2165 echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6
2174 if test -z "$CC"; then
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2177 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC
="$CC" # Let the user override the test.
2186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir
=.
2191 for ac_exec_ext
in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test -n "$CC"; then
2204 echo "$as_me:$LINENO: result: $CC" >&5
2205 echo "${ECHO_T}$CC" >&6
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2212 if test -z "$ac_cv_prog_CC"; then
2214 # Extract the first word of "cc", so it can be a program name with args.
2215 set dummy cc
; ac_word
=$2
2216 echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test -n "$ac_ct_CC"; then
2222 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir
=.
2229 for ac_exec_ext
in '' $ac_executable_extensions; do
2230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231 ac_cv_prog_ac_ct_CC
="cc"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2241 if test -n "$ac_ct_CC"; then
2242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243 echo "${ECHO_T}$ac_ct_CC" >&6
2245 echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6
2255 if test -z "$CC"; then
2256 # Extract the first word of "cc", so it can be a program name with args.
2257 set dummy cc
; ac_word
=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 if test -n "$CC"; then
2264 ac_cv_prog_CC
="$CC" # Let the user override the test.
2267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2271 test -z "$as_dir" && as_dir
=.
2272 for ac_exec_ext
in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2275 ac_prog_rejected
=yes
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 if test $ac_prog_rejected = yes; then
2286 # We found a bogon in the path, so make sure we never use it.
2287 set dummy
$ac_cv_prog_CC
2289 if test $# != 0; then
2290 # We chose a different compiler from the bogus one.
2291 # However, it has the same basename, so the bogon will be chosen
2292 # first if we set CC to just the basename; use the full file name.
2294 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2300 if test -n "$CC"; then
2301 echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2304 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2309 if test -z "$CC"; then
2310 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2314 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_prog_CC+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC
="$CC" # Let the user override the test.
2323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2327 test -z "$as_dir" && as_dir
=.
2328 for ac_exec_ext
in '' $ac_executable_extensions; do
2329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 if test -n "$CC"; then
2341 echo "$as_me:$LINENO: result: $CC" >&5
2342 echo "${ECHO_T}$CC" >&6
2344 echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2348 test -n "$CC" && break
2351 if test -z "$CC"; then
2355 # Extract the first word of "$ac_prog", so it can be a program name with args.
2356 set dummy
$ac_prog; ac_word
=$2
2357 echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$ac_ct_CC"; then
2363 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir
=.
2370 for ac_exec_ext
in '' $ac_executable_extensions; do
2371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372 ac_cv_prog_ac_ct_CC
="$ac_prog"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2382 if test -n "$ac_ct_CC"; then
2383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2384 echo "${ECHO_T}$ac_ct_CC" >&6
2386 echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2390 test -n "$ac_ct_CC" && break
2399 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2400 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2402 See \`config.log' for more details." >&5
2403 echo "$as_me: error: no acceptable C compiler found in \$PATH
2404 See \`config.log' for more details." >&2;}
2405 { (exit 1); exit 1; }; }; }
2407 # Provide some information about the compiler.
2408 echo "$as_me:$LINENO:" \
2409 "checking for C compiler version" >&5
2410 ac_compiler
=`set X $ac_compile; echo $2`
2411 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2412 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }
2416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2417 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }
2421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2422 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2427 cat >conftest.
$ac_ext <<_ACEOF
2430 cat confdefs.h
>>conftest.
$ac_ext
2431 cat >>conftest.
$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2442 ac_clean_files_save
=$ac_clean_files
2443 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2444 # Try to create an executable without -o first, disregard a.out.
2445 # It will help us diagnose broken compilers, and finding out an intuition
2447 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2448 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2449 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2450 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2451 (eval $ac_link_default) 2>&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 # Find the output, starting from the most likely. This scheme is
2456 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2459 # Be careful to initialize this variable, since it used to be cached.
2460 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2462 # b.out is created by i960 compilers.
2463 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2465 test -f "$ac_file" ||
continue
2467 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2470 # This is the source file.
2473 # We found the default executable, but exeext='' is most
2477 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2478 # FIXME: I believe we export ac_cv_exeext for Libtool,
2479 # but it would be cool to find out if it's true. Does anybody
2480 # maintain Libtool? --akim.
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.
$ac_ext >&5
2491 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2492 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2494 See \`config.log' for more details." >&5
2495 echo "$as_me: error: C compiler cannot create executables
2496 See \`config.log' for more details." >&2;}
2497 { (exit 77); exit 77; }; }; }
2500 ac_exeext
=$ac_cv_exeext
2501 echo "$as_me:$LINENO: result: $ac_file" >&5
2502 echo "${ECHO_T}$ac_file" >&6
2504 # Check the compiler produces executables we can run. If not, either
2505 # the compiler is broken, or we cross compile.
2506 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2507 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2508 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2509 # If not cross compiling, check that we can run a simple program.
2510 if test "$cross_compiling" != yes; then
2511 if { ac_try
='./$ac_file'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2519 if test "$cross_compiling" = maybe
; then
2522 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2523 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot run C compiled programs.
2528 If you meant to cross compile, use \`--host'.
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }; }
2534 echo "$as_me:$LINENO: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6
2537 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2538 ac_clean_files
=$ac_clean_files_save
2539 # Check the compiler produces executables we can run. If not, either
2540 # the compiler is broken, or we cross compile.
2541 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2543 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2544 echo "${ECHO_T}$cross_compiling" >&6
2546 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2547 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549 (eval $ac_link) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; then
2553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2554 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2555 # work properly (i.e., refer to `conftest.exe'), while it won't with
2557 for ac_file
in conftest.exe conftest conftest.
*; do
2558 test -f "$ac_file" ||
continue
2560 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2561 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2568 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2569 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2571 See \`config.log' for more details." >&5
2572 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2573 See \`config.log' for more details." >&2;}
2574 { (exit 1); exit 1; }; }; }
2577 rm -f conftest
$ac_cv_exeext
2578 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2579 echo "${ECHO_T}$ac_cv_exeext" >&6
2581 rm -f conftest.
$ac_ext
2582 EXEEXT
=$ac_cv_exeext
2584 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2585 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2586 if test "${ac_cv_objext+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 cat >conftest.
$ac_ext <<_ACEOF
2592 cat confdefs.h
>>conftest.
$ac_ext
2593 cat >>conftest.
$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2604 rm -f conftest.o conftest.obj
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; then
2610 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2612 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2613 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.
$ac_ext >&5
2621 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2622 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2626 See \`config.log' for more details." >&2;}
2627 { (exit 1); exit 1; }; }; }
2630 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2632 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2633 echo "${ECHO_T}$ac_cv_objext" >&6
2634 OBJEXT
=$ac_cv_objext
2636 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2637 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2638 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 cat >conftest.
$ac_ext <<_ACEOF
2644 cat confdefs.h
>>conftest.
$ac_ext
2645 cat >>conftest.
$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2659 rm -f conftest.
$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>conftest.er1
2663 grep -v '^ *+' conftest.er1
>conftest.err
2665 cat conftest.err
>&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try
='test -z "$ac_c_werror_flag"
2669 || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try
='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.
$ac_ext >&5
2688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2689 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2692 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2693 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2694 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2695 ac_test_CFLAGS
=${CFLAGS+set}
2696 ac_save_CFLAGS
=$CFLAGS
2698 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2699 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2700 if test "${ac_cv_prog_cc_g+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 cat >conftest.
$ac_ext <<_ACEOF
2706 cat confdefs.h
>>conftest.
$ac_ext
2707 cat >>conftest.
$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2718 rm -f conftest.
$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2722 grep -v '^ *+' conftest.er1
>conftest.err
2724 cat conftest.err
>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try
='test -z "$ac_c_werror_flag"
2728 || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try
='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.
$ac_ext >&5
2747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2749 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2750 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2751 if test "$ac_test_CFLAGS" = set; then
2752 CFLAGS
=$ac_save_CFLAGS
2753 elif test $ac_cv_prog_cc_g = yes; then
2754 if test "$GCC" = yes; then
2760 if test "$GCC" = yes; then
2766 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2767 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 ac_cv_prog_cc_stdc
=no
2773 cat >conftest.
$ac_ext <<_ACEOF
2776 cat confdefs.h
>>conftest.
$ac_ext
2777 cat >>conftest.
$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2781 #include <sys/types.h>
2782 #include <sys/stat.h>
2783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2784 struct buf { int x; };
2785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2786 static char *e (p, i)
2792 static char *f (char * (*g) (char **, int), char **p, ...)
2797 s = g (p, va_arg (v,int));
2802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2803 function prototypes and stuff, but not '\xHH' hex character constants.
2804 These don't provoke an error unfortunately, instead are silently treated
2805 as 'x'. The following induces an error, until -std1 is added to get
2806 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2807 array size at least. It's necessary to write '\x00'==0 to get something
2808 that's true only with -std1. */
2809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2811 int test (int i, double x);
2812 struct s1 {int (*f) (int a);};
2813 struct s2 {int (*f) (double a);};
2814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2825 # Don't try gcc -ansi; that turns off useful extensions and
2826 # breaks some systems' header files.
2827 # AIX -qlanglvl=ansi
2828 # Ultrix and OSF/1 -std1
2829 # HP-UX 10.20 and later -Ae
2830 # HP-UX older versions -Aa -D_HPUX_SOURCE
2831 # SVR4 -Xc -D__EXTENSIONS__
2832 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2834 CC
="$ac_save_CC $ac_arg"
2835 rm -f conftest.
$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1
>conftest.err
2841 cat conftest.err
>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try
='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try
='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_prog_cc_stdc
=$ac_arg
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.
$ac_ext >&5
2864 rm -f conftest.err conftest.
$ac_objext
2866 rm -f conftest.
$ac_ext conftest.
$ac_objext
2871 case "x$ac_cv_prog_cc_stdc" in
2873 echo "$as_me:$LINENO: result: none needed" >&5
2874 echo "${ECHO_T}none needed" >&6 ;;
2876 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2877 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2878 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2881 # Some people use a C++ compiler to compile C. Since we use `exit',
2882 # in C++ we need to declare it. In case someone uses the same compiler
2883 # for both compiling C and C++ we need to have the C++ compiler decide
2884 # the declaration of exit, since it's the most demanding environment.
2885 cat >conftest.
$ac_ext <<_ACEOF
2890 rm -f conftest.
$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try
='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try
='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 for ac_declaration
in \
2914 'extern "C" void std::exit (int) throw (); using std::exit;' \
2915 'extern "C" void std::exit (int); using std::exit;' \
2916 'extern "C" void exit (int) throw ();' \
2917 'extern "C" void exit (int);' \
2920 cat >conftest.
$ac_ext <<_ACEOF
2923 cat confdefs.h
>>conftest.
$ac_ext
2924 cat >>conftest.
$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2936 rm -f conftest.
$ac_objext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2938 (eval $ac_compile) 2>conftest.er1
2940 grep -v '^ *+' conftest.er1
>conftest.err
2942 cat conftest.err
>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } &&
2945 { ac_try
='test -z "$ac_c_werror_flag"
2946 || test ! -s conftest.err'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try
='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.
$ac_ext >&5
2965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2966 cat >conftest.
$ac_ext <<_ACEOF
2969 cat confdefs.h
>>conftest.
$ac_ext
2970 cat >>conftest.
$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2981 rm -f conftest.
$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983 (eval $ac_compile) 2>conftest.er1
2985 grep -v '^ *+' conftest.er1
>conftest.err
2987 cat conftest.err
>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try
='test -z "$ac_c_werror_flag"
2991 || test ! -s conftest.err'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; } &&
2997 { ac_try
='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.
$ac_ext >&5
3009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3012 if test -n "$ac_declaration"; then
3013 echo '#ifdef __cplusplus' >>confdefs.h
3014 echo $ac_declaration >>confdefs.h
3015 echo '#endif' >>confdefs.h
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.
$ac_ext >&5
3023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3025 ac_cpp
='$CPP $CPPFLAGS'
3026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3030 if test "x$CC" != xcc
; then
3031 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3032 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3034 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3035 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3037 set dummy
$CC; ac_cc
=`echo $2 |
3038 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3039 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 cat >conftest.
$ac_ext <<_ACEOF
3045 cat confdefs.h
>>conftest.
$ac_ext
3046 cat >>conftest.
$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 # Make sure it works both with $CC and with simple cc.
3058 # We do the test twice because some compilers refuse to overwrite an
3059 # existing .o file with -o, though they will create one.
3060 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3061 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); };
3072 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3073 if test "x$CC" != xcc
; then
3074 # Test first that cc exists at all.
3075 if { ac_try
='cc -c conftest.$ac_ext >&5'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; }; then
3081 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3082 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); };
3096 # cc exists but doesn't like -o.
3097 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3102 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3107 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3108 echo "$as_me:$LINENO: result: yes" >&5
3109 echo "${ECHO_T}yes" >&6
3111 echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3114 cat >>confdefs.h
<<\_ACEOF
3115 #define NO_MINUS_C_MINUS_O 1
3120 # expand $ac_aux_dir to an absolute path
3121 am_aux_dir
=`cd $ac_aux_dir && pwd`
3123 # FIXME: we rely on the cache variable name because
3124 # there is no other way.
3126 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3127 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3128 # Losing compiler, so override with the script.
3129 # FIXME: It is wrong to rewrite CC.
3130 # But if we don't then we get into trouble of one sort or another.
3131 # A longer-term fix would be to have automake use am__CC in this case,
3132 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3133 CC
="$am_aux_dir/compile $CC"
3137 ac_cpp
='$CXXCPP $CPPFLAGS'
3138 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3141 if test -n "$ac_tool_prefix"; then
3142 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CXX+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if test -n "$CXX"; then
3152 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir
=.
3159 for ac_exec_ext
in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 if test -n "$CXX"; then
3172 echo "$as_me:$LINENO: result: $CXX" >&5
3173 echo "${ECHO_T}$CXX" >&6
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3179 test -n "$CXX" && break
3182 if test -z "$CXX"; then
3184 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187 set dummy
$ac_prog; ac_word
=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -n "$ac_ct_CXX"; then
3194 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir
=.
3201 for ac_exec_ext
in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3213 if test -n "$ac_ct_CXX"; then
3214 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3215 echo "${ECHO_T}$ac_ct_CXX" >&6
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3221 test -n "$ac_ct_CXX" && break
3223 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
3229 # Provide some information about the compiler.
3230 echo "$as_me:$LINENO:" \
3231 "checking for C++ compiler version" >&5
3232 ac_compiler
=`set X $ac_compile; echo $2`
3233 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3234 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3239 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }
3243 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3244 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3249 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3250 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3251 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.
$ac_ext <<_ACEOF
3257 cat confdefs.h
>>conftest.
$ac_ext
3258 cat >>conftest.
$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3272 rm -f conftest.
$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3276 grep -v '^ *+' conftest.er1
>conftest.err
3278 cat conftest.err
>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try
='test -z "$ac_cxx_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try
='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.
$ac_ext >&5
3301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3302 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3305 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3307 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3309 ac_save_CXXFLAGS
=$CXXFLAGS
3311 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3312 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3313 if test "${ac_cv_prog_cxx_g+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.
$ac_ext <<_ACEOF
3319 cat confdefs.h
>>conftest.
$ac_ext
3320 cat >>conftest.
$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3331 rm -f conftest.
$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3335 grep -v '^ *+' conftest.er1
>conftest.err
3337 cat conftest.err
>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try
='test -z "$ac_cxx_werror_flag"
3341 || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try
='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cxx_g
=yes
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.
$ac_ext >&5
3360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3362 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3364 if test "$ac_test_CXXFLAGS" = set; then
3365 CXXFLAGS
=$ac_save_CXXFLAGS
3366 elif test $ac_cv_prog_cxx_g = yes; then
3367 if test "$GXX" = yes; then
3373 if test "$GXX" = yes; then
3379 for ac_declaration
in \
3381 'extern "C" void std::exit (int) throw (); using std::exit;' \
3382 'extern "C" void std::exit (int); using std::exit;' \
3383 'extern "C" void exit (int) throw ();' \
3384 'extern "C" void exit (int);' \
3387 cat >conftest.
$ac_ext <<_ACEOF
3390 cat confdefs.h
>>conftest.
$ac_ext
3391 cat >>conftest.
$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3403 rm -f conftest.
$ac_objext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>conftest.er1
3407 grep -v '^ *+' conftest.er1
>conftest.err
3409 cat conftest.err
>&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try
='test -z "$ac_cxx_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try
='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.
$ac_ext >&5
3432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3433 cat >conftest.
$ac_ext <<_ACEOF
3436 cat confdefs.h
>>conftest.
$ac_ext
3437 cat >>conftest.
$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3448 rm -f conftest.
$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>conftest.er1
3452 grep -v '^ *+' conftest.er1
>conftest.err
3454 cat conftest.err
>&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try
='test -z "$ac_cxx_werror_flag"
3458 || test ! -s conftest.err'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; } &&
3464 { ac_try
='test -s conftest.$ac_objext'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.
$ac_ext >&5
3476 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3479 if test -n "$ac_declaration"; then
3480 echo '#ifdef __cplusplus' >>confdefs.h
3481 echo $ac_declaration >>confdefs.h
3482 echo '#endif' >>confdefs.h
3486 ac_cpp
='$CPP $CPPFLAGS'
3487 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3496 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -n "$GNATBIND"; then
3503 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 GNATBIND
=$ac_cv_prog_GNATBIND
3522 if test -n "$GNATBIND"; then
3523 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3524 echo "${ECHO_T}$GNATBIND" >&6
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3531 if test -z "$ac_cv_prog_GNATBIND"; then
3532 ac_ct_GNATBIND
=$GNATBIND
3533 # Extract the first word of "gnatbind", so it can be a program name with args.
3534 set dummy gnatbind
; ac_word
=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 if test -n "$ac_ct_GNATBIND"; then
3541 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir
=.
3548 for ac_exec_ext
in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3560 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3561 if test -n "$ac_ct_GNATBIND"; then
3562 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3563 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3569 GNATBIND
=$ac_ct_GNATBIND
3571 GNATBIND
="$ac_cv_prog_GNATBIND"
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3576 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
3577 echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 if test -n "$GNATMAKE"; then
3583 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
3585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir
=.
3590 for ac_exec_ext
in '' $ac_executable_extensions; do
3591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 GNATMAKE
=$ac_cv_prog_GNATMAKE
3602 if test -n "$GNATMAKE"; then
3603 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3604 echo "${ECHO_T}$GNATMAKE" >&6
3606 echo "$as_me:$LINENO: result: no" >&5
3607 echo "${ECHO_T}no" >&6
3611 if test -z "$ac_cv_prog_GNATMAKE"; then
3612 ac_ct_GNATMAKE
=$GNATMAKE
3613 # Extract the first word of "gnatmake", so it can be a program name with args.
3614 set dummy gnatmake
; ac_word
=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 if test -n "$ac_ct_GNATMAKE"; then
3621 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
3623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3627 test -z "$as_dir" && as_dir
=.
3628 for ac_exec_ext
in '' $ac_executable_extensions; do
3629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE
="no"
3640 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
3641 if test -n "$ac_ct_GNATMAKE"; then
3642 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3643 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3645 echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3649 GNATMAKE
=$ac_ct_GNATMAKE
3651 GNATMAKE
="$ac_cv_prog_GNATMAKE"
3654 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3655 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3656 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 cat >conftest.adb
<<EOF
3660 procedure conftest is begin null; end conftest;
3662 acx_cv_cc_gcc_supports_ada
=no
3663 # There is a bug in old released versions of GCC which causes the
3664 # driver to exit successfully when the appropriate language module
3665 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3666 # Therefore we must check for the error message as well as an
3667 # unsuccessful exit.
3668 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3669 # given a .adb file, but produce no object file. So we must check
3670 # if an object file was really produced to guard against this.
3671 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3672 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
3673 acx_cv_cc_gcc_supports_ada
=yes
3677 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3678 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3680 if test x
$GNATBIND != xno
&& test x
$GNATMAKE != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
3687 # autoconf is lame and doesn't give us any substitution variable for this.
3688 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3689 NO_MINUS_C_MINUS_O
=yes
3691 OUTPUT_OPTION
='-o $@'
3696 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3697 # optimizations to be activated explicitly by the toplevel.
3699 */prev-gcc
/xgcc
*) ;;
3700 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3704 # -------------------------
3705 # Check C compiler features
3706 # -------------------------
3710 ac_cpp
='$CPP $CPPFLAGS'
3711 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3714 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3715 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3716 # On Suns, sometimes $CPP names a directory.
3717 if test -n "$CPP" && test -d "$CPP"; then
3720 if test -z "$CPP"; then
3721 if test "${ac_cv_prog_CPP+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 # Double quotes because CPP needs to be expanded
3725 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3728 for ac_c_preproc_warn_flag
in '' yes
3730 # Use a header file that comes with gcc, so configuring glibc
3731 # with a fresh cross-compiler works.
3732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3733 # <limits.h> exists even on freestanding compilers.
3734 # On the NeXT, cc -E runs the code through the compiler's parser,
3735 # not just through cpp. "Syntax error" is here to catch this case.
3736 cat >conftest.
$ac_ext <<_ACEOF
3739 cat confdefs.h
>>conftest.
$ac_ext
3740 cat >>conftest.
$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3743 # include <limits.h>
3745 # include <assert.h>
3749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3750 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3752 grep -v '^ *+' conftest.er1
>conftest.err
3754 cat conftest.err
>&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } >/dev
/null
; then
3757 if test -s conftest.err
; then
3758 ac_cpp_err
=$ac_c_preproc_warn_flag
3759 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3766 if test -z "$ac_cpp_err"; then
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.
$ac_ext >&5
3772 # Broken: fails on valid input.
3775 rm -f conftest.err conftest.
$ac_ext
3777 # OK, works on sane cases. Now check whether non-existent headers
3778 # can be detected and how.
3779 cat >conftest.
$ac_ext <<_ACEOF
3782 cat confdefs.h
>>conftest.
$ac_ext
3783 cat >>conftest.
$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 #include <ac_nonexistent.h>
3787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3788 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3790 grep -v '^ *+' conftest.er1
>conftest.err
3792 cat conftest.err
>&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev
/null
; then
3795 if test -s conftest.err
; then
3796 ac_cpp_err
=$ac_c_preproc_warn_flag
3797 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3804 if test -z "$ac_cpp_err"; then
3805 # Broken: success on invalid input.
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.
$ac_ext >&5
3811 # Passes both tests.
3815 rm -f conftest.err conftest.
$ac_ext
3818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3819 rm -f conftest.err conftest.
$ac_ext
3820 if $ac_preproc_ok; then
3832 echo "$as_me:$LINENO: result: $CPP" >&5
3833 echo "${ECHO_T}$CPP" >&6
3835 for ac_c_preproc_warn_flag
in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3850 # include <limits.h>
3852 # include <assert.h>
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1
>conftest.err
3861 cat conftest.err
>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev
/null
; then
3864 if test -s conftest.err
; then
3865 ac_cpp_err
=$ac_c_preproc_warn_flag
3866 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3873 if test -z "$ac_cpp_err"; then
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 # Broken: fails on valid input.
3882 rm -f conftest.err conftest.
$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.
$ac_ext <<_ACEOF
3889 cat confdefs.h
>>conftest.
$ac_ext
3890 cat >>conftest.
$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1
>conftest.err
3899 cat conftest.err
>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev
/null
; then
3902 if test -s conftest.err
; then
3903 ac_cpp_err
=$ac_c_preproc_warn_flag
3904 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.
$ac_ext >&5
3918 # Passes both tests.
3922 rm -f conftest.err conftest.
$ac_ext
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.
$ac_ext
3927 if $ac_preproc_ok; then
3930 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3931 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3933 See \`config.log' for more details." >&5
3934 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3935 See \`config.log' for more details." >&2;}
3936 { (exit 1); exit 1; }; }; }
3940 ac_cpp
='$CPP $CPPFLAGS'
3941 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3946 echo "$as_me:$LINENO: checking for egrep" >&5
3947 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3948 if test "${ac_cv_prog_egrep+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3952 then ac_cv_prog_egrep
='grep -E'
3953 else ac_cv_prog_egrep
='egrep'
3956 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3957 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3958 EGREP
=$ac_cv_prog_egrep
3961 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3963 if test "${ac_cv_header_stdc+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 cat >conftest.
$ac_ext <<_ACEOF
3969 cat confdefs.h
>>conftest.
$ac_ext
3970 cat >>conftest.
$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3985 rm -f conftest.
$ac_objext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3989 grep -v '^ *+' conftest.er1
>conftest.err
3991 cat conftest.err
>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try
='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try
='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_cv_header_stdc
=yes
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.
$ac_ext >&5
4012 ac_cv_header_stdc
=no
4014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4016 if test $ac_cv_header_stdc = yes; then
4017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4018 cat >conftest.
$ac_ext <<_ACEOF
4021 cat confdefs.h
>>conftest.
$ac_ext
4022 cat >>conftest.
$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4028 $EGREP "memchr" >/dev
/null
2>&1; then
4031 ac_cv_header_stdc
=no
4037 if test $ac_cv_header_stdc = yes; then
4038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4039 cat >conftest.
$ac_ext <<_ACEOF
4042 cat confdefs.h
>>conftest.
$ac_ext
4043 cat >>conftest.
$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4049 $EGREP "free" >/dev
/null
2>&1; then
4052 ac_cv_header_stdc
=no
4058 if test $ac_cv_header_stdc = yes; then
4059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4060 if test "$cross_compiling" = yes; then
4063 cat >conftest.
$ac_ext <<_ACEOF
4066 cat confdefs.h
>>conftest.
$ac_ext
4067 cat >>conftest.
$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4070 #if ((' ' & 0x0FF) == 0x020)
4071 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4072 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4074 # define ISLOWER(c) \
4075 (('a' <= (c) && (c) <= 'i') \
4076 || ('j' <= (c) && (c) <= 'r') \
4077 || ('s' <= (c) && (c) <= 'z'))
4078 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4086 for (i = 0; i < 256; i++)
4087 if (XOR (islower (i), ISLOWER (i))
4088 || toupper (i) != TOUPPER (i))
4093 rm -f conftest
$ac_exeext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095 (eval $ac_link) 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4106 echo "$as_me: program exited with status $ac_status" >&5
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.
$ac_ext >&5
4111 ac_cv_header_stdc
=no
4113 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4118 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4119 if test $ac_cv_header_stdc = yes; then
4121 cat >>confdefs.h
<<\_ACEOF
4122 #define STDC_HEADERS 1
4127 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4137 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4138 inttypes.h stdint.h unistd.h
4140 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4141 echo "$as_me:$LINENO: checking for $ac_header" >&5
4142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 cat >conftest.
$ac_ext <<_ACEOF
4149 cat confdefs.h
>>conftest.
$ac_ext
4150 cat >>conftest.
$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 $ac_includes_default
4154 #include <$ac_header>
4156 rm -f conftest.
$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>conftest.er1
4160 grep -v '^ *+' conftest.er1
>conftest.err
4162 cat conftest.err
>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try
='test -z "$ac_c_werror_flag"
4166 || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try
='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 eval "$as_ac_Header=yes"
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.
$ac_ext >&5
4183 eval "$as_ac_Header=no"
4185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4190 cat >>confdefs.h
<<_ACEOF
4191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4200 if test "${ac_cv_header_minix_config_h+set}" = set; then
4201 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4202 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4203 if test "${ac_cv_header_minix_config_h+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4207 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4209 # Is the header compilable?
4210 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4211 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4212 cat >conftest.
$ac_ext <<_ACEOF
4215 cat confdefs.h
>>conftest.
$ac_ext
4216 cat >>conftest.
$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 $ac_includes_default
4219 #include <minix/config.h>
4221 rm -f conftest.
$ac_objext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>conftest.er1
4225 grep -v '^ *+' conftest.er1
>conftest.err
4227 cat conftest.err
>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try
='test -z "$ac_c_werror_flag"
4231 || test ! -s conftest.err'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try
='test -s conftest.$ac_objext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_header_compiler
=yes
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.
$ac_ext >&5
4248 ac_header_compiler
=no
4250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4252 echo "${ECHO_T}$ac_header_compiler" >&6
4254 # Is the header present?
4255 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4256 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4257 cat >conftest.
$ac_ext <<_ACEOF
4260 cat confdefs.h
>>conftest.
$ac_ext
4261 cat >>conftest.
$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 #include <minix/config.h>
4265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4266 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4268 grep -v '^ *+' conftest.er1
>conftest.err
4270 cat conftest.err
>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } >/dev
/null
; then
4273 if test -s conftest.err
; then
4274 ac_cpp_err
=$ac_c_preproc_warn_flag
4275 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4282 if test -z "$ac_cpp_err"; then
4283 ac_header_preproc
=yes
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.
$ac_ext >&5
4288 ac_header_preproc
=no
4290 rm -f conftest.err conftest.
$ac_ext
4291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4292 echo "${ECHO_T}$ac_header_preproc" >&6
4294 # So? What about this header?
4295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4297 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4298 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4299 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4300 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4301 ac_header_preproc
=yes
4304 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4305 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4307 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4309 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4310 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4311 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4312 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4313 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4314 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4315 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4318 ## ------------------------------------------ ##
4319 ## Report this to the AC_PACKAGE_NAME lists. ##
4320 ## ------------------------------------------ ##
4323 sed "s/^/$as_me: WARNING: /" >&2
4326 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4327 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4328 if test "${ac_cv_header_minix_config_h+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 ac_cv_header_minix_config_h
=$ac_header_preproc
4333 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4334 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4337 if test $ac_cv_header_minix_config_h = yes; then
4344 if test "$MINIX" = yes; then
4346 cat >>confdefs.h
<<\_ACEOF
4347 #define _POSIX_SOURCE 1
4351 cat >>confdefs.h
<<\_ACEOF
4352 #define _POSIX_1_SOURCE 2
4356 cat >>confdefs.h
<<\_ACEOF
4364 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4365 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4366 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 cat >conftest.
$ac_ext <<_ACEOF
4372 cat confdefs.h
>>conftest.
$ac_ext
4373 cat >>conftest.
$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4376 # define __EXTENSIONS__ 1
4377 $ac_includes_default
4386 rm -f conftest.
$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>conftest.er1
4390 grep -v '^ *+' conftest.er1
>conftest.err
4392 cat conftest.err
>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try
='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try
='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_cv_safe_to_define___extensions__
=yes
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.
$ac_ext >&5
4413 ac_cv_safe_to_define___extensions__
=no
4415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4417 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4418 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4419 test $ac_cv_safe_to_define___extensions__ = yes &&
4420 cat >>confdefs.h
<<\_ACEOF
4421 #define __EXTENSIONS__ 1
4424 cat >>confdefs.h
<<\_ACEOF
4425 #define _ALL_SOURCE 1
4428 cat >>confdefs.h
<<\_ACEOF
4429 #define _GNU_SOURCE 1
4432 cat >>confdefs.h
<<\_ACEOF
4433 #define _POSIX_PTHREAD_SEMANTICS 1
4436 cat >>confdefs.h
<<\_ACEOF
4437 #define _TANDEM_SOURCE 1
4442 ac_cpp
='$CPP $CPPFLAGS'
4443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4446 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4447 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4448 # On Suns, sometimes $CPP names a directory.
4449 if test -n "$CPP" && test -d "$CPP"; then
4452 if test -z "$CPP"; then
4453 if test "${ac_cv_prog_CPP+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 # Double quotes because CPP needs to be expanded
4457 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4460 for ac_c_preproc_warn_flag
in '' yes
4462 # Use a header file that comes with gcc, so configuring glibc
4463 # with a fresh cross-compiler works.
4464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4465 # <limits.h> exists even on freestanding compilers.
4466 # On the NeXT, cc -E runs the code through the compiler's parser,
4467 # not just through cpp. "Syntax error" is here to catch this case.
4468 cat >conftest.
$ac_ext <<_ACEOF
4471 cat confdefs.h
>>conftest.
$ac_ext
4472 cat >>conftest.
$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4475 # include <limits.h>
4477 # include <assert.h>
4481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4484 grep -v '^ *+' conftest.er1
>conftest.err
4486 cat conftest.err
>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } >/dev
/null
; then
4489 if test -s conftest.err
; then
4490 ac_cpp_err
=$ac_c_preproc_warn_flag
4491 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4498 if test -z "$ac_cpp_err"; then
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.
$ac_ext >&5
4504 # Broken: fails on valid input.
4507 rm -f conftest.err conftest.
$ac_ext
4509 # OK, works on sane cases. Now check whether non-existent headers
4510 # can be detected and how.
4511 cat >conftest.
$ac_ext <<_ACEOF
4514 cat confdefs.h
>>conftest.
$ac_ext
4515 cat >>conftest.
$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #include <ac_nonexistent.h>
4519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4520 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4522 grep -v '^ *+' conftest.er1
>conftest.err
4524 cat conftest.err
>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } >/dev
/null
; then
4527 if test -s conftest.err
; then
4528 ac_cpp_err
=$ac_c_preproc_warn_flag
4529 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4536 if test -z "$ac_cpp_err"; then
4537 # Broken: success on invalid input.
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.
$ac_ext >&5
4543 # Passes both tests.
4547 rm -f conftest.err conftest.
$ac_ext
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.err conftest.
$ac_ext
4552 if $ac_preproc_ok; then
4564 echo "$as_me:$LINENO: result: $CPP" >&5
4565 echo "${ECHO_T}$CPP" >&6
4567 for ac_c_preproc_warn_flag
in '' yes
4569 # Use a header file that comes with gcc, so configuring glibc
4570 # with a fresh cross-compiler works.
4571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4572 # <limits.h> exists even on freestanding compilers.
4573 # On the NeXT, cc -E runs the code through the compiler's parser,
4574 # not just through cpp. "Syntax error" is here to catch this case.
4575 cat >conftest.
$ac_ext <<_ACEOF
4578 cat confdefs.h
>>conftest.
$ac_ext
4579 cat >>conftest.
$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4582 # include <limits.h>
4584 # include <assert.h>
4588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4589 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4591 grep -v '^ *+' conftest.er1
>conftest.err
4593 cat conftest.err
>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } >/dev
/null
; then
4596 if test -s conftest.err
; then
4597 ac_cpp_err
=$ac_c_preproc_warn_flag
4598 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4605 if test -z "$ac_cpp_err"; then
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.
$ac_ext >&5
4611 # Broken: fails on valid input.
4614 rm -f conftest.err conftest.
$ac_ext
4616 # OK, works on sane cases. Now check whether non-existent headers
4617 # can be detected and how.
4618 cat >conftest.
$ac_ext <<_ACEOF
4621 cat confdefs.h
>>conftest.
$ac_ext
4622 cat >>conftest.
$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 #include <ac_nonexistent.h>
4626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4627 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4629 grep -v '^ *+' conftest.er1
>conftest.err
4631 cat conftest.err
>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } >/dev
/null
; then
4634 if test -s conftest.err
; then
4635 ac_cpp_err
=$ac_c_preproc_warn_flag
4636 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4643 if test -z "$ac_cpp_err"; then
4644 # Broken: success on invalid input.
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.
$ac_ext >&5
4650 # Passes both tests.
4654 rm -f conftest.err conftest.
$ac_ext
4657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4658 rm -f conftest.err conftest.
$ac_ext
4659 if $ac_preproc_ok; then
4662 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4663 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4664 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4665 See \`config.log' for more details." >&5
4666 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4667 See \`config.log' for more details." >&2;}
4668 { (exit 1); exit 1; }; }; }
4672 ac_cpp
='$CPP $CPPFLAGS'
4673 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4677 echo "$as_me:$LINENO: checking for inline" >&5
4678 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4679 if test "${ac_cv_c_inline+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 for ac_kw
in inline __inline__ __inline
; do
4684 cat >conftest.
$ac_ext <<_ACEOF
4687 cat confdefs.h
>>conftest.
$ac_ext
4688 cat >>conftest.
$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4692 static $ac_kw foo_t static_foo () {return 0; }
4693 $ac_kw foo_t foo () {return 0; }
4697 rm -f conftest.
$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>conftest.er1
4701 grep -v '^ *+' conftest.er1
>conftest.err
4703 cat conftest.err
>&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try
='test -z "$ac_c_werror_flag"
4707 || test ! -s conftest.err'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; } &&
4713 { ac_try
='test -s conftest.$ac_objext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 ac_cv_c_inline
=$ac_kw; break
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.
$ac_ext >&5
4725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4730 echo "${ECHO_T}$ac_cv_c_inline" >&6
4733 case $ac_cv_c_inline in
4736 case $ac_cv_c_inline in
4738 *) ac_val
=$ac_cv_c_inline;;
4740 cat >>confdefs.h
<<_ACEOF
4742 #define inline $ac_val
4749 # sizeof(char) is 1 by definition.
4750 echo "$as_me:$LINENO: checking for void *" >&5
4751 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4752 if test "${ac_cv_type_void_p+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 cat >conftest.
$ac_ext <<_ACEOF
4758 cat confdefs.h
>>conftest.
$ac_ext
4759 cat >>conftest.
$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 $ac_includes_default
4767 if (sizeof (void *))
4773 rm -f conftest.
$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4777 grep -v '^ *+' conftest.er1
>conftest.err
4779 cat conftest.err
>&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try
='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try
='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 ac_cv_type_void_p
=yes
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.
$ac_ext >&5
4800 ac_cv_type_void_p
=no
4802 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4804 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4805 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4807 echo "$as_me:$LINENO: checking size of void *" >&5
4808 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4809 if test "${ac_cv_sizeof_void_p+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 if test "$ac_cv_type_void_p" = yes; then
4813 # The cast to unsigned long works around a bug in the HP C Compiler
4814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4816 # This bug is HP SR number 8606223364.
4817 if test "$cross_compiling" = yes; then
4818 # Depending upon the size, compute the lo and hi bounds.
4819 cat >conftest.
$ac_ext <<_ACEOF
4822 cat confdefs.h
>>conftest.
$ac_ext
4823 cat >>conftest.
$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 $ac_includes_default
4829 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4836 rm -f conftest.
$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4840 grep -v '^ *+' conftest.er1
>conftest.err
4842 cat conftest.err
>&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try
='test -z "$ac_c_werror_flag"
4846 || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try
='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4860 cat >conftest.
$ac_ext <<_ACEOF
4863 cat confdefs.h
>>conftest.
$ac_ext
4864 cat >>conftest.
$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 $ac_includes_default
4870 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4877 rm -f conftest.
$ac_objext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879 (eval $ac_compile) 2>conftest.er1
4881 grep -v '^ *+' conftest.er1
>conftest.err
4883 cat conftest.err
>&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try
='test -z "$ac_c_werror_flag"
4887 || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try
='test -s conftest.$ac_objext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 ac_hi
=$ac_mid; break
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.
$ac_ext >&5
4904 ac_lo
=`expr $ac_mid + 1`
4905 if test $ac_lo -le $ac_mid; then
4909 ac_mid
=`expr 2 '*' $ac_mid + 1`
4911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.
$ac_ext >&5
4917 cat >conftest.
$ac_ext <<_ACEOF
4920 cat confdefs.h
>>conftest.
$ac_ext
4921 cat >>conftest.
$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 $ac_includes_default
4927 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4934 rm -f conftest.
$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4938 grep -v '^ *+' conftest.er1
>conftest.err
4940 cat conftest.err
>&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try
='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try
='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4958 cat >conftest.
$ac_ext <<_ACEOF
4961 cat confdefs.h
>>conftest.
$ac_ext
4962 cat >>conftest.
$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4968 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4975 rm -f conftest.
$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>conftest.er1
4979 grep -v '^ *+' conftest.er1
>conftest.err
4981 cat conftest.err
>&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try
='test -z "$ac_c_werror_flag"
4985 || test ! -s conftest.err'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; } &&
4991 { ac_try
='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 ac_lo
=$ac_mid; break
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.
$ac_ext >&5
5002 ac_hi
=`expr '(' $ac_mid ')' - 1`
5003 if test $ac_mid -le $ac_hi; then
5007 ac_mid
=`expr 2 '*' $ac_mid`
5009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.
$ac_ext >&5
5017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5020 # Binary search between lo and hi bounds.
5021 while test "x$ac_lo" != "x$ac_hi"; do
5022 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5023 cat >conftest.
$ac_ext <<_ACEOF
5026 cat confdefs.h
>>conftest.
$ac_ext
5027 cat >>conftest.
$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 $ac_includes_default
5033 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5040 rm -f conftest.
$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>conftest.er1
5044 grep -v '^ *+' conftest.er1
>conftest.err
5046 cat conftest.err
>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try
='test -z "$ac_c_werror_flag"
5050 || test ! -s conftest.err'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; } &&
5056 { ac_try
='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.
$ac_ext >&5
5067 ac_lo
=`expr '(' $ac_mid ')' + 1`
5069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5072 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
5073 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5074 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5076 See \`config.log' for more details." >&5
5077 echo "$as_me: error: cannot compute sizeof (void *), 77
5078 See \`config.log' for more details." >&2;}
5079 { (exit 1); exit 1; }; }; } ;;
5082 if test "$cross_compiling" = yes; then
5083 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5084 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5085 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5086 See \`config.log' for more details." >&5
5087 echo "$as_me: error: cannot run test program while cross compiling
5088 See \`config.log' for more details." >&2;}
5089 { (exit 1); exit 1; }; }; }
5091 cat >conftest.
$ac_ext <<_ACEOF
5094 cat confdefs.h
>>conftest.
$ac_ext
5095 cat >>conftest.
$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5098 long longval () { return (long) (sizeof (void *)); }
5099 unsigned long ulongval () { return (long) (sizeof (void *)); }
5106 FILE *f = fopen ("conftest.val", "w");
5109 if (((long) (sizeof (void *))) < 0)
5111 long i = longval ();
5112 if (i != ((long) (sizeof (void *))))
5114 fprintf (f, "%ld\n", i);
5118 unsigned long i = ulongval ();
5119 if (i != ((long) (sizeof (void *))))
5121 fprintf (f, "%lu\n", i);
5123 exit (ferror (f) || fclose (f) != 0);
5129 rm -f conftest
$ac_exeext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131 (eval $ac_link) 2>&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_cv_sizeof_void_p
=`cat conftest.val`
5142 echo "$as_me: program exited with status $ac_status" >&5
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.
$ac_ext >&5
5147 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5148 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5150 See \`config.log' for more details." >&5
5151 echo "$as_me: error: cannot compute sizeof (void *), 77
5152 See \`config.log' for more details." >&2;}
5153 { (exit 1); exit 1; }; }; }
5155 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5160 ac_cv_sizeof_void_p
=0
5163 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5164 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5165 cat >>confdefs.h
<<_ACEOF
5166 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5170 echo "$as_me:$LINENO: checking for short" >&5
5171 echo $ECHO_N "checking for short... $ECHO_C" >&6
5172 if test "${ac_cv_type_short+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 cat >conftest.
$ac_ext <<_ACEOF
5178 cat confdefs.h
>>conftest.
$ac_ext
5179 cat >>conftest.
$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 $ac_includes_default
5193 rm -f conftest.
$ac_objext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5195 (eval $ac_compile) 2>conftest.er1
5197 grep -v '^ *+' conftest.er1
>conftest.err
5199 cat conftest.err
>&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try
='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try
='test -s conftest.$ac_objext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_type_short
=yes
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.
$ac_ext >&5
5222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5224 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5225 echo "${ECHO_T}$ac_cv_type_short" >&6
5227 echo "$as_me:$LINENO: checking size of short" >&5
5228 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5229 if test "${ac_cv_sizeof_short+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 if test "$ac_cv_type_short" = yes; then
5233 # The cast to unsigned long works around a bug in the HP C Compiler
5234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5236 # This bug is HP SR number 8606223364.
5237 if test "$cross_compiling" = yes; then
5238 # Depending upon the size, compute the lo and hi bounds.
5239 cat >conftest.
$ac_ext <<_ACEOF
5242 cat confdefs.h
>>conftest.
$ac_ext
5243 cat >>conftest.
$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 $ac_includes_default
5249 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5256 rm -f conftest.
$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>conftest.er1
5260 grep -v '^ *+' conftest.er1
>conftest.err
5262 cat conftest.err
>&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try
='test -z "$ac_c_werror_flag"
5266 || test ! -s conftest.err'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try
='test -s conftest.$ac_objext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5280 cat >conftest.
$ac_ext <<_ACEOF
5283 cat confdefs.h
>>conftest.
$ac_ext
5284 cat >>conftest.
$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5290 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5297 rm -f conftest.
$ac_objext
5298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5299 (eval $ac_compile) 2>conftest.er1
5301 grep -v '^ *+' conftest.er1
>conftest.err
5303 cat conftest.err
>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try
='test -z "$ac_c_werror_flag"
5307 || test ! -s conftest.err'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try
='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_hi
=$ac_mid; break
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.
$ac_ext >&5
5324 ac_lo
=`expr $ac_mid + 1`
5325 if test $ac_lo -le $ac_mid; then
5329 ac_mid
=`expr 2 '*' $ac_mid + 1`
5331 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.
$ac_ext >&5
5337 cat >conftest.
$ac_ext <<_ACEOF
5340 cat confdefs.h
>>conftest.
$ac_ext
5341 cat >>conftest.
$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 $ac_includes_default
5347 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5354 rm -f conftest.
$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5358 grep -v '^ *+' conftest.er1
>conftest.err
5360 cat conftest.err
>&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try
='test -z "$ac_c_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try
='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5378 cat >conftest.
$ac_ext <<_ACEOF
5381 cat confdefs.h
>>conftest.
$ac_ext
5382 cat >>conftest.
$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5388 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5395 rm -f conftest.
$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>conftest.er1
5399 grep -v '^ *+' conftest.er1
>conftest.err
5401 cat conftest.err
>&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try
='test -z "$ac_c_werror_flag"
5405 || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try
='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_lo
=$ac_mid; break
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.
$ac_ext >&5
5422 ac_hi
=`expr '(' $ac_mid ')' - 1`
5423 if test $ac_mid -le $ac_hi; then
5427 ac_mid
=`expr 2 '*' $ac_mid`
5429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.
$ac_ext >&5
5437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5439 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5440 # Binary search between lo and hi bounds.
5441 while test "x$ac_lo" != "x$ac_hi"; do
5442 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5443 cat >conftest.
$ac_ext <<_ACEOF
5446 cat confdefs.h
>>conftest.
$ac_ext
5447 cat >>conftest.
$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 $ac_includes_default
5453 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5460 rm -f conftest.
$ac_objext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>conftest.er1
5464 grep -v '^ *+' conftest.er1
>conftest.err
5466 cat conftest.err
>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try
='test -z "$ac_c_werror_flag"
5470 || test ! -s conftest.err'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; } &&
5476 { ac_try
='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.
$ac_ext >&5
5487 ac_lo
=`expr '(' $ac_mid ')' + 1`
5489 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5492 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5493 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5494 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5495 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5496 See \`config.log' for more details." >&5
5497 echo "$as_me: error: cannot compute sizeof (short), 77
5498 See \`config.log' for more details." >&2;}
5499 { (exit 1); exit 1; }; }; } ;;
5502 if test "$cross_compiling" = yes; then
5503 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5504 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5505 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5506 See \`config.log' for more details." >&5
5507 echo "$as_me: error: cannot run test program while cross compiling
5508 See \`config.log' for more details." >&2;}
5509 { (exit 1); exit 1; }; }; }
5511 cat >conftest.
$ac_ext <<_ACEOF
5514 cat confdefs.h
>>conftest.
$ac_ext
5515 cat >>conftest.
$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 $ac_includes_default
5518 long longval () { return (long) (sizeof (short)); }
5519 unsigned long ulongval () { return (long) (sizeof (short)); }
5526 FILE *f = fopen ("conftest.val", "w");
5529 if (((long) (sizeof (short))) < 0)
5531 long i = longval ();
5532 if (i != ((long) (sizeof (short))))
5534 fprintf (f, "%ld\n", i);
5538 unsigned long i = ulongval ();
5539 if (i != ((long) (sizeof (short))))
5541 fprintf (f, "%lu\n", i);
5543 exit (ferror (f) || fclose (f) != 0);
5549 rm -f conftest
$ac_exeext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5551 (eval $ac_link) 2>&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 ac_cv_sizeof_short
=`cat conftest.val`
5562 echo "$as_me: program exited with status $ac_status" >&5
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.
$ac_ext >&5
5567 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5568 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5570 See \`config.log' for more details." >&5
5571 echo "$as_me: error: cannot compute sizeof (short), 77
5572 See \`config.log' for more details." >&2;}
5573 { (exit 1); exit 1; }; }; }
5575 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5580 ac_cv_sizeof_short
=0
5583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5584 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5585 cat >>confdefs.h
<<_ACEOF
5586 #define SIZEOF_SHORT $ac_cv_sizeof_short
5590 echo "$as_me:$LINENO: checking for int" >&5
5591 echo $ECHO_N "checking for int... $ECHO_C" >&6
5592 if test "${ac_cv_type_int+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 cat >conftest.
$ac_ext <<_ACEOF
5598 cat confdefs.h
>>conftest.
$ac_ext
5599 cat >>conftest.
$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 $ac_includes_default
5613 rm -f conftest.
$ac_objext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>conftest.er1
5617 grep -v '^ *+' conftest.er1
>conftest.err
5619 cat conftest.err
>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try
='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try
='test -s conftest.$ac_objext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.
$ac_ext >&5
5642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5644 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5645 echo "${ECHO_T}$ac_cv_type_int" >&6
5647 echo "$as_me:$LINENO: checking size of int" >&5
5648 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5649 if test "${ac_cv_sizeof_int+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 if test "$ac_cv_type_int" = yes; then
5653 # The cast to unsigned long works around a bug in the HP C Compiler
5654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5656 # This bug is HP SR number 8606223364.
5657 if test "$cross_compiling" = yes; then
5658 # Depending upon the size, compute the lo and hi bounds.
5659 cat >conftest.
$ac_ext <<_ACEOF
5662 cat confdefs.h
>>conftest.
$ac_ext
5663 cat >>conftest.
$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5669 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5676 rm -f conftest.
$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5680 grep -v '^ *+' conftest.er1
>conftest.err
5682 cat conftest.err
>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try
='test -z "$ac_c_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try
='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5700 cat >conftest.
$ac_ext <<_ACEOF
5703 cat confdefs.h
>>conftest.
$ac_ext
5704 cat >>conftest.
$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 $ac_includes_default
5710 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5717 rm -f conftest.
$ac_objext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5719 (eval $ac_compile) 2>conftest.er1
5721 grep -v '^ *+' conftest.er1
>conftest.err
5723 cat conftest.err
>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try
='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try
='test -s conftest.$ac_objext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_hi
=$ac_mid; break
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.
$ac_ext >&5
5744 ac_lo
=`expr $ac_mid + 1`
5745 if test $ac_lo -le $ac_mid; then
5749 ac_mid
=`expr 2 '*' $ac_mid + 1`
5751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.
$ac_ext >&5
5757 cat >conftest.
$ac_ext <<_ACEOF
5760 cat confdefs.h
>>conftest.
$ac_ext
5761 cat >>conftest.
$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5767 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5774 rm -f conftest.
$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5778 grep -v '^ *+' conftest.er1
>conftest.err
5780 cat conftest.err
>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try
='test -z "$ac_c_werror_flag"
5784 || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try
='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5798 cat >conftest.
$ac_ext <<_ACEOF
5801 cat confdefs.h
>>conftest.
$ac_ext
5802 cat >>conftest.
$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5808 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5815 rm -f conftest.
$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5819 grep -v '^ *+' conftest.er1
>conftest.err
5821 cat conftest.err
>&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try
='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try
='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_lo
=$ac_mid; break
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.
$ac_ext >&5
5842 ac_hi
=`expr '(' $ac_mid ')' - 1`
5843 if test $ac_mid -le $ac_hi; then
5847 ac_mid
=`expr 2 '*' $ac_mid`
5849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.
$ac_ext >&5
5857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5860 # Binary search between lo and hi bounds.
5861 while test "x$ac_lo" != "x$ac_hi"; do
5862 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5863 cat >conftest.
$ac_ext <<_ACEOF
5866 cat confdefs.h
>>conftest.
$ac_ext
5867 cat >>conftest.
$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5873 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5880 rm -f conftest.
$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5884 grep -v '^ *+' conftest.er1
>conftest.err
5886 cat conftest.err
>&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try
='test -z "$ac_c_werror_flag"
5890 || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try
='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.
$ac_ext >&5
5907 ac_lo
=`expr '(' $ac_mid ')' + 1`
5909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5913 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5914 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5916 See \`config.log' for more details." >&5
5917 echo "$as_me: error: cannot compute sizeof (int), 77
5918 See \`config.log' for more details." >&2;}
5919 { (exit 1); exit 1; }; }; } ;;
5922 if test "$cross_compiling" = yes; then
5923 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5924 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5926 See \`config.log' for more details." >&5
5927 echo "$as_me: error: cannot run test program while cross compiling
5928 See \`config.log' for more details." >&2;}
5929 { (exit 1); exit 1; }; }; }
5931 cat >conftest.
$ac_ext <<_ACEOF
5934 cat confdefs.h
>>conftest.
$ac_ext
5935 cat >>conftest.
$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 $ac_includes_default
5938 long longval () { return (long) (sizeof (int)); }
5939 unsigned long ulongval () { return (long) (sizeof (int)); }
5946 FILE *f = fopen ("conftest.val", "w");
5949 if (((long) (sizeof (int))) < 0)
5951 long i = longval ();
5952 if (i != ((long) (sizeof (int))))
5954 fprintf (f, "%ld\n", i);
5958 unsigned long i = ulongval ();
5959 if (i != ((long) (sizeof (int))))
5961 fprintf (f, "%lu\n", i);
5963 exit (ferror (f) || fclose (f) != 0);
5969 rm -f conftest
$ac_exeext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5971 (eval $ac_link) 2>&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 ac_cv_sizeof_int
=`cat conftest.val`
5982 echo "$as_me: program exited with status $ac_status" >&5
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.
$ac_ext >&5
5987 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5988 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5989 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5990 See \`config.log' for more details." >&5
5991 echo "$as_me: error: cannot compute sizeof (int), 77
5992 See \`config.log' for more details." >&2;}
5993 { (exit 1); exit 1; }; }; }
5995 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6003 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6004 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6005 cat >>confdefs.h
<<_ACEOF
6006 #define SIZEOF_INT $ac_cv_sizeof_int
6010 echo "$as_me:$LINENO: checking for long" >&5
6011 echo $ECHO_N "checking for long... $ECHO_C" >&6
6012 if test "${ac_cv_type_long+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 cat >conftest.
$ac_ext <<_ACEOF
6018 cat confdefs.h
>>conftest.
$ac_ext
6019 cat >>conftest.
$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 $ac_includes_default
6033 rm -f conftest.
$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>conftest.er1
6037 grep -v '^ *+' conftest.er1
>conftest.err
6039 cat conftest.err
>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try
='test -z "$ac_c_werror_flag"
6043 || test ! -s conftest.err'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try
='test -s conftest.$ac_objext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.
$ac_ext >&5
6062 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6064 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6065 echo "${ECHO_T}$ac_cv_type_long" >&6
6067 echo "$as_me:$LINENO: checking size of long" >&5
6068 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6069 if test "${ac_cv_sizeof_long+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 if test "$ac_cv_type_long" = yes; then
6073 # The cast to unsigned long works around a bug in the HP C Compiler
6074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6076 # This bug is HP SR number 8606223364.
6077 if test "$cross_compiling" = yes; then
6078 # Depending upon the size, compute the lo and hi bounds.
6079 cat >conftest.
$ac_ext <<_ACEOF
6082 cat confdefs.h
>>conftest.
$ac_ext
6083 cat >>conftest.
$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6089 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6096 rm -f conftest.
$ac_objext
6097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098 (eval $ac_compile) 2>conftest.er1
6100 grep -v '^ *+' conftest.er1
>conftest.err
6102 cat conftest.err
>&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try
='test -z "$ac_c_werror_flag"
6106 || test ! -s conftest.err'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; } &&
6112 { ac_try
='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6120 cat >conftest.
$ac_ext <<_ACEOF
6123 cat confdefs.h
>>conftest.
$ac_ext
6124 cat >>conftest.
$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 $ac_includes_default
6130 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6137 rm -f conftest.
$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>conftest.er1
6141 grep -v '^ *+' conftest.er1
>conftest.err
6143 cat conftest.err
>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try
='test -z "$ac_c_werror_flag"
6147 || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try
='test -s conftest.$ac_objext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_hi
=$ac_mid; break
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.
$ac_ext >&5
6164 ac_lo
=`expr $ac_mid + 1`
6165 if test $ac_lo -le $ac_mid; then
6169 ac_mid
=`expr 2 '*' $ac_mid + 1`
6171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.
$ac_ext >&5
6177 cat >conftest.
$ac_ext <<_ACEOF
6180 cat confdefs.h
>>conftest.
$ac_ext
6181 cat >>conftest.
$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 $ac_includes_default
6187 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6194 rm -f conftest.
$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>conftest.er1
6198 grep -v '^ *+' conftest.er1
>conftest.err
6200 cat conftest.err
>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try
='test -z "$ac_c_werror_flag"
6204 || test ! -s conftest.err'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try
='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6218 cat >conftest.
$ac_ext <<_ACEOF
6221 cat confdefs.h
>>conftest.
$ac_ext
6222 cat >>conftest.
$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6228 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6235 rm -f conftest.
$ac_objext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>conftest.er1
6239 grep -v '^ *+' conftest.er1
>conftest.err
6241 cat conftest.err
>&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try
='test -z "$ac_c_werror_flag"
6245 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try
='test -s conftest.$ac_objext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_lo
=$ac_mid; break
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.
$ac_ext >&5
6262 ac_hi
=`expr '(' $ac_mid ')' - 1`
6263 if test $ac_mid -le $ac_hi; then
6267 ac_mid
=`expr 2 '*' $ac_mid`
6269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.
$ac_ext >&5
6277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6280 # Binary search between lo and hi bounds.
6281 while test "x$ac_lo" != "x$ac_hi"; do
6282 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6283 cat >conftest.
$ac_ext <<_ACEOF
6286 cat confdefs.h
>>conftest.
$ac_ext
6287 cat >>conftest.
$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 $ac_includes_default
6293 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6300 rm -f conftest.
$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6304 grep -v '^ *+' conftest.er1
>conftest.err
6306 cat conftest.err
>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try
='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try
='test -s conftest.$ac_objext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.
$ac_ext >&5
6327 ac_lo
=`expr '(' $ac_mid ')' + 1`
6329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6332 ?
*) ac_cv_sizeof_long
=$ac_lo;;
6333 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6334 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6336 See \`config.log' for more details." >&5
6337 echo "$as_me: error: cannot compute sizeof (long), 77
6338 See \`config.log' for more details." >&2;}
6339 { (exit 1); exit 1; }; }; } ;;
6342 if test "$cross_compiling" = yes; then
6343 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6344 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6345 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6346 See \`config.log' for more details." >&5
6347 echo "$as_me: error: cannot run test program while cross compiling
6348 See \`config.log' for more details." >&2;}
6349 { (exit 1); exit 1; }; }; }
6351 cat >conftest.
$ac_ext <<_ACEOF
6354 cat confdefs.h
>>conftest.
$ac_ext
6355 cat >>conftest.
$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 long longval () { return (long) (sizeof (long)); }
6359 unsigned long ulongval () { return (long) (sizeof (long)); }
6366 FILE *f = fopen ("conftest.val", "w");
6369 if (((long) (sizeof (long))) < 0)
6371 long i = longval ();
6372 if (i != ((long) (sizeof (long))))
6374 fprintf (f, "%ld\n", i);
6378 unsigned long i = ulongval ();
6379 if (i != ((long) (sizeof (long))))
6381 fprintf (f, "%lu\n", i);
6383 exit (ferror (f) || fclose (f) != 0);
6389 rm -f conftest
$ac_exeext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6391 (eval $ac_link) 2>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_cv_sizeof_long
=`cat conftest.val`
6402 echo "$as_me: program exited with status $ac_status" >&5
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.
$ac_ext >&5
6407 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6408 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6410 See \`config.log' for more details." >&5
6411 echo "$as_me: error: cannot compute sizeof (long), 77
6412 See \`config.log' for more details." >&2;}
6413 { (exit 1); exit 1; }; }; }
6415 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6423 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6424 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6425 cat >>confdefs.h
<<_ACEOF
6426 #define SIZEOF_LONG $ac_cv_sizeof_long
6430 echo "$as_me:$LINENO: checking for long long" >&5
6431 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6432 if test "${ac_cv_type_long_long+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 cat >conftest.
$ac_ext <<_ACEOF
6438 cat confdefs.h
>>conftest.
$ac_ext
6439 cat >>conftest.
$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 $ac_includes_default
6445 if ((long long *) 0)
6447 if (sizeof (long long))
6453 rm -f conftest.
$ac_objext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>conftest.er1
6457 grep -v '^ *+' conftest.er1
>conftest.err
6459 cat conftest.err
>&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try
='test -z "$ac_c_werror_flag"
6463 || test ! -s conftest.err'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; } &&
6469 { ac_try
='test -s conftest.$ac_objext'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; }; then
6475 ac_cv_type_long_long
=yes
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.
$ac_ext >&5
6480 ac_cv_type_long_long
=no
6482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6484 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6485 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6486 if test $ac_cv_type_long_long = yes; then
6488 cat >>confdefs.h
<<_ACEOF
6489 #define HAVE_LONG_LONG 1
6492 echo "$as_me:$LINENO: checking for long long" >&5
6493 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6494 if test "${ac_cv_type_long_long+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 cat >conftest.
$ac_ext <<_ACEOF
6500 cat confdefs.h
>>conftest.
$ac_ext
6501 cat >>conftest.
$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6503 $ac_includes_default
6507 if ((long long *) 0)
6509 if (sizeof (long long))
6515 rm -f conftest.
$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6519 grep -v '^ *+' conftest.er1
>conftest.err
6521 cat conftest.err
>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try
='test -z "$ac_c_werror_flag"
6525 || test ! -s conftest.err'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try
='test -s conftest.$ac_objext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_cv_type_long_long
=yes
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.
$ac_ext >&5
6542 ac_cv_type_long_long
=no
6544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6547 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6549 echo "$as_me:$LINENO: checking size of long long" >&5
6550 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6551 if test "${ac_cv_sizeof_long_long+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 if test "$ac_cv_type_long_long" = yes; then
6555 # The cast to unsigned long works around a bug in the HP C Compiler
6556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6558 # This bug is HP SR number 8606223364.
6559 if test "$cross_compiling" = yes; then
6560 # Depending upon the size, compute the lo and hi bounds.
6561 cat >conftest.
$ac_ext <<_ACEOF
6564 cat confdefs.h
>>conftest.
$ac_ext
6565 cat >>conftest.
$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 $ac_includes_default
6571 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6578 rm -f conftest.
$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
6582 grep -v '^ *+' conftest.er1
>conftest.err
6584 cat conftest.err
>&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try
='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try
='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6602 cat >conftest.
$ac_ext <<_ACEOF
6605 cat confdefs.h
>>conftest.
$ac_ext
6606 cat >>conftest.
$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 $ac_includes_default
6612 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6619 rm -f conftest.
$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6623 grep -v '^ *+' conftest.er1
>conftest.err
6625 cat conftest.err
>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try
='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try
='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_hi
=$ac_mid; break
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.
$ac_ext >&5
6646 ac_lo
=`expr $ac_mid + 1`
6647 if test $ac_lo -le $ac_mid; then
6651 ac_mid
=`expr 2 '*' $ac_mid + 1`
6653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.
$ac_ext >&5
6659 cat >conftest.
$ac_ext <<_ACEOF
6662 cat confdefs.h
>>conftest.
$ac_ext
6663 cat >>conftest.
$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 $ac_includes_default
6669 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6676 rm -f conftest.
$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>conftest.er1
6680 grep -v '^ *+' conftest.er1
>conftest.err
6682 cat conftest.err
>&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try
='test -z "$ac_c_werror_flag"
6686 || test ! -s conftest.err'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; } &&
6692 { ac_try
='test -s conftest.$ac_objext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6700 cat >conftest.
$ac_ext <<_ACEOF
6703 cat confdefs.h
>>conftest.
$ac_ext
6704 cat >>conftest.
$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 $ac_includes_default
6710 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6717 rm -f conftest.
$ac_objext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6719 (eval $ac_compile) 2>conftest.er1
6721 grep -v '^ *+' conftest.er1
>conftest.err
6723 cat conftest.err
>&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try
='test -z "$ac_c_werror_flag"
6727 || test ! -s conftest.err'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; } &&
6733 { ac_try
='test -s conftest.$ac_objext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_lo
=$ac_mid; break
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.
$ac_ext >&5
6744 ac_hi
=`expr '(' $ac_mid ')' - 1`
6745 if test $ac_mid -le $ac_hi; then
6749 ac_mid
=`expr 2 '*' $ac_mid`
6751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.
$ac_ext >&5
6759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6762 # Binary search between lo and hi bounds.
6763 while test "x$ac_lo" != "x$ac_hi"; do
6764 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6765 cat >conftest.
$ac_ext <<_ACEOF
6768 cat confdefs.h
>>conftest.
$ac_ext
6769 cat >>conftest.
$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 $ac_includes_default
6775 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6782 rm -f conftest.
$ac_objext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784 (eval $ac_compile) 2>conftest.er1
6786 grep -v '^ *+' conftest.er1
>conftest.err
6788 cat conftest.err
>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try
='test -z "$ac_c_werror_flag"
6792 || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try
='test -s conftest.$ac_objext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.
$ac_ext >&5
6809 ac_lo
=`expr '(' $ac_mid ')' + 1`
6811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6814 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6815 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6816 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6818 See \`config.log' for more details." >&5
6819 echo "$as_me: error: cannot compute sizeof (long long), 77
6820 See \`config.log' for more details." >&2;}
6821 { (exit 1); exit 1; }; }; } ;;
6824 if test "$cross_compiling" = yes; then
6825 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6826 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6827 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6828 See \`config.log' for more details." >&5
6829 echo "$as_me: error: cannot run test program while cross compiling
6830 See \`config.log' for more details." >&2;}
6831 { (exit 1); exit 1; }; }; }
6833 cat >conftest.
$ac_ext <<_ACEOF
6836 cat confdefs.h
>>conftest.
$ac_ext
6837 cat >>conftest.
$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 $ac_includes_default
6840 long longval () { return (long) (sizeof (long long)); }
6841 unsigned long ulongval () { return (long) (sizeof (long long)); }
6848 FILE *f = fopen ("conftest.val", "w");
6851 if (((long) (sizeof (long long))) < 0)
6853 long i = longval ();
6854 if (i != ((long) (sizeof (long long))))
6856 fprintf (f, "%ld\n", i);
6860 unsigned long i = ulongval ();
6861 if (i != ((long) (sizeof (long long))))
6863 fprintf (f, "%lu\n", i);
6865 exit (ferror (f) || fclose (f) != 0);
6871 rm -f conftest
$ac_exeext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6873 (eval $ac_link) 2>&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_cv_sizeof_long_long
=`cat conftest.val`
6884 echo "$as_me: program exited with status $ac_status" >&5
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.
$ac_ext >&5
6889 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6890 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6892 See \`config.log' for more details." >&5
6893 echo "$as_me: error: cannot compute sizeof (long long), 77
6894 See \`config.log' for more details." >&2;}
6895 { (exit 1); exit 1; }; }; }
6897 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6902 ac_cv_sizeof_long_long
=0
6905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6906 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6907 cat >>confdefs.h
<<_ACEOF
6908 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6914 echo "$as_me:$LINENO: checking for __int64" >&5
6915 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6916 if test "${ac_cv_type___int64+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 cat >conftest.
$ac_ext <<_ACEOF
6922 cat confdefs.h
>>conftest.
$ac_ext
6923 cat >>conftest.
$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 $ac_includes_default
6931 if (sizeof (__int64))
6937 rm -f conftest.
$ac_objext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>conftest.er1
6941 grep -v '^ *+' conftest.er1
>conftest.err
6943 cat conftest.err
>&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try
='test -z "$ac_c_werror_flag"
6947 || test ! -s conftest.err'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; } &&
6953 { ac_try
='test -s conftest.$ac_objext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 ac_cv_type___int64
=yes
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.
$ac_ext >&5
6964 ac_cv_type___int64
=no
6966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6968 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6969 echo "${ECHO_T}$ac_cv_type___int64" >&6
6970 if test $ac_cv_type___int64 = yes; then
6972 cat >>confdefs.h
<<_ACEOF
6973 #define HAVE___INT64 1
6976 echo "$as_me:$LINENO: checking for __int64" >&5
6977 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6978 if test "${ac_cv_type___int64+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 cat >conftest.
$ac_ext <<_ACEOF
6984 cat confdefs.h
>>conftest.
$ac_ext
6985 cat >>conftest.
$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6993 if (sizeof (__int64))
6999 rm -f conftest.
$ac_objext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001 (eval $ac_compile) 2>conftest.er1
7003 grep -v '^ *+' conftest.er1
>conftest.err
7005 cat conftest.err
>&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try
='test -z "$ac_c_werror_flag"
7009 || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try
='test -s conftest.$ac_objext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7021 ac_cv_type___int64
=yes
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.
$ac_ext >&5
7026 ac_cv_type___int64
=no
7028 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7030 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
7031 echo "${ECHO_T}$ac_cv_type___int64" >&6
7033 echo "$as_me:$LINENO: checking size of __int64" >&5
7034 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
7035 if test "${ac_cv_sizeof___int64+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 if test "$ac_cv_type___int64" = yes; then
7039 # The cast to unsigned long works around a bug in the HP C Compiler
7040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7042 # This bug is HP SR number 8606223364.
7043 if test "$cross_compiling" = yes; then
7044 # Depending upon the size, compute the lo and hi bounds.
7045 cat >conftest.
$ac_ext <<_ACEOF
7048 cat confdefs.h
>>conftest.
$ac_ext
7049 cat >>conftest.
$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 $ac_includes_default
7055 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
7062 rm -f conftest.
$ac_objext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>conftest.er1
7066 grep -v '^ *+' conftest.er1
>conftest.err
7068 cat conftest.err
>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try
='test -z "$ac_c_werror_flag"
7072 || test ! -s conftest.err'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; } &&
7078 { ac_try
='test -s conftest.$ac_objext'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7086 cat >conftest.
$ac_ext <<_ACEOF
7089 cat confdefs.h
>>conftest.
$ac_ext
7090 cat >>conftest.
$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7096 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
7103 rm -f conftest.
$ac_objext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105 (eval $ac_compile) 2>conftest.er1
7107 grep -v '^ *+' conftest.er1
>conftest.err
7109 cat conftest.err
>&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } &&
7112 { ac_try
='test -z "$ac_c_werror_flag"
7113 || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try
='test -s conftest.$ac_objext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_hi
=$ac_mid; break
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.
$ac_ext >&5
7130 ac_lo
=`expr $ac_mid + 1`
7131 if test $ac_lo -le $ac_mid; then
7135 ac_mid
=`expr 2 '*' $ac_mid + 1`
7137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.
$ac_ext >&5
7143 cat >conftest.
$ac_ext <<_ACEOF
7146 cat confdefs.h
>>conftest.
$ac_ext
7147 cat >>conftest.
$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7153 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
7160 rm -f conftest.
$ac_objext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>conftest.er1
7164 grep -v '^ *+' conftest.er1
>conftest.err
7166 cat conftest.err
>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try
='test -z "$ac_c_werror_flag"
7170 || test ! -s conftest.err'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; } &&
7176 { ac_try
='test -s conftest.$ac_objext'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7184 cat >conftest.
$ac_ext <<_ACEOF
7187 cat confdefs.h
>>conftest.
$ac_ext
7188 cat >>conftest.
$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7194 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
7201 rm -f conftest.
$ac_objext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203 (eval $ac_compile) 2>conftest.er1
7205 grep -v '^ *+' conftest.er1
>conftest.err
7207 cat conftest.err
>&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } &&
7210 { ac_try
='test -z "$ac_c_werror_flag"
7211 || test ! -s conftest.err'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; } &&
7217 { ac_try
='test -s conftest.$ac_objext'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; }; then
7223 ac_lo
=$ac_mid; break
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.
$ac_ext >&5
7228 ac_hi
=`expr '(' $ac_mid ')' - 1`
7229 if test $ac_mid -le $ac_hi; then
7233 ac_mid
=`expr 2 '*' $ac_mid`
7235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.
$ac_ext >&5
7243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7246 # Binary search between lo and hi bounds.
7247 while test "x$ac_lo" != "x$ac_hi"; do
7248 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7249 cat >conftest.
$ac_ext <<_ACEOF
7252 cat confdefs.h
>>conftest.
$ac_ext
7253 cat >>conftest.
$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7259 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
7266 rm -f conftest.
$ac_objext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268 (eval $ac_compile) 2>conftest.er1
7270 grep -v '^ *+' conftest.er1
>conftest.err
7272 cat conftest.err
>&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
7275 { ac_try
='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try
='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.
$ac_ext >&5
7293 ac_lo
=`expr '(' $ac_mid ')' + 1`
7295 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7298 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
7299 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7300 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7301 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7302 See \`config.log' for more details." >&5
7303 echo "$as_me: error: cannot compute sizeof (__int64), 77
7304 See \`config.log' for more details." >&2;}
7305 { (exit 1); exit 1; }; }; } ;;
7308 if test "$cross_compiling" = yes; then
7309 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7310 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7311 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7312 See \`config.log' for more details." >&5
7313 echo "$as_me: error: cannot run test program while cross compiling
7314 See \`config.log' for more details." >&2;}
7315 { (exit 1); exit 1; }; }; }
7317 cat >conftest.
$ac_ext <<_ACEOF
7320 cat confdefs.h
>>conftest.
$ac_ext
7321 cat >>conftest.
$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 $ac_includes_default
7324 long longval () { return (long) (sizeof (__int64)); }
7325 unsigned long ulongval () { return (long) (sizeof (__int64)); }
7332 FILE *f = fopen ("conftest.val", "w");
7335 if (((long) (sizeof (__int64))) < 0)
7337 long i = longval ();
7338 if (i != ((long) (sizeof (__int64))))
7340 fprintf (f, "%ld\n", i);
7344 unsigned long i = ulongval ();
7345 if (i != ((long) (sizeof (__int64))))
7347 fprintf (f, "%lu\n", i);
7349 exit (ferror (f) || fclose (f) != 0);
7355 rm -f conftest
$ac_exeext
7356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357 (eval $ac_link) 2>&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_cv_sizeof___int64
=`cat conftest.val`
7368 echo "$as_me: program exited with status $ac_status" >&5
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.
$ac_ext >&5
7373 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7374 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7376 See \`config.log' for more details." >&5
7377 echo "$as_me: error: cannot compute sizeof (__int64), 77
7378 See \`config.log' for more details." >&2;}
7379 { (exit 1); exit 1; }; }; }
7381 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7386 ac_cv_sizeof___int64
=0
7389 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7390 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
7391 cat >>confdefs.h
<<_ACEOF
7392 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7399 # ---------------------
7400 # Warnings and checking
7401 # ---------------------
7403 # Check $CC warning features (if it's GCC).
7404 # We want to use -pedantic, but we don't want warnings about
7407 # * overlong strings
7408 # So, we only use -pedantic if we can disable those warnings.
7411 save_CFLAGS
="$CFLAGS"
7412 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
7413 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7415 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7416 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7417 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 cat >conftest.
$ac_ext <<_ACEOF
7424 cat confdefs.h
>>conftest.
$ac_ext
7425 cat >>conftest.
$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7436 rm -f conftest.
$ac_objext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7438 (eval $ac_compile) 2>conftest.er1
7440 grep -v '^ *+' conftest.er1
>conftest.err
7442 cat conftest.err
>&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
7445 { ac_try
='test -z "$ac_c_werror_flag"
7446 || test ! -s conftest.err'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; } &&
7452 { ac_try
='test -s conftest.$ac_objext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 eval "$as_acx_Woption=yes"
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.
$ac_ext >&5
7463 eval "$as_acx_Woption=no"
7465 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7468 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7469 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7470 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7471 loose_warn
="$loose_warn${loose_warn:+ }$option"
7475 CFLAGS
="$save_CFLAGS"
7478 save_CFLAGS
="$CFLAGS"
7479 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
7480 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7482 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7483 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7484 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cat >conftest.
$ac_ext <<_ACEOF
7491 cat confdefs.h
>>conftest.
$ac_ext
7492 cat >>conftest.
$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7503 rm -f conftest.
$ac_objext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>conftest.er1
7507 grep -v '^ *+' conftest.er1
>conftest.err
7509 cat conftest.err
>&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try
='test -z "$ac_c_werror_flag"
7513 || test ! -s conftest.err'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try
='test -s conftest.$ac_objext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 eval "$as_acx_Woption=yes"
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.
$ac_ext >&5
7530 eval "$as_acx_Woption=no"
7532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7535 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7536 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7537 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7538 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
7542 CFLAGS
="$save_CFLAGS"
7545 save_CFLAGS
="$CFLAGS"
7546 for option
in -Wmissing-format-attribute; do
7547 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7549 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7550 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7551 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 cat >conftest.
$ac_ext <<_ACEOF
7558 cat confdefs.h
>>conftest.
$ac_ext
7559 cat >>conftest.
$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7570 rm -f conftest.
$ac_objext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572 (eval $ac_compile) 2>conftest.er1
7574 grep -v '^ *+' conftest.er1
>conftest.err
7576 cat conftest.err
>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try
='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try
='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 eval "$as_acx_Woption=yes"
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.
$ac_ext >&5
7597 eval "$as_acx_Woption=no"
7599 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7602 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7603 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7604 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7605 strict_warn
="$strict_warn${strict_warn:+ }$option"
7609 CFLAGS
="$save_CFLAGS"
7612 save_CFLAGS
="$CFLAGS"
7613 for option
in -Wold-style-definition -Wc++-compat; do
7614 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7616 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7617 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7618 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 cat >conftest.
$ac_ext <<_ACEOF
7625 cat confdefs.h
>>conftest.
$ac_ext
7626 cat >>conftest.
$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7637 rm -f conftest.
$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7641 grep -v '^ *+' conftest.er1
>conftest.err
7643 cat conftest.err
>&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try
='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try
='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 eval "$as_acx_Woption=yes"
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.
$ac_ext >&5
7664 eval "$as_acx_Woption=no"
7666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7669 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7670 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7671 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7672 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
7676 CFLAGS
="$save_CFLAGS"
7678 if test "$GCC" = yes; then
7679 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7680 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7681 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 save_CFLAGS
="$CFLAGS"
7685 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7686 cat >conftest.
$ac_ext <<_ACEOF
7689 cat confdefs.h
>>conftest.
$ac_ext
7690 cat >>conftest.
$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7701 rm -f conftest.
$ac_objext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703 (eval $ac_compile) 2>conftest.er1
7705 grep -v '^ *+' conftest.er1
>conftest.err
7707 cat conftest.err
>&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try
='test -z "$ac_c_werror_flag"
7711 || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try
='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.
$ac_ext >&5
7728 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
7730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7731 CFLAGS
="$save_CFLAGS"
7733 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
7734 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6
7735 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then
7736 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7743 # Check whether --enable-werror-always or --disable-werror-always was given.
7744 if test "${enable_werror_always+set}" = set; then
7745 enableval
="$enable_werror_always"
7748 enable_werror_always
=no
7750 if test $enable_werror_always = yes; then
7751 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7757 # The above macros do nothing if the compiler is not GCC. However, the
7758 # Makefile has more goo to add other flags, so these variables are used
7759 # to enable warnings only for GCC.
7762 if test "x$GCC" = "xyes"; then
7763 warn_cflags
='$(GCC_WARN_CFLAGS)'
7764 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7769 # Enable expensive internal checks
7771 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7775 # Check whether --enable-checking or --disable-checking was given.
7776 if test "${enable_checking+set}" = set; then
7777 enableval
="$enable_checking"
7778 ac_checking_flags
="${enableval}"
7781 # Determine the default checks.
7782 if test x
$is_release = x
; then
7783 ac_checking_flags
=yes
7785 ac_checking_flags
=release
7788 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7789 for check
in release
$ac_checking_flags
7792 # these set all the flags to specific states
7793 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7794 ac_fold_checking
= ; ac_gc_checking
=1 ;
7795 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7796 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7797 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7798 ac_types_checking
=1 ;;
7799 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7800 ac_fold_checking
= ; ac_gc_checking
= ;
7801 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7802 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7803 ac_tree_checking
= ; ac_valgrind_checking
= ;
7804 ac_types_checking
= ;;
7805 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7806 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7807 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7808 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7809 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7810 ac_types_checking
=1 ;;
7811 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7812 ac_fold_checking
= ; ac_gc_checking
= ;
7813 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7814 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7815 ac_tree_checking
= ; ac_valgrind_checking
= ;
7816 ac_types_checking
= ;;
7817 # these enable particular checks
7818 assert
) ac_assert_checking
=1 ;;
7819 df
) ac_df_checking
=1 ;;
7820 fold) ac_fold_checking
=1 ;;
7821 gc
) ac_gc_checking
=1 ;;
7822 gcac
) ac_gc_always_collect
=1 ;;
7823 gimple
) ac_gimple_checking
=1 ;;
7824 misc
) ac_checking
=1 ;;
7825 rtl
) ac_rtl_checking
=1 ;;
7826 rtlflag
) ac_rtlflag_checking
=1 ;;
7827 runtime
) ac_runtime_checking
=1 ;;
7828 tree
) ac_tree_checking
=1 ;;
7829 types
) ac_types_checking
=1 ;;
7830 valgrind
) ac_valgrind_checking
=1 ;;
7831 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7832 echo "$as_me: error: unknown check category $check" >&2;}
7833 { (exit 1); exit 1; }; } ;;
7839 if test x
$ac_checking != x
; then
7841 cat >>confdefs.h
<<\_ACEOF
7842 #define ENABLE_CHECKING 1
7845 nocommon_flag
=-fno-common
7848 if test x
$ac_df_checking != x
; then
7850 cat >>confdefs.h
<<\_ACEOF
7851 #define ENABLE_DF_CHECKING 1
7855 if test x
$ac_assert_checking != x
; then
7857 cat >>confdefs.h
<<\_ACEOF
7858 #define ENABLE_ASSERT_CHECKING 1
7862 if test x
$ac_gimple_checking != x
; then
7864 cat >>confdefs.h
<<\_ACEOF
7865 #define ENABLE_GIMPLE_CHECKING 1
7870 if test x
$ac_runtime_checking != x
; then
7872 cat >>confdefs.h
<<\_ACEOF
7873 #define ENABLE_RUNTIME_CHECKING 1
7877 if test x
$ac_tree_checking != x
; then
7879 cat >>confdefs.h
<<\_ACEOF
7880 #define ENABLE_TREE_CHECKING 1
7883 TREEBROWSER
=tree-browser.o
7885 if test x
$ac_types_checking != x
; then
7887 cat >>confdefs.h
<<\_ACEOF
7888 #define ENABLE_TYPES_CHECKING 1
7893 if test x
$ac_rtl_checking != x
; then
7895 cat >>confdefs.h
<<\_ACEOF
7896 #define ENABLE_RTL_CHECKING 1
7900 if test x
$ac_rtlflag_checking != x
; then
7902 cat >>confdefs.h
<<\_ACEOF
7903 #define ENABLE_RTL_FLAG_CHECKING 1
7907 if test x
$ac_gc_checking != x
; then
7909 cat >>confdefs.h
<<\_ACEOF
7910 #define ENABLE_GC_CHECKING 1
7914 if test x
$ac_gc_always_collect != x
; then
7916 cat >>confdefs.h
<<\_ACEOF
7917 #define ENABLE_GC_ALWAYS_COLLECT 1
7921 if test x
$ac_fold_checking != x
; then
7923 cat >>confdefs.h
<<\_ACEOF
7924 #define ENABLE_FOLD_CHECKING 1
7928 valgrind_path_defines
=
7931 if test "${ac_cv_header_valgrind_h+set}" = set; then
7932 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7933 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7934 if test "${ac_cv_header_valgrind_h+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7938 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7940 # Is the header compilable?
7941 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7942 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7943 cat >conftest.
$ac_ext <<_ACEOF
7946 cat confdefs.h
>>conftest.
$ac_ext
7947 cat >>conftest.
$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 $ac_includes_default
7950 #include <valgrind.h>
7952 rm -f conftest.
$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7956 grep -v '^ *+' conftest.er1
>conftest.err
7958 cat conftest.err
>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try
='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try
='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_header_compiler
=yes
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.
$ac_ext >&5
7979 ac_header_compiler
=no
7981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7983 echo "${ECHO_T}$ac_header_compiler" >&6
7985 # Is the header present?
7986 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7987 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7988 cat >conftest.
$ac_ext <<_ACEOF
7991 cat confdefs.h
>>conftest.
$ac_ext
7992 cat >>conftest.
$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 #include <valgrind.h>
7996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7997 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7999 grep -v '^ *+' conftest.er1
>conftest.err
8001 cat conftest.err
>&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } >/dev
/null
; then
8004 if test -s conftest.err
; then
8005 ac_cpp_err
=$ac_c_preproc_warn_flag
8006 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8013 if test -z "$ac_cpp_err"; then
8014 ac_header_preproc
=yes
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.
$ac_ext >&5
8019 ac_header_preproc
=no
8021 rm -f conftest.err conftest.
$ac_ext
8022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8023 echo "${ECHO_T}$ac_header_preproc" >&6
8025 # So? What about this header?
8026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8028 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
8029 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8030 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
8031 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
8032 ac_header_preproc
=yes
8035 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
8036 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
8038 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
8040 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
8041 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
8042 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
8044 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
8046 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
8049 ## ------------------------------------------ ##
8050 ## Report this to the AC_PACKAGE_NAME lists. ##
8051 ## ------------------------------------------ ##
8054 sed "s/^/$as_me: WARNING: /" >&2
8057 echo "$as_me:$LINENO: checking for valgrind.h" >&5
8058 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
8059 if test "${ac_cv_header_valgrind_h+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 ac_cv_header_valgrind_h
=$ac_header_preproc
8064 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
8065 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
8068 if test $ac_cv_header_valgrind_h = yes; then
8076 if test x
$ac_valgrind_checking != x
; then
8077 # It is certainly possible that there's valgrind but no valgrind.h.
8078 # GCC relies on making annotations so we must have both.
8079 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
8080 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
8081 cat >conftest.
$ac_ext <<_ACEOF
8084 cat confdefs.h
>>conftest.
$ac_ext
8085 cat >>conftest.
$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 #include <valgrind/memcheck.h>
8088 #ifndef VALGRIND_DISCARD
8089 #error VALGRIND_DISCARD not defined
8092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8093 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8095 grep -v '^ *+' conftest.er1
>conftest.err
8097 cat conftest.err
>&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } >/dev
/null
; then
8100 if test -s conftest.err
; then
8101 ac_cpp_err
=$ac_c_preproc_warn_flag
8102 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8109 if test -z "$ac_cpp_err"; then
8110 gcc_cv_header_valgrind_memcheck_h
=yes
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.
$ac_ext >&5
8115 gcc_cv_header_valgrind_memcheck_h
=no
8117 rm -f conftest.err conftest.
$ac_ext
8118 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
8119 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
8120 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
8121 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
8122 cat >conftest.
$ac_ext <<_ACEOF
8125 cat confdefs.h
>>conftest.
$ac_ext
8126 cat >>conftest.
$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 #include <memcheck.h>
8129 #ifndef VALGRIND_DISCARD
8130 #error VALGRIND_DISCARD not defined
8133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8134 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8136 grep -v '^ *+' conftest.er1
>conftest.err
8138 cat conftest.err
>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } >/dev
/null
; then
8141 if test -s conftest.err
; then
8142 ac_cpp_err
=$ac_c_preproc_warn_flag
8143 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8150 if test -z "$ac_cpp_err"; then
8151 gcc_cv_header_memcheck_h
=yes
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.
$ac_ext >&5
8156 gcc_cv_header_memcheck_h
=no
8158 rm -f conftest.err conftest.
$ac_ext
8159 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
8160 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
8162 # Prepare PATH_SEPARATOR.
8163 # The user is always right.
8164 if test "${PATH_SEPARATOR+set}" != set; then
8165 echo "#! /bin/sh" >conf$$.sh
8166 echo "exit 0" >>conf$$.sh
8168 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8176 # Find out how to test for executable files. Don't use a zero-byte file,
8177 # as systems may use methods other than mode bits to determine executability.
8178 cat >conf$$.
file <<_ASEOF
8182 chmod +x conf$$.
file
8183 if test -x conf$$.
file >/dev
/null
2>&1; then
8184 ac_executable_p
="test -x"
8186 ac_executable_p
="test -f"
8190 # Extract the first word of "valgrind", so it can be a program name with args.
8191 set dummy valgrind
; ac_word
=$2
8192 echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8194 if test "${ac_cv_path_valgrind_path+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 case "$valgrind_path" in
8199 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
8202 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8203 for ac_dir
in $PATH; do
8205 test -z "$ac_dir" && ac_dir
=.
8206 for ac_exec_ext
in '' $ac_executable_extensions; do
8207 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8208 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
8209 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
8219 valgrind_path
="$ac_cv_path_valgrind_path"
8220 if test -n "$valgrind_path"; then
8221 echo "$as_me:$LINENO: result: $valgrind_path" >&5
8222 echo "${ECHO_T}$valgrind_path" >&6
8224 echo "$as_me:$LINENO: result: no" >&5
8225 echo "${ECHO_T}no" >&6
8228 if test "x$valgrind_path" = "x" \
8229 ||
(test $have_valgrind_h = no \
8230 && test $gcc_cv_header_memcheck_h = no \
8231 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
8232 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
8233 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
8234 { (exit 1); exit 1; }; }
8236 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
8237 valgrind_command
="$valgrind_path -q"
8239 cat >>confdefs.h
<<\_ACEOF
8240 #define ENABLE_VALGRIND_CHECKING 1
8243 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
8245 cat >>confdefs.h
<<\_ACEOF
8246 #define HAVE_VALGRIND_MEMCHECK_H 1
8250 if test $gcc_cv_header_memcheck_h = yes; then
8252 cat >>confdefs.h
<<\_ACEOF
8253 #define HAVE_MEMCHECK_H 1
8261 # Enable code coverage collection
8262 # Check whether --enable-coverage or --disable-coverage was given.
8263 if test "${enable_coverage+set}" = set; then
8264 enableval
="$enable_coverage"
8265 case "${enableval}" in
8267 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
8270 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
8273 # a.k.a. --disable-coverage
8277 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
8278 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
8279 { (exit 1); exit 1; }; }
8287 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
8288 if test "${enable_gather_detailed_mem_stats+set}" = set; then
8289 enableval
="$enable_gather_detailed_mem_stats"
8292 enable_gather_detailed_mem_stats
=no
8294 if test x
$enable_gather_detailed_mem_stats = xyes
; then
8296 cat >>confdefs.h
<<\_ACEOF
8297 #define GATHER_STATISTICS 1
8302 # -------------------------------
8303 # Miscenalleous configure options
8304 # -------------------------------
8306 # See if we are building gcc with C++.
8307 # Check whether --enable-build-with-cxx or --disable-build-with-cxx was given.
8308 if test "${enable_build_with_cxx+set}" = set; then
8309 enableval
="$enable_build_with_cxx"
8310 ENABLE_BUILD_WITH_CXX
=$enableval
8312 ENABLE_BUILD_WITH_CXX
=no
8318 # Check whether --with-stabs or --without-stabs was given.
8319 if test "${with_stabs+set}" = set; then
8320 withval
="$with_stabs"
8326 # Determine whether or not multilibs are enabled.
8327 # Check whether --enable-multilib or --disable-multilib was given.
8328 if test "${enable_multilib+set}" = set; then
8329 enableval
="$enable_multilib"
8336 # Enable __cxa_atexit for C++.
8337 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
8338 if test "${enable___cxa_atexit+set}" = set; then
8339 enableval
="$enable___cxa_atexit"
8343 # Enable C extension for decimal float if target supports it.
8344 # Check whether --enable-decimal-float or --disable-decimal-float was given.
8345 if test "${enable_decimal_float+set}" = set; then
8346 enableval
="$enable_decimal_float"
8348 case $enable_decimal_float in
8349 yes | no | bid | dpd
) ;;
8350 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
8351 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
8352 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
8353 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
8354 { (exit 1); exit 1; }; } ;;
8360 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
8361 enable_decimal_float
=yes
8364 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
8365 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
8366 enable_decimal_float
=no
8372 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8374 cat >>confdefs.h
<<_ACEOF
8375 #define ENABLE_DECIMAL_FLOAT $dfp
8379 # x86's use BID format instead of DPD
8380 case x
$enable_decimal_float in
8383 i?
86*-*-linux* | x86_64
*-*-linux*)
8384 enable_decimal_float
=bid
8387 enable_decimal_float
=dpd
8392 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8393 # dependency on libdecnumber.
8394 enable_decimal_float
=dpd
8399 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8401 cat >>confdefs.h
<<_ACEOF
8402 #define ENABLE_DECIMAL_BID_FORMAT $bid
8406 # Enable C extension for fixed-point arithmetic.
8407 # Check whether --enable-fixed-point or --disable-fixed-point was given.
8408 if test "${enable_fixed_point+set}" = set; then
8409 enableval
="$enable_fixed_point"
8418 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
8419 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
8420 enable_fixed_point
=no
8423 enable_fixed_point
=yes
8428 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
8429 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
8430 enable_fixed_point
=no
8437 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8439 cat >>confdefs.h
<<_ACEOF
8440 #define ENABLE_FIXED_POINT $fixedpoint
8445 # Pass with no value to take the default
8446 # Pass with a value to specify a thread package
8447 # Check whether --enable-threads or --disable-threads was given.
8448 if test "${enable_threads+set}" = set; then
8449 enableval
="$enable_threads"
8455 # Check whether --enable-tls or --disable-tls was given.
8456 if test "${enable_tls+set}" = set; then
8457 enableval
="$enable_tls"
8461 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
8462 Valid choices are 'yes' and 'no'." >&5
8463 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
8464 Valid choices are 'yes' and 'no'." >&2;}
8465 { (exit 1); exit 1; }; } ;;
8472 # Check whether --enable-objc-gc or --disable-objc-gc was given.
8473 if test "${enable_objc_gc+set}" = set; then
8474 enableval
="$enable_objc_gc"
8475 if test x
$enable_objc_gc = xno
; then
8485 # Check whether --with-dwarf2 or --without-dwarf2 was given.
8486 if test "${with_dwarf2+set}" = set; then
8487 withval
="$with_dwarf2"
8488 dwarf2
="$with_dwarf2"
8493 # Check whether --enable-shared or --disable-shared was given.
8494 if test "${enable_shared+set}" = set; then
8495 enableval
="$enable_shared"
8497 case $enable_shared in
8501 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8502 for pkg
in $enableval; do
8503 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8517 # Check whether --with-build-sysroot or --without-build-sysroot was given.
8518 if test "${with_build_sysroot+set}" = set; then
8519 withval
="$with_build_sysroot"
8524 # Check whether --with-sysroot or --without-sysroot was given.
8525 if test "${with_sysroot+set}" = set; then
8526 withval
="$with_sysroot"
8528 case ${with_sysroot} in
8529 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8530 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
8533 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8534 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8536 if test "x$prefix" = xNONE
; then
8537 test_prefix
=/usr
/local
8541 if test "x$exec_prefix" = xNONE
; then
8542 test_exec_prefix
=$test_prefix
8544 test_exec_prefix
=$exec_prefix
8546 case ${TARGET_SYSTEM_ROOT} in
8547 "${test_prefix}"|
"${test_prefix}/"*|\
8548 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
8549 '${prefix}'|
'${prefix}/'*|\
8550 '${exec_prefix}'|
'${exec_prefix}/'*)
8551 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8552 TARGET_SYSTEM_ROOT_DEFINE
="$t"
8559 TARGET_SYSTEM_ROOT_DEFINE
=
8560 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
8567 # Build with intermodule optimisations
8568 # Check whether --enable-intermodule or --disable-intermodule was given.
8569 if test "${enable_intermodule+set}" = set; then
8570 enableval
="$enable_intermodule"
8571 case ${enable_intermodule} in
8572 yes) onestep
="-onestep";;
8582 # Check whether --with-pkgversion or --without-pkgversion was given.
8583 if test "${with_pkgversion+set}" = set; then
8584 withval
="$with_pkgversion"
8586 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8587 echo "$as_me: error: package version not specified" >&2;}
8588 { (exit 1); exit 1; }; } ;;
8590 *) PKGVERSION
="($withval) " ;;
8600 # Check whether --with-bugurl or --without-bugurl was given.
8601 if test "${with_bugurl+set}" = set; then
8602 withval
="$with_bugurl"
8604 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8605 echo "$as_me: error: bug URL not specified" >&2;}
8606 { (exit 1); exit 1; }; } ;;
8609 *) BUGURL
="$withval"
8613 BUGURL
="http://gcc.gnu.org/bugs.html"
8622 REPORT_BUGS_TO
="<$BUGURL>"
8623 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8630 # Sanity check enable_languages in case someone does not run the toplevel
8631 # configure # script.
8632 # Check whether --enable-languages or --disable-languages was given.
8633 if test "${enable_languages+set}" = set; then
8634 enableval
="$enable_languages"
8635 case ,${enable_languages}, in
8637 # go safe -- we cannot be much sure without the toplevel
8639 # analysis of which target libs are present and usable
8643 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8644 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8645 { (exit 1); exit 1; }; }
8650 enable_languages
=c
,${enable_languages}
8657 # Used by documentation targets
8663 # Check whether --with-multilib-list or --without-multilib-list was given.
8664 if test "${with_multilib_list+set}" = set; then
8665 withval
="$with_multilib_list"
8668 with_multilib_list
=default
8671 # -------------------------
8672 # Checks for other programs
8673 # -------------------------
8675 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8676 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8677 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8678 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 cat >conftest.
make <<\_ACEOF
8683 @
echo 'ac_maketemp="$(MAKE)"'
8685 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8686 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8687 if test -n "$ac_maketemp"; then
8688 eval ac_cv_prog_make_
${ac_make}_set
=yes
8690 eval ac_cv_prog_make_
${ac_make}_set
=no
8694 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8695 echo "$as_me:$LINENO: result: yes" >&5
8696 echo "${ECHO_T}yes" >&6
8699 echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6
8701 SET_MAKE
="MAKE=${MAKE-make}"
8705 # Find some useful tools
8706 for ac_prog
in gawk mawk nawk
awk
8708 # Extract the first word of "$ac_prog", so it can be a program name with args.
8709 set dummy
$ac_prog; ac_word
=$2
8710 echo "$as_me:$LINENO: checking for $ac_word" >&5
8711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8712 if test "${ac_cv_prog_AWK+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 if test -n "$AWK"; then
8716 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8722 test -z "$as_dir" && as_dir
=.
8723 for ac_exec_ext
in '' $ac_executable_extensions; do
8724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8725 ac_cv_prog_AWK
="$ac_prog"
8726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8735 if test -n "$AWK"; then
8736 echo "$as_me:$LINENO: result: $AWK" >&5
8737 echo "${ECHO_T}$AWK" >&6
8739 echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6
8743 test -n "$AWK" && break
8746 # We need awk to create options.c and options.h.
8747 # Bail out if it's missing.
8749 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8750 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8751 { (exit 1); exit 1; }; } ;;
8754 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8755 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8756 if test "${gcc_cv_prog_LN_S+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 rm -f conftestdata_t
8760 echo >conftestdata_f
8761 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8763 gcc_cv_prog_LN_S
="ln -s"
8765 if ln conftestdata_f conftestdata_t
2>/dev
/null
8769 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8771 gcc_cv_prog_LN_S
="cp -p"
8777 rm -f conftestdata_f conftestdata_t
8780 LN_S
="$gcc_cv_prog_LN_S"
8781 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8782 echo "$as_me:$LINENO: result: yes" >&5
8783 echo "${ECHO_T}yes" >&6
8785 if test "$gcc_cv_prog_LN_S" = "ln"; then
8786 echo "$as_me:$LINENO: result: no, using ln" >&5
8787 echo "${ECHO_T}no, using ln" >&6
8789 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8790 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8794 echo "$as_me:$LINENO: checking whether ln works" >&5
8795 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8796 if test "${acx_cv_prog_LN+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 rm -f conftestdata_t
8800 echo >conftestdata_f
8801 if ln conftestdata_f conftestdata_t
2>/dev
/null
8807 rm -f conftestdata_f conftestdata_t
8810 if test $acx_cv_prog_LN = no
; then
8812 echo "$as_me:$LINENO: result: no, using $LN" >&5
8813 echo "${ECHO_T}no, using $LN" >&6
8815 LN
="$acx_cv_prog_LN"
8816 echo "$as_me:$LINENO: result: yes" >&5
8817 echo "${ECHO_T}yes" >&6
8820 if test -n "$ac_tool_prefix"; then
8821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8822 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8823 echo "$as_me:$LINENO: checking for $ac_word" >&5
8824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8825 if test "${ac_cv_prog_RANLIB+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 if test -n "$RANLIB"; then
8829 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8835 test -z "$as_dir" && as_dir
=.
8836 for ac_exec_ext
in '' $ac_executable_extensions; do
8837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8838 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 RANLIB
=$ac_cv_prog_RANLIB
8848 if test -n "$RANLIB"; then
8849 echo "$as_me:$LINENO: result: $RANLIB" >&5
8850 echo "${ECHO_T}$RANLIB" >&6
8852 echo "$as_me:$LINENO: result: no" >&5
8853 echo "${ECHO_T}no" >&6
8857 if test -z "$ac_cv_prog_RANLIB"; then
8858 ac_ct_RANLIB
=$RANLIB
8859 # Extract the first word of "ranlib", so it can be a program name with args.
8860 set dummy ranlib
; ac_word
=$2
8861 echo "$as_me:$LINENO: checking for $ac_word" >&5
8862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 if test -n "$ac_ct_RANLIB"; then
8867 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8873 test -z "$as_dir" && as_dir
=.
8874 for ac_exec_ext
in '' $ac_executable_extensions; do
8875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8883 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8886 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8887 if test -n "$ac_ct_RANLIB"; then
8888 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8889 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8891 echo "$as_me:$LINENO: result: no" >&5
8892 echo "${ECHO_T}no" >&6
8895 RANLIB
=$ac_ct_RANLIB
8897 RANLIB
="$ac_cv_prog_RANLIB"
8902 # By default, the Darwin ranlib will not treat common symbols as
8903 # definitions when building the archive table of contents. Other
8904 # ranlibs do that; pass an option to the Darwin ranlib that makes
8905 # it behave similarly.
8913 # Find a good install program. We prefer a C program (faster),
8914 # so one script is as good as another. But avoid the broken or
8915 # incompatible versions:
8916 # SysV /etc/install, /usr/sbin/install
8917 # SunOS /usr/etc/install
8918 # IRIX /sbin/install
8920 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8921 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8922 # ./install, which can be erroneously created by make from ./install.sh.
8923 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8924 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8925 if test -z "$INSTALL"; then
8926 if test "${ac_cv_path_install+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8930 for ac_dir
in $PATH; do
8931 # Account for people who put trailing slashes in PATH elements.
8933 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8935 # OSF1 and SCO ODT 3.0 have their own names for install.
8936 for ac_prog
in ginstall scoinst
install; do
8937 if test -f $ac_dir/$ac_prog; then
8938 if test $ac_prog = install &&
8939 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8940 # AIX install. It has an incompatible calling convention.
8941 # OSF/1 installbsd also uses dspmsg, but is usable.
8944 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8955 if test "${ac_cv_path_install+set}" = set; then
8956 INSTALL
="$ac_cv_path_install"
8958 # As a last resort, use the slow shell script. We don't cache a
8959 # path for INSTALL within a source directory, because that will
8960 # break other packages using the cache if that directory is
8961 # removed, or if the path is relative.
8962 INSTALL
="$ac_install_sh"
8965 echo "$as_me:$LINENO: result: $INSTALL" >&5
8966 echo "${ECHO_T}$INSTALL" >&6
8968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8969 # It thinks the first close brace ends the variable substitution.
8970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8972 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8975 # See if cmp has --ignore-initial.
8976 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8977 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8978 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 gcc_cv_prog_cmp_skip
=slowcompare
8984 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8985 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8988 gcc_cv_prog_cmp_skip
=gnucompare
8991 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8992 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8993 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8996 gcc_cv_prog_cmp_skip
=fastcompare
9003 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
9004 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
9005 make_compare_target
=$gcc_cv_prog_cmp_skip
9009 # See if we have the mktemp command.
9010 # Extract the first word of "mktemp", so it can be a program name with args.
9011 set dummy mktemp
; ac_word
=$2
9012 echo "$as_me:$LINENO: checking for $ac_word" >&5
9013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9014 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 if test -n "$have_mktemp_command"; then
9018 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
9020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9024 test -z "$as_dir" && as_dir
=.
9025 for ac_exec_ext
in '' $ac_executable_extensions; do
9026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9027 ac_cv_prog_have_mktemp_command
="yes"
9028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
9037 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
9038 if test -n "$have_mktemp_command"; then
9039 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
9040 echo "${ECHO_T}$have_mktemp_command" >&6
9042 echo "$as_me:$LINENO: result: no" >&5
9043 echo "${ECHO_T}no" >&6
9047 # See if makeinfo has been installed and is modern enough
9048 # that we can use it.
9050 # Extract the first word of "makeinfo", so it can be a program name with args.
9051 set dummy makeinfo
; ac_word
=$2
9052 echo "$as_me:$LINENO: checking for $ac_word" >&5
9053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9054 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 if test -n "$MAKEINFO"; then
9058 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
9060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9064 test -z "$as_dir" && as_dir
=.
9065 for ac_exec_ext
in '' $ac_executable_extensions; do
9066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9067 ac_cv_prog_MAKEINFO
="makeinfo"
9068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9076 MAKEINFO
=$ac_cv_prog_MAKEINFO
9077 if test -n "$MAKEINFO"; then
9078 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
9079 echo "${ECHO_T}$MAKEINFO" >&6
9081 echo "$as_me:$LINENO: result: no" >&5
9082 echo "${ECHO_T}no" >&6
9085 if test -n "$MAKEINFO"; then
9086 # Found it, now check the version.
9087 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
9088 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
9089 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
9093 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
9095 case $ac_prog_version in
9096 '') gcc_cv_prog_makeinfo_modern
=no
;;
9097 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
9098 *) gcc_cv_prog_makeinfo_modern
=no
;;
9102 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
9103 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
9105 gcc_cv_prog_makeinfo_modern
=no
9107 if test $gcc_cv_prog_makeinfo_modern = no
; then
9108 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
9111 if test $gcc_cv_prog_makeinfo_modern = no
; then
9112 { echo "$as_me:$LINENO: WARNING:
9113 *** Makeinfo is missing or too old.
9114 *** Info documentation will not be built." >&5
9115 echo "$as_me: WARNING:
9116 *** Makeinfo is missing or too old.
9117 *** Info documentation will not be built." >&2;}
9124 # Is pod2man recent enough to regenerate manpages?
9125 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
9126 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
9127 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
9128 echo "$as_me:$LINENO: result: yes" >&5
9129 echo "${ECHO_T}yes" >&6
9130 GENERATED_MANPAGES
=generated-manpages
9132 echo "$as_me:$LINENO: result: no" >&5
9133 echo "${ECHO_T}no" >&6
9138 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
9143 # Extract the first word of "$ac_prog", so it can be a program name with args.
9144 set dummy
$ac_prog; ac_word
=$2
9145 echo "$as_me:$LINENO: checking for $ac_word" >&5
9146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9147 if test "${ac_cv_prog_FLEX+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 if test -n "$FLEX"; then
9151 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
9153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9157 test -z "$as_dir" && as_dir
=.
9158 for ac_exec_ext
in '' $ac_executable_extensions; do
9159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9160 ac_cv_prog_FLEX
="$ac_prog"
9161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9169 FLEX
=$ac_cv_prog_FLEX
9170 if test -n "$FLEX"; then
9171 echo "$as_me:$LINENO: result: $FLEX" >&5
9172 echo "${ECHO_T}$FLEX" >&6
9174 echo "$as_me:$LINENO: result: no" >&5
9175 echo "${ECHO_T}no" >&6
9178 test -n "$FLEX" && break
9180 test -n "$FLEX" || FLEX
="$MISSING flex"
9184 for ac_prog
in bison
9186 # Extract the first word of "$ac_prog", so it can be a program name with args.
9187 set dummy
$ac_prog; ac_word
=$2
9188 echo "$as_me:$LINENO: checking for $ac_word" >&5
9189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9190 if test "${ac_cv_prog_BISON+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 if test -n "$BISON"; then
9194 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
9196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9200 test -z "$as_dir" && as_dir
=.
9201 for ac_exec_ext
in '' $ac_executable_extensions; do
9202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203 ac_cv_prog_BISON
="$ac_prog"
9204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9212 BISON
=$ac_cv_prog_BISON
9213 if test -n "$BISON"; then
9214 echo "$as_me:$LINENO: result: $BISON" >&5
9215 echo "${ECHO_T}$BISON" >&6
9217 echo "$as_me:$LINENO: result: no" >&5
9218 echo "${ECHO_T}no" >&6
9221 test -n "$BISON" && break
9223 test -n "$BISON" || BISON
="$MISSING bison"
9226 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9227 # check for build == host before using them.
9230 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9231 && test -d ..
/binutils
; then
9232 NM
='$(objdir)/../binutils/nm-new'
9234 # Extract the first word of "nm", so it can be a program name with args.
9235 set dummy nm
; ac_word
=$2
9236 echo "$as_me:$LINENO: checking for $ac_word" >&5
9237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9238 if test "${ac_cv_prog_NM+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 if test -n "$NM"; then
9242 ac_cv_prog_NM
="$NM" # Let the user override the test.
9244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9248 test -z "$as_dir" && as_dir
=.
9249 for ac_exec_ext
in '' $ac_executable_extensions; do
9250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9258 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9262 if test -n "$NM"; then
9263 echo "$as_me:$LINENO: result: $NM" >&5
9264 echo "${ECHO_T}$NM" >&6
9266 echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6
9273 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9274 && test -d ..
/binutils
; then
9275 AR
='$(objdir)/../binutils/ar'
9277 # Extract the first word of "ar", so it can be a program name with args.
9278 set dummy
ar; ac_word
=$2
9279 echo "$as_me:$LINENO: checking for $ac_word" >&5
9280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9281 if test "${ac_cv_prog_AR+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 if test -n "$AR"; then
9285 ac_cv_prog_AR
="$AR" # Let the user override the test.
9287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9291 test -z "$as_dir" && as_dir
=.
9292 for ac_exec_ext
in '' $ac_executable_extensions; do
9293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9305 if test -n "$AR"; then
9306 echo "$as_me:$LINENO: result: $AR" >&5
9307 echo "${ECHO_T}$AR" >&6
9309 echo "$as_me:$LINENO: result: no" >&5
9310 echo "${ECHO_T}no" >&6
9316 # --------------------
9317 # Checks for C headers
9318 # --------------------
9320 # Need to reject headers which give warnings, so that the -Werror bootstrap
9321 # works later. *sigh* This needs to come before all header checks.
9323 ac_c_preproc_warn_flag
=yes
9325 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9326 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9327 if test "${ac_cv_header_stdc+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 cat >conftest.
$ac_ext <<_ACEOF
9333 cat confdefs.h
>>conftest.
$ac_ext
9334 cat >>conftest.
$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9349 rm -f conftest.
$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>conftest.er1
9353 grep -v '^ *+' conftest.er1
>conftest.err
9355 cat conftest.err
>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try
='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try
='test -s conftest.$ac_objext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_header_stdc
=yes
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.
$ac_ext >&5
9376 ac_cv_header_stdc
=no
9378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9380 if test $ac_cv_header_stdc = yes; then
9381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9382 cat >conftest.
$ac_ext <<_ACEOF
9385 cat confdefs.h
>>conftest.
$ac_ext
9386 cat >>conftest.
$ac_ext <<_ACEOF
9387 /* end confdefs.h. */
9391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9392 $EGREP "memchr" >/dev
/null
2>&1; then
9395 ac_cv_header_stdc
=no
9401 if test $ac_cv_header_stdc = yes; then
9402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9403 cat >conftest.
$ac_ext <<_ACEOF
9406 cat confdefs.h
>>conftest.
$ac_ext
9407 cat >>conftest.
$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 $EGREP "free" >/dev
/null
2>&1; then
9416 ac_cv_header_stdc
=no
9422 if test $ac_cv_header_stdc = yes; then
9423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9424 if test "$cross_compiling" = yes; then
9427 cat >conftest.
$ac_ext <<_ACEOF
9430 cat confdefs.h
>>conftest.
$ac_ext
9431 cat >>conftest.
$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9434 #if ((' ' & 0x0FF) == 0x020)
9435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9438 # define ISLOWER(c) \
9439 (('a' <= (c) && (c) <= 'i') \
9440 || ('j' <= (c) && (c) <= 'r') \
9441 || ('s' <= (c) && (c) <= 'z'))
9442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9450 for (i = 0; i < 256; i++)
9451 if (XOR (islower (i), ISLOWER (i))
9452 || toupper (i) != TOUPPER (i))
9457 rm -f conftest
$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9470 echo "$as_me: program exited with status $ac_status" >&5
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.
$ac_ext >&5
9475 ac_cv_header_stdc
=no
9477 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9481 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9482 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9483 if test $ac_cv_header_stdc = yes; then
9485 cat >>confdefs.h
<<\_ACEOF
9486 #define STDC_HEADERS 1
9491 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9492 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9493 if test "${ac_cv_header_time+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 cat >conftest.
$ac_ext <<_ACEOF
9499 cat confdefs.h
>>conftest.
$ac_ext
9500 cat >>conftest.
$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 #include <sys/types.h>
9503 #include <sys/time.h>
9509 if ((struct tm *) 0)
9515 rm -f conftest.
$ac_objext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517 (eval $ac_compile) 2>conftest.er1
9519 grep -v '^ *+' conftest.er1
>conftest.err
9521 cat conftest.err
>&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try
='test -z "$ac_c_werror_flag"
9525 || test ! -s conftest.err'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try
='test -s conftest.$ac_objext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 ac_cv_header_time
=yes
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.
$ac_ext >&5
9542 ac_cv_header_time
=no
9544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9546 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9547 echo "${ECHO_T}$ac_cv_header_time" >&6
9548 if test $ac_cv_header_time = yes; then
9550 cat >>confdefs.h
<<\_ACEOF
9551 #define TIME_WITH_SYS_TIME 1
9556 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9557 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9558 if test "${gcc_cv_header_string+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 cat >conftest.
$ac_ext <<_ACEOF
9564 cat confdefs.h
>>conftest.
$ac_ext
9565 cat >>conftest.
$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9568 #include <strings.h>
9577 rm -f conftest.
$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579 (eval $ac_compile) 2>conftest.er1
9581 grep -v '^ *+' conftest.er1
>conftest.err
9583 cat conftest.err
>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try
='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try
='test -s conftest.$ac_objext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 gcc_cv_header_string
=yes
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.
$ac_ext >&5
9604 gcc_cv_header_string
=no
9606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9608 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9609 echo "${ECHO_T}$gcc_cv_header_string" >&6
9610 if test $gcc_cv_header_string = yes; then
9612 cat >>confdefs.h
<<\_ACEOF
9613 #define STRING_WITH_STRINGS 1
9618 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9619 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9620 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 cat >conftest.
$ac_ext <<_ACEOF
9626 cat confdefs.h
>>conftest.
$ac_ext
9627 cat >>conftest.
$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 #include <sys/types.h>
9630 #include <sys/wait.h>
9632 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9635 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9643 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9648 rm -f conftest.
$ac_objext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650 (eval $ac_compile) 2>conftest.er1
9652 grep -v '^ *+' conftest.er1
>conftest.err
9654 cat conftest.err
>&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try
='test -z "$ac_c_werror_flag"
9658 || test ! -s conftest.err'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try
='test -s conftest.$ac_objext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_header_sys_wait_h
=yes
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.
$ac_ext >&5
9675 ac_cv_header_sys_wait_h
=no
9677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9680 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9681 if test $ac_cv_header_sys_wait_h = yes; then
9683 cat >>confdefs.h
<<\_ACEOF
9684 #define HAVE_SYS_WAIT_H 1
9711 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9712 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9713 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
9714 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9716 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9717 echo "$as_me:$LINENO: checking for $ac_header" >&5
9718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.
$ac_ext <<_ACEOF
9725 cat confdefs.h
>>conftest.
$ac_ext
9726 cat >>conftest.
$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 #include <$ac_header>
9730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9731 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9733 grep -v '^ *+' conftest.er1
>conftest.err
9735 cat conftest.err
>&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } >/dev
/null
; then
9738 if test -s conftest.err
; then
9739 ac_cpp_err
=$ac_c_preproc_warn_flag
9740 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9747 if test -z "$ac_cpp_err"; then
9748 eval "$as_ac_Header=yes"
9750 echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.
$ac_ext >&5
9753 eval "$as_ac_Header=no"
9755 rm -f conftest.err conftest.
$ac_ext
9757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9760 cat >>confdefs.h
<<_ACEOF
9761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9768 # Check for thread headers.
9769 echo "$as_me:$LINENO: checking for thread.h" >&5
9770 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9771 if test "${ac_cv_header_thread_h+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 cat >conftest.
$ac_ext <<_ACEOF
9777 cat confdefs.h
>>conftest.
$ac_ext
9778 cat >>conftest.
$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9783 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9785 grep -v '^ *+' conftest.er1
>conftest.err
9787 cat conftest.err
>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } >/dev
/null
; then
9790 if test -s conftest.err
; then
9791 ac_cpp_err
=$ac_c_preproc_warn_flag
9792 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9799 if test -z "$ac_cpp_err"; then
9800 ac_cv_header_thread_h
=yes
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.
$ac_ext >&5
9805 ac_cv_header_thread_h
=no
9807 rm -f conftest.err conftest.
$ac_ext
9809 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9810 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9811 if test $ac_cv_header_thread_h = yes; then
9817 echo "$as_me:$LINENO: checking for pthread.h" >&5
9818 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9819 if test "${ac_cv_header_pthread_h+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 cat >conftest.
$ac_ext <<_ACEOF
9825 cat confdefs.h
>>conftest.
$ac_ext
9826 cat >>conftest.
$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 #include <pthread.h>
9830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9831 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9833 grep -v '^ *+' conftest.er1
>conftest.err
9835 cat conftest.err
>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } >/dev
/null
; then
9838 if test -s conftest.err
; then
9839 ac_cpp_err
=$ac_c_preproc_warn_flag
9840 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9847 if test -z "$ac_cpp_err"; then
9848 ac_cv_header_pthread_h
=yes
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.
$ac_ext >&5
9853 ac_cv_header_pthread_h
=no
9855 rm -f conftest.err conftest.
$ac_ext
9857 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9858 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9859 if test $ac_cv_header_pthread_h = yes; then
9866 # These tests can't be done till we know if we have limits.h.
9867 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9868 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9869 if test "${gcc_cv_decl_char_bit+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 cat >conftest.
$ac_ext <<_ACEOF
9875 cat confdefs.h
>>conftest.
$ac_ext
9876 cat >>conftest.
$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #ifdef HAVE_LIMITS_H
9885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9886 $EGREP "found" >/dev
/null
2>&1; then
9887 gcc_cv_decl_char_bit
=yes
9889 gcc_cv_decl_char_bit
=no
9895 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9896 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9897 if test $gcc_cv_decl_char_bit = no
; then
9898 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9899 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9900 if test "${gcc_cv_c_nbby+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 while test $i -lt 65; do
9906 cat >conftest.
$ac_ext <<_ACEOF
9909 cat confdefs.h
>>conftest.
$ac_ext
9910 cat >>conftest.
$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9917 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9918 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9924 rm -f conftest.
$ac_objext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9926 (eval $ac_compile) 2>conftest.er1
9928 grep -v '^ *+' conftest.er1
>conftest.err
9930 cat conftest.err
>&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try
='test -z "$ac_c_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try
='test -s conftest.$ac_objext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 gcc_cv_c_nbby
=$i; break
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.
$ac_ext >&5
9952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9955 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9958 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9959 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9960 if test $gcc_cv_c_nbby = failed
; then
9961 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9962 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9963 { (exit 1); exit 1; }; }
9966 cat >>confdefs.h
<<_ACEOF
9967 #define CHAR_BIT $gcc_cv_c_nbby
9972 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9973 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9974 if test "${ac_cv_c_bigendian+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 # See if sys/param.h defines the BYTE_ORDER macro.
9978 cat >conftest.
$ac_ext <<_ACEOF
9981 cat confdefs.h
>>conftest.
$ac_ext
9982 cat >>conftest.
$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 #include <sys/types.h>
9985 #include <sys/param.h>
9990 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9998 rm -f conftest.
$ac_objext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10000 (eval $ac_compile) 2>conftest.er1
10002 grep -v '^ *+' conftest.er1
>conftest.err
10004 cat conftest.err
>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try
='test -z "$ac_c_werror_flag"
10008 || test ! -s conftest.err'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; } &&
10014 { ac_try
='test -s conftest.$ac_objext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 # It does; now see whether it defined to BIG_ENDIAN or not.
10021 cat >conftest.
$ac_ext <<_ACEOF
10024 cat confdefs.h
>>conftest.
$ac_ext
10025 cat >>conftest.
$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <sys/types.h>
10028 #include <sys/param.h>
10033 #if BYTE_ORDER != BIG_ENDIAN
10041 rm -f conftest.
$ac_objext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10045 grep -v '^ *+' conftest.er1
>conftest.err
10047 cat conftest.err
>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try
='test -z "$ac_c_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try
='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_c_bigendian
=yes
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.
$ac_ext >&5
10068 ac_cv_c_bigendian
=no
10070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10072 echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.
$ac_ext >&5
10075 # It does not; compile a test program.
10076 if test "$cross_compiling" = yes; then
10077 # try to guess the endianness by grepping values into an object file
10078 ac_cv_c_bigendian
=unknown
10079 cat >conftest.
$ac_ext <<_ACEOF
10082 cat confdefs.h
>>conftest.
$ac_ext
10083 cat >>conftest.
$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10086 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10087 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10088 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10089 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10090 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10094 _ascii (); _ebcdic ();
10099 rm -f conftest.
$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101 (eval $ac_compile) 2>conftest.er1
10103 grep -v '^ *+' conftest.er1
>conftest.err
10105 cat conftest.err
>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try
='test -z "$ac_c_werror_flag"
10109 || test ! -s conftest.err'
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; } &&
10115 { ac_try
='test -s conftest.$ac_objext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10122 ac_cv_c_bigendian
=yes
10124 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10125 if test "$ac_cv_c_bigendian" = unknown
; then
10126 ac_cv_c_bigendian
=no
10128 # finding both strings is unlikely to happen, but who knows?
10129 ac_cv_c_bigendian
=unknown
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.
$ac_ext >&5
10137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10139 cat >conftest.
$ac_ext <<_ACEOF
10142 cat confdefs.h
>>conftest.
$ac_ext
10143 cat >>conftest.
$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10148 /* Are we little or big endian? From Harbison&Steele. */
10152 char c[sizeof (long)];
10155 exit (u.c[sizeof (long) - 1] == 1);
10158 rm -f conftest
$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160 (eval $ac_link) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_c_bigendian
=no
10171 echo "$as_me: program exited with status $ac_status" >&5
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.
$ac_ext >&5
10175 ( exit $ac_status )
10176 ac_cv_c_bigendian
=yes
10178 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10183 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10184 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10185 case $ac_cv_c_bigendian in
10188 cat >>confdefs.h
<<\_ACEOF
10189 #define WORDS_BIGENDIAN 1
10195 { { echo "$as_me:$LINENO: error: unknown endianness
10196 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10197 echo "$as_me: error: unknown endianness
10198 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10199 { (exit 1); exit 1; }; } ;;
10208 # These libraries may be used by collect2.
10209 # We may need a special search path to get them linked.
10210 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
10211 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
10212 if test "${gcc_cv_collect2_libs+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 for libs
in '' -lld -lmld \
10217 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10218 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10221 cat >conftest.
$ac_ext <<_ACEOF
10224 cat confdefs.h
>>conftest.
$ac_ext
10225 cat >>conftest.
$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10228 /* Override any gcc2 internal prototype to avoid an error. */
10232 /* We use char because int might match the return type of a gcc2
10233 builtin and then its argument prototype would still apply. */
10243 rm -f conftest.
$ac_objext conftest
$ac_exeext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>conftest.er1
10247 grep -v '^ *+' conftest.er1
>conftest.err
10249 cat conftest.err
>&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try
='test -z "$ac_c_werror_flag"
10253 || test ! -s conftest.err'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try
='test -s conftest$ac_exeext'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 gcc_cv_collect2_libs
="$libs"; break
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.
$ac_ext >&5
10271 rm -f conftest.err conftest.
$ac_objext \
10272 conftest
$ac_exeext conftest.
$ac_ext
10275 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10277 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
10278 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
10279 case $gcc_cv_collect2_libs in
10280 "none required") ;;
10281 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10285 # When building Ada code on Alpha, we need exc_resume which is usually in
10286 # -lexc. So test for it.
10289 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
10290 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
10291 if test "${ac_cv_search_exc_resume+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 ac_func_search_save_LIBS
=$LIBS
10295 ac_cv_search_exc_resume
=no
10296 cat >conftest.
$ac_ext <<_ACEOF
10299 cat confdefs.h
>>conftest.
$ac_ext
10300 cat >>conftest.
$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10303 /* Override any gcc2 internal prototype to avoid an error. */
10307 /* We use char because int might match the return type of a gcc2
10308 builtin and then its argument prototype would still apply. */
10309 char exc_resume ();
10318 rm -f conftest.
$ac_objext conftest
$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>conftest.er1
10322 grep -v '^ *+' conftest.er1
>conftest.err
10324 cat conftest.err
>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try
='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try
='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_search_exc_resume
="none required"
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.
$ac_ext >&5
10346 rm -f conftest.err conftest.
$ac_objext \
10347 conftest
$ac_exeext conftest.
$ac_ext
10348 if test "$ac_cv_search_exc_resume" = no
; then
10349 for ac_lib
in exc
; do
10350 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10351 cat >conftest.
$ac_ext <<_ACEOF
10354 cat confdefs.h
>>conftest.
$ac_ext
10355 cat >>conftest.
$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10358 /* Override any gcc2 internal prototype to avoid an error. */
10362 /* We use char because int might match the return type of a gcc2
10363 builtin and then its argument prototype would still apply. */
10364 char exc_resume ();
10373 rm -f conftest.
$ac_objext conftest
$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>conftest.er1
10377 grep -v '^ *+' conftest.er1
>conftest.err
10379 cat conftest.err
>&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try
='test -z "$ac_c_werror_flag"
10383 || test ! -s conftest.err'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; } &&
10389 { ac_try
='test -s conftest$ac_exeext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_search_exc_resume
="-l$ac_lib"
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.
$ac_ext >&5
10402 rm -f conftest.err conftest.
$ac_objext \
10403 conftest
$ac_exeext conftest.
$ac_ext
10406 LIBS
=$ac_func_search_save_LIBS
10408 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
10409 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
10410 if test "$ac_cv_search_exc_resume" != no
; then
10411 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
10415 GNAT_LIBEXC
="$LIBS"
10419 # Some systems put ldexp and frexp in libm instead of libc; assume
10420 # they're both in the same place. jcf-dump needs them.
10423 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
10424 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
10425 if test "${ac_cv_search_ldexp+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 ac_func_search_save_LIBS
=$LIBS
10429 ac_cv_search_ldexp
=no
10430 cat >conftest.
$ac_ext <<_ACEOF
10433 cat confdefs.h
>>conftest.
$ac_ext
10434 cat >>conftest.
$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10437 /* Override any gcc2 internal prototype to avoid an error. */
10441 /* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */
10452 rm -f conftest.
$ac_objext conftest
$ac_exeext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454 (eval $ac_link) 2>conftest.er1
10456 grep -v '^ *+' conftest.er1
>conftest.err
10458 cat conftest.err
>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try
='test -z "$ac_c_werror_flag"
10462 || test ! -s conftest.err'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try
='test -s conftest$ac_exeext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_search_ldexp
="none required"
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.
$ac_ext >&5
10480 rm -f conftest.err conftest.
$ac_objext \
10481 conftest
$ac_exeext conftest.
$ac_ext
10482 if test "$ac_cv_search_ldexp" = no
; then
10483 for ac_lib
in m
; do
10484 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10485 cat >conftest.
$ac_ext <<_ACEOF
10488 cat confdefs.h
>>conftest.
$ac_ext
10489 cat >>conftest.
$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10492 /* Override any gcc2 internal prototype to avoid an error. */
10496 /* We use char because int might match the return type of a gcc2
10497 builtin and then its argument prototype would still apply. */
10507 rm -f conftest.
$ac_objext conftest
$ac_exeext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10509 (eval $ac_link) 2>conftest.er1
10511 grep -v '^ *+' conftest.er1
>conftest.err
10513 cat conftest.err
>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try
='test -z "$ac_c_werror_flag"
10517 || test ! -s conftest.err'
10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; } &&
10523 { ac_try
='test -s conftest$ac_exeext'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 ac_cv_search_ldexp
="-l$ac_lib"
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.
$ac_ext >&5
10536 rm -f conftest.err conftest.
$ac_objext \
10537 conftest
$ac_exeext conftest.
$ac_ext
10540 LIBS
=$ac_func_search_save_LIBS
10542 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10543 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10544 if test "$ac_cv_search_ldexp" != no
; then
10545 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
10553 # Use <inttypes.h> only if it exists,
10554 # doesn't clash with <sys/types.h>, and declares intmax_t.
10555 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10556 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10557 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 cat >conftest.
$ac_ext <<_ACEOF
10563 cat confdefs.h
>>conftest.
$ac_ext
10564 cat >>conftest.
$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <sys/types.h>
10567 #include <inttypes.h>
10576 rm -f conftest.
$ac_objext
10577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10578 (eval $ac_compile) 2>conftest.er1
10580 grep -v '^ *+' conftest.er1
>conftest.err
10582 cat conftest.err
>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } &&
10585 { ac_try
='test -z "$ac_c_werror_flag"
10586 || test ! -s conftest.err'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; } &&
10592 { ac_try
='test -s conftest.$ac_objext'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 gcc_cv_header_inttypes_h
=yes
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.
$ac_ext >&5
10603 gcc_cv_header_inttypes_h
=no
10605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10608 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10609 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10610 if test $gcc_cv_header_inttypes_h = yes; then
10612 cat >>confdefs.h
<<\_ACEOF
10613 #define HAVE_INTTYPES_H 1
10653 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
10654 sysconf strsignal getrusage nl_langinfo \
10655 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10656 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
10658 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10659 echo "$as_me:$LINENO: checking for $ac_func" >&5
10660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10661 if eval "test \"\${$as_ac_var+set}\" = set"; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 cat >conftest.
$ac_ext <<_ACEOF
10667 cat confdefs.h
>>conftest.
$ac_ext
10668 cat >>conftest.
$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10672 #define $ac_func innocuous_$ac_func
10674 /* System header to define __stub macros and hopefully few prototypes,
10675 which can conflict with char $ac_func (); below.
10676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10677 <limits.h> exists even on freestanding compilers. */
10680 # include <limits.h>
10682 # include <assert.h>
10687 /* Override any gcc2 internal prototype to avoid an error. */
10692 /* We use char because int might match the return type of a gcc2
10693 builtin and then its argument prototype would still apply. */
10695 /* The GNU C library defines this for functions which it implements
10696 to always fail with ENOSYS. Some functions are actually named
10697 something starting with __ and the normal name is an alias. */
10698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10701 char (*f) () = $ac_func;
10710 return f != $ac_func;
10715 rm -f conftest.
$ac_objext conftest
$ac_exeext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10717 (eval $ac_link) 2>conftest.er1
10719 grep -v '^ *+' conftest.er1
>conftest.err
10721 cat conftest.err
>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try
='test -z "$ac_c_werror_flag"
10725 || test ! -s conftest.err'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try
='test -s conftest$ac_exeext'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 eval "$as_ac_var=yes"
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.
$ac_ext >&5
10742 eval "$as_ac_var=no"
10744 rm -f conftest.err conftest.
$ac_objext \
10745 conftest
$ac_exeext conftest.
$ac_ext
10747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10749 if test `eval echo '${'$as_ac_var'}'` = yes; then
10750 cat >>confdefs.h
<<_ACEOF
10751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10758 if test x
$ac_cv_func_mbstowcs = xyes
; then
10759 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10760 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10761 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 if test "$cross_compiling" = yes; then
10765 gcc_cv_func_mbstowcs_works
=yes
10767 cat >conftest.
$ac_ext <<_ACEOF
10770 cat confdefs.h
>>conftest.
$ac_ext
10771 cat >>conftest.
$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773 #include <stdlib.h>
10776 mbstowcs(0, "", 0);
10780 rm -f conftest
$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 gcc_cv_func_mbstowcs_works
=yes
10793 echo "$as_me: program exited with status $ac_status" >&5
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.
$ac_ext >&5
10797 ( exit $ac_status )
10798 gcc_cv_func_mbstowcs_works
=no
10800 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10803 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10804 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10805 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10807 cat >>confdefs.h
<<\_ACEOF
10808 #define HAVE_WORKING_MBSTOWCS 1
10814 echo "$as_me:$LINENO: checking for ssize_t" >&5
10815 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10816 if test "${ac_cv_type_ssize_t+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 cat >conftest.
$ac_ext <<_ACEOF
10822 cat confdefs.h
>>conftest.
$ac_ext
10823 cat >>conftest.
$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 $ac_includes_default
10831 if (sizeof (ssize_t))
10837 rm -f conftest.
$ac_objext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10839 (eval $ac_compile) 2>conftest.er1
10841 grep -v '^ *+' conftest.er1
>conftest.err
10843 cat conftest.err
>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try
='test -z "$ac_c_werror_flag"
10847 || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try
='test -s conftest.$ac_objext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_type_ssize_t
=yes
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.
$ac_ext >&5
10864 ac_cv_type_ssize_t
=no
10866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10868 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10869 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10870 if test $ac_cv_type_ssize_t = yes; then
10874 cat >>confdefs.h
<<_ACEOF
10875 #define ssize_t int
10880 echo "$as_me:$LINENO: checking for caddr_t" >&5
10881 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10882 if test "${ac_cv_type_caddr_t+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 cat >conftest.
$ac_ext <<_ACEOF
10888 cat confdefs.h
>>conftest.
$ac_ext
10889 cat >>conftest.
$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 $ac_includes_default
10897 if (sizeof (caddr_t))
10903 rm -f conftest.
$ac_objext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905 (eval $ac_compile) 2>conftest.er1
10907 grep -v '^ *+' conftest.er1
>conftest.err
10909 cat conftest.err
>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try
='test -z "$ac_c_werror_flag"
10913 || test ! -s conftest.err'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; } &&
10919 { ac_try
='test -s conftest.$ac_objext'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_cv_type_caddr_t
=yes
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.
$ac_ext >&5
10930 ac_cv_type_caddr_t
=no
10932 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10934 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10935 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10936 if test $ac_cv_type_caddr_t = yes; then
10940 cat >>confdefs.h
<<_ACEOF
10941 #define caddr_t char *
10948 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10949 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10950 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 cat >conftest.
$ac_ext <<_ACEOF
10956 cat confdefs.h
>>conftest.
$ac_ext
10957 cat >>conftest.
$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 #include <sys/mman.h>
10961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10962 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10964 grep -v '^ *+' conftest.er1
>conftest.err
10966 cat conftest.err
>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } >/dev
/null
; then
10969 if test -s conftest.err
; then
10970 ac_cpp_err
=$ac_c_preproc_warn_flag
10971 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10978 if test -z "$ac_cpp_err"; then
10979 ac_cv_header_sys_mman_h
=yes
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.
$ac_ext >&5
10984 ac_cv_header_sys_mman_h
=no
10986 rm -f conftest.err conftest.
$ac_ext
10988 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10989 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10990 if test $ac_cv_header_sys_mman_h = yes; then
10991 gcc_header_sys_mman_h
=yes
10993 gcc_header_sys_mman_h
=no
10996 echo "$as_me:$LINENO: checking for mmap" >&5
10997 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10998 if test "${ac_cv_func_mmap+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 cat >conftest.
$ac_ext <<_ACEOF
11004 cat confdefs.h
>>conftest.
$ac_ext
11005 cat >>conftest.
$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11009 #define mmap innocuous_mmap
11011 /* System header to define __stub macros and hopefully few prototypes,
11012 which can conflict with char mmap (); below.
11013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11014 <limits.h> exists even on freestanding compilers. */
11017 # include <limits.h>
11019 # include <assert.h>
11024 /* Override any gcc2 internal prototype to avoid an error. */
11029 /* We use char because int might match the return type of a gcc2
11030 builtin and then its argument prototype would still apply. */
11032 /* The GNU C library defines this for functions which it implements
11033 to always fail with ENOSYS. Some functions are actually named
11034 something starting with __ and the normal name is an alias. */
11035 #if defined (__stub_mmap) || defined (__stub___mmap)
11038 char (*f) () = mmap;
11052 rm -f conftest.
$ac_objext conftest
$ac_exeext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11054 (eval $ac_link) 2>conftest.er1
11056 grep -v '^ *+' conftest.er1
>conftest.err
11058 cat conftest.err
>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try
='test -z "$ac_c_werror_flag"
11062 || test ! -s conftest.err'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; } &&
11068 { ac_try
='test -s conftest$ac_exeext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 ac_cv_func_mmap
=yes
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.
$ac_ext >&5
11081 rm -f conftest.err conftest.
$ac_objext \
11082 conftest
$ac_exeext conftest.
$ac_ext
11084 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11085 echo "${ECHO_T}$ac_cv_func_mmap" >&6
11086 if test $ac_cv_func_mmap = yes; then
11092 if test "$gcc_header_sys_mman_h" != yes \
11093 ||
test "$gcc_func_mmap" != yes; then
11094 gcc_cv_func_mmap_file
=no
11095 gcc_cv_func_mmap_dev_zero
=no
11096 gcc_cv_func_mmap_anon
=no
11098 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11099 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
11100 if test "${gcc_cv_func_mmap_file+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 # Add a system to this blacklist if
11104 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11105 # memory area containing the same data that you'd get if you applied
11106 # read() to the same fd. The only system known to have a problem here
11107 # is VMS, where text files have record structure.
11110 gcc_cv_func_mmap_file
=no
;;
11112 gcc_cv_func_mmap_file
=yes;;
11115 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
11116 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
11117 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
11118 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
11119 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11122 # Add a system to this blacklist if it has mmap() but /dev/zero
11123 # does not exist, or if mmapping /dev/zero does not give anonymous
11124 # zeroed pages with both the following properties:
11125 # 1. If you map N consecutive pages in with one call, and then
11126 # unmap any subset of those pages, the pages that were not
11127 # explicitly unmapped remain accessible.
11128 # 2. If you map two adjacent blocks of memory and then unmap them
11129 # both at once, they must both go away.
11130 # Systems known to be in this category are Windows (all variants),
11133 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
11134 gcc_cv_func_mmap_dev_zero
=no
;;
11136 gcc_cv_func_mmap_dev_zero
=yes;;
11139 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
11140 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
11142 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11143 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
11144 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
11145 if test "${gcc_cv_decl_map_anon+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 cat >conftest.
$ac_ext <<_ACEOF
11151 cat confdefs.h
>>conftest.
$ac_ext
11152 cat >>conftest.
$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 #include <sys/types.h>
11155 #include <sys/mman.h>
11156 #include <unistd.h>
11158 #ifndef MAP_ANONYMOUS
11159 #define MAP_ANONYMOUS MAP_ANON
11165 int n = MAP_ANONYMOUS;
11170 rm -f conftest.
$ac_objext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11172 (eval $ac_compile) 2>conftest.er1
11174 grep -v '^ *+' conftest.er1
>conftest.err
11176 cat conftest.err
>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try
='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try
='test -s conftest.$ac_objext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 gcc_cv_decl_map_anon
=yes
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.
$ac_ext >&5
11197 gcc_cv_decl_map_anon
=no
11199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11201 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
11202 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
11204 if test $gcc_cv_decl_map_anon = no
; then
11205 gcc_cv_func_mmap_anon
=no
11207 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11208 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
11209 if test "${gcc_cv_func_mmap_anon+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11213 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11214 # doesn't give anonymous zeroed pages with the same properties listed
11215 # above for use of /dev/zero.
11216 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11218 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
11219 gcc_cv_func_mmap_anon
=no
;;
11221 gcc_cv_func_mmap_anon
=yes;;
11224 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
11225 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
11229 if test $gcc_cv_func_mmap_file = yes; then
11231 cat >>confdefs.h
<<\_ACEOF
11232 #define HAVE_MMAP_FILE 1
11236 if test $gcc_cv_func_mmap_dev_zero = yes; then
11238 cat >>confdefs.h
<<\_ACEOF
11239 #define HAVE_MMAP_DEV_ZERO 1
11243 if test $gcc_cv_func_mmap_anon = yes; then
11245 cat >>confdefs.h
<<\_ACEOF
11246 #define HAVE_MMAP_ANON 1
11254 # Under VMS, vfork works very differently than on Unix. The standard test
11255 # won't work, and it isn't easily adaptable. It makes more sense to
11257 ac_cv_func_vfork_works
=yes
11260 echo "$as_me:$LINENO: checking for pid_t" >&5
11261 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11262 if test "${ac_cv_type_pid_t+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 cat >conftest.
$ac_ext <<_ACEOF
11268 cat confdefs.h
>>conftest.
$ac_ext
11269 cat >>conftest.
$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11271 $ac_includes_default
11277 if (sizeof (pid_t))
11283 rm -f conftest.
$ac_objext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11285 (eval $ac_compile) 2>conftest.er1
11287 grep -v '^ *+' conftest.er1
>conftest.err
11289 cat conftest.err
>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try
='test -z "$ac_c_werror_flag"
11293 || test ! -s conftest.err'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; } &&
11299 { ac_try
='test -s conftest.$ac_objext'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
11305 ac_cv_type_pid_t
=yes
11307 echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.
$ac_ext >&5
11310 ac_cv_type_pid_t
=no
11312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11314 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11315 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11316 if test $ac_cv_type_pid_t = yes; then
11320 cat >>confdefs.h
<<_ACEOF
11328 for ac_header
in unistd.h vfork.h
11330 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11331 echo "$as_me:$LINENO: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 cat >conftest.
$ac_ext <<_ACEOF
11339 cat confdefs.h
>>conftest.
$ac_ext
11340 cat >>conftest.
$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 #include <$ac_header>
11344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11345 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11347 grep -v '^ *+' conftest.er1
>conftest.err
11349 cat conftest.err
>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } >/dev
/null
; then
11352 if test -s conftest.err
; then
11353 ac_cpp_err
=$ac_c_preproc_warn_flag
11354 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11361 if test -z "$ac_cpp_err"; then
11362 eval "$as_ac_Header=yes"
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.
$ac_ext >&5
11367 eval "$as_ac_Header=no"
11369 rm -f conftest.err conftest.
$ac_ext
11371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11374 cat >>confdefs.h
<<_ACEOF
11375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11383 for ac_func
in fork vfork
11385 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11386 echo "$as_me:$LINENO: checking for $ac_func" >&5
11387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11388 if eval "test \"\${$as_ac_var+set}\" = set"; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 cat >conftest.
$ac_ext <<_ACEOF
11394 cat confdefs.h
>>conftest.
$ac_ext
11395 cat >>conftest.
$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11399 #define $ac_func innocuous_$ac_func
11401 /* System header to define __stub macros and hopefully few prototypes,
11402 which can conflict with char $ac_func (); below.
11403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11404 <limits.h> exists even on freestanding compilers. */
11407 # include <limits.h>
11409 # include <assert.h>
11414 /* Override any gcc2 internal prototype to avoid an error. */
11419 /* We use char because int might match the return type of a gcc2
11420 builtin and then its argument prototype would still apply. */
11422 /* The GNU C library defines this for functions which it implements
11423 to always fail with ENOSYS. Some functions are actually named
11424 something starting with __ and the normal name is an alias. */
11425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11428 char (*f) () = $ac_func;
11437 return f != $ac_func;
11442 rm -f conftest.
$ac_objext conftest
$ac_exeext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444 (eval $ac_link) 2>conftest.er1
11446 grep -v '^ *+' conftest.er1
>conftest.err
11448 cat conftest.err
>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try
='test -z "$ac_c_werror_flag"
11452 || test ! -s conftest.err'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; } &&
11458 { ac_try
='test -s conftest$ac_exeext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 eval "$as_ac_var=yes"
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.
$ac_ext >&5
11469 eval "$as_ac_var=no"
11471 rm -f conftest.err conftest.
$ac_objext \
11472 conftest
$ac_exeext conftest.
$ac_ext
11474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11476 if test `eval echo '${'$as_ac_var'}'` = yes; then
11477 cat >>confdefs.h
<<_ACEOF
11478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11484 if test "x$ac_cv_func_fork" = xyes
; then
11485 echo "$as_me:$LINENO: checking for working fork" >&5
11486 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11487 if test "${ac_cv_func_fork_works+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 if test "$cross_compiling" = yes; then
11491 ac_cv_func_fork_works
=cross
11493 cat >conftest.
$ac_ext <<_ACEOF
11494 /* By Ruediger Kuhlmann. */
11495 #include <sys/types.h>
11497 # include <unistd.h>
11499 /* Some systems only have a dummy stub for fork() */
11507 rm -f conftest
$ac_exeext
11508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11509 (eval $ac_link) 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_func_fork_works
=yes
11520 echo "$as_me: program exited with status $ac_status" >&5
11521 echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.
$ac_ext >&5
11524 ( exit $ac_status )
11525 ac_cv_func_fork_works
=no
11527 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11530 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11531 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11534 ac_cv_func_fork_works
=$ac_cv_func_fork
11536 if test "x$ac_cv_func_fork_works" = xcross
; then
11538 *-*-amigaos* |
*-*-msdosdjgpp*)
11539 # Override, as these systems have only a dummy fork() stub
11540 ac_cv_func_fork_works
=no
11543 ac_cv_func_fork_works
=yes
11546 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11547 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11549 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11550 if test "x$ac_cv_func_vfork" = xyes
; then
11551 echo "$as_me:$LINENO: checking for working vfork" >&5
11552 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11553 if test "${ac_cv_func_vfork_works+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 if test "$cross_compiling" = yes; then
11557 ac_cv_func_vfork_works
=cross
11559 cat >conftest.
$ac_ext <<_ACEOF
11562 cat confdefs.h
>>conftest.
$ac_ext
11563 cat >>conftest.
$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 /* Thanks to Paul Eggert for this test. */
11567 #include <stdlib.h>
11568 #include <sys/types.h>
11569 #include <sys/stat.h>
11570 #include <sys/wait.h>
11572 # include <unistd.h>
11575 # include <vfork.h>
11577 /* On some sparc systems, changes by the child to local and incoming
11578 argument registers are propagated back to the parent. The compiler
11579 is told about this with #include <vfork.h>, but some compilers
11580 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11581 static variable whose address is put into a register that is
11582 clobbered by the vfork. */
11585 sparc_address_test (int arg)
11587 sparc_address_test (arg) int arg;
11590 static pid_t child;
11608 pid_t parent = getpid ();
11611 sparc_address_test (0);
11616 /* Here is another test for sparc vfork register problems. This
11617 test uses lots of local variables, at least as many local
11618 variables as main has allocated so far including compiler
11619 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11620 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11621 reuse the register of parent for one of the local variables,
11622 since it will think that parent can't possibly be used any more
11623 in this routine. Assigning to the local variable will thus
11624 munge parent in the parent process. */
11626 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11627 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11628 /* Convince the compiler that p..p7 are live; otherwise, it might
11629 use the same hardware register for all 8 local variables. */
11630 if (p != p1 || p != p2 || p != p3 || p != p4
11631 || p != p5 || p != p6 || p != p7)
11634 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11635 from child file descriptors. If the child closes a descriptor
11636 before it execs or exits, this munges the parent's descriptor
11637 as well. Test for this by closing stdout in the child. */
11638 _exit(close(fileno(stdout)) != 0);
11643 while (wait(&status) != child)
11646 /* Was there some problem with vforking? */
11649 /* Did the child fail? (This shouldn't happen.) */
11652 /* Did the vfork/compiler bug occur? */
11653 || parent != getpid()
11655 /* Did the file descriptor bug occur? */
11656 || fstat(fileno(stdout), &st) != 0
11661 rm -f conftest
$ac_exeext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663 (eval $ac_link) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 ac_cv_func_vfork_works
=yes
11674 echo "$as_me: program exited with status $ac_status" >&5
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.
$ac_ext >&5
11678 ( exit $ac_status )
11679 ac_cv_func_vfork_works
=no
11681 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11684 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11685 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11688 if test "x$ac_cv_func_fork_works" = xcross
; then
11689 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11690 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11691 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11694 if test "x$ac_cv_func_vfork_works" = xyes
; then
11696 cat >>confdefs.h
<<\_ACEOF
11697 #define HAVE_WORKING_VFORK 1
11702 cat >>confdefs.h
<<\_ACEOF
11707 if test "x$ac_cv_func_fork_works" = xyes
; then
11709 cat >>confdefs.h
<<\_ACEOF
11710 #define HAVE_WORKING_FORK 1
11717 if test "X$prefix" = "XNONE"; then
11718 acl_final_prefix
="$ac_default_prefix"
11720 acl_final_prefix
="$prefix"
11722 if test "X$exec_prefix" = "XNONE"; then
11723 acl_final_exec_prefix
='${prefix}'
11725 acl_final_exec_prefix
="$exec_prefix"
11727 acl_save_prefix
="$prefix"
11728 prefix
="$acl_final_prefix"
11729 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11730 prefix
="$acl_save_prefix"
11733 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11734 if test "${with_gnu_ld+set}" = set; then
11735 withval
="$with_gnu_ld"
11736 test "$withval" = no || with_gnu_ld
=yes
11740 # Prepare PATH_SEPARATOR.
11741 # The user is always right.
11742 if test "${PATH_SEPARATOR+set}" != set; then
11743 echo "#! /bin/sh" >conf$$.sh
11744 echo "exit 0" >>conf$$.sh
11746 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11754 if test "$GCC" = yes; then
11755 # Check if gcc -print-prog-name=ld gives a path.
11756 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11757 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11760 # gcc leaves a trailing carriage return which upsets mingw
11761 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11763 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11766 # Accept absolute paths.
11767 [\\/]* |
[A-Za-z
]:[\\/]*)
11768 re_direlt
='/[^/][^/]*/\.\./'
11769 # Canonicalize the path of ld
11770 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11771 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11772 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11774 test -z "$LD" && LD
="$ac_prog"
11777 # If it fails, then pretend we aren't using GCC.
11781 # If it is relative, then search for the first ld in PATH.
11782 with_gnu_ld
=unknown
11785 elif test "$with_gnu_ld" = yes; then
11786 echo "$as_me:$LINENO: checking for GNU ld" >&5
11787 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11789 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11790 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11792 if test "${acl_cv_path_LD+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 if test -z "$LD"; then
11796 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11797 for ac_dir
in $PATH; do
11798 test -z "$ac_dir" && ac_dir
=.
11799 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11800 acl_cv_path_LD
="$ac_dir/$ac_prog"
11801 # Check to see if the program is GNU ld. I'd rather use --version,
11802 # but apparently some GNU ld's only accept -v.
11803 # Break only if it was the GNU/non-GNU ld that we prefer.
11804 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11805 test "$with_gnu_ld" != no
&& break
11807 test "$with_gnu_ld" != yes && break
11813 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11817 LD
="$acl_cv_path_LD"
11818 if test -n "$LD"; then
11819 echo "$as_me:$LINENO: result: $LD" >&5
11820 echo "${ECHO_T}$LD" >&6
11822 echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11825 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11826 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11827 { (exit 1); exit 1; }; }
11828 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11829 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11830 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11834 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11835 acl_cv_prog_gnu_ld
=yes
11837 acl_cv_prog_gnu_ld
=no
11840 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11841 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11842 with_gnu_ld
=$acl_cv_prog_gnu_ld
11846 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11847 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11848 if test "${acl_cv_rpath+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11853 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11855 rm -f .
/conftest.sh
11859 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11860 echo "${ECHO_T}$acl_cv_rpath" >&6
11862 libext
="$acl_cv_libext"
11863 shlibext
="$acl_cv_shlibext"
11864 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11865 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11866 hardcode_direct
="$acl_cv_hardcode_direct"
11867 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11868 # Check whether --enable-rpath or --disable-rpath was given.
11869 if test "${enable_rpath+set}" = set; then
11870 enableval
="$enable_rpath"
11884 acl_save_prefix
="$prefix"
11885 prefix
="$acl_final_prefix"
11886 acl_save_exec_prefix
="$exec_prefix"
11887 exec_prefix
="$acl_final_exec_prefix"
11889 eval additional_includedir
=\"$includedir\"
11890 eval additional_libdir
=\"$libdir\"
11892 exec_prefix
="$acl_save_exec_prefix"
11893 prefix
="$acl_save_prefix"
11896 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11897 if test "${with_libiconv_prefix+set}" = set; then
11898 withval
="$with_libiconv_prefix"
11900 if test "X$withval" = "Xno"; then
11903 if test "X$withval" = "X"; then
11905 acl_save_prefix
="$prefix"
11906 prefix
="$acl_final_prefix"
11907 acl_save_exec_prefix
="$exec_prefix"
11908 exec_prefix
="$acl_final_exec_prefix"
11910 eval additional_includedir
=\"$includedir\"
11911 eval additional_libdir
=\"$libdir\"
11913 exec_prefix
="$acl_save_exec_prefix"
11914 prefix
="$acl_save_prefix"
11917 additional_includedir
="$withval/include"
11918 additional_libdir
="$withval/lib"
11928 names_already_handled
=
11929 names_next_round
='iconv '
11930 while test -n "$names_next_round"; do
11931 names_this_round
="$names_next_round"
11933 for name
in $names_this_round; do
11935 for n
in $names_already_handled; do
11936 if test "$n" = "$name"; then
11937 already_handled
=yes
11941 if test -z "$already_handled"; then
11942 names_already_handled
="$names_already_handled $name"
11943 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11944 eval value
=\"\
$HAVE_LIB$uppername\"
11945 if test -n "$value"; then
11946 if test "$value" = yes; then
11947 eval value
=\"\
$LIB$uppername\"
11948 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11949 eval value
=\"\
$LTLIB$uppername\"
11950 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11959 if test $use_additional = yes; then
11960 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11961 found_dir
="$additional_libdir"
11962 found_so
="$additional_libdir/lib$name.$shlibext"
11963 if test -f "$additional_libdir/lib$name.la"; then
11964 found_la
="$additional_libdir/lib$name.la"
11967 if test -f "$additional_libdir/lib$name.$libext"; then
11968 found_dir
="$additional_libdir"
11969 found_a
="$additional_libdir/lib$name.$libext"
11970 if test -f "$additional_libdir/lib$name.la"; then
11971 found_la
="$additional_libdir/lib$name.la"
11976 if test "X$found_dir" = "X"; then
11977 for x
in $LDFLAGS $LTLIBICONV; do
11979 acl_save_prefix
="$prefix"
11980 prefix
="$acl_final_prefix"
11981 acl_save_exec_prefix
="$exec_prefix"
11982 exec_prefix
="$acl_final_exec_prefix"
11984 exec_prefix
="$acl_save_exec_prefix"
11985 prefix
="$acl_save_prefix"
11989 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11990 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11992 found_so
="$dir/lib$name.$shlibext"
11993 if test -f "$dir/lib$name.la"; then
11994 found_la
="$dir/lib$name.la"
11997 if test -f "$dir/lib$name.$libext"; then
11999 found_a
="$dir/lib$name.$libext"
12000 if test -f "$dir/lib$name.la"; then
12001 found_la
="$dir/lib$name.la"
12007 if test "X$found_dir" != "X"; then
12012 if test "X$found_dir" != "X"; then
12013 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12014 if test "X$found_so" != "X"; then
12015 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
12016 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12019 for x
in $ltrpathdirs; do
12020 if test "X$x" = "X$found_dir"; then
12025 if test -z "$haveit"; then
12026 ltrpathdirs
="$ltrpathdirs $found_dir"
12028 if test "$hardcode_direct" = yes; then
12029 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12031 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
12032 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12034 for x
in $rpathdirs; do
12035 if test "X$x" = "X$found_dir"; then
12040 if test -z "$haveit"; then
12041 rpathdirs
="$rpathdirs $found_dir"
12045 for x
in $LDFLAGS $LIBICONV; do
12047 acl_save_prefix
="$prefix"
12048 prefix
="$acl_final_prefix"
12049 acl_save_exec_prefix
="$exec_prefix"
12050 exec_prefix
="$acl_final_exec_prefix"
12052 exec_prefix
="$acl_save_exec_prefix"
12053 prefix
="$acl_save_prefix"
12055 if test "X$x" = "X-L$found_dir"; then
12060 if test -z "$haveit"; then
12061 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12063 if test "$hardcode_minus_L" != no
; then
12064 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12066 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12072 if test "X$found_a" != "X"; then
12073 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
12075 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12078 additional_includedir
=
12079 case "$found_dir" in
12081 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12082 additional_includedir
="$basedir/include"
12085 if test "X$additional_includedir" != "X"; then
12086 if test "X$additional_includedir" != "X/usr/include"; then
12088 if test "X$additional_includedir" = "X/usr/local/include"; then
12089 if test -n "$GCC"; then
12091 linux
*) haveit
=yes;;
12095 if test -z "$haveit"; then
12096 for x
in $CPPFLAGS $INCICONV; do
12098 acl_save_prefix
="$prefix"
12099 prefix
="$acl_final_prefix"
12100 acl_save_exec_prefix
="$exec_prefix"
12101 exec_prefix
="$acl_final_exec_prefix"
12103 exec_prefix
="$acl_save_exec_prefix"
12104 prefix
="$acl_save_prefix"
12106 if test "X$x" = "X-I$additional_includedir"; then
12111 if test -z "$haveit"; then
12112 if test -d "$additional_includedir"; then
12113 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12119 if test -n "$found_la"; then
12120 save_libdir
="$libdir"
12121 case "$found_la" in
12122 */* |
*\\*) .
"$found_la" ;;
12123 *) .
"./$found_la" ;;
12125 libdir
="$save_libdir"
12126 for dep
in $dependency_libs; do
12129 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
12130 if test "X$additional_libdir" != "X/usr/lib"; then
12132 if test "X$additional_libdir" = "X/usr/local/lib"; then
12133 if test -n "$GCC"; then
12135 linux
*) haveit
=yes;;
12139 if test -z "$haveit"; then
12141 for x
in $LDFLAGS $LIBICONV; do
12143 acl_save_prefix
="$prefix"
12144 prefix
="$acl_final_prefix"
12145 acl_save_exec_prefix
="$exec_prefix"
12146 exec_prefix
="$acl_final_exec_prefix"
12148 exec_prefix
="$acl_save_exec_prefix"
12149 prefix
="$acl_save_prefix"
12151 if test "X$x" = "X-L$additional_libdir"; then
12156 if test -z "$haveit"; then
12157 if test -d "$additional_libdir"; then
12158 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12162 for x
in $LDFLAGS $LTLIBICONV; do
12164 acl_save_prefix
="$prefix"
12165 prefix
="$acl_final_prefix"
12166 acl_save_exec_prefix
="$exec_prefix"
12167 exec_prefix
="$acl_final_exec_prefix"
12169 exec_prefix
="$acl_save_exec_prefix"
12170 prefix
="$acl_save_prefix"
12172 if test "X$x" = "X-L$additional_libdir"; then
12177 if test -z "$haveit"; then
12178 if test -d "$additional_libdir"; then
12179 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12186 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12187 if test "$enable_rpath" != no
; then
12189 for x
in $rpathdirs; do
12190 if test "X$x" = "X$dir"; then
12195 if test -z "$haveit"; then
12196 rpathdirs
="$rpathdirs $dir"
12199 for x
in $ltrpathdirs; do
12200 if test "X$x" = "X$dir"; then
12205 if test -z "$haveit"; then
12206 ltrpathdirs
="$ltrpathdirs $dir"
12211 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12214 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12217 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
12218 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12224 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12225 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12231 if test "X$rpathdirs" != "X"; then
12232 if test -n "$hardcode_libdir_separator"; then
12234 for found_dir
in $rpathdirs; do
12235 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12237 acl_save_libdir
="$libdir"
12239 eval flag
=\"$hardcode_libdir_flag_spec\"
12240 libdir
="$acl_save_libdir"
12241 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12243 for found_dir
in $rpathdirs; do
12244 acl_save_libdir
="$libdir"
12245 libdir
="$found_dir"
12246 eval flag
=\"$hardcode_libdir_flag_spec\"
12247 libdir
="$acl_save_libdir"
12248 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12252 if test "X$ltrpathdirs" != "X"; then
12253 for found_dir
in $ltrpathdirs; do
12254 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12264 am_save_CPPFLAGS
="$CPPFLAGS"
12266 for element
in $INCICONV; do
12268 for x
in $CPPFLAGS; do
12270 acl_save_prefix
="$prefix"
12271 prefix
="$acl_final_prefix"
12272 acl_save_exec_prefix
="$exec_prefix"
12273 exec_prefix
="$acl_final_exec_prefix"
12275 exec_prefix
="$acl_save_exec_prefix"
12276 prefix
="$acl_save_prefix"
12278 if test "X$x" = "X$element"; then
12283 if test -z "$haveit"; then
12284 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12289 echo "$as_me:$LINENO: checking for iconv" >&5
12290 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12291 if test "${am_cv_func_iconv+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 am_cv_func_iconv
="no, consider installing GNU libiconv"
12297 cat >conftest.
$ac_ext <<_ACEOF
12300 cat confdefs.h
>>conftest.
$ac_ext
12301 cat >>conftest.
$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 #include <stdlib.h>
12308 iconv_t cd = iconv_open("","");
12309 iconv(cd,NULL,NULL,NULL,NULL);
12315 rm -f conftest.
$ac_objext conftest
$ac_exeext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12317 (eval $ac_link) 2>conftest.er1
12319 grep -v '^ *+' conftest.er1
>conftest.err
12321 cat conftest.err
>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try
='test -z "$ac_c_werror_flag"
12325 || test ! -s conftest.err'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try
='test -s conftest$ac_exeext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337 am_cv_func_iconv
=yes
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.
$ac_ext >&5
12343 rm -f conftest.err conftest.
$ac_objext \
12344 conftest
$ac_exeext conftest.
$ac_ext
12345 if test "$am_cv_func_iconv" != yes; then
12346 am_save_LIBS
="$LIBS"
12347 LIBS
="$LIBS $LIBICONV"
12348 cat >conftest.
$ac_ext <<_ACEOF
12351 cat confdefs.h
>>conftest.
$ac_ext
12352 cat >>conftest.
$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 #include <stdlib.h>
12359 iconv_t cd = iconv_open("","");
12360 iconv(cd,NULL,NULL,NULL,NULL);
12366 rm -f conftest.
$ac_objext conftest
$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>conftest.er1
12370 grep -v '^ *+' conftest.er1
>conftest.err
12372 cat conftest.err
>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try
='test -z "$ac_c_werror_flag"
12376 || test ! -s conftest.err'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try
='test -s conftest$ac_exeext'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 am_cv_lib_iconv
=yes
12389 am_cv_func_iconv
=yes
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.
$ac_ext >&5
12395 rm -f conftest.err conftest.
$ac_objext \
12396 conftest
$ac_exeext conftest.
$ac_ext
12397 LIBS
="$am_save_LIBS"
12401 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12402 echo "${ECHO_T}$am_cv_func_iconv" >&6
12403 if test "$am_cv_func_iconv" = yes; then
12405 cat >>confdefs.h
<<\_ACEOF
12406 #define HAVE_ICONV 1
12410 if test "$am_cv_lib_iconv" = yes; then
12411 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12412 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12413 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12414 echo "${ECHO_T}$LIBICONV" >&6
12416 CPPFLAGS
="$am_save_CPPFLAGS"
12423 if test "$am_cv_func_iconv" = yes; then
12424 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12425 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12426 if test "${am_cv_proto_iconv+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 cat >conftest.
$ac_ext <<_ACEOF
12433 cat confdefs.h
>>conftest.
$ac_ext
12434 cat >>conftest.
$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12437 #include <stdlib.h>
12443 #if defined(__STDC__) || defined(__cplusplus)
12444 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12457 rm -f conftest.
$ac_objext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>conftest.er1
12461 grep -v '^ *+' conftest.er1
>conftest.err
12463 cat conftest.err
>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try
='test -z "$ac_c_werror_flag"
12467 || test ! -s conftest.err'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try
='test -s conftest.$ac_objext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 am_cv_proto_iconv_arg1
=""
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.
$ac_ext >&5
12484 am_cv_proto_iconv_arg1
="const"
12486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12487 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);"
12490 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12491 echo "$as_me:$LINENO: result: ${ac_t:-
12492 }$am_cv_proto_iconv" >&5
12493 echo "${ECHO_T}${ac_t:-
12494 }$am_cv_proto_iconv" >&6
12496 cat >>confdefs.h
<<_ACEOF
12497 #define ICONV_CONST $am_cv_proto_iconv_arg1
12502 # Until we have in-tree GNU iconv:
12507 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12508 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12509 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 cat >conftest.
$ac_ext <<_ACEOF
12515 cat confdefs.h
>>conftest.
$ac_ext
12516 cat >>conftest.
$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 #include <locale.h>
12527 rm -f conftest.
$ac_objext conftest
$ac_exeext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12529 (eval $ac_link) 2>conftest.er1
12531 grep -v '^ *+' conftest.er1
>conftest.err
12533 cat conftest.err
>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try
='test -z "$ac_c_werror_flag"
12537 || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try
='test -s conftest$ac_exeext'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 am_cv_val_LC_MESSAGES
=yes
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.
$ac_ext >&5
12554 am_cv_val_LC_MESSAGES
=no
12556 rm -f conftest.err conftest.
$ac_objext \
12557 conftest
$ac_exeext conftest.
$ac_ext
12559 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12560 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12561 if test $am_cv_val_LC_MESSAGES = yes; then
12563 cat >>confdefs.h
<<\_ACEOF
12564 #define HAVE_LC_MESSAGES 1
12571 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12572 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12573 if test "${am_cv_langinfo_codeset+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 cat >conftest.
$ac_ext <<_ACEOF
12579 cat confdefs.h
>>conftest.
$ac_ext
12580 cat >>conftest.
$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #include <langinfo.h>
12586 char* cs = nl_langinfo(CODESET);
12591 rm -f conftest.
$ac_objext conftest
$ac_exeext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12593 (eval $ac_link) 2>conftest.er1
12595 grep -v '^ *+' conftest.er1
>conftest.err
12597 cat conftest.err
>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try
='test -z "$ac_c_werror_flag"
12601 || test ! -s conftest.err'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } &&
12607 { ac_try
='test -s conftest$ac_exeext'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 am_cv_langinfo_codeset
=yes
12615 echo "$as_me: failed program was:" >&5
12616 sed 's/^/| /' conftest.
$ac_ext >&5
12618 am_cv_langinfo_codeset
=no
12620 rm -f conftest.err conftest.
$ac_objext \
12621 conftest
$ac_exeext conftest.
$ac_ext
12624 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12625 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12626 if test $am_cv_langinfo_codeset = yes; then
12628 cat >>confdefs.h
<<\_ACEOF
12629 #define HAVE_LANGINFO_CODESET 1
12635 # We will need to find libiberty.h and ansidecl.h
12636 saved_CFLAGS
="$CFLAGS"
12637 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12677 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
12678 strsignal strstr strverscmp \
12679 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12680 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
12682 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12683 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12684 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12685 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 cat >conftest.
$ac_ext <<_ACEOF
12691 cat confdefs.h
>>conftest.
$ac_ext
12692 cat >>conftest.
$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12695 #define $ac_tr_decl 1
12697 #include "ansidecl.h"
12698 #include "system.h"
12704 char *(*pfn) = (char *(*)) $ac_func ;
12710 rm -f conftest.
$ac_objext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12714 grep -v '^ *+' conftest.er1
>conftest.err
12716 cat conftest.err
>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try
='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try
='test -s conftest.$ac_objext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 eval "gcc_cv_have_decl_$ac_func=yes"
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.
$ac_ext >&5
12737 eval "gcc_cv_have_decl_$ac_func=no"
12739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12742 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12743 echo "$as_me:$LINENO: result: yes" >&5
12744 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12745 #define $ac_tr_decl 1
12749 echo "$as_me:$LINENO: result: no" >&5
12750 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12751 #define $ac_tr_decl 0
12762 for ac_func
in getrlimit setrlimit getrusage
12764 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12765 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12766 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12767 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 cat >conftest.
$ac_ext <<_ACEOF
12773 cat confdefs.h
>>conftest.
$ac_ext
12774 cat >>conftest.
$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12777 #define $ac_tr_decl 1
12779 #include "ansidecl.h"
12780 #include "system.h"
12781 #ifdef HAVE_SYS_RESOURCE_H
12782 #include <sys/resource.h>
12790 char *(*pfn) = (char *(*)) $ac_func ;
12796 rm -f conftest.
$ac_objext
12797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12798 (eval $ac_compile) 2>conftest.er1
12800 grep -v '^ *+' conftest.er1
>conftest.err
12802 cat conftest.err
>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try
='test -z "$ac_c_werror_flag"
12806 || test ! -s conftest.err'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; } &&
12812 { ac_try
='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 eval "gcc_cv_have_decl_$ac_func=yes"
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.
$ac_ext >&5
12823 eval "gcc_cv_have_decl_$ac_func=no"
12825 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12828 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12829 echo "$as_me:$LINENO: result: yes" >&5
12830 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12831 #define $ac_tr_decl 1
12835 echo "$as_me:$LINENO: result: no" >&5
12836 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12837 #define $ac_tr_decl 0
12845 cat >conftest.
$ac_ext <<_ACEOF
12848 cat confdefs.h
>>conftest.
$ac_ext
12849 cat >>conftest.
$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12852 #include "ansidecl.h"
12853 #include "system.h"
12854 #ifdef HAVE_SYS_RESOURCE_H
12855 #include <sys/resource.h>
12866 rm -f conftest.
$ac_objext
12867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12868 (eval $ac_compile) 2>conftest.er1
12870 grep -v '^ *+' conftest.er1
>conftest.err
12872 cat conftest.err
>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try
='test -z "$ac_c_werror_flag"
12876 || test ! -s conftest.err'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; } &&
12882 { ac_try
='test -s conftest.$ac_objext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.
$ac_ext >&5
12894 cat >>confdefs.h
<<\_ACEOF
12895 #define rlim_t long
12899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12901 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12902 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12903 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12904 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12906 for ac_func
in ldgetname
12908 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12909 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12910 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12911 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 cat >conftest.
$ac_ext <<_ACEOF
12917 cat confdefs.h
>>conftest.
$ac_ext
12918 cat >>conftest.
$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12921 #define $ac_tr_decl 1
12923 #include "ansidecl.h"
12924 #include "system.h"
12925 #ifdef HAVE_LDFCN_H
12936 char *(*pfn) = (char *(*)) $ac_func ;
12942 rm -f conftest.
$ac_objext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12944 (eval $ac_compile) 2>conftest.er1
12946 grep -v '^ *+' conftest.er1
>conftest.err
12948 cat conftest.err
>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try
='test -z "$ac_c_werror_flag"
12952 || test ! -s conftest.err'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try
='test -s conftest.$ac_objext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 eval "gcc_cv_have_decl_$ac_func=yes"
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.
$ac_ext >&5
12969 eval "gcc_cv_have_decl_$ac_func=no"
12971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12974 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12975 echo "$as_me:$LINENO: result: yes" >&5
12976 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12977 #define $ac_tr_decl 1
12981 echo "$as_me:$LINENO: result: no" >&5
12982 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12983 #define $ac_tr_decl 0
12992 for ac_func
in times
12994 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12995 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12996 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12997 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 cat >conftest.
$ac_ext <<_ACEOF
13003 cat confdefs.h
>>conftest.
$ac_ext
13004 cat >>conftest.
$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13007 #define $ac_tr_decl 1
13009 #include "ansidecl.h"
13010 #include "system.h"
13011 #ifdef HAVE_SYS_TIMES_H
13012 #include <sys/times.h>
13020 char *(*pfn) = (char *(*)) $ac_func ;
13026 rm -f conftest.
$ac_objext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028 (eval $ac_compile) 2>conftest.er1
13030 grep -v '^ *+' conftest.er1
>conftest.err
13032 cat conftest.err
>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try
='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try
='test -s conftest.$ac_objext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 eval "gcc_cv_have_decl_$ac_func=yes"
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.
$ac_ext >&5
13053 eval "gcc_cv_have_decl_$ac_func=no"
13055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13058 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13059 echo "$as_me:$LINENO: result: yes" >&5
13060 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
13061 #define $ac_tr_decl 1
13065 echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
13067 #define $ac_tr_decl 0
13076 for ac_func
in sigaltstack
13078 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
13079 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13080 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
13081 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 cat >conftest.
$ac_ext <<_ACEOF
13087 cat confdefs.h
>>conftest.
$ac_ext
13088 cat >>conftest.
$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13091 #define $ac_tr_decl 1
13093 #include "ansidecl.h"
13094 #include "system.h"
13095 #include <signal.h>
13102 char *(*pfn) = (char *(*)) $ac_func ;
13108 rm -f conftest.
$ac_objext
13109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13110 (eval $ac_compile) 2>conftest.er1
13112 grep -v '^ *+' conftest.er1
>conftest.err
13114 cat conftest.err
>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try
='test -z "$ac_c_werror_flag"
13118 || test ! -s conftest.err'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } &&
13124 { ac_try
='test -s conftest.$ac_objext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 eval "gcc_cv_have_decl_$ac_func=yes"
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.
$ac_ext >&5
13135 eval "gcc_cv_have_decl_$ac_func=no"
13137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13140 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13141 echo "$as_me:$LINENO: result: yes" >&5
13142 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
13143 #define $ac_tr_decl 1
13147 echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
13149 #define $ac_tr_decl 0
13157 # More time-related stuff.
13158 echo "$as_me:$LINENO: checking for struct tms" >&5
13159 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
13160 if test "${ac_cv_struct_tms+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 cat >conftest.
$ac_ext <<_ACEOF
13167 cat confdefs.h
>>conftest.
$ac_ext
13168 cat >>conftest.
$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13171 #include "ansidecl.h"
13172 #include "system.h"
13173 #ifdef HAVE_SYS_TIMES_H
13174 #include <sys/times.h>
13185 rm -f conftest.
$ac_objext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>conftest.er1
13189 grep -v '^ *+' conftest.er1
>conftest.err
13191 cat conftest.err
>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
13194 { ac_try
='test -z "$ac_c_werror_flag"
13195 || test ! -s conftest.err'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; } &&
13201 { ac_try
='test -s conftest.$ac_objext'
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_cv_struct_tms
=yes
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.
$ac_ext >&5
13212 ac_cv_struct_tms
=no
13214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13216 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
13217 echo "${ECHO_T}$ac_cv_struct_tms" >&6
13218 if test $ac_cv_struct_tms = yes; then
13220 cat >>confdefs.h
<<\_ACEOF
13221 #define HAVE_STRUCT_TMS 1
13226 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
13227 # revisit after autoconf 2.50.
13228 echo "$as_me:$LINENO: checking for clock_t" >&5
13229 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
13230 if test "${gcc_cv_type_clock_t+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 cat >conftest.
$ac_ext <<_ACEOF
13237 cat confdefs.h
>>conftest.
$ac_ext
13238 cat >>conftest.
$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13241 #include "ansidecl.h"
13242 #include "system.h"
13252 rm -f conftest.
$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13256 grep -v '^ *+' conftest.er1
>conftest.err
13258 cat conftest.err
>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try
='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try
='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 gcc_cv_type_clock_t
=yes
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.
$ac_ext >&5
13279 gcc_cv_type_clock_t
=no
13281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13283 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
13284 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
13285 if test $gcc_cv_type_clock_t = yes; then
13287 cat >>confdefs.h
<<\_ACEOF
13288 #define HAVE_CLOCK_T 1
13293 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
13294 CFLAGS
="$saved_CFLAGS"
13296 # Check whether --enable-initfini-array or --disable-initfini-array was given.
13297 if test "${enable_initfini_array+set}" = set; then
13298 enableval
="$enable_initfini_array"
13302 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
13303 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
13304 if test "${gcc_cv_initfini_array+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 if test "$cross_compiling" = yes; then
13308 gcc_cv_initfini_array
=no
13310 cat >conftest.
$ac_ext <<_ACEOF
13313 cat confdefs.h
>>conftest.
$ac_ext
13314 cat >>conftest.
$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13318 int main (void) { return x; }
13319 int foo (void) { x = 0; }
13320 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
13322 rm -f conftest
$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324 (eval $ac_link) 2>&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
13333 gcc_cv_initfini_array
=yes
13335 echo "$as_me: program exited with status $ac_status" >&5
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.
$ac_ext >&5
13339 ( exit $ac_status )
13340 gcc_cv_initfini_array
=no
13342 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13345 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
13346 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
13347 enable_initfini_array
=$gcc_cv_initfini_array
13350 if test $enable_initfini_array = yes; then
13352 cat >>confdefs.h
<<\_ACEOF
13353 #define HAVE_INITFINI_ARRAY 1
13358 # mkdir takes a single argument on some systems.
13359 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
13360 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
13361 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 cat >conftest.
$ac_ext <<_ACEOF
13367 cat confdefs.h
>>conftest.
$ac_ext
13368 cat >>conftest.
$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13371 #include <sys/types.h>
13372 #ifdef HAVE_SYS_STAT_H
13373 # include <sys/stat.h>
13375 #ifdef HAVE_UNISTD_H
13376 # include <unistd.h>
13378 #ifdef HAVE_DIRECT_H
13379 # include <direct.h>
13389 rm -f conftest.
$ac_objext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13391 (eval $ac_compile) 2>conftest.er1
13393 grep -v '^ *+' conftest.er1
>conftest.err
13395 cat conftest.err
>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
13398 { ac_try
='test -z "$ac_c_werror_flag"
13399 || test ! -s conftest.err'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; } &&
13405 { ac_try
='test -s conftest.$ac_objext'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13411 gcc_cv_mkdir_takes_one_arg
=no
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.
$ac_ext >&5
13416 gcc_cv_mkdir_takes_one_arg
=yes
13418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13420 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13421 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
13422 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13424 cat >>confdefs.h
<<\_ACEOF
13425 #define MKDIR_TAKES_ONE_ARG 1
13437 # With Setjmp/Longjmp based exception handling.
13438 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13439 if test "${enable_sjlj_exceptions+set}" = set; then
13440 enableval
="$enable_sjlj_exceptions"
13443 if test $enableval != yes; then
13444 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13445 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13450 force_sjlj_exceptions
=yes
13454 force_sjlj_exceptions
=yes
13458 force_sjlj_exceptions
=no
13462 if test $force_sjlj_exceptions = yes; then
13463 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
13465 cat >>confdefs.h
<<_ACEOF
13466 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13471 # For platforms with the unwind ABI which includes an unwind library,
13472 # libunwind, we can choose to use the system libunwind.
13473 # config.gcc also contains tests of with_system_libunwind.
13476 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13477 if test "${with_system_libunwind+set}" = set; then
13478 withval
="$with_system_libunwind"
13481 # If system-libunwind was not specifically set, pick a default setting.
13482 if test x
$with_system_libunwind = x
; then
13484 ia64-
*-hpux*) with_system_libunwind
=yes ;;
13485 *) with_system_libunwind
=no
;;
13488 # Based on system-libunwind and target, do we have ipinfo?
13489 if test x
$with_system_libunwind = xyes
; then
13491 ia64-
*-*) have_unwind_getipinfo
=no
;;
13492 *) have_unwind_getipinfo
=yes ;;
13495 # Darwin before version 9 does not have _Unwind_GetIPInfo.
13498 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
13499 *) have_unwind_getipinfo
=yes ;;
13504 if test x
$have_unwind_getipinfo = xyes
; then
13506 cat >>confdefs.h
<<\_ACEOF
13507 #define HAVE_GETIPINFO 1
13513 # --------------------------------------------------------
13514 # Build, host, and target specific configuration fragments
13515 # --------------------------------------------------------
13517 # Collect build-machine-specific information.
13518 .
${srcdir}/config.build
13520 # Collect host-machine-specific information.
13521 .
${srcdir}/config.
host
13525 # Collect target-machine-specific information.
13526 .
${srcdir}/config.gcc
13528 extra_objs
="${host_extra_objs} ${extra_objs}"
13529 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
13531 # Default the target-machine variables that were not explicitly set.
13532 if test x
"$tm_file" = x
13533 then tm_file
=$cpu_type/$cpu_type.h
; fi
13535 if test x
"$extra_headers" = x
13536 then extra_headers
=; fi
13538 if test x
$md_file = x
13539 then md_file
=$cpu_type/$cpu_type.md
; fi
13541 if test x
$out_file = x
13542 then out_file
=$cpu_type/$cpu_type.c
; fi
13544 if test x
"$tmake_file" = x
13545 then tmake_file
=$cpu_type/t-
$cpu_type
13548 if test x
"$dwarf2" = xyes
13549 then tm_file
="$tm_file tm-dwarf2.h"
13552 # Say what files are being used for the output code and MD file.
13553 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13554 echo "Using \`$srcdir/config/$md_file' as machine description file."
13556 # If any of the xm_file variables contain nonexistent files, warn
13557 # about them and drop them.
13560 for x
in $build_xm_file; do
13561 if test -f $srcdir/config
/$x
13563 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13564 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13567 build_xm_file
="$bx"
13570 for x
in $host_xm_file; do
13571 if test -f $srcdir/config
/$x
13573 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13574 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13580 for x
in $xm_file; do
13581 if test -f $srcdir/config
/$x
13583 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13584 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13590 for f
in $tm_file; do
13593 if test $count = ax
; then
13594 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13596 echo "Using the following target machine macro files:"
13597 for f
in $tm_file; do
13598 echo " $srcdir/config/$f"
13602 if test x
$need_64bit_hwint = xyes
; then
13604 cat >>confdefs.h
<<\_ACEOF
13605 #define NEED_64BIT_HOST_WIDE_INT 1
13610 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13612 cat >>confdefs.h
<<\_ACEOF
13613 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13619 for f
in $host_xm_file; do
13622 if test $count = a
; then
13624 elif test $count = ax
; then
13625 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13627 echo "Using the following host machine macro files:"
13628 for f
in $host_xm_file; do
13629 echo " $srcdir/config/$f"
13632 echo "Using ${out_host_hook_obj} for host machine hooks."
13634 if test "$host_xm_file" != "$build_xm_file"; then
13636 for f
in $build_xm_file; do
13639 if test $count = a
; then
13641 elif test $count = ax
; then
13642 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13644 echo "Using the following build machine macro files:"
13645 for f
in $build_xm_file; do
13646 echo " $srcdir/config/$f"
13652 powerpc
*-*-darwin*)
13653 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13654 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13655 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 cat >conftest.
$ac_ext <<_ACEOF
13660 #include <sys/cdefs.h>
13661 #include <sys/signal.h>
13662 #include <ucontext.h>
13663 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13666 rm -f conftest.
$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13670 grep -v '^ *+' conftest.er1
>conftest.err
13672 cat conftest.err
>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try
='test -z "$ac_c_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try
='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 gcc_cv_mcontext_underscores
=no
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.
$ac_ext >&5
13693 gcc_cv_mcontext_underscores
=yes
13695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13697 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13698 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13699 if test $gcc_cv_mcontext_underscores = yes; then
13701 cat >>confdefs.h
<<\_ACEOF
13702 #define HAS_MCONTEXT_T_UNDERSCORES
13713 # Check if a valid thread package
13714 case ${enable_threads} in
13717 target_thread_file
='single'
13721 target_thread_file
='single'
13723 aix | dce | gnat | irix | posix | posix95 | rtems | \
13724 single | solaris | vxworks | win32 | mipssde
)
13725 target_thread_file
=${enable_threads}
13728 echo "${enable_threads} is an unknown thread package" 1>&2
13733 if test x
${thread_file} = x
; then
13734 # No thread file set by target-specific clauses in config.gcc,
13735 # so use file chosen by default logic above
13736 thread_file
=${target_thread_file}
13739 # Make gthr-default.h if we have a thread file.
13741 if test $thread_file != single
; then
13742 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13743 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
13744 rm -f gthr-default.h-t
13746 mv -f gthr-default.h-t gthr-default.h
13748 gthread_flags
=-DHAVE_GTHR_DEFAULT
13757 if test x
$enable___cxa_atexit = xyes || \
13758 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13759 if test x
$host = x
$target; then
13761 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13762 # keyed to flag_use_cxa_atexit
13767 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13768 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13769 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 cat >conftest.
$ac_ext <<_ACEOF
13775 cat confdefs.h
>>conftest.
$ac_ext
13776 cat >>conftest.
$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13780 #define __cxa_atexit innocuous___cxa_atexit
13782 /* System header to define __stub macros and hopefully few prototypes,
13783 which can conflict with char __cxa_atexit (); below.
13784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13785 <limits.h> exists even on freestanding compilers. */
13788 # include <limits.h>
13790 # include <assert.h>
13793 #undef __cxa_atexit
13795 /* Override any gcc2 internal prototype to avoid an error. */
13800 /* We use char because int might match the return type of a gcc2
13801 builtin and then its argument prototype would still apply. */
13802 char __cxa_atexit ();
13803 /* The GNU C library defines this for functions which it implements
13804 to always fail with ENOSYS. Some functions are actually named
13805 something starting with __ and the normal name is an alias. */
13806 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13809 char (*f) () = __cxa_atexit;
13818 return f != __cxa_atexit;
13823 rm -f conftest.
$ac_objext conftest
$ac_exeext
13824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13825 (eval $ac_link) 2>conftest.er1
13827 grep -v '^ *+' conftest.er1
>conftest.err
13829 cat conftest.err
>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } &&
13832 { ac_try
='test -z "$ac_c_werror_flag"
13833 || test ! -s conftest.err'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; } &&
13839 { ac_try
='test -s conftest$ac_exeext'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_cv_func___cxa_atexit
=yes
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.
$ac_ext >&5
13850 ac_cv_func___cxa_atexit
=no
13852 rm -f conftest.err conftest.
$ac_objext \
13853 conftest
$ac_exeext conftest.
$ac_ext
13855 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13856 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13857 if test $ac_cv_func___cxa_atexit = yes; then
13860 echo "__cxa_atexit can't be enabled on this target"
13866 # We can't check for __cxa_atexit when building a cross, so assume
13870 if test x
$use_cxa_atexit = xyes
; then
13872 cat >>confdefs.h
<<\_ACEOF
13873 #define DEFAULT_USE_CXA_ATEXIT 2
13879 # Look for a file containing extra machine modes.
13880 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13881 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13884 cat >>confdefs.h
<<_ACEOF
13885 #define EXTRA_MODES_FILE "config/$extra_modes"
13890 # Convert extra_options into a form suitable for Makefile use.
13892 for f
in $extra_options; do
13893 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13897 # auto-host.h is the file containing items generated by autoconf and is
13898 # the first file included by config.h.
13899 # If host=build, it is correct to have bconfig include auto-host.h
13900 # as well. If host!=build, we are in error and need to do more
13901 # work to find out the build config parameters.
13902 if test x
$host = x
$build
13904 build_auto
=auto-host.h
13906 # We create a subdir, then run autoconf in the subdir.
13907 # To prevent recursion we set host and build for the new
13908 # invocation of configure to the build for this invocation
13915 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13916 *) realsrcdir
=..
/${srcdir};;
13918 saved_CFLAGS
="${CFLAGS}"
13919 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13920 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13921 ${realsrcdir}/configure \
13922 --enable-languages=${enable_languages-all} \
13923 --target=$target_alias --host=$build_alias --build=$build_alias
13924 CFLAGS
="${saved_CFLAGS}"
13926 # We just finished tests for the build machine, so rename
13927 # the file auto-build.h in the gcc directory.
13928 mv auto-host.h ..
/auto-build.h
13931 build_auto
=auto-build.h
13935 tm_file
="${tm_file} defaults.h"
13936 tm_p_file
="${tm_p_file} tm-preds.h"
13937 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13938 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13939 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13940 # put this back in temporarily.
13941 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13947 # Compile in configure arguments.
13948 if test -f configargs.h
; then
13949 # Being re-configured.
13950 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13951 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13953 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13956 # Double all backslashes and backslash all quotes to turn
13957 # gcc_config_arguments into a C string.
13958 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13959 $gcc_config_arguments
13961 gcc_config_arguments_str
=`cat conftest.out`
13964 cat > configargs.h
<<EOF
13965 /* Generated automatically. */
13966 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13967 static const char thread_model[] = "$thread_file";
13969 static const struct {
13970 const char *name, *value;
13971 } configure_default_options[] = $configure_default_options;
13974 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13975 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13976 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13977 if test -f $srcdir/REVISION
; then
13978 gcc_REVISION
=`cat $srcdir/REVISION`
13982 cat > plugin-version.h
<<EOF
13983 #include "configargs.h"
13985 static char basever[] = "$gcc_BASEVER";
13986 static char datestamp[] = "$gcc_DATESTAMP";
13987 static char devphase[] = "$gcc_DEVPHASE";
13988 static char revision[] = "$gcc_REVISION";
13990 /* FIXME plugins: We should make the version information more precise.
13991 One way to do is to add a checksum. */
13993 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13994 devphase, revision,
13995 configuration_arguments};
13998 # Internationalization
13999 # If we haven't got the data from the intl directory,
14000 # assume NLS is disabled.
14009 if test -f ..
/intl
/config.intl
; then
14010 . ..
/intl
/config.intl
14012 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14013 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
14014 if test x
"$USE_NLS" != xyes
; then
14015 echo "$as_me:$LINENO: result: no" >&5
14016 echo "${ECHO_T}no" >&6
14018 echo "$as_me:$LINENO: result: yes" >&5
14019 echo "${ECHO_T}yes" >&6
14021 cat >>confdefs.h
<<\_ACEOF
14022 #define ENABLE_NLS 1
14026 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
14027 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
14028 # Look for .po and .gmo files in the source directory.
14031 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
14032 # If there aren't any .gmo files the shell will give us the
14033 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14035 case "$cat" in *\
**)
14038 # The quadruple backslash is collapsed to a double backslash
14039 # by the backticks, then collapsed again by the double quotes,
14040 # leaving us with one backslash in the sed expression (right
14041 # before the dot that mustn't act as a wildcard).
14042 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14043 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
14044 # The user is allowed to set LINGUAS to a list of languages to
14045 # install catalogs for. If it's empty that means "all of them."
14046 if test "x$LINGUAS" = x
; then
14047 CATALOGS
="$CATALOGS $cat"
14048 XLINGUAS
="$XLINGUAS $lang"
14050 case "$LINGUAS" in *$lang*)
14051 CATALOGS
="$CATALOGS $cat"
14052 XLINGUAS
="$XLINGUAS $lang"
14057 LINGUAS
="$XLINGUAS"
14058 echo "$as_me:$LINENO: result: $LINGUAS" >&5
14059 echo "${ECHO_T}$LINGUAS" >&6
14072 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14073 # -liconv on the link line twice.
14074 case "$LIBINTL" in *$LIBICONV*)
14078 # Check whether --enable-secureplt or --disable-secureplt was given.
14079 if test "${enable_secureplt+set}" = set; then
14080 enableval
="$enable_secureplt"
14084 # Check whether --enable-cld or --disable-cld was given.
14085 if test "${enable_cld+set}" = set; then
14086 enableval
="$enable_cld"
14092 # Windows32 Registry support for specifying GCC installation paths.
14093 # Check whether --enable-win32-registry or --disable-win32-registry was given.
14094 if test "${enable_win32_registry+set}" = set; then
14095 enableval
="$enable_win32_registry"
14100 win32 | pe | cygwin
* | mingw32
* | uwin
*)
14101 if test "x$enable_win32_registry" != xno
; then
14102 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
14103 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
14104 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 ac_func_search_save_LIBS
=$LIBS
14108 ac_cv_search_RegOpenKeyExA
=no
14109 cat >conftest.
$ac_ext <<_ACEOF
14112 cat confdefs.h
>>conftest.
$ac_ext
14113 cat >>conftest.
$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14116 /* Override any gcc2 internal prototype to avoid an error. */
14120 /* We use char because int might match the return type of a gcc2
14121 builtin and then its argument prototype would still apply. */
14122 char RegOpenKeyExA ();
14131 rm -f conftest.
$ac_objext conftest
$ac_exeext
14132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14133 (eval $ac_link) 2>conftest.er1
14135 grep -v '^ *+' conftest.er1
>conftest.err
14137 cat conftest.err
>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
14140 { ac_try
='test -z "$ac_c_werror_flag"
14141 || test ! -s conftest.err'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; } &&
14147 { ac_try
='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 ac_cv_search_RegOpenKeyExA
="none required"
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.
$ac_ext >&5
14159 rm -f conftest.err conftest.
$ac_objext \
14160 conftest
$ac_exeext conftest.
$ac_ext
14161 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
14162 for ac_lib
in advapi32
; do
14163 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14164 cat >conftest.
$ac_ext <<_ACEOF
14167 cat confdefs.h
>>conftest.
$ac_ext
14168 cat >>conftest.
$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14171 /* Override any gcc2 internal prototype to avoid an error. */
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14177 char RegOpenKeyExA ();
14186 rm -f conftest.
$ac_objext conftest
$ac_exeext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14188 (eval $ac_link) 2>conftest.er1
14190 grep -v '^ *+' conftest.er1
>conftest.err
14192 cat conftest.err
>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try
='test -z "$ac_c_werror_flag"
14196 || test ! -s conftest.err'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; } &&
14202 { ac_try
='test -s conftest$ac_exeext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.
$ac_ext >&5
14215 rm -f conftest.err conftest.
$ac_objext \
14216 conftest
$ac_exeext conftest.
$ac_ext
14219 LIBS
=$ac_func_search_save_LIBS
14221 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
14222 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
14223 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
14224 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
14227 enable_win32_registry
=no
14232 if test "x$enable_win32_registry" != xno
; then
14234 cat >>confdefs.h
<<\_ACEOF
14235 #define ENABLE_WIN32_REGISTRY 1
14239 if test "x$enable_win32_registry" != xyes \
14240 && test "x$enable_win32_registry" != x
; then
14242 cat >>confdefs.h
<<_ACEOF
14243 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
14251 # Get an absolute path to the GCC top-level source directory
14252 holddir
=`${PWDCMD-pwd}`
14254 topdir
=`${PWDCMD-pwd}`
14257 # Conditionalize the makefile for this host machine.
14259 for f
in ${host_xmake_file}
14261 if test -f ${srcdir}/config
/$f
14263 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
14267 # Conditionalize the makefile for this target machine.
14269 for f
in ${tmake_file}
14271 if test -f ${srcdir}/config
/$f
14273 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
14276 tmake_file
="${tmake_file_}"
14278 out_object_file
=`basename $out_file .c`.o
14280 tm_file_list
="options.h"
14281 tm_include_list
="options.h"
14282 for f
in $tm_file; do
14285 f
=`echo $f | sed 's/^..//'`
14286 tm_file_list
="${tm_file_list} $f"
14287 tm_include_list
="${tm_include_list} $f"
14290 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
14291 tm_include_list
="${tm_include_list} $f"
14294 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
14295 tm_include_list
="${tm_include_list} config/$f"
14302 for f
in $tm_p_file; do
14305 tm_p_file_list
="${tm_p_file_list} $f"
14306 tm_p_include_list
="${tm_p_include_list} $f"
14309 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
14310 tm_p_include_list
="${tm_p_include_list} config/$f"
14316 for f
in $xm_file; do
14319 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
14320 xm_include_list
="${xm_include_list} $f"
14323 xm_file_list
="${xm_file_list} $f"
14324 xm_include_list
="${xm_include_list} $f"
14327 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
14328 xm_include_list
="${xm_include_list} config/$f"
14334 host_xm_include_list
=
14335 for f
in $host_xm_file; do
14338 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
14339 host_xm_include_list
="${host_xm_include_list} $f"
14342 host_xm_file_list
="${host_xm_file_list} $f"
14343 host_xm_include_list
="${host_xm_include_list} $f"
14346 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
14347 host_xm_include_list
="${host_xm_include_list} config/$f"
14352 build_xm_file_list
=
14353 for f
in $build_xm_file; do
14356 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
14357 build_xm_include_list
="${build_xm_include_list} $f"
14359 auto-build.h | auto-host.h
)
14360 build_xm_file_list
="${build_xm_file_list} $f"
14361 build_xm_include_list
="${build_xm_include_list} $f"
14364 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
14365 build_xm_include_list
="${build_xm_include_list} config/$f"
14370 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14371 # cross-compiler which does not use the native headers and libraries.
14372 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14375 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
14377 if test "x$with_build_sysroot" != x
; then
14378 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14380 # This value is used, even on a native system, because
14381 # CROSS_SYSTEM_HEADER_DIR is just
14382 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14383 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
14386 if test x
$host != x
$target
14388 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
14390 SYSTEM_HEADER_DIR
=$build_system_header_dir
14391 case "$host","$target" in
14392 # Darwin crosses can use the host system's libraries and headers,
14393 # because of the fat library support. Of course, it must be the
14394 # same version of Darwin on both sides. Allow the user to
14395 # just say --target=foo-darwin without a version number to mean
14396 # "the version on this system".
14397 *-*-darwin*,*-*-darwin*)
14398 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
14399 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
14400 if test $hostos = $targetos -o $targetos = darwin
; then
14402 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
14407 i?
86-*-*,x86_64-
*-* \
14408 | powerpc
*-*-*,powerpc64
*-*-*)
14409 CROSS
="$CROSS -DNATIVE_CROSS" ;;
14411 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
14412 SYSTEM_HEADER_DIR
=$build_system_header_dir
14415 # If this is a cross-compiler that does not
14416 # have its own set of headers then define
14419 # If this is using newlib, without having the headers available now,
14420 # then define inhibit_libc in LIBGCC2_CFLAGS.
14421 # This prevents libgcc2 from containing any code which requires libc
14423 : ${inhibit_libc=false}
14424 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
14425 test x
$with_newlib = xyes
; } &&
14426 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
14431 # When building gcc with a cross-compiler, we need to adjust things so
14432 # that the generator programs are still built with the native compiler.
14433 # Also, we cannot run fixincludes.
14435 # These are the normal (build=host) settings:
14436 CC_FOR_BUILD
='$(CC)'
14437 BUILD_CFLAGS
='$(ALL_CFLAGS)'
14438 BUILD_LDFLAGS
='$(LDFLAGS)'
14439 STMP_FIXINC
=stmp-fixinc
14441 # And these apply if build != host, or we are generating coverage data
14442 if test x
$build != x
$host ||
test "x$coverage_flags" != x
14444 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14445 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
14448 # Expand extra_headers to include complete path.
14449 # This substitutes for lots of t-* files.
14450 extra_headers_list
=
14451 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14452 for file in ${extra_headers} ; do
14453 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14456 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14457 if test x
"$use_gcc_tgmath" = xyes
14458 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14461 # Define collect2 in Makefile.
14462 case $host_can_use_collect2 in
14464 *) collect2
='collect2$(exeext)' ;;
14468 # Add a definition of USE_COLLECT2 if system wants one.
14469 case $use_collect2 in
14470 no
) use_collect2
= ;;
14473 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
14474 xm_defines
="${xm_defines} USE_COLLECT2"
14475 case $host_can_use_collect2 in
14477 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14478 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14479 { (exit 1); exit 1; }; }
14485 # ---------------------------
14486 # Assembler & linker features
14487 # ---------------------------
14489 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14490 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14491 # However when ld-new is first executed from the build tree, libtool will
14492 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14493 # to the build tree. While doing this we need to use the previous-stage
14494 # linker, or we have an infinite loop. The presence of a shell script as
14495 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14496 # the gcc/collect-ld script. So we need to know how libtool works, or
14497 # exec-tool will fail.
14502 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
14503 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
14508 macro_version
='2.2.6'
14509 macro_revision
='1.3012'
14523 ltmain
="$ac_aux_dir/ltmain.sh"
14525 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14526 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14527 if test "${lt_cv_path_SED+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 # Loop through the user's path and test for sed and gsed.
14531 # Then use that list of sed's as ones to test for truncation.
14532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14533 for as_dir
in $PATH
14536 test -z "$as_dir" && as_dir
=.
14537 for lt_ac_prog
in sed gsed
; do
14538 for ac_exec_ext
in '' $ac_executable_extensions; do
14539 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14540 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14548 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14549 # along with /bin/sed that truncates output.
14550 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
14551 test ! -f $lt_ac_sed && continue
14552 cat /dev
/null
> conftest.
in
14554 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
14555 # Check for GNU sed and select it if it is found.
14556 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
14557 lt_cv_path_SED
=$lt_ac_sed
14561 cat conftest.
in conftest.
in >conftest.tmp
14562 mv conftest.tmp conftest.
in
14563 cp conftest.
in conftest.
nl
14565 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
14566 cmp -s conftest.out conftest.
nl ||
break
14567 # 10000 chars as input seems more than enough
14568 test $lt_ac_count -gt 10 && break
14569 lt_ac_count
=`expr $lt_ac_count + 1`
14570 if test $lt_ac_count -gt $lt_ac_max; then
14571 lt_ac_max
=$lt_ac_count
14572 lt_cv_path_SED
=$lt_ac_sed
14579 SED
=$lt_cv_path_SED
14581 echo "$as_me:$LINENO: result: $SED" >&5
14582 echo "${ECHO_T}$SED" >&6
14584 test -z "$SED" && SED
=sed
14585 Xsed
="$SED -e 1s/^X//"
14597 echo "$as_me:$LINENO: checking for fgrep" >&5
14598 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14599 if test "${ac_cv_prog_fgrep+set}" = set; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
14603 then ac_cv_prog_fgrep
='grep -F'
14604 else ac_cv_prog_fgrep
='fgrep'
14607 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14608 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14609 FGREP
=$ac_cv_prog_fgrep
14612 test -z "$GREP" && GREP
=grep
14632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14633 if test "${with_gnu_ld+set}" = set; then
14634 withval
="$with_gnu_ld"
14635 test "$withval" = no || with_gnu_ld
=yes
14640 if test "$GCC" = yes; then
14641 # Check if gcc -print-prog-name=ld gives a path.
14642 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14646 # gcc leaves a trailing carriage return which upsets mingw
14647 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14649 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14652 # Accept absolute paths.
14654 re_direlt
='/[^/][^/]*/\.\./'
14655 # Canonicalize the pathname of ld
14656 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14657 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14658 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14660 test -z "$LD" && LD
="$ac_prog"
14663 # If it fails, then pretend we aren't using GCC.
14667 # If it is relative, then search for the first ld in PATH.
14668 with_gnu_ld
=unknown
14671 elif test "$with_gnu_ld" = yes; then
14672 echo "$as_me:$LINENO: checking for GNU ld" >&5
14673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14675 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14678 if test "${lt_cv_path_LD+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 if test -z "$LD"; then
14682 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14683 for ac_dir
in $PATH; do
14685 test -z "$ac_dir" && ac_dir
=.
14686 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14687 lt_cv_path_LD
="$ac_dir/$ac_prog"
14688 # Check to see if the program is GNU ld. I'd rather use --version,
14689 # but apparently some variants of GNU ld only accept -v.
14690 # Break only if it was the GNU/non-GNU ld that we prefer.
14691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14692 *GNU
* |
*'with BFD'*)
14693 test "$with_gnu_ld" != no
&& break
14696 test "$with_gnu_ld" != yes && break
14703 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14707 LD
="$lt_cv_path_LD"
14708 if test -n "$LD"; then
14709 echo "$as_me:$LINENO: result: $LD" >&5
14710 echo "${ECHO_T}$LD" >&6
14712 echo "$as_me:$LINENO: result: no" >&5
14713 echo "${ECHO_T}no" >&6
14715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14717 { (exit 1); exit 1; }; }
14718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14724 case `$LD -v 2>&1 </dev/null` in
14725 *GNU
* |
*'with BFD'*)
14726 lt_cv_prog_gnu_ld
=yes
14729 lt_cv_prog_gnu_ld
=no
14733 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14735 with_gnu_ld
=$lt_cv_prog_gnu_ld
14745 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14746 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14747 if test "${lt_cv_path_NM+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 if test -n "$NM"; then
14751 # Let the user override the test.
14752 lt_cv_path_NM
="$NM"
14754 lt_nm_to_check
="${ac_tool_prefix}nm"
14755 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14756 lt_nm_to_check
="$lt_nm_to_check nm"
14758 for lt_tmp_nm
in $lt_nm_to_check; do
14759 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14760 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14762 test -z "$ac_dir" && ac_dir
=.
14763 tmp_nm
="$ac_dir/$lt_tmp_nm"
14764 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14765 # Check to see if the nm accepts a BSD-compat flag.
14766 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14767 # nm: unknown option "B" ignored
14768 # Tru64's nm complains that /dev/null is an invalid object file
14769 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14770 */dev
/null
* |
*'Invalid file or object type'*)
14771 lt_cv_path_NM
="$tmp_nm -B"
14775 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14777 lt_cv_path_NM
="$tmp_nm -p"
14781 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14782 continue # so that we can try to find one that supports BSD flags
14791 : ${lt_cv_path_NM=no}
14794 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14795 echo "${ECHO_T}$lt_cv_path_NM" >&6
14796 if test "$lt_cv_path_NM" != "no"; then
14797 NM
="$lt_cv_path_NM"
14799 # Didn't find any BSD compatible name lister, look for dumpbin.
14800 if test -n "$ac_tool_prefix"; then
14801 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14804 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14805 echo "$as_me:$LINENO: checking for $ac_word" >&5
14806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14807 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 if test -n "$DUMPBIN"; then
14811 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14814 for as_dir
in $PATH
14817 test -z "$as_dir" && as_dir
=.
14818 for ac_exec_ext
in '' $ac_executable_extensions; do
14819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14820 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14829 DUMPBIN
=$ac_cv_prog_DUMPBIN
14830 if test -n "$DUMPBIN"; then
14831 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14832 echo "${ECHO_T}$DUMPBIN" >&6
14834 echo "$as_me:$LINENO: result: no" >&5
14835 echo "${ECHO_T}no" >&6
14838 test -n "$DUMPBIN" && break
14841 if test -z "$DUMPBIN"; then
14842 ac_ct_DUMPBIN
=$DUMPBIN
14843 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14845 # Extract the first word of "$ac_prog", so it can be a program name with args.
14846 set dummy
$ac_prog; ac_word
=$2
14847 echo "$as_me:$LINENO: checking for $ac_word" >&5
14848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14849 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 if test -n "$ac_ct_DUMPBIN"; then
14853 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14856 for as_dir
in $PATH
14859 test -z "$as_dir" && as_dir
=.
14860 for ac_exec_ext
in '' $ac_executable_extensions; do
14861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14862 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14871 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14872 if test -n "$ac_ct_DUMPBIN"; then
14873 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14874 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14876 echo "$as_me:$LINENO: result: no" >&5
14877 echo "${ECHO_T}no" >&6
14880 test -n "$ac_ct_DUMPBIN" && break
14882 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
14884 DUMPBIN
=$ac_ct_DUMPBIN
14888 if test "$DUMPBIN" != ":"; then
14892 test -z "$NM" && NM
=nm
14899 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14900 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14901 if test "${lt_cv_nm_interface+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14904 lt_cv_nm_interface
="BSD nm"
14905 echo "int some_variable = 0;" > conftest.
$ac_ext
14906 (eval echo "\"\$as_me:14906: $ac_compile\"" >&5)
14907 (eval "$ac_compile" 2>conftest.err
)
14908 cat conftest.err
>&5
14909 (eval echo "\"\$as_me:14909: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14910 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14911 cat conftest.err
>&5
14912 (eval echo "\"\$as_me:14912: output\"" >&5)
14913 cat conftest.out
>&5
14914 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14915 lt_cv_nm_interface
="MS dumpbin"
14919 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14920 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14922 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14923 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14925 if test "$LN_S" = "ln -s"; then
14926 echo "$as_me:$LINENO: result: yes" >&5
14927 echo "${ECHO_T}yes" >&6
14929 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14930 echo "${ECHO_T}no, using $LN_S" >&6
14933 # find the maximum length of command line arguments
14934 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14935 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14936 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 # On DJGPP, this test can blow up pretty badly due to problems in libc
14945 # (any single argument exceeding 2000 bytes causes a buffer overrun
14946 # during glob expansion). Even if it were fixed, the result of this
14947 # check would be larger than it should be.
14948 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14952 # Under GNU Hurd, this test is not required because there is
14953 # no limit to the length of command line arguments.
14954 # Libtool will interpret -1 as no limit whatsoever
14955 lt_cv_sys_max_cmd_len
=-1;
14958 cygwin
* | mingw
* | cegcc
*)
14959 # On Win9x/ME, this test blows up -- it succeeds, but takes
14960 # about 5 minutes as the teststring grows exponentially.
14961 # Worse, since 9x/ME are not pre-emptively multitasking,
14962 # you end up with a "frozen" computer, even though with patience
14963 # the test eventually succeeds (with a max line length of 256k).
14964 # Instead, let's just punt: use the minimum linelength reported by
14965 # all of the supported platforms: 8192 (on NT/2K/XP).
14966 lt_cv_sys_max_cmd_len
=8192;
14970 # On AmigaOS with pdksh, this test takes hours, literally.
14971 # So we just punt and use a minimum line length of 8192.
14972 lt_cv_sys_max_cmd_len
=8192;
14975 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14976 # This has been around since 386BSD, at least. Likely further.
14977 if test -x /sbin
/sysctl
; then
14978 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14979 elif test -x /usr
/sbin
/sysctl
; then
14980 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14982 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14984 # And add a safety zone
14985 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14986 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14990 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14991 lt_cv_sys_max_cmd_len
=196608
14995 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14996 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14997 # nice to cause kernel panics so lets avoid the loop below.
14998 # First set a reasonable default.
14999 lt_cv_sys_max_cmd_len
=16384
15001 if test -x /sbin
/sysconfig
; then
15002 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15003 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
15008 lt_cv_sys_max_cmd_len
=102400
15010 sysv5
* | sco5v6
* | sysv4.2uw2
*)
15011 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15012 if test -n "$kargmax"; then
15013 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
15015 lt_cv_sys_max_cmd_len
=32768
15019 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
15020 if test -n "$lt_cv_sys_max_cmd_len"; then
15021 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
15022 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
15024 # Make teststring a little bigger before we do anything with it.
15025 # a 1K string should be a reasonable start.
15026 for i
in 1 2 3 4 5 6 7 8 ; do
15027 teststring
=$teststring$teststring
15029 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
15030 # If test is not a shell built-in, we'll probably end up computing a
15031 # maximum length that is only half of the actual maximum length, but
15033 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
15034 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
15035 test $i != 17 # 1/2 MB should be enough
15038 teststring
=$teststring$teststring
15040 # Only check the string length outside the loop.
15041 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
15043 # Add a significant safety factor because C++ compilers can tack on
15044 # massive amounts of additional arguments before passing them to the
15045 # linker. It appears as though 1/2 is a usable value.
15046 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
15053 if test -n $lt_cv_sys_max_cmd_len ; then
15054 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
15055 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
15057 echo "$as_me:$LINENO: result: none" >&5
15058 echo "${ECHO_T}none" >&6
15060 max_cmd_len
=$lt_cv_sys_max_cmd_len
15071 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
15072 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
15073 # Try some XSI features
15075 ( _lt_dummy
="a/b/c"
15076 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
15078 && eval 'test $(( 1 + 1 )) -eq 2 \
15079 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
15081 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
15082 echo "${ECHO_T}$xsi_shell" >&6
15085 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
15086 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
15088 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
15090 && lt_shell_append=yes
15091 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
15092 echo "${ECHO_T}$lt_shell_append" >&6
15095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15105 # test EBCDIC or ASCII
15106 case `echo X|tr X '\101'` in
15107 A) # ASCII based system
15108 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
15109 lt_SP2NL='tr \040 \012'
15110 lt_NL2SP='tr \015\012 \040\040'
15112 *) # EBCDIC based system
15113 lt_SP2NL='tr \100 \n'
15114 lt_NL2SP='tr \r\n \100\100'
15126 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
15127 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
15128 if test "${lt_cv_ld_reload_flag+set}" = set; then
15129 echo $ECHO_N "(cached
) $ECHO_C" >&6
15131 lt_cv_ld_reload_flag='-r'
15133 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
15134 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
15135 reload_flag=$lt_cv_ld_reload_flag
15136 case $reload_flag in
15138 *) reload_flag=" $reload_flag" ;;
15140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
15143 if test "$GCC" = yes; then
15144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
15146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
15159 if test -n "$ac_tool_prefix"; then
15160 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
15161 set dummy ${ac_tool_prefix}objdump; ac_word=$2
15162 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15163 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15164 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
15165 echo $ECHO_N "(cached
) $ECHO_C" >&6
15167 if test -n "$OBJDUMP"; then
15168 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15177 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
15178 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15186 OBJDUMP=$ac_cv_prog_OBJDUMP
15187 if test -n "$OBJDUMP"; then
15188 echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
15189 echo "${ECHO_T}$OBJDUMP" >&6
15191 echo "$as_me:$LINENO: result
: no
" >&5
15192 echo "${ECHO_T}no
" >&6
15196 if test -z "$ac_cv_prog_OBJDUMP"; then
15197 ac_ct_OBJDUMP=$OBJDUMP
15198 # Extract the first word of "objdump
", so it can be a program name with args.
15199 set dummy objdump; ac_word=$2
15200 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15201 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15202 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
15203 echo $ECHO_N "(cached
) $ECHO_C" >&6
15205 if test -n "$ac_ct_OBJDUMP"; then
15206 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
15208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209 for as_dir in $PATH
15212 test -z "$as_dir" && as_dir=.
15213 for ac_exec_ext in '' $ac_executable_extensions; do
15214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15215 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
15216 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15222 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false
"
15225 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15226 if test -n "$ac_ct_OBJDUMP"; then
15227 echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
15228 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
15230 echo "$as_me:$LINENO: result
: no
" >&5
15231 echo "${ECHO_T}no
" >&6
15234 OBJDUMP=$ac_ct_OBJDUMP
15236 OBJDUMP="$ac_cv_prog_OBJDUMP"
15239 test -z "$OBJDUMP" && OBJDUMP=objdump
15249 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
15250 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
15251 if test "${lt_cv_deplibs_check_method+set}" = set; then
15252 echo $ECHO_N "(cached
) $ECHO_C" >&6
15254 lt_cv_file_magic_cmd='$MAGIC_CMD'
15255 lt_cv_file_magic_test_file=
15256 lt_cv_deplibs_check_method='unknown'
15257 # Need to set the preceding variable on all platforms that support
15258 # interlibrary dependencies.
15259 # 'none' -- dependencies not supported.
15260 # `unknown' -- same as none, but documents that we really don't know.
15261 # 'pass_all' -- all dependencies passed with no checks.
15262 # 'test_compile' -- check by making test program.
15263 # 'file_magic [[regex]]' -- check by looking for files in library path
15264 # which responds to the $file_magic_cmd with a given extended regex.
15265 # If you have `file' or equivalent on your system and you're not sure
15266 # whether `pass_all' will *always* work, you probably want this one.
15270 lt_cv_deplibs_check_method=pass_all
15274 lt_cv_deplibs_check_method=pass_all
15278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15279 lt_cv_file_magic_cmd='/usr/bin/file -L'
15280 lt_cv_file_magic_test_file=/shlib/libc.so
15284 # func_win32_libid is a shell function defined in ltmain.sh
15285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15286 lt_cv_file_magic_cmd='func_win32_libid'
15290 # Base MSYS/MinGW do not provide the 'file' command needed by
15291 # func_win32_libid shell function, so use a weaker test based on 'objdump',
15292 # unless we find 'file', for example because we are cross-compiling.
15293 if ( file / ) >/dev/null 2>&1; then
15294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15295 lt_cv_file_magic_cmd='func_win32_libid'
15297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
15298 lt_cv_file_magic_cmd='$OBJDUMP -f'
15303 # use the weaker test based on 'objdump'. See mingw*.
15304 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
15305 lt_cv_file_magic_cmd='$OBJDUMP -f'
15308 darwin* | rhapsody*)
15309 lt_cv_deplibs_check_method=pass_all
15312 freebsd* | dragonfly*)
15313 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15316 # Not sure whether the presence of OpenBSD here was a mistake.
15317 # Let's accept both of them until this is cleared up.
15318 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15319 lt_cv_file_magic_cmd=/usr/bin/file
15320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15324 lt_cv_deplibs_check_method=pass_all
15329 lt_cv_deplibs_check_method=pass_all
15332 hpux10.20* | hpux11*)
15333 lt_cv_file_magic_cmd=/usr/bin/file
15336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15337 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15340 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]'
15341 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15345 lt_cv_file_magic_test_file=/usr/lib/libc.sl
15351 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15355 irix5* | irix6* | nonstopux*)
15357 *-32|*"-32 ") libmagic=32-bit;;
15358 *-n32|*"-n32 ") libmagic=N32;;
15359 *-64|*"-64 ") libmagic=64-bit;;
15360 *) libmagic=never-match;;
15362 lt_cv_deplibs_check_method=pass_all
15365 # This must be Linux ELF.
15366 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15367 lt_cv_deplibs_check_method=pass_all
15371 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15380 lt_cv_file_magic_cmd=/usr/bin/file
15381 lt_cv_file_magic_test_file=/usr/lib/libnls.so
15385 lt_cv_deplibs_check_method=pass_all
15389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
15390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15396 osf3* | osf4* | osf5*)
15397 lt_cv_deplibs_check_method=pass_all
15401 lt_cv_deplibs_check_method=pass_all
15405 lt_cv_deplibs_check_method=pass_all
15408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15409 lt_cv_deplibs_check_method=pass_all
15413 case $host_vendor in
15415 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]'
15416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15419 lt_cv_deplibs_check_method=pass_all
15422 lt_cv_file_magic_cmd='/bin/file'
15423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15426 lt_cv_file_magic_cmd='/bin/file'
15427 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
15428 lt_cv_file_magic_test_file=/lib/libc.so
15431 lt_cv_deplibs_check_method=pass_all
15434 lt_cv_deplibs_check_method=pass_all
15440 lt_cv_deplibs_check_method=pass_all
15445 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
15446 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15447 file_magic_cmd=$lt_cv_file_magic_cmd
15448 deplibs_check_method=$lt_cv_deplibs_check_method
15449 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15462 if test -n "$ac_tool_prefix"; then
15463 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15464 set dummy ${ac_tool_prefix}ar; ac_word=$2
15465 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15466 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15467 if test "${ac_cv_prog_AR+set}" = set; then
15468 echo $ECHO_N "(cached
) $ECHO_C" >&6
15470 if test -n "$AR"; then
15471 ac_cv_prog_AR="$AR" # Let the user override the test.
15473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15474 for as_dir in $PATH
15477 test -z "$as_dir" && as_dir=.
15478 for ac_exec_ext in '' $ac_executable_extensions; do
15479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15480 ac_cv_prog_AR="${ac_tool_prefix}ar"
15481 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15490 if test -n "$AR"; then
15491 echo "$as_me:$LINENO: result
: $AR" >&5
15492 echo "${ECHO_T}$AR" >&6
15494 echo "$as_me:$LINENO: result
: no
" >&5
15495 echo "${ECHO_T}no
" >&6
15499 if test -z "$ac_cv_prog_AR"; then
15501 # Extract the first word of "ar", so it can be a program name with args.
15502 set dummy ar; ac_word=$2
15503 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15504 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15505 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15506 echo $ECHO_N "(cached
) $ECHO_C" >&6
15508 if test -n "$ac_ct_AR"; then
15509 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15512 for as_dir in $PATH
15515 test -z "$as_dir" && as_dir=.
15516 for ac_exec_ext in '' $ac_executable_extensions; do
15517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15518 ac_cv_prog_ac_ct_AR="ar"
15519 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15525 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
15528 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15529 if test -n "$ac_ct_AR"; then
15530 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
15531 echo "${ECHO_T}$ac_ct_AR" >&6
15533 echo "$as_me:$LINENO: result
: no
" >&5
15534 echo "${ECHO_T}no
" >&6
15539 AR="$ac_cv_prog_AR"
15542 test -z "$AR" && AR=ar
15543 test -z "$AR_FLAGS" && AR_FLAGS=cru
15555 if test -n "$ac_tool_prefix"; then
15556 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15557 set dummy ${ac_tool_prefix}strip; ac_word=$2
15558 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15559 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15560 if test "${ac_cv_prog_STRIP+set}" = set; then
15561 echo $ECHO_N "(cached
) $ECHO_C" >&6
15563 if test -n "$STRIP"; then
15564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15567 for as_dir in $PATH
15570 test -z "$as_dir" && as_dir=.
15571 for ac_exec_ext in '' $ac_executable_extensions; do
15572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15573 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15574 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15582 STRIP=$ac_cv_prog_STRIP
15583 if test -n "$STRIP"; then
15584 echo "$as_me:$LINENO: result
: $STRIP" >&5
15585 echo "${ECHO_T}$STRIP" >&6
15587 echo "$as_me:$LINENO: result
: no
" >&5
15588 echo "${ECHO_T}no
" >&6
15592 if test -z "$ac_cv_prog_STRIP"; then
15594 # Extract the first word of "strip
", so it can be a program name with args.
15595 set dummy strip; ac_word=$2
15596 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15597 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15598 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15599 echo $ECHO_N "(cached
) $ECHO_C" >&6
15601 if test -n "$ac_ct_STRIP"; then
15602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15605 for as_dir in $PATH
15608 test -z "$as_dir" && as_dir=.
15609 for ac_exec_ext in '' $ac_executable_extensions; do
15610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15611 ac_cv_prog_ac_ct_STRIP="strip
"
15612 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15618 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15622 if test -n "$ac_ct_STRIP"; then
15623 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
15624 echo "${ECHO_T}$ac_ct_STRIP" >&6
15626 echo "$as_me:$LINENO: result
: no
" >&5
15627 echo "${ECHO_T}no
" >&6
15632 STRIP="$ac_cv_prog_STRIP"
15635 test -z "$STRIP" && STRIP=:
15642 if test -n "$ac_tool_prefix"; then
15643 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15645 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15646 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15647 if test "${ac_cv_prog_RANLIB+set}" = set; then
15648 echo $ECHO_N "(cached
) $ECHO_C" >&6
15650 if test -n "$RANLIB"; then
15651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15654 for as_dir in $PATH
15657 test -z "$as_dir" && as_dir=.
15658 for ac_exec_ext in '' $ac_executable_extensions; do
15659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15660 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15661 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15669 RANLIB=$ac_cv_prog_RANLIB
15670 if test -n "$RANLIB"; then
15671 echo "$as_me:$LINENO: result
: $RANLIB" >&5
15672 echo "${ECHO_T}$RANLIB" >&6
15674 echo "$as_me:$LINENO: result
: no
" >&5
15675 echo "${ECHO_T}no
" >&6
15679 if test -z "$ac_cv_prog_RANLIB"; then
15680 ac_ct_RANLIB=$RANLIB
15681 # Extract the first word of "ranlib
", so it can be a program name with args.
15682 set dummy ranlib; ac_word=$2
15683 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15684 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15686 echo $ECHO_N "(cached
) $ECHO_C" >&6
15688 if test -n "$ac_ct_RANLIB"; then
15689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15692 for as_dir in $PATH
15695 test -z "$as_dir" && as_dir=.
15696 for ac_exec_ext in '' $ac_executable_extensions; do
15697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15698 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15699 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15705 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15709 if test -n "$ac_ct_RANLIB"; then
15710 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
15711 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15713 echo "$as_me:$LINENO: result
: no
" >&5
15714 echo "${ECHO_T}no
" >&6
15717 RANLIB=$ac_ct_RANLIB
15719 RANLIB="$ac_cv_prog_RANLIB"
15722 test -z "$RANLIB" && RANLIB=:
15729 # Determine commands to create old-style static archives.
15730 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15731 old_postinstall_cmds='chmod 644 $oldlib'
15732 old_postuninstall_cmds=
15734 if test -n "$RANLIB"; then
15737 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15740 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15743 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15779 # If no C compiler was specified, use CC.
15782 # If no C compiler flags were specified, use CFLAGS.
15783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15785 # Allow CC to be a program name with arguments.
15789 # Check for command to grab the raw symbol name followed by C symbol from nm.
15790 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
15791 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
15792 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15793 echo $ECHO_N "(cached
) $ECHO_C" >&6
15796 # These are sane defaults that work on at least a few old systems.
15797 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15799 # Character class describing NM global symbol codes.
15800 symcode='[BCDEGRST]'
15802 # Regexp to match symbols that can be accessed directly from C.
15803 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15805 # Define system-specific variables.
15810 cygwin* | mingw* | pw32* | cegcc*)
15811 symcode='[ABCDGISTW]'
15814 if test "$host_cpu" = ia64; then
15815 symcode='[ABCDEGRST]'
15818 irix* | nonstopux*)
15819 symcode='[BCDEGRST]'
15822 symcode='[BCDEGQRST]'
15833 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15841 # If we're using GNU nm, then use its standard symbol codes.
15842 case `$NM -V 2>&1` in
15843 *GNU* | *'with BFD'*)
15844 symcode='[ABCDGIRSTW]' ;;
15847 # Transform an extracted symbol line into a proper C declaration.
15848 # Some systems (esp. on ia64) link data and code symbols differently,
15849 # so use this general approach.
15850 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15852 # Transform an extracted symbol line into symbol name and symbol address
15853 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15854 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'"
15856 # Handle CRLF in mingw tool chain
15860 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15864 # Try without a prefix underscore, then with it.
15865 for ac_symprfx in "" "_
"; do
15867 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15868 symxfrm="\\1 $ac_symprfx\\2 \\2"
15870 # Write the raw and C identifiers.
15871 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15872 # Fake it for dumpbin and say T for any non-static function
15873 # and D for any global variable.
15874 # Also find C++ and __fastcall symbols from MSVC++,
15875 # which start with @ or ?.
15876 lt_cv_sys_global_symbol_pipe="$AWK '"\
15877 " {last_section=section; section=\$ 3};"\
15878 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15879 " \$ 0!~/External *\|/{next};"\
15880 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15881 " {if(hide[section]) next};"\
15882 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15883 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15884 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15885 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15886 " ' prfx
=^
$ac_symprfx"
15888 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15891 # Check to see that the pipe works correctly.
15895 cat > conftest.$ac_ext <<_LT_EOF
15900 void nm_test_func(void);
15901 void nm_test_func(void){}
15905 int main(){nm_test_var='a';nm_test_func();return(0);}
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>&5
15911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15912 (exit $ac_status); }; then
15913 # Now try to grab the symbols.
15915 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
15916 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15919 (exit $ac_status); } && test -s "$nlist"; then
15920 # Try sorting and uniquifying the output.
15921 if sort "$nlist" | uniq > "$nlist"T; then
15922 mv -f "$nlist"T "$nlist"
15927 # Make sure that we snagged all the symbols we need.
15928 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15929 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15930 cat <<_LT_EOF > conftest.$ac_ext
15936 # Now generate the symbol file.
15937 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15939 cat <<_LT_EOF >> conftest.$ac_ext
15941 /* The mapping between symbol names and symbols. */
15946 lt__PROGRAM__LTX_preloaded_symbols[] =
15948 { "@PROGRAM@
", (void *) 0 },
15950 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15951 cat <<\_LT_EOF >> conftest.$ac_ext
15955 /* This works around a problem in FreeBSD linker */
15956 #ifdef FREEBSD_WORKAROUND
15957 static const void *lt_preloaded_setup() {
15958 return lt__PROGRAM__LTX_preloaded_symbols;
15966 # Now try linking the two files.
15967 mv conftest.$ac_objext conftstm.$ac_objext
15968 lt_save_LIBS="$LIBS"
15969 lt_save_CFLAGS="$CFLAGS"
15970 LIBS="conftstm.
$ac_objext"
15971 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15973 (eval $ac_link) 2>&5
15975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15976 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15979 LIBS="$lt_save_LIBS"
15980 CFLAGS="$lt_save_CFLAGS"
15982 echo "cannot
find nm_test_func
in $nlist" >&5
15985 echo "cannot
find nm_test_var
in $nlist" >&5
15988 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15991 echo "$progname: failed program was
:" >&5
15992 cat conftest.$ac_ext >&5
15994 rm -rf conftest* conftst*
15996 # Do not use the global_symbol_pipe unless it works.
15997 if test "$pipe_works" = yes; then
16000 lt_cv_sys_global_symbol_pipe=
16006 if test -z "$lt_cv_sys_global_symbol_pipe"; then
16007 lt_cv_sys_global_symbol_to_cdecl=
16009 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16010 echo "$as_me:$LINENO: result
: failed
" >&5
16011 echo "${ECHO_T}failed
" >&6
16013 echo "$as_me:$LINENO: result
: ok
" >&5
16014 echo "${ECHO_T}ok
" >&6
16038 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
16039 if test "${enable_libtool_lock+set}" = set; then
16040 enableval="$enable_libtool_lock"
16043 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
16045 # Some flags need to be propagated to the compiler or linker for good
16049 # Find out which ABI we are using.
16050 echo 'int i;' > conftest.$ac_ext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052 (eval $ac_compile) 2>&5
16054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16055 (exit $ac_status); }; then
16056 case `/usr/bin/file conftest.$ac_objext` in
16058 HPUX_IA64_MODE="32"
16061 HPUX_IA64_MODE="64"
16068 # Find out which ABI we are using.
16069 echo '#line 16069 "configure
"' > conftest.$ac_ext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16071 (eval $ac_compile) 2>&5
16073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16074 (exit $ac_status); }; then
16075 if test "$lt_cv_prog_gnu_ld" = yes; then
16076 case `/usr/bin/file conftest.$ac_objext` in
16078 LD="${LD-ld} -melf32bsmip"
16081 LD="${LD-ld} -melf32bmipn32"
16084 LD="${LD-ld} -melf64bmip"
16088 case `/usr/bin/file conftest.$ac_objext` in
16104 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
16105 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
16106 # Find out which ABI we are using.
16107 echo 'int i;' > conftest.$ac_ext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>&5
16111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16112 (exit $ac_status); }; then
16113 case `/usr/bin/file conftest.o` in
16116 x86_64-*kfreebsd*-gnu)
16117 LD="${LD-ld} -m elf_i386_fbsd
"
16120 LD="${LD-ld} -m elf_i386
"
16122 ppc64-*linux*|powerpc64-*linux*)
16123 LD="${LD-ld} -m elf32ppclinux
"
16126 LD="${LD-ld} -m elf_s390
"
16129 LD="${LD-ld} -m elf32_sparc
"
16135 x86_64-*kfreebsd*-gnu)
16136 LD="${LD-ld} -m elf_x86_64_fbsd
"
16139 LD="${LD-ld} -m elf_x86_64
"
16141 ppc*-*linux*|powerpc*-*linux*)
16142 LD="${LD-ld} -m elf64ppc
"
16144 s390*-*linux*|s390*-*tpf*)
16145 LD="${LD-ld} -m elf64_s390
"
16148 LD="${LD-ld} -m elf64_sparc
"
16158 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
16159 SAVE_CFLAGS="$CFLAGS"
16160 CFLAGS="$CFLAGS -belf"
16161 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
16162 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
16163 if test "${lt_cv_cc_needs_belf+set}" = set; then
16164 echo $ECHO_N "(cached
) $ECHO_C" >&6
16167 ac_cpp='$CPP $CPPFLAGS'
16168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>conftest.er1
16191 grep -v '^ *+' conftest.er1 >conftest.err
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest$ac_exeext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 lt_cv_cc_needs_belf=yes
16211 echo "$as_me: failed program was
:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 lt_cv_cc_needs_belf=no
16216 rm -f conftest.err conftest.$ac_objext \
16217 conftest$ac_exeext conftest.$ac_ext
16219 ac_cpp='$CPP $CPPFLAGS'
16220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16225 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
16226 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
16227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
16228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
16229 CFLAGS="$SAVE_CFLAGS"
16233 # Find out which ABI we are using.
16234 echo 'int i;' > conftest.$ac_ext
16235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16236 (eval $ac_compile) 2>&5
16238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16239 (exit $ac_status); }; then
16240 case `/usr/bin/file conftest.o` in
16242 case $lt_cv_prog_gnu_ld in
16243 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
16245 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
16257 need_locks="$enable_libtool_lock"
16261 rhapsody* | darwin*)
16262 if test -n "$ac_tool_prefix"; then
16263 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
16264 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
16265 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16266 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16267 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
16268 echo $ECHO_N "(cached
) $ECHO_C" >&6
16270 if test -n "$DSYMUTIL"; then
16271 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
16273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16274 for as_dir in $PATH
16277 test -z "$as_dir" && as_dir=.
16278 for ac_exec_ext in '' $ac_executable_extensions; do
16279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16280 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
16281 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16289 DSYMUTIL=$ac_cv_prog_DSYMUTIL
16290 if test -n "$DSYMUTIL"; then
16291 echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
16292 echo "${ECHO_T}$DSYMUTIL" >&6
16294 echo "$as_me:$LINENO: result
: no
" >&5
16295 echo "${ECHO_T}no
" >&6
16299 if test -z "$ac_cv_prog_DSYMUTIL"; then
16300 ac_ct_DSYMUTIL=$DSYMUTIL
16301 # Extract the first word of "dsymutil
", so it can be a program name with args.
16302 set dummy dsymutil; ac_word=$2
16303 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16304 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16305 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
16306 echo $ECHO_N "(cached
) $ECHO_C" >&6
16308 if test -n "$ac_ct_DSYMUTIL"; then
16309 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
16311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16312 for as_dir in $PATH
16315 test -z "$as_dir" && as_dir=.
16316 for ac_exec_ext in '' $ac_executable_extensions; do
16317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16318 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
16319 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16325 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
16328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
16329 if test -n "$ac_ct_DSYMUTIL"; then
16330 echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
16331 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
16333 echo "$as_me:$LINENO: result
: no
" >&5
16334 echo "${ECHO_T}no
" >&6
16337 DSYMUTIL=$ac_ct_DSYMUTIL
16339 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
16342 if test -n "$ac_tool_prefix"; then
16343 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
16344 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16345 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16346 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16347 if test "${ac_cv_prog_NMEDIT+set}" = set; then
16348 echo $ECHO_N "(cached
) $ECHO_C" >&6
16350 if test -n "$NMEDIT"; then
16351 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16354 for as_dir in $PATH
16357 test -z "$as_dir" && as_dir=.
16358 for ac_exec_ext in '' $ac_executable_extensions; do
16359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16360 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
16361 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16369 NMEDIT=$ac_cv_prog_NMEDIT
16370 if test -n "$NMEDIT"; then
16371 echo "$as_me:$LINENO: result
: $NMEDIT" >&5
16372 echo "${ECHO_T}$NMEDIT" >&6
16374 echo "$as_me:$LINENO: result
: no
" >&5
16375 echo "${ECHO_T}no
" >&6
16379 if test -z "$ac_cv_prog_NMEDIT"; then
16380 ac_ct_NMEDIT=$NMEDIT
16381 # Extract the first word of "nmedit
", so it can be a program name with args.
16382 set dummy nmedit; ac_word=$2
16383 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16384 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16385 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
16386 echo $ECHO_N "(cached
) $ECHO_C" >&6
16388 if test -n "$ac_ct_NMEDIT"; then
16389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392 for as_dir in $PATH
16395 test -z "$as_dir" && as_dir=.
16396 for ac_exec_ext in '' $ac_executable_extensions; do
16397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16398 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
16399 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16405 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
16408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16409 if test -n "$ac_ct_NMEDIT"; then
16410 echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
16411 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
16413 echo "$as_me:$LINENO: result
: no
" >&5
16414 echo "${ECHO_T}no
" >&6
16417 NMEDIT=$ac_ct_NMEDIT
16419 NMEDIT="$ac_cv_prog_NMEDIT"
16422 if test -n "$ac_tool_prefix"; then
16423 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
16424 set dummy ${ac_tool_prefix}lipo; ac_word=$2
16425 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16426 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16427 if test "${ac_cv_prog_LIPO+set}" = set; then
16428 echo $ECHO_N "(cached
) $ECHO_C" >&6
16430 if test -n "$LIPO"; then
16431 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16434 for as_dir in $PATH
16437 test -z "$as_dir" && as_dir=.
16438 for ac_exec_ext in '' $ac_executable_extensions; do
16439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16440 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
16441 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16449 LIPO=$ac_cv_prog_LIPO
16450 if test -n "$LIPO"; then
16451 echo "$as_me:$LINENO: result
: $LIPO" >&5
16452 echo "${ECHO_T}$LIPO" >&6
16454 echo "$as_me:$LINENO: result
: no
" >&5
16455 echo "${ECHO_T}no
" >&6
16459 if test -z "$ac_cv_prog_LIPO"; then
16461 # Extract the first word of "lipo
", so it can be a program name with args.
16462 set dummy lipo; ac_word=$2
16463 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16464 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16465 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
16466 echo $ECHO_N "(cached
) $ECHO_C" >&6
16468 if test -n "$ac_ct_LIPO"; then
16469 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16472 for as_dir in $PATH
16475 test -z "$as_dir" && as_dir=.
16476 for ac_exec_ext in '' $ac_executable_extensions; do
16477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16478 ac_cv_prog_ac_ct_LIPO="lipo
"
16479 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16485 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
16488 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16489 if test -n "$ac_ct_LIPO"; then
16490 echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
16491 echo "${ECHO_T}$ac_ct_LIPO" >&6
16493 echo "$as_me:$LINENO: result
: no
" >&5
16494 echo "${ECHO_T}no
" >&6
16499 LIPO="$ac_cv_prog_LIPO"
16502 if test -n "$ac_tool_prefix"; then
16503 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
16504 set dummy ${ac_tool_prefix}otool; ac_word=$2
16505 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16506 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16507 if test "${ac_cv_prog_OTOOL+set}" = set; then
16508 echo $ECHO_N "(cached
) $ECHO_C" >&6
16510 if test -n "$OTOOL"; then
16511 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16517 test -z "$as_dir" && as_dir=.
16518 for ac_exec_ext in '' $ac_executable_extensions; do
16519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16520 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
16521 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16529 OTOOL=$ac_cv_prog_OTOOL
16530 if test -n "$OTOOL"; then
16531 echo "$as_me:$LINENO: result
: $OTOOL" >&5
16532 echo "${ECHO_T}$OTOOL" >&6
16534 echo "$as_me:$LINENO: result
: no
" >&5
16535 echo "${ECHO_T}no
" >&6
16539 if test -z "$ac_cv_prog_OTOOL"; then
16541 # Extract the first word of "otool
", so it can be a program name with args.
16542 set dummy otool; ac_word=$2
16543 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16544 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16545 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
16546 echo $ECHO_N "(cached
) $ECHO_C" >&6
16548 if test -n "$ac_ct_OTOOL"; then
16549 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16552 for as_dir in $PATH
16555 test -z "$as_dir" && as_dir=.
16556 for ac_exec_ext in '' $ac_executable_extensions; do
16557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16558 ac_cv_prog_ac_ct_OTOOL="otool
"
16559 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16565 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16568 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16569 if test -n "$ac_ct_OTOOL"; then
16570 echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
16571 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16573 echo "$as_me:$LINENO: result
: no
" >&5
16574 echo "${ECHO_T}no
" >&6
16579 OTOOL="$ac_cv_prog_OTOOL"
16582 if test -n "$ac_tool_prefix"; then
16583 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16584 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16585 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16586 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16587 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16588 echo $ECHO_N "(cached
) $ECHO_C" >&6
16590 if test -n "$OTOOL64"; then
16591 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $PATH
16597 test -z "$as_dir" && as_dir=.
16598 for ac_exec_ext in '' $ac_executable_extensions; do
16599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16600 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16601 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16609 OTOOL64=$ac_cv_prog_OTOOL64
16610 if test -n "$OTOOL64"; then
16611 echo "$as_me:$LINENO: result
: $OTOOL64" >&5
16612 echo "${ECHO_T}$OTOOL64" >&6
16614 echo "$as_me:$LINENO: result
: no
" >&5
16615 echo "${ECHO_T}no
" >&6
16619 if test -z "$ac_cv_prog_OTOOL64"; then
16620 ac_ct_OTOOL64=$OTOOL64
16621 # Extract the first word of "otool64
", so it can be a program name with args.
16622 set dummy otool64; ac_word=$2
16623 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16624 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16625 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16626 echo $ECHO_N "(cached
) $ECHO_C" >&6
16628 if test -n "$ac_ct_OTOOL64"; then
16629 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632 for as_dir in $PATH
16635 test -z "$as_dir" && as_dir=.
16636 for ac_exec_ext in '' $ac_executable_extensions; do
16637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16638 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16639 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16645 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16648 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16649 if test -n "$ac_ct_OTOOL64"; then
16650 echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
16651 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16653 echo "$as_me:$LINENO: result
: no
" >&5
16654 echo "${ECHO_T}no
" >&6
16657 OTOOL64=$ac_ct_OTOOL64
16659 OTOOL64="$ac_cv_prog_OTOOL64"
16688 echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
16689 echo $ECHO_N "checking
for -single_module linker flag...
$ECHO_C" >&6
16690 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16691 echo $ECHO_N "(cached
) $ECHO_C" >&6
16693 lt_cv_apple_cc_single_mod=no
16694 if test -z "${LT_MULTI_MODULE}"; then
16695 # By default we will add the -single_module flag. You can override
16696 # by either setting the environment variable LT_MULTI_MODULE
16697 # non-empty at configure time, or by adding -multi_module to the
16699 rm -rf libconftest.dylib*
16700 echo "int foo
(void
){return 1;}" > conftest.c
16701 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16702 -dynamiclib -Wl,-single_module conftest.c
" >&5
16703 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16704 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16706 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16707 lt_cv_apple_cc_single_mod=yes
16709 cat conftest.err >&5
16711 rm -rf libconftest.dylib*
16715 echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
16716 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16717 echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
16718 echo $ECHO_N "checking
for -exported_symbols_list linker flag...
$ECHO_C" >&6
16719 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16720 echo $ECHO_N "(cached
) $ECHO_C" >&6
16722 lt_cv_ld_exported_symbols_list=no
16723 save_LDFLAGS=$LDFLAGS
16724 echo "_main
" > conftest.sym
16725 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16726 cat >conftest.$ac_ext <<_ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h. */
16741 rm -f conftest.$ac_objext conftest$ac_exeext
16742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16743 (eval $ac_link) 2>conftest.er1
16745 grep -v '^ *+' conftest.er1 >conftest.err
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16749 (exit $ac_status); } &&
16750 { ac_try='test -z "$ac_c_werror_flag"
16751 || test ! -s conftest.err'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16756 (exit $ac_status); }; } &&
16757 { ac_try='test -s conftest$ac_exeext'
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 lt_cv_ld_exported_symbols_list=yes
16765 echo "$as_me: failed program was
:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 lt_cv_ld_exported_symbols_list=no
16770 rm -f conftest.err conftest.$ac_objext \
16771 conftest$ac_exeext conftest.$ac_ext
16772 LDFLAGS="$save_LDFLAGS"
16775 echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
16776 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16778 rhapsody* | darwin1.[012])
16779 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16781 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16782 darwin*) # darwin 5.x on
16783 # if running on 10.5 or later, the deployment target defaults
16784 # to the OS version, if on x86, and 10.4, the deployment
16785 # target defaults to 10.4. Don't you love it?
16786 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16787 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16788 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16790 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16792 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16796 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16797 _lt_dar_single_mod='$single_module'
16799 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16800 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16802 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16804 if test "$DSYMUTIL" != ":"; then
16805 _lt_dsymutil='~$DSYMUTIL $lib || :'
16813 for ac_header in dlfcn.h
16815 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16816 echo "$as_me:$LINENO: checking
for $ac_header" >&5
16817 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
16818 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
16819 echo $ECHO_N "(cached
) $ECHO_C" >&6
16821 cat >conftest.$ac_ext <<_ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 #include <$ac_header>
16829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
16830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16832 grep -v '^ *+' conftest.er1 >conftest.err
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16836 (exit $ac_status); } >/dev/null; then
16837 if test -s conftest.err; then
16838 ac_cpp_err=$ac_c_preproc_warn_flag
16839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16846 if test -z "$ac_cpp_err"; then
16847 eval "$as_ac_Header=yes"
16849 echo "$as_me: failed program was
:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16852 eval "$as_ac_Header=no
"
16854 rm -f conftest.err conftest.$ac_ext
16856 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
16857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16859 cat >>confdefs.h <<_ACEOF
16860 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16869 ac_cpp='$CXXCPP $CPPFLAGS'
16870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16873 if test -n "$ac_tool_prefix"; then
16874 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
16876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16878 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16879 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16880 if test "${ac_cv_prog_CXX+set}" = set; then
16881 echo $ECHO_N "(cached
) $ECHO_C" >&6
16883 if test -n "$CXX"; then
16884 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16887 for as_dir in $PATH
16890 test -z "$as_dir" && as_dir=.
16891 for ac_exec_ext in '' $ac_executable_extensions; do
16892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16893 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16894 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16902 CXX=$ac_cv_prog_CXX
16903 if test -n "$CXX"; then
16904 echo "$as_me:$LINENO: result
: $CXX" >&5
16905 echo "${ECHO_T}$CXX" >&6
16907 echo "$as_me:$LINENO: result
: no
" >&5
16908 echo "${ECHO_T}no
" >&6
16911 test -n "$CXX" && break
16914 if test -z "$CXX"; then
16916 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
16918 # Extract the first word of "$ac_prog", so it can be a program name with args.
16919 set dummy $ac_prog; ac_word=$2
16920 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16921 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16922 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16923 echo $ECHO_N "(cached
) $ECHO_C" >&6
16925 if test -n "$ac_ct_CXX"; then
16926 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16929 for as_dir in $PATH
16932 test -z "$as_dir" && as_dir=.
16933 for ac_exec_ext in '' $ac_executable_extensions; do
16934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16935 ac_cv_prog_ac_ct_CXX="$ac_prog"
16936 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16944 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16945 if test -n "$ac_ct_CXX"; then
16946 echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
16947 echo "${ECHO_T}$ac_ct_CXX" >&6
16949 echo "$as_me:$LINENO: result
: no
" >&5
16950 echo "${ECHO_T}no
" >&6
16953 test -n "$ac_ct_CXX" && break
16955 test -n "$ac_ct_CXX" || ac_ct_CXX="g
++"
16961 # Provide some information about the compiler.
16962 echo "$as_me:$LINENO:" \
16963 "checking
for C
++ compiler version
" >&5
16964 ac_compiler=`set X $ac_compile; echo $2`
16965 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev
/null
>&5\"") >&5
16966 (eval $ac_compiler --version </dev/null >&5) 2>&5
16968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16969 (exit $ac_status); }
16970 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev
/null
>&5\"") >&5
16971 (eval $ac_compiler -v </dev/null >&5) 2>&5
16973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16974 (exit $ac_status); }
16975 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev
/null
>&5\"") >&5
16976 (eval $ac_compiler -V </dev/null >&5) 2>&5
16978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16979 (exit $ac_status); }
16981 echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
16982 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6
16983 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16984 echo $ECHO_N "(cached
) $ECHO_C" >&6
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
17004 rm -f conftest.$ac_objext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17006 (eval $ac_compile) 2>conftest.er1
17008 grep -v '^ *+' conftest.er1 >conftest.err
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_cxx_werror_flag"
17014 || test ! -s conftest.err'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_compiler_gnu=yes
17028 echo "$as_me: failed program was
:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17037 echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
17038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
17039 GXX=`test $ac_compiler_gnu = yes && echo yes`
17040 ac_test_CXXFLAGS=${CXXFLAGS+set}
17041 ac_save_CXXFLAGS=$CXXFLAGS
17043 echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
17044 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6
17045 if test "${ac_cv_prog_cxx_g+set}" = set; then
17046 echo $ECHO_N "(cached
) $ECHO_C" >&6
17048 cat >conftest.$ac_ext <<_ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17063 rm -f conftest.$ac_objext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17065 (eval $ac_compile) 2>conftest.er1
17067 grep -v '^ *+' conftest.er1 >conftest.err
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try='test -z "$ac_cxx_werror_flag"
17073 || test ! -s conftest.err'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_prog_cxx_g=yes
17087 echo "$as_me: failed program was
:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17090 ac_cv_prog_cxx_g=no
17092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17094 echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
17095 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
17096 if test "$ac_test_CXXFLAGS" = set; then
17097 CXXFLAGS=$ac_save_CXXFLAGS
17098 elif test $ac_cv_prog_cxx_g = yes; then
17099 if test "$GXX" = yes; then
17105 if test "$GXX" = yes; then
17111 for ac_declaration in \
17113 'extern "C
" void std::exit (int) throw (); using std::exit;' \
17114 'extern "C
" void std::exit (int); using std::exit;' \
17115 'extern "C
" void exit (int) throw ();' \
17116 'extern "C
" void exit (int);' \
17119 cat >conftest.$ac_ext <<_ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17126 #include <stdlib.h>
17135 rm -f conftest.$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137 (eval $ac_compile) 2>conftest.er1
17139 grep -v '^ *+' conftest.er1 >conftest.err
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try='test -z "$ac_cxx_werror_flag"
17145 || test ! -s conftest.err'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest.$ac_objext'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17156 (exit $ac_status); }; }; then
17159 echo "$as_me: failed program was
:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17165 cat >conftest.$ac_ext <<_ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17180 rm -f conftest.$ac_objext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182 (eval $ac_compile) 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_cxx_werror_flag"
17190 || test ! -s conftest.err'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17201 (exit $ac_status); }; }; then
17204 echo "$as_me: failed program was
:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17211 if test -n "$ac_declaration"; then
17212 echo '#ifdef __cplusplus' >>confdefs.h
17213 echo $ac_declaration >>confdefs.h
17214 echo '#endif' >>confdefs.h
17218 ac_cpp='$CPP $CPPFLAGS'
17219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17223 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
17224 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
17225 (test "X
$CXX" != "Xg
++"))) ; then
17227 ac_cpp='$CXXCPP $CPPFLAGS'
17228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17231 echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
17232 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6
17233 if test -z "$CXXCPP"; then
17234 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17235 echo $ECHO_N "(cached
) $ECHO_C" >&6
17237 # Double quotes because CXXCPP needs to be expanded
17238 for CXXCPP in "$CXX -E" "/lib
/cpp
"
17240 ac_preproc_ok=false
17241 for ac_cxx_preproc_warn_flag in '' yes
17243 # Use a header file that comes with gcc, so configuring glibc
17244 # with a fresh cross-compiler works.
17245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17246 # <limits.h> exists even on freestanding compilers.
17247 # On the NeXT, cc -E runs the code through the compiler's parser,
17248 # not just through cpp. "Syntax error
" is here to catch this case.
17249 cat >conftest.$ac_ext <<_ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17256 # include <limits.h>
17258 # include <assert.h>
17262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
17263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17265 grep -v '^ *+' conftest.er1 >conftest.err
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17269 (exit $ac_status); } >/dev/null; then
17270 if test -s conftest.err; then
17271 ac_cpp_err=$ac_cxx_preproc_warn_flag
17272 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17279 if test -z "$ac_cpp_err"; then
17282 echo "$as_me: failed program was
:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17285 # Broken: fails on valid input.
17288 rm -f conftest.err conftest.$ac_ext
17290 # OK, works on sane cases. Now check whether non-existent headers
17291 # can be detected and how.
17292 cat >conftest.$ac_ext <<_ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 #include <ac_nonexistent.h>
17300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
17301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17303 grep -v '^ *+' conftest.er1 >conftest.err
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17307 (exit $ac_status); } >/dev/null; then
17308 if test -s conftest.err; then
17309 ac_cpp_err=$ac_cxx_preproc_warn_flag
17310 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17317 if test -z "$ac_cpp_err"; then
17318 # Broken: success on invalid input.
17321 echo "$as_me: failed program was
:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 # Passes both tests.
17328 rm -f conftest.err conftest.$ac_ext
17331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17332 rm -f conftest.err conftest.$ac_ext
17333 if $ac_preproc_ok; then
17338 ac_cv_prog_CXXCPP=$CXXCPP
17341 CXXCPP=$ac_cv_prog_CXXCPP
17343 ac_cv_prog_CXXCPP=$CXXCPP
17345 echo "$as_me:$LINENO: result
: $CXXCPP" >&5
17346 echo "${ECHO_T}$CXXCPP" >&6
17347 ac_preproc_ok=false
17348 for ac_cxx_preproc_warn_flag in '' yes
17350 # Use a header file that comes with gcc, so configuring glibc
17351 # with a fresh cross-compiler works.
17352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 # <limits.h> exists even on freestanding compilers.
17354 # On the NeXT, cc -E runs the code through the compiler's parser,
17355 # not just through cpp. "Syntax error
" is here to catch this case.
17356 cat >conftest.$ac_ext <<_ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17363 # include <limits.h>
17365 # include <assert.h>
17369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
17370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17372 grep -v '^ *+' conftest.er1 >conftest.err
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17376 (exit $ac_status); } >/dev/null; then
17377 if test -s conftest.err; then
17378 ac_cpp_err=$ac_cxx_preproc_warn_flag
17379 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17386 if test -z "$ac_cpp_err"; then
17389 echo "$as_me: failed program was
:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 # Broken: fails on valid input.
17395 rm -f conftest.err conftest.$ac_ext
17397 # OK, works on sane cases. Now check whether non-existent headers
17398 # can be detected and how.
17399 cat >conftest.$ac_ext <<_ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17405 #include <ac_nonexistent.h>
17407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
17408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17410 grep -v '^ *+' conftest.er1 >conftest.err
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17414 (exit $ac_status); } >/dev/null; then
17415 if test -s conftest.err; then
17416 ac_cpp_err=$ac_cxx_preproc_warn_flag
17417 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17424 if test -z "$ac_cpp_err"; then
17425 # Broken: success on invalid input.
17428 echo "$as_me: failed program was
:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 # Passes both tests.
17435 rm -f conftest.err conftest.$ac_ext
17438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17439 rm -f conftest.err conftest.$ac_ext
17440 if $ac_preproc_ok; then
17443 { { echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
17444 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17445 _lt_caught_CXX_error=yes; }
17449 ac_cpp='$CPP $CPPFLAGS'
17450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
17451 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
17452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17455 _lt_caught_CXX_error=yes
17469 enable_win32_dll=no
17472 # Check whether --enable-shared or --disable-shared was given.
17473 if test "${enable_shared+set}" = set; then
17474 enableval="$enable_shared"
17475 p=${PACKAGE-default}
17477 yes) enable_shared=yes ;;
17478 no) enable_shared=no ;;
17481 # Look at the argument we got. We use all the common list separators.
17482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17483 for pkg in $enableval; do
17485 if test "X$pkg" = "X$p"; then
17503 # Check whether --enable-static or --disable-static was given.
17504 if test "${enable_static+set}" = set; then
17505 enableval="$enable_static"
17506 p=${PACKAGE-default}
17508 yes) enable_static=yes ;;
17509 no) enable_static=no ;;
17512 # Look at the argument we got. We use all the common list separators.
17513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17514 for pkg in $enableval; do
17516 if test "X$pkg" = "X$p"; then
17535 # Check whether --with-pic or --without-pic was given.
17536 if test "${with_pic+set}" = set; then
17537 withval="$with_pic"
17538 pic_mode="$withval"
17543 test -z "$pic_mode" && pic_mode=default
17551 # Check whether --enable-fast-install or --disable-fast-install was given.
17552 if test "${enable_fast_install+set}" = set; then
17553 enableval="$enable_fast_install"
17554 p=${PACKAGE-default}
17556 yes) enable_fast_install=yes ;;
17557 no) enable_fast_install=no ;;
17559 enable_fast_install=no
17560 # Look at the argument we got. We use all the common list separators.
17561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17562 for pkg in $enableval; do
17564 if test "X$pkg" = "X$p"; then
17565 enable_fast_install=yes
17572 enable_fast_install=yes
17584 # This can be used to rebuild libtool when needed
17585 LIBTOOL_DEPS="$ltmain"
17587 # Always use our own libtool.
17588 LIBTOOL='$
(SHELL
) $
(top_builddir
)/libtool
'
17614 test -z "$LN_S" && LN_S="ln -s"
17629 if test -n "${ZSH_VERSION+set}" ; then
17630 setopt NO_GLOB_SUBST
17633 echo "$as_me:$LINENO: checking for objdir" >&5
17634 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
17635 if test "${lt_cv_objdir+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 rm -f .libs 2>/dev/null
17639 mkdir .libs 2>/dev/null
17640 if test -d .libs; then
17643 # MS-DOS does not allow filenames that begin with a dot.
17646 rmdir .libs 2>/dev/null
17648 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
17649 echo "${ECHO_T}$lt_cv_objdir" >&6
17650 objdir=$lt_cv_objdir
17656 cat >>confdefs.h <<_ACEOF
17657 #define LT_OBJDIR "$lt_cv_objdir/"
17678 # AIX sometimes has problems with the GCC collect2 program. For some
17679 # reason, if we set the COLLECT_NAMES environment variable, the problems
17680 # vanish in a puff of smoke.
17681 if test "X${COLLECT_NAMES+set}" != Xset; then
17683 export COLLECT_NAMES
17688 # Sed substitution that helps us do robust quoting. It backslashifies
17689 # metacharacters that are still active within double-quoted strings.
17690 sed_quote_subst='s
/\
(["`$\\]\)/\\\1/g'
17692 # Same as above, but do not quote variable references.
17693 double_quote_subst='s/\(["`\\]\)/\\\1/g'
17695 # Sed substitution to delay expansion of an escaped shell variable in a
17696 # double_quote_subst'ed string.
17697 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
17699 # Sed substitution to delay expansion of an escaped single quote.
17700 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
17702 # Sed substitution to avoid accidental globbing in evaled expressions
17703 no_glob_subst='s/\*/\\\*/g'
17705 # Global variables:
17707 can_build_shared=yes
17709 # All known linkers require a `.a
' archive for static linking (except MSVC,
17710 # which needs '.lib
').
17713 with_gnu_ld="$lt_cv_prog_gnu_ld"
17716 old_CFLAGS="$CFLAGS"
17718 # Set sane defaults for various variables
17719 test -z "$CC" && CC=cc
17720 test -z "$LTCC" && LTCC=$CC
17721 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
17722 test -z "$LD" && LD=ld
17723 test -z "$ac_objext" && ac_objext=o
17725 for cc_temp in $compiler""; do
17727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17733 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's
%.
*/%%' -e "s%^$host_alias-%%"`
17736 # Only perform the check for file, if the check method requires it
17737 test -z "$MAGIC_CMD" && MAGIC_CMD=file
17738 case $deplibs_check_method in
17740 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
17741 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
17742 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
17743 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17748 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17751 lt_save_MAGIC_CMD="$MAGIC_CMD"
17752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17753 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17754 for ac_dir in $ac_dummy; do
17756 test -z "$ac_dir" && ac_dir=.
17757 if test -f $ac_dir/${ac_tool_prefix}file; then
17758 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
17759 if test -n "$file_magic_test_file"; then
17760 case $deplibs_check_method in
17762 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17764 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17765 $EGREP "$file_magic_regex" > /dev/null; then
17770 *** Warning: the command libtool uses to detect shared libraries,
17771 *** $file_magic_cmd, produces output that libtool cannot recognize.
17772 *** The result is that libtool may fail to recognize shared libraries
17773 *** as such. This will affect the creation of libtool libraries that
17774 *** depend on shared libraries, but programs linked with such libtool
17775 *** libraries will work regardless of this problem. Nevertheless, you
17776 *** may want to report the problem to your system manager and/or to
17777 *** bug-libtool@gnu.org
17787 MAGIC_CMD="$lt_save_MAGIC_CMD"
17792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17793 if test -n "$MAGIC_CMD"; then
17794 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17795 echo "${ECHO_T}$MAGIC_CMD" >&6
17797 echo "$as_me:$LINENO: result: no" >&5
17798 echo "${ECHO_T}no" >&6
17805 if test -z "$lt_cv_path_MAGIC_CMD"; then
17806 if test -n "$ac_tool_prefix"; then
17807 echo "$as_me:$LINENO: checking for file" >&5
17808 echo $ECHO_N "checking for file... $ECHO_C" >&6
17809 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17817 lt_save_MAGIC_CMD="$MAGIC_CMD"
17818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17819 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17820 for ac_dir in $ac_dummy; do
17822 test -z "$ac_dir" && ac_dir=.
17823 if test -f $ac_dir/file; then
17824 lt_cv_path_MAGIC_CMD="$ac_dir/file"
17825 if test -n "$file_magic_test_file"; then
17826 case $deplibs_check_method in
17828 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17829 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17830 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17831 $EGREP "$file_magic_regex" > /dev/null; then
17836 *** Warning: the command libtool uses to detect shared libraries,
17837 *** $file_magic_cmd, produces output that libtool cannot recognize.
17838 *** The result is that libtool may fail to recognize shared libraries
17839 *** as such. This will affect the creation of libtool libraries that
17840 *** depend on shared libraries, but programs linked with such libtool
17841 *** libraries will work regardless of this problem. Nevertheless, you
17842 *** may want to report the problem to your system manager and/or to
17843 *** bug-libtool@gnu.org
17853 MAGIC_CMD="$lt_save_MAGIC_CMD"
17858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17859 if test -n "$MAGIC_CMD"; then
17860 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17861 echo "${ECHO_T}$MAGIC_CMD" >&6
17863 echo "$as_me:$LINENO: result: no" >&5
17864 echo "${ECHO_T}no" >&6
17877 # Use C for the default configuration in the libtool script
17881 ac_cpp='$CPP $CPPFLAGS'
17882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
17883 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
17884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17887 # Source file extension for C test sources.
17890 # Object file extension for compiled C test sources.
17894 # Code to be used in simple compile tests
17895 lt_simple_compile_test_code="int some_variable = 0;"
17897 # Code to be used in simple link tests
17898 lt_simple_link_test_code='int main
(){return(0);}'
17906 # If no C compiler was specified, use CC.
17909 # If no C compiler flags were specified, use CFLAGS.
17910 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17912 # Allow CC to be a program name with arguments.
17915 # Save the default compiler, since it gets overwritten when the other
17916 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
17917 compiler_DEFAULT=$CC
17919 # save warnings/boilerplate of simple test code
17920 ac_outfile=conftest.$ac_objext
17921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
17923 _lt_compiler_boilerplate=`cat conftest.err`
17926 ac_outfile=conftest.$ac_objext
17927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
17929 _lt_linker_boilerplate=`cat conftest.err`
17934 ## There is no encapsulation within the following macros, do not change
17935 ## the running order or otherwise move them around unless you know exactly
17936 ## what you are doing...
17937 if test -n "$compiler"; then
17939 lt_prog_compiler_no_builtin_flag=
17941 if test "$GCC" = yes; then
17942 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
17944 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17945 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17946 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 lt_cv_prog_compiler_rtti_exceptions=no
17950 ac_outfile=conftest.$ac_objext
17951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17952 lt_compiler_flag="-fno-rtti -fno-exceptions"
17953 # Insert the option either (1) after the last *FLAGS variable, or
17954 # (2) before a word containing "conftest.", or (3) at the end.
17955 # Note that $ac_compile itself does not contain backslashes and begins
17956 # with a dollar sign (not a hyphen), so the echo should work correctly.
17957 # The option is referenced via a variable to avoid confusing sed.
17958 lt_compile=`echo "$ac_compile" | $SED \
17959 -e 's
:.
*FLAGS
}\
{0,1\
} :&$lt_compiler_flag :; t
' \
17960 -e 's
: [^
]*conftest\.
: $lt_compiler_flag&:; t
' \
17961 -e 's
:$
: $lt_compiler_flag:'`
17962 (eval echo "\"\$as_me:17962: $lt_compile\"" >&5)
17963 (eval "$lt_compile" 2>conftest.err)
17965 cat conftest.err >&5
17966 echo "$as_me:17966: \$? = $ac_status" >&5
17967 if (exit $ac_status) && test -s "$ac_outfile"; then
17968 # The compiler can only warn and ignore the option if not recognized
17969 # So say no if there are warnings other than the usual output.
17970 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$
/d
' >conftest.exp
17971 $SED '/^$
/d
; /^
*+/d
' conftest.err >conftest.er2
17972 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17973 lt_cv_prog_compiler_rtti_exceptions=yes
17979 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17980 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17982 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17983 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17995 lt_prog_compiler_wl=
17996 lt_prog_compiler_pic=
17997 lt_prog_compiler_static=
17999 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18000 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18002 if test "$GCC" = yes; then
18003 lt_prog_compiler_wl='-Wl,'
18004 lt_prog_compiler_static='-static'
18008 # All AIX code is PIC.
18009 if test "$host_cpu" = ia64; then
18010 # AIX 5 now supports IA64 processor
18011 lt_prog_compiler_static='-Bstatic'
18018 # see comment about AmigaOS4 .so support
18019 lt_prog_compiler_pic='-fPIC'
18022 # FIXME: we need at least 68020 code to build shared libraries, but
18023 # adding the `-m68020' flag to GCC prevents building anything better
,
18025 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
18030 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
18031 # PIC is the default for these OSes.
18034 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
18035 # This hack is so that the source file can tell whether it is being
18036 # built for inclusion in a dll (and should export symbols for example).
18037 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18038 # (--disable-auto-import) libraries
18039 lt_prog_compiler_pic
='-DDLL_EXPORT'
18042 darwin
* | rhapsody
*)
18043 # PIC is the default on this platform
18044 # Common symbols not allowed in MH_DYLIB files
18045 lt_prog_compiler_pic
='-fno-common'
18049 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18050 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18051 # sets the default TLS model and affects inlining.
18057 lt_prog_compiler_pic
='-fPIC'
18063 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18064 # Instead, we relocate shared libraries at runtime.
18068 # Just because we use GCC doesn't mean we suddenly get shared libraries
18069 # on systems that don't support them.
18070 lt_prog_compiler_can_build_shared
=no
18075 # QNX uses GNU C++, but need to define -shared option too, otherwise
18076 # it will coredump.
18077 lt_prog_compiler_pic
='-fPIC -shared'
18081 if test -d /usr
/nec
; then
18082 lt_prog_compiler_pic
=-Kconform_pic
18087 lt_prog_compiler_pic
='-fPIC'
18091 # PORTME Check for flag to pass linker flags through the system compiler.
18094 lt_prog_compiler_wl
='-Wl,'
18095 if test "$host_cpu" = ia64
; then
18096 # AIX 5 now supports IA64 processor
18097 lt_prog_compiler_static
='-Bstatic'
18099 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
18103 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
18104 # This hack is so that the source file can tell whether it is being
18105 # built for inclusion in a dll (and should export symbols for example).
18106 lt_prog_compiler_pic
='-DDLL_EXPORT'
18109 hpux9
* | hpux10
* | hpux11
*)
18110 lt_prog_compiler_wl
='-Wl,'
18111 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18112 # not for PA HP-UX.
18118 lt_prog_compiler_pic
='+Z'
18121 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18122 lt_prog_compiler_static
='${wl}-a ${wl}archive'
18125 irix5
* | irix6
* | nonstopux
*)
18126 lt_prog_compiler_wl
='-Wl,'
18127 # PIC (with -KPIC) is the default.
18128 lt_prog_compiler_static
='-non_shared'
18131 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18132 case $cc_basename in
18133 # old Intel for x86_64 which still supported -KPIC.
18135 lt_prog_compiler_wl
='-Wl,'
18136 lt_prog_compiler_pic
='-KPIC'
18137 lt_prog_compiler_static
='-static'
18139 # icc used to be incompatible with GCC.
18140 # ICC 10 doesn't accept -KPIC any more.
18142 lt_prog_compiler_wl
='-Wl,'
18143 lt_prog_compiler_pic
='-fPIC'
18144 lt_prog_compiler_static
='-static'
18146 # Lahey Fortran 8.1.
18148 lt_prog_compiler_wl
='-Wl,'
18149 lt_prog_compiler_pic
='--shared'
18150 lt_prog_compiler_static
='--static'
18152 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
18153 # Portland Group compilers (*not* the Pentium gcc compiler,
18154 # which looks to be a dead project)
18155 lt_prog_compiler_wl
='-Wl,'
18156 lt_prog_compiler_pic
='-fpic'
18157 lt_prog_compiler_static
='-Bstatic'
18160 lt_prog_compiler_wl
='-Wl,'
18161 # All Alpha code is PIC.
18162 lt_prog_compiler_static
='-non_shared'
18165 # IBM XL C 8.0/Fortran 10.1 on PPC
18166 lt_prog_compiler_wl
='-Wl,'
18167 lt_prog_compiler_pic
='-qpic'
18168 lt_prog_compiler_static
='-qstaticlink'
18171 case `$CC -V 2>&1 | sed 5q` in
18174 lt_prog_compiler_pic
='-KPIC'
18175 lt_prog_compiler_static
='-Bstatic'
18176 lt_prog_compiler_wl
='-Wl,'
18179 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18180 lt_prog_compiler_pic
='-KPIC'
18181 lt_prog_compiler_static
='-Bstatic'
18182 lt_prog_compiler_wl
=''
18190 lt_prog_compiler_pic
='-KPIC'
18191 lt_prog_compiler_static
='-Bstatic'
18195 # QNX uses GNU C++, but need to define -shared option too, otherwise
18196 # it will coredump.
18197 lt_prog_compiler_pic
='-fPIC -shared'
18200 osf3
* | osf4
* | osf5
*)
18201 lt_prog_compiler_wl
='-Wl,'
18202 # All OSF/1 code is PIC.
18203 lt_prog_compiler_static
='-non_shared'
18207 lt_prog_compiler_static
='-non_shared'
18211 lt_prog_compiler_pic
='-KPIC'
18212 lt_prog_compiler_static
='-Bstatic'
18213 case $cc_basename in
18214 f77
* | f90
* | f95
*)
18215 lt_prog_compiler_wl
='-Qoption ld ';;
18217 lt_prog_compiler_wl
='-Wl,';;
18222 lt_prog_compiler_wl
='-Qoption ld '
18223 lt_prog_compiler_pic
='-PIC'
18224 lt_prog_compiler_static
='-Bstatic'
18227 sysv4 | sysv4.2uw2
* | sysv4.3
*)
18228 lt_prog_compiler_wl
='-Wl,'
18229 lt_prog_compiler_pic
='-KPIC'
18230 lt_prog_compiler_static
='-Bstatic'
18234 if test -d /usr
/nec
;then
18235 lt_prog_compiler_pic
='-Kconform_pic'
18236 lt_prog_compiler_static
='-Bstatic'
18240 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
18241 lt_prog_compiler_wl
='-Wl,'
18242 lt_prog_compiler_pic
='-KPIC'
18243 lt_prog_compiler_static
='-Bstatic'
18247 lt_prog_compiler_wl
='-Wl,'
18248 lt_prog_compiler_can_build_shared
=no
18252 lt_prog_compiler_pic
='-pic'
18253 lt_prog_compiler_static
='-Bstatic'
18257 lt_prog_compiler_can_build_shared
=no
18263 # For platforms which do not support PIC, -DPIC is meaningless:
18265 lt_prog_compiler_pic
=
18268 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
18271 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
18272 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
18280 # Check to make sure the PIC flag actually works.
18282 if test -n "$lt_prog_compiler_pic"; then
18283 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18284 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
18285 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 lt_cv_prog_compiler_pic_works
=no
18289 ac_outfile
=conftest.
$ac_objext
18290 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18291 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
18292 # Insert the option either (1) after the last *FLAGS variable, or
18293 # (2) before a word containing "conftest.", or (3) at the end.
18294 # Note that $ac_compile itself does not contain backslashes and begins
18295 # with a dollar sign (not a hyphen), so the echo should work correctly.
18296 # The option is referenced via a variable to avoid confusing sed.
18297 lt_compile
=`echo "$ac_compile" | $SED \
18298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18300 -e 's:$: $lt_compiler_flag:'`
18301 (eval echo "\"\$as_me:18301: $lt_compile\"" >&5)
18302 (eval "$lt_compile" 2>conftest.err
)
18304 cat conftest.err
>&5
18305 echo "$as_me:18305: \$? = $ac_status" >&5
18306 if (exit $ac_status) && test -s "$ac_outfile"; then
18307 # The compiler can only warn and ignore the option if not recognized
18308 # So say no if there are warnings other than the usual output.
18309 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
18310 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18311 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
18312 lt_cv_prog_compiler_pic_works
=yes
18318 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
18319 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
18321 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
18322 case $lt_prog_compiler_pic in
18324 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
18327 lt_prog_compiler_pic
=
18328 lt_prog_compiler_can_build_shared
=no
18339 # Check to make sure the static flag actually works.
18341 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
18342 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18343 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18344 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18347 lt_cv_prog_compiler_static_works
=no
18348 save_LDFLAGS
="$LDFLAGS"
18349 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
18350 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18351 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18352 # The linker can only warn and ignore the option if not recognized
18353 # So say no if there are warnings
18354 if test -s conftest.err
; then
18355 # Append any errors to the config.log.
18356 cat conftest.err
1>&5
18357 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
18358 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18359 if diff conftest.exp conftest.er2
>/dev
/null
; then
18360 lt_cv_prog_compiler_static_works
=yes
18363 lt_cv_prog_compiler_static_works
=yes
18367 LDFLAGS
="$save_LDFLAGS"
18370 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
18371 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
18373 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
18376 lt_prog_compiler_static
=
18385 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18386 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18387 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 lt_cv_prog_compiler_c_o
=no
18391 $RM -r conftest
2>/dev
/null
18395 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18397 lt_compiler_flag
="-o out/conftest2.$ac_objext"
18398 # Insert the option either (1) after the last *FLAGS variable, or
18399 # (2) before a word containing "conftest.", or (3) at the end.
18400 # Note that $ac_compile itself does not contain backslashes and begins
18401 # with a dollar sign (not a hyphen), so the echo should work correctly.
18402 lt_compile
=`echo "$ac_compile" | $SED \
18403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18405 -e 's:$: $lt_compiler_flag:'`
18406 (eval echo "\"\$as_me:18406: $lt_compile\"" >&5)
18407 (eval "$lt_compile" 2>out
/conftest.err
)
18409 cat out
/conftest.err
>&5
18410 echo "$as_me:18410: \$? = $ac_status" >&5
18411 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
18413 # The compiler can only warn and ignore the option if not recognized
18414 # So say no if there are warnings
18415 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
18416 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
18417 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
18418 lt_cv_prog_compiler_c_o
=yes
18423 # SGI C++ compiler will create directory out/ii_files/ for
18424 # template instantiation
18425 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
18426 $RM out
/* && rmdir out
18432 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
18433 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
18440 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18441 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18442 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 lt_cv_prog_compiler_c_o
=no
18446 $RM -r conftest
2>/dev
/null
18450 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18452 lt_compiler_flag
="-o out/conftest2.$ac_objext"
18453 # Insert the option either (1) after the last *FLAGS variable, or
18454 # (2) before a word containing "conftest.", or (3) at the end.
18455 # Note that $ac_compile itself does not contain backslashes and begins
18456 # with a dollar sign (not a hyphen), so the echo should work correctly.
18457 lt_compile
=`echo "$ac_compile" | $SED \
18458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18460 -e 's:$: $lt_compiler_flag:'`
18461 (eval echo "\"\$as_me:18461: $lt_compile\"" >&5)
18462 (eval "$lt_compile" 2>out
/conftest.err
)
18464 cat out
/conftest.err
>&5
18465 echo "$as_me:18465: \$? = $ac_status" >&5
18466 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
18468 # The compiler can only warn and ignore the option if not recognized
18469 # So say no if there are warnings
18470 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
18471 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
18472 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
18473 lt_cv_prog_compiler_c_o
=yes
18478 # SGI C++ compiler will create directory out/ii_files/ for
18479 # template instantiation
18480 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
18481 $RM out
/* && rmdir out
18487 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
18488 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
18493 hard_links
="nottested"
18494 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
18495 # do not overwrite the value of need_locks provided by the user
18496 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18497 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18500 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
18502 ln conftest.a conftest.b
2>&5 || hard_links
=no
18503 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
18504 echo "$as_me:$LINENO: result: $hard_links" >&5
18505 echo "${ECHO_T}$hard_links" >&6
18506 if test "$hard_links" = no
; then
18507 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18508 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18520 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18521 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18524 allow_undefined_flag
=
18525 always_export_symbols
=no
18527 archive_expsym_cmds
=
18528 compiler_needs_object
=no
18529 enable_shared_with_static_runtimes
=no
18530 export_dynamic_flag_spec
=
18531 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18532 hardcode_automatic
=no
18534 hardcode_direct_absolute
=no
18535 hardcode_libdir_flag_spec
=
18536 hardcode_libdir_flag_spec_ld
=
18537 hardcode_libdir_separator
=
18538 hardcode_minus_L
=no
18539 hardcode_shlibpath_var
=unsupported
18541 link_all_deplibs
=unknown
18543 module_expsym_cmds
=
18544 old_archive_from_new_cmds
=
18545 old_archive_from_expsyms_cmds
=
18546 thread_safe_flag_spec
=
18547 whole_archive_flag_spec
=
18548 # include_expsyms should be a list of space-separated symbols to be *always*
18549 # included in the symbol list
18551 # exclude_expsyms can be an extended regexp of symbols to exclude
18552 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18553 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18554 # as well as any symbol that contains `d'.
18555 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18556 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18557 # platforms (ab)use it in PIC code, but their linkers get confused if
18558 # the symbol is explicitly referenced. Since portable code cannot
18559 # rely on this symbol name, it's probably fine to never include it in
18560 # preloaded symbol tables.
18561 # Exclude shared library initialization/finalization symbols.
18562 extract_expsyms_cmds
=
18565 cygwin
* | mingw
* | pw32
* | cegcc
*)
18566 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18567 # When not using gcc, we currently assume that we are using
18568 # Microsoft Visual C++.
18569 if test "$GCC" != yes; then
18574 # we just hope/assume this is gcc and not c89 (= MSVC++)
18583 if test "$with_gnu_ld" = yes; then
18584 # If archive_cmds runs LD, not CC, wlarc should be empty
18587 # Set some defaults for GNU ld with shared library support. These
18588 # are reset later if shared libraries are not supported. Putting them
18589 # here allows them to be overridden if necessary.
18590 runpath_var
=LD_RUN_PATH
18591 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18592 export_dynamic_flag_spec
='${wl}--export-dynamic'
18593 # ancient GNU ld didn't support --whole-archive et. al.
18594 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
18595 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18597 whole_archive_flag_spec
=
18599 supports_anon_versioning
=no
18600 case `$LD -v 2>&1` in
18601 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
18602 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
18603 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
18604 *\
2.11.
*) ;; # other 2.11 versions
18605 *) supports_anon_versioning
=yes ;;
18608 # See if GNU ld supports shared libraries.
18611 # On AIX/PPC, the GNU linker is very broken
18612 if test "$host_cpu" != ia64
; then
18616 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18617 *** to be unable to reliably create shared libraries on AIX.
18618 *** Therefore, libtool is disabling shared libraries support. If you
18619 *** really care for shared libraries, you may want to modify your PATH
18620 *** so that a non-GNU linker is found, and then restart.
18629 # see comment about AmigaOS4 .so support
18630 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18631 archive_expsym_cmds
=''
18634 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)'
18635 hardcode_libdir_flag_spec
='-L$libdir'
18636 hardcode_minus_L
=yes
18642 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18643 allow_undefined_flag
=unsupported
18644 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18645 # support --undefined. This deserves some investigation. FIXME
18646 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18652 cygwin
* | mingw
* | pw32
* | cegcc
*)
18653 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
18654 # as there is no search path for DLLs.
18655 hardcode_libdir_flag_spec
='-L$libdir'
18656 allow_undefined_flag
=unsupported
18657 always_export_symbols
=no
18658 enable_shared_with_static_runtimes
=yes
18659 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18661 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18662 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18663 # If the export-symbols file already is a .def file (1st line
18664 # is EXPORTS), use it as is; otherwise, prepend...
18665 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18666 cp $export_symbols $output_objdir/$soname.def;
18668 echo EXPORTS > $output_objdir/$soname.def;
18669 cat $export_symbols >> $output_objdir/$soname.def;
18671 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18679 hardcode_shlibpath_var
=no
18680 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18681 export_dynamic_flag_spec
='${wl}-E'
18682 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18683 # Instead, shared libraries are loaded at an image base (0x10000000 by
18684 # default) and relocated if they conflict, which is a slow very memory
18685 # consuming and fragmenting process. To avoid this, we pick a random,
18686 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18687 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18688 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18689 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'
18692 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18694 if test "$host_os" = linux-dietlibc
; then
18695 case $cc_basename in
18696 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
18699 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
18700 && test "$tmp_diet" = no
18703 tmp_sharedflag
='-shared'
18704 case $cc_basename,$host_cpu in
18705 pgcc
*) # Portland Group C compiler
18706 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'
18707 tmp_addflag
=' $pic_flag'
18709 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
18710 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'
18711 tmp_addflag
=' $pic_flag -Mnomain' ;;
18712 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
18713 tmp_addflag
=' -i_dynamic' ;;
18714 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
18715 tmp_addflag
=' -i_dynamic -nofor_main' ;;
18716 ifc
* | ifort
*) # Intel Fortran compiler
18717 tmp_addflag
=' -nofor_main' ;;
18718 lf95
*) # Lahey Fortran 8.1
18719 whole_archive_flag_spec
=
18720 tmp_sharedflag
='--shared' ;;
18721 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18722 tmp_sharedflag
='-qmkshrobj'
18725 case `$CC -V 2>&1 | sed 5q` in
18726 *Sun\ C
*) # Sun C 5.9
18727 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'
18728 compiler_needs_object
=yes
18729 tmp_sharedflag
='-G' ;;
18730 *Sun\ F
*) # Sun Fortran 8.3
18731 tmp_sharedflag
='-G' ;;
18733 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18735 if test "x$supports_anon_versioning" = xyes
; then
18736 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
18737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18738 echo "local: *; };" >> $output_objdir/$libname.ver~
18739 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18742 case $cc_basename in
18744 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18745 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
18746 hardcode_libdir_flag_spec
=
18747 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
18748 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18749 if test "x$supports_anon_versioning" = xyes
; then
18750 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
18751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18752 echo "local: *; };" >> $output_objdir/$libname.ver~
18753 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18763 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18764 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18767 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18768 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18773 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
18777 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18778 *** create shared libraries on Solaris systems. Therefore, libtool
18779 *** is disabling shared libraries support. We urge you to upgrade GNU
18780 *** binutils to release 2.9.1 or newer. Another option is to modify
18781 *** your PATH or compiler configuration so that the native linker is
18782 *** used, and then restart.
18785 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18786 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18793 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
18794 case `$LD -v 2>&1` in
18795 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
18799 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18800 *** reliably create shared libraries on SCO systems. Therefore, libtool
18801 *** is disabling shared libraries support. We urge you to upgrade GNU
18802 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18803 *** your PATH or compiler configuration so that the native linker is
18804 *** used, and then restart.
18809 # For security reasons, it is highly recommended that you always
18810 # use absolute paths for naming shared libraries, and exclude the
18811 # DT_RUNPATH tag from executables and libraries. But doing so
18812 # requires that you compile everything twice, which is a pain.
18813 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18814 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18815 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18816 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18825 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18827 hardcode_direct
=yes
18828 hardcode_shlibpath_var
=no
18832 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18833 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18834 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18841 if test "$ld_shlibs" = no
; then
18843 hardcode_libdir_flag_spec
=
18844 export_dynamic_flag_spec
=
18845 whole_archive_flag_spec
=
18848 # PORTME fill in a description of your system's linker (not GNU ld)
18851 allow_undefined_flag
=unsupported
18852 always_export_symbols
=yes
18853 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'
18854 # Note: this linker hardcodes the directories in LIBPATH if there
18855 # are no directories specified by -L.
18856 hardcode_minus_L
=yes
18857 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18858 # Neither direct hardcoding nor static linking is supported with a
18860 hardcode_direct
=unsupported
18865 if test "$host_cpu" = ia64
; then
18866 # On IA64, the linker does run time linking by default, so we don't
18867 # have to do anything special.
18868 aix_use_runtimelinking
=no
18869 exp_sym_flag
='-Bexport'
18872 # If we're using GNU nm, then we don't want the "-C" option.
18873 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18874 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
18875 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'
18877 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'
18879 aix_use_runtimelinking
=no
18881 # Test if we are trying to use run time linking or normal
18882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18883 # need to do runtime linking.
18884 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18885 for ld_flag
in $LDFLAGS; do
18886 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
18887 aix_use_runtimelinking
=yes
18894 exp_sym_flag
='-bexport'
18895 no_entry_flag
='-bnoentry'
18898 # When large executables or shared objects are built, AIX ld can
18899 # have problems creating the table of contents. If linking a library
18900 # or program results in "error TOC overflow" add -mminimal-toc to
18901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18905 hardcode_direct
=yes
18906 hardcode_direct_absolute
=yes
18907 hardcode_libdir_separator
=':'
18908 link_all_deplibs
=yes
18909 file_list_spec
='${wl}-f,'
18911 if test "$GCC" = yes; then
18912 case $host_os in aix4.
[012]|aix4.
[012].
*)
18913 # We only want to do this on AIX 4.2 and lower, the check
18914 # below for broken collect2 doesn't work under 4.3+
18915 collect2name
=`${CC} -print-prog-name=collect2`
18916 if test -f "$collect2name" &&
18917 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18919 # We have reworked collect2
18922 # We have old collect2
18923 hardcode_direct
=unsupported
18924 # It fails to find uninstalled libraries when the uninstalled
18925 # path is not listed in the libpath. Setting hardcode_minus_L
18926 # to unsupported forces relinking
18927 hardcode_minus_L
=yes
18928 hardcode_libdir_flag_spec
='-L$libdir'
18929 hardcode_libdir_separator
=
18933 shared_flag
='-shared'
18934 if test "$aix_use_runtimelinking" = yes; then
18935 shared_flag
="$shared_flag "'${wl}-G'
18939 if test "$host_cpu" = ia64
; then
18940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18941 # chokes on -Wl,-G. The following line is correct:
18944 if test "$aix_use_runtimelinking" = yes; then
18945 shared_flag
='${wl}-G'
18947 shared_flag
='${wl}-bM:SRE'
18952 export_dynamic_flag_spec
='${wl}-bexpall'
18953 # It seems that -bexpall does not export symbols beginning with
18954 # underscore (_), so it is better to generate a list of symbols to export.
18955 always_export_symbols
=yes
18956 if test "$aix_use_runtimelinking" = yes; then
18957 # Warning - without using the other runtime loading flags (-brtl),
18958 # -berok will link without error, but may produce a broken library.
18959 allow_undefined_flag
='-berok'
18960 # Determine the default libpath from the value encoded in an
18961 # empty executable.
18962 cat >conftest.
$ac_ext <<_ACEOF
18965 cat confdefs.h
>>conftest.
$ac_ext
18966 cat >>conftest.
$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18977 rm -f conftest.
$ac_objext conftest
$ac_exeext
18978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18979 (eval $ac_link) 2>conftest.er1
18981 grep -v '^ *+' conftest.er1
>conftest.err
18983 cat conftest.err
>&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } &&
18986 { ac_try
='test -z "$ac_c_werror_flag"
18987 || test ! -s conftest.err'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; } &&
18993 { ac_try
='test -s conftest$ac_exeext'
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
19000 lt_aix_libpath_sed
='
19001 /Import File Strings/,/^$/ {
19007 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19008 # Check for a 64-bit object if we didn't find anything.
19009 if test -z "$aix_libpath"; then
19010 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.
$ac_ext >&5
19017 rm -f conftest.err conftest.
$ac_objext \
19018 conftest
$ac_exeext conftest.
$ac_ext
19019 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19021 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
19022 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"
19024 if test "$host_cpu" = ia64
; then
19025 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
19026 allow_undefined_flag
="-z nodefs"
19027 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"
19029 # Determine the default libpath from the value encoded in an
19030 # empty executable.
19031 cat >conftest.
$ac_ext <<_ACEOF
19034 cat confdefs.h
>>conftest.
$ac_ext
19035 cat >>conftest.
$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19046 rm -f conftest.
$ac_objext conftest
$ac_exeext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19048 (eval $ac_link) 2>conftest.er1
19050 grep -v '^ *+' conftest.er1
>conftest.err
19052 cat conftest.err
>&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try
='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try
='test -s conftest$ac_exeext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19069 lt_aix_libpath_sed
='
19070 /Import File Strings/,/^$/ {
19076 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19077 # Check for a 64-bit object if we didn't find anything.
19078 if test -z "$aix_libpath"; then
19079 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.
$ac_ext >&5
19086 rm -f conftest.err conftest.
$ac_objext \
19087 conftest
$ac_exeext conftest.
$ac_ext
19088 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19090 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
19091 # Warning - without using the other run time loading flags,
19092 # -berok will link without error, but may produce a broken library.
19093 no_undefined_flag
=' ${wl}-bernotok'
19094 allow_undefined_flag
=' ${wl}-berok'
19095 # Exported symbols can be pulled into shared objects from archives
19096 whole_archive_flag_spec
='$convenience'
19097 archive_cmds_need_lc
=yes
19098 # This is similar to how AIX traditionally builds its shared libraries.
19099 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'
19107 # see comment about AmigaOS4 .so support
19108 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19109 archive_expsym_cmds
=''
19112 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)'
19113 hardcode_libdir_flag_spec
='-L$libdir'
19114 hardcode_minus_L
=yes
19120 export_dynamic_flag_spec
=-rdynamic
19123 cygwin
* | mingw
* | pw32
* | cegcc
*)
19124 # When not using gcc, we currently assume that we are using
19125 # Microsoft Visual C++.
19126 # hardcode_libdir_flag_spec is actually meaningless, as there is
19127 # no search path for DLLs.
19128 hardcode_libdir_flag_spec
=' '
19129 allow_undefined_flag
=unsupported
19130 # Tell ltmain to make .lib files, not .a files.
19132 # Tell ltmain to make .dll files, not .so files.
19134 # FIXME: Setting linknames here is a bad hack.
19135 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
19136 # The linker will automatically build a .lib file if we build a DLL.
19137 old_archive_from_new_cmds
='true'
19138 # FIXME: Should let the user specify the lib program.
19139 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
19140 fix_srcfile_path
='`cygpath -w "$srcfile"`'
19141 enable_shared_with_static_runtimes
=yes
19144 darwin
* | rhapsody
*)
19147 archive_cmds_need_lc
=no
19149 hardcode_automatic
=yes
19150 hardcode_shlibpath_var
=unsupported
19151 whole_archive_flag_spec
=''
19152 link_all_deplibs
=yes
19153 allow_undefined_flag
="$_lt_dar_allow_undefined"
19154 case $cc_basename in
19155 ifort
*) _lt_dar_can_shared
=yes ;;
19156 *) _lt_dar_can_shared
=$GCC ;;
19158 if test "$_lt_dar_can_shared" = "yes"; then
19159 output_verbose_link_cmd
=echo
19160 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19161 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19162 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}"
19163 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}"
19172 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19173 hardcode_libdir_flag_spec
='-L$libdir'
19174 hardcode_shlibpath_var
=no
19181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19182 # support. Future versions do this automatically, but an explicit c++rt0.o
19183 # does not break anything, and helps significantly (at the cost of a little
19186 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19187 hardcode_libdir_flag_spec
='-R$libdir'
19188 hardcode_direct
=yes
19189 hardcode_shlibpath_var
=no
19192 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19194 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19195 hardcode_direct
=yes
19196 hardcode_minus_L
=yes
19197 hardcode_shlibpath_var
=no
19200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19201 freebsd
* | dragonfly
*)
19202 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19203 hardcode_libdir_flag_spec
='-R$libdir'
19204 hardcode_direct
=yes
19205 hardcode_shlibpath_var
=no
19209 if test "$GCC" = yes; then
19210 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'
19212 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'
19214 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19215 hardcode_libdir_separator
=:
19216 hardcode_direct
=yes
19218 # hardcode_minus_L: Not really in the search PATH,
19219 # but as the default location of the library.
19220 hardcode_minus_L
=yes
19221 export_dynamic_flag_spec
='${wl}-E'
19225 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
19226 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19228 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19230 if test "$with_gnu_ld" = no
; then
19231 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19232 hardcode_libdir_flag_spec_ld
='+b $libdir'
19233 hardcode_libdir_separator
=:
19234 hardcode_direct
=yes
19235 hardcode_direct_absolute
=yes
19236 export_dynamic_flag_spec
='${wl}-E'
19237 # hardcode_minus_L: Not really in the search PATH,
19238 # but as the default location of the library.
19239 hardcode_minus_L
=yes
19244 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
19247 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19250 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19253 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19259 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19262 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19265 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19269 if test "$with_gnu_ld" = no
; then
19270 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19271 hardcode_libdir_separator
=:
19276 hardcode_shlibpath_var
=no
19279 hardcode_direct
=yes
19280 hardcode_direct_absolute
=yes
19281 export_dynamic_flag_spec
='${wl}-E'
19283 # hardcode_minus_L: Not really in the search PATH,
19284 # but as the default location of the library.
19285 hardcode_minus_L
=yes
19291 irix5
* | irix6
* | nonstopux
*)
19292 if test "$GCC" = yes; then
19293 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'
19294 # Try to use the -exported_symbol ld option, if it does not
19295 # work, assume that -exports_file does not work either and
19296 # implicitly export all symbols.
19297 save_LDFLAGS
="$LDFLAGS"
19298 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19299 cat >conftest.
$ac_ext <<_ACEOF
19302 rm -f conftest.
$ac_objext conftest
$ac_exeext
19303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19304 (eval $ac_link) 2>conftest.er1
19306 grep -v '^ *+' conftest.er1
>conftest.err
19308 cat conftest.err
>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try
='test -z "$ac_c_werror_flag"
19312 || test ! -s conftest.err'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try
='test -s conftest$ac_exeext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 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'
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.
$ac_ext >&5
19331 rm -f conftest.err conftest.
$ac_objext \
19332 conftest
$ac_exeext conftest.
$ac_ext
19333 LDFLAGS
="$save_LDFLAGS"
19335 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'
19336 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'
19338 archive_cmds_need_lc
='no'
19339 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19340 hardcode_libdir_separator
=:
19342 link_all_deplibs
=yes
19346 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19347 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19349 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19351 hardcode_libdir_flag_spec
='-R$libdir'
19352 hardcode_direct
=yes
19353 hardcode_shlibpath_var
=no
19357 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19358 hardcode_direct
=yes
19359 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19360 hardcode_libdir_separator
=:
19361 hardcode_shlibpath_var
=no
19368 if test -f /usr
/libexec
/ld.so
; then
19369 hardcode_direct
=yes
19370 hardcode_shlibpath_var
=no
19371 hardcode_direct_absolute
=yes
19372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19373 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19374 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19375 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19376 export_dynamic_flag_spec
='${wl}-E'
19379 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
19380 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19381 hardcode_libdir_flag_spec
='-R$libdir'
19384 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19385 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19395 hardcode_libdir_flag_spec
='-L$libdir'
19396 hardcode_minus_L
=yes
19397 allow_undefined_flag
=unsupported
19398 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'
19399 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19403 if test "$GCC" = yes; then
19404 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
19405 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'
19407 allow_undefined_flag
=' -expect_unresolved \*'
19408 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'
19410 archive_cmds_need_lc
='no'
19411 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19412 hardcode_libdir_separator
=:
19415 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
19416 if test "$GCC" = yes; then
19417 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
19418 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'
19419 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19421 allow_undefined_flag
=' -expect_unresolved \*'
19422 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'
19423 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~
19424 $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'
19426 # Both c and cxx compiler support -rpath directly
19427 hardcode_libdir_flag_spec
='-rpath $libdir'
19429 archive_cmds_need_lc
='no'
19430 hardcode_libdir_separator
=:
19434 no_undefined_flag
=' -z defs'
19435 if test "$GCC" = yes; then
19437 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19438 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19439 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19441 case `$CC -V 2>&1` in
19444 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19445 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19450 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19451 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19452 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19456 hardcode_libdir_flag_spec
='-R$libdir'
19457 hardcode_shlibpath_var
=no
19459 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19461 # The compiler driver will combine and reorder linker options,
19462 # but understands `-z linker_flag'. GCC discards it without `$wl',
19463 # but is careful enough not to reorder.
19464 # Supported since Solaris 2.6 (maybe 2.5.1?)
19465 if test "$GCC" = yes; then
19466 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19468 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
19472 link_all_deplibs
=yes
19476 if test "x$host_vendor" = xsequent
; then
19477 # Use $CC to link under sequent, because it throws in some extra .o
19478 # files that make .init and .fini sections work.
19479 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19481 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19483 hardcode_libdir_flag_spec
='-L$libdir'
19484 hardcode_direct
=yes
19485 hardcode_minus_L
=yes
19486 hardcode_shlibpath_var
=no
19490 case $host_vendor in
19492 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19493 hardcode_direct
=yes # is this really true???
19496 ## LD is ld it makes a PLAMLIB
19497 ## CC just makes a GrossModule.
19498 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19499 reload_cmds
='$CC -r -o $output$reload_objs'
19503 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19504 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
19507 runpath_var
='LD_RUN_PATH'
19508 hardcode_shlibpath_var
=no
19512 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19513 hardcode_shlibpath_var
=no
19514 export_dynamic_flag_spec
='-Bexport'
19518 if test -d /usr
/nec
; then
19519 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19520 hardcode_shlibpath_var
=no
19521 runpath_var
=LD_RUN_PATH
19522 hardcode_runpath_var
=yes
19527 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19528 no_undefined_flag
='${wl}-z,text'
19529 archive_cmds_need_lc
=no
19530 hardcode_shlibpath_var
=no
19531 runpath_var
='LD_RUN_PATH'
19533 if test "$GCC" = yes; then
19534 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19535 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19537 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19538 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19542 sysv5
* | sco3.2v5
* | sco5v6
*)
19543 # Note: We can NOT use -z defs as we might desire, because we do not
19544 # link with -lc, and that would cause any symbols used from libc to
19545 # always be unresolved, which means just about no library would
19546 # ever link correctly. If we're not using GNU ld we use -z text
19547 # though, which does catch some bad symbols but isn't as heavy-handed
19549 no_undefined_flag
='${wl}-z,text'
19550 allow_undefined_flag
='${wl}-z,nodefs'
19551 archive_cmds_need_lc
=no
19552 hardcode_shlibpath_var
=no
19553 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
19554 hardcode_libdir_separator
=':'
19555 link_all_deplibs
=yes
19556 export_dynamic_flag_spec
='${wl}-Bexport'
19557 runpath_var
='LD_RUN_PATH'
19559 if test "$GCC" = yes; then
19560 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19569 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19570 hardcode_libdir_flag_spec
='-L$libdir'
19571 hardcode_shlibpath_var
=no
19579 if test x
$host_vendor = xsni
; then
19581 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
19582 export_dynamic_flag_spec
='${wl}-Blargedynsym'
19588 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
19589 echo "${ECHO_T}$ld_shlibs" >&6
19590 test "$ld_shlibs" = no
&& can_build_shared
=no
19592 with_gnu_ld
=$with_gnu_ld
19609 # Do we need to explicitly link libc?
19611 case "x$archive_cmds_need_lc" in
19613 # Assume -lc should be added
19614 archive_cmds_need_lc
=yes
19616 if test "$enable_shared" = yes && test "$GCC" = yes; then
19617 case $archive_cmds in
19619 # FIXME: we may have to deal with multi-command sequences.
19622 # Test whether the compiler implicitly links with -lc since on some
19623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19624 # to ld, don't add -lc before -lgcc.
19625 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19626 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19627 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19631 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634 (eval $ac_compile) 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } 2>conftest.err
; then
19640 libobjs
=conftest.
$ac_objext
19642 wl
=$lt_prog_compiler_wl
19643 pic_flag
=$lt_prog_compiler_pic
19649 lt_save_allow_undefined_flag
=$allow_undefined_flag
19650 allow_undefined_flag
=
19651 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
19652 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }
19657 lt_cv_archive_cmds_need_lc
=no
19659 lt_cv_archive_cmds_need_lc
=yes
19661 allow_undefined_flag
=$lt_save_allow_undefined_flag
19663 cat conftest.err
1>&5
19668 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
19669 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
19670 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
19833 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19834 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19836 if test "$GCC" = yes; then
19838 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
19839 *) lt_awk_arg
="/^libraries:/" ;;
19841 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19842 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
19843 # if the path contains ";" then we assume it to be the separator
19844 # otherwise default to the standard path separator (i.e. ":") - it is
19845 # assumed that no part of a normal pathname contains ";" but that should
19846 # okay in the real world where ";" in dirpaths is itself problematic.
19847 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
19849 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19851 # Ok, now we have the path, separated by spaces, we can step through it
19852 # and add multilib dir if necessary.
19853 lt_tmp_lt_search_path_spec
=
19854 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
19855 for lt_sys_path
in $lt_search_path_spec; do
19856 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
19857 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
19859 test -d "$lt_sys_path" && \
19860 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
19863 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
19864 BEGIN {RS=" "; FS="/|\n";} {
19867 for (lt_i = NF; lt_i > 0; lt_i--) {
19868 if ($lt_i != "" && $lt_i != ".") {
19869 if ($lt_i == "..") {
19872 if (lt_count == 0) {
19873 lt_foo="/" $lt_i lt_foo;
19880 if (lt_foo != "") { lt_freq[lt_foo]++; }
19881 if (lt_freq[lt_foo] == 1) { print lt_foo; }
19883 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
19885 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
19887 library_names_spec
=
19888 libname_spec
='lib$name'
19892 postuninstall_cmds
=
19896 shlibpath_overrides_runpath
=unknown
19898 dynamic_linker
="$host_os ld.so"
19899 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19900 need_lib_prefix
=unknown
19901 hardcode_into_libs
=no
19903 # when you set need_version to no, make sure it does not cause -set_version
19904 # flags to be left without arguments
19905 need_version
=unknown
19910 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19911 shlibpath_var
=LIBPATH
19913 # AIX 3 has no versioning support, so we append a major version to the name.
19914 soname_spec
='${libname}${release}${shared_ext}$major'
19921 hardcode_into_libs
=yes
19922 if test "$host_cpu" = ia64
; then
19923 # AIX 5 supports IA64
19924 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19925 shlibpath_var
=LD_LIBRARY_PATH
19927 # With GCC up to 2.95.x, collect2 would create an import file
19928 # for dependence libraries. The import file would start with
19929 # the line `#! .'. This would cause the generated library to
19930 # depend on `.', always an invalid library. This was fixed in
19931 # development snapshots of GCC prior to 3.0.
19933 aix4 | aix4.
[01] | aix4.
[01].
*)
19934 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19936 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19939 can_build_shared
=no
19943 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19944 # soname into executable. Probably we can add versioning support to
19945 # collect2, so additional links can be useful in future.
19946 if test "$aix_use_runtimelinking" = yes; then
19947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19948 # instead of lib<name>.a to let people know that these are not
19949 # typical AIX shared libraries.
19950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19952 # We preserve .a as extension for shared libraries through AIX4.2
19953 # and later when we are not doing run time linking.
19954 library_names_spec
='${libname}${release}.a $libname.a'
19955 soname_spec
='${libname}${release}${shared_ext}$major'
19957 shlibpath_var
=LIBPATH
19964 # Since July 2007 AmigaOS4 officially supports .so libraries.
19965 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19969 library_names_spec
='$libname.ixlibrary $libname.a'
19970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19971 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'
19977 library_names_spec
='${libname}${shared_ext}'
19978 dynamic_linker
="$host_os ld.so"
19979 shlibpath_var
=LIBRARY_PATH
19985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19986 soname_spec
='${libname}${release}${shared_ext}$major'
19987 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19988 shlibpath_var
=LD_LIBRARY_PATH
19989 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19990 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19991 # the default ld.so.conf also contains /usr/contrib/lib and
19992 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19993 # libtool to hard-code these into programs
19996 cygwin
* | mingw
* | pw32
* | cegcc
*)
19997 version_type
=windows
20002 case $GCC,$host_os in
20003 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20004 library_names_spec
='$libname.dll.a'
20005 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20006 postinstall_cmds
='base_file=`basename \${file}`~
20007 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20008 dldir=$destdir/`dirname \$dlpath`~
20009 test -d \$dldir || mkdir -p \$dldir~
20010 $install_prog $dir/$dlname \$dldir/$dlname~
20011 chmod a+x \$dldir/$dlname~
20012 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20013 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20015 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20016 dlpath=$dir/\$dldll~
20018 shlibpath_overrides_runpath
=yes
20022 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20023 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20024 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20027 # MinGW DLLs use traditional 'lib' prefix
20028 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20029 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20030 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
20031 # It is most probably a Windows format PATH printed by
20032 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20033 # path with ; separators, and with drive letters. We can handle the
20034 # drive letters (cygwin fileutils understands them), so leave them,
20035 # especially as we might pass files found there to a mingw objdump,
20036 # which wouldn't understand a cygwinified path. Ahh.
20037 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20039 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20043 # pw32 DLLs use 'pw' prefix rather than 'lib'
20044 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20050 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20053 dynamic_linker
='Win32 ld.exe'
20054 # FIXME: first we should search . and the directory the executable is in
20058 darwin
* | rhapsody
*)
20059 dynamic_linker
="$host_os dyld"
20060 version_type
=darwin
20063 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20064 soname_spec
='${libname}${release}${major}$shared_ext'
20065 shlibpath_overrides_runpath
=yes
20066 shlibpath_var
=DYLD_LIBRARY_PATH
20067 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20069 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
20070 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20078 soname_spec
='${libname}${release}${shared_ext}$major'
20079 shlibpath_var
=LD_LIBRARY_PATH
20086 freebsd
* | dragonfly
*)
20087 # DragonFly does not have aout. When/if they implement a new
20088 # versioning mechanism, adjust this.
20089 if test -x /usr
/bin
/objformat
; then
20090 objformat
=`/usr/bin/objformat`
20093 freebsd
[123]*) objformat
=aout
;;
20094 *) objformat
=elf
;;
20097 version_type
=freebsd-
$objformat
20098 case $version_type in
20100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20105 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20109 shlibpath_var
=LD_LIBRARY_PATH
20112 shlibpath_overrides_runpath
=yes
20114 freebsd3.
[01]* | freebsdelf3.
[01]*)
20115 shlibpath_overrides_runpath
=yes
20116 hardcode_into_libs
=yes
20118 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20119 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20120 shlibpath_overrides_runpath
=no
20121 hardcode_into_libs
=yes
20123 *) # from 4.6 on, and DragonFly
20124 shlibpath_overrides_runpath
=yes
20125 hardcode_into_libs
=yes
20134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20135 soname_spec
='${libname}${release}${shared_ext}$major'
20136 shlibpath_var
=LD_LIBRARY_PATH
20137 hardcode_into_libs
=yes
20140 hpux9
* | hpux10
* | hpux11
*)
20141 # Give a soname corresponding to the major version so that dld.sl refuses to
20142 # link against other versions.
20149 hardcode_into_libs
=yes
20150 dynamic_linker
="$host_os dld.so"
20151 shlibpath_var
=LD_LIBRARY_PATH
20152 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20154 soname_spec
='${libname}${release}${shared_ext}$major'
20155 if test "X$HPUX_IA64_MODE" = X32
; then
20156 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20158 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20160 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20164 hardcode_into_libs
=yes
20165 dynamic_linker
="$host_os dld.sl"
20166 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20167 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20169 soname_spec
='${libname}${release}${shared_ext}$major'
20170 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20171 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20175 dynamic_linker
="$host_os dld.sl"
20176 shlibpath_var
=SHLIB_PATH
20177 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20179 soname_spec
='${libname}${release}${shared_ext}$major'
20182 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20183 postinstall_cmds
='chmod 555 $lib'
20190 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20191 soname_spec
='${libname}${release}${shared_ext}$major'
20192 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20193 shlibpath_var
=LD_LIBRARY_PATH
20194 shlibpath_overrides_runpath
=no
20195 hardcode_into_libs
=yes
20198 irix5
* | irix6
* | nonstopux
*)
20200 nonstopux
*) version_type
=nonstopux
;;
20202 if test "$lt_cv_prog_gnu_ld" = yes; then
20210 soname_spec
='${libname}${release}${shared_ext}$major'
20211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20213 irix5
* | nonstopux
*)
20214 libsuff
= shlibsuff
=
20217 case $LD in # libtool.m4 will add one of these switches to LD
20218 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20219 libsuff
= shlibsuff
= libmagic
=32-bit;;
20220 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20221 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20222 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20223 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20224 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20228 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20229 shlibpath_overrides_runpath
=no
20230 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20231 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20232 hardcode_into_libs
=yes
20235 # No shared lib support for Linux oldld, aout, or coff.
20236 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20240 # This must be Linux ELF.
20241 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20246 soname_spec
='${libname}${release}${shared_ext}$major'
20247 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20248 shlibpath_var
=LD_LIBRARY_PATH
20249 shlibpath_overrides_runpath
=no
20251 # Some binutils ld are patched to set DT_RUNPATH
20252 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 lt_cv_shlibpath_overrides_runpath
=no
20256 save_LDFLAGS
=$LDFLAGS
20257 save_libdir
=$libdir
20258 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20259 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20260 cat >conftest.
$ac_ext <<_ACEOF
20263 cat confdefs.h
>>conftest.
$ac_ext
20264 cat >>conftest.
$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20275 rm -f conftest.
$ac_objext conftest
$ac_exeext
20276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20277 (eval $ac_link) 2>conftest.er1
20279 grep -v '^ *+' conftest.er1
>conftest.err
20281 cat conftest.err
>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } &&
20284 { ac_try
='test -z "$ac_c_werror_flag"
20285 || test ! -s conftest.err'
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try
='test -s conftest$ac_exeext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then
20298 lt_cv_shlibpath_overrides_runpath
=yes
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.
$ac_ext >&5
20306 rm -f conftest.err conftest.
$ac_objext \
20307 conftest
$ac_exeext conftest.
$ac_ext
20308 LDFLAGS
=$save_LDFLAGS
20309 libdir
=$save_libdir
20313 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20315 # This implies no fast_install, which is unacceptable.
20316 # Some rework will be needed to allow for fast_install
20317 # before this can be enabled.
20318 hardcode_into_libs
=yes
20320 # Append ld.so.conf contents to the search path
20321 if test -f /etc
/ld.so.conf
; then
20322 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' ' '`
20323 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20326 # We used to test for /lib/ld.so.1 and disable shared libraries on
20327 # powerpc, because MkLinux only supported shared libraries with the
20328 # GNU dynamic linker. Since this was broken with cross compilers,
20329 # most powerpc-linux boxes support dynamic linking these days and
20330 # people can always --disable-shared, the test was removed, and we
20331 # assume the GNU/Linux dynamic linker is in use.
20332 dynamic_linker
='GNU/Linux ld.so'
20339 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20341 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20342 dynamic_linker
='NetBSD (a.out) ld.so'
20344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20345 soname_spec
='${libname}${release}${shared_ext}$major'
20346 dynamic_linker
='NetBSD ld.elf_so'
20348 shlibpath_var
=LD_LIBRARY_PATH
20349 shlibpath_overrides_runpath
=yes
20350 hardcode_into_libs
=yes
20355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 shlibpath_var
=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath
=yes
20364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20365 soname_spec
='${libname}${release}${shared_ext}$major'
20366 shlibpath_var
=LD_LIBRARY_PATH
20367 shlibpath_overrides_runpath
=no
20368 hardcode_into_libs
=yes
20369 dynamic_linker
='ldqnx.so'
20374 sys_lib_dlsearch_path_spec
="/usr/lib"
20376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20378 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20379 *) need_version
=no
;;
20381 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20382 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20383 shlibpath_var
=LD_LIBRARY_PATH
20384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20386 openbsd2.
[89] | openbsd2.
[89].
*)
20387 shlibpath_overrides_runpath
=no
20390 shlibpath_overrides_runpath
=yes
20394 shlibpath_overrides_runpath
=yes
20399 libname_spec
='$name'
20402 library_names_spec
='$libname${shared_ext} $libname.a'
20403 dynamic_linker
='OS/2 ld.exe'
20404 shlibpath_var
=LIBPATH
20407 osf3
* | osf4
* | osf5
*)
20411 soname_spec
='${libname}${release}${shared_ext}$major'
20412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 shlibpath_var
=LD_LIBRARY_PATH
20414 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20415 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20427 soname_spec
='${libname}${release}${shared_ext}$major'
20428 shlibpath_var
=LD_LIBRARY_PATH
20429 shlibpath_overrides_runpath
=yes
20430 hardcode_into_libs
=yes
20431 # ldd complains unless libraries are executable
20432 postinstall_cmds
='chmod +x $lib'
20437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20438 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20439 shlibpath_var
=LD_LIBRARY_PATH
20440 shlibpath_overrides_runpath
=yes
20441 if test "$with_gnu_ld" = yes; then
20449 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450 soname_spec
='${libname}${release}${shared_ext}$major'
20451 shlibpath_var
=LD_LIBRARY_PATH
20452 case $host_vendor in
20454 shlibpath_overrides_runpath
=no
20456 runpath_var
=LD_RUN_PATH
20464 shlibpath_overrides_runpath
=no
20465 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20471 if test -d /usr
/nec
;then
20473 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20474 soname_spec
='$libname${shared_ext}.$major'
20475 shlibpath_var
=LD_LIBRARY_PATH
20479 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20480 version_type
=freebsd-elf
20483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20484 soname_spec
='${libname}${release}${shared_ext}$major'
20485 shlibpath_var
=LD_LIBRARY_PATH
20486 shlibpath_overrides_runpath
=yes
20487 hardcode_into_libs
=yes
20488 if test "$with_gnu_ld" = yes; then
20489 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20491 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20494 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20498 sys_lib_dlsearch_path_spec
='/usr/lib'
20502 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20507 shlibpath_var
=LD_LIBRARY_PATH
20508 shlibpath_overrides_runpath
=no
20509 hardcode_into_libs
=yes
20514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20515 soname_spec
='${libname}${release}${shared_ext}$major'
20516 shlibpath_var
=LD_LIBRARY_PATH
20523 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20524 echo "${ECHO_T}$dynamic_linker" >&6
20525 test "$dynamic_linker" = no
&& can_build_shared
=no
20527 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20528 if test "$GCC" = yes; then
20529 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20532 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20533 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20535 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20536 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20625 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20626 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20628 if test -n "$hardcode_libdir_flag_spec" ||
20629 test -n "$runpath_var" ||
20630 test "X$hardcode_automatic" = "Xyes" ; then
20632 # We can hardcode non-existent directories.
20633 if test "$hardcode_direct" != no
&&
20634 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20635 # have to relink, otherwise we might link with an installed library
20636 # when we should be linking with a yet-to-be-installed one
20637 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
20638 test "$hardcode_minus_L" != no
; then
20639 # Linking always hardcodes the temporary library directory.
20640 hardcode_action
=relink
20642 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20643 hardcode_action
=immediate
20646 # We cannot hardcode anything, or else we can only hardcode existing
20648 hardcode_action
=unsupported
20650 echo "$as_me:$LINENO: result: $hardcode_action" >&5
20651 echo "${ECHO_T}$hardcode_action" >&6
20653 if test "$hardcode_action" = relink ||
20654 test "$inherit_rpath" = yes; then
20655 # Fast installation is not supported
20656 enable_fast_install
=no
20657 elif test "$shlibpath_overrides_runpath" = yes ||
20658 test "$enable_shared" = no
; then
20659 # Fast installation is not necessary
20660 enable_fast_install
=needless
20668 if test "x$enable_dlopen" != xyes
; then
20669 enable_dlopen
=unknown
20670 enable_dlopen_self
=unknown
20671 enable_dlopen_self_static
=unknown
20678 lt_cv_dlopen
="load_add_on"
20680 lt_cv_dlopen_self
=yes
20683 mingw
* | pw32
* | cegcc
*)
20684 lt_cv_dlopen
="LoadLibrary"
20689 lt_cv_dlopen
="dlopen"
20694 # if libdl is installed we need to link against it
20695 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20696 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20697 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 ac_check_lib_save_LIBS
=$LIBS
20702 cat >conftest.
$ac_ext <<_ACEOF
20705 cat confdefs.h
>>conftest.
$ac_ext
20706 cat >>conftest.
$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20709 /* Override any gcc2 internal prototype to avoid an error. */
20713 /* We use char because int might match the return type of a gcc2
20714 builtin and then its argument prototype would still apply. */
20724 rm -f conftest.
$ac_objext conftest
$ac_exeext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20726 (eval $ac_link) 2>conftest.er1
20728 grep -v '^ *+' conftest.er1
>conftest.err
20730 cat conftest.err
>&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try
='test -z "$ac_c_werror_flag"
20734 || test ! -s conftest.err'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try
='test -s conftest$ac_exeext'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 ac_cv_lib_dl_dlopen
=yes
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.
$ac_ext >&5
20751 ac_cv_lib_dl_dlopen
=no
20753 rm -f conftest.err conftest.
$ac_objext \
20754 conftest
$ac_exeext conftest.
$ac_ext
20755 LIBS
=$ac_check_lib_save_LIBS
20757 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20758 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20759 if test $ac_cv_lib_dl_dlopen = yes; then
20760 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
20763 lt_cv_dlopen
="dyld"
20765 lt_cv_dlopen_self
=yes
20772 echo "$as_me:$LINENO: checking for shl_load" >&5
20773 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20774 if test "${ac_cv_func_shl_load+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20777 cat >conftest.
$ac_ext <<_ACEOF
20780 cat confdefs.h
>>conftest.
$ac_ext
20781 cat >>conftest.
$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20783 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20785 #define shl_load innocuous_shl_load
20787 /* System header to define __stub macros and hopefully few prototypes,
20788 which can conflict with char shl_load (); below.
20789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20790 <limits.h> exists even on freestanding compilers. */
20793 # include <limits.h>
20795 # include <assert.h>
20800 /* Override any gcc2 internal prototype to avoid an error. */
20805 /* We use char because int might match the return type of a gcc2
20806 builtin and then its argument prototype would still apply. */
20808 /* The GNU C library defines this for functions which it implements
20809 to always fail with ENOSYS. Some functions are actually named
20810 something starting with __ and the normal name is an alias. */
20811 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20814 char (*f) () = shl_load;
20823 return f != shl_load;
20828 rm -f conftest.
$ac_objext conftest
$ac_exeext
20829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20830 (eval $ac_link) 2>conftest.er1
20832 grep -v '^ *+' conftest.er1
>conftest.err
20834 cat conftest.err
>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
20837 { ac_try
='test -z "$ac_c_werror_flag"
20838 || test ! -s conftest.err'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; } &&
20844 { ac_try
='test -s conftest$ac_exeext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ac_cv_func_shl_load
=yes
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.
$ac_ext >&5
20855 ac_cv_func_shl_load
=no
20857 rm -f conftest.err conftest.
$ac_objext \
20858 conftest
$ac_exeext conftest.
$ac_ext
20860 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20861 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20862 if test $ac_cv_func_shl_load = yes; then
20863 lt_cv_dlopen
="shl_load"
20865 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20866 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20867 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20868 echo $ECHO_N "(cached) $ECHO_C" >&6
20870 ac_check_lib_save_LIBS
=$LIBS
20872 cat >conftest.
$ac_ext <<_ACEOF
20875 cat confdefs.h
>>conftest.
$ac_ext
20876 cat >>conftest.
$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20879 /* Override any gcc2 internal prototype to avoid an error. */
20883 /* We use char because int might match the return type of a gcc2
20884 builtin and then its argument prototype would still apply. */
20894 rm -f conftest.
$ac_objext conftest
$ac_exeext
20895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20896 (eval $ac_link) 2>conftest.er1
20898 grep -v '^ *+' conftest.er1
>conftest.err
20900 cat conftest.err
>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } &&
20903 { ac_try
='test -z "$ac_c_werror_flag"
20904 || test ! -s conftest.err'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; } &&
20910 { ac_try
='test -s conftest$ac_exeext'
20911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912 (eval $ac_try) 2>&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; }; then
20916 ac_cv_lib_dld_shl_load
=yes
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.
$ac_ext >&5
20921 ac_cv_lib_dld_shl_load
=no
20923 rm -f conftest.err conftest.
$ac_objext \
20924 conftest
$ac_exeext conftest.
$ac_ext
20925 LIBS
=$ac_check_lib_save_LIBS
20927 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20928 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20929 if test $ac_cv_lib_dld_shl_load = yes; then
20930 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
20932 echo "$as_me:$LINENO: checking for dlopen" >&5
20933 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20934 if test "${ac_cv_func_dlopen+set}" = set; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20937 cat >conftest.
$ac_ext <<_ACEOF
20940 cat confdefs.h
>>conftest.
$ac_ext
20941 cat >>conftest.
$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20945 #define dlopen innocuous_dlopen
20947 /* System header to define __stub macros and hopefully few prototypes,
20948 which can conflict with char dlopen (); below.
20949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20950 <limits.h> exists even on freestanding compilers. */
20953 # include <limits.h>
20955 # include <assert.h>
20960 /* Override any gcc2 internal prototype to avoid an error. */
20965 /* We use char because int might match the return type of a gcc2
20966 builtin and then its argument prototype would still apply. */
20968 /* The GNU C library defines this for functions which it implements
20969 to always fail with ENOSYS. Some functions are actually named
20970 something starting with __ and the normal name is an alias. */
20971 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20974 char (*f) () = dlopen;
20983 return f != dlopen;
20988 rm -f conftest.
$ac_objext conftest
$ac_exeext
20989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20990 (eval $ac_link) 2>conftest.er1
20992 grep -v '^ *+' conftest.er1
>conftest.err
20994 cat conftest.err
>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } &&
20997 { ac_try
='test -z "$ac_c_werror_flag"
20998 || test ! -s conftest.err'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; } &&
21004 { ac_try
='test -s conftest$ac_exeext'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 ac_cv_func_dlopen
=yes
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.
$ac_ext >&5
21015 ac_cv_func_dlopen
=no
21017 rm -f conftest.err conftest.
$ac_objext \
21018 conftest
$ac_exeext conftest.
$ac_ext
21020 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21021 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21022 if test $ac_cv_func_dlopen = yes; then
21023 lt_cv_dlopen
="dlopen"
21025 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21026 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21027 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 ac_check_lib_save_LIBS
=$LIBS
21032 cat >conftest.
$ac_ext <<_ACEOF
21035 cat confdefs.h
>>conftest.
$ac_ext
21036 cat >>conftest.
$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21039 /* Override any gcc2 internal prototype to avoid an error. */
21043 /* We use char because int might match the return type of a gcc2
21044 builtin and then its argument prototype would still apply. */
21054 rm -f conftest.
$ac_objext conftest
$ac_exeext
21055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21056 (eval $ac_link) 2>conftest.er1
21058 grep -v '^ *+' conftest.er1
>conftest.err
21060 cat conftest.err
>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } &&
21063 { ac_try
='test -z "$ac_c_werror_flag"
21064 || test ! -s conftest.err'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; } &&
21070 { ac_try
='test -s conftest$ac_exeext'
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; }; then
21076 ac_cv_lib_dl_dlopen
=yes
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.
$ac_ext >&5
21081 ac_cv_lib_dl_dlopen
=no
21083 rm -f conftest.err conftest.
$ac_objext \
21084 conftest
$ac_exeext conftest.
$ac_ext
21085 LIBS
=$ac_check_lib_save_LIBS
21087 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21088 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21089 if test $ac_cv_lib_dl_dlopen = yes; then
21090 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
21092 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21093 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21094 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 ac_check_lib_save_LIBS
=$LIBS
21098 LIBS
="-lsvld $LIBS"
21099 cat >conftest.
$ac_ext <<_ACEOF
21102 cat confdefs.h
>>conftest.
$ac_ext
21103 cat >>conftest.
$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21106 /* Override any gcc2 internal prototype to avoid an error. */
21110 /* We use char because int might match the return type of a gcc2
21111 builtin and then its argument prototype would still apply. */
21121 rm -f conftest.
$ac_objext conftest
$ac_exeext
21122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21123 (eval $ac_link) 2>conftest.er1
21125 grep -v '^ *+' conftest.er1
>conftest.err
21127 cat conftest.err
>&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } &&
21130 { ac_try
='test -z "$ac_c_werror_flag"
21131 || test ! -s conftest.err'
21132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133 (eval $ac_try) 2>&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); }; } &&
21137 { ac_try
='test -s conftest$ac_exeext'
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139 (eval $ac_try) 2>&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; }; then
21143 ac_cv_lib_svld_dlopen
=yes
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.
$ac_ext >&5
21148 ac_cv_lib_svld_dlopen
=no
21150 rm -f conftest.err conftest.
$ac_objext \
21151 conftest
$ac_exeext conftest.
$ac_ext
21152 LIBS
=$ac_check_lib_save_LIBS
21154 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21155 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21156 if test $ac_cv_lib_svld_dlopen = yes; then
21157 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
21159 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21160 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21161 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 ac_check_lib_save_LIBS
=$LIBS
21166 cat >conftest.
$ac_ext <<_ACEOF
21169 cat confdefs.h
>>conftest.
$ac_ext
21170 cat >>conftest.
$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21173 /* Override any gcc2 internal prototype to avoid an error. */
21177 /* We use char because int might match the return type of a gcc2
21178 builtin and then its argument prototype would still apply. */
21188 rm -f conftest.
$ac_objext conftest
$ac_exeext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21190 (eval $ac_link) 2>conftest.er1
21192 grep -v '^ *+' conftest.er1
>conftest.err
21194 cat conftest.err
>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
21197 { ac_try
='test -z "$ac_c_werror_flag"
21198 || test ! -s conftest.err'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; } &&
21204 { ac_try
='test -s conftest$ac_exeext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ac_cv_lib_dld_dld_link
=yes
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.
$ac_ext >&5
21215 ac_cv_lib_dld_dld_link
=no
21217 rm -f conftest.err conftest.
$ac_objext \
21218 conftest
$ac_exeext conftest.
$ac_ext
21219 LIBS
=$ac_check_lib_save_LIBS
21221 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21222 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21223 if test $ac_cv_lib_dld_dld_link = yes; then
21224 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
21245 if test "x$lt_cv_dlopen" != xno
; then
21251 case $lt_cv_dlopen in
21253 save_CPPFLAGS
="$CPPFLAGS"
21254 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
21256 save_LDFLAGS
="$LDFLAGS"
21257 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
21260 LIBS
="$lt_cv_dlopen_libs $LIBS"
21262 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21263 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21264 if test "${lt_cv_dlopen_self+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 if test "$cross_compiling" = yes; then :
21268 lt_cv_dlopen_self
=cross
21270 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21271 lt_status
=$lt_dlunknown
21272 cat > conftest.
$ac_ext <<_LT_EOF
21273 #line 21273 "configure"
21274 #include "confdefs.h"
21283 # define LT_DLGLOBAL RTLD_GLOBAL
21286 # define LT_DLGLOBAL DL_GLOBAL
21288 # define LT_DLGLOBAL 0
21292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21293 find out it does not work in some platform. */
21294 #ifndef LT_DLLAZY_OR_NOW
21296 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21299 # define LT_DLLAZY_OR_NOW DL_LAZY
21302 # define LT_DLLAZY_OR_NOW RTLD_NOW
21305 # define LT_DLLAZY_OR_NOW DL_NOW
21307 # define LT_DLLAZY_OR_NOW 0
21314 void fnord() { int i=42;}
21317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21318 int status = $lt_dlunknown;
21322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21324 /* dlclose (self); */
21332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21333 (eval $ac_link) 2>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21337 (.
/conftest
; exit; ) >&5 2>/dev
/null
21339 case x
$lt_status in
21340 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
21341 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
21342 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
21345 # compilation failed
21346 lt_cv_dlopen_self
=no
21353 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21354 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21356 if test "x$lt_cv_dlopen_self" = xyes
; then
21357 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
21358 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21359 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21360 if test "${lt_cv_dlopen_self_static+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21363 if test "$cross_compiling" = yes; then :
21364 lt_cv_dlopen_self_static
=cross
21366 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21367 lt_status
=$lt_dlunknown
21368 cat > conftest.
$ac_ext <<_LT_EOF
21369 #line 21369 "configure"
21370 #include "confdefs.h"
21379 # define LT_DLGLOBAL RTLD_GLOBAL
21382 # define LT_DLGLOBAL DL_GLOBAL
21384 # define LT_DLGLOBAL 0
21388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21389 find out it does not work in some platform. */
21390 #ifndef LT_DLLAZY_OR_NOW
21392 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21395 # define LT_DLLAZY_OR_NOW DL_LAZY
21398 # define LT_DLLAZY_OR_NOW RTLD_NOW
21401 # define LT_DLLAZY_OR_NOW DL_NOW
21403 # define LT_DLLAZY_OR_NOW 0
21410 void fnord() { int i=42;}
21413 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21414 int status = $lt_dlunknown;
21418 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21419 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21420 /* dlclose (self); */
21428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429 (eval $ac_link) 2>&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21433 (.
/conftest
; exit; ) >&5 2>/dev
/null
21435 case x
$lt_status in
21436 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
21437 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
21438 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
21441 # compilation failed
21442 lt_cv_dlopen_self_static
=no
21449 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21450 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21453 CPPFLAGS
="$save_CPPFLAGS"
21454 LDFLAGS
="$save_LDFLAGS"
21459 case $lt_cv_dlopen_self in
21460 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
21461 *) enable_dlopen_self
=unknown
;;
21464 case $lt_cv_dlopen_self_static in
21465 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
21466 *) enable_dlopen_self_static
=unknown
;;
21488 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21489 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21490 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
21491 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
21492 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
21493 echo "$as_me:$LINENO: result: yes" >&5
21494 echo "${ECHO_T}yes" >&6
21496 # FIXME - insert some real tests, host_os isn't really good enough
21499 if test -n "$STRIP" ; then
21500 striplib
="$STRIP -x"
21501 old_striplib
="$STRIP -S"
21502 echo "$as_me:$LINENO: result: yes" >&5
21503 echo "${ECHO_T}yes" >&6
21505 echo "$as_me:$LINENO: result: no" >&5
21506 echo "${ECHO_T}no" >&6
21510 echo "$as_me:$LINENO: result: no" >&5
21511 echo "${ECHO_T}no" >&6
21527 # Report which library types will actually be built
21528 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21529 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
21530 echo "$as_me:$LINENO: result: $can_build_shared" >&5
21531 echo "${ECHO_T}$can_build_shared" >&6
21533 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21534 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
21535 test "$can_build_shared" = "no" && enable_shared
=no
21537 # On AIX, shared libraries and static libraries use the same namespace, and
21538 # are all built from PIC.
21541 test "$enable_shared" = yes && enable_static
=no
21542 if test -n "$RANLIB"; then
21543 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21544 postinstall_cmds
='$RANLIB $lib'
21549 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21550 test "$enable_shared" = yes && enable_static
=no
21554 echo "$as_me:$LINENO: result: $enable_shared" >&5
21555 echo "${ECHO_T}$enable_shared" >&6
21557 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21558 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
21559 # Make sure either enable_shared or enable_static is yes.
21560 test "$enable_shared" = yes || enable_static
=yes
21561 echo "$as_me:$LINENO: result: $enable_static" >&5
21562 echo "${ECHO_T}$enable_static" >&6
21569 ac_cpp
='$CPP $CPPFLAGS'
21570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21578 ac_cpp
='$CXXCPP $CPPFLAGS'
21579 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21580 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21581 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21583 archive_cmds_need_lc_CXX
=no
21584 allow_undefined_flag_CXX
=
21585 always_export_symbols_CXX
=no
21586 archive_expsym_cmds_CXX
=
21587 compiler_needs_object_CXX
=no
21588 export_dynamic_flag_spec_CXX
=
21589 hardcode_direct_CXX
=no
21590 hardcode_direct_absolute_CXX
=no
21591 hardcode_libdir_flag_spec_CXX
=
21592 hardcode_libdir_flag_spec_ld_CXX
=
21593 hardcode_libdir_separator_CXX
=
21594 hardcode_minus_L_CXX
=no
21595 hardcode_shlibpath_var_CXX
=unsupported
21596 hardcode_automatic_CXX
=no
21597 inherit_rpath_CXX
=no
21599 module_expsym_cmds_CXX
=
21600 link_all_deplibs_CXX
=unknown
21601 old_archive_cmds_CXX
=$old_archive_cmds
21602 no_undefined_flag_CXX
=
21603 whole_archive_flag_spec_CXX
=
21604 enable_shared_with_static_runtimes_CXX
=no
21606 # Source file extension for C++ test sources.
21609 # Object file extension for compiled C++ test sources.
21613 # No sense in running all these tests if we already determined that
21614 # the CXX compiler isn't working. Some variables (like enable_shared)
21615 # are currently assumed to apply to all compilers on this platform,
21616 # and will be corrupted by setting them based on a non-working compiler.
21617 if test "$_lt_caught_CXX_error" != yes; then
21618 # Code to be used in simple compile tests
21619 lt_simple_compile_test_code
="int some_variable = 0;"
21621 # Code to be used in simple link tests
21622 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
21624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21631 # If no C compiler was specified, use CC.
21634 # If no C compiler flags were specified, use CFLAGS.
21635 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21637 # Allow CC to be a program name with arguments.
21641 # save warnings/boilerplate of simple test code
21642 ac_outfile
=conftest.
$ac_objext
21643 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
21644 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21645 _lt_compiler_boilerplate
=`cat conftest.err`
21648 ac_outfile
=conftest.
$ac_objext
21649 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
21650 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21651 _lt_linker_boilerplate
=`cat conftest.err`
21655 # Allow CC to be a program name with arguments.
21660 lt_save_with_gnu_ld
=$with_gnu_ld
21661 lt_save_path_LD
=$lt_cv_path_LD
21662 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21663 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
21665 $as_unset lt_cv_prog_gnu_ld
21667 if test -n "${lt_cv_path_LDCXX+set}"; then
21668 lt_cv_path_LD
=$lt_cv_path_LDCXX
21670 $as_unset lt_cv_path_LD
21672 test -z "${LDCXX+set}" || LD
=$LDCXX
21676 for cc_temp
in $compiler""; do
21678 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21679 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21684 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21687 if test -n "$compiler"; then
21688 # We don't want -fno-exception when compiling C++ code, so set the
21689 # no_builtin_flag separately
21690 if test "$GXX" = yes; then
21691 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
21693 lt_prog_compiler_no_builtin_flag_CXX
=
21696 if test "$GXX" = yes; then
21697 # Set up default GNU C++ configuration
21701 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21702 if test "${with_gnu_ld+set}" = set; then
21703 withval
="$with_gnu_ld"
21704 test "$withval" = no || with_gnu_ld
=yes
21709 if test "$GCC" = yes; then
21710 # Check if gcc -print-prog-name=ld gives a path.
21711 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
21712 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
21715 # gcc leaves a trailing carriage return which upsets mingw
21716 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21718 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
21721 # Accept absolute paths.
21723 re_direlt
='/[^/][^/]*/\.\./'
21724 # Canonicalize the pathname of ld
21725 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
21726 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
21727 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
21729 test -z "$LD" && LD
="$ac_prog"
21732 # If it fails, then pretend we aren't using GCC.
21736 # If it is relative, then search for the first ld in PATH.
21737 with_gnu_ld
=unknown
21740 elif test "$with_gnu_ld" = yes; then
21741 echo "$as_me:$LINENO: checking for GNU ld" >&5
21742 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21744 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21745 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21747 if test "${lt_cv_path_LD+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 if test -z "$LD"; then
21751 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
21752 for ac_dir
in $PATH; do
21754 test -z "$ac_dir" && ac_dir
=.
21755 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
21756 lt_cv_path_LD
="$ac_dir/$ac_prog"
21757 # Check to see if the program is GNU ld. I'd rather use --version,
21758 # but apparently some variants of GNU ld only accept -v.
21759 # Break only if it was the GNU/non-GNU ld that we prefer.
21760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
21761 *GNU
* |
*'with BFD'*)
21762 test "$with_gnu_ld" != no
&& break
21765 test "$with_gnu_ld" != yes && break
21772 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
21776 LD
="$lt_cv_path_LD"
21777 if test -n "$LD"; then
21778 echo "$as_me:$LINENO: result: $LD" >&5
21779 echo "${ECHO_T}$LD" >&6
21781 echo "$as_me:$LINENO: result: no" >&5
21782 echo "${ECHO_T}no" >&6
21784 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21785 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21786 { (exit 1); exit 1; }; }
21787 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21788 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21789 if test "${lt_cv_prog_gnu_ld+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
21793 case `$LD -v 2>&1 </dev/null` in
21794 *GNU
* |
*'with BFD'*)
21795 lt_cv_prog_gnu_ld
=yes
21798 lt_cv_prog_gnu_ld
=no
21802 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
21803 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
21804 with_gnu_ld
=$lt_cv_prog_gnu_ld
21812 # Check if GNU C++ uses GNU ld as the underlying linker, since the
21813 # archiving commands below assume that GNU ld is being used.
21814 if test "$with_gnu_ld" = yes; then
21815 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21816 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'
21818 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21819 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21821 # If archive_cmds runs LD, not CC, wlarc should be empty
21822 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
21823 # investigate it a little bit more. (MM)
21826 # ancient GNU ld didn't support --whole-archive et. al.
21827 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
21828 $GREP 'no-whole-archive' > /dev
/null
; then
21829 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21831 whole_archive_flag_spec_CXX
=
21837 # A generic and very simple default shared library creation
21838 # command for GNU C++ for the case where it uses the native
21839 # linker, instead of GNU ld. If possible, this setting should
21840 # overridden to take advantage of the native linker features on
21841 # the platform it is being used on.
21842 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21845 # Commands to make compiler produce verbose output that lists
21846 # what "hidden" libraries, object files and flags are used when
21847 # linking a shared library.
21848 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
21856 # PORTME: fill in a description of your system's C++ link characteristics
21857 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21862 # FIXME: insert proper C++ library support
21866 if test "$host_cpu" = ia64
; then
21867 # On IA64, the linker does run time linking by default, so we don't
21868 # have to do anything special.
21869 aix_use_runtimelinking
=no
21870 exp_sym_flag
='-Bexport'
21873 aix_use_runtimelinking
=no
21875 # Test if we are trying to use run time linking or normal
21876 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21877 # need to do runtime linking.
21878 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
21879 for ld_flag
in $LDFLAGS; do
21882 aix_use_runtimelinking
=yes
21890 exp_sym_flag
='-bexport'
21891 no_entry_flag
='-bnoentry'
21894 # When large executables or shared objects are built, AIX ld can
21895 # have problems creating the table of contents. If linking a library
21896 # or program results in "error TOC overflow" add -mminimal-toc to
21897 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21898 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21900 archive_cmds_CXX
=''
21901 hardcode_direct_CXX
=yes
21902 hardcode_direct_absolute_CXX
=yes
21903 hardcode_libdir_separator_CXX
=':'
21904 link_all_deplibs_CXX
=yes
21905 file_list_spec_CXX
='${wl}-f,'
21907 if test "$GXX" = yes; then
21908 case $host_os in aix4.
[012]|aix4.
[012].
*)
21909 # We only want to do this on AIX 4.2 and lower, the check
21910 # below for broken collect2 doesn't work under 4.3+
21911 collect2name
=`${CC} -print-prog-name=collect2`
21912 if test -f "$collect2name" &&
21913 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
21915 # We have reworked collect2
21918 # We have old collect2
21919 hardcode_direct_CXX
=unsupported
21920 # It fails to find uninstalled libraries when the uninstalled
21921 # path is not listed in the libpath. Setting hardcode_minus_L
21922 # to unsupported forces relinking
21923 hardcode_minus_L_CXX
=yes
21924 hardcode_libdir_flag_spec_CXX
='-L$libdir'
21925 hardcode_libdir_separator_CXX
=
21928 shared_flag
='-shared'
21929 if test "$aix_use_runtimelinking" = yes; then
21930 shared_flag
="$shared_flag "'${wl}-G'
21934 if test "$host_cpu" = ia64
; then
21935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21936 # chokes on -Wl,-G. The following line is correct:
21939 if test "$aix_use_runtimelinking" = yes; then
21940 shared_flag
='${wl}-G'
21942 shared_flag
='${wl}-bM:SRE'
21947 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
21948 # It seems that -bexpall does not export symbols beginning with
21949 # underscore (_), so it is better to generate a list of symbols to
21951 always_export_symbols_CXX
=yes
21952 if test "$aix_use_runtimelinking" = yes; then
21953 # Warning - without using the other runtime loading flags (-brtl),
21954 # -berok will link without error, but may produce a broken library.
21955 allow_undefined_flag_CXX
='-berok'
21956 # Determine the default libpath from the value encoded in an empty
21958 cat >conftest.
$ac_ext <<_ACEOF
21961 cat confdefs.h
>>conftest.
$ac_ext
21962 cat >>conftest.
$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21973 rm -f conftest.
$ac_objext conftest
$ac_exeext
21974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21975 (eval $ac_link) 2>conftest.er1
21977 grep -v '^ *+' conftest.er1
>conftest.err
21979 cat conftest.err
>&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } &&
21982 { ac_try
='test -z "$ac_cxx_werror_flag"
21983 || test ! -s conftest.err'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; } &&
21989 { ac_try
='test -s conftest$ac_exeext'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21996 lt_aix_libpath_sed
='
21997 /Import File Strings/,/^$/ {
22003 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22004 # Check for a 64-bit object if we didn't find anything.
22005 if test -z "$aix_libpath"; then
22006 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22009 echo "$as_me: failed program was:" >&5
22010 sed 's/^/| /' conftest.
$ac_ext >&5
22013 rm -f conftest.err conftest.
$ac_objext \
22014 conftest
$ac_exeext conftest.
$ac_ext
22015 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22017 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
22019 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"
22021 if test "$host_cpu" = ia64
; then
22022 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
22023 allow_undefined_flag_CXX
="-z nodefs"
22024 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"
22026 # Determine the default libpath from the value encoded in an
22027 # empty executable.
22028 cat >conftest.
$ac_ext <<_ACEOF
22031 cat confdefs.h
>>conftest.
$ac_ext
22032 cat >>conftest.
$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22043 rm -f conftest.
$ac_objext conftest
$ac_exeext
22044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22045 (eval $ac_link) 2>conftest.er1
22047 grep -v '^ *+' conftest.er1
>conftest.err
22049 cat conftest.err
>&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } &&
22052 { ac_try
='test -z "$ac_cxx_werror_flag"
22053 || test ! -s conftest.err'
22054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22055 (eval $ac_try) 2>&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }; } &&
22059 { ac_try
='test -s conftest$ac_exeext'
22060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22061 (eval $ac_try) 2>&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; }; then
22066 lt_aix_libpath_sed
='
22067 /Import File Strings/,/^$/ {
22073 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22074 # Check for a 64-bit object if we didn't find anything.
22075 if test -z "$aix_libpath"; then
22076 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22079 echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.
$ac_ext >&5
22083 rm -f conftest.err conftest.
$ac_objext \
22084 conftest
$ac_exeext conftest.
$ac_ext
22085 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22087 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
22088 # Warning - without using the other run time loading flags,
22089 # -berok will link without error, but may produce a broken library.
22090 no_undefined_flag_CXX
=' ${wl}-bernotok'
22091 allow_undefined_flag_CXX
=' ${wl}-berok'
22092 # Exported symbols can be pulled into shared objects from archives
22093 whole_archive_flag_spec_CXX
='$convenience'
22094 archive_cmds_need_lc_CXX
=yes
22095 # This is similar to how AIX traditionally builds its shared
22097 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'
22103 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
22104 allow_undefined_flag_CXX
=unsupported
22105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22106 # support --undefined. This deserves some investigation. FIXME
22107 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22114 case $cc_basename in
22116 # FIXME: insert proper C++ library support
22122 cygwin
* | mingw
* | pw32
* | cegcc
*)
22123 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22124 # as there is no search path for DLLs.
22125 hardcode_libdir_flag_spec_CXX
='-L$libdir'
22126 allow_undefined_flag_CXX
=unsupported
22127 always_export_symbols_CXX
=no
22128 enable_shared_with_static_runtimes_CXX
=yes
22130 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
22131 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'
22132 # If the export-symbols file already is a .def file (1st line
22133 # is EXPORTS), use it as is; otherwise, prepend...
22134 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22135 cp $export_symbols $output_objdir/$soname.def;
22137 echo EXPORTS > $output_objdir/$soname.def;
22138 cat $export_symbols >> $output_objdir/$soname.def;
22140 $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'
22145 darwin
* | rhapsody
*)
22148 archive_cmds_need_lc_CXX
=no
22149 hardcode_direct_CXX
=no
22150 hardcode_automatic_CXX
=yes
22151 hardcode_shlibpath_var_CXX
=unsupported
22152 whole_archive_flag_spec_CXX
=''
22153 link_all_deplibs_CXX
=yes
22154 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
22155 case $cc_basename in
22156 ifort
*) _lt_dar_can_shared
=yes ;;
22157 *) _lt_dar_can_shared
=$GCC ;;
22159 if test "$_lt_dar_can_shared" = "yes"; then
22160 output_verbose_link_cmd
=echo
22161 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}"
22162 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22163 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}"
22164 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}"
22165 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22166 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}"
22167 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}"
22177 case $cc_basename in
22179 # FIXME: insert proper C++ library support
22183 # Green Hills C++ Compiler
22184 # FIXME: insert proper C++ library support
22188 # FIXME: insert proper C++ library support
22195 # C++ shared libraries reported to be fairly broken before
22201 archive_cmds_need_lc_CXX
=no
22204 freebsd
* | dragonfly
*)
22205 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22214 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
22215 hardcode_libdir_separator_CXX
=:
22216 export_dynamic_flag_spec_CXX
='${wl}-E'
22217 hardcode_direct_CXX
=yes
22218 hardcode_minus_L_CXX
=yes # Not in the search PATH,
22219 # but as the default
22220 # location of the library.
22222 case $cc_basename in
22224 # FIXME: insert proper C++ library support
22228 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'
22229 # Commands to make compiler produce verbose output that lists
22230 # what "hidden" libraries, object files and flags are used when
22231 # linking a shared library.
22233 # There doesn't appear to be a way to prevent this compiler from
22234 # explicitly linking system object files so we need to strip them
22235 # from the output so that they don't get included in the library
22237 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'
22240 if test "$GXX" = yes; then
22241 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'
22243 # FIXME: insert proper C++ library support
22251 if test $with_gnu_ld = no
; then
22252 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
22253 hardcode_libdir_separator_CXX
=:
22259 export_dynamic_flag_spec_CXX
='${wl}-E'
22265 hardcode_direct_CXX
=no
22266 hardcode_shlibpath_var_CXX
=no
22269 hardcode_direct_CXX
=yes
22270 hardcode_direct_absolute_CXX
=yes
22271 hardcode_minus_L_CXX
=yes # Not in the search PATH,
22272 # but as the default
22273 # location of the library.
22277 case $cc_basename in
22279 # FIXME: insert proper C++ library support
22285 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22288 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22291 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22294 # Commands to make compiler produce verbose output that lists
22295 # what "hidden" libraries, object files and flags are used when
22296 # linking a shared library.
22298 # There doesn't appear to be a way to prevent this compiler from
22299 # explicitly linking system object files so we need to strip them
22300 # from the output so that they don't get included in the library
22302 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'
22305 if test "$GXX" = yes; then
22306 if test $with_gnu_ld = no
; then
22309 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22312 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22315 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'
22320 # FIXME: insert proper C++ library support
22328 hardcode_direct_CXX
=no
22329 hardcode_shlibpath_var_CXX
=no
22330 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22331 export_dynamic_flag_spec_CXX
='${wl}-E'
22332 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22333 # Instead, shared libraries are loaded at an image base (0x10000000 by
22334 # default) and relocated if they conflict, which is a slow very memory
22335 # consuming and fragmenting process. To avoid this, we pick a random,
22336 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22337 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22338 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'
22339 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'
22342 case $cc_basename in
22345 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'
22347 # Archives containing C++ object files must be created using
22348 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22349 # necessary to make sure instantiated templates are included
22351 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
22354 if test "$GXX" = yes; then
22355 if test "$with_gnu_ld" = no
; then
22356 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'
22358 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'
22361 link_all_deplibs_CXX
=yes
22364 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22365 hardcode_libdir_separator_CXX
=:
22366 inherit_rpath_CXX
=yes
22369 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
22370 case $cc_basename in
22372 # Kuck and Associates, Inc. (KAI) C++ Compiler
22374 # KCC will only create a shared library if the output file
22375 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22376 # to its proper name (with version) after linking.
22377 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'
22378 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'
22379 # Commands to make compiler produce verbose output that lists
22380 # what "hidden" libraries, object files and flags are used when
22381 # linking a shared library.
22383 # There doesn't appear to be a way to prevent this compiler from
22384 # explicitly linking system object files so we need to strip them
22385 # from the output so that they don't get included in the library
22387 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'
22389 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22390 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22392 # Archives containing C++ object files must be created using
22393 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22394 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
22399 # version 8.0 and above of icpc choke on multiply defined symbols
22400 # if we add $predep_objects and $postdep_objects, however 7.1 and
22401 # earlier do not add the objects themselves.
22402 case `$CC -V 2>&1` in
22404 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22405 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'
22407 *) # Version 8.0 or newer
22410 ia64
*) tmp_idyn
=' -i_dynamic';;
22412 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22413 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'
22416 archive_cmds_need_lc_CXX
=no
22417 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22418 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22419 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22422 # Portland Group C++ compiler
22424 *pgCC\
[1-5]* |
*pgcpp\
[1-5]*)
22425 prelink_cmds_CXX
='tpldir=Template.dir~
22427 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22428 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
22429 old_archive_cmds_CXX
='tpldir=Template.dir~
22431 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22432 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
22434 archive_cmds_CXX
='tpldir=Template.dir~
22436 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22437 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22438 archive_expsym_cmds_CXX
='tpldir=Template.dir~
22440 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22441 $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'
22443 *) # Version 6 will use weak symbols
22444 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22445 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'
22449 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
22450 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22451 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'
22455 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22456 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'
22458 runpath_var
=LD_RUN_PATH
22459 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
22460 hardcode_libdir_separator_CXX
=:
22462 # Commands to make compiler produce verbose output that lists
22463 # what "hidden" libraries, object files and flags are used when
22464 # linking a shared library.
22466 # There doesn't appear to be a way to prevent this compiler from
22467 # explicitly linking system object files so we need to strip them
22468 # from the output so that they don't get included in the library
22470 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'
22473 # IBM XL 8.0 on PPC, with GNU ld
22474 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22475 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22476 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22477 if test "x$supports_anon_versioning" = xyes
; then
22478 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
22479 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22480 echo "local: *; };" >> $output_objdir/$libname.ver~
22481 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22485 case `$CC -V 2>&1 | sed 5q` in
22488 no_undefined_flag_CXX
=' -zdefs'
22489 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22490 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'
22491 hardcode_libdir_flag_spec_CXX
='-R$libdir'
22492 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'
22493 compiler_needs_object_CXX
=yes
22495 # Not sure whether something based on
22496 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22498 output_verbose_link_cmd
='echo'
22500 # Archives containing C++ object files must be created using
22501 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22502 # necessary to make sure instantiated templates are included
22504 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
22512 # FIXME: insert proper C++ library support
22517 # FIXME: insert proper C++ library support
22522 case $cc_basename in
22524 # FIXME: insert proper C++ library support
22528 # FIXME: insert proper C++ library support
22535 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22536 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22538 hardcode_libdir_flag_spec_CXX
='-R$libdir'
22539 hardcode_direct_CXX
=yes
22540 hardcode_shlibpath_var_CXX
=no
22542 # Workaround some broken pre-1.5 toolchains
22543 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22551 # C++ shared libraries are fairly broken
22556 if test -f /usr
/libexec
/ld.so
; then
22557 hardcode_direct_CXX
=yes
22558 hardcode_shlibpath_var_CXX
=no
22559 hardcode_direct_absolute_CXX
=yes
22560 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22561 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22563 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
22564 export_dynamic_flag_spec_CXX
='${wl}-E'
22565 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22567 output_verbose_link_cmd
=echo
22573 osf3
* | osf4
* | osf5
*)
22574 case $cc_basename in
22576 # Kuck and Associates, Inc. (KAI) C++ Compiler
22578 # KCC will only create a shared library if the output file
22579 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22580 # to its proper name (with version) after linking.
22581 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'
22583 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22584 hardcode_libdir_separator_CXX
=:
22586 # Archives containing C++ object files must be created using
22587 # the KAI C++ compiler.
22589 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
22590 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
22594 # Rational C++ 2.4.1
22595 # FIXME: insert proper C++ library support
22601 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
22602 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'
22603 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22606 allow_undefined_flag_CXX
=' -expect_unresolved \*'
22607 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'
22608 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22609 echo "-hidden">> $lib.exp~
22610 $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~
22612 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
22616 hardcode_libdir_separator_CXX
=:
22618 # Commands to make compiler produce verbose output that lists
22619 # what "hidden" libraries, object files and flags are used when
22620 # linking a shared library.
22622 # There doesn't appear to be a way to prevent this compiler from
22623 # explicitly linking system object files so we need to strip them
22624 # from the output so that they don't get included in the library
22626 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'
22629 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
22630 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
22633 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'
22636 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'
22640 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22641 hardcode_libdir_separator_CXX
=:
22643 # Commands to make compiler produce verbose output that lists
22644 # what "hidden" libraries, object files and flags are used when
22645 # linking a shared library.
22646 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22649 # FIXME: insert proper C++ library support
22657 # FIXME: insert proper C++ library support
22662 case $cc_basename in
22665 # FIXME: insert proper C++ library support
22670 # FIXME: insert proper C++ library support
22674 # FIXME: insert proper C++ library support
22681 case $cc_basename in
22683 # Sun C++ 4.2, 5.x and Centerline C++
22684 archive_cmds_need_lc_CXX
=yes
22685 no_undefined_flag_CXX
=' -zdefs'
22686 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22687 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22688 $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'
22690 hardcode_libdir_flag_spec_CXX
='-R$libdir'
22691 hardcode_shlibpath_var_CXX
=no
22693 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22695 # The compiler driver will combine and reorder linker options,
22696 # but understands `-z linker_flag'.
22697 # Supported since Solaris 2.6 (maybe 2.5.1?)
22698 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
22701 link_all_deplibs_CXX
=yes
22703 output_verbose_link_cmd
='echo'
22705 # Archives containing C++ object files must be created using
22706 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22707 # necessary to make sure instantiated templates are included
22709 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
22712 # Green Hills C++ Compiler
22713 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22715 # The C++ compiler must be used to create the archive.
22716 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
22719 # GNU C++ compiler with Solaris linker
22720 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
22721 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
22722 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
22723 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22724 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22725 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22727 # Commands to make compiler produce verbose output that lists
22728 # what "hidden" libraries, object files and flags are used when
22729 # linking a shared library.
22730 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22732 # g++ 2.7 appears to require `-G' NOT `-shared' on this
22734 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22735 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22736 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22738 # Commands to make compiler produce verbose output that lists
22739 # what "hidden" libraries, object files and flags are used when
22740 # linking a shared library.
22741 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22744 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
22746 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22748 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22756 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
22757 no_undefined_flag_CXX
='${wl}-z,text'
22758 archive_cmds_need_lc_CXX
=no
22759 hardcode_shlibpath_var_CXX
=no
22760 runpath_var
='LD_RUN_PATH'
22762 case $cc_basename in
22764 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22765 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22768 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22769 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22774 sysv5
* | sco3.2v5
* | sco5v6
*)
22775 # Note: We can NOT use -z defs as we might desire, because we do not
22776 # link with -lc, and that would cause any symbols used from libc to
22777 # always be unresolved, which means just about no library would
22778 # ever link correctly. If we're not using GNU ld we use -z text
22779 # though, which does catch some bad symbols but isn't as heavy-handed
22781 no_undefined_flag_CXX
='${wl}-z,text'
22782 allow_undefined_flag_CXX
='${wl}-z,nodefs'
22783 archive_cmds_need_lc_CXX
=no
22784 hardcode_shlibpath_var_CXX
=no
22785 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
22786 hardcode_libdir_separator_CXX
=':'
22787 link_all_deplibs_CXX
=yes
22788 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
22789 runpath_var
='LD_RUN_PATH'
22791 case $cc_basename in
22793 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22794 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22797 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22798 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22804 case $cc_basename in
22806 # NonStop-UX NCC 3.20
22807 # FIXME: insert proper C++ library support
22811 # FIXME: insert proper C++ library support
22818 # FIXME: insert proper C++ library support
22823 # FIXME: insert proper C++ library support
22828 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
22829 echo "${ECHO_T}$ld_shlibs_CXX" >&6
22830 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22836 ## There is no encapsulation within the following macros, do not change
22837 ## the running order or otherwise move them around unless you know exactly
22838 ## what you are doing...
22839 # Dependencies to place before and after the object being linked:
22840 predep_objects_CXX
=
22841 postdep_objects_CXX
=
22844 compiler_lib_search_path_CXX
=
22846 cat > conftest.
$ac_ext <<_LT_EOF
22850 Foo (void) { a = 0; }
22856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22857 (eval $ac_compile) 2>&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }; then
22861 # Parse the compiler output and extract the necessary
22862 # objects, libraries and library flags.
22864 # Sentinel used to keep track of whether or not we are before
22865 # the conftest object file.
22866 pre_test_object_deps_done
=no
22868 for p
in `eval "$output_verbose_link_cmd"`; do
22872 # Some compilers place space between "-{L,R}" and the path.
22873 # Remove the space.
22874 if test $p = "-L" ||
22875 test $p = "-R"; then
22882 if test "$pre_test_object_deps_done" = no
; then
22885 # Internal compiler library paths should come after those
22886 # provided the user. The postdeps already come after the
22887 # user supplied libs so there is no need to process them.
22888 if test -z "$compiler_lib_search_path_CXX"; then
22889 compiler_lib_search_path_CXX
="${prev}${p}"
22891 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
22894 # The "-l" case would never come before the object being
22895 # linked, so don't bother handling this case.
22898 if test -z "$postdeps_CXX"; then
22899 postdeps_CXX
="${prev}${p}"
22901 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
22907 # This assumes that the test object file only shows up
22908 # once in the compiler output.
22909 if test "$p" = "conftest.$objext"; then
22910 pre_test_object_deps_done
=yes
22914 if test "$pre_test_object_deps_done" = no
; then
22915 if test -z "$predep_objects_CXX"; then
22916 predep_objects_CXX
="$p"
22918 predep_objects_CXX
="$predep_objects_CXX $p"
22921 if test -z "$postdep_objects_CXX"; then
22922 postdep_objects_CXX
="$p"
22924 postdep_objects_CXX
="$postdep_objects_CXX $p"
22929 *) ;; # Ignore the rest.
22937 echo "libtool.m4: error: problem compiling CXX test program"
22940 $RM -f confest.
$objext
22942 # PORTME: override above test on systems where it is broken
22945 # Interix 3.5 installs completely hosed .la files for C++, so rather than
22946 # hack all around it, let's just trust "g++" to DTRT.
22947 predep_objects_CXX
=
22948 postdep_objects_CXX
=
22953 case `$CC -V 2>&1 | sed 5q` in
22957 # The more standards-conforming stlport4 library is
22958 # incompatible with the Cstd library. Avoid specifying
22959 # it if it's in CXXFLAGS. Ignore libCrun as
22960 # -library=stlport4 depends on it.
22961 case " $CXX $CXXFLAGS " in
22962 *" -library=stlport4 "*)
22963 solaris_use_stlport4
=yes
22967 if test "$solaris_use_stlport4" != yes; then
22968 postdeps_CXX
='-library=Cstd -library=Crun'
22975 case $cc_basename in
22977 # The more standards-conforming stlport4 library is
22978 # incompatible with the Cstd library. Avoid specifying
22979 # it if it's in CXXFLAGS. Ignore libCrun as
22980 # -library=stlport4 depends on it.
22981 case " $CXX $CXXFLAGS " in
22982 *" -library=stlport4 "*)
22983 solaris_use_stlport4
=yes
22987 # Adding this requires a known-good setup of shared libraries for
22988 # Sun compiler versions before 5.6, else PIC objects from an old
22989 # archive will be linked into the output, leading to subtle bugs.
22990 if test "$solaris_use_stlport4" != yes; then
22991 postdeps_CXX
='-library=Cstd -library=Crun'
22999 case " $postdeps_CXX " in
23000 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
23002 compiler_lib_search_dirs_CXX
=
23003 if test -n "${compiler_lib_search_path_CXX}"; then
23004 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23037 lt_prog_compiler_wl_CXX
=
23038 lt_prog_compiler_pic_CXX
=
23039 lt_prog_compiler_static_CXX
=
23041 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23042 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23044 # C++ specific cases for pic, static, wl, etc.
23045 if test "$GXX" = yes; then
23046 lt_prog_compiler_wl_CXX
='-Wl,'
23047 lt_prog_compiler_static_CXX
='-static'
23051 # All AIX code is PIC.
23052 if test "$host_cpu" = ia64
; then
23053 # AIX 5 now supports IA64 processor
23054 lt_prog_compiler_static_CXX
='-Bstatic'
23061 # see comment about AmigaOS4 .so support
23062 lt_prog_compiler_pic_CXX
='-fPIC'
23065 # FIXME: we need at least 68020 code to build shared libraries, but
23066 # adding the `-m68020' flag to GCC prevents building anything better,
23068 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
23073 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
23074 # PIC is the default for these OSes.
23076 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
23077 # This hack is so that the source file can tell whether it is being
23078 # built for inclusion in a dll (and should export symbols for example).
23079 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23080 # (--disable-auto-import) libraries
23081 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
23083 darwin
* | rhapsody
*)
23084 # PIC is the default on this platform
23085 # Common symbols not allowed in MH_DYLIB files
23086 lt_prog_compiler_pic_CXX
='-fno-common'
23089 # DJGPP does not support shared libraries at all
23090 lt_prog_compiler_pic_CXX
=
23093 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23094 # Instead, we relocate shared libraries at runtime.
23097 if test -d /usr
/nec
; then
23098 lt_prog_compiler_pic_CXX
=-Kconform_pic
23102 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23103 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23104 # sets the default TLS model and affects inlining.
23109 lt_prog_compiler_pic_CXX
='-fPIC'
23114 # QNX uses GNU C++, but need to define -shared option too, otherwise
23115 # it will coredump.
23116 lt_prog_compiler_pic_CXX
='-fPIC -shared'
23119 lt_prog_compiler_pic_CXX
='-fPIC'
23125 # All AIX code is PIC.
23126 if test "$host_cpu" = ia64
; then
23127 # AIX 5 now supports IA64 processor
23128 lt_prog_compiler_static_CXX
='-Bstatic'
23130 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
23134 case $cc_basename in
23136 # Green Hills C++ Compiler
23137 # _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"
23142 case $cc_basename in
23144 lt_prog_compiler_pic_CXX
='-KPIC'
23147 # Green Hills C++ Compiler
23148 lt_prog_compiler_pic_CXX
='-pic'
23154 freebsd
* | dragonfly
*)
23155 # FreeBSD uses GNU C++
23157 hpux9
* | hpux10
* | hpux11
*)
23158 case $cc_basename in
23160 lt_prog_compiler_wl_CXX
='-Wl,'
23161 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
23162 if test "$host_cpu" != ia64
; then
23163 lt_prog_compiler_pic_CXX
='+Z'
23167 lt_prog_compiler_wl_CXX
='-Wl,'
23168 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
23174 lt_prog_compiler_pic_CXX
='+Z'
23183 # This is c89, which is MS Visual C++ (no shared libs)
23184 # Anyone wants to do a port?
23186 irix5
* | irix6
* | nonstopux
*)
23187 case $cc_basename in
23189 lt_prog_compiler_wl_CXX
='-Wl,'
23190 lt_prog_compiler_static_CXX
='-non_shared'
23191 # CC pic flag -KPIC is the default.
23197 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
23198 case $cc_basename in
23201 lt_prog_compiler_wl_CXX
='--backend -Wl,'
23202 lt_prog_compiler_pic_CXX
='-fPIC'
23205 # old Intel C++ for x86_64 which still supported -KPIC.
23206 lt_prog_compiler_wl_CXX
='-Wl,'
23207 lt_prog_compiler_pic_CXX
='-KPIC'
23208 lt_prog_compiler_static_CXX
='-static'
23211 # Intel C++, used to be incompatible with GCC.
23212 # ICC 10 doesn't accept -KPIC any more.
23213 lt_prog_compiler_wl_CXX
='-Wl,'
23214 lt_prog_compiler_pic_CXX
='-fPIC'
23215 lt_prog_compiler_static_CXX
='-static'
23218 # Portland Group C++ compiler
23219 lt_prog_compiler_wl_CXX
='-Wl,'
23220 lt_prog_compiler_pic_CXX
='-fpic'
23221 lt_prog_compiler_static_CXX
='-Bstatic'
23225 # Make sure the PIC flag is empty. It appears that all Alpha
23226 # Linux and Compaq Tru64 Unix objects are PIC.
23227 lt_prog_compiler_pic_CXX
=
23228 lt_prog_compiler_static_CXX
='-non_shared'
23231 # IBM XL 8.0 on PPC
23232 lt_prog_compiler_wl_CXX
='-Wl,'
23233 lt_prog_compiler_pic_CXX
='-qpic'
23234 lt_prog_compiler_static_CXX
='-qstaticlink'
23237 case `$CC -V 2>&1 | sed 5q` in
23240 lt_prog_compiler_pic_CXX
='-KPIC'
23241 lt_prog_compiler_static_CXX
='-Bstatic'
23242 lt_prog_compiler_wl_CXX
='-Qoption ld '
23253 case $cc_basename in
23255 lt_prog_compiler_pic_CXX
='-W c,exportall'
23264 # QNX uses GNU C++, but need to define -shared option too, otherwise
23265 # it will coredump.
23266 lt_prog_compiler_pic_CXX
='-fPIC -shared'
23268 osf3
* | osf4
* | osf5
*)
23269 case $cc_basename in
23271 lt_prog_compiler_wl_CXX
='--backend -Wl,'
23274 # Rational C++ 2.4.1
23275 lt_prog_compiler_pic_CXX
='-pic'
23278 # Digital/Compaq C++
23279 lt_prog_compiler_wl_CXX
='-Wl,'
23280 # Make sure the PIC flag is empty. It appears that all Alpha
23281 # Linux and Compaq Tru64 Unix objects are PIC.
23282 lt_prog_compiler_pic_CXX
=
23283 lt_prog_compiler_static_CXX
='-non_shared'
23292 case $cc_basename in
23294 # Sun C++ 4.2, 5.x and Centerline C++
23295 lt_prog_compiler_pic_CXX
='-KPIC'
23296 lt_prog_compiler_static_CXX
='-Bstatic'
23297 lt_prog_compiler_wl_CXX
='-Qoption ld '
23300 # Green Hills C++ Compiler
23301 lt_prog_compiler_pic_CXX
='-PIC'
23308 case $cc_basename in
23311 lt_prog_compiler_pic_CXX
='-pic'
23312 lt_prog_compiler_static_CXX
='-Bstatic'
23316 lt_prog_compiler_pic_CXX
='-pic'
23322 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
23323 case $cc_basename in
23325 lt_prog_compiler_wl_CXX
='-Wl,'
23326 lt_prog_compiler_pic_CXX
='-KPIC'
23327 lt_prog_compiler_static_CXX
='-Bstatic'
23332 case $cc_basename in
23334 # NonStop-UX NCC 3.20
23335 lt_prog_compiler_pic_CXX
='-KPIC'
23344 lt_prog_compiler_can_build_shared_CXX
=no
23350 # For platforms which do not support PIC, -DPIC is meaningless:
23352 lt_prog_compiler_pic_CXX
=
23355 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
23358 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
23359 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
23364 # Check to make sure the PIC flag actually works.
23366 if test -n "$lt_prog_compiler_pic_CXX"; then
23367 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23368 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
23369 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 lt_cv_prog_compiler_pic_works_CXX
=no
23373 ac_outfile
=conftest.
$ac_objext
23374 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23375 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
23376 # Insert the option either (1) after the last *FLAGS variable, or
23377 # (2) before a word containing "conftest.", or (3) at the end.
23378 # Note that $ac_compile itself does not contain backslashes and begins
23379 # with a dollar sign (not a hyphen), so the echo should work correctly.
23380 # The option is referenced via a variable to avoid confusing sed.
23381 lt_compile
=`echo "$ac_compile" | $SED \
23382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23384 -e 's:$: $lt_compiler_flag:'`
23385 (eval echo "\"\$as_me:23385: $lt_compile\"" >&5)
23386 (eval "$lt_compile" 2>conftest.err
)
23388 cat conftest.err
>&5
23389 echo "$as_me:23389: \$? = $ac_status" >&5
23390 if (exit $ac_status) && test -s "$ac_outfile"; then
23391 # The compiler can only warn and ignore the option if not recognized
23392 # So say no if there are warnings other than the usual output.
23393 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
23394 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23395 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23396 lt_cv_prog_compiler_pic_works_CXX
=yes
23402 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23403 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
23405 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
23406 case $lt_prog_compiler_pic_CXX in
23408 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
23411 lt_prog_compiler_pic_CXX
=
23412 lt_prog_compiler_can_build_shared_CXX
=no
23420 # Check to make sure the static flag actually works.
23422 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
23423 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23424 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
23425 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
23426 echo $ECHO_N "(cached) $ECHO_C" >&6
23428 lt_cv_prog_compiler_static_works_CXX
=no
23429 save_LDFLAGS
="$LDFLAGS"
23430 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
23431 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
23432 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
23433 # The linker can only warn and ignore the option if not recognized
23434 # So say no if there are warnings
23435 if test -s conftest.err
; then
23436 # Append any errors to the config.log.
23437 cat conftest.err
1>&5
23438 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
23439 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23440 if diff conftest.exp conftest.er2
>/dev
/null
; then
23441 lt_cv_prog_compiler_static_works_CXX
=yes
23444 lt_cv_prog_compiler_static_works_CXX
=yes
23448 LDFLAGS
="$save_LDFLAGS"
23451 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23452 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
23454 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
23457 lt_prog_compiler_static_CXX
=
23463 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23464 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23465 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
23466 echo $ECHO_N "(cached) $ECHO_C" >&6
23468 lt_cv_prog_compiler_c_o_CXX
=no
23469 $RM -r conftest
2>/dev
/null
23473 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23475 lt_compiler_flag
="-o out/conftest2.$ac_objext"
23476 # Insert the option either (1) after the last *FLAGS variable, or
23477 # (2) before a word containing "conftest.", or (3) at the end.
23478 # Note that $ac_compile itself does not contain backslashes and begins
23479 # with a dollar sign (not a hyphen), so the echo should work correctly.
23480 lt_compile
=`echo "$ac_compile" | $SED \
23481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23483 -e 's:$: $lt_compiler_flag:'`
23484 (eval echo "\"\$as_me:23484: $lt_compile\"" >&5)
23485 (eval "$lt_compile" 2>out
/conftest.err
)
23487 cat out
/conftest.err
>&5
23488 echo "$as_me:23488: \$? = $ac_status" >&5
23489 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
23491 # The compiler can only warn and ignore the option if not recognized
23492 # So say no if there are warnings
23493 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
23494 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
23495 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
23496 lt_cv_prog_compiler_c_o_CXX
=yes
23501 # SGI C++ compiler will create directory out/ii_files/ for
23502 # template instantiation
23503 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
23504 $RM out
/* && rmdir out
23510 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23511 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
23515 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23517 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23520 lt_cv_prog_compiler_c_o_CXX
=no
23521 $RM -r conftest
2>/dev
/null
23525 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23527 lt_compiler_flag
="-o out/conftest2.$ac_objext"
23528 # Insert the option either (1) after the last *FLAGS variable, or
23529 # (2) before a word containing "conftest.", or (3) at the end.
23530 # Note that $ac_compile itself does not contain backslashes and begins
23531 # with a dollar sign (not a hyphen), so the echo should work correctly.
23532 lt_compile
=`echo "$ac_compile" | $SED \
23533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23535 -e 's:$: $lt_compiler_flag:'`
23536 (eval echo "\"\$as_me:23536: $lt_compile\"" >&5)
23537 (eval "$lt_compile" 2>out
/conftest.err
)
23539 cat out
/conftest.err
>&5
23540 echo "$as_me:23540: \$? = $ac_status" >&5
23541 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
23543 # The compiler can only warn and ignore the option if not recognized
23544 # So say no if there are warnings
23545 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
23546 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
23547 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
23548 lt_cv_prog_compiler_c_o_CXX
=yes
23553 # SGI C++ compiler will create directory out/ii_files/ for
23554 # template instantiation
23555 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
23556 $RM out
/* && rmdir out
23562 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
23568 hard_links
="nottested"
23569 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
23570 # do not overwrite the value of need_locks provided by the user
23571 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23572 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23575 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23577 ln conftest.a conftest.b
2>&5 || hard_links
=no
23578 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23579 echo "$as_me:$LINENO: result: $hard_links" >&5
23580 echo "${ECHO_T}$hard_links" >&6
23581 if test "$hard_links" = no
; then
23582 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23583 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23592 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
23595 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23598 # If we're using GNU nm, then we don't want the "-C" option.
23599 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23600 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
23601 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'
23603 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'
23607 export_symbols_cmds_CXX
="$ltdll_cmds"
23609 cygwin
* | mingw
* | cegcc
*)
23610 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'
23613 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23616 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23618 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
23619 echo "${ECHO_T}$ld_shlibs_CXX" >&6
23620 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
23622 with_gnu_ld_CXX
=$with_gnu_ld
23630 # Do we need to explicitly link libc?
23632 case "x$archive_cmds_need_lc_CXX" in
23634 # Assume -lc should be added
23635 archive_cmds_need_lc_CXX
=yes
23637 if test "$enable_shared" = yes && test "$GCC" = yes; then
23638 case $archive_cmds_CXX in
23640 # FIXME: we may have to deal with multi-command sequences.
23643 # Test whether the compiler implicitly links with -lc since on some
23644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23645 # to ld, don't add -lc before -lgcc.
23646 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23648 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
23649 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23655 (eval $ac_compile) 2>&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } 2>conftest.err
; then
23661 libobjs
=conftest.
$ac_objext
23663 wl
=$lt_prog_compiler_wl_CXX
23664 pic_flag
=$lt_prog_compiler_pic_CXX
23670 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
23671 allow_undefined_flag_CXX
=
23672 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
23673 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); }
23678 lt_cv_archive_cmds_need_lc_CXX
=no
23680 lt_cv_archive_cmds_need_lc_CXX
=yes
23682 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
23684 cat conftest.err
1>&5
23689 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
23690 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
23691 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
23761 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23762 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23764 library_names_spec
=
23765 libname_spec
='lib$name'
23769 postuninstall_cmds
=
23773 shlibpath_overrides_runpath
=unknown
23775 dynamic_linker
="$host_os ld.so"
23776 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
23777 need_lib_prefix
=unknown
23778 hardcode_into_libs
=no
23780 # when you set need_version to no, make sure it does not cause -set_version
23781 # flags to be left without arguments
23782 need_version
=unknown
23787 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
23788 shlibpath_var
=LIBPATH
23790 # AIX 3 has no versioning support, so we append a major version to the name.
23791 soname_spec
='${libname}${release}${shared_ext}$major'
23798 hardcode_into_libs
=yes
23799 if test "$host_cpu" = ia64
; then
23800 # AIX 5 supports IA64
23801 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23802 shlibpath_var
=LD_LIBRARY_PATH
23804 # With GCC up to 2.95.x, collect2 would create an import file
23805 # for dependence libraries. The import file would start with
23806 # the line `#! .'. This would cause the generated library to
23807 # depend on `.', always an invalid library. This was fixed in
23808 # development snapshots of GCC prior to 3.0.
23810 aix4 | aix4.
[01] | aix4.
[01].
*)
23811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23813 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
23816 can_build_shared
=no
23820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23821 # soname into executable. Probably we can add versioning support to
23822 # collect2, so additional links can be useful in future.
23823 if test "$aix_use_runtimelinking" = yes; then
23824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23825 # instead of lib<name>.a to let people know that these are not
23826 # typical AIX shared libraries.
23827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23829 # We preserve .a as extension for shared libraries through AIX4.2
23830 # and later when we are not doing run time linking.
23831 library_names_spec
='${libname}${release}.a $libname.a'
23832 soname_spec
='${libname}${release}${shared_ext}$major'
23834 shlibpath_var
=LIBPATH
23841 # Since July 2007 AmigaOS4 officially supports .so libraries.
23842 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23846 library_names_spec
='$libname.ixlibrary $libname.a'
23847 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23848 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'
23854 library_names_spec
='${libname}${shared_ext}'
23855 dynamic_linker
="$host_os ld.so"
23856 shlibpath_var
=LIBRARY_PATH
23862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23863 soname_spec
='${libname}${release}${shared_ext}$major'
23864 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
23865 shlibpath_var
=LD_LIBRARY_PATH
23866 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23867 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
23868 # the default ld.so.conf also contains /usr/contrib/lib and
23869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23870 # libtool to hard-code these into programs
23873 cygwin
* | mingw
* | pw32
* | cegcc
*)
23874 version_type
=windows
23879 case $GCC,$host_os in
23880 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
23881 library_names_spec
='$libname.dll.a'
23882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23883 postinstall_cmds
='base_file=`basename \${file}`~
23884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
23885 dldir=$destdir/`dirname \$dlpath`~
23886 test -d \$dldir || mkdir -p \$dldir~
23887 $install_prog $dir/$dlname \$dldir/$dlname~
23888 chmod a+x \$dldir/$dlname~
23889 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23890 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23892 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23893 dlpath=$dir/\$dldll~
23895 shlibpath_overrides_runpath
=yes
23899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23900 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23901 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
23904 # MinGW DLLs use traditional 'lib' prefix
23905 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23906 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23907 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
23908 # It is most probably a Windows format PATH printed by
23909 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23910 # path with ; separators, and with drive letters. We can handle the
23911 # drive letters (cygwin fileutils understands them), so leave them,
23912 # especially as we might pass files found there to a mingw objdump,
23913 # which wouldn't understand a cygwinified path. Ahh.
23914 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23916 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23920 # pw32 DLLs use 'pw' prefix rather than 'lib'
23921 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23927 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23930 dynamic_linker
='Win32 ld.exe'
23931 # FIXME: first we should search . and the directory the executable is in
23935 darwin
* | rhapsody
*)
23936 dynamic_linker
="$host_os dyld"
23937 version_type
=darwin
23940 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23941 soname_spec
='${libname}${release}${major}$shared_ext'
23942 shlibpath_overrides_runpath
=yes
23943 shlibpath_var
=DYLD_LIBRARY_PATH
23944 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
23946 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
23953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23954 soname_spec
='${libname}${release}${shared_ext}$major'
23955 shlibpath_var
=LD_LIBRARY_PATH
23962 freebsd
* | dragonfly
*)
23963 # DragonFly does not have aout. When/if they implement a new
23964 # versioning mechanism, adjust this.
23965 if test -x /usr
/bin
/objformat
; then
23966 objformat
=`/usr/bin/objformat`
23969 freebsd
[123]*) objformat
=aout
;;
23970 *) objformat
=elf
;;
23973 version_type
=freebsd-
$objformat
23974 case $version_type in
23976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23981 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23985 shlibpath_var
=LD_LIBRARY_PATH
23988 shlibpath_overrides_runpath
=yes
23990 freebsd3.
[01]* | freebsdelf3.
[01]*)
23991 shlibpath_overrides_runpath
=yes
23992 hardcode_into_libs
=yes
23994 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
23995 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
23996 shlibpath_overrides_runpath
=no
23997 hardcode_into_libs
=yes
23999 *) # from 4.6 on, and DragonFly
24000 shlibpath_overrides_runpath
=yes
24001 hardcode_into_libs
=yes
24010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24011 soname_spec
='${libname}${release}${shared_ext}$major'
24012 shlibpath_var
=LD_LIBRARY_PATH
24013 hardcode_into_libs
=yes
24016 hpux9
* | hpux10
* | hpux11
*)
24017 # Give a soname corresponding to the major version so that dld.sl refuses to
24018 # link against other versions.
24025 hardcode_into_libs
=yes
24026 dynamic_linker
="$host_os dld.so"
24027 shlibpath_var
=LD_LIBRARY_PATH
24028 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24030 soname_spec
='${libname}${release}${shared_ext}$major'
24031 if test "X$HPUX_IA64_MODE" = X32
; then
24032 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24034 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
24036 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24040 hardcode_into_libs
=yes
24041 dynamic_linker
="$host_os dld.sl"
24042 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
24043 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24045 soname_spec
='${libname}${release}${shared_ext}$major'
24046 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24047 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24051 dynamic_linker
="$host_os dld.sl"
24052 shlibpath_var
=SHLIB_PATH
24053 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
24054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24055 soname_spec
='${libname}${release}${shared_ext}$major'
24058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24059 postinstall_cmds
='chmod 555 $lib'
24066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24067 soname_spec
='${libname}${release}${shared_ext}$major'
24068 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
24069 shlibpath_var
=LD_LIBRARY_PATH
24070 shlibpath_overrides_runpath
=no
24071 hardcode_into_libs
=yes
24074 irix5
* | irix6
* | nonstopux
*)
24076 nonstopux
*) version_type
=nonstopux
;;
24078 if test "$lt_cv_prog_gnu_ld" = yes; then
24086 soname_spec
='${libname}${release}${shared_ext}$major'
24087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24089 irix5
* | nonstopux
*)
24090 libsuff
= shlibsuff
=
24093 case $LD in # libtool.m4 will add one of these switches to LD
24094 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
24095 libsuff
= shlibsuff
= libmagic
=32-bit;;
24096 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
24097 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
24098 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
24099 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
24100 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
24104 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
24105 shlibpath_overrides_runpath
=no
24106 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24107 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
24108 hardcode_into_libs
=yes
24111 # No shared lib support for Linux oldld, aout, or coff.
24112 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
24116 # This must be Linux ELF.
24117 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
24121 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24122 soname_spec
='${libname}${release}${shared_ext}$major'
24123 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24124 shlibpath_var
=LD_LIBRARY_PATH
24125 shlibpath_overrides_runpath
=no
24127 # Some binutils ld are patched to set DT_RUNPATH
24128 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24131 lt_cv_shlibpath_overrides_runpath
=no
24132 save_LDFLAGS
=$LDFLAGS
24133 save_libdir
=$libdir
24134 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24135 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24136 cat >conftest.
$ac_ext <<_ACEOF
24139 cat confdefs.h
>>conftest.
$ac_ext
24140 cat >>conftest.
$ac_ext <<_ACEOF
24141 /* end confdefs.h. */
24151 rm -f conftest.
$ac_objext conftest
$ac_exeext
24152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24153 (eval $ac_link) 2>conftest.er1
24155 grep -v '^ *+' conftest.er1
>conftest.err
24157 cat conftest.err
>&5
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); } &&
24160 { ac_try
='test -z "$ac_cxx_werror_flag"
24161 || test ! -s conftest.err'
24162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24163 (eval $ac_try) 2>&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); }; } &&
24167 { ac_try
='test -s conftest$ac_exeext'
24168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24169 (eval $ac_try) 2>&5
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); }; }; then
24173 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then
24174 lt_cv_shlibpath_overrides_runpath
=yes
24178 echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.
$ac_ext >&5
24182 rm -f conftest.err conftest.
$ac_objext \
24183 conftest
$ac_exeext conftest.
$ac_ext
24184 LDFLAGS
=$save_LDFLAGS
24185 libdir
=$save_libdir
24189 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
24191 # This implies no fast_install, which is unacceptable.
24192 # Some rework will be needed to allow for fast_install
24193 # before this can be enabled.
24194 hardcode_into_libs
=yes
24196 # Append ld.so.conf contents to the search path
24197 if test -f /etc
/ld.so.conf
; then
24198 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' ' '`
24199 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
24202 # We used to test for /lib/ld.so.1 and disable shared libraries on
24203 # powerpc, because MkLinux only supported shared libraries with the
24204 # GNU dynamic linker. Since this was broken with cross compilers,
24205 # most powerpc-linux boxes support dynamic linking these days and
24206 # people can always --disable-shared, the test was removed, and we
24207 # assume the GNU/Linux dynamic linker is in use.
24208 dynamic_linker
='GNU/Linux ld.so'
24215 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
24216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24217 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24218 dynamic_linker
='NetBSD (a.out) ld.so'
24220 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24221 soname_spec
='${libname}${release}${shared_ext}$major'
24222 dynamic_linker
='NetBSD ld.elf_so'
24224 shlibpath_var
=LD_LIBRARY_PATH
24225 shlibpath_overrides_runpath
=yes
24226 hardcode_into_libs
=yes
24231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24232 shlibpath_var
=LD_LIBRARY_PATH
24233 shlibpath_overrides_runpath
=yes
24240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24241 soname_spec
='${libname}${release}${shared_ext}$major'
24242 shlibpath_var
=LD_LIBRARY_PATH
24243 shlibpath_overrides_runpath
=no
24244 hardcode_into_libs
=yes
24245 dynamic_linker
='ldqnx.so'
24250 sys_lib_dlsearch_path_spec
="/usr/lib"
24252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24254 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
24255 *) need_version
=no
;;
24257 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24258 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24259 shlibpath_var
=LD_LIBRARY_PATH
24260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24262 openbsd2.
[89] | openbsd2.
[89].
*)
24263 shlibpath_overrides_runpath
=no
24266 shlibpath_overrides_runpath
=yes
24270 shlibpath_overrides_runpath
=yes
24275 libname_spec
='$name'
24278 library_names_spec
='$libname${shared_ext} $libname.a'
24279 dynamic_linker
='OS/2 ld.exe'
24280 shlibpath_var
=LIBPATH
24283 osf3
* | osf4
* | osf5
*)
24287 soname_spec
='${libname}${release}${shared_ext}$major'
24288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24289 shlibpath_var
=LD_LIBRARY_PATH
24290 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24291 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
24302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24303 soname_spec
='${libname}${release}${shared_ext}$major'
24304 shlibpath_var
=LD_LIBRARY_PATH
24305 shlibpath_overrides_runpath
=yes
24306 hardcode_into_libs
=yes
24307 # ldd complains unless libraries are executable
24308 postinstall_cmds
='chmod +x $lib'
24313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24314 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24315 shlibpath_var
=LD_LIBRARY_PATH
24316 shlibpath_overrides_runpath
=yes
24317 if test "$with_gnu_ld" = yes; then
24325 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24326 soname_spec
='${libname}${release}${shared_ext}$major'
24327 shlibpath_var
=LD_LIBRARY_PATH
24328 case $host_vendor in
24330 shlibpath_overrides_runpath
=no
24332 runpath_var
=LD_RUN_PATH
24340 shlibpath_overrides_runpath
=no
24341 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
24347 if test -d /usr
/nec
;then
24349 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24350 soname_spec
='$libname${shared_ext}.$major'
24351 shlibpath_var
=LD_LIBRARY_PATH
24355 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
24356 version_type
=freebsd-elf
24359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24360 soname_spec
='${libname}${release}${shared_ext}$major'
24361 shlibpath_var
=LD_LIBRARY_PATH
24362 shlibpath_overrides_runpath
=yes
24363 hardcode_into_libs
=yes
24364 if test "$with_gnu_ld" = yes; then
24365 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24367 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
24370 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
24374 sys_lib_dlsearch_path_spec
='/usr/lib'
24378 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24382 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24383 shlibpath_var
=LD_LIBRARY_PATH
24384 shlibpath_overrides_runpath
=no
24385 hardcode_into_libs
=yes
24390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24391 soname_spec
='${libname}${release}${shared_ext}$major'
24392 shlibpath_var
=LD_LIBRARY_PATH
24399 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24400 echo "${ECHO_T}$dynamic_linker" >&6
24401 test "$dynamic_linker" = no
&& can_build_shared
=no
24403 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
24404 if test "$GCC" = yes; then
24405 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24408 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24409 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
24411 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24412 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
24450 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24452 hardcode_action_CXX
=
24453 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24454 test -n "$runpath_var_CXX" ||
24455 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24457 # We can hardcode non-existent directories.
24458 if test "$hardcode_direct_CXX" != no
&&
24459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24460 # have to relink, otherwise we might link with an installed library
24461 # when we should be linking with a yet-to-be-installed one
24462 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24463 test "$hardcode_minus_L_CXX" != no
; then
24464 # Linking always hardcodes the temporary library directory.
24465 hardcode_action_CXX
=relink
24467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24468 hardcode_action_CXX
=immediate
24471 # We cannot hardcode anything, or else we can only hardcode existing
24473 hardcode_action_CXX
=unsupported
24475 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
24476 echo "${ECHO_T}$hardcode_action_CXX" >&6
24478 if test "$hardcode_action_CXX" = relink ||
24479 test "$inherit_rpath_CXX" = yes; then
24480 # Fast installation is not supported
24481 enable_fast_install
=no
24482 elif test "$shlibpath_overrides_runpath" = yes ||
24483 test "$enable_shared" = no
; then
24484 # Fast installation is not necessary
24485 enable_fast_install
=needless
24494 fi # test -n "$compiler"
24500 with_gnu_ld
=$lt_save_with_gnu_ld
24501 lt_cv_path_LDCXX
=$lt_cv_path_LD
24502 lt_cv_path_LD
=$lt_save_path_LD
24503 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
24504 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
24505 fi # test "$_lt_caught_CXX_error" != yes
24508 ac_cpp
='$CPP $CPPFLAGS'
24509 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24510 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24511 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24528 # Only expand once:
24534 # Identify the assembler which will work hand-in-glove with the newly
24535 # built GCC, so that we can examine its features. This is the assembler
24536 # which will be driven by the driver program.
24538 # If build != host, and we aren't building gas in-tree, we identify a
24539 # build->target assembler and hope that it will have the same features
24540 # as the host->target assembler we'll be using.
24541 gcc_cv_gas_major_version
=
24542 gcc_cv_gas_minor_version
=
24543 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
24545 if test "${gcc_cv_as+set}" = set; then
24549 if test -x "$DEFAULT_ASSEMBLER"; then
24550 gcc_cv_as
="$DEFAULT_ASSEMBLER"
24551 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
24552 && test -f ..
/gas
/Makefile \
24553 && test x
$build = x
$host; then
24554 gcc_cv_as
=..
/gas
/as-new
$build_exeext
24555 elif test -x as
$build_exeext; then
24556 # Build using assembler in the current directory.
24557 gcc_cv_as
=.
/as
$build_exeext
24558 elif test -x $AS_FOR_TARGET; then
24559 gcc_cv_as
="$AS_FOR_TARGET"
24561 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
24562 set dummy
$AS_FOR_TARGET; ac_word
=$2
24563 echo "$as_me:$LINENO: checking for $ac_word" >&5
24564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24565 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
24566 echo $ECHO_N "(cached) $ECHO_C" >&6
24570 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
24573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24574 for as_dir
in $PATH
24577 test -z "$as_dir" && as_dir
=.
24578 for ac_exec_ext
in '' $ac_executable_extensions; do
24579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24580 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
24581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24590 gcc_cv_as
=$ac_cv_path_gcc_cv_as
24592 if test -n "$gcc_cv_as"; then
24593 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
24594 echo "${ECHO_T}$gcc_cv_as" >&6
24596 echo "$as_me:$LINENO: result: no" >&5
24597 echo "${ECHO_T}no" >&6
24604 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
24606 case "$ORIGINAL_AS_FOR_TARGET" in
24607 .
/as | .
/as
$build_exeext) ;;
24608 *) ac_config_files
="$ac_config_files as:exec-tool.in"
24612 echo "$as_me:$LINENO: checking what assembler to use" >&5
24613 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
24614 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
24615 # Single tree build which includes gas. We want to prefer it
24616 # over whatever linker top-level may have detected, since
24617 # we'll use what we're building after installation anyway.
24618 echo "$as_me:$LINENO: result: newly built gas" >&5
24619 echo "${ECHO_T}newly built gas" >&6
24621 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
24622 for f
in $gcc_cv_as_bfd_srcdir/configure \
24623 $gcc_cv_as_gas_srcdir/configure \
24624 $gcc_cv_as_gas_srcdir/configure.
in \
24625 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
24626 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
24627 if test x
$gcc_cv_gas_version != x
; then
24631 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
24632 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
24633 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
24634 case $gcc_cv_gas_patch_version in
24635 "") gcc_cv_gas_patch_version
="0" ;;
24637 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
24638 + $gcc_cv_gas_minor_version \) \* 1000 \
24639 + $gcc_cv_gas_patch_version`
24641 in_tree_gas_is_elf
=no
24642 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
24643 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
24644 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
24646 in_tree_gas_is_elf
=yes
24649 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
24650 echo "${ECHO_T}$gcc_cv_as" >&6
24654 # Identify the linker which will work hand-in-glove with the newly
24655 # built GCC, so that we can examine its features. This is the linker
24656 # which will be driven by the driver program.
24658 # If build != host, and we aren't building gas in-tree, we identify a
24659 # build->target linker and hope that it will have the same features
24660 # as the host->target linker we'll be using.
24661 gcc_cv_gld_major_version
=
24662 gcc_cv_gld_minor_version
=
24663 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
24664 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
24666 if test "${gcc_cv_ld+set}" = set; then
24670 if test -x "$DEFAULT_LINKER"; then
24671 gcc_cv_ld
="$DEFAULT_LINKER"
24672 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
24673 && test -f ..
/ld
/Makefile \
24674 && test x
$build = x
$host; then
24675 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
24676 elif test -x collect-ld
$build_exeext; then
24677 # Build using linker in the current directory.
24678 gcc_cv_ld
=.
/collect-ld
$build_exeext
24679 elif test -x $LD_FOR_TARGET; then
24680 gcc_cv_ld
="$LD_FOR_TARGET"
24682 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
24683 set dummy
$LD_FOR_TARGET; ac_word
=$2
24684 echo "$as_me:$LINENO: checking for $ac_word" >&5
24685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24686 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
24687 echo $ECHO_N "(cached) $ECHO_C" >&6
24691 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
24694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24695 for as_dir
in $PATH
24698 test -z "$as_dir" && as_dir
=.
24699 for ac_exec_ext
in '' $ac_executable_extensions; do
24700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24701 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
24702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24711 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
24713 if test -n "$gcc_cv_ld"; then
24714 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
24715 echo "${ECHO_T}$gcc_cv_ld" >&6
24717 echo "$as_me:$LINENO: result: no" >&5
24718 echo "${ECHO_T}no" >&6
24725 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
24727 case "$ORIGINAL_LD_FOR_TARGET" in
24728 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
24729 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
24733 echo "$as_me:$LINENO: checking what linker to use" >&5
24734 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
24735 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
24736 # Single tree build which includes ld. We want to prefer it
24737 # over whatever linker top-level may have detected, since
24738 # we'll use what we're building after installation anyway.
24739 echo "$as_me:$LINENO: result: newly built ld" >&5
24740 echo "${ECHO_T}newly built ld" >&6
24742 in_tree_ld_is_elf
=no
24743 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
24744 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
24745 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
24746 in_tree_ld_is_elf
=yes
24748 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
24750 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
24751 if test x
$gcc_cv_gld_version != x
; then
24755 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
24756 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
24758 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
24759 echo "${ECHO_T}$gcc_cv_ld" >&6
24763 # Figure out what nm we will be using.
24764 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
24765 if test "${gcc_cv_nm+set}" = set; then
24769 if test -f $gcc_cv_binutils_srcdir/configure.
in \
24770 && test -f ..
/binutils
/Makefile \
24771 && test x
$build = x
$host; then
24772 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
24773 elif test -x nm
$build_exeext; then
24774 gcc_cv_nm
=.
/nm
$build_exeext
24775 elif test -x $NM_FOR_TARGET; then
24776 gcc_cv_nm
="$NM_FOR_TARGET"
24778 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
24779 set dummy
$NM_FOR_TARGET; ac_word
=$2
24780 echo "$as_me:$LINENO: checking for $ac_word" >&5
24781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24782 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
24783 echo $ECHO_N "(cached) $ECHO_C" >&6
24787 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
24790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24791 for as_dir
in $PATH
24794 test -z "$as_dir" && as_dir
=.
24795 for ac_exec_ext
in '' $ac_executable_extensions; do
24796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24797 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
24798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24807 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
24809 if test -n "$gcc_cv_nm"; then
24810 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
24811 echo "${ECHO_T}$gcc_cv_nm" >&6
24813 echo "$as_me:$LINENO: result: no" >&5
24814 echo "${ECHO_T}no" >&6
24821 echo "$as_me:$LINENO: checking what nm to use" >&5
24822 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
24823 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
24824 # Single tree build which includes binutils.
24825 echo "$as_me:$LINENO: result: newly built nm" >&5
24826 echo "${ECHO_T}newly built nm" >&6
24829 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
24830 echo "${ECHO_T}$gcc_cv_nm" >&6
24834 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
24836 case "$ORIGINAL_NM_FOR_TARGET" in
24837 .
/nm | .
/nm
$build_exeext) ;;
24838 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
24843 # Figure out what objdump we will be using.
24844 if test "${gcc_cv_objdump+set}" = set; then
24848 if test -f $gcc_cv_binutils_srcdir/configure.
in \
24849 && test -f ..
/binutils
/Makefile \
24850 && test x
$build = x
$host; then
24851 # Single tree build which includes binutils.
24852 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
24853 elif test -x objdump
$build_exeext; then
24854 gcc_cv_objdump
=.
/objdump
$build_exeext
24855 elif test -x $OBJDUMP_FOR_TARGET; then
24856 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
24858 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
24859 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
24860 echo "$as_me:$LINENO: checking for $ac_word" >&5
24861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24862 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
24863 echo $ECHO_N "(cached) $ECHO_C" >&6
24865 case $gcc_cv_objdump in
24867 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
24870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24871 for as_dir
in $PATH
24874 test -z "$as_dir" && as_dir
=.
24875 for ac_exec_ext
in '' $ac_executable_extensions; do
24876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24877 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
24878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24887 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
24889 if test -n "$gcc_cv_objdump"; then
24890 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
24891 echo "${ECHO_T}$gcc_cv_objdump" >&6
24893 echo "$as_me:$LINENO: result: no" >&5
24894 echo "${ECHO_T}no" >&6
24901 echo "$as_me:$LINENO: checking what objdump to use" >&5
24902 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
24903 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
24904 # Single tree build which includes binutils.
24905 echo "$as_me:$LINENO: result: newly built objdump" >&5
24906 echo "${ECHO_T}newly built objdump" >&6
24907 elif test x
$gcc_cv_objdump = x
; then
24908 echo "$as_me:$LINENO: result: not found" >&5
24909 echo "${ECHO_T}not found" >&6
24911 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
24912 echo "${ECHO_T}$gcc_cv_objdump" >&6
24915 # Figure out what readelf we will be using.
24916 if test "${gcc_cv_readelf+set}" = set; then
24920 if test -f $gcc_cv_binutils_srcdir/configure.
in \
24921 && test -f ..
/binutils
/Makefile \
24922 && test x
$build = x
$host; then
24923 # Single tree build which includes binutils.
24924 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
24925 elif test -x readelf
$build_exeext; then
24926 gcc_cv_readelf
=.
/readelf
$build_exeext
24928 # Extract the first word of "readelf", so it can be a program name with args.
24929 set dummy readelf
; ac_word
=$2
24930 echo "$as_me:$LINENO: checking for $ac_word" >&5
24931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24932 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24935 case $gcc_cv_readelf in
24937 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
24940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24941 for as_dir
in $PATH
24944 test -z "$as_dir" && as_dir
=.
24945 for ac_exec_ext
in '' $ac_executable_extensions; do
24946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24947 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
24948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24957 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
24959 if test -n "$gcc_cv_readelf"; then
24960 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
24961 echo "${ECHO_T}$gcc_cv_readelf" >&6
24963 echo "$as_me:$LINENO: result: no" >&5
24964 echo "${ECHO_T}no" >&6
24971 echo "$as_me:$LINENO: checking what readelf to use" >&5
24972 echo $ECHO_N "checking what readelf to use... $ECHO_C" >&6
24973 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
24974 # Single tree build which includes binutils.
24975 echo "$as_me:$LINENO: result: newly built readelf" >&5
24976 echo "${ECHO_T}newly built readelf" >&6
24977 elif test x
$gcc_cv_readelf = x
; then
24978 echo "$as_me:$LINENO: result: not found" >&5
24979 echo "${ECHO_T}not found" >&6
24981 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
24982 echo "${ECHO_T}$gcc_cv_readelf" >&6
24985 # Figure out what assembler alignment features are present.
24986 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
24987 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
24988 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
24989 echo $ECHO_N "(cached) $ECHO_C" >&6
24991 gcc_cv_as_balign_and_p2align
=no
24992 if test $in_tree_gas = yes; then
24993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
24994 then gcc_cv_as_balign_and_p2align
=yes
24996 elif test x
$gcc_cv_as != x
; then
24998 .p2align 2' > conftest.s
24999 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; }
25006 gcc_cv_as_balign_and_p2align
=yes
25008 echo "configure: failed program was" >&5
25011 rm -f conftest.o conftest.s
25014 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
25015 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
25016 if test $gcc_cv_as_balign_and_p2align = yes; then
25018 cat >>confdefs.h
<<\_ACEOF
25019 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
25024 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
25025 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
25026 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
25027 echo $ECHO_N "(cached) $ECHO_C" >&6
25029 gcc_cv_as_max_skip_p2align
=no
25030 if test $in_tree_gas = yes; then
25031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
25032 then gcc_cv_as_max_skip_p2align
=yes
25034 elif test x
$gcc_cv_as != x
; then
25035 echo '.p2align 4,,7' > conftest.s
25036 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25038 (eval $ac_try) 2>&5
25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 (exit $ac_status); }; }
25043 gcc_cv_as_max_skip_p2align
=yes
25045 echo "configure: failed program was" >&5
25048 rm -f conftest.o conftest.s
25051 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
25052 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
25053 if test $gcc_cv_as_max_skip_p2align = yes; then
25055 cat >>confdefs.h
<<\_ACEOF
25056 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
25061 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
25062 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
25063 if test "${gcc_cv_as_literal16+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25066 gcc_cv_as_literal16
=no
25067 if test $in_tree_gas = yes; then
25068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
25069 then gcc_cv_as_literal16
=yes
25071 elif test x
$gcc_cv_as != x
; then
25072 echo '.literal16' > conftest.s
25073 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }
25080 gcc_cv_as_literal16
=yes
25082 echo "configure: failed program was" >&5
25085 rm -f conftest.o conftest.s
25088 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
25089 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
25090 if test $gcc_cv_as_literal16 = yes; then
25092 cat >>confdefs.h
<<\_ACEOF
25093 #define HAVE_GAS_LITERAL16 1
25098 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
25099 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
25100 if test "${gcc_cv_as_subsection_m1+set}" = set; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
25103 gcc_cv_as_subsection_m1
=no
25104 if test $in_tree_gas = yes; then
25105 if test $in_tree_gas_is_elf = yes \
25106 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
25107 then gcc_cv_as_subsection_m1
=yes
25109 elif test x
$gcc_cv_as != x
; then
25110 echo 'conftest_label1: .word 0
25112 conftest_label2: .word 0
25113 .previous' > conftest.s
25114 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }
25121 if test x
$gcc_cv_nm != x
; then
25122 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
25123 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
25124 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
25126 else gcc_cv_as_subsection_m1
=yes
25128 rm -f conftest.nm1 conftest.nm2
25131 echo "configure: failed program was" >&5
25134 rm -f conftest.o conftest.s
25137 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
25138 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
25139 if test $gcc_cv_as_subsection_m1 = yes; then
25141 cat >>confdefs.h
<<\_ACEOF
25142 #define HAVE_GAS_SUBSECTION_ORDERING 1
25147 echo "$as_me:$LINENO: checking assembler for .weak" >&5
25148 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
25149 if test "${gcc_cv_as_weak+set}" = set; then
25150 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 if test $in_tree_gas = yes; then
25154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
25155 then gcc_cv_as_weak
=yes
25157 elif test x
$gcc_cv_as != x
; then
25158 echo ' .weak foobar' > conftest.s
25159 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161 (eval $ac_try) 2>&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); }; }
25168 echo "configure: failed program was" >&5
25171 rm -f conftest.o conftest.s
25174 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
25175 echo "${ECHO_T}$gcc_cv_as_weak" >&6
25176 if test $gcc_cv_as_weak = yes; then
25178 cat >>confdefs.h
<<\_ACEOF
25179 #define HAVE_GAS_WEAK 1
25184 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
25185 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
25186 if test "${gcc_cv_as_weakref+set}" = set; then
25187 echo $ECHO_N "(cached) $ECHO_C" >&6
25189 gcc_cv_as_weakref
=no
25190 if test $in_tree_gas = yes; then
25191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25192 then gcc_cv_as_weakref
=yes
25194 elif test x
$gcc_cv_as != x
; then
25195 echo ' .weakref foobar, barfnot' > conftest.s
25196 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; }
25203 gcc_cv_as_weakref
=yes
25205 echo "configure: failed program was" >&5
25208 rm -f conftest.o conftest.s
25211 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
25212 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
25213 if test $gcc_cv_as_weakref = yes; then
25215 cat >>confdefs.h
<<\_ACEOF
25216 #define HAVE_GAS_WEAKREF 1
25221 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
25222 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
25223 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
25224 echo $ECHO_N "(cached) $ECHO_C" >&6
25226 gcc_cv_as_nsubspa_comdat
=no
25227 if test $in_tree_gas = yes; then
25228 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25229 then gcc_cv_as_nsubspa_comdat
=yes
25231 elif test x
$gcc_cv_as != x
; then
25232 echo ' .SPACE $TEXT$
25233 .NSUBSPA $CODE$,COMDAT' > conftest.s
25234 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }
25241 gcc_cv_as_nsubspa_comdat
=yes
25243 echo "configure: failed program was" >&5
25246 rm -f conftest.o conftest.s
25249 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
25250 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
25251 if test $gcc_cv_as_nsubspa_comdat = yes; then
25253 cat >>confdefs.h
<<\_ACEOF
25254 #define HAVE_GAS_NSUBSPA_COMDAT 1
25259 # .hidden needs to be supported in both the assembler and the linker,
25260 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25261 # This is irritatingly difficult to feature test for; we have to check the
25262 # date string after the version number. If we've got an in-tree
25263 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25265 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25266 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
25267 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
25268 if test "${gcc_cv_as_hidden+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 gcc_cv_as_hidden
=no
25272 if test $in_tree_gas = yes; then
25273 if test $in_tree_gas_is_elf = yes \
25274 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
25275 then gcc_cv_as_hidden
=yes
25277 elif test x
$gcc_cv_as != x
; then
25278 echo ' .hidden foobar
25279 foobar:' > conftest.s
25280 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }
25287 gcc_cv_as_hidden
=yes
25289 echo "configure: failed program was" >&5
25292 rm -f conftest.o conftest.s
25295 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
25296 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
25299 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
25300 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
25301 if test "${gcc_cv_ld_hidden+set}" = set; then
25302 echo $ECHO_N "(cached) $ECHO_C" >&6
25304 if test $in_tree_ld = yes ; then
25305 gcc_cv_ld_hidden
=no
25306 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 \
25307 && test $in_tree_ld_is_elf = yes; then
25308 gcc_cv_ld_hidden
=yes
25311 gcc_cv_ld_hidden
=yes
25312 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
25313 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25314 ld_vers
=`echo $ld_ver | sed -n \
25315 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25316 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'`
25317 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25318 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25319 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
25320 if test 0"$ld_date" -lt 20020404; then
25321 if test -n "$ld_date"; then
25322 # If there was date string, but was earlier than 2002-04-04, fail
25323 gcc_cv_ld_hidden
=no
25324 elif test -z "$ld_vers"; then
25325 # If there was no date string nor ld version number, something is wrong
25326 gcc_cv_ld_hidden
=no
25328 test -z "$ld_vers_patch" && ld_vers_patch
=0
25329 if test "$ld_vers_major" -lt 2; then
25330 gcc_cv_ld_hidden
=no
25331 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
25332 gcc_cv_ld_hidden
="no"
25333 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
25334 gcc_cv_ld_hidden
=no
25339 case "${target}" in
25340 hppa64
*-*-hpux* | ia64
*-*-hpux*)
25341 gcc_cv_ld_hidden
=yes
25343 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
25344 gcc_cv_ld_hidden
=yes
25347 gcc_cv_ld_hidden
=no
25353 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
25354 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
25355 libgcc_visibility
=no
25358 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
25359 libgcc_visibility
=yes
25361 cat >>confdefs.h
<<\_ACEOF
25362 #define HAVE_GAS_HIDDEN 1
25367 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
25368 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
25369 gcc_cv_ld_ro_rw_mix
=unknown
25370 if test $in_tree_ld = yes ; then
25371 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 \
25372 && test $in_tree_ld_is_elf = yes; then
25373 gcc_cv_ld_ro_rw_mix
=read-write
25375 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25376 echo '.section myfoosect, "a"' > conftest1.s
25377 echo '.section myfoosect, "aw"' > conftest2.s
25378 echo '.byte 1' >> conftest2.s
25379 echo '.section myfoosect, "a"' > conftest3.s
25380 echo '.byte 0' >> conftest3.s
25381 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
25382 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
25383 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
25384 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
25385 conftest2.o conftest3.o
> /dev
/null
2>&1; then
25386 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
25387 | sed -e '/myfoosect/!d' -e N`
25388 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
25389 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
25390 gcc_cv_ld_ro_rw_mix
=read-only
25392 gcc_cv_ld_ro_rw_mix
=read-write
25396 rm -f conftest.
* conftest
[123].
*
25398 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
25400 cat >>confdefs.h
<<\_ACEOF
25401 #define HAVE_LD_RO_RW_SECTION_MIXING 1
25405 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
25406 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
25408 # Check if we have .[us]leb128, and support symbol arithmetic with it.
25409 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
25410 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
25411 if test "${gcc_cv_as_leb128+set}" = set; then
25412 echo $ECHO_N "(cached) $ECHO_C" >&6
25414 gcc_cv_as_leb128
=no
25415 if test $in_tree_gas = yes; then
25416 if test $in_tree_gas_is_elf = yes \
25417 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25418 then gcc_cv_as_leb128
=yes
25420 elif test x
$gcc_cv_as != x
; then
25427 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429 (eval $ac_try) 2>&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); }; }
25434 # GAS versions before 2.11 do not support uleb128,
25435 # despite appearing to.
25436 # ??? There exists an elf-specific test that will crash
25437 # the assembler. Perhaps it's better to figure out whether
25438 # arbitrary sections are supported and try the test.
25439 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
25440 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
25441 as_vers
=`echo $as_ver | sed -n \
25442 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25443 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
25444 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
25445 if test $as_major -eq 2 && test $as_minor -lt 11
25447 else gcc_cv_as_leb128
=yes
25451 echo "configure: failed program was" >&5
25454 rm -f conftest.o conftest.s
25457 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
25458 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
25459 if test $gcc_cv_as_leb128 = yes; then
25461 cat >>confdefs.h
<<\_ACEOF
25462 #define HAVE_AS_LEB128 1
25467 # Check if we have assembler support for unwind directives.
25468 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
25469 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
25470 if test "${gcc_cv_as_cfi_directive+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25473 gcc_cv_as_cfi_directive
=no
25474 if test x
$gcc_cv_as != x
; then
25480 .cfi_escape 1, 2, 3, 4, 5
25481 .cfi_endproc' > conftest.s
25482 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25484 (eval $ac_try) 2>&5
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); }; }
25491 # If the linker used on Solaris (like Sun ld) isn't capable of merging
25492 # read-only and read-write sections, we need to make sure that the
25493 # assembler used emits read-write .eh_frame sections.
25494 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
25495 if test "x$gcc_cv_objdump" != x
; then
25496 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
25497 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
25498 gcc_cv_as_cfi_directive
=no
25500 gcc_cv_as_cfi_directive
=yes
25503 # no objdump, err on the side of caution
25504 gcc_cv_as_cfi_directive
=no
25507 gcc_cv_as_cfi_directive
=yes
25511 gcc_cv_as_cfi_directive
=yes
25515 echo "configure: failed program was" >&5
25518 rm -f conftest.o conftest.s
25521 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
25522 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
25524 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
25525 echo "$as_me:$LINENO: checking assembler for working cfi advance" >&5
25526 echo $ECHO_N "checking assembler for working cfi advance... $ECHO_C" >&6
25527 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then
25528 echo $ECHO_N "(cached) $ECHO_C" >&6
25530 gcc_cv_as_cfi_advance_working
=no
25531 if test x
$gcc_cv_as != x
; then
25534 .cfi_adjust_cfa_offset 64
25536 .cfi_adjust_cfa_offset 128
25537 .cfi_endproc' > conftest.s
25538 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }
25546 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
25547 |
grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev
/null
; then
25548 gcc_cv_as_cfi_advance_working
=yes
25552 echo "configure: failed program was" >&5
25555 rm -f conftest.o conftest.s
25558 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_advance_working" >&5
25559 echo "${ECHO_T}$gcc_cv_as_cfi_advance_working" >&6
25562 # no readelf, err on the side of caution
25563 gcc_cv_as_cfi_advance_working
=no
25566 cat >>confdefs.h
<<_ACEOF
25567 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
25568 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
25572 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
25573 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
25574 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25577 gcc_cv_as_cfi_personality_directive
=no
25578 if test x
$gcc_cv_as != x
; then
25581 .cfi_personality 0, symbol
25582 .cfi_endproc' > conftest.s
25583 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; }
25590 gcc_cv_as_cfi_personality_directive
=yes
25592 echo "configure: failed program was" >&5
25595 rm -f conftest.o conftest.s
25598 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
25599 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
25602 cat >>confdefs.h
<<_ACEOF
25603 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
25604 then echo 1; else echo 0; fi`
25608 # GAS versions up to and including 2.11.0 may mis-optimize
25610 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
25611 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
25612 if test "${gcc_cv_as_eh_frame+set}" = set; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25615 gcc_cv_as_eh_frame
=no
25616 if test $in_tree_gas = yes; then
25617 if test $in_tree_gas_is_elf = yes \
25618 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25619 then gcc_cv_as_eh_frame
=yes
25621 elif test x
$gcc_cv_as != x
; then
25628 .section .eh_frame,"aw",@progbits
25630 .4byte .LECIE1-.LSCIE1
25644 .4byte .LEFDE1-.LASFDE1
25646 .4byte .LASFDE1-__FRAME_BEGIN__
25653 .LEFDE1:' > conftest.s
25654 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656 (eval $ac_try) 2>&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; }
25661 cat > conftest.lit
<<EOF
25662 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25663 0010 01000000 12000000 18000000 00000000 ................
25664 0020 08000000 04080000 0044 .........D
25666 cat > conftest.big
<<EOF
25667 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25668 0010 00000001 00000012 00000018 00000000 ................
25669 0020 00000008 04000000 0844 .........D
25671 # If the assembler didn't choke, and we can objdump,
25672 # and we got the correct data, then succeed.
25673 # The text in the here-document typically retains its unix-style line
25674 # endings, while the output of objdump will use host line endings.
25675 # Therefore, use diff -b for the comparisons.
25676 if test x
$gcc_cv_objdump != x \
25677 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
25678 |
tail -3 > conftest.got \
25679 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
25680 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
25682 gcc_cv_as_eh_frame
=yes
25683 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25685 (eval $ac_try) 2>&5
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); }; }; then
25689 gcc_cv_as_eh_frame
=buggy
25691 # Uh oh, what do we do now?
25692 gcc_cv_as_eh_frame
=no
25695 echo "configure: failed program was" >&5
25698 rm -f conftest.o conftest.s
25701 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
25702 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
25705 if test $gcc_cv_as_eh_frame = buggy
; then
25707 cat >>confdefs.h
<<\_ACEOF
25708 #define USE_AS_TRADITIONAL_FORMAT 1
25713 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
25714 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
25715 if test "${gcc_cv_as_shf_merge+set}" = set; then
25716 echo $ECHO_N "(cached) $ECHO_C" >&6
25718 gcc_cv_as_shf_merge
=no
25719 if test $in_tree_gas = yes; then
25720 if test $in_tree_gas_is_elf = yes \
25721 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25722 then gcc_cv_as_shf_merge
=yes
25724 elif test x
$gcc_cv_as != x
; then
25725 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25726 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }
25733 gcc_cv_as_shf_merge
=yes
25735 echo "configure: failed program was" >&5
25738 rm -f conftest.o conftest.s
25741 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
25742 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
25744 if test $gcc_cv_as_shf_merge = no
; then
25745 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
25746 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
25747 if test "${gcc_cv_as_shf_merge+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25750 gcc_cv_as_shf_merge
=no
25751 if test $in_tree_gas = yes; then
25752 if test $in_tree_gas_is_elf = yes \
25753 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25754 then gcc_cv_as_shf_merge
=yes
25756 elif test x
$gcc_cv_as != x
; then
25757 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25758 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
25759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25760 (eval $ac_try) 2>&5
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; }
25765 gcc_cv_as_shf_merge
=yes
25767 echo "configure: failed program was" >&5
25770 rm -f conftest.o conftest.s
25773 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
25774 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
25778 cat >>confdefs.h
<<_ACEOF
25779 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25783 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
25784 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
25785 if test "${gcc_cv_as_comdat_group+set}" = set; then
25786 echo $ECHO_N "(cached) $ECHO_C" >&6
25788 gcc_cv_as_comdat_group
=no
25789 if test $in_tree_gas = yes; then
25790 if test $in_tree_gas_is_elf = yes \
25791 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25792 then gcc_cv_as_comdat_group
=yes
25794 elif test x
$gcc_cv_as != x
; then
25795 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25796 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
25797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798 (eval $ac_try) 2>&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); }; }
25803 gcc_cv_as_comdat_group
=yes
25805 echo "configure: failed program was" >&5
25808 rm -f conftest.o conftest.s
25811 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
25812 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
25814 if test $gcc_cv_as_comdat_group = yes; then
25815 gcc_cv_as_comdat_group_percent
=no
25817 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
25818 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
25819 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
25820 echo $ECHO_N "(cached) $ECHO_C" >&6
25822 gcc_cv_as_comdat_group_percent
=no
25823 if test $in_tree_gas = yes; then
25824 if test $in_tree_gas_is_elf = yes \
25825 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25826 then gcc_cv_as_comdat_group_percent
=yes
25828 elif test x
$gcc_cv_as != x
; then
25829 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25830 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; }
25837 gcc_cv_as_comdat_group_percent
=yes
25839 echo "configure: failed program was" >&5
25842 rm -f conftest.o conftest.s
25845 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
25846 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
25849 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
25851 if test 0"$ld_date" -lt 20050308; then
25852 if test -n "$ld_date"; then
25853 # If there was date string, but was earlier than 2005-03-08, fail
25855 elif test "$ld_vers_major" -lt 2; then
25857 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25862 # assume linkers other than GNU ld don't support COMDAT group
25865 if test $comdat_group = no
; then
25866 gcc_cv_as_comdat_group
=no
25867 gcc_cv_as_comdat_group_percent
=no
25870 cat >>confdefs.h
<<_ACEOF
25871 #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`
25875 echo "$as_me:$LINENO: checking assembler for line table discriminator support" >&5
25876 echo $ECHO_N "checking assembler for line table discriminator support... $ECHO_C" >&6
25877 if test "${gcc_cv_as_discriminator+set}" = set; then
25878 echo $ECHO_N "(cached) $ECHO_C" >&6
25880 gcc_cv_as_discriminator
=no
25881 if test $in_tree_gas = yes; then
25882 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
25883 then gcc_cv_as_discriminator
=yes
25885 elif test x
$gcc_cv_as != x
; then
25888 .loc 1 1 0 discriminator 1' > conftest.s
25889 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; }
25896 gcc_cv_as_discriminator
=yes
25898 echo "configure: failed program was" >&5
25901 rm -f conftest.o conftest.s
25904 echo "$as_me:$LINENO: result: $gcc_cv_as_discriminator" >&5
25905 echo "${ECHO_T}$gcc_cv_as_discriminator" >&6
25906 if test $gcc_cv_as_discriminator = yes; then
25908 cat >>confdefs.h
<<\_ACEOF
25909 #define HAVE_GAS_DISCRIMINATOR 1
25914 # Thread-local storage - the check is heavily parameterized.
25922 .section ".tdata","awT",@progbits
25925 ldq $27,__tls_get_addr($29) !literal!1
25926 lda $16,foo($29) !tlsgd!1
25927 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25928 ldq $27,__tls_get_addr($29) !literal!2
25929 lda $16,foo($29) !tlsldm!2
25930 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25931 ldq $1,foo($29) !gotdtprel
25932 ldah $2,foo($29) !dtprelhi
25933 lda $3,foo($2) !dtprello
25934 lda $4,foo($29) !dtprel
25935 ldq $1,foo($29) !gottprel
25936 ldah $2,foo($29) !tprelhi
25937 lda $3,foo($2) !tprello
25938 lda $4,foo($29) !tprel'
25941 tls_as_opt
=--fatal-warnings
25943 cris-
*-*|crisv32-
*-*)
25945 .section ".tdata","awT",@progbits
25952 tls_as_opt
=--fatal-warnings
25956 .section ".tdata","awT",@progbits
25959 call #gettlsoff(x)'
25968 .section ".tdata","awT",@progbits
25972 addil LT%foo-$tls_gdidx$,gp
25973 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25976 addil LT%foo-$tls_ldidx$,gp
25978 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25979 addil LR%foo-$tls_dtpoff$,%ret0
25980 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25982 addil LT%foo-$tls_ieoff$,gp
25983 ldw RT%foo-$tls_ieoff$(%r1),%t2
25986 addil LR%foo-$tls_leoff$,%t1
25987 ldo RR%foo-$tls_leoff$(%r1),%t2'
25990 tls_as_opt
=--fatal-warnings
25994 .section ".tdata","awT",%progbits
25997 .word foo(gottpoff)
26007 .section ".tdata","awT",@progbits
26011 leal foo@TLSGD(,%ebx,1), %eax
26012 leal foo@TLSLDM(%ebx), %eax
26013 leal foo@DTPOFF(%eax), %edx
26014 movl foo@GOTTPOFF(%ebx), %eax
26015 subl foo@GOTTPOFF(%ebx), %eax
26016 addl foo@GOTNTPOFF(%ebx), %eax
26017 movl foo@INDNTPOFF, %eax
26018 movl $foo@TPOFF, %eax
26019 subl $foo@TPOFF, %eax
26020 leal foo@NTPOFF(%ecx), %eax'
26023 tls_as_opt
=--fatal-warnings
26027 .section ".tdata","awT",@progbits
26031 leaq foo@TLSGD(%rip), %rdi
26032 leaq foo@TLSLD(%rip), %rdi
26033 leaq foo@DTPOFF(%rax), %rdx
26034 movq foo@GOTTPOFF(%rip), %rax
26035 movq $foo@TPOFF, %rax'
26038 tls_as_opt
=--fatal-warnings
26042 .section ".tdata","awT",@progbits
26045 addl r16 = @ltoff(@dtpmod(foo#)), gp
26046 addl r17 = @ltoff(@dtprel(foo#)), gp
26047 addl r18 = @ltoff(@tprel(foo#)), gp
26048 addl r19 = @dtprel(foo#), gp
26049 adds r21 = @dtprel(foo#), r13
26050 movl r23 = @dtprel(foo#)
26051 addl r20 = @tprel(foo#), gp
26052 adds r22 = @tprel(foo#), r13
26053 movl r24 = @tprel(foo#)'
26056 tls_as_opt
=--fatal-warnings
26060 .section .tdata,"awT",@progbits
26064 addiu $4, $28, %tlsgd(x)
26065 addiu $4, $28, %tlsldm(x)
26066 lui $4, %dtprel_hi(x)
26067 addiu $4, $4, %dtprel_lo(x)
26068 lw $4, %gottprel(x)($28)
26069 lui $4, %tprel_hi(x)
26070 addiu $4, $4, %tprel_lo(x)'
26073 tls_as_opt
='-32 --fatal-warnings'
26077 .section .tdata,"awT",@progbits
26082 move.l x@TLSGD(%a5),%a0
26083 move.l x@TLSLDM(%a5),%a0
26084 move.l x@TLSLDO(%a5),%a0
26085 move.l x@TLSIE(%a5),%a0
26086 move.l x@TLSLE(%a5),%a0'
26089 tls_as_opt
='--fatal-warnings'
26093 .section ".tdata","awT",@progbits
26101 addi 3,31,ld0@got@tlsgd
26103 addi 3,31,x1@got@tlsld
26106 addis 9,3,x2@dtprel@ha
26107 addi 9,9,x2@dtprel@l
26108 lwz 9,x3@got@tprel(31)
26111 addis 9,2,x2@tprel@ha
26112 addi 9,9,x2@tprel@l'
26115 tls_as_opt
="-a32 --fatal-warnings"
26119 .section ".tdata","awT",@progbits
26127 addi 3,2,ld0@got@tlsgd
26133 addi 3,2,x1@got@tlsld
26139 addis 9,3,x2@dtprel@ha
26140 addi 9,9,x2@dtprel@l
26143 ld 9,x3@got@dtprel(2)
26149 tls_as_opt
="-a64 --fatal-warnings"
26153 .section ".tdata","awT",@progbits
26160 .long foo@GOTNTPOFF
26161 .long foo@INDNTPOFF
26162 l %r1,foo@GOTNTPOFF(%r12)
26163 l %r1,0(%r1):tls_load:foo
26164 bas %r14,0(%r1,%r13):tls_gdcall:foo
26165 bas %r14,0(%r1,%r13):tls_ldcall:foo'
26168 tls_as_opt
="-m31 --fatal-warnings"
26172 .section ".tdata","awT",@progbits
26179 .quad foo@GOTNTPOFF
26180 lg %r1,foo@GOTNTPOFF(%r12)
26181 larl %r1,foo@INDNTPOFF
26182 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
26183 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
26186 tls_as_opt
="-m64 -Aesame --fatal-warnings"
26188 sh-
*-* | sh
[34]-*-*)
26190 .section ".tdata","awT",@progbits
26200 tls_as_opt
=--fatal-warnings
26204 sparc
*-sun-solaris2.
[56789]*)
26205 # TLS was introduced in the Solaris 9 4/04 release but
26206 # we do not enable it by default on Solaris 9 either.
26207 if test "x$enable_tls" = xyes
; then
26213 sparc
*-sun-solaris2.
*)
26220 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
26222 .section ".tdata",#alloc,#write,#tls
26225 sethi %tgd_hi22(foo), %o0
26226 add %o0, %tgd_lo10(foo), %o1
26227 add %l7, %o1, %o0, %tgd_add(foo)
26228 call __tls_get_addr, %tgd_call(foo)
26229 sethi %tldm_hi22(foo), %l1
26230 add %l1, %tldm_lo10(foo), %l2
26231 add %l7, %l2, %o0, %tldm_add(foo)
26232 call __tls_get_addr, %tldm_call(foo)
26233 sethi %tldo_hix22(foo), %l3
26234 xor %l3, %tldo_lox10(foo), %l4
26235 add %o0, %l4, %l5, %tldo_add(foo)
26236 sethi %tie_hi22(foo), %o3
26237 add %o3, %tie_lo10(foo), %o3
26238 ld [%l7 + %o3], %o2, %tie_ld(foo)
26239 add %g7, %o2, %o4, %tie_add(foo)
26240 sethi %tle_hix22(foo), %l1
26241 xor %l1, %tle_lox10(foo), %o5
26242 ld [%g7 + %o5], %o1'
26247 .section ".tdata","awT",@progbits
26250 sethi %tgd_hi22(foo), %o0
26251 add %o0, %tgd_lo10(foo), %o1
26252 add %l7, %o1, %o0, %tgd_add(foo)
26253 call __tls_get_addr, %tgd_call(foo)
26254 sethi %tldm_hi22(foo), %l1
26255 add %l1, %tldm_lo10(foo), %l2
26256 add %l7, %l2, %o0, %tldm_add(foo)
26257 call __tls_get_addr, %tldm_call(foo)
26258 sethi %tldo_hix22(foo), %l3
26259 xor %l3, %tldo_lox10(foo), %l4
26260 add %o0, %l4, %l5, %tldo_add(foo)
26261 sethi %tie_hi22(foo), %o3
26262 add %o3, %tie_lo10(foo), %o3
26263 ld [%l7 + %o3], %o2, %tie_ld(foo)
26264 add %g7, %o2, %o4, %tie_add(foo)
26265 sethi %tle_hix22(foo), %l1
26266 xor %l1, %tle_lox10(foo), %o5
26267 ld [%g7 + %o5], %o1'
26270 tls_as_opt
="-32 --fatal-warnings"
26275 .section ".tdata","awT",@progbits
26278 movi a8, foo@TLSFUNC
26279 movi a10, foo@TLSARG
26280 callx8.tls a8, foo@TLSCALL'
26286 if test "x$enable_tls" = xno
; then
26287 : # TLS explicitly disabled.
26288 elif test "x$enable_tls" = xyes
; then
26289 set_have_as_tls
=yes # TLS explicitly enabled.
26290 elif test -z "$tls_first_major"; then
26291 : # If we don't have a check, assume no support.
26293 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
26294 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
26295 if test "${gcc_cv_as_tls+set}" = set; then
26296 echo $ECHO_N "(cached) $ECHO_C" >&6
26299 if test $in_tree_gas = yes; then
26300 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
26301 then gcc_cv_as_tls
=yes
26303 elif test x
$gcc_cv_as != x
; then
26304 echo "$conftest_s" > conftest.s
26305 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
26306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307 (eval $ac_try) 2>&5
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); }; }
26314 echo "configure: failed program was" >&5
26317 rm -f conftest.o conftest.s
26320 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
26321 echo "${ECHO_T}$gcc_cv_as_tls" >&6
26322 if test $gcc_cv_as_tls = yes; then
26323 set_have_as_tls
=yes
26326 if test $set_have_as_tls = yes ; then
26328 cat >>confdefs.h
<<\_ACEOF
26329 #define HAVE_AS_TLS 1
26334 # Target-specific assembler checks.
26336 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
26337 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
26338 gcc_cv_ld_static_dynamic
=no
26339 if test $in_tree_ld = yes ; then
26340 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
26341 gcc_cv_ld_static_dynamic
=yes
26343 elif test x
$gcc_cv_ld != x
; then
26344 # Check if linker supports -Bstatic/-Bdynamic option
26345 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
26346 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
26347 gcc_cv_ld_static_dynamic
=yes
26350 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
26352 cat >>confdefs.h
<<\_ACEOF
26353 #define HAVE_LD_STATIC_DYNAMIC 1
26357 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
26358 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
26360 if test x
"$demangler_in_ld" = xyes
; then
26361 echo "$as_me:$LINENO: checking linker --demangle support" >&5
26362 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
26363 gcc_cv_ld_demangle
=no
26364 if test $in_tree_ld = yes; then
26365 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 \
26366 gcc_cv_ld_demangle
=yes
26368 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26369 # Check if the GNU linker supports --demangle option
26370 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
26371 gcc_cv_ld_demangle
=yes
26374 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26376 cat >>confdefs.h
<<\_ACEOF
26377 #define HAVE_LD_DEMANGLE 1
26381 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
26382 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
26386 # All TARGET_ABI_OSF targets.
26387 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
26388 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
26389 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
26390 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
26391 echo $ECHO_N "(cached) $ECHO_C" >&6
26393 gcc_cv_as_alpha_explicit_relocs
=no
26394 if test $in_tree_gas = yes; then
26395 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
26396 then gcc_cv_as_alpha_explicit_relocs
=yes
26398 elif test x
$gcc_cv_as != x
; then
26399 echo ' .set nomacro
26401 extbl $3, $2, $3 !lituse_bytoff!1
26402 ldq $2, a($29) !literal!1
26403 ldq $4, b($29) !literal!2
26404 ldq_u $3, 0($2) !lituse_base!1
26405 ldq $27, f($29) !literal!5
26406 jsr $26, ($27), f !lituse_jsr!5
26407 ldah $29, 0($26) !gpdisp!3
26408 lda $0, c($29) !gprel
26409 ldah $1, d($29) !gprelhigh
26410 lda $1, d($1) !gprellow
26411 lda $29, 0($29) !gpdisp!3' > conftest.s
26412 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }
26419 gcc_cv_as_alpha_explicit_relocs
=yes
26421 echo "configure: failed program was" >&5
26424 rm -f conftest.o conftest.s
26427 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26428 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
26429 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26431 cat >>confdefs.h
<<\_ACEOF
26432 #define HAVE_AS_EXPLICIT_RELOCS 1
26436 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
26437 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
26438 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
26439 echo $ECHO_N "(cached) $ECHO_C" >&6
26441 gcc_cv_as_alpha_jsrdirect_relocs
=no
26442 if test $in_tree_gas = yes; then
26443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
26444 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
26446 elif test x
$gcc_cv_as != x
; then
26447 echo ' .set nomacro
26449 ldq $27, a($29) !literal!1
26450 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26451 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 (eval $ac_try) 2>&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }
26458 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26460 echo "configure: failed program was" >&5
26463 rm -f conftest.o conftest.s
26466 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26467 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
26468 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26470 cat >>confdefs.h
<<\_ACEOF
26471 #define HAVE_AS_JSRDIRECT_RELOCS 1
26478 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
26479 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
26480 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
26481 echo $ECHO_N "(cached) $ECHO_C" >&6
26483 gcc_cv_as_cris_no_mul_bug
=no
26484 if test $in_tree_gas = yes; then
26485 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26486 then gcc_cv_as_cris_no_mul_bug
=yes
26488 elif test x
$gcc_cv_as != x
; then
26489 echo '.text' > conftest.s
26490 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
26491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); }; }
26497 gcc_cv_as_cris_no_mul_bug
=yes
26499 echo "configure: failed program was" >&5
26502 rm -f conftest.o conftest.s
26505 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
26506 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
26507 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26509 cat >>confdefs.h
<<\_ACEOF
26510 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
26517 echo "$as_me:$LINENO: checking assembler for .register" >&5
26518 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
26519 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
26520 echo $ECHO_N "(cached) $ECHO_C" >&6
26522 gcc_cv_as_sparc_register_op
=no
26523 if test x
$gcc_cv_as != x
; then
26524 echo '.register %g2, #scratch' > conftest.s
26525 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26527 (eval $ac_try) 2>&5
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); }; }
26532 gcc_cv_as_sparc_register_op
=yes
26534 echo "configure: failed program was" >&5
26537 rm -f conftest.o conftest.s
26540 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
26541 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
26542 if test $gcc_cv_as_sparc_register_op = yes; then
26544 cat >>confdefs.h
<<\_ACEOF
26545 #define HAVE_AS_REGISTER_PSEUDO_OP 1
26550 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
26551 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
26552 if test "${gcc_cv_as_sparc_relax+set}" = set; then
26553 echo $ECHO_N "(cached) $ECHO_C" >&6
26555 gcc_cv_as_sparc_relax
=no
26556 if test x
$gcc_cv_as != x
; then
26557 echo '.text' > conftest.s
26558 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; }
26565 gcc_cv_as_sparc_relax
=yes
26567 echo "configure: failed program was" >&5
26570 rm -f conftest.o conftest.s
26573 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
26574 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
26575 if test $gcc_cv_as_sparc_relax = yes; then
26577 cat >>confdefs.h
<<\_ACEOF
26578 #define HAVE_AS_RELAX_OPTION 1
26583 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
26584 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
26585 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
26586 echo $ECHO_N "(cached) $ECHO_C" >&6
26588 gcc_cv_as_sparc_ua_pcrel
=no
26589 if test x
$gcc_cv_as != x
; then
26596 .uaword %r_disp32(foo)' > conftest.s
26597 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
26598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26599 (eval $ac_try) 2>&5
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); }; }
26604 if test x
$gcc_cv_ld != x \
26605 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26606 gcc_cv_as_sparc_ua_pcrel
=yes
26610 echo "configure: failed program was" >&5
26613 rm -f conftest.o conftest.s
26616 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26617 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
26618 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26620 cat >>confdefs.h
<<\_ACEOF
26621 #define HAVE_AS_SPARC_UA_PCREL 1
26625 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26626 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
26627 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
26628 echo $ECHO_N "(cached) $ECHO_C" >&6
26630 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26631 if test x
$gcc_cv_as != x
; then
26635 .uaword %r_disp32(foo)
26636 .byte 0x32, 0x33, 0x34
26640 .skip 4' > conftest.s
26641 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
26642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26643 (eval $ac_try) 2>&5
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); }; }
26648 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26649 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26650 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26651 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26652 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26653 |
grep 'DISP32' > /dev
/null
2>&1; then
26656 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26661 echo "configure: failed program was" >&5
26664 rm -f conftest.o conftest.s
26667 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26668 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
26669 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26671 cat >>confdefs.h
<<\_ACEOF
26672 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
26677 fi # unaligned pcrel relocs
26679 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
26680 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
26681 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26684 gcc_cv_as_sparc_offsetable_lo10
=no
26685 if test x
$gcc_cv_as != x
; then
26687 or %g1, %lo(ab) + 12, %g1
26688 or %g1, %lo(ab + 12), %g1' > conftest.s
26689 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; }
26696 if test x
$gcc_cv_objdump != x \
26697 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26698 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26699 gcc_cv_as_sparc_offsetable_lo10
=yes
26702 echo "configure: failed program was" >&5
26705 rm -f conftest.o conftest.s
26708 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26709 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
26710 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26712 cat >>confdefs.h
<<\_ACEOF
26713 #define HAVE_AS_OFFSETABLE_LO10 1
26719 i
[34567]86-*-* | x86_64-
*-*)
26721 cygwin
* | pe | mingw32
*)
26722 # Recent binutils allows the three-operand form of ".comm" on PE. This
26723 # definition is used unconditionally to initialise the default state of
26724 # the target option variable that governs usage of the feature.
26725 echo "$as_me:$LINENO: checking assembler for .comm with alignment" >&5
26726 echo $ECHO_N "checking assembler for .comm with alignment... $ECHO_C" >&6
26727 if test "${gcc_cv_as_comm_has_align+set}" = set; then
26728 echo $ECHO_N "(cached) $ECHO_C" >&6
26730 gcc_cv_as_comm_has_align
=no
26731 if test $in_tree_gas = yes; then
26732 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26733 then gcc_cv_as_comm_has_align
=yes
26735 elif test x
$gcc_cv_as != x
; then
26736 echo '.comm foo,1,32' > conftest.s
26737 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739 (eval $ac_try) 2>&5
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); }; }
26744 gcc_cv_as_comm_has_align
=yes
26746 echo "configure: failed program was" >&5
26749 rm -f conftest.o conftest.s
26752 echo "$as_me:$LINENO: result: $gcc_cv_as_comm_has_align" >&5
26753 echo "${ECHO_T}$gcc_cv_as_comm_has_align" >&6
26756 cat >>confdefs.h
<<_ACEOF
26757 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26760 # Used for DWARF 2 in PE
26761 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
26762 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
26763 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
26764 echo $ECHO_N "(cached) $ECHO_C" >&6
26766 gcc_cv_as_ix86_pe_secrel32
=no
26767 if test $in_tree_gas = yes; then
26768 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26769 then gcc_cv_as_ix86_pe_secrel32
=yes
26771 elif test x
$gcc_cv_as != x
; then
26775 .secrel32 foo' > conftest.s
26776 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778 (eval $ac_try) 2>&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; }
26783 if test x
$gcc_cv_ld != x \
26784 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26785 gcc_cv_as_ix86_pe_secrel32
=yes
26789 echo "configure: failed program was" >&5
26792 rm -f conftest.o conftest.s
26795 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26796 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
26797 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26799 cat >>confdefs.h
<<\_ACEOF
26800 #define HAVE_GAS_PE_SECREL32_RELOC 1
26807 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
26808 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
26809 if test "${gcc_cv_as_ix86_filds+set}" = set; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26812 gcc_cv_as_ix86_filds
=no
26813 if test x
$gcc_cv_as != x
; then
26814 echo 'filds mem; fists mem' > conftest.s
26815 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817 (eval $ac_try) 2>&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; }
26822 gcc_cv_as_ix86_filds
=yes
26824 echo "configure: failed program was" >&5
26827 rm -f conftest.o conftest.s
26830 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds" >&5
26831 echo "${ECHO_T}$gcc_cv_as_ix86_filds" >&6
26832 if test $gcc_cv_as_ix86_filds = yes; then
26834 cat >>confdefs.h
<<\_ACEOF
26835 #define HAVE_AS_IX86_FILDS 1
26840 echo "$as_me:$LINENO: checking assembler for fildq and fistpq mnemonics" >&5
26841 echo $ECHO_N "checking assembler for fildq and fistpq mnemonics... $ECHO_C" >&6
26842 if test "${gcc_cv_as_ix86_fildq+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26845 gcc_cv_as_ix86_fildq
=no
26846 if test x
$gcc_cv_as != x
; then
26847 echo 'fildq mem; fistpq mem' > conftest.s
26848 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850 (eval $ac_try) 2>&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); }; }
26855 gcc_cv_as_ix86_fildq
=yes
26857 echo "configure: failed program was" >&5
26860 rm -f conftest.o conftest.s
26863 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_fildq" >&5
26864 echo "${ECHO_T}$gcc_cv_as_ix86_fildq" >&6
26865 if test $gcc_cv_as_ix86_fildq = yes; then
26867 cat >>confdefs.h
<<\_ACEOF
26868 #define HAVE_AS_IX86_FILDQ 1
26873 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
26874 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
26875 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
26876 echo $ECHO_N "(cached) $ECHO_C" >&6
26878 gcc_cv_as_ix86_cmov_sun_syntax
=no
26879 if test x
$gcc_cv_as != x
; then
26880 echo 'cmovl.l %edx, %eax' > conftest.s
26881 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26883 (eval $ac_try) 2>&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); }; }
26888 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26890 echo "configure: failed program was" >&5
26893 rm -f conftest.o conftest.s
26896 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26897 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
26898 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26900 cat >>confdefs.h
<<\_ACEOF
26901 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
26906 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
26907 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
26908 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
26909 echo $ECHO_N "(cached) $ECHO_C" >&6
26911 gcc_cv_as_ix86_ffreep
=no
26912 if test x
$gcc_cv_as != x
; then
26913 echo 'ffreep %st(1)' > conftest.s
26914 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; }
26921 gcc_cv_as_ix86_ffreep
=yes
26923 echo "configure: failed program was" >&5
26926 rm -f conftest.o conftest.s
26929 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
26930 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
26931 if test $gcc_cv_as_ix86_ffreep = yes; then
26933 cat >>confdefs.h
<<\_ACEOF
26934 #define HAVE_AS_IX86_FFREEP 1
26939 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
26940 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
26941 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26944 gcc_cv_as_ix86_sahf
=no
26945 if test x
$gcc_cv_as != x
; then
26946 echo 'sahf' > conftest.s
26947 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; }
26954 gcc_cv_as_ix86_sahf
=yes
26956 echo "configure: failed program was" >&5
26959 rm -f conftest.o conftest.s
26962 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
26963 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
26964 if test $gcc_cv_as_ix86_sahf = yes; then
26966 cat >>confdefs.h
<<\_ACEOF
26967 #define HAVE_AS_IX86_SAHF 1
26972 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
26973 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
26974 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
26975 echo $ECHO_N "(cached) $ECHO_C" >&6
26977 gcc_cv_as_ix86_diff_sect_delta
=no
26978 if test x
$gcc_cv_as != x
; then
26979 echo '.section .rodata
26985 .L2: nop' > conftest.s
26986 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); }; }
26993 gcc_cv_as_ix86_diff_sect_delta
=yes
26995 echo "configure: failed program was" >&5
26998 rm -f conftest.o conftest.s
27001 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27002 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
27003 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27005 cat >>confdefs.h
<<\_ACEOF
27006 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
27011 # This one is used unconditionally by i386.[ch]; it is to be defined
27012 # to 1 if the feature is present, 0 otherwise.
27013 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
27014 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
27015 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
27016 echo $ECHO_N "(cached) $ECHO_C" >&6
27018 gcc_cv_as_ix86_gotoff_in_data
=no
27019 if test $in_tree_gas = yes; then
27020 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27021 then gcc_cv_as_ix86_gotoff_in_data
=yes
27023 elif test x
$gcc_cv_as != x
; then
27028 .long .L0@GOTOFF' > conftest.s
27029 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; }
27036 gcc_cv_as_ix86_gotoff_in_data
=yes
27038 echo "configure: failed program was" >&5
27041 rm -f conftest.o conftest.s
27044 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27045 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
27048 cat >>confdefs.h
<<_ACEOF
27049 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27055 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
27056 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
27057 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
27058 echo $ECHO_N "(cached) $ECHO_C" >&6
27060 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27061 if test $in_tree_gas = yes; then
27062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27063 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27065 elif test x
$gcc_cv_as != x
; then
27067 addl r15 = @ltoffx(x#), gp
27069 ld8.mov r16 = [r15], x#' > conftest.s
27070 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; }
27077 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27079 echo "configure: failed program was" >&5
27082 rm -f conftest.o conftest.s
27085 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27086 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
27087 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27089 cat >>confdefs.h
<<\_ACEOF
27090 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
27099 *-*-aix*) conftest_s
=' .machine "pwr5"
27103 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
27104 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
27105 if test "${gcc_cv_as_machine_directive+set}" = set; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27108 gcc_cv_as_machine_directive
=no
27109 if test x
$gcc_cv_as != x
; then
27110 echo ' .machine ppc7400' > conftest.s
27111 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27113 (eval $ac_try) 2>&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); }; }
27118 gcc_cv_as_machine_directive
=yes
27120 echo "configure: failed program was" >&5
27123 rm -f conftest.o conftest.s
27126 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
27127 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
27129 if test x
$gcc_cv_as_machine_directive != xyes
; then
27130 echo "*** This target requires an assembler supporting \".machine\"" >&2
27131 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27132 test x
$build = x
$target && exit 1
27136 *) conftest_s
=' .machine power4
27141 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
27142 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
27143 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
27144 echo $ECHO_N "(cached) $ECHO_C" >&6
27146 gcc_cv_as_powerpc_mfcrf
=no
27147 if test $in_tree_gas = yes; then
27148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27149 then gcc_cv_as_powerpc_mfcrf
=yes
27151 elif test x
$gcc_cv_as != x
; then
27152 echo "$conftest_s" > conftest.s
27153 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }
27160 gcc_cv_as_powerpc_mfcrf
=yes
27162 echo "configure: failed program was" >&5
27165 rm -f conftest.o conftest.s
27168 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
27169 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
27170 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27172 cat >>confdefs.h
<<\_ACEOF
27173 #define HAVE_AS_MFCRF 1
27179 *-*-aix*) conftest_s
=' .machine "pwr5"
27182 *) conftest_s
=' .machine power5
27187 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
27188 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
27189 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
27190 echo $ECHO_N "(cached) $ECHO_C" >&6
27192 gcc_cv_as_powerpc_popcntb
=no
27193 if test $in_tree_gas = yes; then
27194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27195 then gcc_cv_as_powerpc_popcntb
=yes
27197 elif test x
$gcc_cv_as != x
; then
27198 echo "$conftest_s" > conftest.s
27199 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27201 (eval $ac_try) 2>&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; }
27206 gcc_cv_as_powerpc_popcntb
=yes
27208 echo "configure: failed program was" >&5
27211 rm -f conftest.o conftest.s
27214 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
27215 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
27216 if test $gcc_cv_as_powerpc_popcntb = yes; then
27218 cat >>confdefs.h
<<\_ACEOF
27219 #define HAVE_AS_POPCNTB 1
27225 *-*-aix*) conftest_s
=' .machine "pwr5x"
27228 *) conftest_s
=' .machine power5
27233 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
27234 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
27235 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
27236 echo $ECHO_N "(cached) $ECHO_C" >&6
27238 gcc_cv_as_powerpc_fprnd
=no
27239 if test $in_tree_gas = yes; then
27240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27241 then gcc_cv_as_powerpc_fprnd
=yes
27243 elif test x
$gcc_cv_as != x
; then
27244 echo "$conftest_s" > conftest.s
27245 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27247 (eval $ac_try) 2>&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }
27252 gcc_cv_as_powerpc_fprnd
=yes
27254 echo "configure: failed program was" >&5
27257 rm -f conftest.o conftest.s
27260 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
27261 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
27262 if test $gcc_cv_as_powerpc_fprnd = yes; then
27264 cat >>confdefs.h
<<\_ACEOF
27265 #define HAVE_AS_FPRND 1
27271 *-*-aix*) conftest_s
=' .machine "pwr6"
27274 *) conftest_s
=' .machine power6
27279 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
27280 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
27281 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
27282 echo $ECHO_N "(cached) $ECHO_C" >&6
27284 gcc_cv_as_powerpc_mfpgpr
=no
27285 if test $in_tree_gas = yes; then
27286 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27287 then gcc_cv_as_powerpc_mfpgpr
=yes
27289 elif test x
$gcc_cv_as != x
; then
27290 echo "$conftest_s" > conftest.s
27291 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27293 (eval $ac_try) 2>&5
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; }
27298 gcc_cv_as_powerpc_mfpgpr
=yes
27300 echo "configure: failed program was" >&5
27303 rm -f conftest.o conftest.s
27306 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
27307 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
27308 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
27310 cat >>confdefs.h
<<\_ACEOF
27311 #define HAVE_AS_MFPGPR 1
27317 *-*-aix*) conftest_s
=' .csect .text[PR]
27319 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27323 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27324 *) conftest_s
=' .text
27326 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27329 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
27330 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
27331 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
27332 echo $ECHO_N "(cached) $ECHO_C" >&6
27334 gcc_cv_as_powerpc_rel16
=no
27335 if test $in_tree_gas = yes; then
27336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27337 then gcc_cv_as_powerpc_rel16
=yes
27339 elif test x
$gcc_cv_as != x
; then
27340 echo "$conftest_s" > conftest.s
27341 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343 (eval $ac_try) 2>&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; }
27348 gcc_cv_as_powerpc_rel16
=yes
27350 echo "configure: failed program was" >&5
27353 rm -f conftest.o conftest.s
27356 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
27357 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
27358 if test $gcc_cv_as_powerpc_rel16 = yes; then
27360 cat >>confdefs.h
<<\_ACEOF
27361 #define HAVE_AS_REL16 1
27367 *-*-aix*) conftest_s
=' .machine "pwr6"
27370 *) conftest_s
=' .machine power6
27375 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
27376 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
27377 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
27378 echo $ECHO_N "(cached) $ECHO_C" >&6
27380 gcc_cv_as_powerpc_cmpb
=no
27381 if test $in_tree_gas = yes; then
27382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27383 then gcc_cv_as_powerpc_cmpb
=yes
27385 elif test x
$gcc_cv_as != x
; then
27386 echo "$conftest_s" > conftest.s
27387 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389 (eval $ac_try) 2>&5
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; }
27394 gcc_cv_as_powerpc_cmpb
=yes
27396 echo "configure: failed program was" >&5
27399 rm -f conftest.o conftest.s
27402 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
27403 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
27404 if test $gcc_cv_as_powerpc_cmpb = yes; then
27406 cat >>confdefs.h
<<\_ACEOF
27407 #define HAVE_AS_CMPB 1
27413 *-*-aix*) conftest_s
=' .machine "pwr6"
27416 *) conftest_s
=' .machine power6
27421 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
27422 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
27423 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27426 gcc_cv_as_powerpc_dfp
=no
27427 if test $in_tree_gas = yes; then
27428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27429 then gcc_cv_as_powerpc_dfp
=yes
27431 elif test x
$gcc_cv_as != x
; then
27432 echo "$conftest_s" > conftest.s
27433 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435 (eval $ac_try) 2>&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); }; }
27440 gcc_cv_as_powerpc_dfp
=yes
27442 echo "configure: failed program was" >&5
27445 rm -f conftest.o conftest.s
27448 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
27449 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
27450 if test $gcc_cv_as_powerpc_dfp = yes; then
27452 cat >>confdefs.h
<<\_ACEOF
27453 #define HAVE_AS_DFP 1
27459 *-*-aix*) conftest_s
=' .machine "pwr7"
27462 *) conftest_s
=' .machine power7
27467 echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
27468 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
27469 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 gcc_cv_as_powerpc_vsx
=no
27473 if test $in_tree_gas = yes; then
27474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27475 then gcc_cv_as_powerpc_vsx
=yes
27477 elif test x
$gcc_cv_as != x
; then
27478 echo "$conftest_s" > conftest.s
27479 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481 (eval $ac_try) 2>&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }
27486 gcc_cv_as_powerpc_vsx
=yes
27488 echo "configure: failed program was" >&5
27491 rm -f conftest.o conftest.s
27494 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
27495 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
27496 if test $gcc_cv_as_powerpc_vsx = yes; then
27498 cat >>confdefs.h
<<\_ACEOF
27499 #define HAVE_AS_VSX 1
27505 *-*-aix*) conftest_s
=' .machine "pwr7"
27508 *) conftest_s
=' .machine power7
27513 echo "$as_me:$LINENO: checking assembler for popcntd support" >&5
27514 echo $ECHO_N "checking assembler for popcntd support... $ECHO_C" >&6
27515 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then
27516 echo $ECHO_N "(cached) $ECHO_C" >&6
27518 gcc_cv_as_powerpc_popcntd
=no
27519 if test $in_tree_gas = yes; then
27520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27521 then gcc_cv_as_powerpc_popcntd
=yes
27523 elif test x
$gcc_cv_as != x
; then
27524 echo "$conftest_s" > conftest.s
27525 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }
27532 gcc_cv_as_powerpc_popcntd
=yes
27534 echo "configure: failed program was" >&5
27537 rm -f conftest.o conftest.s
27540 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntd" >&5
27541 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntd" >&6
27542 if test $gcc_cv_as_powerpc_popcntd = yes; then
27544 cat >>confdefs.h
<<\_ACEOF
27545 #define HAVE_AS_POPCNTD 1
27551 *-*-aix*) conftest_s
=' .csect .text[PR]
27553 *) conftest_s
=' .text
27557 echo "$as_me:$LINENO: checking assembler for lwsync support" >&5
27558 echo $ECHO_N "checking assembler for lwsync support... $ECHO_C" >&6
27559 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then
27560 echo $ECHO_N "(cached) $ECHO_C" >&6
27562 gcc_cv_as_powerpc_lwsync
=no
27563 if test $in_tree_gas = yes; then
27564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27565 then gcc_cv_as_powerpc_lwsync
=yes
27567 elif test x
$gcc_cv_as != x
; then
27568 echo "$conftest_s" > conftest.s
27569 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; }
27576 gcc_cv_as_powerpc_lwsync
=yes
27578 echo "configure: failed program was" >&5
27581 rm -f conftest.o conftest.s
27584 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_lwsync" >&5
27585 echo "${ECHO_T}$gcc_cv_as_powerpc_lwsync" >&6
27586 if test $gcc_cv_as_powerpc_lwsync = yes; then
27588 cat >>confdefs.h
<<\_ACEOF
27589 #define HAVE_AS_LWSYNC 1
27594 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
27595 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
27596 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
27597 echo $ECHO_N "(cached) $ECHO_C" >&6
27599 gcc_cv_as_powerpc_gnu_attribute
=no
27600 if test $in_tree_gas = yes; then
27601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27602 then gcc_cv_as_powerpc_gnu_attribute
=yes
27604 elif test x
$gcc_cv_as != x
; then
27605 echo '.gnu_attribute 4,1' > conftest.s
27606 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27608 (eval $ac_try) 2>&5
27610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); }; }
27613 gcc_cv_as_powerpc_gnu_attribute
=yes
27615 echo "configure: failed program was" >&5
27618 rm -f conftest.o conftest.s
27621 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27622 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
27623 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27625 cat >>confdefs.h
<<\_ACEOF
27626 #define HAVE_AS_GNU_ATTRIBUTE 1
27631 echo "$as_me:$LINENO: checking assembler for tls marker support" >&5
27632 echo $ECHO_N "checking assembler for tls marker support... $ECHO_C" >&6
27633 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then
27634 echo $ECHO_N "(cached) $ECHO_C" >&6
27636 gcc_cv_as_powerpc_tls_markers
=no
27637 if test $in_tree_gas = yes; then
27638 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27639 then gcc_cv_as_powerpc_tls_markers
=yes
27641 elif test x
$gcc_cv_as != x
; then
27642 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27643 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }
27650 gcc_cv_as_powerpc_tls_markers
=yes
27652 echo "configure: failed program was" >&5
27655 rm -f conftest.o conftest.s
27658 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_tls_markers" >&5
27659 echo "${ECHO_T}$gcc_cv_as_powerpc_tls_markers" >&6
27660 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27662 cat >>confdefs.h
<<\_ACEOF
27663 #define HAVE_AS_TLS_MARKERS 1
27670 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
27671 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
27672 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
27673 echo $ECHO_N "(cached) $ECHO_C" >&6
27675 gcc_cv_as_mips_explicit_relocs
=no
27676 if test $in_tree_gas = yes; then
27677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27678 then gcc_cv_as_mips_explicit_relocs
=yes
27680 elif test x
$gcc_cv_as != x
; then
27681 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27682 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27684 (eval $ac_try) 2>&5
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); }; }
27689 gcc_cv_as_mips_explicit_relocs
=yes
27691 echo "configure: failed program was" >&5
27694 rm -f conftest.o conftest.s
27697 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
27698 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
27699 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27700 if test x
$target_cpu_default = x
27701 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27702 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27705 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
27706 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
27707 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
27708 echo $ECHO_N "(cached) $ECHO_C" >&6
27710 gcc_cv_as_mips_no_shared
=no
27711 if test $in_tree_gas = yes; then
27712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27713 then gcc_cv_as_mips_no_shared
=yes
27715 elif test x
$gcc_cv_as != x
; then
27716 echo 'nop' > conftest.s
27717 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; }
27724 gcc_cv_as_mips_no_shared
=yes
27726 echo "configure: failed program was" >&5
27729 rm -f conftest.o conftest.s
27732 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
27733 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
27734 if test $gcc_cv_as_mips_no_shared = yes; then
27736 cat >>confdefs.h
<<\_ACEOF
27737 #define HAVE_AS_NO_SHARED 1
27742 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
27743 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
27744 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27747 gcc_cv_as_mips_gnu_attribute
=no
27748 if test $in_tree_gas = yes; then
27749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27750 then gcc_cv_as_mips_gnu_attribute
=yes
27752 elif test x
$gcc_cv_as != x
; then
27753 echo '.gnu_attribute 4,1' > conftest.s
27754 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; }
27761 gcc_cv_as_mips_gnu_attribute
=yes
27763 echo "configure: failed program was" >&5
27766 rm -f conftest.o conftest.s
27769 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
27770 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
27771 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27773 cat >>confdefs.h
<<\_ACEOF
27774 #define HAVE_AS_GNU_ATTRIBUTE 1
27779 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
27780 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
27781 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
27784 gcc_cv_as_mips_dtprelword
=no
27785 if test $in_tree_gas = yes; then
27786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27787 then gcc_cv_as_mips_dtprelword
=yes
27789 elif test x
$gcc_cv_as != x
; then
27790 echo '.section .tdata,"awT",@progbits
27794 .dtprelword x+0x8000' > conftest.s
27795 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797 (eval $ac_try) 2>&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; }
27802 gcc_cv_as_mips_dtprelword
=yes
27804 echo "configure: failed program was" >&5
27807 rm -f conftest.o conftest.s
27810 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
27811 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
27812 if test $gcc_cv_as_mips_dtprelword = yes; then
27814 cat >>confdefs.h
<<\_ACEOF
27815 #define HAVE_AS_DTPRELWORD 1
27822 # Mips and HP-UX need the GNU assembler.
27823 # Linux on IA64 might be able to use the Intel assembler.
27826 mips
*-*-* |
*-*-hpux* )
27827 if test x
$gas_flag = xyes \
27828 ||
test x
"$host" != x
"$build" \
27829 ||
test ! -x "$gcc_cv_as" \
27830 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27833 echo "*** This configuration requires the GNU assembler" >&2
27839 # ??? Not all targets support dwarf2 debug_line, even within a version
27840 # of gas. Moreover, we need to emit a valid instruction to trigger any
27841 # info to the output file. So, as supported targets are added to gas 2.11,
27842 # add some instruction here to (also) show we expect this might work.
27843 # ??? Once 2.11 is released, probably need to add first known working
27844 # version to the per-target configury.
27846 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
27847 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
27848 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
27849 | spu-
*-* | fido
*-*-* | m32c-
*-*)
27852 ia64
*-*-* | s390
*-*-*)
27859 if test x
"$insn" != x
; then
27861 .file 1 \"conftest.s\"
27864 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
27865 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
27866 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
27867 echo $ECHO_N "(cached) $ECHO_C" >&6
27869 gcc_cv_as_dwarf2_debug_line
=no
27870 if test $in_tree_gas = yes; then
27871 if test $in_tree_gas_is_elf = yes \
27872 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27873 then gcc_cv_as_dwarf2_debug_line
=yes
27875 elif test x
$gcc_cv_as != x
; then
27876 echo "$conftest_s" > conftest.s
27877 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879 (eval $ac_try) 2>&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; }
27884 if test x
$gcc_cv_objdump != x \
27885 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27886 |
grep debug_line
> /dev
/null
2>&1; then
27887 gcc_cv_as_dwarf2_debug_line
=yes
27890 echo "configure: failed program was" >&5
27893 rm -f conftest.o conftest.s
27896 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
27897 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
27900 # The .debug_line file table must be in the exact order that
27901 # we specified the files, since these indices are also used
27902 # by DW_AT_decl_file. Approximate this test by testing if
27903 # the assembler bitches if the same index is assigned twice.
27904 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
27905 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
27906 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
27907 echo $ECHO_N "(cached) $ECHO_C" >&6
27909 gcc_cv_as_dwarf2_file_buggy
=no
27910 if test x
$gcc_cv_as != x
; then
27911 echo ' .file 1 "foo.s"
27912 .file 1 "bar.s"' > conftest.s
27913 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
27914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27915 (eval $ac_try) 2>&5
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); }; }
27920 gcc_cv_as_dwarf2_file_buggy
=yes
27922 echo "configure: failed program was" >&5
27925 rm -f conftest.o conftest.s
27928 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27929 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
27932 if test $gcc_cv_as_dwarf2_debug_line = yes \
27933 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27935 cat >>confdefs.h
<<\_ACEOF
27936 #define HAVE_AS_DWARF2_DEBUG_LINE 1
27941 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
27942 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
27943 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
27944 echo $ECHO_N "(cached) $ECHO_C" >&6
27946 gcc_cv_as_gdwarf2_flag
=no
27947 if test $in_tree_gas = yes; then
27948 if test $in_tree_gas_is_elf = yes \
27949 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27950 then gcc_cv_as_gdwarf2_flag
=yes
27952 elif test x
$gcc_cv_as != x
; then
27953 echo "$insn" > conftest.s
27954 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
27955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27956 (eval $ac_try) 2>&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); }; }
27961 gcc_cv_as_gdwarf2_flag
=yes
27963 echo "configure: failed program was" >&5
27966 rm -f conftest.o conftest.s
27969 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
27970 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
27971 if test $gcc_cv_as_gdwarf2_flag = yes; then
27973 cat >>confdefs.h
<<\_ACEOF
27974 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
27979 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
27980 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
27981 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
27982 echo $ECHO_N "(cached) $ECHO_C" >&6
27984 gcc_cv_as_gstabs_flag
=no
27985 if test $in_tree_gas = yes; then
27986 if test $in_tree_gas_is_elf = yes \
27987 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27988 then gcc_cv_as_gstabs_flag
=yes
27990 elif test x
$gcc_cv_as != x
; then
27991 echo "$insn" > conftest.s
27992 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; }
27999 # The native Solaris 9/Intel assembler doesn't understand --gstabs
28000 # and warns about it, but still exits successfully. So check for
28002 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
28003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28004 (eval $ac_try) 2>&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; }
28009 else gcc_cv_as_gstabs_flag
=yes
28012 echo "configure: failed program was" >&5
28015 rm -f conftest.o conftest.s
28018 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
28019 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
28020 if test $gcc_cv_as_gstabs_flag = yes; then
28022 cat >>confdefs.h
<<\_ACEOF
28023 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
28028 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
28029 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
28030 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28033 gcc_cv_as_debug_prefix_map_flag
=no
28034 if test $in_tree_gas = yes; then
28035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28036 then gcc_cv_as_debug_prefix_map_flag
=yes
28038 elif test x
$gcc_cv_as != x
; then
28039 echo "$insn" > conftest.s
28040 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042 (eval $ac_try) 2>&5
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; }
28047 gcc_cv_as_debug_prefix_map_flag
=yes
28049 echo "configure: failed program was" >&5
28052 rm -f conftest.o conftest.s
28055 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28056 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
28057 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28059 cat >>confdefs.h
<<\_ACEOF
28060 #define HAVE_AS_DEBUG_PREFIX_MAP 1
28066 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
28067 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
28068 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
28069 echo $ECHO_N "(cached) $ECHO_C" >&6
28071 gcc_cv_as_lcomm_with_alignment
=no
28072 if test x
$gcc_cv_as != x
; then
28073 echo '.lcomm bar,4,16' > conftest.s
28074 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
28075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076 (eval $ac_try) 2>&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; }
28081 gcc_cv_as_lcomm_with_alignment
=yes
28083 echo "configure: failed program was" >&5
28086 rm -f conftest.o conftest.s
28089 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
28090 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
28091 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28093 cat >>confdefs.h
<<\_ACEOF
28094 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
28099 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
28100 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
28101 if test "${gcc_cv_as_line_zero+set}" = set; then
28102 echo $ECHO_N "(cached) $ECHO_C" >&6
28104 gcc_cv_as_line_zero
=no
28105 if test $in_tree_gas = yes; then
28106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28107 then gcc_cv_as_line_zero
=yes
28109 elif test "x$gcc_cv_as" != x
; then
28110 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28111 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28113 (eval $ac_try) 2>&5
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); }; } &&
28117 test "x`cat conftest.out`" = x
28119 gcc_cv_as_line_zero
=yes
28121 echo "configure: failed program was" >&5
28123 echo "configure: error output was" >&5
28124 cat conftest.out
>&5
28126 rm -f conftest.o conftest.s conftest.out
28129 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
28130 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
28131 if test "x$gcc_cv_as_line_zero" = xyes
; then
28133 cat >>confdefs.h
<<\_ACEOF
28134 #define HAVE_AS_LINE_ZERO 1
28139 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
28140 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
28141 gcc_cv_ld_eh_frame_hdr
=no
28142 if test $in_tree_ld = yes ; then
28143 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 \
28144 && test $in_tree_ld_is_elf = yes; then
28145 gcc_cv_ld_eh_frame_hdr
=yes
28147 elif test x
$gcc_cv_ld != x
; then
28148 # Check if linker supports --eh-frame-hdr option
28149 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
28150 gcc_cv_ld_eh_frame_hdr
=yes
28154 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28156 cat >>confdefs.h
<<\_ACEOF
28157 #define HAVE_LD_EH_FRAME_HDR 1
28161 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
28162 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
28164 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
28165 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
28167 if test $in_tree_ld = yes ; then
28168 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 \
28169 && test $in_tree_ld_is_elf = yes; then
28172 elif test x
$gcc_cv_ld != x
; then
28173 # Check if linker supports -pie option
28174 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
28178 if test x
"$gcc_cv_ld_pie" = xyes
; then
28180 cat >>confdefs.h
<<\_ACEOF
28181 #define HAVE_LD_PIE 1
28185 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
28186 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
28188 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
28189 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
28190 gcc_cv_ld_eh_gc_sections
=no
28191 if test $in_tree_ld = yes ; then
28192 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 \
28193 && test $in_tree_ld_is_elf = yes; then
28194 gcc_cv_ld_eh_gc_sections
=yes
28196 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28197 cat > conftest.s
<<EOF
28200 .type _start, @function
28203 .size _start, .-_start
28204 .section .text.foo,"ax",@progbits
28205 .type foo, @function
28209 .section .gcc_except_table.foo,"a",@progbits
28212 .section .eh_frame,"a",@progbits
28215 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28216 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28217 |
grep "gc-sections option ignored" > /dev
/null
; then
28218 gcc_cv_ld_eh_gc_sections
=no
28219 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
28220 gcc_cv_ld_eh_gc_sections
=yes
28221 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28222 if test x
$gcc_cv_as_comdat_group != xyes
; then
28223 gcc_cv_ld_eh_gc_sections
=no
28224 cat > conftest.s
<<EOF
28227 .type _start, @function
28230 .size _start, .-_start
28231 .section .gnu.linkonce.t.foo,"ax",@progbits
28232 .type foo, @function
28236 .section .gcc_except_table.foo,"a",@progbits
28239 .section .eh_frame,"a",@progbits
28242 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28243 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28244 |
grep "gc-sections option ignored" > /dev
/null
; then
28245 gcc_cv_ld_eh_gc_sections
=no
28246 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
28247 gcc_cv_ld_eh_gc_sections
=yes
28253 rm -f conftest.s conftest.o conftest
28257 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28258 gcc_cv_ld_eh_gc_sections
=no
28261 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28263 cat >>confdefs.h
<<\_ACEOF
28264 #define HAVE_LD_EH_GC_SECTIONS 1
28268 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
28269 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
28275 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
28276 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
28277 if test "${gcc_cv_ld_as_needed+set}" = set; then
28278 echo $ECHO_N "(cached) $ECHO_C" >&6
28280 gcc_cv_ld_as_needed
=no
28281 if test $in_tree_ld = yes ; then
28282 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 \
28283 && test $in_tree_ld_is_elf = yes; then
28284 gcc_cv_ld_as_needed
=yes
28286 elif test x
$gcc_cv_ld != x
; then
28287 # Check if linker supports --as-needed and --no-as-needed options
28288 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
28289 gcc_cv_ld_as_needed
=yes
28294 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
28295 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
28296 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28298 cat >>confdefs.h
<<\_ACEOF
28299 #define HAVE_LD_AS_NEEDED 1
28304 case "$target:$tm_file" in
28305 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28306 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
28307 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
28308 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28311 gcc_cv_ld_no_dot_syms
=no
28312 if test $in_tree_ld = yes ; then
28313 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
28314 gcc_cv_ld_no_dot_syms
=yes
28316 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28317 cat > conftest1.s
<<EOF
28321 cat > conftest2.s
<<EOF
28322 .section ".opd","aw"
28325 .type foo,@function
28327 .quad .LEfoo,.TOC.@tocbase,0
28333 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28334 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28335 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28336 gcc_cv_ld_no_dot_syms
=yes
28338 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28342 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
28343 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
28344 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28346 cat >>confdefs.h
<<\_ACEOF
28347 #define HAVE_LD_NO_DOT_SYMS 1
28354 echo "$as_me:$LINENO: checking linker --build-id support" >&5
28355 echo $ECHO_N "checking linker --build-id support... $ECHO_C" >&6
28356 if test "${gcc_cv_ld_buildid+set}" = set; then
28357 echo $ECHO_N "(cached) $ECHO_C" >&6
28359 gcc_cv_ld_buildid
=no
28360 if test $in_tree_ld = yes ; then
28361 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28362 "$gcc_cv_gld_minor_version" -ge 18 -o \
28363 "$gcc_cv_gld_major_version" -gt 2 \
28364 && test $in_tree_ld_is_elf = yes; then
28365 gcc_cv_ld_buildid
=yes
28367 elif test x
$gcc_cv_ld != x
; then
28368 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
28369 gcc_cv_ld_buildid
=yes
28373 echo "$as_me:$LINENO: result: $gcc_cv_ld_buildid" >&5
28374 echo "${ECHO_T}$gcc_cv_ld_buildid" >&6
28375 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28377 cat >>confdefs.h
<<\_ACEOF
28378 #define HAVE_LD_BUILDID 1
28383 # Check whether --enable-linker-build-id or --disable-linker-build-id was given.
28384 if test "${enable_linker_build_id+set}" = set; then
28385 enableval
="$enable_linker_build_id"
28388 enable_linker_build_id
=no
28391 if test x
"$enable_linker_build_id" = xyes
; then
28392 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28394 cat >>confdefs.h
<<\_ACEOF
28395 #define ENABLE_LD_BUILDID 1
28399 { echo "$as_me:$LINENO: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28400 echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28404 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
28405 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
28406 if test "${gcc_cv_ld_sysroot+set}" = set; then
28407 echo $ECHO_N "(cached) $ECHO_C" >&6
28409 gcc_cv_ld_sysroot
=no
28410 if test $in_tree_ld = yes ; then
28411 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
28412 gcc_cv_ld_sysroot
=yes
28414 elif test x
$gcc_cv_ld != x
; then
28415 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28416 gcc_cv_ld_sysroot
=yes
28420 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
28421 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
28422 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28424 cat >>confdefs.h
<<\_ACEOF
28425 #define HAVE_LD_SYSROOT 1
28430 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28431 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28432 && test "$prefix" != "NONE"; then
28434 cat >>confdefs.h
<<_ACEOF
28435 #define PREFIX_INCLUDE_DIR "$prefix/include"
28440 # Test for stack protector support in target C library.
28441 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
28442 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
28443 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
28444 echo $ECHO_N "(cached) $ECHO_C" >&6
28446 gcc_cv_libc_provides_ssp
=no
28448 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
28449 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
28450 if test "x$with_sysroot" = x
; then
28451 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
28452 elif test "x$with_build_sysroot" != "x"; then
28453 glibc_header_dir
="${with_build_sysroot}/usr/include"
28454 elif test "x$with_sysroot" = xyes
; then
28455 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
28457 glibc_header_dir
="${with_sysroot}/usr/include"
28460 glibc_header_dir
=/usr
/include
28462 # glibc 2.4 and later provides __stack_chk_fail and
28463 # either __stack_chk_guard, or TLS access to stack guard canary.
28464 if test -f $glibc_header_dir/features.h \
28465 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28466 $glibc_header_dir/features.h
> /dev
/null
; then
28467 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
28468 $glibc_header_dir/features.h
> /dev
/null
; then
28469 gcc_cv_libc_provides_ssp
=yes
28470 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
28471 $glibc_header_dir/features.h
> /dev
/null \
28472 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
28473 $glibc_header_dir/features.h
> /dev
/null
; then
28474 gcc_cv_libc_provides_ssp
=yes
28475 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28476 $glibc_header_dir/features.h
> /dev
/null
&& \
28477 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
28478 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28479 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28480 gcc_cv_libc_provides_ssp
=yes
28485 # Avoid complicated tests (see
28486 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28487 # simply assert that glibc does provide this, which is true for all
28488 # realistically usable GNU/Hurd configurations.
28489 gcc_cv_libc_provides_ssp
=yes;;
28491 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
28492 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
28493 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
28494 echo $ECHO_N "(cached) $ECHO_C" >&6
28496 cat >conftest.
$ac_ext <<_ACEOF
28499 cat confdefs.h
>>conftest.
$ac_ext
28500 cat >>conftest.
$ac_ext <<_ACEOF
28501 /* end confdefs.h. */
28502 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
28503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28504 #define __stack_chk_fail innocuous___stack_chk_fail
28506 /* System header to define __stub macros and hopefully few prototypes,
28507 which can conflict with char __stack_chk_fail (); below.
28508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28509 <limits.h> exists even on freestanding compilers. */
28512 # include <limits.h>
28514 # include <assert.h>
28517 #undef __stack_chk_fail
28519 /* Override any gcc2 internal prototype to avoid an error. */
28524 /* We use char because int might match the return type of a gcc2
28525 builtin and then its argument prototype would still apply. */
28526 char __stack_chk_fail ();
28527 /* The GNU C library defines this for functions which it implements
28528 to always fail with ENOSYS. Some functions are actually named
28529 something starting with __ and the normal name is an alias. */
28530 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
28533 char (*f) () = __stack_chk_fail;
28542 return f != __stack_chk_fail;
28547 rm -f conftest.
$ac_objext conftest
$ac_exeext
28548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28549 (eval $ac_link) 2>conftest.er1
28551 grep -v '^ *+' conftest.er1
>conftest.err
28553 cat conftest.err
>&5
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); } &&
28556 { ac_try
='test -z "$ac_c_werror_flag"
28557 || test ! -s conftest.err'
28558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28559 (eval $ac_try) 2>&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); }; } &&
28563 { ac_try
='test -s conftest$ac_exeext'
28564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565 (eval $ac_try) 2>&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); }; }; then
28569 ac_cv_func___stack_chk_fail
=yes
28571 echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.
$ac_ext >&5
28574 ac_cv_func___stack_chk_fail
=no
28576 rm -f conftest.err conftest.
$ac_objext \
28577 conftest
$ac_exeext conftest.
$ac_ext
28579 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
28580 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
28581 if test $ac_cv_func___stack_chk_fail = yes; then
28582 gcc_cv_libc_provides_ssp
=yes
28584 echo "no __stack_chk_fail on this target"
28588 *) gcc_cv_libc_provides_ssp
=no
;;
28591 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
28592 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
28594 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28596 cat >>confdefs.h
<<\_ACEOF
28597 #define TARGET_LIBC_PROVIDES_SSP 1
28602 # Check if TFmode long double should be used by default or not.
28603 # Some glibc targets used DFmode long double, but with glibc 2.4
28604 # and later they can use TFmode.
28606 powerpc
*-*-linux* | \
28607 powerpc
*-*-gnu* | \
28608 sparc
*-*-linux* | \
28612 # Check whether --with-long-double-128 or --without-long-double-128 was given.
28613 if test "${with_long_double_128+set}" = set; then
28614 withval
="$with_long_double_128"
28615 gcc_cv_target_ldbl128
="$with_long_double_128"
28617 gcc_cv_target_ldbl128
=no
28618 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
28619 if test "x$with_sysroot" = x
; then
28620 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
28621 elif test "x$with_build_sysroot" != "x"; then
28622 glibc_header_dir
="${with_build_sysroot}/usr/include"
28623 elif test "x$with_sysroot" = xyes
; then
28624 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
28626 glibc_header_dir
="${with_sysroot}/usr/include"
28629 glibc_header_dir
=/usr
/include
28631 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28632 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28633 && gcc_cv_target_ldbl128
=yes
28638 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28640 cat >>confdefs.h
<<\_ACEOF
28641 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
28646 # Find out what GC implementation we want, or may, use.
28648 # Check whether --with-gc or --without-gc was given.
28649 if test "${with_gc+set}" = set; then
28658 cat >>confdefs.h
<<\_ACEOF
28664 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
28665 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
28666 { (exit 1); exit 1; }; }
28673 echo "Using $GGC for garbage collection."
28675 # Libraries to use on the host. This will normally be set by the top
28676 # level Makefile. Here we simply capture the value for our Makefile.
28677 if test -z "${HOST_LIBS+set}"; then
28682 # Use the system's zlib library.
28684 zlibinc
="-I\$(srcdir)/../zlib"
28686 # Check whether --with-system-zlib or --without-system-zlib was given.
28687 if test "${with_system_zlib+set}" = set; then
28688 withval
="$with_system_zlib"
28697 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
28698 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
28699 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
28700 if test "${enable_maintainer_mode+set}" = set; then
28701 enableval
="$enable_maintainer_mode"
28702 maintainer_mode
=$enableval
28707 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
28708 echo "${ECHO_T}$maintainer_mode" >&6
28710 if test "$maintainer_mode" = "yes"; then
28720 # Make empty files to contain the specs and options for each language.
28721 # Then add #include lines to for a compiler that has specs and/or options.
28727 # These (without "all_") are set in each config-lang.in.
28728 # `language' must be a single word so is spelled singularly.
28731 all_outputs
='Makefile gccbug'
28732 # List of language makefile fragments.
28733 all_lang_makefrags
=
28734 # List of language subdirectory makefiles. Deprecated.
28735 all_lang_makefiles
=
28736 # Additional files for gengtype
28737 all_gtfiles
="$target_gtfiles"
28739 # These are the languages that are set in --enable-languages,
28740 # and are available in the GCC tree.
28741 all_selected_languages
=
28743 # Add the language fragments.
28744 # Languages are added via two mechanisms. Some information must be
28745 # recorded in makefile variables, these are defined in config-lang.in.
28746 # We accumulate them and plug them into the main Makefile.
28747 # The other mechanism is a set of hooks for each of the main targets
28748 # like `clean', `install', etc.
28750 language_hooks
="Make-hooks"
28752 for lang
in ${srcdir}/*/config-lang.
in
28754 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28756 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28757 if test "x$lang_alias" = x
28759 echo "$lang doesn't set \$language." 1>&2
28762 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28763 subdirs
="$subdirs $subdir"
28765 # $gcc_subdir is where the gcc integration files are to be found
28766 # for a language, both for internal compiler purposes (compiler
28767 # sources implementing front-end to GCC tree converters), and for
28768 # build infrastructure purposes (Make-lang.in, etc.)
28770 # This will be <subdir> (relative to $srcdir) if a line like
28771 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28772 # is found in <langdir>/config-lang.in, and will remain <langdir>
28775 # Except for the language alias (fetched above), the regular
28776 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28777 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28778 # only this and the language alias.
28780 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28781 if [ "$gcc_subdir" = "" ]; then
28782 gcc_subdir
="$subdir"
28785 case ",$enable_languages," in
28787 all_selected_languages
="$all_selected_languages $lang_alias"
28788 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28789 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28800 .
${srcdir}/$gcc_subdir/config-lang.
in
28801 if test "x$language" = x
28803 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28808 case ",$enable_languages," in
28809 *,$lang_alias,*) ;;
28811 for i
in $subdir_requires; do
28812 test -f "${srcdir}/$i/config-lang.in" && continue
28820 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28821 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28822 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28824 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28825 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28827 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
28828 then all_lang_makefiles
="$gcc_subdir/Makefile"
28830 all_languages
="$all_languages $language"
28831 all_compilers
="$all_compilers $compilers"
28832 all_outputs
="$all_outputs $outputs"
28833 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28836 # Pick up gtfiles for c
28838 .
${srcdir}/c-config-lang.
in
28839 all_gtfiles
="$all_gtfiles [c] $gtfiles"
28842 for language
in $all_selected_languages
28844 check_languages
="$check_languages check-$language"
28847 # We link each language in with a set of hooks, reached indirectly via
28848 # lang.${target}. Only do so for selected languages.
28852 target_list
="all.cross start.encap rest.encap tags \
28853 install-common install-man install-info install-pdf dvi pdf \
28854 html uninstall info man srcextra srcman srcinfo \
28855 mostlyclean clean distclean maintainer-clean"
28857 for t
in $target_list
28860 for lang
in $all_selected_languages
28864 echo "lang.$t: $x" >> Make-hooks
28873 echo "dir ." > .gdbinit
28874 echo "dir ${srcdir}" >> .gdbinit
28875 if test x
$gdb_needs_out_file_path = xyes
28877 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28879 if test "x$subdirs" != x
; then
28882 echo "dir ${srcdir}/$s" >> .gdbinit
28885 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28887 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28891 # Find a directory in which to install a shared libgcc.
28893 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
28894 if test "${enable_version_specific_runtime_libs+set}" = set; then
28895 enableval
="$enable_version_specific_runtime_libs"
28900 # Check whether --with-slibdir or --without-slibdir was given.
28901 if test "${with_slibdir+set}" = set; then
28902 withval
="$with_slibdir"
28903 slibdir
="$with_slibdir"
28905 if test "${enable_version_specific_runtime_libs+set}" = set; then
28906 slibdir
='$(libsubdir)'
28907 elif test "$host" != "$target"; then
28908 slibdir
='$(build_tooldir)/lib'
28910 slibdir
='$(libdir)'
28916 # Check whether --with-datarootdir or --without-datarootdir was given.
28917 if test "${with_datarootdir+set}" = set; then
28918 withval
="$with_datarootdir"
28919 datarootdir
="\${prefix}/$with_datarootdir"
28921 datarootdir
='$(prefix)/share'
28926 # Check whether --with-docdir or --without-docdir was given.
28927 if test "${with_docdir+set}" = set; then
28928 withval
="$with_docdir"
28929 docdir
="\${prefix}/$with_docdir"
28931 docdir
='$(datarootdir)'
28936 # Check whether --with-htmldir or --without-htmldir was given.
28937 if test "${with_htmldir+set}" = set; then
28938 withval
="$with_htmldir"
28939 htmldir
="\${prefix}/$with_htmldir"
28941 htmldir
='$(docdir)'
28945 # Substitute configuration variables
29008 if test x
${build} = x
${host} ; then
29009 if test x
${host} = x
${target} ; then
29010 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29012 echo "Links are now set up to build a cross-compiler" 1>&2
29013 echo " from ${host} to ${target}." 1>&2
29016 if test x
${host} = x
${target} ; then
29017 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29018 echo " for ${target}." 1>&2
29020 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29021 echo " from ${host} to ${target}." 1>&2
29028 case "${GMPLIBS}" in
29030 cat >>confdefs.h
<<\_ACEOF
29041 if test "x${CLOOGLIBS}" != "x" ; then
29043 cat >>confdefs.h
<<\_ACEOF
29044 #define HAVE_cloog 1
29049 # Check for plugin support
29050 # Check whether --enable-plugin or --disable-plugin was given.
29051 if test "${enable_plugin+set}" = set; then
29052 enableval
="$enable_plugin"
29053 enable_plugin
=$enableval
29055 enable_plugin
=yes; default_plugin
=yes
29059 if test x
"$enable_plugin" = x
"yes"; then
29060 # Check that the host supports -rdynamic and -ldl
29063 saved_LDFLAGS
="$LDFLAGS"
29068 LDFLAGS
="$LDFLAGS -rdynamic"
29069 echo "$as_me:$LINENO: checking for -rdynamic" >&5
29070 echo $ECHO_N "checking for -rdynamic... $ECHO_C" >&6
29071 cat >conftest.
$ac_ext <<_ACEOF
29074 cat confdefs.h
>>conftest.
$ac_ext
29075 cat >>conftest.
$ac_ext <<_ACEOF
29076 /* end confdefs.h. */
29086 rm -f conftest.
$ac_objext conftest
$ac_exeext
29087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29088 (eval $ac_link) 2>conftest.er1
29090 grep -v '^ *+' conftest.er1
>conftest.err
29092 cat conftest.err
>&5
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } &&
29095 { ac_try
='test -z "$ac_c_werror_flag"
29096 || test ! -s conftest.err'
29097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098 (eval $ac_try) 2>&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; } &&
29102 { ac_try
='test -s conftest$ac_exeext'
29103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29104 (eval $ac_try) 2>&5
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); }; }; then
29108 echo "$as_me:$LINENO: result: yes" >&5
29109 echo "${ECHO_T}yes" >&6; have_rdynamic
=yes
29111 echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.
$ac_ext >&5
29114 echo "$as_me:$LINENO: result: no" >&5
29115 echo "${ECHO_T}no" >&6
29117 rm -f conftest.err conftest.
$ac_objext \
29118 conftest
$ac_exeext conftest.
$ac_ext
29119 if test x
"$have_rdynamic" = x
"yes" ; then
29120 pluginlibs
="-rdynamic"
29124 LDFLAGS
="$LDFLAGS -ldl"
29125 echo "$as_me:$LINENO: checking for -ldl" >&5
29126 echo $ECHO_N "checking for -ldl... $ECHO_C" >&6
29127 cat >conftest.
$ac_ext <<_ACEOF
29130 cat confdefs.h
>>conftest.
$ac_ext
29131 cat >>conftest.
$ac_ext <<_ACEOF
29132 /* end confdefs.h. */
29137 volatile int f = 0; if (f) dlopen ("dummy", 0);
29142 rm -f conftest.
$ac_objext conftest
$ac_exeext
29143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29144 (eval $ac_link) 2>conftest.er1
29146 grep -v '^ *+' conftest.er1
>conftest.err
29148 cat conftest.err
>&5
29149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); } &&
29151 { ac_try
='test -z "$ac_c_werror_flag"
29152 || test ! -s conftest.err'
29153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154 (eval $ac_try) 2>&5
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; } &&
29158 { ac_try
='test -s conftest$ac_exeext'
29159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160 (eval $ac_try) 2>&5
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
29164 echo "$as_me:$LINENO: result: yes" >&5
29165 echo "${ECHO_T}yes" >&6; have_dl
=yes
29167 echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.
$ac_ext >&5
29170 echo "$as_me:$LINENO: result: no" >&5
29171 echo "${ECHO_T}no" >&6
29173 rm -f conftest.err conftest.
$ac_objext \
29174 conftest
$ac_exeext conftest.
$ac_ext
29175 if test x
"$have_dl" = x
"yes"; then
29176 pluginlibs
="$pluginlibs -ldl"
29179 # Check that we can build shared objects with -fPIC -shared
29180 LDFLAGS
="$LDFLAGS -fPIC -shared"
29181 echo "$as_me:$LINENO: checking for -fPIC -shared" >&5
29182 echo $ECHO_N "checking for -fPIC -shared... $ECHO_C" >&6
29183 cat >conftest.
$ac_ext <<_ACEOF
29186 cat confdefs.h
>>conftest.
$ac_ext
29187 cat >>conftest.
$ac_ext <<_ACEOF
29188 /* end confdefs.h. */
29198 rm -f conftest.
$ac_objext conftest
$ac_exeext
29199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29200 (eval $ac_link) 2>conftest.er1
29202 grep -v '^ *+' conftest.er1
>conftest.err
29204 cat conftest.err
>&5
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } &&
29207 { ac_try
='test -z "$ac_c_werror_flag"
29208 || test ! -s conftest.err'
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; } &&
29214 { ac_try
='test -s conftest$ac_exeext'
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 echo "$as_me:$LINENO: result: yes" >&5
29221 echo "${ECHO_T}yes" >&6; have_pic_shared
=yes
29223 echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.
$ac_ext >&5
29226 echo "$as_me:$LINENO: result: no" >&5
29227 echo "${ECHO_T}no" >&6; have_pic_shared
=no
29229 rm -f conftest.err conftest.
$ac_objext \
29230 conftest
$ac_exeext conftest.
$ac_ext
29231 if test x
"$have_pic_shared" != x
"yes"; then
29236 # If plugin support had been requested but not available, fail.
29237 if test x
"$enable_plugin" = x
"no" ; then
29238 if test x
"$default_plugin" != x
"yes"; then
29239 { { echo "$as_me:$LINENO: error:
29240 Building GCC with plugin support requires a host that supports
29241 -fPIC, -shared, -ldl and -rdynamic." >&5
29242 echo "$as_me: error:
29243 Building GCC with plugin support requires a host that supports
29244 -fPIC, -shared, -ldl and -rdynamic." >&2;}
29245 { (exit 1); exit 1; }; }
29249 LDFLAGS
="$saved_LDFLAGS"
29255 if test x
"$enable_plugin" = x
"yes"; then
29257 cat >>confdefs.h
<<\_ACEOF
29258 #define ENABLE_PLUGIN 1
29263 # Configure the subdirectories
29264 # AC_CONFIG_SUBDIRS($subdirs)
29266 # Create the Makefile
29267 # and configure language subdirectories
29268 ac_config_files
="$ac_config_files $all_outputs"
29271 ac_config_commands
="$ac_config_commands default"
29273 cat >confcache
<<\_ACEOF
29274 # This file is a shell script that caches the results of configure
29275 # tests run on this system so they can be shared between configure
29276 # scripts and configure runs, see configure's option --config-cache.
29277 # It is not useful on other systems. If it contains results you don't
29278 # want to keep, you may remove or edit it.
29280 # config.status only pays attention to the cache file if you give it
29281 # the --recheck option to rerun configure.
29283 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29284 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29285 # following values.
29289 # The following way of writing the cache mishandles newlines in values,
29290 # but we know of no workaround that is simple, portable, and efficient.
29291 # So, don't put newlines in cache variables' values.
29292 # Ultrix sh set writes to stderr and can't be redirected directly,
29293 # and sets the high bit in the cache file unless we assign to the vars.
29296 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29298 # `set' does not quote correctly, so add quotes (double-quote
29299 # substitution turns \\\\ into \\, and sed turns \\ into \).
29302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29305 # `set' quotes correctly as required by POSIX, so do not add quotes.
29307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29316 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29318 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
29319 if test -w $cache_file; then
29320 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29321 cat confcache
>$cache_file
29323 echo "not updating unwritable cache $cache_file"
29328 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29329 # Let make expand exec_prefix.
29330 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29334 # trailing colons and then remove the whole line if VPATH becomes empty
29335 # (actually we leave an empty line to preserve line numbers).
29336 if test "x$srcdir" = x.
; then
29337 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
29338 s/:*\$(srcdir):*/:/;
29339 s/:*\${srcdir}:*/:/;
29341 s/^\([^=]*=[ ]*\):*/\1/;
29347 DEFS
=-DHAVE_CONFIG_H
29351 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29352 # 1. Remove the extension, and $U if already installed.
29353 ac_i
=`echo "$ac_i" |
29354 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29356 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
29357 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
29359 LIBOBJS
=$ac_libobjs
29361 LTLIBOBJS
=$ac_ltlibobjs
29365 : ${CONFIG_STATUS=./config.status}
29366 ac_clean_files_save
=$ac_clean_files
29367 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29368 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29369 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29370 cat >$CONFIG_STATUS <<_ACEOF
29372 # Generated by $as_me.
29373 # Run this file to recreate the current configuration.
29374 # Compiler output produced by configure, useful for debugging
29375 # configure, is in config.log if it exists.
29378 ac_cs_recheck=false
29380 SHELL=\${CONFIG_SHELL-$SHELL}
29383 cat >>$CONFIG_STATUS <<\_ACEOF
29384 ## --------------------- ##
29385 ## M4sh Initialization. ##
29386 ## --------------------- ##
29388 # Be Bourne compatible
29389 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
29392 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29393 # is contrary to our usage. Disable this feature.
29394 alias -g '${1+"$@"}'='"$@"'
29395 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
29398 DUALCASE
=1; export DUALCASE
# for MKS sh
29400 # Support unset when possible.
29401 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
29408 # Work around bugs in pre-3.0 UWIN ksh.
29409 $as_unset ENV MAIL MAILPATH
29416 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29417 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29418 LC_TELEPHONE LC_TIME
29420 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29421 eval $as_var=C
; export $as_var
29427 # Required to use basename.
29428 if expr a
: '\(a\)' >/dev
/null
2>&1; then
29434 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
29435 as_basename
=basename
29441 # Name of the executable.
29442 as_me
=`$as_basename "$0" ||
29443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29444 X"$0" : 'X\(//\)$' \| \
29445 X"$0" : 'X\(/\)$' \| \
29446 . : '\(.\)' 2>/dev/null ||
29448 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29449 /^X\/\(\/\/\)$/{ s//\1/; q; }
29450 /^X\/\(\/\).*/{ s//\1/; q; }
29454 # PATH needs CR, and LINENO needs CR and PATH.
29455 # Avoid depending upon Character Ranges.
29456 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29457 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29458 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29459 as_cr_digits
='0123456789'
29460 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29462 # The user is always right.
29463 if test "${PATH_SEPARATOR+set}" != set; then
29464 echo "#! /bin/sh" >conf$$.sh
29465 echo "exit 0" >>conf$$.sh
29467 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
29476 as_lineno_1
=$LINENO
29477 as_lineno_2
=$LINENO
29478 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
29479 test "x$as_lineno_1" != "x$as_lineno_2" &&
29480 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
29481 # Find who we are. Look in the path if we contain no path at all
29484 *[\\/]* ) as_myself
=$0 ;;
29485 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29486 for as_dir
in $PATH
29489 test -z "$as_dir" && as_dir
=.
29490 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
29495 # We did not find ourselves, most probably we were run as `sh COMMAND'
29496 # in which case we are not to be found in the path.
29497 if test "x$as_myself" = x
; then
29500 if test ! -f "$as_myself"; then
29501 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29502 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29503 { (exit 1); exit 1; }; }
29505 case $CONFIG_SHELL in
29507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29508 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
29511 test -z "$as_dir" && as_dir
=.
29512 for as_base
in sh bash ksh sh5
; do
29515 if ("$as_dir/$as_base" -c '
29516 as_lineno_1=$LINENO
29517 as_lineno_2=$LINENO
29518 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29519 test "x$as_lineno_1" != "x$as_lineno_2" &&
29520 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
29521 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
29522 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
29523 CONFIG_SHELL
=$as_dir/$as_base
29524 export CONFIG_SHELL
29525 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29533 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29534 # uniformly replaced by the line number. The first 'sed' inserts a
29535 # line-number line before each line; the second 'sed' does the real
29536 # work. The second script uses 'N' to pair each line-number line
29537 # with the numbered line, and appends trailing '-' during
29538 # substitution so that $LINENO is not a special case at line end.
29539 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29540 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29541 sed '=' <$as_myself |
29546 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29549 s,^['$as_cr_digits']*\n,,
29550 ' >$as_me.lineno
&&
29551 chmod +x
$as_me.lineno ||
29552 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29553 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29554 { (exit 1); exit 1; }; }
29556 # Don't try to exec as it changes $[0], causing all sort of problems
29557 # (the dirname of $[0] is not the place where we might find the
29558 # original and so on. Autoconf is especially sensible to this).
29560 # Exit status is that of the last command.
29565 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29566 *c
*,-n*) ECHO_N
= ECHO_C
='
29568 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
29569 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
29572 if expr a
: '\(a\)' >/dev
/null
2>&1; then
29578 rm -f conf$$ conf$$.exe conf$$.
file
29580 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29581 # We could just check for DJGPP; but this test a) works b) is more generic
29582 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29583 if test -f conf$$.exe
; then
29584 # Don't use ln at all; we don't have any links
29589 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29594 rm -f conf$$ conf$$.exe conf$$.
file
29596 if mkdir
-p .
2>/dev
/null
; then
29599 test -d .
/-p && rmdir .
/-p
29603 as_executable_p
="test -f"
29605 # Sed expression to map a string onto a valid CPP name.
29606 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29608 # Sed expression to map a string onto a valid variable name.
29609 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29613 # We need space, tab and new line, in precisely that order.
29623 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29624 # report actual input values of CONFIG_FILES etc. instead of their
29625 # values after options handling. Logging --version etc. is OK.
29629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29630 ## Running $as_me. ##
29635 This file was extended by $as_me, which was
29636 generated by GNU Autoconf 2.59. Invocation command line was
29638 CONFIG_FILES = $CONFIG_FILES
29639 CONFIG_HEADERS = $CONFIG_HEADERS
29640 CONFIG_LINKS = $CONFIG_LINKS
29641 CONFIG_COMMANDS = $CONFIG_COMMANDS
29645 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29649 # Files that config.status was made for.
29650 if test -n "$ac_config_files"; then
29651 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29654 if test -n "$ac_config_headers"; then
29655 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29658 if test -n "$ac_config_links"; then
29659 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29662 if test -n "$ac_config_commands"; then
29663 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29666 cat >>$CONFIG_STATUS <<\_ACEOF
29669 \`$as_me' instantiates files from templates according to the
29670 current configuration.
29672 Usage: $0 [OPTIONS] [FILE]...
29674 -h, --help print this help, then exit
29675 -V, --version print version number, then exit
29676 -q, --quiet do not print progress messages
29677 -d, --debug don't remove temporary files
29678 --recheck update $as_me by reconfiguring in the same conditions
29679 --file=FILE[:TEMPLATE]
29680 instantiate the configuration file FILE
29681 --header=FILE[:TEMPLATE]
29682 instantiate the configuration header FILE
29684 Configuration files:
29687 Configuration headers:
29690 Configuration commands:
29693 Report bugs to <bug-autoconf@gnu.org>."
29696 cat >>$CONFIG_STATUS <<_ACEOF
29699 configured by $0, generated by GNU Autoconf 2.59,
29700 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29702 Copyright (C) 2003 Free Software Foundation, Inc.
29703 This config.status script is free software; the Free Software Foundation
29704 gives unlimited permission to copy, distribute and modify it."
29708 cat >>$CONFIG_STATUS <<\_ACEOF
29709 # If no file are specified by the user, then we need to provide default
29710 # value. By we need to know if files were specified by the user.
29716 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
29717 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
29725 *) # This is not an option, so the user has probably given explicit
29728 ac_need_defaults
=false
;;
29732 # Handling of the options.
29734 cat >>$CONFIG_STATUS <<\_ACEOF
29735 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29737 --version |
--vers* |
-V )
29738 echo "$ac_cs_version"; exit 0 ;;
29740 # Conflict between --help and --header
29741 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29742 Try \`$0 --help' for more information." >&5
29743 echo "$as_me: error: ambiguous option: $1
29744 Try \`$0 --help' for more information." >&2;}
29745 { (exit 1); exit 1; }; };;
29746 --help |
--hel |
-h )
29747 echo "$ac_cs_usage"; exit 0 ;;
29748 --debug |
--d* |
-d )
29750 --file |
--fil |
--fi |
--f )
29752 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
29753 ac_need_defaults
=false
;;
29754 --header |
--heade |
--head |
--hea )
29756 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
29757 ac_need_defaults
=false
;;
29758 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29759 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29762 # This is an error.
29763 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29764 Try \`$0 --help' for more information." >&5
29765 echo "$as_me: error: unrecognized option: $1
29766 Try \`$0 --help' for more information." >&2;}
29767 { (exit 1); exit 1; }; } ;;
29769 *) ac_config_targets
="$ac_config_targets $1" ;;
29775 ac_configure_extra_args
=
29777 if $ac_cs_silent; then
29779 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29783 cat >>$CONFIG_STATUS <<_ACEOF
29784 if \$ac_cs_recheck; then
29785 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29786 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29791 cat >>$CONFIG_STATUS <<_ACEOF
29793 # INIT-COMMANDS section.
29802 cat >>$CONFIG_STATUS <<\_ACEOF
29803 for ac_config_target
in $ac_config_targets
29805 case "$ac_config_target" in
29806 # Handling of arguments.
29807 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29808 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29809 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29810 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29811 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29812 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29813 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29815 { (exit 1); exit 1; }; };;
29819 # If the user did not use the arguments to specify the items to instantiate,
29820 # then the envvar interface is used. Set only those that are not.
29821 # We use the long form for the default assignment because of an extremely
29822 # bizarre bug on SunOS 4.1.3.
29823 if $ac_need_defaults; then
29824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29826 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29829 # Have a temporary directory for convenience. Make it in the build tree
29830 # simply because there is no reason to put it here, and in addition,
29831 # creating and moving files from /tmp can sometimes cause problems.
29832 # Create a temporary directory, and hook for its removal unless debugging.
29835 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29836 trap '{ (exit 1); exit 1; }' 1 2 13 15
29839 # Create a (secure) tmp directory for tmp files.
29842 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29843 test -n "$tmp" && test -d "$tmp"
29846 tmp
=.
/confstat$$
-$RANDOM
29847 (umask 077 && mkdir
$tmp)
29850 echo "$me: cannot create a temporary directory in ." >&2
29851 { (exit 1); exit 1; }
29856 cat >>$CONFIG_STATUS <<_ACEOF
29859 # CONFIG_FILES section.
29862 # No need to generate the scripts if there are no CONFIG_FILES.
29863 # This happens for instance when ./config.status config.h
29864 if test -n "\$CONFIG_FILES"; then
29865 # Protect against being on the right side of a sed subst in config.status.
29866 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29867 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29868 s,@SHELL@,$SHELL,;t t
29869 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29870 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29871 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29872 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29873 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29874 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29875 s,@exec_prefix@,$exec_prefix,;t t
29876 s,@prefix@,$prefix,;t t
29877 s,@program_transform_name@,$program_transform_name,;t t
29878 s,@bindir@,$bindir,;t t
29879 s,@sbindir@,$sbindir,;t t
29880 s,@libexecdir@,$libexecdir,;t t
29881 s,@datadir@,$datadir,;t t
29882 s,@sysconfdir@,$sysconfdir,;t t
29883 s,@sharedstatedir@,$sharedstatedir,;t t
29884 s,@localstatedir@,$localstatedir,;t t
29885 s,@libdir@,$libdir,;t t
29886 s,@includedir@,$includedir,;t t
29887 s,@oldincludedir@,$oldincludedir,;t t
29888 s,@infodir@,$infodir,;t t
29889 s,@mandir@,$mandir,;t t
29890 s,@build_alias@,$build_alias,;t t
29891 s,@host_alias@,$host_alias,;t t
29892 s,@target_alias@,$target_alias,;t t
29893 s,@DEFS@,$DEFS,;t t
29894 s,@ECHO_C@,$ECHO_C,;t t
29895 s,@ECHO_N@,$ECHO_N,;t t
29896 s,@ECHO_T@,$ECHO_T,;t t
29897 s,@LIBS@,$LIBS,;t t
29898 s,@build@,$build,;t t
29899 s,@build_cpu@,$build_cpu,;t t
29900 s,@build_vendor@,$build_vendor,;t t
29901 s,@build_os@,$build_os,;t t
29902 s,@host@,$host,;t t
29903 s,@host_cpu@,$host_cpu,;t t
29904 s,@host_vendor@,$host_vendor,;t t
29905 s,@host_os@,$host_os,;t t
29906 s,@target@,$target,;t t
29907 s,@target_cpu@,$target_cpu,;t t
29908 s,@target_vendor@,$target_vendor,;t t
29909 s,@target_os@,$target_os,;t t
29910 s,@target_noncanonical@,$target_noncanonical,;t t
29911 s,@build_libsubdir@,$build_libsubdir,;t t
29912 s,@build_subdir@,$build_subdir,;t t
29913 s,@host_subdir@,$host_subdir,;t t
29914 s,@target_subdir@,$target_subdir,;t t
29915 s,@GENINSRC@,$GENINSRC,;t t
29917 s,@CFLAGS@,$CFLAGS,;t t
29918 s,@LDFLAGS@,$LDFLAGS,;t t
29919 s,@CPPFLAGS@,$CPPFLAGS,;t t
29920 s,@ac_ct_CC@,$ac_ct_CC,;t t
29921 s,@EXEEXT@,$EXEEXT,;t t
29922 s,@OBJEXT@,$OBJEXT,;t t
29924 s,@CXXFLAGS@,$CXXFLAGS,;t t
29925 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29926 s,@GNATBIND@,$GNATBIND,;t t
29927 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
29928 s,@GNATMAKE@,$GNATMAKE,;t t
29929 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
29930 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
29931 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
29933 s,@EGREP@,$EGREP,;t t
29934 s,@loose_warn@,$loose_warn,;t t
29935 s,@c_loose_warn@,$c_loose_warn,;t t
29936 s,@strict_warn@,$strict_warn,;t t
29937 s,@c_strict_warn@,$c_strict_warn,;t t
29938 s,@warn_cflags@,$warn_cflags,;t t
29939 s,@warn_cxxflags@,$warn_cxxflags,;t t
29940 s,@nocommon_flag@,$nocommon_flag,;t t
29941 s,@TREEBROWSER@,$TREEBROWSER,;t t
29942 s,@valgrind_path@,$valgrind_path,;t t
29943 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
29944 s,@valgrind_command@,$valgrind_command,;t t
29945 s,@coverage_flags@,$coverage_flags,;t t
29946 s,@ENABLE_BUILD_WITH_CXX@,$ENABLE_BUILD_WITH_CXX,;t t
29947 s,@enable_multilib@,$enable_multilib,;t t
29948 s,@enable_decimal_float@,$enable_decimal_float,;t t
29949 s,@enable_fixed_point@,$enable_fixed_point,;t t
29950 s,@enable_shared@,$enable_shared,;t t
29951 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
29952 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
29953 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
29954 s,@onestep@,$onestep,;t t
29955 s,@PKGVERSION@,$PKGVERSION,;t t
29956 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
29957 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
29958 s,@datarootdir@,$datarootdir,;t t
29959 s,@docdir@,$docdir,;t t
29960 s,@htmldir@,$htmldir,;t t
29961 s,@SET_MAKE@,$SET_MAKE,;t t
29963 s,@LN_S@,$LN_S,;t t
29965 s,@RANLIB@,$RANLIB,;t t
29966 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29967 s,@ranlib_flags@,$ranlib_flags,;t t
29968 s,@INSTALL@,$INSTALL,;t t
29969 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29970 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29971 s,@make_compare_target@,$make_compare_target,;t t
29972 s,@have_mktemp_command@,$have_mktemp_command,;t t
29973 s,@MAKEINFO@,$MAKEINFO,;t t
29974 s,@BUILD_INFO@,$BUILD_INFO,;t t
29975 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
29976 s,@FLEX@,$FLEX,;t t
29977 s,@BISON@,$BISON,;t t
29980 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
29981 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
29982 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
29983 s,@LIBICONV@,$LIBICONV,;t t
29984 s,@LTLIBICONV@,$LTLIBICONV,;t t
29985 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
29986 s,@manext@,$manext,;t t
29987 s,@objext@,$objext,;t t
29988 s,@gthread_flags@,$gthread_flags,;t t
29989 s,@extra_modes_file@,$extra_modes_file,;t t
29990 s,@extra_opt_files@,$extra_opt_files,;t t
29991 s,@USE_NLS@,$USE_NLS,;t t
29992 s,@LIBINTL@,$LIBINTL,;t t
29993 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
29994 s,@INCINTL@,$INCINTL,;t t
29995 s,@XGETTEXT@,$XGETTEXT,;t t
29996 s,@GMSGFMT@,$GMSGFMT,;t t
29997 s,@POSUB@,$POSUB,;t t
29998 s,@CATALOGS@,$CATALOGS,;t t
29999 s,@DATADIRNAME@,$DATADIRNAME,;t t
30000 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30001 s,@GENCAT@,$GENCAT,;t t
30002 s,@CATOBJEXT@,$CATOBJEXT,;t t
30003 s,@CROSS@,$CROSS,;t t
30005 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
30006 s,@inhibit_libc@,$inhibit_libc,;t t
30007 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
30008 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
30009 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
30010 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
30011 s,@collect2@,$collect2,;t t
30012 s,@LIBTOOL@,$LIBTOOL,;t t
30014 s,@FGREP@,$FGREP,;t t
30015 s,@GREP@,$GREP,;t t
30017 s,@DUMPBIN@,$DUMPBIN,;t t
30018 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
30019 s,@OBJDUMP@,$OBJDUMP,;t t
30020 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
30021 s,@ac_ct_AR@,$ac_ct_AR,;t t
30022 s,@STRIP@,$STRIP,;t t
30023 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30024 s,@lt_ECHO@,$lt_ECHO,;t t
30025 s,@DSYMUTIL@,$DSYMUTIL,;t t
30026 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
30027 s,@NMEDIT@,$NMEDIT,;t t
30028 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
30029 s,@LIPO@,$LIPO,;t t
30030 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
30031 s,@OTOOL@,$OTOOL,;t t
30032 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
30033 s,@OTOOL64@,$OTOOL64,;t t
30034 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
30035 s,@CXXCPP@,$CXXCPP,;t t
30036 s,@objdir@,$objdir,;t t
30037 s,@enable_fast_install@,$enable_fast_install,;t t
30038 s,@gcc_cv_as@,$gcc_cv_as,;t t
30039 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
30040 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
30041 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
30042 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
30043 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
30044 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
30045 s,@gcc_cv_readelf@,$gcc_cv_readelf,;t t
30046 s,@libgcc_visibility@,$libgcc_visibility,;t t
30048 s,@HOST_LIBS@,$HOST_LIBS,;t t
30049 s,@zlibdir@,$zlibdir,;t t
30050 s,@zlibinc@,$zlibinc,;t t
30051 s,@MAINT@,$MAINT,;t t
30052 s,@gcc_tooldir@,$gcc_tooldir,;t t
30053 s,@dollar@,$dollar,;t t
30054 s,@slibdir@,$slibdir,;t t
30055 s,@subdirs@,$subdirs,;t t
30056 s,@srcdir@,$srcdir,;t t
30057 s,@all_compilers@,$all_compilers,;t t
30058 s,@all_gtfiles@,$all_gtfiles,;t t
30059 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
30060 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
30061 s,@all_languages@,$all_languages,;t t
30062 s,@all_selected_languages@,$all_selected_languages,;t t
30063 s,@build_exeext@,$build_exeext,;t t
30064 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
30065 s,@build_xm_file_list@,$build_xm_file_list,;t t
30066 s,@build_xm_include_list@,$build_xm_include_list,;t t
30067 s,@build_xm_defines@,$build_xm_defines,;t t
30068 s,@build_file_translate@,$build_file_translate,;t t
30069 s,@check_languages@,$check_languages,;t t
30070 s,@cpp_install_dir@,$cpp_install_dir,;t t
30071 s,@xmake_file@,$xmake_file,;t t
30072 s,@tmake_file@,$tmake_file,;t t
30073 s,@TM_ENDIAN_CONFIG@,$TM_ENDIAN_CONFIG,;t t
30074 s,@TM_MULTILIB_CONFIG@,$TM_MULTILIB_CONFIG,;t t
30075 s,@TM_MULTILIB_EXCEPTIONS_CONFIG@,$TM_MULTILIB_EXCEPTIONS_CONFIG,;t t
30076 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
30077 s,@extra_headers_list@,$extra_headers_list,;t t
30078 s,@extra_objs@,$extra_objs,;t t
30079 s,@extra_parts@,$extra_parts,;t t
30080 s,@extra_passes@,$extra_passes,;t t
30081 s,@extra_programs@,$extra_programs,;t t
30082 s,@float_h_file@,$float_h_file,;t t
30083 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
30084 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
30085 s,@host_exeext@,$host_exeext,;t t
30086 s,@host_xm_file_list@,$host_xm_file_list,;t t
30087 s,@host_xm_include_list@,$host_xm_include_list,;t t
30088 s,@host_xm_defines@,$host_xm_defines,;t t
30089 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
30090 s,@install@,$install,;t t
30091 s,@lang_opt_files@,$lang_opt_files,;t t
30092 s,@lang_specs_files@,$lang_specs_files,;t t
30093 s,@lang_tree_files@,$lang_tree_files,;t t
30094 s,@local_prefix@,$local_prefix,;t t
30095 s,@md_file@,$md_file,;t t
30096 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
30097 s,@out_file@,$out_file,;t t
30098 s,@out_object_file@,$out_object_file,;t t
30099 s,@thread_file@,$thread_file,;t t
30100 s,@tm_file_list@,$tm_file_list,;t t
30101 s,@tm_include_list@,$tm_include_list,;t t
30102 s,@tm_defines@,$tm_defines,;t t
30103 s,@tm_p_file_list@,$tm_p_file_list,;t t
30104 s,@tm_p_include_list@,$tm_p_include_list,;t t
30105 s,@xm_file_list@,$xm_file_list,;t t
30106 s,@xm_include_list@,$xm_include_list,;t t
30107 s,@xm_defines@,$xm_defines,;t t
30108 s,@use_gcc_stdint@,$use_gcc_stdint,;t t
30109 s,@c_target_objs@,$c_target_objs,;t t
30110 s,@cxx_target_objs@,$cxx_target_objs,;t t
30111 s,@fortran_target_objs@,$fortran_target_objs,;t t
30112 s,@target_cpu_default@,$target_cpu_default,;t t
30113 s,@GMPLIBS@,$GMPLIBS,;t t
30114 s,@GMPINC@,$GMPINC,;t t
30115 s,@PPLLIBS@,$PPLLIBS,;t t
30116 s,@PPLINC@,$PPLINC,;t t
30117 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
30118 s,@CLOOGINC@,$CLOOGINC,;t t
30119 s,@pluginlibs@,$pluginlibs,;t t
30120 s,@enable_plugin@,$enable_plugin,;t t
30121 s,@LIBOBJS@,$LIBOBJS,;t t
30122 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30123 /@language_hooks@/r $language_hooks
30124 s,@language_hooks@,,;t t
30129 cat >>$CONFIG_STATUS <<\_ACEOF
30130 # Split the substitutions into bite-sized pieces for seds with
30131 # small command number limits, like on Digital OSF/1 and HP-UX.
30132 ac_max_sed_lines
=48
30133 ac_sed_frag
=1 # Number of current file.
30134 ac_beg
=1 # First line for current file.
30135 ac_end
=$ac_max_sed_lines # Line after last line for current file.
30138 while $ac_more_lines; do
30139 if test $ac_beg -gt 1; then
30140 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
30142 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
30144 if test ! -s $tmp/subs.frag
; then
30145 ac_more_lines
=false
30147 # The purpose of the label and of the branching condition is to
30148 # speed up the sed processing (if there are no `@' at all, there
30149 # is no need to browse any of the substitutions).
30150 # These are the two extra sed commands mentioned above.
30152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
30153 if test -z "$ac_sed_cmds"; then
30154 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
30156 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30158 ac_sed_frag
=`expr $ac_sed_frag + 1`
30160 ac_end
=`expr $ac_end + $ac_max_sed_lines`
30163 if test -z "$ac_sed_cmds"; then
30166 fi # test -n "$CONFIG_FILES"
30169 cat >>$CONFIG_STATUS <<\_ACEOF
30170 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
30171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30173 - |
*:- |
*:-:* ) # input from stdin
30175 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
30176 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
30177 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
30178 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
30179 * ) ac_file_in
=$ac_file.
in ;;
30182 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30183 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
30184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30185 X"$ac_file" : 'X\(//\)[^/]' \| \
30186 X"$ac_file" : 'X\(//\)$' \| \
30187 X"$ac_file" : 'X\(/\)' \| \
30188 . : '\(.\)' 2>/dev/null ||
30190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30192 /^X\(\/\/\)$/{ s//\1/; q; }
30193 /^X\(\/\).*/{ s//\1/; q; }
30195 { if $as_mkdir_p; then
30200 while test ! -d "$as_dir"; do
30201 as_dirs
="$as_dir $as_dirs"
30202 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
30203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30204 X"$as_dir" : 'X\(//\)[^/]' \| \
30205 X"$as_dir" : 'X\(//\)$' \| \
30206 X"$as_dir" : 'X\(/\)' \| \
30207 . : '\(.\)' 2>/dev/null ||
30209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30211 /^X\(\/\/\)$/{ s//\1/; q; }
30212 /^X\(\/\).*/{ s//\1/; q; }
30215 test ! -n "$as_dirs" || mkdir
$as_dirs
30216 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30217 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30218 { (exit 1); exit 1; }; }; }
30222 if test "$ac_dir" != .
; then
30223 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30224 # A "../" for each directory in $ac_dir_suffix.
30225 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30227 ac_dir_suffix
= ac_top_builddir
=
30231 .
) # No --srcdir option. We are building in place.
30233 if test -z "$ac_top_builddir"; then
30236 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
30238 [\\/]* | ?
:[\\/]* ) # Absolute path.
30239 ac_srcdir
=$srcdir$ac_dir_suffix;
30240 ac_top_srcdir
=$srcdir ;;
30241 *) # Relative path.
30242 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
30243 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
30246 # Do not use `cd foo && pwd` to compute absolute paths, because
30247 # the directories may not exist.
30249 .
) ac_abs_builddir
="$ac_dir";;
30252 .
) ac_abs_builddir
=`pwd`;;
30253 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
30254 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
30257 case $ac_abs_builddir in
30258 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
30260 case ${ac_top_builddir}.
in
30261 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
30262 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
30263 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
30266 case $ac_abs_builddir in
30267 .
) ac_abs_srcdir
=$ac_srcdir;;
30270 .
) ac_abs_srcdir
=$ac_abs_builddir;;
30271 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
30272 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
30275 case $ac_abs_builddir in
30276 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
30278 case $ac_top_srcdir in
30279 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
30280 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
30281 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
30287 if test x
"$ac_file" != x-
; then
30288 { echo "$as_me:$LINENO: creating $ac_file" >&5
30289 echo "$as_me: creating $ac_file" >&6;}
30292 # Let's still pretend it is `configure' which instantiates (i.e., don't
30293 # use $as_me), people would be surprised to read:
30294 # /* config.h. Generated by config.status. */
30295 if test x
"$ac_file" = x-
; then
30298 configure_input
="$ac_file. "
30300 configure_input
=$configure_input"Generated from `echo $ac_file_in |
30301 sed 's,.*/,,'` by configure."
30303 # First look for the input files in the build tree, otherwise in the
30305 ac_file_inputs
=`IFS=:
30306 for f in $ac_file_in; do
30308 -) echo $tmp/stdin ;;
30310 # Absolute (can't be DOS-style, as IFS=:)
30311 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30312 echo "$as_me: error: cannot find input file: $f" >&2;}
30313 { (exit 1); exit 1; }; }
30316 if test -f "$f"; then
30319 elif test -f "$srcdir/$f"; then
30324 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30325 echo "$as_me: error: cannot find input file: $f" >&2;}
30326 { (exit 1); exit 1; }; }
30329 done` ||
{ (exit 1); exit 1; }
30331 cat >>$CONFIG_STATUS <<_ACEOF
30335 cat >>$CONFIG_STATUS <<\_ACEOF
30337 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30338 s
,@configure_input@
,$configure_input,;t t
30339 s
,@srcdir@
,$ac_srcdir,;t t
30340 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
30341 s
,@top_srcdir@
,$ac_top_srcdir,;t t
30342 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
30343 s
,@builddir@
,$ac_builddir,;t t
30344 s
,@abs_builddir@
,$ac_abs_builddir,;t t
30345 s
,@top_builddir@
,$ac_top_builddir,;t t
30346 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
30347 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30349 if test x"$ac_file" != x-; then
30350 mv $tmp/out $ac_file
30356 # Run the commands associated with the file.
30358 as ) chmod +x as ;;
30359 collect-ld ) chmod +x collect-ld ;;
30360 nm ) chmod +x nm ;;
30364 cat >>$CONFIG_STATUS <<\_ACEOF
30367 # CONFIG_HEADER section.
30370 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
30371 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30373 # ac_d sets the value in "#define NAME VALUE" lines.
30374 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30375 ac_dB
='[ ].*$,\1#\2'
30378 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30379 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30380 ac_uB
='$,\1#\2define\3'
30384 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
30385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30387 - |
*:- |
*:-:* ) # input from stdin
30389 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
30390 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
30391 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
30392 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
30393 * ) ac_file_in
=$ac_file.
in ;;
30396 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
30397 echo "$as_me: creating $ac_file" >&6;}
30399 # First look for the input files in the build tree, otherwise in the
30401 ac_file_inputs
=`IFS=:
30402 for f in $ac_file_in; do
30404 -) echo $tmp/stdin ;;
30406 # Absolute (can't be DOS-style, as IFS=:)
30407 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30408 echo "$as_me: error: cannot find input file: $f" >&2;}
30409 { (exit 1); exit 1; }; }
30410 # Do quote $f, to prevent DOS paths from being IFS'd.
30413 if test -f "$f"; then
30416 elif test -f "$srcdir/$f"; then
30421 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30422 echo "$as_me: error: cannot find input file: $f" >&2;}
30423 { (exit 1); exit 1; }; }
30426 done` ||
{ (exit 1); exit 1; }
30427 # Remove the trailing spaces.
30428 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30432 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30433 # `conftest.undefs', that substitutes the proper values into
30434 # config.h.in to produce config.h. The first handles `#define'
30435 # templates, and the second `#undef' templates.
30436 # And first: Protect against being on the right side of a sed subst in
30437 # config.status. Protect against being in an unquoted here document
30438 # in config.status.
30439 rm -f conftest.defines conftest.undefs
30440 # Using a here document instead of a string reduces the quoting nightmare.
30441 # Putting comments in sed scripts is not portable.
30443 # `end' is used to avoid that the second main sed command (meant for
30444 # 0-ary CPP macros) applies to n-ary macro definitions.
30445 # See the Autoconf documentation for `clear'.
30446 cat >confdef2sed.
sed <<\_ACEOF
30451 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30453 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30456 # If some macros were called several times there might be several times
30457 # the same #defines, which is useless. Nevertheless, we may not want to
30458 # sort them, since we want the *last* AC-DEFINE to be honored.
30459 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30460 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30461 rm -f confdef2sed.sed
30463 # This sed command replaces #undef with comments. This is necessary, for
30464 # example, in the case of _POSIX_SOURCE, which is predefined and required
30465 # on some systems where configure will not decide to define it.
30466 cat >>conftest.undefs <<\_ACEOF
30467 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30470 # Break up conftest.defines because some shells have a limit on the size
30471 # of here documents, and old seds have small limits too (100 cmds).
30472 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30473 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30474 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30475 echo ' :' >>$CONFIG_STATUS
30476 rm -f conftest.tail
30477 while grep . conftest.defines >/dev/null
30479 # Write a limited-size here document to $tmp/defines.sed.
30480 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30481 # Speed up: don't consider the non `#define' lines.
30482 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30483 # Work around the forget-to-reset-the-flag bug.
30484 echo 't clr' >>$CONFIG_STATUS
30485 echo ': clr' >>$CONFIG_STATUS
30486 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
30488 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30490 mv $tmp/out $tmp/in
30492 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
30493 rm -f conftest.defines
30494 mv conftest.
tail conftest.defines
30496 rm -f conftest.defines
30497 echo ' fi # grep' >>$CONFIG_STATUS
30498 echo >>$CONFIG_STATUS
30500 # Break up conftest.undefs because some shells have a limit on the size
30501 # of here documents, and old seds have small limits too (100 cmds).
30502 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30503 rm -f conftest.
tail
30504 while grep . conftest.undefs
>/dev
/null
30506 # Write a limited-size here document to $tmp/undefs.sed.
30507 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30508 # Speed up: don't consider the non
`#undef'
30509 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30510 # Work around the forget-to-reset-the-flag bug.
30511 echo 't clr' >>$CONFIG_STATUS
30512 echo ': clr' >>$CONFIG_STATUS
30513 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30515 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30517 mv $tmp/out $tmp/in
30519 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30520 rm -f conftest.undefs
30521 mv conftest.tail conftest.undefs
30523 rm -f conftest.undefs
30525 cat >>$CONFIG_STATUS <<\_ACEOF
30526 # Let's still pretend it is `configure
' which instantiates (i.e., don't
30527 # use $as_me), people would be surprised to read:
30528 # /* config.h. Generated by config.status. */
30529 if test x
"$ac_file" = x-
; then
30530 echo "/* Generated by configure. */" >$tmp/config.h
30532 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30534 cat $tmp/in >>$tmp/config.h
30536 if test x
"$ac_file" != x-
; then
30537 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
30538 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30539 echo "$as_me: $ac_file is unchanged" >&6;}
30541 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
30542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30543 X"$ac_file" : 'X\(//\)[^/]' \| \
30544 X"$ac_file" : 'X\(//\)$' \| \
30545 X"$ac_file" : 'X\(/\)' \| \
30546 . : '\(.\)' 2>/dev/null ||
30548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30550 /^X\(\/\/\)$/{ s//\1/; q; }
30551 /^X\(\/\).*/{ s//\1/; q; }
30553 { if $as_mkdir_p; then
30558 while test ! -d "$as_dir"; do
30559 as_dirs
="$as_dir $as_dirs"
30560 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
30561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30562 X"$as_dir" : 'X\(//\)[^/]' \| \
30563 X"$as_dir" : 'X\(//\)$' \| \
30564 X"$as_dir" : 'X\(/\)' \| \
30565 . : '\(.\)' 2>/dev/null ||
30567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30569 /^X\(\/\/\)$/{ s//\1/; q; }
30570 /^X\(\/\).*/{ s//\1/; q; }
30573 test ! -n "$as_dirs" || mkdir
$as_dirs
30574 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30576 { (exit 1); exit 1; }; }; }
30579 mv $tmp/config.h
$ac_file
30583 rm -f $tmp/config.h
30587 cat >>$CONFIG_STATUS <<\_ACEOF
30590 # CONFIG_COMMANDS section.
30592 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
30593 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
30594 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
30595 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
30596 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30597 X"$ac_dest" : 'X\(//\)[^/]' \| \
30598 X"$ac_dest" : 'X\(//\)$' \| \
30599 X"$ac_dest" : 'X\(/\)' \| \
30600 . : '\(.\)' 2>/dev/null ||
30602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30604 /^X\(\/\/\)$/{ s//\1/; q; }
30605 /^X\(\/\).*/{ s//\1/; q; }
30607 { if $as_mkdir_p; then
30612 while test ! -d "$as_dir"; do
30613 as_dirs
="$as_dir $as_dirs"
30614 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
30615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30616 X"$as_dir" : 'X\(//\)[^/]' \| \
30617 X"$as_dir" : 'X\(//\)$' \| \
30618 X"$as_dir" : 'X\(/\)' \| \
30619 . : '\(.\)' 2>/dev/null ||
30621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30623 /^X\(\/\/\)$/{ s//\1/; q; }
30624 /^X\(\/\).*/{ s//\1/; q; }
30627 test ! -n "$as_dirs" || mkdir
$as_dirs
30628 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30629 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30630 { (exit 1); exit 1; }; }; }
30634 if test "$ac_dir" != .
; then
30635 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30636 # A "../" for each directory in $ac_dir_suffix.
30637 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30639 ac_dir_suffix
= ac_top_builddir
=
30643 .
) # No --srcdir option. We are building in place.
30645 if test -z "$ac_top_builddir"; then
30648 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
30650 [\\/]* | ?
:[\\/]* ) # Absolute path.
30651 ac_srcdir
=$srcdir$ac_dir_suffix;
30652 ac_top_srcdir
=$srcdir ;;
30653 *) # Relative path.
30654 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
30655 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
30658 # Do not use `cd foo && pwd` to compute absolute paths, because
30659 # the directories may not exist.
30661 .
) ac_abs_builddir
="$ac_dir";;
30664 .
) ac_abs_builddir
=`pwd`;;
30665 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
30666 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
30669 case $ac_abs_builddir in
30670 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
30672 case ${ac_top_builddir}.
in
30673 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
30674 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
30675 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
30678 case $ac_abs_builddir in
30679 .
) ac_abs_srcdir
=$ac_srcdir;;
30682 .
) ac_abs_srcdir
=$ac_abs_builddir;;
30683 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
30684 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
30687 case $ac_abs_builddir in
30688 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
30690 case $ac_top_srcdir in
30691 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
30692 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
30693 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
30698 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30699 echo "$as_me: executing $ac_dest commands" >&6;}
30702 case ${CONFIG_HEADERS} in
30703 *auto-host.h
:config.
in*)
30706 # Make sure all the subdirs exist.
30707 for d
in $subdirs doc build
30709 test -d $d || mkdir
$d
30716 cat >>$CONFIG_STATUS <<\_ACEOF
30718 { (exit 0); exit 0; }
30720 chmod +x
$CONFIG_STATUS
30721 ac_clean_files
=$ac_clean_files_save
30724 # configure is writing to config.log, and then calls config.status.
30725 # config.status does its own redirection, appending to config.log.
30726 # Unfortunately, on DOS this fails, as config.log is still kept open
30727 # by configure, so config.status won't be able to write to it; its
30728 # output is simply discarded. So we exec the FD to /dev/null,
30729 # effectively closing config.log, so it can be properly (re)opened and
30730 # appended to by config.status. When coming back to configure, we
30731 # need to make the FD available again.
30732 if test "$no_create" != yes; then
30734 ac_config_status_args
=
30735 test "$silent" = yes &&
30736 ac_config_status_args
="$ac_config_status_args --quiet"
30738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30741 # would make configure fail if this is the last instruction.
30742 $ac_cs_success ||
{ (exit 1); exit 1; }