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 NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn cxx_compat_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags 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 TARGET_GETGROUPS_T 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 host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN ac_ct_AR STRIP ac_ct_STRIP lt_ECHO 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 libgcc_visibility GGC 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 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 c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
462 ac_subst_files
='language_hooks'
464 # Initialize some variables set by options.
466 ac_init_version
=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
476 program_transform_name
=s
,x
,x
,
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir
='${exec_prefix}/bin'
490 sbindir
='${exec_prefix}/sbin'
491 libexecdir
='${exec_prefix}/libexec'
492 datadir
='${prefix}/share'
493 sysconfdir
='${prefix}/etc'
494 sharedstatedir
='${prefix}/com'
495 localstatedir
='${prefix}/var'
496 libdir
='${exec_prefix}/lib'
497 includedir
='${prefix}/include'
498 oldincludedir
='/usr/include'
499 infodir
='${prefix}/info'
500 mandir
='${prefix}/man'
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
512 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
518 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
520 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
523 -build |
--build |
--buil |
--bui |
--bu)
524 ac_prev
=build_alias
;;
525 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
526 build_alias
=$ac_optarg ;;
528 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
529 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
530 ac_prev
=cache_file
;;
531 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
532 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
533 cache_file
=$ac_optarg ;;
536 cache_file
=config.cache
;;
538 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
540 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
542 datadir
=$ac_optarg ;;
544 -disable-* |
--disable-*)
545 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* |
--enable-*)
554 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
561 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
567 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
568 |
--exec |
--exe |
--ex)
569 ac_prev
=exec_prefix
;;
570 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
571 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
572 |
--exec=* |
--exe=* |
--ex=*)
573 exec_prefix
=$ac_optarg ;;
575 -gas |
--gas |
--ga |
--g)
576 # Obsolete; use --with-gas.
579 -help |
--help |
--hel |
--he |
-h)
581 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
582 ac_init_help
=recursive
;;
583 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
584 ac_init_help
=short
;;
586 -host |
--host |
--hos |
--ho)
587 ac_prev
=host_alias
;;
588 -host=* |
--host=* |
--hos=* |
--ho=*)
589 host_alias
=$ac_optarg ;;
591 -includedir |
--includedir |
--includedi |
--included |
--include \
592 |
--includ |
--inclu |
--incl |
--inc)
593 ac_prev
=includedir
;;
594 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
595 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
596 includedir
=$ac_optarg ;;
598 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
600 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
601 infodir
=$ac_optarg ;;
603 -libdir |
--libdir |
--libdi |
--libd)
605 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
608 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
609 |
--libexe |
--libex |
--libe)
610 ac_prev
=libexecdir
;;
611 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
612 |
--libexe=* |
--libex=* |
--libe=*)
613 libexecdir
=$ac_optarg ;;
615 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
616 |
--localstate |
--localstat |
--localsta |
--localst \
617 |
--locals |
--local |
--loca |
--loc |
--lo)
618 ac_prev
=localstatedir
;;
619 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
620 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
621 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
622 localstatedir
=$ac_optarg ;;
624 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
626 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
630 # Obsolete; use --without-fp.
633 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
634 |
--no-cr |
--no-c |
-n)
637 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
638 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
641 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
642 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
643 |
--oldin |
--oldi |
--old |
--ol |
--o)
644 ac_prev
=oldincludedir
;;
645 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
646 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
647 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
648 oldincludedir
=$ac_optarg ;;
650 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
652 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
655 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
656 |
--program-pre |
--program-pr |
--program-p)
657 ac_prev
=program_prefix
;;
658 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
659 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
660 program_prefix
=$ac_optarg ;;
662 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
663 |
--program-suf |
--program-su |
--program-s)
664 ac_prev
=program_suffix
;;
665 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
666 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
667 program_suffix
=$ac_optarg ;;
669 -program-transform-name |
--program-transform-name \
670 |
--program-transform-nam |
--program-transform-na \
671 |
--program-transform-n |
--program-transform- \
672 |
--program-transform |
--program-transfor \
673 |
--program-transfo |
--program-transf \
674 |
--program-trans |
--program-tran \
675 |
--progr-tra |
--program-tr |
--program-t)
676 ac_prev
=program_transform_name
;;
677 -program-transform-name=* |
--program-transform-name=* \
678 |
--program-transform-nam=* |
--program-transform-na=* \
679 |
--program-transform-n=* |
--program-transform-=* \
680 |
--program-transform=* |
--program-transfor=* \
681 |
--program-transfo=* |
--program-transf=* \
682 |
--program-trans=* |
--program-tran=* \
683 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
684 program_transform_name
=$ac_optarg ;;
686 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
687 |
-silent |
--silent |
--silen |
--sile |
--sil)
690 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
692 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
694 sbindir
=$ac_optarg ;;
696 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
697 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
698 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
700 ac_prev
=sharedstatedir
;;
701 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
702 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
703 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
705 sharedstatedir
=$ac_optarg ;;
707 -site |
--site |
--sit)
709 -site=* |
--site=* |
--sit=*)
712 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
714 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
717 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
718 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
719 ac_prev
=sysconfdir
;;
720 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
721 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
722 sysconfdir
=$ac_optarg ;;
724 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
725 ac_prev
=target_alias
;;
726 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
727 target_alias
=$ac_optarg ;;
729 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
732 -version |
--version |
--versio |
--versi |
--vers |
-V)
736 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package
=`echo $ac_package| sed 's/-/_/g'`
743 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* |
--without-*)
749 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package
=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
758 # Obsolete; use --with-x.
761 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
762 |
--x-incl |
--x-inc |
--x-in |
--x-i)
763 ac_prev
=x_includes
;;
764 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
765 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
766 x_includes
=$ac_optarg ;;
768 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
769 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
770 ac_prev
=x_libraries
;;
771 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
772 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
773 x_libraries
=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
781 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 if test -n "$ac_prev"; then
802 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var
in exec_prefix prefix
810 eval ac_val
=$
`echo $ac_var`
812 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
818 # Be sure to have absolute paths.
819 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val
=$
`echo $ac_var`
824 [\\/$
]* | ?
:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x
; then
839 if test "x$build_alias" = x
; then
840 cross_compiling
=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
849 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
851 test "$silent" = yes && exec 6>/dev
/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted
=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir
=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
871 if test ! -r $srcdir/$ac_unique_file; then
875 ac_srcdir_defaulted
=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set
=${build_alias+set}
891 ac_env_build_alias_value
=$build_alias
892 ac_cv_env_build_alias_set
=${build_alias+set}
893 ac_cv_env_build_alias_value
=$build_alias
894 ac_env_host_alias_set
=${host_alias+set}
895 ac_env_host_alias_value
=$host_alias
896 ac_cv_env_host_alias_set
=${host_alias+set}
897 ac_cv_env_host_alias_value
=$host_alias
898 ac_env_target_alias_set
=${target_alias+set}
899 ac_env_target_alias_value
=$target_alias
900 ac_cv_env_target_alias_set
=${target_alias+set}
901 ac_cv_env_target_alias_value
=$target_alias
902 ac_env_CC_set
=${CC+set}
904 ac_cv_env_CC_set
=${CC+set}
905 ac_cv_env_CC_value
=$CC
906 ac_env_CFLAGS_set
=${CFLAGS+set}
907 ac_env_CFLAGS_value
=$CFLAGS
908 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value
=$CFLAGS
910 ac_env_LDFLAGS_set
=${LDFLAGS+set}
911 ac_env_LDFLAGS_value
=$LDFLAGS
912 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value
=$LDFLAGS
914 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value
=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
918 ac_env_CPP_set
=${CPP+set}
919 ac_env_CPP_value
=$CPP
920 ac_cv_env_CPP_set
=${CPP+set}
921 ac_cv_env_CPP_value
=$CPP
922 ac_env_GMPLIBS_set
=${GMPLIBS+set}
923 ac_env_GMPLIBS_value
=$GMPLIBS
924 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
925 ac_cv_env_GMPLIBS_value
=$GMPLIBS
926 ac_env_GMPINC_set
=${GMPINC+set}
927 ac_env_GMPINC_value
=$GMPINC
928 ac_cv_env_GMPINC_set
=${GMPINC+set}
929 ac_cv_env_GMPINC_value
=$GMPINC
932 # Report the --help message.
934 if test "$ac_init_help" = "long"; then
935 # Omit some internal or obsolete options to make the list less imposing.
936 # This message is too long to be a string in the A/UX 3.1 sh.
938 \`configure' configures this package to adapt to many kinds of systems.
940 Usage: $0 [OPTION]... [VAR=VALUE]...
942 To assign environment variables (e.g., CC, CFLAGS...), specify them as
943 VAR=VALUE. See below for descriptions of some of the useful variables.
945 Defaults for the options are specified in brackets.
948 -h, --help display this help and exit
949 --help=short display options specific to this package
950 --help=recursive display the short help of all the included packages
951 -V, --version display version information and exit
952 -q, --quiet, --silent do not print \`checking...' messages
953 --cache-file=FILE cache test results in FILE [disabled]
954 -C, --config-cache alias for \`--cache-file=config.cache'
955 -n, --no-create do not create output files
956 --srcdir=DIR find the sources in DIR [configure dir or \`..']
961 Installation directories:
962 --prefix=PREFIX install architecture-independent files in PREFIX
964 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
967 By default, \`make install' will install all the files in
968 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
969 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
970 for instance \`--prefix=\$HOME'.
972 For better control, use the options below.
974 Fine tuning of the installation directories:
975 --bindir=DIR user executables [EPREFIX/bin]
976 --sbindir=DIR system admin executables [EPREFIX/sbin]
977 --libexecdir=DIR program executables [EPREFIX/libexec]
978 --datadir=DIR read-only architecture-independent data [PREFIX/share]
979 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
980 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
981 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
982 --libdir=DIR object code libraries [EPREFIX/lib]
983 --includedir=DIR C header files [PREFIX/include]
984 --oldincludedir=DIR C header files for non-gcc [/usr/include]
985 --infodir=DIR info documentation [PREFIX/info]
986 --mandir=DIR man documentation [PREFIX/man]
992 --program-prefix=PREFIX prepend PREFIX to installed program names
993 --program-suffix=SUFFIX append SUFFIX to installed program names
994 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
997 --build=BUILD configure
for building on BUILD
[guessed
]
998 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
999 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1003 if test -n "$ac_init_help"; then
1008 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1009 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1010 --enable-generated-files-in-srcdir
1011 put copies of generated files
in source dir
1012 intended
for creating
source tarballs
for users
1013 without texinfo bison or flex.
1014 --enable-werror-always enable -Werror despite compiler version
1015 --enable-checking=LIST
1016 enable expensive run-time checks. With LIST
,
1017 enable only specific categories of checks.
1018 Categories are
: yes,no
,all
,none
,release.
1019 Flags are
: assert
,df
,fold,gc
,gcac
,misc
,
1020 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1021 --enable-coverage=LEVEL
1022 enable compiler
's code coverage collection.
1023 Use to measure compiler performance and locate
1024 unused parts of the compiler. With LEVEL, specify
1025 optimization. Values are opt, noopt,
1027 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1028 --enable-multilib enable library support for multiple ABIs
1029 --enable-__cxa_atexit enable __cxa_atexit for C++
1030 --enable-decimal-float={no,yes,bid,dpd}
1031 enable decimal float extension to C. Selecting 'bid
'
1032 or 'dpd
' choses which decimal floating point format
1034 --enable-fixed-point enable fixed-point arithmetic extension to C
1035 --enable-threads enable thread usage for target GCC
1036 --enable-threads=LIB use LIB thread package for target GCC
1037 --enable-tls enable or disable generation of tls code
1038 overriding the assembler check for tls support
1039 --enable-objc-gc enable the use of Boehm's garbage collector with
1040 the GNU Objective-C runtime
1041 --disable-shared don
't provide a shared libgcc
1042 --enable-intermodule build the compiler in one step
1043 --enable-languages=LIST specify which front-ends to build
1044 --disable-rpath do not hardcode runtime library paths
1045 --enable-initfini-array use .init_array/.fini_array sections
1046 --enable-sjlj-exceptions
1047 arrange to use setjmp/longjmp exception handling
1048 --enable-secureplt enable -msecure-plt by default for PowerPC
1049 --disable-win32-registry
1050 disable lookup of installation paths in the
1051 Registry on Windows hosts
1052 --enable-win32-registry enable registry lookup (default)
1053 --enable-win32-registry=KEY
1054 use KEY instead of GCC version as the last portion
1056 --enable-shared[=PKGS]
1057 build shared libraries [default=yes]
1058 --enable-static[=PKGS]
1059 build static libraries [default=yes]
1060 --enable-fast-install[=PKGS]
1061 optimize for fast installation [default=yes]
1062 --disable-libtool-lock avoid locking (might break parallel builds)
1063 --enable-maintainer-mode
1064 enable make rules and dependencies not useful
1065 (and sometimes confusing) to the casual installer
1066 --enable-version-specific-runtime-libs
1067 specify that runtime libraries should be
1068 installed in a compiler-specific directory
1071 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1072 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1073 --with-build-libsubdir=DIR Directory where to find libraries for build system
1074 --with-local-prefix=DIR specifies directory to put local include
1075 --with-gxx-include-dir=DIR
1076 specifies directory to put g++ header files
1077 --with-cpp-install-dir=DIR
1078 install the user visible C preprocessor in DIR
1079 (relative to PREFIX) as well as PREFIX/bin
1080 --with-gnu-ld arrange to work with GNU ld.
1081 --with-ld arrange to use the specified ld (full pathname)
1082 --with-demangler-in-ld try to use demangler in GNU ld.
1083 --with-gnu-as arrange to work with GNU as
1084 --with-as arrange to use the specified as (full pathname)
1085 --with-stabs arrange to use stabs instead of host debug format
1086 --with-dwarf2 force the default debug format to be DWARF 2
1087 --with-build-sysroot=sysroot
1088 use sysroot as the system root during the build
1089 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1090 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1091 --with-bugurl=URL Direct users to URL to report a bug
1092 --with-gnu-ld assume the C compiler uses GNU ld default=no
1093 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1094 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1095 --with-system-libunwind use installed libunwind
1096 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1098 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1099 --with-long-double-128 Use
128-bit long double by default.
1100 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1102 --with-system-zlib use installed libz
1103 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1104 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
1105 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
1106 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
1108 Some influential environment variables
:
1109 CC C compiler
command
1110 CFLAGS C compiler flags
1111 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1112 nonstandard directory
<lib dir
>
1113 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1114 headers
in a nonstandard directory
<include dir
>
1116 GMPLIBS How to link GMP
1117 GMPINC How to
find GMP include files
1119 Use these variables to override the choices made by
`configure' or to help
1120 it to find libraries and programs with nonstandard names/locations.
1125 if test "$ac_init_help" = "recursive"; then
1126 # If there are subdirs, report their specific --help.
1128 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1129 test -d $ac_dir || continue
1132 if test "$ac_dir" != .; then
1133 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1134 # A "../" for each directory in $ac_dir_suffix.
1135 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1137 ac_dir_suffix= ac_top_builddir=
1141 .) # No --srcdir option. We are building in place.
1143 if test -z "$ac_top_builddir"; then
1146 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1148 [\\/]* | ?:[\\/]* ) # Absolute path.
1149 ac_srcdir=$srcdir$ac_dir_suffix;
1150 ac_top_srcdir=$srcdir ;;
1152 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1153 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1156 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1157 # the directories may not exist.
1159 .) ac_abs_builddir="$ac_dir";;
1162 .) ac_abs_builddir=`pwd`;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1164 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1170 case ${ac_top_builddir}. in
1171 .) ac_abs_top_builddir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1173 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1176 case $ac_abs_builddir in
1177 .) ac_abs_srcdir=$ac_srcdir;;
1180 .) ac_abs_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1182 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1188 case $ac_top_srcdir in
1189 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1190 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1191 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1196 # Check for guested configure; otherwise get Cygnus style configure.
1197 if test -f $ac_srcdir/configure.gnu; then
1199 $SHELL $ac_srcdir/configure.gnu --help=recursive
1200 elif test -f $ac_srcdir/configure; then
1202 $SHELL $ac_srcdir/configure --help=recursive
1203 elif test -f $ac_srcdir/configure.ac ||
1204 test -f $ac_srcdir/configure.in; then
1206 $ac_configure --help
1208 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1214 test -n "$ac_init_help" && exit 0
1215 if $ac_init_version; then
1218 Copyright (C) 2003 Free Software Foundation, Inc.
1219 This configure script is free software; the Free Software Foundation
1220 gives unlimited permission to copy, distribute and modify it.
1226 This file contains any messages produced by compilers while
1227 running configure, to aid debugging if configure makes a mistake.
1229 It was created by $as_me, which was
1230 generated by GNU Autoconf 2.59. Invocation command line was
1241 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1242 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1243 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1244 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1245 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1247 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1248 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1250 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1251 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1252 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1253 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1254 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1255 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1256 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1264 test -z "$as_dir" && as_dir=.
1265 echo "PATH: $as_dir"
1280 # Keep a trace of the command line.
1281 # Strip out --no-create and --no-recursion so they do not pile up.
1282 # Strip out --silent because we don't want to record it for future runs.
1283 # Also quote any args containing shell meta-characters.
1284 # Make two passes to allow for proper duplicate-argument suppression.
1289 ac_must_keep_next=false
1295 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1297 | -silent | --silent | --silen | --sile | --sil)
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1303 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1305 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1306 if test $ac_must_keep_next = true; then
1307 ac_must_keep_next=false # Got value, back to normal.
1310 *=* | --config-cache | -C | -disable-* | --disable-* \
1311 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1312 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1313 | -with-* | --with-* | -without-* | --without-* | --x)
1314 case "$ac_configure_args0 " in
1315 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1318 -* ) ac_must_keep_next=true ;;
1321 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1322 # Get rid of the leading space.
1328 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1329 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1331 # When interrupted or exit'd, cleanup temporary files, and complete
1332 # config.log. We remove comments because anyway the quotes in there
1333 # would cause problems or look ugly.
1334 # WARNING: Be sure not to use single quotes in there, as some shells,
1335 # such as our DU 5.0 friend, will then `close
' the trap.
1336 trap 'exit_status
=$?
1337 # Save into config.log some information that might help in debugging.
1342 ## ---------------- ##
1343 ## Cache variables. ##
1344 ## ---------------- ##
1347 # The following way of writing the cache mishandles newlines in values,
1350 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1353 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1358 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1365 ## ----------------- ##
1366 ## Output variables. ##
1367 ## ----------------- ##
1370 for ac_var
in $ac_subst_vars
1372 eval ac_val
=$
`echo $ac_var`
1373 echo "$ac_var='"'"'$ac_val'"'"'"
1377 if test -n "$ac_subst_files"; then
1384 for ac_var
in $ac_subst_files
1386 eval ac_val
=$
`echo $ac_var`
1387 echo "$ac_var='"'"'$ac_val'"'"'"
1392 if test -s confdefs.h
; then
1399 sed "/^$/d" confdefs.h |
sort
1402 test "$ac_signal" != 0 &&
1403 echo "$as_me: caught signal $ac_signal"
1404 echo "$as_me: exit $exit_status"
1406 rm -f core
*.core
&&
1407 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1410 for ac_signal in 1 2 13 15; do
1411 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1415 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1416 rm -rf conftest* confdefs.h
1417 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1420 # Predefined preprocessor variables.
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_NAME "$PACKAGE_NAME"
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_STRING "$PACKAGE_STRING"
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1447 # Let the site file select an alternate cache file if it wants to.
1448 # Prefer explicitly selected file to automatically selected ones.
1449 if test -z "$CONFIG_SITE"; then
1450 if test "x$prefix" != xNONE; then
1451 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1453 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1456 for ac_site_file in $CONFIG_SITE; do
1457 if test -r "$ac_site_file"; then
1458 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1459 echo "$as_me: loading site script $ac_site_file" >&6;}
1460 sed 's
/^
/|
/' "$ac_site_file" >&5
1465 if test -r "$cache_file"; then
1466 # Some versions of bash will fail to source /dev/null (special
1467 # files actually), so we avoid doing that.
1468 if test -f "$cache_file"; then
1469 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1470 echo "$as_me: loading cache $cache_file" >&6;}
1472 [\\/]* | ?:[\\/]* ) . $cache_file;;
1473 *) . ./$cache_file;;
1477 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1478 echo "$as_me: creating cache $cache_file" >&6;}
1482 # Check that the precious variables saved in the cache have kept the same
1484 ac_cache_corrupted=false
1485 for ac_var in `(set) 2>&1 |
1486 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1487 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1488 eval ac_new_set=\$ac_env_${ac_var}_set
1489 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1490 eval ac_new_val="\$ac_env_${ac_var}_value"
1491 case $ac_old_set,$ac_new_set in
1493 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1494 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1495 ac_cache_corrupted=: ;;
1497 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1498 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1499 ac_cache_corrupted=: ;;
1502 if test "x$ac_old_val" != "x$ac_new_val"; then
1503 # differences in whitespace do not lead to failure.
1504 ac_old_val_w=`echo x $ac_old_val`
1505 ac_new_val_w=`echo x $ac_new_val`
1506 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1507 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1508 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1509 ac_cache_corrupted=:
1511 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1512 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1513 eval $ac_var=\$ac_old_val
1515 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1516 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1517 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1518 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1521 # Pass precious variables to config.status.
1522 if test "$ac_new_set" = set; then
1524 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1525 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1526 *) ac_arg=$ac_var=$ac_new_val ;;
1528 case " $ac_configure_args " in
1529 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1530 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1534 if $ac_cache_corrupted; then
1535 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1536 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1537 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1538 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1539 { (exit 1); exit 1; }; }
1543 ac_cpp='$CPP $CPPFLAGS'
1544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1545 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1567 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1570 gcc_version=`cat $srcdir/BASE-VER`
1572 # Determine the host, build, and target systems
1574 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1575 if test -f $ac_dir/install-sh; then
1577 ac_install_sh="$ac_aux_dir/install-sh -c"
1579 elif test -f $ac_dir/install.sh; then
1581 ac_install_sh="$ac_aux_dir/install.sh -c"
1583 elif test -f $ac_dir/shtool; then
1585 ac_install_sh="$ac_aux_dir/shtool install -c"
1589 if test -z "$ac_aux_dir"; then
1590 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1591 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1592 { (exit 1); exit 1; }; }
1594 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1595 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1596 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1598 # Make sure we can run config.sub.
1599 $ac_config_sub sun4 >/dev/null 2>&1 ||
1600 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1601 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1602 { (exit 1); exit 1; }; }
1604 echo "$as_me:$LINENO: checking build system type" >&5
1605 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1606 if test "${ac_cv_build+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 ac_cv_build_alias=$build_alias
1610 test -z "$ac_cv_build_alias" &&
1611 ac_cv_build_alias=`$ac_config_guess`
1612 test -z "$ac_cv_build_alias" &&
1613 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1614 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1615 { (exit 1); exit 1; }; }
1616 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1623 echo "${ECHO_T}$ac_cv_build" >&6
1625 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1626 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1627 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1630 echo "$as_me:$LINENO: checking host system type" >&5
1631 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1632 if test "${ac_cv_host+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 ac_cv_host_alias=$host_alias
1636 test -z "$ac_cv_host_alias" &&
1637 ac_cv_host_alias=$ac_cv_build_alias
1638 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1640 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1644 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1645 echo "${ECHO_T}$ac_cv_host" >&6
1647 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1648 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1649 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1652 echo "$as_me:$LINENO: checking target system type" >&5
1653 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1654 if test "${ac_cv_target+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 ac_cv_target_alias=$target_alias
1658 test "x$ac_cv_target_alias" = "x" &&
1659 ac_cv_target_alias=$ac_cv_host_alias
1660 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1661 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1662 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1663 { (exit 1); exit 1; }; }
1666 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1667 echo "${ECHO_T}$ac_cv_target" >&6
1668 target=$ac_cv_target
1669 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1670 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1671 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1674 # The aliases save the names the user supplied, while $host etc.
1675 # will get canonicalized.
1676 test -n "$target_alias" &&
1677 test "$program_prefix$program_suffix$program_transform_name" = \
1679 program_prefix=${target_alias}-
1681 # Determine the noncanonical target name, for directory use.
1682 case ${build_alias} in
1683 "") build_noncanonical=${build} ;;
1684 *) build_noncanonical=${build_alias} ;;
1687 case ${host_alias} in
1688 "") host_noncanonical=${build_noncanonical} ;;
1689 *) host_noncanonical=${host_alias} ;;
1692 case ${target_alias} in
1693 "") target_noncanonical=${host_noncanonical} ;;
1694 *) target_noncanonical=${target_alias} ;;
1700 # Determine the target- and build-specific subdirectories
1702 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1703 # have matching libraries, they should use host libraries: Makefile.tpl
1704 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1705 # However, they still use the build modules, because the corresponding
1706 # host modules (e.g. bison) are only built for the host when bootstrap
1708 # - build_subdir is where we find build modules, and never changes.
1709 # - build_libsubdir is where we find build libraries, and can be overridden.
1711 # Prefix 'build-
' so this never conflicts with target_subdir.
1712 build_subdir="build-${build_noncanonical}"
1714 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1715 if test "${with_build_libsubdir+set}" = set; then
1716 withval="$with_build_libsubdir"
1717 build_libsubdir="$withval"
1719 build_libsubdir="$build_subdir"
1721 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1722 if ( test $srcdir = . && test -d gcc ) \
1723 || test -d $srcdir/../host-${host_noncanonical}; then
1724 host_subdir="host-${host_noncanonical}"
1729 target_subdir=${target_noncanonical}
1732 # Set program_transform_name
1733 test "$program_prefix" != NONE &&
1734 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1735 # Use a double $ so make ignores it.
1736 test "$program_suffix" != NONE &&
1737 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1738 # Double any \ or $. echo might interpret backslashes.
1739 # By default was `s,x,x', remove it
if useless.
1740 cat <<\_ACEOF
>conftest.
sed
1741 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1743 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1747 # Check for bogus environment variables.
1748 # Test if LIBRARY_PATH contains the notation for the current directory
1749 # since this would lead to problems installing/building glibc.
1750 # LIBRARY_PATH contains the current directory if one of the following
1752 # - one of the terminals (":" and ";") is the first or last sign
1753 # - two terminals occur directly after each other
1754 # - the path contains an element with a dot in it
1755 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1756 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1757 case ${LIBRARY_PATH} in
1758 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1759 library_path_setting
="contains current directory"
1762 library_path_setting
="ok"
1765 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1766 echo "${ECHO_T}$library_path_setting" >&6
1767 if test "$library_path_setting" != "ok"; then
1768 { { echo "$as_me:$LINENO: error:
1769 *** LIBRARY_PATH shouldn't contain the current directory when
1770 *** building gcc. Please change the environment variable
1771 *** and run configure again." >&5
1772 echo "$as_me: error:
1773 *** LIBRARY_PATH shouldn't contain the current directory when
1774 *** building gcc. Please change the environment variable
1775 *** and run configure again." >&2;}
1776 { (exit 1); exit 1; }; }
1779 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1780 # since this would lead to problems installing/building glibc.
1781 # GCC_EXEC_PREFIX contains the current directory if one of the following
1783 # - one of the terminals (":" and ";") is the first or last sign
1784 # - two terminals occur directly after each other
1785 # - the path contains an element with a dot in it
1786 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1787 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1788 case ${GCC_EXEC_PREFIX} in
1789 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1790 gcc_exec_prefix_setting
="contains current directory"
1793 gcc_exec_prefix_setting
="ok"
1796 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1797 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1798 if test "$gcc_exec_prefix_setting" != "ok"; then
1799 { { echo "$as_me:$LINENO: error:
1800 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1801 *** building gcc. Please change the environment variable
1802 *** and run configure again." >&5
1803 echo "$as_me: error:
1804 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1805 *** building gcc. Please change the environment variable
1806 *** and run configure again." >&2;}
1807 { (exit 1); exit 1; }; }
1814 # Specify the local prefix
1817 # Check whether --with-local-prefix or --without-local-prefix was given.
1818 if test "${with_local_prefix+set}" = set; then
1819 withval
="$with_local_prefix"
1820 case "${withval}" in
1821 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1822 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1823 { (exit 1); exit 1; }; } ;;
1825 *) local_prefix
=$with_local_prefix ;;
1829 # Default local prefix if it is empty
1830 if test x
$local_prefix = x
; then
1831 local_prefix
=/usr
/local
1834 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1835 # passed in by the toplevel make and thus we'd get different behavior
1836 # depending on where we built the sources.
1837 gcc_gxx_include_dir
=
1838 # Specify the g++ header file directory
1840 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1841 if test "${with_gxx_include_dir+set}" = set; then
1842 withval
="$with_gxx_include_dir"
1843 case "${withval}" in
1844 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1845 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1846 { (exit 1); exit 1; }; } ;;
1848 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1852 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1853 if test x
${gcc_gxx_include_dir} = x
; then
1854 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1855 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1857 libstdcxx_incdir
='include/c++/$(version)'
1858 if test x
$host != x
$target; then
1859 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1861 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1866 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1867 if test "${with_cpp_install_dir+set}" = set; then
1868 withval
="$with_cpp_install_dir"
1869 if test x
$withval = xyes
; then
1870 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1871 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1872 { (exit 1); exit 1; }; }
1873 elif test x
$withval != xno
; then
1874 cpp_install_dir
=$withval
1878 # We would like to our source tree to be readonly. However when releases or
1879 # pre-releases are generated, the flex/bison generated files as well as the
1880 # various formats of manuals need to be included along with the rest of the
1881 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1884 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1885 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1886 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1887 if test "${enable_generated_files_in_srcdir+set}" = set; then
1888 enableval
="$enable_generated_files_in_srcdir"
1889 generated_files_in_srcdir
=$enableval
1891 generated_files_in_srcdir
=no
1894 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1895 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1897 if test "$generated_files_in_srcdir" = "yes"; then
1904 # -------------------
1905 # Find default linker
1906 # -------------------
1910 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1911 if test "${with_gnu_ld+set}" = set; then
1912 withval
="$with_gnu_ld"
1913 gnu_ld_flag
="$with_gnu_ld"
1918 # With pre-defined ld
1920 # Check whether --with-ld or --without-ld was given.
1921 if test "${with_ld+set}" = set; then
1923 DEFAULT_LINKER
="$with_ld"
1925 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1926 if test ! -x "$DEFAULT_LINKER"; then
1927 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1928 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1929 { (exit 1); exit 1; }; }
1930 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1934 cat >>confdefs.h
<<_ACEOF
1935 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1940 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1942 cat >>confdefs.h
<<_ACEOF
1943 #define HAVE_GNU_LD $gnu_ld
1947 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1948 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1949 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1950 if test x
"$gnu_ld_flag" = x
"no"; then
1951 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1952 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1954 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1955 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1962 # With demangler in GNU ld
1964 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1965 if test "${with_demangler_in_ld+set}" = set; then
1966 withval
="$with_demangler_in_ld"
1967 demangler_in_ld
="$with_demangler_in_ld"
1972 # ----------------------
1973 # Find default assembler
1974 # ----------------------
1978 # Check whether --with-gnu-as or --without-gnu-as was given.
1979 if test "${with_gnu_as+set}" = set; then
1980 withval
="$with_gnu_as"
1981 gas_flag
="$with_gnu_as"
1987 # Check whether --with-as or --without-as was given.
1988 if test "${with_as+set}" = set; then
1990 DEFAULT_ASSEMBLER
="$with_as"
1992 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1993 if test ! -x "$DEFAULT_ASSEMBLER"; then
1994 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1995 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1996 { (exit 1); exit 1; }; }
1997 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2001 cat >>confdefs.h
<<_ACEOF
2002 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2007 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2009 cat >>confdefs.h
<<_ACEOF
2010 #define HAVE_GNU_AS $gnu_as
2014 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2015 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2016 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2017 if test x
"$gas_flag" = x
"no"; then
2018 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2019 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2021 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2022 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2033 # If a non-executable a.out is present (e.g. created by GNU as above even if
2034 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2035 # file, even when creating an executable, so an execution test fails.
2036 # Remove possible default executable files to avoid this.
2038 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2039 # Autoconf includes it.
2040 rm -f a.out a.exe b.out
2042 # Find the native compiler
2044 ac_cpp
='$CPP $CPPFLAGS'
2045 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2048 if test -n "$ac_tool_prefix"; then
2049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2050 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$CC"; then
2057 ac_cv_prog_CC
="$CC" # Let the user override the test.
2059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir
=.
2064 for ac_exec_ext
in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 if test -n "$CC"; then
2077 echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2085 if test -z "$ac_cv_prog_CC"; then
2087 # Extract the first word of "gcc", so it can be a program name with args.
2088 set dummy gcc
; ac_word
=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir
=.
2102 for ac_exec_ext
in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC
="gcc"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC
="$CC" # Let the user override the test.
2139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir
=.
2144 for ac_exec_ext
in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 if test -n "$CC"; then
2157 echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2165 if test -z "$ac_cv_prog_CC"; then
2167 # Extract the first word of "cc", so it can be a program name with args.
2168 set dummy cc
; ac_word
=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$ac_ct_CC"; then
2175 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir
=.
2182 for ac_exec_ext
in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_ac_ct_CC
="cc"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2194 if test -n "$ac_ct_CC"; then
2195 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196 echo "${ECHO_T}$ac_ct_CC" >&6
2198 echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2208 if test -z "$CC"; then
2209 # Extract the first word of "cc", so it can be a program name with args.
2210 set dummy cc
; ac_word
=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC
="$CC" # Let the user override the test.
2220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2224 test -z "$as_dir" && as_dir
=.
2225 for ac_exec_ext
in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2228 ac_prog_rejected
=yes
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 if test $ac_prog_rejected = yes; then
2239 # We found a bogon in the path, so make sure we never use it.
2240 set dummy
$ac_cv_prog_CC
2242 if test $# != 0; then
2243 # We chose a different compiler from the bogus one.
2244 # However, it has the same basename, so the bogon will be chosen
2245 # first if we set CC to just the basename; use the full file name.
2247 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2262 if test -z "$CC"; then
2263 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2267 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC
="$CC" # Let the user override the test.
2276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir
=.
2281 for ac_exec_ext
in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 if test -n "$CC"; then
2294 echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2297 echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2301 test -n "$CC" && break
2304 if test -z "$CC"; then
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy
$ac_prog; ac_word
=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir
=.
2323 for ac_exec_ext
in '' $ac_executable_extensions; do
2324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_ac_ct_CC
="$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6
2339 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2343 test -n "$ac_ct_CC" && break
2352 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: no acceptable C compiler found in \$PATH
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2358 # Provide some information about the compiler.
2359 echo "$as_me:$LINENO:" \
2360 "checking for C compiler version" >&5
2361 ac_compiler
=`set X $ac_compile; echo $2`
2362 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2363 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2368 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2373 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2378 cat >conftest.
$ac_ext <<_ACEOF
2381 cat confdefs.h
>>conftest.
$ac_ext
2382 cat >>conftest.
$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2393 ac_clean_files_save
=$ac_clean_files
2394 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2398 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2400 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2402 (eval $ac_link_default) 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; then
2406 # Find the output, starting from the most likely. This scheme is
2407 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2410 # Be careful to initialize this variable, since it used to be cached.
2411 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2413 # b.out is created by i960 compilers.
2414 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2416 test -f "$ac_file" ||
continue
2418 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2421 # This is the source file.
2424 # We found the default executable, but exeext='' is most
2428 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429 # FIXME: I believe we export ac_cv_exeext for Libtool,
2430 # but it would be cool to find out if it's true. Does anybody
2431 # maintain Libtool? --akim.
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.
$ac_ext >&5
2442 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&2;}
2446 { (exit 77); exit 77; }; }
2449 ac_exeext
=$ac_cv_exeext
2450 echo "$as_me:$LINENO: result: $ac_file" >&5
2451 echo "${ECHO_T}$ac_file" >&6
2453 # Check the compiler produces executables we can run. If not, either
2454 # the compiler is broken, or we cross compile.
2455 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2456 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2457 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2458 # If not cross compiling, check that we can run a simple program.
2459 if test "$cross_compiling" != yes; then
2460 if { ac_try
='./$ac_file'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2468 if test "$cross_compiling" = maybe
; then
2471 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: cannot run C compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \`config.log' for more details." >&2;}
2477 { (exit 1); exit 1; }; }
2481 echo "$as_me:$LINENO: result: yes" >&5
2482 echo "${ECHO_T}yes" >&6
2484 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2485 ac_clean_files
=$ac_clean_files_save
2486 # Check the compiler produces executables we can run. If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2489 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2490 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2491 echo "${ECHO_T}$cross_compiling" >&6
2493 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2494 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2496 (eval $ac_link) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; then
2500 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2501 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2502 # work properly (i.e., refer to `conftest.exe'), while it won't with
2504 for ac_file
in conftest.exe conftest conftest.
*; do
2505 test -f "$ac_file" ||
continue
2507 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2508 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2515 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2522 rm -f conftest
$ac_cv_exeext
2523 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2524 echo "${ECHO_T}$ac_cv_exeext" >&6
2526 rm -f conftest.
$ac_ext
2527 EXEEXT
=$ac_cv_exeext
2529 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531 if test "${ac_cv_objext+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 cat >conftest.
$ac_ext <<_ACEOF
2537 cat confdefs.h
>>conftest.
$ac_ext
2538 cat >>conftest.
$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2549 rm -f conftest.o conftest.obj
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2557 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2558 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.
$ac_ext >&5
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2573 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2575 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6
2577 OBJEXT
=$ac_cv_objext
2579 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 cat >conftest.
$ac_ext <<_ACEOF
2587 cat confdefs.h
>>conftest.
$ac_ext
2588 cat >>conftest.
$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2602 rm -f conftest.
$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1
>conftest.err
2608 cat conftest.err
>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try
='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try
='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.
$ac_ext >&5
2631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2632 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2635 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2636 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2637 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2638 ac_test_CFLAGS
=${CFLAGS+set}
2639 ac_save_CFLAGS
=$CFLAGS
2641 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2642 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2643 if test "${ac_cv_prog_cc_g+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 cat >conftest.
$ac_ext <<_ACEOF
2649 cat confdefs.h
>>conftest.
$ac_ext
2650 cat >>conftest.
$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2661 rm -f conftest.
$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2665 grep -v '^ *+' conftest.er1
>conftest.err
2667 cat conftest.err
>&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try
='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try
='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.
$ac_ext >&5
2690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2692 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2693 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2694 if test "$ac_test_CFLAGS" = set; then
2695 CFLAGS
=$ac_save_CFLAGS
2696 elif test $ac_cv_prog_cc_g = yes; then
2697 if test "$GCC" = yes; then
2703 if test "$GCC" = yes; then
2709 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2710 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2711 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 ac_cv_prog_cc_stdc
=no
2716 cat >conftest.
$ac_ext <<_ACEOF
2719 cat confdefs.h
>>conftest.
$ac_ext
2720 cat >>conftest.
$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2724 #include <sys/types.h>
2725 #include <sys/stat.h>
2726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2727 struct buf { int x; };
2728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2729 static char *e (p, i)
2735 static char *f (char * (*g) (char **, int), char **p, ...)
2740 s = g (p, va_arg (v,int));
2745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2746 function prototypes and stuff, but not '\xHH' hex character constants.
2747 These don't provoke an error unfortunately, instead are silently treated
2748 as 'x'. The following induces an error, until -std1 is added to get
2749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2750 array size at least. It's necessary to write '\x00'==0 to get something
2751 that's true only with -std1. */
2752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2754 int test (int i, double x);
2755 struct s1 {int (*f) (int a);};
2756 struct s2 {int (*f) (double a);};
2757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2768 # Don't try gcc -ansi; that turns off useful extensions and
2769 # breaks some systems' header files.
2770 # AIX -qlanglvl=ansi
2771 # Ultrix and OSF/1 -std1
2772 # HP-UX 10.20 and later -Ae
2773 # HP-UX older versions -Aa -D_HPUX_SOURCE
2774 # SVR4 -Xc -D__EXTENSIONS__
2775 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 CC
="$ac_save_CC $ac_arg"
2778 rm -f conftest.
$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1
>conftest.err
2784 cat conftest.err
>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try
='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try
='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_prog_cc_stdc
=$ac_arg
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.
$ac_ext >&5
2807 rm -f conftest.err conftest.
$ac_objext
2809 rm -f conftest.
$ac_ext conftest.
$ac_objext
2814 case "x$ac_cv_prog_cc_stdc" in
2816 echo "$as_me:$LINENO: result: none needed" >&5
2817 echo "${ECHO_T}none needed" >&6 ;;
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2821 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2824 # Some people use a C++ compiler to compile C. Since we use `exit',
2825 # in C++ we need to declare it. In case someone uses the same compiler
2826 # for both compiling C and C++ we need to have the C++ compiler decide
2827 # the declaration of exit, since it's the most demanding environment.
2828 cat >conftest.
$ac_ext <<_ACEOF
2833 rm -f conftest.
$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1
>conftest.err
2839 cat conftest.err
>&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try
='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try
='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 for ac_declaration
in \
2857 'extern "C" void std::exit (int) throw (); using std::exit;' \
2858 'extern "C" void std::exit (int); using std::exit;' \
2859 'extern "C" void exit (int) throw ();' \
2860 'extern "C" void exit (int);' \
2863 cat >conftest.
$ac_ext <<_ACEOF
2866 cat confdefs.h
>>conftest.
$ac_ext
2867 cat >>conftest.
$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2879 rm -f conftest.
$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1
>conftest.err
2885 cat conftest.err
>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try
='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try
='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.
$ac_ext >&5
2908 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2909 cat >conftest.
$ac_ext <<_ACEOF
2912 cat confdefs.h
>>conftest.
$ac_ext
2913 cat >>conftest.
$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2924 rm -f conftest.
$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1
>conftest.err
2930 cat conftest.err
>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try
='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try
='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.
$ac_ext >&5
2952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2955 if test -n "$ac_declaration"; then
2956 echo '#ifdef __cplusplus' >>confdefs.h
2957 echo $ac_declaration >>confdefs.h
2958 echo '#endif' >>confdefs.h
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.
$ac_ext >&5
2966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2968 ac_cpp
='$CPP $CPPFLAGS'
2969 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2973 if test "x$CC" != xcc
; then
2974 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2975 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2977 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2978 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2980 set dummy
$CC; ac_cc
=`echo $2 |
2981 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2982 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 cat >conftest.
$ac_ext <<_ACEOF
2988 cat confdefs.h
>>conftest.
$ac_ext
2989 cat >>conftest.
$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
3000 # Make sure it works both with $CC and with simple cc.
3001 # We do the test twice because some compilers refuse to overwrite an
3002 # existing .o file with -o, though they will create one.
3003 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3004 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); };
3015 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3016 if test "x$CC" != xcc
; then
3017 # Test first that cc exists at all.
3018 if { ac_try
='cc -c conftest.$ac_ext >&5'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3024 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3025 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); };
3039 # cc exists but doesn't like -o.
3040 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3045 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3050 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3051 echo "$as_me:$LINENO: result: yes" >&5
3052 echo "${ECHO_T}yes" >&6
3054 echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3057 cat >>confdefs.h
<<\_ACEOF
3058 #define NO_MINUS_C_MINUS_O 1
3063 # expand $ac_aux_dir to an absolute path
3064 am_aux_dir
=`cd $ac_aux_dir && pwd`
3066 # FIXME: we rely on the cache variable name because
3067 # there is no other way.
3069 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3070 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3071 # Losing compiler, so override with the script.
3072 # FIXME: It is wrong to rewrite CC.
3073 # But if we don't then we get into trouble of one sort or another.
3074 # A longer-term fix would be to have automake use am__CC in this case,
3075 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3076 CC
="$am_aux_dir/compile $CC"
3079 # autoconf is lame and doesn't give us any substitution variable for this.
3080 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3081 NO_MINUS_C_MINUS_O
=yes
3083 OUTPUT_OPTION
='-o $@'
3088 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3089 # optimizations to be activated explicitly by the toplevel.
3091 */prev-gcc
/xgcc
*) ;;
3092 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3096 # -------------------------
3097 # Check C compiler features
3098 # -------------------------
3102 ac_cpp
='$CPP $CPPFLAGS'
3103 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3106 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3107 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3108 # On Suns, sometimes $CPP names a directory.
3109 if test -n "$CPP" && test -d "$CPP"; then
3112 if test -z "$CPP"; then
3113 if test "${ac_cv_prog_CPP+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 # Double quotes because CPP needs to be expanded
3117 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3120 for ac_c_preproc_warn_flag
in '' yes
3122 # Use a header file that comes with gcc, so configuring glibc
3123 # with a fresh cross-compiler works.
3124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125 # <limits.h> exists even on freestanding compilers.
3126 # On the NeXT, cc -E runs the code through the compiler's parser,
3127 # not just through cpp. "Syntax error" is here to catch this case.
3128 cat >conftest.
$ac_ext <<_ACEOF
3131 cat confdefs.h
>>conftest.
$ac_ext
3132 cat >>conftest.
$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3135 # include <limits.h>
3137 # include <assert.h>
3141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3144 grep -v '^ *+' conftest.er1
>conftest.err
3146 cat conftest.err
>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } >/dev
/null
; then
3149 if test -s conftest.err
; then
3150 ac_cpp_err
=$ac_c_preproc_warn_flag
3151 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3158 if test -z "$ac_cpp_err"; then
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.
$ac_ext >&5
3164 # Broken: fails on valid input.
3167 rm -f conftest.err conftest.
$ac_ext
3169 # OK, works on sane cases. Now check whether non-existent headers
3170 # can be detected and how.
3171 cat >conftest.
$ac_ext <<_ACEOF
3174 cat confdefs.h
>>conftest.
$ac_ext
3175 cat >>conftest.
$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3177 #include <ac_nonexistent.h>
3179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3180 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3182 grep -v '^ *+' conftest.er1
>conftest.err
3184 cat conftest.err
>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } >/dev
/null
; then
3187 if test -s conftest.err
; then
3188 ac_cpp_err
=$ac_c_preproc_warn_flag
3189 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3196 if test -z "$ac_cpp_err"; then
3197 # Broken: success on invalid input.
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.
$ac_ext >&5
3203 # Passes both tests.
3207 rm -f conftest.err conftest.
$ac_ext
3210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211 rm -f conftest.err conftest.
$ac_ext
3212 if $ac_preproc_ok; then
3224 echo "$as_me:$LINENO: result: $CPP" >&5
3225 echo "${ECHO_T}$CPP" >&6
3227 for ac_c_preproc_warn_flag
in '' yes
3229 # Use a header file that comes with gcc, so configuring glibc
3230 # with a fresh cross-compiler works.
3231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232 # <limits.h> exists even on freestanding compilers.
3233 # On the NeXT, cc -E runs the code through the compiler's parser,
3234 # not just through cpp. "Syntax error" is here to catch this case.
3235 cat >conftest.
$ac_ext <<_ACEOF
3238 cat confdefs.h
>>conftest.
$ac_ext
3239 cat >>conftest.
$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3242 # include <limits.h>
3244 # include <assert.h>
3248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3249 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3251 grep -v '^ *+' conftest.er1
>conftest.err
3253 cat conftest.err
>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } >/dev
/null
; then
3256 if test -s conftest.err
; then
3257 ac_cpp_err
=$ac_c_preproc_warn_flag
3258 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3265 if test -z "$ac_cpp_err"; then
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.
$ac_ext >&5
3271 # Broken: fails on valid input.
3274 rm -f conftest.err conftest.
$ac_ext
3276 # OK, works on sane cases. Now check whether non-existent headers
3277 # can be detected and how.
3278 cat >conftest.
$ac_ext <<_ACEOF
3281 cat confdefs.h
>>conftest.
$ac_ext
3282 cat >>conftest.
$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3284 #include <ac_nonexistent.h>
3286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3287 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3289 grep -v '^ *+' conftest.er1
>conftest.err
3291 cat conftest.err
>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev
/null
; then
3294 if test -s conftest.err
; then
3295 ac_cpp_err
=$ac_c_preproc_warn_flag
3296 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3303 if test -z "$ac_cpp_err"; then
3304 # Broken: success on invalid input.
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.
$ac_ext >&5
3310 # Passes both tests.
3314 rm -f conftest.err conftest.
$ac_ext
3317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318 rm -f conftest.err conftest.
$ac_ext
3319 if $ac_preproc_ok; then
3322 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3323 See \`config.log' for more details." >&5
3324 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3325 See \`config.log' for more details." >&2;}
3326 { (exit 1); exit 1; }; }
3330 ac_cpp
='$CPP $CPPFLAGS'
3331 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3336 echo "$as_me:$LINENO: checking for egrep" >&5
3337 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3338 if test "${ac_cv_prog_egrep+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3342 then ac_cv_prog_egrep
='grep -E'
3343 else ac_cv_prog_egrep
='egrep'
3346 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3347 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3348 EGREP
=$ac_cv_prog_egrep
3351 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3352 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3353 if test "${ac_cv_header_stdc+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 cat >conftest.
$ac_ext <<_ACEOF
3359 cat confdefs.h
>>conftest.
$ac_ext
3360 cat >>conftest.
$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3375 rm -f conftest.
$ac_objext
3376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3377 (eval $ac_compile) 2>conftest.er1
3379 grep -v '^ *+' conftest.er1
>conftest.err
3381 cat conftest.err
>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try
='test -z "$ac_c_werror_flag"
3385 || test ! -s conftest.err'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; } &&
3391 { ac_try
='test -s conftest.$ac_objext'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3397 ac_cv_header_stdc
=yes
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.
$ac_ext >&5
3402 ac_cv_header_stdc
=no
3404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3406 if test $ac_cv_header_stdc = yes; then
3407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3408 cat >conftest.
$ac_ext <<_ACEOF
3411 cat confdefs.h
>>conftest.
$ac_ext
3412 cat >>conftest.
$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3418 $EGREP "memchr" >/dev
/null
2>&1; then
3421 ac_cv_header_stdc
=no
3427 if test $ac_cv_header_stdc = yes; then
3428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3429 cat >conftest.
$ac_ext <<_ACEOF
3432 cat confdefs.h
>>conftest.
$ac_ext
3433 cat >>conftest.
$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3439 $EGREP "free" >/dev
/null
2>&1; then
3442 ac_cv_header_stdc
=no
3448 if test $ac_cv_header_stdc = yes; then
3449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3450 if test "$cross_compiling" = yes; then
3453 cat >conftest.
$ac_ext <<_ACEOF
3456 cat confdefs.h
>>conftest.
$ac_ext
3457 cat >>conftest.
$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3460 #if ((' ' & 0x0FF) == 0x020)
3461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3464 # define ISLOWER(c) \
3465 (('a' <= (c) && (c) <= 'i') \
3466 || ('j' <= (c) && (c) <= 'r') \
3467 || ('s' <= (c) && (c) <= 'z'))
3468 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3476 for (i = 0; i < 256; i++)
3477 if (XOR (islower (i), ISLOWER (i))
3478 || toupper (i) != TOUPPER (i))
3483 rm -f conftest
$ac_exeext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3485 (eval $ac_link) 2>&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3496 echo "$as_me: program exited with status $ac_status" >&5
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.
$ac_ext >&5
3501 ac_cv_header_stdc
=no
3503 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3507 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3508 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3509 if test $ac_cv_header_stdc = yes; then
3511 cat >>confdefs.h
<<\_ACEOF
3512 #define STDC_HEADERS 1
3517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3527 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3528 inttypes.h stdint.h unistd.h
3530 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3531 echo "$as_me:$LINENO: checking for $ac_header" >&5
3532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 cat >conftest.
$ac_ext <<_ACEOF
3539 cat confdefs.h
>>conftest.
$ac_ext
3540 cat >>conftest.
$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 $ac_includes_default
3544 #include <$ac_header>
3546 rm -f conftest.
$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1
>conftest.err
3552 cat conftest.err
>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try
='test -z "$ac_c_werror_flag"
3556 || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try
='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 eval "$as_ac_Header=yes"
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.
$ac_ext >&5
3573 eval "$as_ac_Header=no"
3575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3580 cat >>confdefs.h
<<_ACEOF
3581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3590 if test "${ac_cv_header_minix_config_h+set}" = set; then
3591 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3592 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3593 if test "${ac_cv_header_minix_config_h+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3597 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3599 # Is the header compilable?
3600 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3601 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3602 cat >conftest.
$ac_ext <<_ACEOF
3605 cat confdefs.h
>>conftest.
$ac_ext
3606 cat >>conftest.
$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 $ac_includes_default
3609 #include <minix/config.h>
3611 rm -f conftest.
$ac_objext
3612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>conftest.er1
3615 grep -v '^ *+' conftest.er1
>conftest.err
3617 cat conftest.err
>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try
='test -z "$ac_c_werror_flag"
3621 || test ! -s conftest.err'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; } &&
3627 { ac_try
='test -s conftest.$ac_objext'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3633 ac_header_compiler
=yes
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.
$ac_ext >&5
3638 ac_header_compiler
=no
3640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3642 echo "${ECHO_T}$ac_header_compiler" >&6
3644 # Is the header present?
3645 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3646 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3647 cat >conftest.
$ac_ext <<_ACEOF
3650 cat confdefs.h
>>conftest.
$ac_ext
3651 cat >>conftest.
$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653 #include <minix/config.h>
3655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3656 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3658 grep -v '^ *+' conftest.er1
>conftest.err
3660 cat conftest.err
>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } >/dev
/null
; then
3663 if test -s conftest.err
; then
3664 ac_cpp_err
=$ac_c_preproc_warn_flag
3665 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3672 if test -z "$ac_cpp_err"; then
3673 ac_header_preproc
=yes
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.
$ac_ext >&5
3678 ac_header_preproc
=no
3680 rm -f conftest.err conftest.
$ac_ext
3681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3682 echo "${ECHO_T}$ac_header_preproc" >&6
3684 # So? What about this header?
3685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3687 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3688 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3689 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3690 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3691 ac_header_preproc
=yes
3694 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3695 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3696 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3697 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3698 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3699 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3701 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3703 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3705 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3708 ## ------------------------------------------ ##
3709 ## Report this to the AC_PACKAGE_NAME lists. ##
3710 ## ------------------------------------------ ##
3713 sed "s/^/$as_me: WARNING: /" >&2
3716 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3717 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3718 if test "${ac_cv_header_minix_config_h+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 ac_cv_header_minix_config_h
=$ac_header_preproc
3723 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3724 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3727 if test $ac_cv_header_minix_config_h = yes; then
3734 if test "$MINIX" = yes; then
3736 cat >>confdefs.h
<<\_ACEOF
3737 #define _POSIX_SOURCE 1
3741 cat >>confdefs.h
<<\_ACEOF
3742 #define _POSIX_1_SOURCE 2
3746 cat >>confdefs.h
<<\_ACEOF
3754 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3755 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3756 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 cat >conftest.
$ac_ext <<_ACEOF
3762 cat confdefs.h
>>conftest.
$ac_ext
3763 cat >>conftest.
$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3766 # define __EXTENSIONS__ 1
3767 $ac_includes_default
3776 rm -f conftest.
$ac_objext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>conftest.er1
3780 grep -v '^ *+' conftest.er1
>conftest.err
3782 cat conftest.err
>&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try
='test -z "$ac_c_werror_flag"
3786 || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try
='test -s conftest.$ac_objext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 ac_cv_safe_to_define___extensions__
=yes
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.
$ac_ext >&5
3803 ac_cv_safe_to_define___extensions__
=no
3805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3807 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3808 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3809 test $ac_cv_safe_to_define___extensions__ = yes &&
3810 cat >>confdefs.h
<<\_ACEOF
3811 #define __EXTENSIONS__ 1
3814 cat >>confdefs.h
<<\_ACEOF
3815 #define _ALL_SOURCE 1
3818 cat >>confdefs.h
<<\_ACEOF
3819 #define _GNU_SOURCE 1
3822 cat >>confdefs.h
<<\_ACEOF
3823 #define _POSIX_PTHREAD_SEMANTICS 1
3826 cat >>confdefs.h
<<\_ACEOF
3827 #define _TANDEM_SOURCE 1
3832 ac_cpp
='$CPP $CPPFLAGS'
3833 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3836 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3837 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3838 # On Suns, sometimes $CPP names a directory.
3839 if test -n "$CPP" && test -d "$CPP"; then
3842 if test -z "$CPP"; then
3843 if test "${ac_cv_prog_CPP+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 # Double quotes because CPP needs to be expanded
3847 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3850 for ac_c_preproc_warn_flag
in '' yes
3852 # Use a header file that comes with gcc, so configuring glibc
3853 # with a fresh cross-compiler works.
3854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855 # <limits.h> exists even on freestanding compilers.
3856 # On the NeXT, cc -E runs the code through the compiler's parser,
3857 # not just through cpp. "Syntax error" is here to catch this case.
3858 cat >conftest.
$ac_ext <<_ACEOF
3861 cat confdefs.h
>>conftest.
$ac_ext
3862 cat >>conftest.
$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3865 # include <limits.h>
3867 # include <assert.h>
3871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3872 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3874 grep -v '^ *+' conftest.er1
>conftest.err
3876 cat conftest.err
>&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } >/dev
/null
; then
3879 if test -s conftest.err
; then
3880 ac_cpp_err
=$ac_c_preproc_warn_flag
3881 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3888 if test -z "$ac_cpp_err"; then
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.
$ac_ext >&5
3894 # Broken: fails on valid input.
3897 rm -f conftest.err conftest.
$ac_ext
3899 # OK, works on sane cases. Now check whether non-existent headers
3900 # can be detected and how.
3901 cat >conftest.
$ac_ext <<_ACEOF
3904 cat confdefs.h
>>conftest.
$ac_ext
3905 cat >>conftest.
$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3910 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3912 grep -v '^ *+' conftest.er1
>conftest.err
3914 cat conftest.err
>&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } >/dev
/null
; then
3917 if test -s conftest.err
; then
3918 ac_cpp_err
=$ac_c_preproc_warn_flag
3919 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3926 if test -z "$ac_cpp_err"; then
3927 # Broken: success on invalid input.
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.
$ac_ext >&5
3933 # Passes both tests.
3937 rm -f conftest.err conftest.
$ac_ext
3940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3941 rm -f conftest.err conftest.
$ac_ext
3942 if $ac_preproc_ok; then
3954 echo "$as_me:$LINENO: result: $CPP" >&5
3955 echo "${ECHO_T}$CPP" >&6
3957 for ac_c_preproc_warn_flag
in '' yes
3959 # Use a header file that comes with gcc, so configuring glibc
3960 # with a fresh cross-compiler works.
3961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3962 # <limits.h> exists even on freestanding compilers.
3963 # On the NeXT, cc -E runs the code through the compiler's parser,
3964 # not just through cpp. "Syntax error" is here to catch this case.
3965 cat >conftest.
$ac_ext <<_ACEOF
3968 cat confdefs.h
>>conftest.
$ac_ext
3969 cat >>conftest.
$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3972 # include <limits.h>
3974 # include <assert.h>
3978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3979 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3981 grep -v '^ *+' conftest.er1
>conftest.err
3983 cat conftest.err
>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } >/dev
/null
; then
3986 if test -s conftest.err
; then
3987 ac_cpp_err
=$ac_c_preproc_warn_flag
3988 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3995 if test -z "$ac_cpp_err"; then
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.
$ac_ext >&5
4001 # Broken: fails on valid input.
4004 rm -f conftest.err conftest.
$ac_ext
4006 # OK, works on sane cases. Now check whether non-existent headers
4007 # can be detected and how.
4008 cat >conftest.
$ac_ext <<_ACEOF
4011 cat confdefs.h
>>conftest.
$ac_ext
4012 cat >>conftest.
$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 #include <ac_nonexistent.h>
4016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4019 grep -v '^ *+' conftest.er1
>conftest.err
4021 cat conftest.err
>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev
/null
; then
4024 if test -s conftest.err
; then
4025 ac_cpp_err
=$ac_c_preproc_warn_flag
4026 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4033 if test -z "$ac_cpp_err"; then
4034 # Broken: success on invalid input.
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.
$ac_ext >&5
4040 # Passes both tests.
4044 rm -f conftest.err conftest.
$ac_ext
4047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4048 rm -f conftest.err conftest.
$ac_ext
4049 if $ac_preproc_ok; then
4052 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4053 See \`config.log' for more details." >&5
4054 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4055 See \`config.log' for more details." >&2;}
4056 { (exit 1); exit 1; }; }
4060 ac_cpp
='$CPP $CPPFLAGS'
4061 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4065 echo "$as_me:$LINENO: checking for inline" >&5
4066 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4067 if test "${ac_cv_c_inline+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 for ac_kw
in inline __inline__ __inline
; do
4072 cat >conftest.
$ac_ext <<_ACEOF
4075 cat confdefs.h
>>conftest.
$ac_ext
4076 cat >>conftest.
$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4080 static $ac_kw foo_t static_foo () {return 0; }
4081 $ac_kw foo_t foo () {return 0; }
4085 rm -f conftest.
$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>conftest.er1
4089 grep -v '^ *+' conftest.er1
>conftest.err
4091 cat conftest.err
>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try
='test -z "$ac_c_werror_flag"
4095 || test ! -s conftest.err'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try
='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 ac_cv_c_inline
=$ac_kw; break
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.
$ac_ext >&5
4113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4118 echo "${ECHO_T}$ac_cv_c_inline" >&6
4121 case $ac_cv_c_inline in
4124 case $ac_cv_c_inline in
4126 *) ac_val
=$ac_cv_c_inline;;
4128 cat >>confdefs.h
<<_ACEOF
4130 #define inline $ac_val
4137 # sizeof(char) is 1 by definition.
4138 echo "$as_me:$LINENO: checking for void *" >&5
4139 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4140 if test "${ac_cv_type_void_p+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 cat >conftest.
$ac_ext <<_ACEOF
4146 cat confdefs.h
>>conftest.
$ac_ext
4147 cat >>conftest.
$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 $ac_includes_default
4155 if (sizeof (void *))
4161 rm -f conftest.
$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>conftest.er1
4165 grep -v '^ *+' conftest.er1
>conftest.err
4167 cat conftest.err
>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try
='test -z "$ac_c_werror_flag"
4171 || test ! -s conftest.err'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try
='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 ac_cv_type_void_p
=yes
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.
$ac_ext >&5
4188 ac_cv_type_void_p
=no
4190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4192 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4193 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4195 echo "$as_me:$LINENO: checking size of void *" >&5
4196 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4197 if test "${ac_cv_sizeof_void_p+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 if test "$ac_cv_type_void_p" = yes; then
4201 # The cast to unsigned long works around a bug in the HP C Compiler
4202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4204 # This bug is HP SR number 8606223364.
4205 if test "$cross_compiling" = yes; then
4206 # Depending upon the size, compute the lo and hi bounds.
4207 cat >conftest.
$ac_ext <<_ACEOF
4210 cat confdefs.h
>>conftest.
$ac_ext
4211 cat >>conftest.
$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4213 $ac_includes_default
4217 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4224 rm -f conftest.
$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>conftest.er1
4228 grep -v '^ *+' conftest.er1
>conftest.err
4230 cat conftest.err
>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try
='test -z "$ac_c_werror_flag"
4234 || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try
='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4248 cat >conftest.
$ac_ext <<_ACEOF
4251 cat confdefs.h
>>conftest.
$ac_ext
4252 cat >>conftest.
$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 $ac_includes_default
4258 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4265 rm -f conftest.
$ac_objext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>conftest.er1
4269 grep -v '^ *+' conftest.er1
>conftest.err
4271 cat conftest.err
>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try
='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try
='test -s conftest.$ac_objext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_hi
=$ac_mid; break
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.
$ac_ext >&5
4292 ac_lo
=`expr $ac_mid + 1`
4293 if test $ac_lo -le $ac_mid; then
4297 ac_mid
=`expr 2 '*' $ac_mid + 1`
4299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.
$ac_ext >&5
4305 cat >conftest.
$ac_ext <<_ACEOF
4308 cat confdefs.h
>>conftest.
$ac_ext
4309 cat >>conftest.
$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4315 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4322 rm -f conftest.
$ac_objext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>conftest.er1
4326 grep -v '^ *+' conftest.er1
>conftest.err
4328 cat conftest.err
>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try
='test -z "$ac_c_werror_flag"
4332 || test ! -s conftest.err'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; } &&
4338 { ac_try
='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4346 cat >conftest.
$ac_ext <<_ACEOF
4349 cat confdefs.h
>>conftest.
$ac_ext
4350 cat >>conftest.
$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 $ac_includes_default
4356 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4363 rm -f conftest.
$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>conftest.er1
4367 grep -v '^ *+' conftest.er1
>conftest.err
4369 cat conftest.err
>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try
='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try
='test -s conftest.$ac_objext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_lo
=$ac_mid; break
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.
$ac_ext >&5
4390 ac_hi
=`expr '(' $ac_mid ')' - 1`
4391 if test $ac_mid -le $ac_hi; then
4395 ac_mid
=`expr 2 '*' $ac_mid`
4397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.
$ac_ext >&5
4405 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4408 # Binary search between lo and hi bounds.
4409 while test "x$ac_lo" != "x$ac_hi"; do
4410 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4411 cat >conftest.
$ac_ext <<_ACEOF
4414 cat confdefs.h
>>conftest.
$ac_ext
4415 cat >>conftest.
$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 $ac_includes_default
4421 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4428 rm -f conftest.
$ac_objext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>conftest.er1
4432 grep -v '^ *+' conftest.er1
>conftest.err
4434 cat conftest.err
>&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try
='test -z "$ac_c_werror_flag"
4438 || test ! -s conftest.err'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; } &&
4444 { ac_try
='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.
$ac_ext >&5
4455 ac_lo
=`expr '(' $ac_mid ')' + 1`
4457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4460 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
4461 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4462 See \`config.log' for more details." >&5
4463 echo "$as_me: error: cannot compute sizeof (void *), 77
4464 See \`config.log' for more details." >&2;}
4465 { (exit 1); exit 1; }; } ;;
4468 if test "$cross_compiling" = yes; then
4469 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4470 See \`config.log' for more details." >&5
4471 echo "$as_me: error: cannot run test program while cross compiling
4472 See \`config.log' for more details." >&2;}
4473 { (exit 1); exit 1; }; }
4475 cat >conftest.
$ac_ext <<_ACEOF
4478 cat confdefs.h
>>conftest.
$ac_ext
4479 cat >>conftest.
$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 $ac_includes_default
4482 long longval () { return (long) (sizeof (void *)); }
4483 unsigned long ulongval () { return (long) (sizeof (void *)); }
4490 FILE *f = fopen ("conftest.val", "w");
4493 if (((long) (sizeof (void *))) < 0)
4495 long i = longval ();
4496 if (i != ((long) (sizeof (void *))))
4498 fprintf (f, "%ld\n", i);
4502 unsigned long i = ulongval ();
4503 if (i != ((long) (sizeof (void *))))
4505 fprintf (f, "%lu\n", i);
4507 exit (ferror (f) || fclose (f) != 0);
4513 rm -f conftest
$ac_exeext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4515 (eval $ac_link) 2>&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_cv_sizeof_void_p
=`cat conftest.val`
4526 echo "$as_me: program exited with status $ac_status" >&5
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.
$ac_ext >&5
4531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4532 See \`config.log' for more details." >&5
4533 echo "$as_me: error: cannot compute sizeof (void *), 77
4534 See \`config.log' for more details." >&2;}
4535 { (exit 1); exit 1; }; }
4537 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4542 ac_cv_sizeof_void_p
=0
4545 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4546 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4547 cat >>confdefs.h
<<_ACEOF
4548 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4552 echo "$as_me:$LINENO: checking for short" >&5
4553 echo $ECHO_N "checking for short... $ECHO_C" >&6
4554 if test "${ac_cv_type_short+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 cat >conftest.
$ac_ext <<_ACEOF
4560 cat confdefs.h
>>conftest.
$ac_ext
4561 cat >>conftest.
$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 $ac_includes_default
4575 rm -f conftest.
$ac_objext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4577 (eval $ac_compile) 2>conftest.er1
4579 grep -v '^ *+' conftest.er1
>conftest.err
4581 cat conftest.err
>&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try
='test -z "$ac_c_werror_flag"
4585 || test ! -s conftest.err'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; } &&
4591 { ac_try
='test -s conftest.$ac_objext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_type_short
=yes
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.
$ac_ext >&5
4604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4606 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4607 echo "${ECHO_T}$ac_cv_type_short" >&6
4609 echo "$as_me:$LINENO: checking size of short" >&5
4610 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4611 if test "${ac_cv_sizeof_short+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 if test "$ac_cv_type_short" = yes; then
4615 # The cast to unsigned long works around a bug in the HP C Compiler
4616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4618 # This bug is HP SR number 8606223364.
4619 if test "$cross_compiling" = yes; then
4620 # Depending upon the size, compute the lo and hi bounds.
4621 cat >conftest.
$ac_ext <<_ACEOF
4624 cat confdefs.h
>>conftest.
$ac_ext
4625 cat >>conftest.
$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4627 $ac_includes_default
4631 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4638 rm -f conftest.
$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640 (eval $ac_compile) 2>conftest.er1
4642 grep -v '^ *+' conftest.er1
>conftest.err
4644 cat conftest.err
>&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } &&
4647 { ac_try
='test -z "$ac_c_werror_flag"
4648 || test ! -s conftest.err'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; } &&
4654 { ac_try
='test -s conftest.$ac_objext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4662 cat >conftest.
$ac_ext <<_ACEOF
4665 cat confdefs.h
>>conftest.
$ac_ext
4666 cat >>conftest.
$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668 $ac_includes_default
4672 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4679 rm -f conftest.
$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>conftest.er1
4683 grep -v '^ *+' conftest.er1
>conftest.err
4685 cat conftest.err
>&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try
='test -z "$ac_c_werror_flag"
4689 || test ! -s conftest.err'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try
='test -s conftest.$ac_objext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 ac_hi
=$ac_mid; break
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.
$ac_ext >&5
4706 ac_lo
=`expr $ac_mid + 1`
4707 if test $ac_lo -le $ac_mid; then
4711 ac_mid
=`expr 2 '*' $ac_mid + 1`
4713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.
$ac_ext >&5
4719 cat >conftest.
$ac_ext <<_ACEOF
4722 cat confdefs.h
>>conftest.
$ac_ext
4723 cat >>conftest.
$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4729 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4736 rm -f conftest.
$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>conftest.er1
4740 grep -v '^ *+' conftest.er1
>conftest.err
4742 cat conftest.err
>&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } &&
4745 { ac_try
='test -z "$ac_c_werror_flag"
4746 || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try
='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4760 cat >conftest.
$ac_ext <<_ACEOF
4763 cat confdefs.h
>>conftest.
$ac_ext
4764 cat >>conftest.
$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 $ac_includes_default
4770 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4777 rm -f conftest.
$ac_objext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>conftest.er1
4781 grep -v '^ *+' conftest.er1
>conftest.err
4783 cat conftest.err
>&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try
='test -z "$ac_c_werror_flag"
4787 || test ! -s conftest.err'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; } &&
4793 { ac_try
='test -s conftest.$ac_objext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4799 ac_lo
=$ac_mid; break
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.
$ac_ext >&5
4804 ac_hi
=`expr '(' $ac_mid ')' - 1`
4805 if test $ac_mid -le $ac_hi; then
4809 ac_mid
=`expr 2 '*' $ac_mid`
4811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.
$ac_ext >&5
4819 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4821 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4822 # Binary search between lo and hi bounds.
4823 while test "x$ac_lo" != "x$ac_hi"; do
4824 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4825 cat >conftest.
$ac_ext <<_ACEOF
4828 cat confdefs.h
>>conftest.
$ac_ext
4829 cat >>conftest.
$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 $ac_includes_default
4835 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4842 rm -f conftest.
$ac_objext
4843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844 (eval $ac_compile) 2>conftest.er1
4846 grep -v '^ *+' conftest.er1
>conftest.err
4848 cat conftest.err
>&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } &&
4851 { ac_try
='test -z "$ac_c_werror_flag"
4852 || test ! -s conftest.err'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; } &&
4858 { ac_try
='test -s conftest.$ac_objext'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.
$ac_ext >&5
4869 ac_lo
=`expr '(' $ac_mid ')' + 1`
4871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4874 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4876 See \`config.log' for more details." >&5
4877 echo "$as_me: error: cannot compute sizeof (short), 77
4878 See \`config.log' for more details." >&2;}
4879 { (exit 1); exit 1; }; } ;;
4882 if test "$cross_compiling" = yes; then
4883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4884 See \`config.log' for more details." >&5
4885 echo "$as_me: error: cannot run test program while cross compiling
4886 See \`config.log' for more details." >&2;}
4887 { (exit 1); exit 1; }; }
4889 cat >conftest.
$ac_ext <<_ACEOF
4892 cat confdefs.h
>>conftest.
$ac_ext
4893 cat >>conftest.
$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 $ac_includes_default
4896 long longval () { return (long) (sizeof (short)); }
4897 unsigned long ulongval () { return (long) (sizeof (short)); }
4904 FILE *f = fopen ("conftest.val", "w");
4907 if (((long) (sizeof (short))) < 0)
4909 long i = longval ();
4910 if (i != ((long) (sizeof (short))))
4912 fprintf (f, "%ld\n", i);
4916 unsigned long i = ulongval ();
4917 if (i != ((long) (sizeof (short))))
4919 fprintf (f, "%lu\n", i);
4921 exit (ferror (f) || fclose (f) != 0);
4927 rm -f conftest
$ac_exeext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4929 (eval $ac_link) 2>&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; }; then
4938 ac_cv_sizeof_short
=`cat conftest.val`
4940 echo "$as_me: program exited with status $ac_status" >&5
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.
$ac_ext >&5
4945 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4946 See \`config.log' for more details." >&5
4947 echo "$as_me: error: cannot compute sizeof (short), 77
4948 See \`config.log' for more details." >&2;}
4949 { (exit 1); exit 1; }; }
4951 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4956 ac_cv_sizeof_short
=0
4959 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4960 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4961 cat >>confdefs.h
<<_ACEOF
4962 #define SIZEOF_SHORT $ac_cv_sizeof_short
4966 echo "$as_me:$LINENO: checking for int" >&5
4967 echo $ECHO_N "checking for int... $ECHO_C" >&6
4968 if test "${ac_cv_type_int+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 cat >conftest.
$ac_ext <<_ACEOF
4974 cat confdefs.h
>>conftest.
$ac_ext
4975 cat >>conftest.
$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4977 $ac_includes_default
4989 rm -f conftest.
$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>conftest.er1
4993 grep -v '^ *+' conftest.er1
>conftest.err
4995 cat conftest.err
>&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try
='test -z "$ac_c_werror_flag"
4999 || test ! -s conftest.err'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; } &&
5005 { ac_try
='test -s conftest.$ac_objext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.
$ac_ext >&5
5018 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5020 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5021 echo "${ECHO_T}$ac_cv_type_int" >&6
5023 echo "$as_me:$LINENO: checking size of int" >&5
5024 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5025 if test "${ac_cv_sizeof_int+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 if test "$ac_cv_type_int" = yes; then
5029 # The cast to unsigned long works around a bug in the HP C Compiler
5030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5032 # This bug is HP SR number 8606223364.
5033 if test "$cross_compiling" = yes; then
5034 # Depending upon the size, compute the lo and hi bounds.
5035 cat >conftest.
$ac_ext <<_ACEOF
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_includes_default
5045 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5052 rm -f conftest.
$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5056 grep -v '^ *+' conftest.er1
>conftest.err
5058 cat conftest.err
>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try
='test -z "$ac_c_werror_flag"
5062 || test ! -s conftest.err'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try
='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5076 cat >conftest.
$ac_ext <<_ACEOF
5079 cat confdefs.h
>>conftest.
$ac_ext
5080 cat >>conftest.
$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 $ac_includes_default
5086 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5093 rm -f conftest.
$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5097 grep -v '^ *+' conftest.er1
>conftest.err
5099 cat conftest.err
>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try
='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try
='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_hi
=$ac_mid; break
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.
$ac_ext >&5
5120 ac_lo
=`expr $ac_mid + 1`
5121 if test $ac_lo -le $ac_mid; then
5125 ac_mid
=`expr 2 '*' $ac_mid + 1`
5127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.
$ac_ext >&5
5133 cat >conftest.
$ac_ext <<_ACEOF
5136 cat confdefs.h
>>conftest.
$ac_ext
5137 cat >>conftest.
$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 $ac_includes_default
5143 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5150 rm -f conftest.
$ac_objext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5152 (eval $ac_compile) 2>conftest.er1
5154 grep -v '^ *+' conftest.er1
>conftest.err
5156 cat conftest.err
>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try
='test -z "$ac_c_werror_flag"
5160 || test ! -s conftest.err'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; } &&
5166 { ac_try
='test -s conftest.$ac_objext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5174 cat >conftest.
$ac_ext <<_ACEOF
5177 cat confdefs.h
>>conftest.
$ac_ext
5178 cat >>conftest.
$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5184 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5191 rm -f conftest.
$ac_objext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193 (eval $ac_compile) 2>conftest.er1
5195 grep -v '^ *+' conftest.er1
>conftest.err
5197 cat conftest.err
>&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
5200 { ac_try
='test -z "$ac_c_werror_flag"
5201 || test ! -s conftest.err'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; } &&
5207 { ac_try
='test -s conftest.$ac_objext'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 ac_lo
=$ac_mid; break
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.
$ac_ext >&5
5218 ac_hi
=`expr '(' $ac_mid ')' - 1`
5219 if test $ac_mid -le $ac_hi; then
5223 ac_mid
=`expr 2 '*' $ac_mid`
5225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.
$ac_ext >&5
5233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5236 # Binary search between lo and hi bounds.
5237 while test "x$ac_lo" != "x$ac_hi"; do
5238 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 (int))) <= $ac_mid)];
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 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.
$ac_ext >&5
5283 ac_lo
=`expr '(' $ac_mid ')' + 1`
5285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5288 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5290 See \`config.log' for more details." >&5
5291 echo "$as_me: error: cannot compute sizeof (int), 77
5292 See \`config.log' for more details." >&2;}
5293 { (exit 1); exit 1; }; } ;;
5296 if test "$cross_compiling" = yes; then
5297 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5298 See \`config.log' for more details." >&5
5299 echo "$as_me: error: cannot run test program while cross compiling
5300 See \`config.log' for more details." >&2;}
5301 { (exit 1); exit 1; }; }
5303 cat >conftest.
$ac_ext <<_ACEOF
5306 cat confdefs.h
>>conftest.
$ac_ext
5307 cat >>conftest.
$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 $ac_includes_default
5310 long longval () { return (long) (sizeof (int)); }
5311 unsigned long ulongval () { return (long) (sizeof (int)); }
5318 FILE *f = fopen ("conftest.val", "w");
5321 if (((long) (sizeof (int))) < 0)
5323 long i = longval ();
5324 if (i != ((long) (sizeof (int))))
5326 fprintf (f, "%ld\n", i);
5330 unsigned long i = ulongval ();
5331 if (i != ((long) (sizeof (int))))
5333 fprintf (f, "%lu\n", i);
5335 exit (ferror (f) || fclose (f) != 0);
5341 rm -f conftest
$ac_exeext
5342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343 (eval $ac_link) 2>&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_cv_sizeof_int
=`cat conftest.val`
5354 echo "$as_me: program exited with status $ac_status" >&5
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.
$ac_ext >&5
5359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5360 See \`config.log' for more details." >&5
5361 echo "$as_me: error: cannot compute sizeof (int), 77
5362 See \`config.log' for more details." >&2;}
5363 { (exit 1); exit 1; }; }
5365 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5373 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5374 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5375 cat >>confdefs.h
<<_ACEOF
5376 #define SIZEOF_INT $ac_cv_sizeof_int
5380 echo "$as_me:$LINENO: checking for long" >&5
5381 echo $ECHO_N "checking for long... $ECHO_C" >&6
5382 if test "${ac_cv_type_long+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 cat >conftest.
$ac_ext <<_ACEOF
5388 cat confdefs.h
>>conftest.
$ac_ext
5389 cat >>conftest.
$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 $ac_includes_default
5403 rm -f conftest.
$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>conftest.er1
5407 grep -v '^ *+' conftest.er1
>conftest.err
5409 cat conftest.err
>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try
='test -z "$ac_c_werror_flag"
5413 || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try
='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.
$ac_ext >&5
5432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5434 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5435 echo "${ECHO_T}$ac_cv_type_long" >&6
5437 echo "$as_me:$LINENO: checking size of long" >&5
5438 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5439 if test "${ac_cv_sizeof_long+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 if test "$ac_cv_type_long" = yes; then
5443 # The cast to unsigned long works around a bug in the HP C Compiler
5444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5446 # This bug is HP SR number 8606223364.
5447 if test "$cross_compiling" = yes; then
5448 # Depending upon the size, compute the lo and hi bounds.
5449 cat >conftest.
$ac_ext <<_ACEOF
5452 cat confdefs.h
>>conftest.
$ac_ext
5453 cat >>conftest.
$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 $ac_includes_default
5459 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5466 rm -f conftest.
$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>conftest.er1
5470 grep -v '^ *+' conftest.er1
>conftest.err
5472 cat conftest.err
>&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try
='test -z "$ac_c_werror_flag"
5476 || test ! -s conftest.err'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; } &&
5482 { ac_try
='test -s conftest.$ac_objext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5490 cat >conftest.
$ac_ext <<_ACEOF
5493 cat confdefs.h
>>conftest.
$ac_ext
5494 cat >>conftest.
$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5500 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5507 rm -f conftest.
$ac_objext
5508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5509 (eval $ac_compile) 2>conftest.er1
5511 grep -v '^ *+' conftest.er1
>conftest.err
5513 cat conftest.err
>&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } &&
5516 { ac_try
='test -z "$ac_c_werror_flag"
5517 || test ! -s conftest.err'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; } &&
5523 { ac_try
='test -s conftest.$ac_objext'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5529 ac_hi
=$ac_mid; break
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.
$ac_ext >&5
5534 ac_lo
=`expr $ac_mid + 1`
5535 if test $ac_lo -le $ac_mid; then
5539 ac_mid
=`expr 2 '*' $ac_mid + 1`
5541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.
$ac_ext >&5
5547 cat >conftest.
$ac_ext <<_ACEOF
5550 cat confdefs.h
>>conftest.
$ac_ext
5551 cat >>conftest.
$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 $ac_includes_default
5557 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5564 rm -f conftest.
$ac_objext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>conftest.er1
5568 grep -v '^ *+' conftest.er1
>conftest.err
5570 cat conftest.err
>&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } &&
5573 { ac_try
='test -z "$ac_c_werror_flag"
5574 || test ! -s conftest.err'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; } &&
5580 { ac_try
='test -s conftest.$ac_objext'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; }; then
5588 cat >conftest.
$ac_ext <<_ACEOF
5591 cat confdefs.h
>>conftest.
$ac_ext
5592 cat >>conftest.
$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 $ac_includes_default
5598 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5605 rm -f conftest.
$ac_objext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607 (eval $ac_compile) 2>conftest.er1
5609 grep -v '^ *+' conftest.er1
>conftest.err
5611 cat conftest.err
>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try
='test -z "$ac_c_werror_flag"
5615 || test ! -s conftest.err'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; } &&
5621 { ac_try
='test -s conftest.$ac_objext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 ac_lo
=$ac_mid; break
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.
$ac_ext >&5
5632 ac_hi
=`expr '(' $ac_mid ')' - 1`
5633 if test $ac_mid -le $ac_hi; then
5637 ac_mid
=`expr 2 '*' $ac_mid`
5639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.
$ac_ext >&5
5647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5650 # Binary search between lo and hi bounds.
5651 while test "x$ac_lo" != "x$ac_hi"; do
5652 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5653 cat >conftest.
$ac_ext <<_ACEOF
5656 cat confdefs.h
>>conftest.
$ac_ext
5657 cat >>conftest.
$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 $ac_includes_default
5663 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5670 rm -f conftest.
$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>conftest.er1
5674 grep -v '^ *+' conftest.er1
>conftest.err
5676 cat conftest.err
>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try
='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try
='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.
$ac_ext >&5
5697 ac_lo
=`expr '(' $ac_mid ')' + 1`
5699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5702 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5703 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5704 See \`config.log' for more details." >&5
5705 echo "$as_me: error: cannot compute sizeof (long), 77
5706 See \`config.log' for more details." >&2;}
5707 { (exit 1); exit 1; }; } ;;
5710 if test "$cross_compiling" = yes; then
5711 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5712 See \`config.log' for more details." >&5
5713 echo "$as_me: error: cannot run test program while cross compiling
5714 See \`config.log' for more details." >&2;}
5715 { (exit 1); exit 1; }; }
5717 cat >conftest.
$ac_ext <<_ACEOF
5720 cat confdefs.h
>>conftest.
$ac_ext
5721 cat >>conftest.
$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5723 $ac_includes_default
5724 long longval () { return (long) (sizeof (long)); }
5725 unsigned long ulongval () { return (long) (sizeof (long)); }
5732 FILE *f = fopen ("conftest.val", "w");
5735 if (((long) (sizeof (long))) < 0)
5737 long i = longval ();
5738 if (i != ((long) (sizeof (long))))
5740 fprintf (f, "%ld\n", i);
5744 unsigned long i = ulongval ();
5745 if (i != ((long) (sizeof (long))))
5747 fprintf (f, "%lu\n", i);
5749 exit (ferror (f) || fclose (f) != 0);
5755 rm -f conftest
$ac_exeext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757 (eval $ac_link) 2>&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 ac_cv_sizeof_long
=`cat conftest.val`
5768 echo "$as_me: program exited with status $ac_status" >&5
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.
$ac_ext >&5
5773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5774 See \`config.log' for more details." >&5
5775 echo "$as_me: error: cannot compute sizeof (long), 77
5776 See \`config.log' for more details." >&2;}
5777 { (exit 1); exit 1; }; }
5779 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5787 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5788 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5789 cat >>confdefs.h
<<_ACEOF
5790 #define SIZEOF_LONG $ac_cv_sizeof_long
5794 echo "$as_me:$LINENO: checking for long long" >&5
5795 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5796 if test "${ac_cv_type_long_long+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 cat >conftest.
$ac_ext <<_ACEOF
5802 cat confdefs.h
>>conftest.
$ac_ext
5803 cat >>conftest.
$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5809 if ((long long *) 0)
5811 if (sizeof (long long))
5817 rm -f conftest.
$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5821 grep -v '^ *+' conftest.er1
>conftest.err
5823 cat conftest.err
>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try
='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try
='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_type_long_long
=yes
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.
$ac_ext >&5
5844 ac_cv_type_long_long
=no
5846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5848 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5849 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5850 if test $ac_cv_type_long_long = yes; then
5852 cat >>confdefs.h
<<_ACEOF
5853 #define HAVE_LONG_LONG 1
5856 echo "$as_me:$LINENO: checking for long long" >&5
5857 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5858 if test "${ac_cv_type_long_long+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 cat >conftest.
$ac_ext <<_ACEOF
5864 cat confdefs.h
>>conftest.
$ac_ext
5865 cat >>conftest.
$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 $ac_includes_default
5871 if ((long long *) 0)
5873 if (sizeof (long long))
5879 rm -f conftest.
$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>conftest.er1
5883 grep -v '^ *+' conftest.er1
>conftest.err
5885 cat conftest.err
>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try
='test -z "$ac_c_werror_flag"
5889 || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try
='test -s conftest.$ac_objext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_cv_type_long_long
=yes
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.
$ac_ext >&5
5906 ac_cv_type_long_long
=no
5908 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5910 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5911 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5913 echo "$as_me:$LINENO: checking size of long long" >&5
5914 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5915 if test "${ac_cv_sizeof_long_long+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 if test "$ac_cv_type_long_long" = yes; then
5919 # The cast to unsigned long works around a bug in the HP C Compiler
5920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5922 # This bug is HP SR number 8606223364.
5923 if test "$cross_compiling" = yes; then
5924 # Depending upon the size, compute the lo and hi bounds.
5925 cat >conftest.
$ac_ext <<_ACEOF
5928 cat confdefs.h
>>conftest.
$ac_ext
5929 cat >>conftest.
$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5935 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5942 rm -f conftest.
$ac_objext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5944 (eval $ac_compile) 2>conftest.er1
5946 grep -v '^ *+' conftest.er1
>conftest.err
5948 cat conftest.err
>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try
='test -z "$ac_c_werror_flag"
5952 || test ! -s conftest.err'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try
='test -s conftest.$ac_objext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5966 cat >conftest.
$ac_ext <<_ACEOF
5969 cat confdefs.h
>>conftest.
$ac_ext
5970 cat >>conftest.
$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5976 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5983 rm -f conftest.
$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1
>conftest.err
5989 cat conftest.err
>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try
='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try
='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_hi
=$ac_mid; break
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.
$ac_ext >&5
6010 ac_lo
=`expr $ac_mid + 1`
6011 if test $ac_lo -le $ac_mid; then
6015 ac_mid
=`expr 2 '*' $ac_mid + 1`
6017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.
$ac_ext >&5
6023 cat >conftest.
$ac_ext <<_ACEOF
6026 cat confdefs.h
>>conftest.
$ac_ext
6027 cat >>conftest.
$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 $ac_includes_default
6033 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6040 rm -f conftest.
$ac_objext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>conftest.er1
6044 grep -v '^ *+' conftest.er1
>conftest.err
6046 cat conftest.err
>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try
='test -z "$ac_c_werror_flag"
6050 || test ! -s conftest.err'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; } &&
6056 { ac_try
='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6064 cat >conftest.
$ac_ext <<_ACEOF
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6074 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6081 rm -f conftest.
$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>conftest.er1
6085 grep -v '^ *+' conftest.er1
>conftest.err
6087 cat conftest.err
>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try
='test -z "$ac_c_werror_flag"
6091 || test ! -s conftest.err'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; } &&
6097 { ac_try
='test -s conftest.$ac_objext'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6103 ac_lo
=$ac_mid; break
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.
$ac_ext >&5
6108 ac_hi
=`expr '(' $ac_mid ')' - 1`
6109 if test $ac_mid -le $ac_hi; then
6113 ac_mid
=`expr 2 '*' $ac_mid`
6115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.
$ac_ext >&5
6123 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6126 # Binary search between lo and hi bounds.
6127 while test "x$ac_lo" != "x$ac_hi"; do
6128 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6129 cat >conftest.
$ac_ext <<_ACEOF
6132 cat confdefs.h
>>conftest.
$ac_ext
6133 cat >>conftest.
$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 $ac_includes_default
6139 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6146 rm -f conftest.
$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>conftest.er1
6150 grep -v '^ *+' conftest.er1
>conftest.err
6152 cat conftest.err
>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try
='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try
='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.
$ac_ext >&5
6173 ac_lo
=`expr '(' $ac_mid ')' + 1`
6175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6178 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6179 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6180 See \`config.log' for more details." >&5
6181 echo "$as_me: error: cannot compute sizeof (long long), 77
6182 See \`config.log' for more details." >&2;}
6183 { (exit 1); exit 1; }; } ;;
6186 if test "$cross_compiling" = yes; then
6187 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6188 See \`config.log' for more details." >&5
6189 echo "$as_me: error: cannot run test program while cross compiling
6190 See \`config.log' for more details." >&2;}
6191 { (exit 1); exit 1; }; }
6193 cat >conftest.
$ac_ext <<_ACEOF
6196 cat confdefs.h
>>conftest.
$ac_ext
6197 cat >>conftest.
$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 $ac_includes_default
6200 long longval () { return (long) (sizeof (long long)); }
6201 unsigned long ulongval () { return (long) (sizeof (long long)); }
6208 FILE *f = fopen ("conftest.val", "w");
6211 if (((long) (sizeof (long long))) < 0)
6213 long i = longval ();
6214 if (i != ((long) (sizeof (long long))))
6216 fprintf (f, "%ld\n", i);
6220 unsigned long i = ulongval ();
6221 if (i != ((long) (sizeof (long long))))
6223 fprintf (f, "%lu\n", i);
6225 exit (ferror (f) || fclose (f) != 0);
6231 rm -f conftest
$ac_exeext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6233 (eval $ac_link) 2>&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_sizeof_long_long
=`cat conftest.val`
6244 echo "$as_me: program exited with status $ac_status" >&5
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.
$ac_ext >&5
6249 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6250 See \`config.log' for more details." >&5
6251 echo "$as_me: error: cannot compute sizeof (long long), 77
6252 See \`config.log' for more details." >&2;}
6253 { (exit 1); exit 1; }; }
6255 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6260 ac_cv_sizeof_long_long
=0
6263 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6264 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6265 cat >>confdefs.h
<<_ACEOF
6266 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6272 echo "$as_me:$LINENO: checking for __int64" >&5
6273 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6274 if test "${ac_cv_type___int64+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 cat >conftest.
$ac_ext <<_ACEOF
6280 cat confdefs.h
>>conftest.
$ac_ext
6281 cat >>conftest.
$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6289 if (sizeof (__int64))
6295 rm -f conftest.
$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>conftest.er1
6299 grep -v '^ *+' conftest.er1
>conftest.err
6301 cat conftest.err
>&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try
='test -z "$ac_c_werror_flag"
6305 || test ! -s conftest.err'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try
='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_type___int64
=yes
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.
$ac_ext >&5
6322 ac_cv_type___int64
=no
6324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6327 echo "${ECHO_T}$ac_cv_type___int64" >&6
6328 if test $ac_cv_type___int64 = yes; then
6330 cat >>confdefs.h
<<_ACEOF
6331 #define HAVE___INT64 1
6334 echo "$as_me:$LINENO: checking for __int64" >&5
6335 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6336 if test "${ac_cv_type___int64+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 cat >conftest.
$ac_ext <<_ACEOF
6342 cat confdefs.h
>>conftest.
$ac_ext
6343 cat >>conftest.
$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 $ac_includes_default
6351 if (sizeof (__int64))
6357 rm -f conftest.
$ac_objext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6359 (eval $ac_compile) 2>conftest.er1
6361 grep -v '^ *+' conftest.er1
>conftest.err
6363 cat conftest.err
>&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } &&
6366 { ac_try
='test -z "$ac_c_werror_flag"
6367 || test ! -s conftest.err'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try
='test -s conftest.$ac_objext'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
6379 ac_cv_type___int64
=yes
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.
$ac_ext >&5
6384 ac_cv_type___int64
=no
6386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6388 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6389 echo "${ECHO_T}$ac_cv_type___int64" >&6
6391 echo "$as_me:$LINENO: checking size of __int64" >&5
6392 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6393 if test "${ac_cv_sizeof___int64+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 if test "$ac_cv_type___int64" = yes; then
6397 # The cast to unsigned long works around a bug in the HP C Compiler
6398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6400 # This bug is HP SR number 8606223364.
6401 if test "$cross_compiling" = yes; then
6402 # Depending upon the size, compute the lo and hi bounds.
6403 cat >conftest.
$ac_ext <<_ACEOF
6406 cat confdefs.h
>>conftest.
$ac_ext
6407 cat >>conftest.
$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 $ac_includes_default
6413 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6420 rm -f conftest.
$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>conftest.er1
6424 grep -v '^ *+' conftest.er1
>conftest.err
6426 cat conftest.err
>&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try
='test -z "$ac_c_werror_flag"
6430 || test ! -s conftest.err'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; } &&
6436 { ac_try
='test -s conftest.$ac_objext'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; }; then
6444 cat >conftest.
$ac_ext <<_ACEOF
6447 cat confdefs.h
>>conftest.
$ac_ext
6448 cat >>conftest.
$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 $ac_includes_default
6454 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6461 rm -f conftest.
$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463 (eval $ac_compile) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1
>conftest.err
6467 cat conftest.err
>&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try
='test -z "$ac_c_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try
='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_hi
=$ac_mid; break
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.
$ac_ext >&5
6488 ac_lo
=`expr $ac_mid + 1`
6489 if test $ac_lo -le $ac_mid; then
6493 ac_mid
=`expr 2 '*' $ac_mid + 1`
6495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.
$ac_ext >&5
6501 cat >conftest.
$ac_ext <<_ACEOF
6504 cat confdefs.h
>>conftest.
$ac_ext
6505 cat >>conftest.
$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6507 $ac_includes_default
6511 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6518 rm -f conftest.
$ac_objext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520 (eval $ac_compile) 2>conftest.er1
6522 grep -v '^ *+' conftest.er1
>conftest.err
6524 cat conftest.err
>&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try
='test -z "$ac_c_werror_flag"
6528 || test ! -s conftest.err'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try
='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6542 cat >conftest.
$ac_ext <<_ACEOF
6545 cat confdefs.h
>>conftest.
$ac_ext
6546 cat >>conftest.
$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 $ac_includes_default
6552 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6559 rm -f conftest.
$ac_objext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561 (eval $ac_compile) 2>conftest.er1
6563 grep -v '^ *+' conftest.er1
>conftest.err
6565 cat conftest.err
>&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try
='test -z "$ac_c_werror_flag"
6569 || test ! -s conftest.err'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try
='test -s conftest.$ac_objext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 ac_lo
=$ac_mid; break
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.
$ac_ext >&5
6586 ac_hi
=`expr '(' $ac_mid ')' - 1`
6587 if test $ac_mid -le $ac_hi; then
6591 ac_mid
=`expr 2 '*' $ac_mid`
6593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.
$ac_ext >&5
6601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6604 # Binary search between lo and hi bounds.
6605 while test "x$ac_lo" != "x$ac_hi"; do
6606 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6607 cat >conftest.
$ac_ext <<_ACEOF
6610 cat confdefs.h
>>conftest.
$ac_ext
6611 cat >>conftest.
$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 $ac_includes_default
6617 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6624 rm -f conftest.
$ac_objext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626 (eval $ac_compile) 2>conftest.er1
6628 grep -v '^ *+' conftest.er1
>conftest.err
6630 cat conftest.err
>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try
='test -z "$ac_c_werror_flag"
6634 || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try
='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.
$ac_ext >&5
6651 ac_lo
=`expr '(' $ac_mid ')' + 1`
6653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6656 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6657 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6658 See \`config.log' for more details." >&5
6659 echo "$as_me: error: cannot compute sizeof (__int64), 77
6660 See \`config.log' for more details." >&2;}
6661 { (exit 1); exit 1; }; } ;;
6664 if test "$cross_compiling" = yes; then
6665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6666 See \`config.log' for more details." >&5
6667 echo "$as_me: error: cannot run test program while cross compiling
6668 See \`config.log' for more details." >&2;}
6669 { (exit 1); exit 1; }; }
6671 cat >conftest.
$ac_ext <<_ACEOF
6674 cat confdefs.h
>>conftest.
$ac_ext
6675 cat >>conftest.
$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 $ac_includes_default
6678 long longval () { return (long) (sizeof (__int64)); }
6679 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6686 FILE *f = fopen ("conftest.val", "w");
6689 if (((long) (sizeof (__int64))) < 0)
6691 long i = longval ();
6692 if (i != ((long) (sizeof (__int64))))
6694 fprintf (f, "%ld\n", i);
6698 unsigned long i = ulongval ();
6699 if (i != ((long) (sizeof (__int64))))
6701 fprintf (f, "%lu\n", i);
6703 exit (ferror (f) || fclose (f) != 0);
6709 rm -f conftest
$ac_exeext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6711 (eval $ac_link) 2>&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; }; then
6720 ac_cv_sizeof___int64
=`cat conftest.val`
6722 echo "$as_me: program exited with status $ac_status" >&5
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.
$ac_ext >&5
6727 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6728 See \`config.log' for more details." >&5
6729 echo "$as_me: error: cannot compute sizeof (__int64), 77
6730 See \`config.log' for more details." >&2;}
6731 { (exit 1); exit 1; }; }
6733 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6738 ac_cv_sizeof___int64
=0
6741 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6742 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6743 cat >>confdefs.h
<<_ACEOF
6744 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6751 # ---------------------
6752 # Warnings and checking
6753 # ---------------------
6755 # Check $CC warning features (if it's GCC).
6756 # We want to use -pedantic, but we don't want warnings about
6759 # * overlong strings
6760 # So, we only use -pedantic if we can disable those warnings.
6763 save_CFLAGS
="$CFLAGS"
6764 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6765 -Wmissing-prototypes; do
6766 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6768 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6769 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6770 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 cat >conftest.
$ac_ext <<_ACEOF
6777 cat confdefs.h
>>conftest.
$ac_ext
6778 cat >>conftest.
$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6789 rm -f conftest.
$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6793 grep -v '^ *+' conftest.er1
>conftest.err
6795 cat conftest.err
>&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try
='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try
='test -s conftest.$ac_objext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 eval "$as_acx_Woption=yes"
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.
$ac_ext >&5
6816 eval "$as_acx_Woption=no"
6818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6821 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6822 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6823 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6824 loose_warn
="$loose_warn${loose_warn:+ }$option"
6828 CFLAGS
="$save_CFLAGS"
6831 save_CFLAGS
="$CFLAGS"
6832 for option
in -Wc++-compat; do
6833 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6835 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6836 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6837 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 cat >conftest.
$ac_ext <<_ACEOF
6844 cat confdefs.h
>>conftest.
$ac_ext
6845 cat >>conftest.
$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6856 rm -f conftest.
$ac_objext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6858 (eval $ac_compile) 2>conftest.er1
6860 grep -v '^ *+' conftest.er1
>conftest.err
6862 cat conftest.err
>&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } &&
6865 { ac_try
='test -z "$ac_c_werror_flag"
6866 || test ! -s conftest.err'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; } &&
6872 { ac_try
='test -s conftest.$ac_objext'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6878 eval "$as_acx_Woption=yes"
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.
$ac_ext >&5
6883 eval "$as_acx_Woption=no"
6885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6888 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6889 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6890 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6891 cxx_compat_warn
="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6895 CFLAGS
="$save_CFLAGS"
6898 save_CFLAGS
="$CFLAGS"
6899 for option
in -Wold-style-definition \
6900 -Wmissing-format-attribute; do
6901 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6903 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6904 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6905 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 cat >conftest.
$ac_ext <<_ACEOF
6912 cat confdefs.h
>>conftest.
$ac_ext
6913 cat >>conftest.
$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6924 rm -f conftest.
$ac_objext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926 (eval $ac_compile) 2>conftest.er1
6928 grep -v '^ *+' conftest.er1
>conftest.err
6930 cat conftest.err
>&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } &&
6933 { ac_try
='test -z "$ac_c_werror_flag"
6934 || test ! -s conftest.err'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; } &&
6940 { ac_try
='test -s conftest.$ac_objext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 eval "$as_acx_Woption=yes"
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.
$ac_ext >&5
6951 eval "$as_acx_Woption=no"
6953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6957 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6958 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6959 strict_warn
="$strict_warn${strict_warn:+ }$option"
6963 CFLAGS
="$save_CFLAGS"
6965 if test "$GCC" = yes; then
6966 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6967 -Wno-overlength-strings" >&5
6968 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6969 -Wno-overlength-strings... $ECHO_C" >&6
6970 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 save_CFLAGS
="$CFLAGS"
6974 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros \
6975 -Wno-overlength-strings"
6976 cat >conftest.
$ac_ext <<_ACEOF
6979 cat confdefs.h
>>conftest.
$ac_ext
6980 cat >>conftest.
$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6991 rm -f conftest.
$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>conftest.er1
6995 grep -v '^ *+' conftest.er1
>conftest.err
6997 cat conftest.err
>&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try
='test -z "$ac_c_werror_flag"
7001 || test ! -s conftest.err'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; } &&
7007 { ac_try
='test -s conftest.$ac_objext'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; }; then
7013 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=yes
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.
$ac_ext >&5
7018 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=no
7020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7021 CFLAGS
="$save_CFLAGS"
7023 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7024 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7025 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7026 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7027 -Wno-overlength-strings"
7034 # Check whether --enable-werror-always or --disable-werror-always was given.
7035 if test "${enable_werror_always+set}" = set; then
7036 enableval
="$enable_werror_always"
7039 enable_werror_always
=no
7041 if test $enable_werror_always = yes; then
7042 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7048 # The above macros do nothing if the compiler is not GCC. However, the
7049 # Makefile has more goo to add other flags, so this variabl is used to
7050 # enables warnings only for GCC.
7052 if test "x$GCC" = "xyes"; then
7053 warn_cflags
='$(GCC_WARN_CFLAGS)'
7057 # Enable expensive internal checks
7059 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7063 # Check whether --enable-checking or --disable-checking was given.
7064 if test "${enable_checking+set}" = set; then
7065 enableval
="$enable_checking"
7066 ac_checking_flags
="${enableval}"
7069 # Determine the default checks.
7070 if test x
$is_release = x
; then
7071 ac_checking_flags
=yes
7073 ac_checking_flags
=release
7076 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7077 for check
in release
$ac_checking_flags
7080 # these set all the flags to specific states
7081 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7082 ac_fold_checking
= ; ac_gc_checking
=1 ;
7083 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7084 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7085 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7086 ac_types_checking
=1 ;;
7087 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7088 ac_fold_checking
= ; ac_gc_checking
= ;
7089 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7090 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7091 ac_tree_checking
= ; ac_valgrind_checking
= ;
7092 ac_types_checking
= ;;
7093 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7094 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7095 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
7096 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7097 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7098 ac_types_checking
=1 ;;
7099 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7100 ac_fold_checking
= ; ac_gc_checking
= ;
7101 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7102 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7103 ac_tree_checking
= ; ac_valgrind_checking
= ;
7104 ac_types_checking
= ;;
7105 # these enable particular checks
7106 assert
) ac_assert_checking
=1 ;;
7107 df
) ac_df_checking
=1 ;;
7108 fold) ac_fold_checking
=1 ;;
7109 gc
) ac_gc_checking
=1 ;;
7110 gcac
) ac_gc_always_collect
=1 ;;
7111 misc
) ac_checking
=1 ;;
7112 rtl
) ac_rtl_checking
=1 ;;
7113 rtlflag
) ac_rtlflag_checking
=1 ;;
7114 runtime
) ac_runtime_checking
=1 ;;
7115 tree
) ac_tree_checking
=1 ;;
7116 types
) ac_types_checking
=1 ;;
7117 valgrind
) ac_valgrind_checking
=1 ;;
7118 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7119 echo "$as_me: error: unknown check category $check" >&2;}
7120 { (exit 1); exit 1; }; } ;;
7126 if test x
$ac_checking != x
; then
7128 cat >>confdefs.h
<<\_ACEOF
7129 #define ENABLE_CHECKING 1
7132 nocommon_flag
=-fno-common
7135 if test x
$ac_df_checking != x
; then
7137 cat >>confdefs.h
<<\_ACEOF
7138 #define ENABLE_DF_CHECKING 1
7142 if test x
$ac_assert_checking != x
; then
7144 cat >>confdefs.h
<<\_ACEOF
7145 #define ENABLE_ASSERT_CHECKING 1
7150 if test x
$ac_runtime_checking != x
; then
7152 cat >>confdefs.h
<<\_ACEOF
7153 #define ENABLE_RUNTIME_CHECKING 1
7157 if test x
$ac_tree_checking != x
; then
7159 cat >>confdefs.h
<<\_ACEOF
7160 #define ENABLE_TREE_CHECKING 1
7163 TREEBROWSER
=tree-browser.o
7165 if test x
$ac_types_checking != x
; then
7167 cat >>confdefs.h
<<\_ACEOF
7168 #define ENABLE_TYPES_CHECKING 1
7173 if test x
$ac_rtl_checking != x
; then
7175 cat >>confdefs.h
<<\_ACEOF
7176 #define ENABLE_RTL_CHECKING 1
7180 if test x
$ac_rtlflag_checking != x
; then
7182 cat >>confdefs.h
<<\_ACEOF
7183 #define ENABLE_RTL_FLAG_CHECKING 1
7187 if test x
$ac_gc_checking != x
; then
7189 cat >>confdefs.h
<<\_ACEOF
7190 #define ENABLE_GC_CHECKING 1
7194 if test x
$ac_gc_always_collect != x
; then
7196 cat >>confdefs.h
<<\_ACEOF
7197 #define ENABLE_GC_ALWAYS_COLLECT 1
7201 if test x
$ac_fold_checking != x
; then
7203 cat >>confdefs.h
<<\_ACEOF
7204 #define ENABLE_FOLD_CHECKING 1
7208 valgrind_path_defines
=
7211 if test "${ac_cv_header_valgrind_h+set}" = set; then
7212 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7213 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7214 if test "${ac_cv_header_valgrind_h+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7218 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7220 # Is the header compilable?
7221 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7222 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7223 cat >conftest.
$ac_ext <<_ACEOF
7226 cat confdefs.h
>>conftest.
$ac_ext
7227 cat >>conftest.
$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 $ac_includes_default
7230 #include <valgrind.h>
7232 rm -f conftest.
$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>conftest.er1
7236 grep -v '^ *+' conftest.er1
>conftest.err
7238 cat conftest.err
>&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try
='test -z "$ac_c_werror_flag"
7242 || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try
='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_header_compiler
=yes
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.
$ac_ext >&5
7259 ac_header_compiler
=no
7261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7263 echo "${ECHO_T}$ac_header_compiler" >&6
7265 # Is the header present?
7266 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7267 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7268 cat >conftest.
$ac_ext <<_ACEOF
7271 cat confdefs.h
>>conftest.
$ac_ext
7272 cat >>conftest.
$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #include <valgrind.h>
7276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7277 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7279 grep -v '^ *+' conftest.er1
>conftest.err
7281 cat conftest.err
>&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } >/dev
/null
; then
7284 if test -s conftest.err
; then
7285 ac_cpp_err
=$ac_c_preproc_warn_flag
7286 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7293 if test -z "$ac_cpp_err"; then
7294 ac_header_preproc
=yes
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.
$ac_ext >&5
7299 ac_header_preproc
=no
7301 rm -f conftest.err conftest.
$ac_ext
7302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7303 echo "${ECHO_T}$ac_header_preproc" >&6
7305 # So? What about this header?
7306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7308 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7309 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7310 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7311 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7312 ac_header_preproc
=yes
7315 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7316 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7317 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7318 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7319 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7320 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7321 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7322 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7323 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7324 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7326 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7329 ## ------------------------------------------ ##
7330 ## Report this to the AC_PACKAGE_NAME lists. ##
7331 ## ------------------------------------------ ##
7334 sed "s/^/$as_me: WARNING: /" >&2
7337 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7338 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7339 if test "${ac_cv_header_valgrind_h+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 ac_cv_header_valgrind_h
=$ac_header_preproc
7344 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7345 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7348 if test $ac_cv_header_valgrind_h = yes; then
7356 if test x
$ac_valgrind_checking != x
; then
7357 # It is certainly possible that there's valgrind but no valgrind.h.
7358 # GCC relies on making annotations so we must have both.
7359 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7360 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7361 cat >conftest.
$ac_ext <<_ACEOF
7364 cat confdefs.h
>>conftest.
$ac_ext
7365 cat >>conftest.
$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 #include <valgrind/memcheck.h>
7368 #ifndef VALGRIND_DISCARD
7369 #error VALGRIND_DISCARD not defined
7372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7373 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7375 grep -v '^ *+' conftest.er1
>conftest.err
7377 cat conftest.err
>&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } >/dev
/null
; then
7380 if test -s conftest.err
; then
7381 ac_cpp_err
=$ac_c_preproc_warn_flag
7382 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7389 if test -z "$ac_cpp_err"; then
7390 gcc_cv_header_valgrind_memcheck_h
=yes
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.
$ac_ext >&5
7395 gcc_cv_header_valgrind_memcheck_h
=no
7397 rm -f conftest.err conftest.
$ac_ext
7398 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7399 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7400 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7401 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7402 cat >conftest.
$ac_ext <<_ACEOF
7405 cat confdefs.h
>>conftest.
$ac_ext
7406 cat >>conftest.
$ac_ext <<_ACEOF
7407 /* end confdefs.h. */
7408 #include <memcheck.h>
7409 #ifndef VALGRIND_DISCARD
7410 #error VALGRIND_DISCARD not defined
7413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7414 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7416 grep -v '^ *+' conftest.er1
>conftest.err
7418 cat conftest.err
>&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } >/dev
/null
; then
7421 if test -s conftest.err
; then
7422 ac_cpp_err
=$ac_c_preproc_warn_flag
7423 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7430 if test -z "$ac_cpp_err"; then
7431 gcc_cv_header_memcheck_h
=yes
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.
$ac_ext >&5
7436 gcc_cv_header_memcheck_h
=no
7438 rm -f conftest.err conftest.
$ac_ext
7439 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7440 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7442 # Prepare PATH_SEPARATOR.
7443 # The user is always right.
7444 if test "${PATH_SEPARATOR+set}" != set; then
7445 echo "#! /bin/sh" >conf$$.sh
7446 echo "exit 0" >>conf$$.sh
7448 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7456 # Find out how to test for executable files. Don't use a zero-byte file,
7457 # as systems may use methods other than mode bits to determine executability.
7458 cat >conf$$.
file <<_ASEOF
7462 chmod +x conf$$.
file
7463 if test -x conf$$.
file >/dev
/null
2>&1; then
7464 ac_executable_p
="test -x"
7466 ac_executable_p
="test -f"
7470 # Extract the first word of "valgrind", so it can be a program name with args.
7471 set dummy valgrind
; ac_word
=$2
7472 echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474 if test "${ac_cv_path_valgrind_path+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 case "$valgrind_path" in
7479 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7482 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7483 for ac_dir
in $PATH; do
7485 test -z "$ac_dir" && ac_dir
=.
7486 for ac_exec_ext
in '' $ac_executable_extensions; do
7487 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7488 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7489 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7499 valgrind_path
="$ac_cv_path_valgrind_path"
7500 if test -n "$valgrind_path"; then
7501 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7502 echo "${ECHO_T}$valgrind_path" >&6
7504 echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7508 if test "x$valgrind_path" = "x" \
7509 ||
(test $have_valgrind_h = no \
7510 && test $gcc_cv_header_memcheck_h = no \
7511 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7512 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7513 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7514 { (exit 1); exit 1; }; }
7516 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7517 valgrind_command
="$valgrind_path -q"
7519 cat >>confdefs.h
<<\_ACEOF
7520 #define ENABLE_VALGRIND_CHECKING 1
7523 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7525 cat >>confdefs.h
<<\_ACEOF
7526 #define HAVE_VALGRIND_MEMCHECK_H 1
7530 if test $gcc_cv_header_memcheck_h = yes; then
7532 cat >>confdefs.h
<<\_ACEOF
7533 #define HAVE_MEMCHECK_H 1
7541 # Enable code coverage collection
7542 # Check whether --enable-coverage or --disable-coverage was given.
7543 if test "${enable_coverage+set}" = set; then
7544 enableval
="$enable_coverage"
7545 case "${enableval}" in
7547 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7550 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7553 # a.k.a. --disable-coverage
7557 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7558 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7559 { (exit 1); exit 1; }; }
7567 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7568 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7569 enableval
="$enable_gather_detailed_mem_stats"
7572 enable_gather_detailed_mem_stats
=no
7574 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7576 cat >>confdefs.h
<<\_ACEOF
7577 #define GATHER_STATISTICS 1
7582 # -------------------------------
7583 # Miscenalleous configure options
7584 # -------------------------------
7588 # Check whether --with-stabs or --without-stabs was given.
7589 if test "${with_stabs+set}" = set; then
7590 withval
="$with_stabs"
7596 # Determine whether or not multilibs are enabled.
7597 # Check whether --enable-multilib or --disable-multilib was given.
7598 if test "${enable_multilib+set}" = set; then
7599 enableval
="$enable_multilib"
7606 # Enable __cxa_atexit for C++.
7607 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7608 if test "${enable___cxa_atexit+set}" = set; then
7609 enableval
="$enable___cxa_atexit"
7613 # Enable C extension for decimal float if target supports it.
7614 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7615 if test "${enable_decimal_float+set}" = set; then
7616 enableval
="$enable_decimal_float"
7618 case $enable_decimal_float in
7619 yes | no | bid | dpd
) ;;
7620 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7621 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7622 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7623 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7624 { (exit 1); exit 1; }; } ;;
7630 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7631 enable_decimal_float
=yes
7634 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7635 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7636 enable_decimal_float
=no
7642 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7644 cat >>confdefs.h
<<_ACEOF
7645 #define ENABLE_DECIMAL_FLOAT $dfp
7649 # x86's use BID format instead of DPD
7650 case x
$enable_decimal_float in
7653 i?
86*-*-linux* | x86_64
*-*-linux*)
7654 enable_decimal_float
=bid
7657 enable_decimal_float
=dpd
7662 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7663 # dependency on libdecnumber.
7664 enable_decimal_float
=dpd
7669 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7671 cat >>confdefs.h
<<_ACEOF
7672 #define ENABLE_DECIMAL_BID_FORMAT $bid
7676 # Enable C extension for fixed-point arithmetic.
7677 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7678 if test "${enable_fixed_point+set}" = set; then
7679 enableval
="$enable_fixed_point"
7688 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7689 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7690 enable_fixed_point
=no
7693 enable_fixed_point
=yes
7698 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7699 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7700 enable_fixed_point
=no
7707 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7709 cat >>confdefs.h
<<_ACEOF
7710 #define ENABLE_FIXED_POINT $fixedpoint
7715 # Pass with no value to take the default
7716 # Pass with a value to specify a thread package
7717 # Check whether --enable-threads or --disable-threads was given.
7718 if test "${enable_threads+set}" = set; then
7719 enableval
="$enable_threads"
7725 # Check whether --enable-tls or --disable-tls was given.
7726 if test "${enable_tls+set}" = set; then
7727 enableval
="$enable_tls"
7731 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7732 Valid choices are 'yes' and 'no'." >&5
7733 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7734 Valid choices are 'yes' and 'no'." >&2;}
7735 { (exit 1); exit 1; }; } ;;
7742 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7743 if test "${enable_objc_gc+set}" = set; then
7744 enableval
="$enable_objc_gc"
7745 if test x
$enable_objc_gc = xno
; then
7755 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7756 if test "${with_dwarf2+set}" = set; then
7757 withval
="$with_dwarf2"
7758 dwarf2
="$with_dwarf2"
7763 # Check whether --enable-shared or --disable-shared was given.
7764 if test "${enable_shared+set}" = set; then
7765 enableval
="$enable_shared"
7767 case $enable_shared in
7771 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7772 for pkg
in $enableval; do
7773 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7787 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7788 if test "${with_build_sysroot+set}" = set; then
7789 withval
="$with_build_sysroot"
7794 # Check whether --with-sysroot or --without-sysroot was given.
7795 if test "${with_sysroot+set}" = set; then
7796 withval
="$with_sysroot"
7798 case ${with_sysroot} in
7799 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7800 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7803 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7804 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7806 if test "x$prefix" = xNONE
; then
7807 test_prefix
=/usr
/local
7811 if test "x$exec_prefix" = xNONE
; then
7812 test_exec_prefix
=$test_prefix
7814 test_exec_prefix
=$exec_prefix
7816 case ${TARGET_SYSTEM_ROOT} in
7817 "${test_prefix}"|
"${test_prefix}/"*|\
7818 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7819 '${prefix}'|
'${prefix}/'*|\
7820 '${exec_prefix}'|
'${exec_prefix}/'*)
7821 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7822 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7829 TARGET_SYSTEM_ROOT_DEFINE
=
7830 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7837 # Build with intermodule optimisations
7838 # Check whether --enable-intermodule or --disable-intermodule was given.
7839 if test "${enable_intermodule+set}" = set; then
7840 enableval
="$enable_intermodule"
7841 case ${enable_intermodule} in
7842 yes) onestep
="-onestep";;
7852 # Check whether --with-pkgversion or --without-pkgversion was given.
7853 if test "${with_pkgversion+set}" = set; then
7854 withval
="$with_pkgversion"
7856 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7857 echo "$as_me: error: package version not specified" >&2;}
7858 { (exit 1); exit 1; }; } ;;
7860 *) PKGVERSION
="($withval) " ;;
7870 # Check whether --with-bugurl or --without-bugurl was given.
7871 if test "${with_bugurl+set}" = set; then
7872 withval
="$with_bugurl"
7874 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7875 echo "$as_me: error: bug URL not specified" >&2;}
7876 { (exit 1); exit 1; }; } ;;
7879 *) BUGURL
="$withval"
7883 BUGURL
="http://gcc.gnu.org/bugs.html"
7892 REPORT_BUGS_TO
="<$BUGURL>"
7893 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7900 # Sanity check enable_languages in case someone does not run the toplevel
7901 # configure # script.
7902 # Check whether --enable-languages or --disable-languages was given.
7903 if test "${enable_languages+set}" = set; then
7904 enableval
="$enable_languages"
7905 case ,${enable_languages}, in
7907 # go safe -- we cannot be much sure without the toplevel
7909 # analysis of which target libs are present and usable
7913 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7914 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7915 { (exit 1); exit 1; }; }
7920 enable_languages
=c
,${enable_languages}
7927 # Used by documentation targets
7932 # -------------------------
7933 # Checks for other programs
7934 # -------------------------
7936 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7937 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7938 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7939 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 cat >conftest.
make <<\_ACEOF
7944 @
echo 'ac_maketemp="$(MAKE)"'
7946 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7947 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7948 if test -n "$ac_maketemp"; then
7949 eval ac_cv_prog_make_
${ac_make}_set
=yes
7951 eval ac_cv_prog_make_
${ac_make}_set
=no
7955 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7956 echo "$as_me:$LINENO: result: yes" >&5
7957 echo "${ECHO_T}yes" >&6
7960 echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6
7962 SET_MAKE
="MAKE=${MAKE-make}"
7966 # Find some useful tools
7967 for ac_prog
in gawk mawk nawk
awk
7969 # Extract the first word of "$ac_prog", so it can be a program name with args.
7970 set dummy
$ac_prog; ac_word
=$2
7971 echo "$as_me:$LINENO: checking for $ac_word" >&5
7972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7973 if test "${ac_cv_prog_AWK+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 if test -n "$AWK"; then
7977 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir
=.
7984 for ac_exec_ext
in '' $ac_executable_extensions; do
7985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_AWK
="$ac_prog"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 if test -n "$AWK"; then
7997 echo "$as_me:$LINENO: result: $AWK" >&5
7998 echo "${ECHO_T}$AWK" >&6
8000 echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6
8004 test -n "$AWK" && break
8007 # We need awk to create options.c and options.h.
8008 # Bail out if it's missing.
8010 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8011 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8012 { (exit 1); exit 1; }; } ;;
8015 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8016 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8017 if test "${gcc_cv_prog_LN_S+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 rm -f conftestdata_t
8021 echo >conftestdata_f
8022 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8024 gcc_cv_prog_LN_S
="ln -s"
8026 if ln conftestdata_f conftestdata_t
2>/dev
/null
8030 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8032 gcc_cv_prog_LN_S
="cp -p"
8038 rm -f conftestdata_f conftestdata_t
8041 LN_S
="$gcc_cv_prog_LN_S"
8042 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8043 echo "$as_me:$LINENO: result: yes" >&5
8044 echo "${ECHO_T}yes" >&6
8046 if test "$gcc_cv_prog_LN_S" = "ln"; then
8047 echo "$as_me:$LINENO: result: no, using ln" >&5
8048 echo "${ECHO_T}no, using ln" >&6
8050 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8051 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8055 echo "$as_me:$LINENO: checking whether ln works" >&5
8056 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8057 if test "${acx_cv_prog_LN+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 rm -f conftestdata_t
8061 echo >conftestdata_f
8062 if ln conftestdata_f conftestdata_t
2>/dev
/null
8068 rm -f conftestdata_f conftestdata_t
8071 if test $acx_cv_prog_LN = no
; then
8073 echo "$as_me:$LINENO: result: no, using $LN" >&5
8074 echo "${ECHO_T}no, using $LN" >&6
8076 LN
="$acx_cv_prog_LN"
8077 echo "$as_me:$LINENO: result: yes" >&5
8078 echo "${ECHO_T}yes" >&6
8081 if test -n "$ac_tool_prefix"; then
8082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8083 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8084 echo "$as_me:$LINENO: checking for $ac_word" >&5
8085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8086 if test "${ac_cv_prog_RANLIB+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 if test -n "$RANLIB"; then
8090 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8096 test -z "$as_dir" && as_dir
=.
8097 for ac_exec_ext
in '' $ac_executable_extensions; do
8098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8099 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 RANLIB
=$ac_cv_prog_RANLIB
8109 if test -n "$RANLIB"; then
8110 echo "$as_me:$LINENO: result: $RANLIB" >&5
8111 echo "${ECHO_T}$RANLIB" >&6
8113 echo "$as_me:$LINENO: result: no" >&5
8114 echo "${ECHO_T}no" >&6
8118 if test -z "$ac_cv_prog_RANLIB"; then
8119 ac_ct_RANLIB
=$RANLIB
8120 # Extract the first word of "ranlib", so it can be a program name with args.
8121 set dummy ranlib
; ac_word
=$2
8122 echo "$as_me:$LINENO: checking for $ac_word" >&5
8123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8124 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 if test -n "$ac_ct_RANLIB"; then
8128 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8134 test -z "$as_dir" && as_dir
=.
8135 for ac_exec_ext
in '' $ac_executable_extensions; do
8136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8147 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8148 if test -n "$ac_ct_RANLIB"; then
8149 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8150 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8152 echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8156 RANLIB
=$ac_ct_RANLIB
8158 RANLIB
="$ac_cv_prog_RANLIB"
8163 # By default, the Darwin ranlib will not treat common symbols as
8164 # definitions when building the archive table of contents. Other
8165 # ranlibs do that; pass an option to the Darwin ranlib that makes
8166 # it behave similarly.
8174 # Find a good install program. We prefer a C program (faster),
8175 # so one script is as good as another. But avoid the broken or
8176 # incompatible versions:
8177 # SysV /etc/install, /usr/sbin/install
8178 # SunOS /usr/etc/install
8179 # IRIX /sbin/install
8181 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8182 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8183 # ./install, which can be erroneously created by make from ./install.sh.
8184 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8185 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8186 if test -z "$INSTALL"; then
8187 if test "${ac_cv_path_install+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8191 for ac_dir
in $PATH; do
8192 # Account for people who put trailing slashes in PATH elements.
8194 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8196 # OSF1 and SCO ODT 3.0 have their own names for install.
8197 for ac_prog
in ginstall scoinst
install; do
8198 if test -f $ac_dir/$ac_prog; then
8199 if test $ac_prog = install &&
8200 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8201 # AIX install. It has an incompatible calling convention.
8202 # OSF/1 installbsd also uses dspmsg, but is usable.
8205 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8216 if test "${ac_cv_path_install+set}" = set; then
8217 INSTALL
="$ac_cv_path_install"
8219 # As a last resort, use the slow shell script. We don't cache a
8220 # path for INSTALL within a source directory, because that will
8221 # break other packages using the cache if that directory is
8222 # removed, or if the path is relative.
8223 INSTALL
="$ac_install_sh"
8226 echo "$as_me:$LINENO: result: $INSTALL" >&5
8227 echo "${ECHO_T}$INSTALL" >&6
8229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8230 # It thinks the first close brace ends the variable substitution.
8231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8233 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8236 # See if cmp has --ignore-initial.
8237 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8238 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8239 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 gcc_cv_prog_cmp_skip
=slowcompare
8245 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8246 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8249 gcc_cv_prog_cmp_skip
=gnucompare
8252 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8253 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8254 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8257 gcc_cv_prog_cmp_skip
=fastcompare
8264 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8265 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8266 make_compare_target
=$gcc_cv_prog_cmp_skip
8270 # See if we have the mktemp command.
8271 # Extract the first word of "mktemp", so it can be a program name with args.
8272 set dummy mktemp
; ac_word
=$2
8273 echo "$as_me:$LINENO: checking for $ac_word" >&5
8274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8275 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 if test -n "$have_mktemp_command"; then
8279 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8285 test -z "$as_dir" && as_dir
=.
8286 for ac_exec_ext
in '' $ac_executable_extensions; do
8287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288 ac_cv_prog_have_mktemp_command
="yes"
8289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8298 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8299 if test -n "$have_mktemp_command"; then
8300 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8301 echo "${ECHO_T}$have_mktemp_command" >&6
8303 echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6
8308 # See if makeinfo has been installed and is modern enough
8309 # that we can use it.
8311 # Extract the first word of "makeinfo", so it can be a program name with args.
8312 set dummy makeinfo
; ac_word
=$2
8313 echo "$as_me:$LINENO: checking for $ac_word" >&5
8314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8315 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 if test -n "$MAKEINFO"; then
8319 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8325 test -z "$as_dir" && as_dir
=.
8326 for ac_exec_ext
in '' $ac_executable_extensions; do
8327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328 ac_cv_prog_MAKEINFO
="makeinfo"
8329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 MAKEINFO
=$ac_cv_prog_MAKEINFO
8338 if test -n "$MAKEINFO"; then
8339 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8340 echo "${ECHO_T}$MAKEINFO" >&6
8342 echo "$as_me:$LINENO: result: no" >&5
8343 echo "${ECHO_T}no" >&6
8346 if test -n "$MAKEINFO"; then
8347 # Found it, now check the version.
8348 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8349 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8350 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8354 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8356 case $ac_prog_version in
8357 '') gcc_cv_prog_makeinfo_modern
=no
;;
8358 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8359 *) gcc_cv_prog_makeinfo_modern
=no
;;
8363 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8364 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8366 gcc_cv_prog_makeinfo_modern
=no
8368 if test $gcc_cv_prog_makeinfo_modern = no
; then
8369 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8372 if test $gcc_cv_prog_makeinfo_modern = no
; then
8373 { echo "$as_me:$LINENO: WARNING:
8374 *** Makeinfo is missing or too old.
8375 *** Info documentation will not be built." >&5
8376 echo "$as_me: WARNING:
8377 *** Makeinfo is missing or too old.
8378 *** Info documentation will not be built." >&2;}
8385 # Is pod2man recent enough to regenerate manpages?
8386 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8387 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8388 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8389 echo "$as_me:$LINENO: result: yes" >&5
8390 echo "${ECHO_T}yes" >&6
8391 GENERATED_MANPAGES
=generated-manpages
8393 echo "$as_me:$LINENO: result: no" >&5
8394 echo "${ECHO_T}no" >&6
8399 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy
$ac_prog; ac_word
=$2
8406 echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8408 if test "${ac_cv_prog_FLEX+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 if test -n "$FLEX"; then
8412 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8418 test -z "$as_dir" && as_dir
=.
8419 for ac_exec_ext
in '' $ac_executable_extensions; do
8420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8421 ac_cv_prog_FLEX
="$ac_prog"
8422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8430 FLEX
=$ac_cv_prog_FLEX
8431 if test -n "$FLEX"; then
8432 echo "$as_me:$LINENO: result: $FLEX" >&5
8433 echo "${ECHO_T}$FLEX" >&6
8435 echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6
8439 test -n "$FLEX" && break
8441 test -n "$FLEX" || FLEX
="$MISSING flex"
8445 for ac_prog
in bison
8447 # Extract the first word of "$ac_prog", so it can be a program name with args.
8448 set dummy
$ac_prog; ac_word
=$2
8449 echo "$as_me:$LINENO: checking for $ac_word" >&5
8450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8451 if test "${ac_cv_prog_BISON+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 if test -n "$BISON"; then
8455 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8461 test -z "$as_dir" && as_dir
=.
8462 for ac_exec_ext
in '' $ac_executable_extensions; do
8463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464 ac_cv_prog_BISON
="$ac_prog"
8465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 BISON
=$ac_cv_prog_BISON
8474 if test -n "$BISON"; then
8475 echo "$as_me:$LINENO: result: $BISON" >&5
8476 echo "${ECHO_T}$BISON" >&6
8478 echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6
8482 test -n "$BISON" && break
8484 test -n "$BISON" || BISON
="$MISSING bison"
8487 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8488 # check for build == host before using them.
8491 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8492 && test -d ..
/binutils
; then
8493 NM
='$(objdir)/../binutils/nm-new'
8495 # Extract the first word of "nm", so it can be a program name with args.
8496 set dummy nm
; ac_word
=$2
8497 echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8499 if test "${ac_cv_prog_NM+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 if test -n "$NM"; then
8503 ac_cv_prog_NM
="$NM" # Let the user override the test.
8505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir
=.
8510 for ac_exec_ext
in '' $ac_executable_extensions; do
8511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8523 if test -n "$NM"; then
8524 echo "$as_me:$LINENO: result: $NM" >&5
8525 echo "${ECHO_T}$NM" >&6
8527 echo "$as_me:$LINENO: result: no" >&5
8528 echo "${ECHO_T}no" >&6
8534 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8535 && test -d ..
/binutils
; then
8536 AR
='$(objdir)/../binutils/ar'
8538 # Extract the first word of "ar", so it can be a program name with args.
8539 set dummy
ar; ac_word
=$2
8540 echo "$as_me:$LINENO: checking for $ac_word" >&5
8541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8542 if test "${ac_cv_prog_AR+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 if test -n "$AR"; then
8546 ac_cv_prog_AR
="$AR" # Let the user override the test.
8548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8552 test -z "$as_dir" && as_dir
=.
8553 for ac_exec_ext
in '' $ac_executable_extensions; do
8554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8566 if test -n "$AR"; then
8567 echo "$as_me:$LINENO: result: $AR" >&5
8568 echo "${ECHO_T}$AR" >&6
8570 echo "$as_me:$LINENO: result: no" >&5
8571 echo "${ECHO_T}no" >&6
8577 # --------------------
8578 # Checks for C headers
8579 # --------------------
8581 # Need to reject headers which give warnings, so that the -Werror bootstrap
8582 # works later. *sigh* This needs to come before all header checks.
8584 ac_c_preproc_warn_flag
=yes
8586 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8588 if test "${ac_cv_header_stdc+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 cat >conftest.
$ac_ext <<_ACEOF
8594 cat confdefs.h
>>conftest.
$ac_ext
8595 cat >>conftest.
$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8610 rm -f conftest.
$ac_objext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8612 (eval $ac_compile) 2>conftest.er1
8614 grep -v '^ *+' conftest.er1
>conftest.err
8616 cat conftest.err
>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try
='test -z "$ac_c_werror_flag"
8620 || test ! -s conftest.err'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try
='test -s conftest.$ac_objext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 ac_cv_header_stdc
=yes
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.
$ac_ext >&5
8637 ac_cv_header_stdc
=no
8639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8641 if test $ac_cv_header_stdc = yes; then
8642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8643 cat >conftest.
$ac_ext <<_ACEOF
8646 cat confdefs.h
>>conftest.
$ac_ext
8647 cat >>conftest.
$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8653 $EGREP "memchr" >/dev
/null
2>&1; then
8656 ac_cv_header_stdc
=no
8662 if test $ac_cv_header_stdc = yes; then
8663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8664 cat >conftest.
$ac_ext <<_ACEOF
8667 cat confdefs.h
>>conftest.
$ac_ext
8668 cat >>conftest.
$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8674 $EGREP "free" >/dev
/null
2>&1; then
8677 ac_cv_header_stdc
=no
8683 if test $ac_cv_header_stdc = yes; then
8684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8685 if test "$cross_compiling" = yes; then
8688 cat >conftest.
$ac_ext <<_ACEOF
8691 cat confdefs.h
>>conftest.
$ac_ext
8692 cat >>conftest.
$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8695 #if ((' ' & 0x0FF) == 0x020)
8696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8699 # define ISLOWER(c) \
8700 (('a' <= (c) && (c) <= 'i') \
8701 || ('j' <= (c) && (c) <= 'r') \
8702 || ('s' <= (c) && (c) <= 'z'))
8703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8711 for (i = 0; i < 256; i++)
8712 if (XOR (islower (i), ISLOWER (i))
8713 || toupper (i) != TOUPPER (i))
8718 rm -f conftest
$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720 (eval $ac_link) 2>&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8731 echo "$as_me: program exited with status $ac_status" >&5
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.
$ac_ext >&5
8736 ac_cv_header_stdc
=no
8738 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8742 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8743 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8744 if test $ac_cv_header_stdc = yes; then
8746 cat >>confdefs.h
<<\_ACEOF
8747 #define STDC_HEADERS 1
8752 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8753 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8754 if test "${ac_cv_header_time+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 cat >conftest.
$ac_ext <<_ACEOF
8760 cat confdefs.h
>>conftest.
$ac_ext
8761 cat >>conftest.
$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8763 #include <sys/types.h>
8764 #include <sys/time.h>
8770 if ((struct tm *) 0)
8776 rm -f conftest.
$ac_objext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8778 (eval $ac_compile) 2>conftest.er1
8780 grep -v '^ *+' conftest.er1
>conftest.err
8782 cat conftest.err
>&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try
='test -z "$ac_c_werror_flag"
8786 || test ! -s conftest.err'
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; } &&
8792 { ac_try
='test -s conftest.$ac_objext'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
8798 ac_cv_header_time
=yes
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.
$ac_ext >&5
8803 ac_cv_header_time
=no
8805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8807 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8808 echo "${ECHO_T}$ac_cv_header_time" >&6
8809 if test $ac_cv_header_time = yes; then
8811 cat >>confdefs.h
<<\_ACEOF
8812 #define TIME_WITH_SYS_TIME 1
8817 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8818 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8819 if test "${gcc_cv_header_string+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 cat >conftest.
$ac_ext <<_ACEOF
8825 cat confdefs.h
>>conftest.
$ac_ext
8826 cat >>conftest.
$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 #include <strings.h>
8838 rm -f conftest.
$ac_objext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8840 (eval $ac_compile) 2>conftest.er1
8842 grep -v '^ *+' conftest.er1
>conftest.err
8844 cat conftest.err
>&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try
='test -z "$ac_c_werror_flag"
8848 || test ! -s conftest.err'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; } &&
8854 { ac_try
='test -s conftest.$ac_objext'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 gcc_cv_header_string
=yes
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.
$ac_ext >&5
8865 gcc_cv_header_string
=no
8867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8869 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8870 echo "${ECHO_T}$gcc_cv_header_string" >&6
8871 if test $gcc_cv_header_string = yes; then
8873 cat >>confdefs.h
<<\_ACEOF
8874 #define STRING_WITH_STRINGS 1
8879 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8880 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8881 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 cat >conftest.
$ac_ext <<_ACEOF
8887 cat confdefs.h
>>conftest.
$ac_ext
8888 cat >>conftest.
$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 #include <sys/types.h>
8891 #include <sys/wait.h>
8893 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8896 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8904 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8909 rm -f conftest.
$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911 (eval $ac_compile) 2>conftest.er1
8913 grep -v '^ *+' conftest.er1
>conftest.err
8915 cat conftest.err
>&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try
='test -z "$ac_c_werror_flag"
8919 || test ! -s conftest.err'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; } &&
8925 { ac_try
='test -s conftest.$ac_objext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_cv_header_sys_wait_h
=yes
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.
$ac_ext >&5
8936 ac_cv_header_sys_wait_h
=no
8938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8940 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8941 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8942 if test $ac_cv_header_sys_wait_h = yes; then
8944 cat >>confdefs.h
<<\_ACEOF
8945 #define HAVE_SYS_WAIT_H 1
8972 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8973 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8974 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8975 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8977 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8978 echo "$as_me:$LINENO: checking for $ac_header" >&5
8979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 cat >conftest.
$ac_ext <<_ACEOF
8986 cat confdefs.h
>>conftest.
$ac_ext
8987 cat >>conftest.
$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 #include <$ac_header>
8991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8992 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8994 grep -v '^ *+' conftest.er1
>conftest.err
8996 cat conftest.err
>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } >/dev
/null
; then
8999 if test -s conftest.err
; then
9000 ac_cpp_err
=$ac_c_preproc_warn_flag
9001 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9008 if test -z "$ac_cpp_err"; then
9009 eval "$as_ac_Header=yes"
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.
$ac_ext >&5
9014 eval "$as_ac_Header=no"
9016 rm -f conftest.err conftest.
$ac_ext
9018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9021 cat >>confdefs.h
<<_ACEOF
9022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9029 # Check for thread headers.
9030 echo "$as_me:$LINENO: checking for thread.h" >&5
9031 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9032 if test "${ac_cv_header_thread_h+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 cat >conftest.
$ac_ext <<_ACEOF
9038 cat confdefs.h
>>conftest.
$ac_ext
9039 cat >>conftest.
$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9046 grep -v '^ *+' conftest.er1
>conftest.err
9048 cat conftest.err
>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } >/dev
/null
; then
9051 if test -s conftest.err
; then
9052 ac_cpp_err
=$ac_c_preproc_warn_flag
9053 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9060 if test -z "$ac_cpp_err"; then
9061 ac_cv_header_thread_h
=yes
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.
$ac_ext >&5
9066 ac_cv_header_thread_h
=no
9068 rm -f conftest.err conftest.
$ac_ext
9070 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9071 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9072 if test $ac_cv_header_thread_h = yes; then
9078 echo "$as_me:$LINENO: checking for pthread.h" >&5
9079 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9080 if test "${ac_cv_header_pthread_h+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 cat >conftest.
$ac_ext <<_ACEOF
9086 cat confdefs.h
>>conftest.
$ac_ext
9087 cat >>conftest.
$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089 #include <pthread.h>
9091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9092 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9094 grep -v '^ *+' conftest.er1
>conftest.err
9096 cat conftest.err
>&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } >/dev
/null
; then
9099 if test -s conftest.err
; then
9100 ac_cpp_err
=$ac_c_preproc_warn_flag
9101 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9108 if test -z "$ac_cpp_err"; then
9109 ac_cv_header_pthread_h
=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.
$ac_ext >&5
9114 ac_cv_header_pthread_h
=no
9116 rm -f conftest.err conftest.
$ac_ext
9118 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9119 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9120 if test $ac_cv_header_pthread_h = yes; then
9127 # These tests can't be done till we know if we have limits.h.
9128 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9129 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9130 if test "${gcc_cv_decl_char_bit+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9133 cat >conftest.
$ac_ext <<_ACEOF
9136 cat confdefs.h
>>conftest.
$ac_ext
9137 cat >>conftest.
$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139 #ifdef HAVE_LIMITS_H
9146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9147 $EGREP "found" >/dev
/null
2>&1; then
9148 gcc_cv_decl_char_bit
=yes
9150 gcc_cv_decl_char_bit
=no
9156 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9157 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9158 if test $gcc_cv_decl_char_bit = no
; then
9159 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9160 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9161 if test "${gcc_cv_c_nbby+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 while test $i -lt 65; do
9167 cat >conftest.
$ac_ext <<_ACEOF
9170 cat confdefs.h
>>conftest.
$ac_ext
9171 cat >>conftest.
$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9178 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9179 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9185 rm -f conftest.
$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187 (eval $ac_compile) 2>conftest.er1
9189 grep -v '^ *+' conftest.er1
>conftest.err
9191 cat conftest.err
>&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try
='test -z "$ac_c_werror_flag"
9195 || test ! -s conftest.err'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try
='test -s conftest.$ac_objext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 gcc_cv_c_nbby
=$i; break
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.
$ac_ext >&5
9213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9216 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9219 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9220 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9221 if test $gcc_cv_c_nbby = failed
; then
9222 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9223 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9224 { (exit 1); exit 1; }; }
9227 cat >>confdefs.h
<<_ACEOF
9228 #define CHAR_BIT $gcc_cv_c_nbby
9233 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9234 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9235 if test "${ac_cv_c_bigendian+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 # See if sys/param.h defines the BYTE_ORDER macro.
9239 cat >conftest.
$ac_ext <<_ACEOF
9242 cat confdefs.h
>>conftest.
$ac_ext
9243 cat >>conftest.
$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 #include <sys/types.h>
9246 #include <sys/param.h>
9251 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9259 rm -f conftest.
$ac_objext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9261 (eval $ac_compile) 2>conftest.er1
9263 grep -v '^ *+' conftest.er1
>conftest.err
9265 cat conftest.err
>&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try
='test -z "$ac_c_werror_flag"
9269 || test ! -s conftest.err'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; } &&
9275 { ac_try
='test -s conftest.$ac_objext'
9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 # It does; now see whether it defined to BIG_ENDIAN or not.
9282 cat >conftest.
$ac_ext <<_ACEOF
9285 cat confdefs.h
>>conftest.
$ac_ext
9286 cat >>conftest.
$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 #include <sys/types.h>
9289 #include <sys/param.h>
9294 #if BYTE_ORDER != BIG_ENDIAN
9302 rm -f conftest.
$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304 (eval $ac_compile) 2>conftest.er1
9306 grep -v '^ *+' conftest.er1
>conftest.err
9308 cat conftest.err
>&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try
='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try
='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_c_bigendian
=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.
$ac_ext >&5
9329 ac_cv_c_bigendian
=no
9331 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.
$ac_ext >&5
9336 # It does not; compile a test program.
9337 if test "$cross_compiling" = yes; then
9338 # try to guess the endianness by grepping values into an object file
9339 ac_cv_c_bigendian
=unknown
9340 cat >conftest.
$ac_ext <<_ACEOF
9343 cat confdefs.h
>>conftest.
$ac_ext
9344 cat >>conftest.
$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9347 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9348 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9349 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9350 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9351 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9355 _ascii (); _ebcdic ();
9360 rm -f conftest.
$ac_objext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362 (eval $ac_compile) 2>conftest.er1
9364 grep -v '^ *+' conftest.er1
>conftest.err
9366 cat conftest.err
>&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } &&
9369 { ac_try
='test -z "$ac_c_werror_flag"
9370 || test ! -s conftest.err'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; } &&
9376 { ac_try
='test -s conftest.$ac_objext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9383 ac_cv_c_bigendian
=yes
9385 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9386 if test "$ac_cv_c_bigendian" = unknown
; then
9387 ac_cv_c_bigendian
=no
9389 # finding both strings is unlikely to happen, but who knows?
9390 ac_cv_c_bigendian
=unknown
9394 echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.
$ac_ext >&5
9398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9400 cat >conftest.
$ac_ext <<_ACEOF
9403 cat confdefs.h
>>conftest.
$ac_ext
9404 cat >>conftest.
$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9409 /* Are we little or big endian? From Harbison&Steele. */
9413 char c[sizeof (long)];
9416 exit (u.c[sizeof (long) - 1] == 1);
9419 rm -f conftest
$ac_exeext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421 (eval $ac_link) 2>&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9430 ac_cv_c_bigendian
=no
9432 echo "$as_me: program exited with status $ac_status" >&5
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.
$ac_ext >&5
9437 ac_cv_c_bigendian
=yes
9439 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9444 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9445 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9446 case $ac_cv_c_bigendian in
9449 cat >>confdefs.h
<<\_ACEOF
9450 #define WORDS_BIGENDIAN 1
9456 { { echo "$as_me:$LINENO: error: unknown endianness
9457 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9458 echo "$as_me: error: unknown endianness
9459 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9460 { (exit 1); exit 1; }; } ;;
9469 # These libraries may be used by collect2.
9470 # We may need a special search path to get them linked.
9471 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9472 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9473 if test "${gcc_cv_collect2_libs+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 for libs
in '' -lld -lmld \
9478 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9479 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9482 cat >conftest.
$ac_ext <<_ACEOF
9485 cat confdefs.h
>>conftest.
$ac_ext
9486 cat >>conftest.
$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 /* Override any gcc2 internal prototype to avoid an error. */
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9504 rm -f conftest.
$ac_objext conftest
$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>conftest.er1
9508 grep -v '^ *+' conftest.er1
>conftest.err
9510 cat conftest.err
>&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try
='test -z "$ac_c_werror_flag"
9514 || test ! -s conftest.err'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; } &&
9520 { ac_try
='test -s conftest$ac_exeext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 gcc_cv_collect2_libs
="$libs"; break
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.
$ac_ext >&5
9532 rm -f conftest.err conftest.
$ac_objext \
9533 conftest
$ac_exeext conftest.
$ac_ext
9536 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9538 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9539 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9540 case $gcc_cv_collect2_libs in
9542 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9546 # When building Ada code on Alpha, we need exc_resume which is usually in
9547 # -lexc. So test for it.
9550 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9551 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9552 if test "${ac_cv_search_exc_resume+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 ac_func_search_save_LIBS
=$LIBS
9556 ac_cv_search_exc_resume
=no
9557 cat >conftest.
$ac_ext <<_ACEOF
9560 cat confdefs.h
>>conftest.
$ac_ext
9561 cat >>conftest.
$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9564 /* Override any gcc2 internal prototype to avoid an error. */
9568 /* We use char because int might match the return type of a gcc2
9569 builtin and then its argument prototype would still apply. */
9579 rm -f conftest.
$ac_objext conftest
$ac_exeext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581 (eval $ac_link) 2>conftest.er1
9583 grep -v '^ *+' conftest.er1
>conftest.err
9585 cat conftest.err
>&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try
='test -z "$ac_c_werror_flag"
9589 || test ! -s conftest.err'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try
='test -s conftest$ac_exeext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 ac_cv_search_exc_resume
="none required"
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.
$ac_ext >&5
9607 rm -f conftest.err conftest.
$ac_objext \
9608 conftest
$ac_exeext conftest.
$ac_ext
9609 if test "$ac_cv_search_exc_resume" = no
; then
9610 for ac_lib
in exc
; do
9611 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9612 cat >conftest.
$ac_ext <<_ACEOF
9615 cat confdefs.h
>>conftest.
$ac_ext
9616 cat >>conftest.
$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9619 /* Override any gcc2 internal prototype to avoid an error. */
9623 /* We use char because int might match the return type of a gcc2
9624 builtin and then its argument prototype would still apply. */
9634 rm -f conftest.
$ac_objext conftest
$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>conftest.er1
9638 grep -v '^ *+' conftest.er1
>conftest.err
9640 cat conftest.err
>&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try
='test -z "$ac_c_werror_flag"
9644 || test ! -s conftest.err'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; } &&
9650 { ac_try
='test -s conftest$ac_exeext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_search_exc_resume
="-l$ac_lib"
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.
$ac_ext >&5
9663 rm -f conftest.err conftest.
$ac_objext \
9664 conftest
$ac_exeext conftest.
$ac_ext
9667 LIBS
=$ac_func_search_save_LIBS
9669 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9670 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9671 if test "$ac_cv_search_exc_resume" != no
; then
9672 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9680 # Some systems put ldexp and frexp in libm instead of libc; assume
9681 # they're both in the same place. jcf-dump needs them.
9684 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9685 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9686 if test "${ac_cv_search_ldexp+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 ac_func_search_save_LIBS
=$LIBS
9690 ac_cv_search_ldexp
=no
9691 cat >conftest.
$ac_ext <<_ACEOF
9694 cat confdefs.h
>>conftest.
$ac_ext
9695 cat >>conftest.
$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9698 /* Override any gcc2 internal prototype to avoid an error. */
9702 /* We use char because int might match the return type of a gcc2
9703 builtin and then its argument prototype would still apply. */
9713 rm -f conftest.
$ac_objext conftest
$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715 (eval $ac_link) 2>conftest.er1
9717 grep -v '^ *+' conftest.er1
>conftest.err
9719 cat conftest.err
>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try
='test -z "$ac_c_werror_flag"
9723 || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try
='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_search_ldexp
="none required"
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.
$ac_ext >&5
9741 rm -f conftest.err conftest.
$ac_objext \
9742 conftest
$ac_exeext conftest.
$ac_ext
9743 if test "$ac_cv_search_ldexp" = no
; then
9745 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9746 cat >conftest.
$ac_ext <<_ACEOF
9749 cat confdefs.h
>>conftest.
$ac_ext
9750 cat >>conftest.
$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9753 /* Override any gcc2 internal prototype to avoid an error. */
9757 /* We use char because int might match the return type of a gcc2
9758 builtin and then its argument prototype would still apply. */
9768 rm -f conftest.
$ac_objext conftest
$ac_exeext
9769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9770 (eval $ac_link) 2>conftest.er1
9772 grep -v '^ *+' conftest.er1
>conftest.err
9774 cat conftest.err
>&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 { ac_try
='test -z "$ac_c_werror_flag"
9778 || test ! -s conftest.err'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; } &&
9784 { ac_try
='test -s conftest$ac_exeext'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9790 ac_cv_search_ldexp
="-l$ac_lib"
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.
$ac_ext >&5
9797 rm -f conftest.err conftest.
$ac_objext \
9798 conftest
$ac_exeext conftest.
$ac_ext
9801 LIBS
=$ac_func_search_save_LIBS
9803 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9804 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9805 if test "$ac_cv_search_ldexp" != no
; then
9806 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9814 # Use <inttypes.h> only if it exists,
9815 # doesn't clash with <sys/types.h>, and declares intmax_t.
9816 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9817 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9818 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 cat >conftest.
$ac_ext <<_ACEOF
9824 cat confdefs.h
>>conftest.
$ac_ext
9825 cat >>conftest.
$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 #include <sys/types.h>
9828 #include <inttypes.h>
9837 rm -f conftest.
$ac_objext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9839 (eval $ac_compile) 2>conftest.er1
9841 grep -v '^ *+' conftest.er1
>conftest.err
9843 cat conftest.err
>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try
='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try
='test -s conftest.$ac_objext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 gcc_cv_header_inttypes_h
=yes
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.
$ac_ext >&5
9864 gcc_cv_header_inttypes_h
=no
9866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9869 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9870 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9871 if test $gcc_cv_header_inttypes_h = yes; then
9873 cat >>confdefs.h
<<\_ACEOF
9874 #define HAVE_INTTYPES_H 1
9916 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9917 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9918 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9919 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
9921 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9922 echo "$as_me:$LINENO: checking for $ac_func" >&5
9923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_var+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 cat >conftest.
$ac_ext <<_ACEOF
9930 cat confdefs.h
>>conftest.
$ac_ext
9931 cat >>conftest.
$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9935 #define $ac_func innocuous_$ac_func
9937 /* System header to define __stub macros and hopefully few prototypes,
9938 which can conflict with char $ac_func (); below.
9939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9940 <limits.h> exists even on freestanding compilers. */
9943 # include <limits.h>
9945 # include <assert.h>
9950 /* Override any gcc2 internal prototype to avoid an error. */
9955 /* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9958 /* The GNU C library defines this for functions which it implements
9959 to always fail with ENOSYS. Some functions are actually named
9960 something starting with __ and the normal name is an alias. */
9961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9964 char (*f) () = $ac_func;
9973 return f != $ac_func;
9978 rm -f conftest.
$ac_objext conftest
$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>conftest.er1
9982 grep -v '^ *+' conftest.er1
>conftest.err
9984 cat conftest.err
>&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try
='test -z "$ac_c_werror_flag"
9988 || test ! -s conftest.err'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try
='test -s conftest$ac_exeext'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10000 eval "$as_ac_var=yes"
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.
$ac_ext >&5
10005 eval "$as_ac_var=no"
10007 rm -f conftest.err conftest.
$ac_objext \
10008 conftest
$ac_exeext conftest.
$ac_ext
10010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10012 if test `eval echo '${'$as_ac_var'}'` = yes; then
10013 cat >>confdefs.h
<<_ACEOF
10014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10021 if test x
$ac_cv_func_mbstowcs = xyes
; then
10022 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10023 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10024 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 if test "$cross_compiling" = yes; then
10028 gcc_cv_func_mbstowcs_works
=yes
10030 cat >conftest.
$ac_ext <<_ACEOF
10033 cat confdefs.h
>>conftest.
$ac_ext
10034 cat >>conftest.
$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10036 #include <stdlib.h>
10039 mbstowcs(0, "", 0);
10043 rm -f conftest
$ac_exeext
10044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 gcc_cv_func_mbstowcs_works
=yes
10056 echo "$as_me: program exited with status $ac_status" >&5
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.
$ac_ext >&5
10060 ( exit $ac_status )
10061 gcc_cv_func_mbstowcs_works
=no
10063 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10066 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10067 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10068 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10070 cat >>confdefs.h
<<\_ACEOF
10071 #define HAVE_WORKING_MBSTOWCS 1
10077 echo "$as_me:$LINENO: checking for ssize_t" >&5
10078 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10079 if test "${ac_cv_type_ssize_t+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 cat >conftest.
$ac_ext <<_ACEOF
10085 cat confdefs.h
>>conftest.
$ac_ext
10086 cat >>conftest.
$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 $ac_includes_default
10094 if (sizeof (ssize_t))
10100 rm -f conftest.
$ac_objext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10102 (eval $ac_compile) 2>conftest.er1
10104 grep -v '^ *+' conftest.er1
>conftest.err
10106 cat conftest.err
>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try
='test -z "$ac_c_werror_flag"
10110 || test ! -s conftest.err'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; } &&
10116 { ac_try
='test -s conftest.$ac_objext'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_cv_type_ssize_t
=yes
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.
$ac_ext >&5
10127 ac_cv_type_ssize_t
=no
10129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10131 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10132 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10133 if test $ac_cv_type_ssize_t = yes; then
10137 cat >>confdefs.h
<<_ACEOF
10138 #define ssize_t int
10144 # Try to determine the array type of the second argument of getgroups
10145 # for the target system (int or gid_t).
10146 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10147 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10148 if test "${ac_cv_type_uid_t+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 cat >conftest.
$ac_ext <<_ACEOF
10154 cat confdefs.h
>>conftest.
$ac_ext
10155 cat >>conftest.
$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 #include <sys/types.h>
10160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10161 $EGREP "uid_t" >/dev
/null
2>&1; then
10162 ac_cv_type_uid_t
=yes
10164 ac_cv_type_uid_t
=no
10169 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10170 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10171 if test $ac_cv_type_uid_t = no
; then
10173 cat >>confdefs.h
<<\_ACEOF
10178 cat >>confdefs.h
<<\_ACEOF
10184 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10185 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10186 if test "${ac_cv_type_getgroups+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 if test "$cross_compiling" = yes; then
10190 ac_cv_type_getgroups
=cross
10192 cat >conftest.
$ac_ext <<_ACEOF
10195 cat confdefs.h
>>conftest.
$ac_ext
10196 cat >>conftest.
$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 /* Thanks to Mike Rendell for this test. */
10199 #include <sys/types.h>
10202 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10207 gid_t gidset[NGID];
10209 union { gid_t gval; long lval; } val;
10212 for (i = 0; i < NGID; i++)
10213 gidset[i] = val.gval;
10214 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10216 /* Exit non-zero if getgroups seems to require an array of ints. This
10217 happens when gid_t is short but getgroups modifies an array of ints. */
10218 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10221 rm -f conftest
$ac_exeext
10222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10223 (eval $ac_link) 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_cv_type_getgroups
=gid_t
10234 echo "$as_me: program exited with status $ac_status" >&5
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.
$ac_ext >&5
10238 ( exit $ac_status )
10239 ac_cv_type_getgroups
=int
10241 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10243 if test $ac_cv_type_getgroups = cross
; then
10244 cat >conftest.
$ac_ext <<_ACEOF
10247 cat confdefs.h
>>conftest.
$ac_ext
10248 cat >>conftest.
$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 #include <unistd.h>
10253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10254 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
10255 ac_cv_type_getgroups
=gid_t
10257 ac_cv_type_getgroups
=int
10263 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10264 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10266 cat >>confdefs.h
<<_ACEOF
10267 #define GETGROUPS_T $ac_cv_type_getgroups
10271 if test "${target}" = "${build}"; then
10272 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
10274 case "${target}" in
10275 # This condition may need some tweaking. It should include all
10276 # targets where the array type of the second argument of getgroups
10277 # is int and the type of gid_t is not equivalent to int.
10278 *-*-sunos* |
*-*-ultrix*)
10279 TARGET_GETGROUPS_T
=int
10282 TARGET_GETGROUPS_T
=gid_t
10289 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10290 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10291 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 cat >conftest.
$ac_ext <<_ACEOF
10297 cat confdefs.h
>>conftest.
$ac_ext
10298 cat >>conftest.
$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10300 #include <sys/mman.h>
10302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10303 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10305 grep -v '^ *+' conftest.er1
>conftest.err
10307 cat conftest.err
>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } >/dev
/null
; then
10310 if test -s conftest.err
; then
10311 ac_cpp_err
=$ac_c_preproc_warn_flag
10312 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10319 if test -z "$ac_cpp_err"; then
10320 ac_cv_header_sys_mman_h
=yes
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.
$ac_ext >&5
10325 ac_cv_header_sys_mman_h
=no
10327 rm -f conftest.err conftest.
$ac_ext
10329 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10330 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10331 if test $ac_cv_header_sys_mman_h = yes; then
10332 gcc_header_sys_mman_h
=yes
10334 gcc_header_sys_mman_h
=no
10337 echo "$as_me:$LINENO: checking for mmap" >&5
10338 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10339 if test "${ac_cv_func_mmap+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 cat >conftest.
$ac_ext <<_ACEOF
10345 cat confdefs.h
>>conftest.
$ac_ext
10346 cat >>conftest.
$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10350 #define mmap innocuous_mmap
10352 /* System header to define __stub macros and hopefully few prototypes,
10353 which can conflict with char mmap (); below.
10354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10355 <limits.h> exists even on freestanding compilers. */
10358 # include <limits.h>
10360 # include <assert.h>
10365 /* Override any gcc2 internal prototype to avoid an error. */
10370 /* We use char because int might match the return type of a gcc2
10371 builtin and then its argument prototype would still apply. */
10373 /* The GNU C library defines this for functions which it implements
10374 to always fail with ENOSYS. Some functions are actually named
10375 something starting with __ and the normal name is an alias. */
10376 #if defined (__stub_mmap) || defined (__stub___mmap)
10379 char (*f) () = mmap;
10393 rm -f conftest.
$ac_objext conftest
$ac_exeext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395 (eval $ac_link) 2>conftest.er1
10397 grep -v '^ *+' conftest.er1
>conftest.err
10399 cat conftest.err
>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try
='test -z "$ac_c_werror_flag"
10403 || test ! -s conftest.err'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; } &&
10409 { ac_try
='test -s conftest$ac_exeext'
10410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 ac_cv_func_mmap
=yes
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.
$ac_ext >&5
10422 rm -f conftest.err conftest.
$ac_objext \
10423 conftest
$ac_exeext conftest.
$ac_ext
10425 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10426 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10427 if test $ac_cv_func_mmap = yes; then
10433 if test "$gcc_header_sys_mman_h" != yes \
10434 ||
test "$gcc_func_mmap" != yes; then
10435 gcc_cv_func_mmap_file
=no
10436 gcc_cv_func_mmap_dev_zero
=no
10437 gcc_cv_func_mmap_anon
=no
10439 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10440 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10441 if test "${gcc_cv_func_mmap_file+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 # Add a system to this blacklist if
10445 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10446 # memory area containing the same data that you'd get if you applied
10447 # read() to the same fd. The only system known to have a problem here
10448 # is VMS, where text files have record structure.
10451 gcc_cv_func_mmap_file
=no
;;
10453 gcc_cv_func_mmap_file
=yes;;
10456 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10457 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10458 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10459 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10460 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 # Add a system to this blacklist if it has mmap() but /dev/zero
10464 # does not exist, or if mmapping /dev/zero does not give anonymous
10465 # zeroed pages with both the following properties:
10466 # 1. If you map N consecutive pages in with one call, and then
10467 # unmap any subset of those pages, the pages that were not
10468 # explicitly unmapped remain accessible.
10469 # 2. If you map two adjacent blocks of memory and then unmap them
10470 # both at once, they must both go away.
10471 # Systems known to be in this category are Windows (all variants),
10474 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10475 gcc_cv_func_mmap_dev_zero
=no
;;
10477 gcc_cv_func_mmap_dev_zero
=yes;;
10480 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10481 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10483 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10484 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10485 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10486 if test "${gcc_cv_decl_map_anon+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 cat >conftest.
$ac_ext <<_ACEOF
10492 cat confdefs.h
>>conftest.
$ac_ext
10493 cat >>conftest.
$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 #include <sys/types.h>
10496 #include <sys/mman.h>
10497 #include <unistd.h>
10499 #ifndef MAP_ANONYMOUS
10500 #define MAP_ANONYMOUS MAP_ANON
10506 int n = MAP_ANONYMOUS;
10511 rm -f conftest.
$ac_objext
10512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10513 (eval $ac_compile) 2>conftest.er1
10515 grep -v '^ *+' conftest.er1
>conftest.err
10517 cat conftest.err
>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } &&
10520 { ac_try
='test -z "$ac_c_werror_flag"
10521 || test ! -s conftest.err'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; } &&
10527 { ac_try
='test -s conftest.$ac_objext'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 gcc_cv_decl_map_anon
=yes
10535 echo "$as_me: failed program was:" >&5
10536 sed 's/^/| /' conftest.
$ac_ext >&5
10538 gcc_cv_decl_map_anon
=no
10540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10542 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10543 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10545 if test $gcc_cv_decl_map_anon = no
; then
10546 gcc_cv_func_mmap_anon
=no
10548 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10549 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10550 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10554 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10555 # doesn't give anonymous zeroed pages with the same properties listed
10556 # above for use of /dev/zero.
10557 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10559 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10560 gcc_cv_func_mmap_anon
=no
;;
10562 gcc_cv_func_mmap_anon
=yes;;
10565 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10566 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10570 if test $gcc_cv_func_mmap_file = yes; then
10572 cat >>confdefs.h
<<\_ACEOF
10573 #define HAVE_MMAP_FILE 1
10577 if test $gcc_cv_func_mmap_dev_zero = yes; then
10579 cat >>confdefs.h
<<\_ACEOF
10580 #define HAVE_MMAP_DEV_ZERO 1
10584 if test $gcc_cv_func_mmap_anon = yes; then
10586 cat >>confdefs.h
<<\_ACEOF
10587 #define HAVE_MMAP_ANON 1
10595 # Under VMS, vfork works very differently than on Unix. The standard test
10596 # won't work, and it isn't easily adaptable. It makes more sense to
10598 ac_cv_func_vfork_works
=yes
10601 echo "$as_me:$LINENO: checking for pid_t" >&5
10602 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10603 if test "${ac_cv_type_pid_t+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 cat >conftest.
$ac_ext <<_ACEOF
10609 cat confdefs.h
>>conftest.
$ac_ext
10610 cat >>conftest.
$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10612 $ac_includes_default
10618 if (sizeof (pid_t))
10624 rm -f conftest.
$ac_objext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10626 (eval $ac_compile) 2>conftest.er1
10628 grep -v '^ *+' conftest.er1
>conftest.err
10630 cat conftest.err
>&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } &&
10633 { ac_try
='test -z "$ac_c_werror_flag"
10634 || test ! -s conftest.err'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; } &&
10640 { ac_try
='test -s conftest.$ac_objext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_cv_type_pid_t
=yes
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.
$ac_ext >&5
10651 ac_cv_type_pid_t
=no
10653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10655 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10656 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10657 if test $ac_cv_type_pid_t = yes; then
10661 cat >>confdefs.h
<<_ACEOF
10669 for ac_header
in unistd.h vfork.h
10671 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10672 echo "$as_me:$LINENO: checking for $ac_header" >&5
10673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 cat >conftest.
$ac_ext <<_ACEOF
10680 cat confdefs.h
>>conftest.
$ac_ext
10681 cat >>conftest.
$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 #include <$ac_header>
10685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10686 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10688 grep -v '^ *+' conftest.er1
>conftest.err
10690 cat conftest.err
>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } >/dev
/null
; then
10693 if test -s conftest.err
; then
10694 ac_cpp_err
=$ac_c_preproc_warn_flag
10695 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10702 if test -z "$ac_cpp_err"; then
10703 eval "$as_ac_Header=yes"
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.
$ac_ext >&5
10708 eval "$as_ac_Header=no"
10710 rm -f conftest.err conftest.
$ac_ext
10712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10715 cat >>confdefs.h
<<_ACEOF
10716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10724 for ac_func
in fork vfork
10726 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10727 echo "$as_me:$LINENO: checking for $ac_func" >&5
10728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10729 if eval "test \"\${$as_ac_var+set}\" = set"; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 cat >conftest.
$ac_ext <<_ACEOF
10735 cat confdefs.h
>>conftest.
$ac_ext
10736 cat >>conftest.
$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10740 #define $ac_func innocuous_$ac_func
10742 /* System header to define __stub macros and hopefully few prototypes,
10743 which can conflict with char $ac_func (); below.
10744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10745 <limits.h> exists even on freestanding compilers. */
10748 # include <limits.h>
10750 # include <assert.h>
10755 /* Override any gcc2 internal prototype to avoid an error. */
10760 /* We use char because int might match the return type of a gcc2
10761 builtin and then its argument prototype would still apply. */
10763 /* The GNU C library defines this for functions which it implements
10764 to always fail with ENOSYS. Some functions are actually named
10765 something starting with __ and the normal name is an alias. */
10766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10769 char (*f) () = $ac_func;
10778 return f != $ac_func;
10783 rm -f conftest.
$ac_objext conftest
$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>conftest.er1
10787 grep -v '^ *+' conftest.er1
>conftest.err
10789 cat conftest.err
>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try
='test -z "$ac_c_werror_flag"
10793 || test ! -s conftest.err'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try
='test -s conftest$ac_exeext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 eval "$as_ac_var=yes"
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.
$ac_ext >&5
10810 eval "$as_ac_var=no"
10812 rm -f conftest.err conftest.
$ac_objext \
10813 conftest
$ac_exeext conftest.
$ac_ext
10815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10817 if test `eval echo '${'$as_ac_var'}'` = yes; then
10818 cat >>confdefs.h
<<_ACEOF
10819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10825 if test "x$ac_cv_func_fork" = xyes
; then
10826 echo "$as_me:$LINENO: checking for working fork" >&5
10827 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10828 if test "${ac_cv_func_fork_works+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 if test "$cross_compiling" = yes; then
10832 ac_cv_func_fork_works
=cross
10834 cat >conftest.
$ac_ext <<_ACEOF
10835 /* By Ruediger Kuhlmann. */
10836 #include <sys/types.h>
10838 # include <unistd.h>
10840 /* Some systems only have a dummy stub for fork() */
10848 rm -f conftest
$ac_exeext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850 (eval $ac_link) 2>&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_func_fork_works
=yes
10861 echo "$as_me: program exited with status $ac_status" >&5
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.
$ac_ext >&5
10865 ( exit $ac_status )
10866 ac_cv_func_fork_works
=no
10868 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10871 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10872 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10875 ac_cv_func_fork_works
=$ac_cv_func_fork
10877 if test "x$ac_cv_func_fork_works" = xcross
; then
10879 *-*-amigaos* |
*-*-msdosdjgpp*)
10880 # Override, as these systems have only a dummy fork() stub
10881 ac_cv_func_fork_works
=no
10884 ac_cv_func_fork_works
=yes
10887 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10888 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10890 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10891 if test "x$ac_cv_func_vfork" = xyes
; then
10892 echo "$as_me:$LINENO: checking for working vfork" >&5
10893 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10894 if test "${ac_cv_func_vfork_works+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 if test "$cross_compiling" = yes; then
10898 ac_cv_func_vfork_works
=cross
10900 cat >conftest.
$ac_ext <<_ACEOF
10903 cat confdefs.h
>>conftest.
$ac_ext
10904 cat >>conftest.
$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 /* Thanks to Paul Eggert for this test. */
10908 #include <stdlib.h>
10909 #include <sys/types.h>
10910 #include <sys/stat.h>
10911 #include <sys/wait.h>
10913 # include <unistd.h>
10916 # include <vfork.h>
10918 /* On some sparc systems, changes by the child to local and incoming
10919 argument registers are propagated back to the parent. The compiler
10920 is told about this with #include <vfork.h>, but some compilers
10921 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10922 static variable whose address is put into a register that is
10923 clobbered by the vfork. */
10926 sparc_address_test (int arg)
10928 sparc_address_test (arg) int arg;
10931 static pid_t child;
10949 pid_t parent = getpid ();
10952 sparc_address_test (0);
10957 /* Here is another test for sparc vfork register problems. This
10958 test uses lots of local variables, at least as many local
10959 variables as main has allocated so far including compiler
10960 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10961 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10962 reuse the register of parent for one of the local variables,
10963 since it will think that parent can't possibly be used any more
10964 in this routine. Assigning to the local variable will thus
10965 munge parent in the parent process. */
10967 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10968 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10969 /* Convince the compiler that p..p7 are live; otherwise, it might
10970 use the same hardware register for all 8 local variables. */
10971 if (p != p1 || p != p2 || p != p3 || p != p4
10972 || p != p5 || p != p6 || p != p7)
10975 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10976 from child file descriptors. If the child closes a descriptor
10977 before it execs or exits, this munges the parent's descriptor
10978 as well. Test for this by closing stdout in the child. */
10979 _exit(close(fileno(stdout)) != 0);
10984 while (wait(&status) != child)
10987 /* Was there some problem with vforking? */
10990 /* Did the child fail? (This shouldn't happen.) */
10993 /* Did the vfork/compiler bug occur? */
10994 || parent != getpid()
10996 /* Did the file descriptor bug occur? */
10997 || fstat(fileno(stdout), &st) != 0
11002 rm -f conftest
$ac_exeext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004 (eval $ac_link) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 ac_cv_func_vfork_works
=yes
11015 echo "$as_me: program exited with status $ac_status" >&5
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.
$ac_ext >&5
11019 ( exit $ac_status )
11020 ac_cv_func_vfork_works
=no
11022 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11025 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11026 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11029 if test "x$ac_cv_func_fork_works" = xcross
; then
11030 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11031 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11032 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11035 if test "x$ac_cv_func_vfork_works" = xyes
; then
11037 cat >>confdefs.h
<<\_ACEOF
11038 #define HAVE_WORKING_VFORK 1
11043 cat >>confdefs.h
<<\_ACEOF
11048 if test "x$ac_cv_func_fork_works" = xyes
; then
11050 cat >>confdefs.h
<<\_ACEOF
11051 #define HAVE_WORKING_FORK 1
11058 if test "X$prefix" = "XNONE"; then
11059 acl_final_prefix
="$ac_default_prefix"
11061 acl_final_prefix
="$prefix"
11063 if test "X$exec_prefix" = "XNONE"; then
11064 acl_final_exec_prefix
='${prefix}'
11066 acl_final_exec_prefix
="$exec_prefix"
11068 acl_save_prefix
="$prefix"
11069 prefix
="$acl_final_prefix"
11070 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11071 prefix
="$acl_save_prefix"
11074 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11075 if test "${with_gnu_ld+set}" = set; then
11076 withval
="$with_gnu_ld"
11077 test "$withval" = no || with_gnu_ld
=yes
11081 # Prepare PATH_SEPARATOR.
11082 # The user is always right.
11083 if test "${PATH_SEPARATOR+set}" != set; then
11084 echo "#! /bin/sh" >conf$$.sh
11085 echo "exit 0" >>conf$$.sh
11087 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11095 if test "$GCC" = yes; then
11096 # Check if gcc -print-prog-name=ld gives a path.
11097 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11098 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11101 # gcc leaves a trailing carriage return which upsets mingw
11102 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11104 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11107 # Accept absolute paths.
11108 [\\/]* |
[A-Za-z
]:[\\/]*)
11109 re_direlt
='/[^/][^/]*/\.\./'
11110 # Canonicalize the path of ld
11111 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11112 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11113 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11115 test -z "$LD" && LD
="$ac_prog"
11118 # If it fails, then pretend we aren't using GCC.
11122 # If it is relative, then search for the first ld in PATH.
11123 with_gnu_ld
=unknown
11126 elif test "$with_gnu_ld" = yes; then
11127 echo "$as_me:$LINENO: checking for GNU ld" >&5
11128 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11130 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11131 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11133 if test "${acl_cv_path_LD+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 if test -z "$LD"; then
11137 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11138 for ac_dir
in $PATH; do
11139 test -z "$ac_dir" && ac_dir
=.
11140 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11141 acl_cv_path_LD
="$ac_dir/$ac_prog"
11142 # Check to see if the program is GNU ld. I'd rather use --version,
11143 # but apparently some GNU ld's only accept -v.
11144 # Break only if it was the GNU/non-GNU ld that we prefer.
11145 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11146 test "$with_gnu_ld" != no
&& break
11148 test "$with_gnu_ld" != yes && break
11154 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11158 LD
="$acl_cv_path_LD"
11159 if test -n "$LD"; then
11160 echo "$as_me:$LINENO: result: $LD" >&5
11161 echo "${ECHO_T}$LD" >&6
11163 echo "$as_me:$LINENO: result: no" >&5
11164 echo "${ECHO_T}no" >&6
11166 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11167 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11168 { (exit 1); exit 1; }; }
11169 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11170 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11171 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11175 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11176 acl_cv_prog_gnu_ld
=yes
11178 acl_cv_prog_gnu_ld
=no
11181 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11182 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11183 with_gnu_ld
=$acl_cv_prog_gnu_ld
11187 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11188 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11189 if test "${acl_cv_rpath+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11194 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11196 rm -f .
/conftest.sh
11200 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11201 echo "${ECHO_T}$acl_cv_rpath" >&6
11203 libext
="$acl_cv_libext"
11204 shlibext
="$acl_cv_shlibext"
11205 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11206 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11207 hardcode_direct
="$acl_cv_hardcode_direct"
11208 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11209 # Check whether --enable-rpath or --disable-rpath was given.
11210 if test "${enable_rpath+set}" = set; then
11211 enableval
="$enable_rpath"
11225 acl_save_prefix
="$prefix"
11226 prefix
="$acl_final_prefix"
11227 acl_save_exec_prefix
="$exec_prefix"
11228 exec_prefix
="$acl_final_exec_prefix"
11230 eval additional_includedir
=\"$includedir\"
11231 eval additional_libdir
=\"$libdir\"
11233 exec_prefix
="$acl_save_exec_prefix"
11234 prefix
="$acl_save_prefix"
11237 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11238 if test "${with_libiconv_prefix+set}" = set; then
11239 withval
="$with_libiconv_prefix"
11241 if test "X$withval" = "Xno"; then
11244 if test "X$withval" = "X"; then
11246 acl_save_prefix
="$prefix"
11247 prefix
="$acl_final_prefix"
11248 acl_save_exec_prefix
="$exec_prefix"
11249 exec_prefix
="$acl_final_exec_prefix"
11251 eval additional_includedir
=\"$includedir\"
11252 eval additional_libdir
=\"$libdir\"
11254 exec_prefix
="$acl_save_exec_prefix"
11255 prefix
="$acl_save_prefix"
11258 additional_includedir
="$withval/include"
11259 additional_libdir
="$withval/lib"
11269 names_already_handled
=
11270 names_next_round
='iconv '
11271 while test -n "$names_next_round"; do
11272 names_this_round
="$names_next_round"
11274 for name
in $names_this_round; do
11276 for n
in $names_already_handled; do
11277 if test "$n" = "$name"; then
11278 already_handled
=yes
11282 if test -z "$already_handled"; then
11283 names_already_handled
="$names_already_handled $name"
11284 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11285 eval value
=\"\
$HAVE_LIB$uppername\"
11286 if test -n "$value"; then
11287 if test "$value" = yes; then
11288 eval value
=\"\
$LIB$uppername\"
11289 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11290 eval value
=\"\
$LTLIB$uppername\"
11291 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11300 if test $use_additional = yes; then
11301 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11302 found_dir
="$additional_libdir"
11303 found_so
="$additional_libdir/lib$name.$shlibext"
11304 if test -f "$additional_libdir/lib$name.la"; then
11305 found_la
="$additional_libdir/lib$name.la"
11308 if test -f "$additional_libdir/lib$name.$libext"; then
11309 found_dir
="$additional_libdir"
11310 found_a
="$additional_libdir/lib$name.$libext"
11311 if test -f "$additional_libdir/lib$name.la"; then
11312 found_la
="$additional_libdir/lib$name.la"
11317 if test "X$found_dir" = "X"; then
11318 for x
in $LDFLAGS $LTLIBICONV; do
11320 acl_save_prefix
="$prefix"
11321 prefix
="$acl_final_prefix"
11322 acl_save_exec_prefix
="$exec_prefix"
11323 exec_prefix
="$acl_final_exec_prefix"
11325 exec_prefix
="$acl_save_exec_prefix"
11326 prefix
="$acl_save_prefix"
11330 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11331 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11333 found_so
="$dir/lib$name.$shlibext"
11334 if test -f "$dir/lib$name.la"; then
11335 found_la
="$dir/lib$name.la"
11338 if test -f "$dir/lib$name.$libext"; then
11340 found_a
="$dir/lib$name.$libext"
11341 if test -f "$dir/lib$name.la"; then
11342 found_la
="$dir/lib$name.la"
11348 if test "X$found_dir" != "X"; then
11353 if test "X$found_dir" != "X"; then
11354 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11355 if test "X$found_so" != "X"; then
11356 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11357 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11360 for x
in $ltrpathdirs; do
11361 if test "X$x" = "X$found_dir"; then
11366 if test -z "$haveit"; then
11367 ltrpathdirs
="$ltrpathdirs $found_dir"
11369 if test "$hardcode_direct" = yes; then
11370 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11372 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11373 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11375 for x
in $rpathdirs; do
11376 if test "X$x" = "X$found_dir"; then
11381 if test -z "$haveit"; then
11382 rpathdirs
="$rpathdirs $found_dir"
11386 for x
in $LDFLAGS $LIBICONV; do
11388 acl_save_prefix
="$prefix"
11389 prefix
="$acl_final_prefix"
11390 acl_save_exec_prefix
="$exec_prefix"
11391 exec_prefix
="$acl_final_exec_prefix"
11393 exec_prefix
="$acl_save_exec_prefix"
11394 prefix
="$acl_save_prefix"
11396 if test "X$x" = "X-L$found_dir"; then
11401 if test -z "$haveit"; then
11402 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11404 if test "$hardcode_minus_L" != no
; then
11405 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11407 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11413 if test "X$found_a" != "X"; then
11414 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11416 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11419 additional_includedir
=
11420 case "$found_dir" in
11422 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11423 additional_includedir
="$basedir/include"
11426 if test "X$additional_includedir" != "X"; then
11427 if test "X$additional_includedir" != "X/usr/include"; then
11429 if test "X$additional_includedir" = "X/usr/local/include"; then
11430 if test -n "$GCC"; then
11432 linux
*) haveit
=yes;;
11436 if test -z "$haveit"; then
11437 for x
in $CPPFLAGS $INCICONV; do
11439 acl_save_prefix
="$prefix"
11440 prefix
="$acl_final_prefix"
11441 acl_save_exec_prefix
="$exec_prefix"
11442 exec_prefix
="$acl_final_exec_prefix"
11444 exec_prefix
="$acl_save_exec_prefix"
11445 prefix
="$acl_save_prefix"
11447 if test "X$x" = "X-I$additional_includedir"; then
11452 if test -z "$haveit"; then
11453 if test -d "$additional_includedir"; then
11454 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11460 if test -n "$found_la"; then
11461 save_libdir
="$libdir"
11462 case "$found_la" in
11463 */* |
*\\*) .
"$found_la" ;;
11464 *) .
"./$found_la" ;;
11466 libdir
="$save_libdir"
11467 for dep
in $dependency_libs; do
11470 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11471 if test "X$additional_libdir" != "X/usr/lib"; then
11473 if test "X$additional_libdir" = "X/usr/local/lib"; then
11474 if test -n "$GCC"; then
11476 linux
*) haveit
=yes;;
11480 if test -z "$haveit"; then
11482 for x
in $LDFLAGS $LIBICONV; do
11484 acl_save_prefix
="$prefix"
11485 prefix
="$acl_final_prefix"
11486 acl_save_exec_prefix
="$exec_prefix"
11487 exec_prefix
="$acl_final_exec_prefix"
11489 exec_prefix
="$acl_save_exec_prefix"
11490 prefix
="$acl_save_prefix"
11492 if test "X$x" = "X-L$additional_libdir"; then
11497 if test -z "$haveit"; then
11498 if test -d "$additional_libdir"; then
11499 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11503 for x
in $LDFLAGS $LTLIBICONV; do
11505 acl_save_prefix
="$prefix"
11506 prefix
="$acl_final_prefix"
11507 acl_save_exec_prefix
="$exec_prefix"
11508 exec_prefix
="$acl_final_exec_prefix"
11510 exec_prefix
="$acl_save_exec_prefix"
11511 prefix
="$acl_save_prefix"
11513 if test "X$x" = "X-L$additional_libdir"; then
11518 if test -z "$haveit"; then
11519 if test -d "$additional_libdir"; then
11520 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11527 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11528 if test "$enable_rpath" != no
; then
11530 for x
in $rpathdirs; do
11531 if test "X$x" = "X$dir"; then
11536 if test -z "$haveit"; then
11537 rpathdirs
="$rpathdirs $dir"
11540 for x
in $ltrpathdirs; do
11541 if test "X$x" = "X$dir"; then
11546 if test -z "$haveit"; then
11547 ltrpathdirs
="$ltrpathdirs $dir"
11552 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11555 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11558 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11559 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11565 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11566 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11572 if test "X$rpathdirs" != "X"; then
11573 if test -n "$hardcode_libdir_separator"; then
11575 for found_dir
in $rpathdirs; do
11576 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11578 acl_save_libdir
="$libdir"
11580 eval flag
=\"$hardcode_libdir_flag_spec\"
11581 libdir
="$acl_save_libdir"
11582 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11584 for found_dir
in $rpathdirs; do
11585 acl_save_libdir
="$libdir"
11586 libdir
="$found_dir"
11587 eval flag
=\"$hardcode_libdir_flag_spec\"
11588 libdir
="$acl_save_libdir"
11589 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11593 if test "X$ltrpathdirs" != "X"; then
11594 for found_dir
in $ltrpathdirs; do
11595 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11605 am_save_CPPFLAGS
="$CPPFLAGS"
11607 for element
in $INCICONV; do
11609 for x
in $CPPFLAGS; do
11611 acl_save_prefix
="$prefix"
11612 prefix
="$acl_final_prefix"
11613 acl_save_exec_prefix
="$exec_prefix"
11614 exec_prefix
="$acl_final_exec_prefix"
11616 exec_prefix
="$acl_save_exec_prefix"
11617 prefix
="$acl_save_prefix"
11619 if test "X$x" = "X$element"; then
11624 if test -z "$haveit"; then
11625 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11630 echo "$as_me:$LINENO: checking for iconv" >&5
11631 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11632 if test "${am_cv_func_iconv+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 am_cv_func_iconv
="no, consider installing GNU libiconv"
11638 cat >conftest.
$ac_ext <<_ACEOF
11641 cat confdefs.h
>>conftest.
$ac_ext
11642 cat >>conftest.
$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 #include <stdlib.h>
11649 iconv_t cd = iconv_open("","");
11650 iconv(cd,NULL,NULL,NULL,NULL);
11656 rm -f conftest.
$ac_objext conftest
$ac_exeext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>conftest.er1
11660 grep -v '^ *+' conftest.er1
>conftest.err
11662 cat conftest.err
>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try
='test -z "$ac_c_werror_flag"
11666 || test ! -s conftest.err'
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); }; } &&
11672 { ac_try
='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 am_cv_func_iconv
=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.
$ac_ext >&5
11684 rm -f conftest.err conftest.
$ac_objext \
11685 conftest
$ac_exeext conftest.
$ac_ext
11686 if test "$am_cv_func_iconv" != yes; then
11687 am_save_LIBS
="$LIBS"
11688 LIBS
="$LIBS $LIBICONV"
11689 cat >conftest.
$ac_ext <<_ACEOF
11692 cat confdefs.h
>>conftest.
$ac_ext
11693 cat >>conftest.
$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 #include <stdlib.h>
11700 iconv_t cd = iconv_open("","");
11701 iconv(cd,NULL,NULL,NULL,NULL);
11707 rm -f conftest.
$ac_objext conftest
$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11711 grep -v '^ *+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try
='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try
='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 am_cv_lib_iconv
=yes
11730 am_cv_func_iconv
=yes
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.
$ac_ext >&5
11736 rm -f conftest.err conftest.
$ac_objext \
11737 conftest
$ac_exeext conftest.
$ac_ext
11738 LIBS
="$am_save_LIBS"
11742 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11743 echo "${ECHO_T}$am_cv_func_iconv" >&6
11744 if test "$am_cv_func_iconv" = yes; then
11746 cat >>confdefs.h
<<\_ACEOF
11747 #define HAVE_ICONV 1
11751 if test "$am_cv_lib_iconv" = yes; then
11752 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11753 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11754 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11755 echo "${ECHO_T}$LIBICONV" >&6
11757 CPPFLAGS
="$am_save_CPPFLAGS"
11764 if test "$am_cv_func_iconv" = yes; then
11765 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11766 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11767 if test "${am_cv_proto_iconv+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 cat >conftest.
$ac_ext <<_ACEOF
11774 cat confdefs.h
>>conftest.
$ac_ext
11775 cat >>conftest.
$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11778 #include <stdlib.h>
11784 #if defined(__STDC__) || defined(__cplusplus)
11785 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11798 rm -f conftest.
$ac_objext
11799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11800 (eval $ac_compile) 2>conftest.er1
11802 grep -v '^ *+' conftest.er1
>conftest.err
11804 cat conftest.err
>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try
='test -z "$ac_c_werror_flag"
11808 || test ! -s conftest.err'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try
='test -s conftest.$ac_objext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 am_cv_proto_iconv_arg1
=""
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.
$ac_ext >&5
11825 am_cv_proto_iconv_arg1
="const"
11827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11828 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);"
11831 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11832 echo "$as_me:$LINENO: result: ${ac_t:-
11833 }$am_cv_proto_iconv" >&5
11834 echo "${ECHO_T}${ac_t:-
11835 }$am_cv_proto_iconv" >&6
11837 cat >>confdefs.h
<<_ACEOF
11838 #define ICONV_CONST $am_cv_proto_iconv_arg1
11843 # Until we have in-tree GNU iconv:
11848 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11849 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11850 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 cat >conftest.
$ac_ext <<_ACEOF
11856 cat confdefs.h
>>conftest.
$ac_ext
11857 cat >>conftest.
$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 #include <locale.h>
11868 rm -f conftest.
$ac_objext conftest
$ac_exeext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11870 (eval $ac_link) 2>conftest.er1
11872 grep -v '^ *+' conftest.er1
>conftest.err
11874 cat conftest.err
>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try
='test -z "$ac_c_werror_flag"
11878 || test ! -s conftest.err'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try
='test -s conftest$ac_exeext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 am_cv_val_LC_MESSAGES
=yes
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.
$ac_ext >&5
11895 am_cv_val_LC_MESSAGES
=no
11897 rm -f conftest.err conftest.
$ac_objext \
11898 conftest
$ac_exeext conftest.
$ac_ext
11900 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11901 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11902 if test $am_cv_val_LC_MESSAGES = yes; then
11904 cat >>confdefs.h
<<\_ACEOF
11905 #define HAVE_LC_MESSAGES 1
11912 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11913 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11914 if test "${am_cv_langinfo_codeset+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 cat >conftest.
$ac_ext <<_ACEOF
11920 cat confdefs.h
>>conftest.
$ac_ext
11921 cat >>conftest.
$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 #include <langinfo.h>
11927 char* cs = nl_langinfo(CODESET);
11932 rm -f conftest.
$ac_objext conftest
$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934 (eval $ac_link) 2>conftest.er1
11936 grep -v '^ *+' conftest.er1
>conftest.err
11938 cat conftest.err
>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try
='test -z "$ac_c_werror_flag"
11942 || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try
='test -s conftest$ac_exeext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 am_cv_langinfo_codeset
=yes
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.
$ac_ext >&5
11959 am_cv_langinfo_codeset
=no
11961 rm -f conftest.err conftest.
$ac_objext \
11962 conftest
$ac_exeext conftest.
$ac_ext
11965 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11966 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11967 if test $am_cv_langinfo_codeset = yes; then
11969 cat >>confdefs.h
<<\_ACEOF
11970 #define HAVE_LANGINFO_CODESET 1
11976 # We will need to find libiberty.h and ansidecl.h
11977 saved_CFLAGS
="$CFLAGS"
11978 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12018 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
12019 strsignal strstr strverscmp \
12020 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12021 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
12023 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12024 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12025 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12026 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 cat >conftest.
$ac_ext <<_ACEOF
12032 cat confdefs.h
>>conftest.
$ac_ext
12033 cat >>conftest.
$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12036 #define $ac_tr_decl 1
12038 #include "ansidecl.h"
12039 #include "system.h"
12045 char *(*pfn) = (char *(*)) $ac_func ;
12051 rm -f conftest.
$ac_objext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12055 grep -v '^ *+' conftest.er1
>conftest.err
12057 cat conftest.err
>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try
='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try
='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 eval "gcc_cv_have_decl_$ac_func=yes"
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.
$ac_ext >&5
12078 eval "gcc_cv_have_decl_$ac_func=no"
12080 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12083 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12084 echo "$as_me:$LINENO: result: yes" >&5
12085 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12086 #define $ac_tr_decl 1
12090 echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12092 #define $ac_tr_decl 0
12103 for ac_func
in getrlimit setrlimit getrusage
12105 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12106 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12107 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12108 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 cat >conftest.
$ac_ext <<_ACEOF
12114 cat confdefs.h
>>conftest.
$ac_ext
12115 cat >>conftest.
$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12118 #define $ac_tr_decl 1
12120 #include "ansidecl.h"
12121 #include "system.h"
12122 #ifdef HAVE_SYS_RESOURCE_H
12123 #include <sys/resource.h>
12131 char *(*pfn) = (char *(*)) $ac_func ;
12137 rm -f conftest.
$ac_objext
12138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12139 (eval $ac_compile) 2>conftest.er1
12141 grep -v '^ *+' conftest.er1
>conftest.err
12143 cat conftest.err
>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
12146 { ac_try
='test -z "$ac_c_werror_flag"
12147 || test ! -s conftest.err'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; } &&
12153 { ac_try
='test -s conftest.$ac_objext'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
12159 eval "gcc_cv_have_decl_$ac_func=yes"
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.
$ac_ext >&5
12164 eval "gcc_cv_have_decl_$ac_func=no"
12166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12169 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12170 echo "$as_me:$LINENO: result: yes" >&5
12171 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12172 #define $ac_tr_decl 1
12176 echo "$as_me:$LINENO: result: no" >&5
12177 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12178 #define $ac_tr_decl 0
12186 cat >conftest.
$ac_ext <<_ACEOF
12189 cat confdefs.h
>>conftest.
$ac_ext
12190 cat >>conftest.
$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12193 #include "ansidecl.h"
12194 #include "system.h"
12195 #ifdef HAVE_SYS_RESOURCE_H
12196 #include <sys/resource.h>
12207 rm -f conftest.
$ac_objext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209 (eval $ac_compile) 2>conftest.er1
12211 grep -v '^ *+' conftest.er1
>conftest.err
12213 cat conftest.err
>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } &&
12216 { ac_try
='test -z "$ac_c_werror_flag"
12217 || test ! -s conftest.err'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try
='test -s conftest.$ac_objext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.
$ac_ext >&5
12235 cat >>confdefs.h
<<\_ACEOF
12236 #define rlim_t long
12240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12242 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12243 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12244 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12245 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12247 for ac_func
in ldgetname
12249 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12250 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12251 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12252 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 cat >conftest.
$ac_ext <<_ACEOF
12258 cat confdefs.h
>>conftest.
$ac_ext
12259 cat >>conftest.
$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 #define $ac_tr_decl 1
12264 #include "ansidecl.h"
12265 #include "system.h"
12266 #ifdef HAVE_LDFCN_H
12277 char *(*pfn) = (char *(*)) $ac_func ;
12283 rm -f conftest.
$ac_objext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285 (eval $ac_compile) 2>conftest.er1
12287 grep -v '^ *+' conftest.er1
>conftest.err
12289 cat conftest.err
>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } &&
12292 { ac_try
='test -z "$ac_c_werror_flag"
12293 || test ! -s conftest.err'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try
='test -s conftest.$ac_objext'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 eval "gcc_cv_have_decl_$ac_func=yes"
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.
$ac_ext >&5
12310 eval "gcc_cv_have_decl_$ac_func=no"
12312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12315 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12316 echo "$as_me:$LINENO: result: yes" >&5
12317 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12318 #define $ac_tr_decl 1
12322 echo "$as_me:$LINENO: result: no" >&5
12323 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12324 #define $ac_tr_decl 0
12333 for ac_func
in times
12335 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12336 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12337 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12338 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 cat >conftest.
$ac_ext <<_ACEOF
12344 cat confdefs.h
>>conftest.
$ac_ext
12345 cat >>conftest.
$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12348 #define $ac_tr_decl 1
12350 #include "ansidecl.h"
12351 #include "system.h"
12352 #ifdef HAVE_SYS_TIMES_H
12353 #include <sys/times.h>
12361 char *(*pfn) = (char *(*)) $ac_func ;
12367 rm -f conftest.
$ac_objext
12368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12369 (eval $ac_compile) 2>conftest.er1
12371 grep -v '^ *+' conftest.er1
>conftest.err
12373 cat conftest.err
>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try
='test -z "$ac_c_werror_flag"
12377 || test ! -s conftest.err'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; } &&
12383 { ac_try
='test -s conftest.$ac_objext'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 eval "gcc_cv_have_decl_$ac_func=yes"
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.
$ac_ext >&5
12394 eval "gcc_cv_have_decl_$ac_func=no"
12396 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12399 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12400 echo "$as_me:$LINENO: result: yes" >&5
12401 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12402 #define $ac_tr_decl 1
12406 echo "$as_me:$LINENO: result: no" >&5
12407 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12408 #define $ac_tr_decl 0
12417 for ac_func
in sigaltstack
12419 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12420 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12421 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12422 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 cat >conftest.
$ac_ext <<_ACEOF
12428 cat confdefs.h
>>conftest.
$ac_ext
12429 cat >>conftest.
$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12432 #define $ac_tr_decl 1
12434 #include "ansidecl.h"
12435 #include "system.h"
12436 #include <signal.h>
12443 char *(*pfn) = (char *(*)) $ac_func ;
12449 rm -f conftest.
$ac_objext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12451 (eval $ac_compile) 2>conftest.er1
12453 grep -v '^ *+' conftest.er1
>conftest.err
12455 cat conftest.err
>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
12458 { ac_try
='test -z "$ac_c_werror_flag"
12459 || test ! -s conftest.err'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try
='test -s conftest.$ac_objext'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 eval "gcc_cv_have_decl_$ac_func=yes"
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.
$ac_ext >&5
12476 eval "gcc_cv_have_decl_$ac_func=no"
12478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12481 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12482 echo "$as_me:$LINENO: result: yes" >&5
12483 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12484 #define $ac_tr_decl 1
12488 echo "$as_me:$LINENO: result: no" >&5
12489 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12490 #define $ac_tr_decl 0
12498 # More time-related stuff.
12499 echo "$as_me:$LINENO: checking for struct tms" >&5
12500 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12501 if test "${ac_cv_struct_tms+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 cat >conftest.
$ac_ext <<_ACEOF
12508 cat confdefs.h
>>conftest.
$ac_ext
12509 cat >>conftest.
$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12512 #include "ansidecl.h"
12513 #include "system.h"
12514 #ifdef HAVE_SYS_TIMES_H
12515 #include <sys/times.h>
12526 rm -f conftest.
$ac_objext
12527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>conftest.er1
12530 grep -v '^ *+' conftest.er1
>conftest.err
12532 cat conftest.err
>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try
='test -z "$ac_c_werror_flag"
12536 || test ! -s conftest.err'
12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try
='test -s conftest.$ac_objext'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 ac_cv_struct_tms
=yes
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.
$ac_ext >&5
12553 ac_cv_struct_tms
=no
12555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12557 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12558 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12559 if test $ac_cv_struct_tms = yes; then
12561 cat >>confdefs.h
<<\_ACEOF
12562 #define HAVE_STRUCT_TMS 1
12567 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12568 # revisit after autoconf 2.50.
12569 echo "$as_me:$LINENO: checking for clock_t" >&5
12570 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12571 if test "${gcc_cv_type_clock_t+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 cat >conftest.
$ac_ext <<_ACEOF
12578 cat confdefs.h
>>conftest.
$ac_ext
12579 cat >>conftest.
$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12582 #include "ansidecl.h"
12583 #include "system.h"
12593 rm -f conftest.
$ac_objext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12595 (eval $ac_compile) 2>conftest.er1
12597 grep -v '^ *+' conftest.er1
>conftest.err
12599 cat conftest.err
>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try
='test -z "$ac_c_werror_flag"
12603 || test ! -s conftest.err'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try
='test -s conftest.$ac_objext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 gcc_cv_type_clock_t
=yes
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.
$ac_ext >&5
12620 gcc_cv_type_clock_t
=no
12622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12624 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12625 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12626 if test $gcc_cv_type_clock_t = yes; then
12628 cat >>confdefs.h
<<\_ACEOF
12629 #define HAVE_CLOCK_T 1
12634 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12635 CFLAGS
="$saved_CFLAGS"
12637 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12638 if test "${enable_initfini_array+set}" = set; then
12639 enableval
="$enable_initfini_array"
12643 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12644 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12645 if test "${gcc_cv_initfini_array+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 if test "$cross_compiling" = yes; then
12649 gcc_cv_initfini_array
=no
12651 cat >conftest.
$ac_ext <<_ACEOF
12654 cat confdefs.h
>>conftest.
$ac_ext
12655 cat >>conftest.
$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12659 int main (void) { return x; }
12660 int foo (void) { x = 0; }
12661 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12663 rm -f conftest
$ac_exeext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12665 (eval $ac_link) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12674 gcc_cv_initfini_array
=yes
12676 echo "$as_me: program exited with status $ac_status" >&5
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.
$ac_ext >&5
12680 ( exit $ac_status )
12681 gcc_cv_initfini_array
=no
12683 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12686 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12687 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12688 enable_initfini_array
=$gcc_cv_initfini_array
12691 if test $enable_initfini_array = yes; then
12693 cat >>confdefs.h
<<\_ACEOF
12694 #define HAVE_INITFINI_ARRAY 1
12699 # mkdir takes a single argument on some systems.
12700 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12701 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12702 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12705 cat >conftest.
$ac_ext <<_ACEOF
12708 cat confdefs.h
>>conftest.
$ac_ext
12709 cat >>conftest.
$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12712 #include <sys/types.h>
12713 #ifdef HAVE_SYS_STAT_H
12714 # include <sys/stat.h>
12716 #ifdef HAVE_UNISTD_H
12717 # include <unistd.h>
12719 #ifdef HAVE_DIRECT_H
12720 # include <direct.h>
12730 rm -f conftest.
$ac_objext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732 (eval $ac_compile) 2>conftest.er1
12734 grep -v '^ *+' conftest.er1
>conftest.err
12736 cat conftest.err
>&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try
='test -z "$ac_c_werror_flag"
12740 || test ! -s conftest.err'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try
='test -s conftest.$ac_objext'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 gcc_cv_mkdir_takes_one_arg
=no
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.
$ac_ext >&5
12757 gcc_cv_mkdir_takes_one_arg
=yes
12759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12761 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12762 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12763 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12765 cat >>confdefs.h
<<\_ACEOF
12766 #define MKDIR_TAKES_ONE_ARG 1
12778 # With Setjmp/Longjmp based exception handling.
12779 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12780 if test "${enable_sjlj_exceptions+set}" = set; then
12781 enableval
="$enable_sjlj_exceptions"
12784 if test $enableval != yes; then
12785 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12786 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12791 force_sjlj_exceptions
=yes
12795 force_sjlj_exceptions
=yes
12799 force_sjlj_exceptions
=no
12803 if test $force_sjlj_exceptions = yes; then
12804 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12806 cat >>confdefs.h
<<_ACEOF
12807 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12812 # For platforms with the unwind ABI which includes an unwind library,
12813 # libunwind, we can choose to use the system libunwind.
12815 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12816 if test "${with_system_libunwind+set}" = set; then
12817 withval
="$with_system_libunwind"
12821 # config.gcc also contains tests of with_system_libunwind.
12822 if test x
$with_system_libunwind = xyes
; then
12824 cat >>confdefs.h
<<\_ACEOF
12825 #define HAVE_GETIPINFO 1
12830 # --------------------------------------------------------
12831 # Build, host, and target specific configuration fragments
12832 # --------------------------------------------------------
12834 # Collect build-machine-specific information.
12835 .
${srcdir}/config.build
12837 # Collect host-machine-specific information.
12838 .
${srcdir}/config.
host
12842 # Collect target-machine-specific information.
12843 .
${srcdir}/config.gcc
12845 extra_objs
="${host_extra_objs} ${extra_objs}"
12846 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12848 # Default the target-machine variables that were not explicitly set.
12849 if test x
"$tm_file" = x
12850 then tm_file
=$cpu_type/$cpu_type.h
; fi
12852 if test x
"$extra_headers" = x
12853 then extra_headers
=; fi
12855 if test x
$md_file = x
12856 then md_file
=$cpu_type/$cpu_type.md
; fi
12858 if test x
$out_file = x
12859 then out_file
=$cpu_type/$cpu_type.c
; fi
12861 if test x
"$tmake_file" = x
12862 then tmake_file
=$cpu_type/t-
$cpu_type
12865 if test x
"$dwarf2" = xyes
12866 then tm_file
="$tm_file tm-dwarf2.h"
12869 # Say what files are being used for the output code and MD file.
12870 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12871 echo "Using \`$srcdir/config/$md_file' as machine description file."
12873 # If any of the xm_file variables contain nonexistent files, warn
12874 # about them and drop them.
12877 for x
in $build_xm_file; do
12878 if test -f $srcdir/config
/$x
12880 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12881 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12884 build_xm_file
="$bx"
12887 for x
in $host_xm_file; do
12888 if test -f $srcdir/config
/$x
12890 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12891 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12897 for x
in $xm_file; do
12898 if test -f $srcdir/config
/$x
12900 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12901 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12907 for f
in $tm_file; do
12910 if test $count = ax
; then
12911 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12913 echo "Using the following target machine macro files:"
12914 for f
in $tm_file; do
12915 echo " $srcdir/config/$f"
12919 if test x
$need_64bit_hwint = xyes
; then
12921 cat >>confdefs.h
<<\_ACEOF
12922 #define NEED_64BIT_HOST_WIDE_INT 1
12927 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12929 cat >>confdefs.h
<<\_ACEOF
12930 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12936 for f
in $host_xm_file; do
12939 if test $count = a
; then
12941 elif test $count = ax
; then
12942 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12944 echo "Using the following host machine macro files:"
12945 for f
in $host_xm_file; do
12946 echo " $srcdir/config/$f"
12949 echo "Using ${out_host_hook_obj} for host machine hooks."
12951 if test "$host_xm_file" != "$build_xm_file"; then
12953 for f
in $build_xm_file; do
12956 if test $count = a
; then
12958 elif test $count = ax
; then
12959 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12961 echo "Using the following build machine macro files:"
12962 for f
in $build_xm_file; do
12963 echo " $srcdir/config/$f"
12969 powerpc
*-*-darwin*)
12970 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12971 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12972 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 cat >conftest.
$ac_ext <<_ACEOF
12977 #include <sys/cdefs.h>
12978 #include <sys/signal.h>
12979 #include <ucontext.h>
12980 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12983 rm -f conftest.
$ac_objext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12985 (eval $ac_compile) 2>conftest.er1
12987 grep -v '^ *+' conftest.er1
>conftest.err
12989 cat conftest.err
>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try
='test -z "$ac_c_werror_flag"
12993 || test ! -s conftest.err'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try
='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 gcc_cv_mcontext_underscores
=no
13007 echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.
$ac_ext >&5
13010 gcc_cv_mcontext_underscores
=yes
13012 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13014 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13015 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13016 if test $gcc_cv_mcontext_underscores = yes; then
13018 cat >>confdefs.h
<<\_ACEOF
13019 #define HAS_MCONTEXT_T_UNDERSCORES
13030 # Check if a valid thread package
13031 case ${enable_threads} in
13034 target_thread_file
='single'
13038 target_thread_file
='single'
13040 aix | dce | gnat | irix | posix | posix95 | rtems | \
13041 single | solaris | vxworks | win32 | mipssde
)
13042 target_thread_file
=${enable_threads}
13045 echo "${enable_threads} is an unknown thread package" 1>&2
13050 if test x
${thread_file} = x
; then
13051 # No thread file set by target-specific clauses in config.gcc,
13052 # so use file chosen by default logic above
13053 thread_file
=${target_thread_file}
13056 # Make gthr-default.h if we have a thread file.
13058 if test $thread_file != single
; then
13059 rm -f gthr-default.h
13060 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
13061 gthread_flags
=-DHAVE_GTHR_DEFAULT
13070 if test x
$enable___cxa_atexit = xyes || \
13071 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13072 if test x
$host = x
$target; then
13074 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13075 # keyed to flag_use_cxa_atexit
13080 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13081 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13082 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 cat >conftest.
$ac_ext <<_ACEOF
13088 cat confdefs.h
>>conftest.
$ac_ext
13089 cat >>conftest.
$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13093 #define __cxa_atexit innocuous___cxa_atexit
13095 /* System header to define __stub macros and hopefully few prototypes,
13096 which can conflict with char __cxa_atexit (); below.
13097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13098 <limits.h> exists even on freestanding compilers. */
13101 # include <limits.h>
13103 # include <assert.h>
13106 #undef __cxa_atexit
13108 /* Override any gcc2 internal prototype to avoid an error. */
13113 /* We use char because int might match the return type of a gcc2
13114 builtin and then its argument prototype would still apply. */
13115 char __cxa_atexit ();
13116 /* The GNU C library defines this for functions which it implements
13117 to always fail with ENOSYS. Some functions are actually named
13118 something starting with __ and the normal name is an alias. */
13119 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13122 char (*f) () = __cxa_atexit;
13131 return f != __cxa_atexit;
13136 rm -f conftest.
$ac_objext conftest
$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>conftest.er1
13140 grep -v '^ *+' conftest.er1
>conftest.err
13142 cat conftest.err
>&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try
='test -z "$ac_c_werror_flag"
13146 || test ! -s conftest.err'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try
='test -s conftest$ac_exeext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 ac_cv_func___cxa_atexit
=yes
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.
$ac_ext >&5
13163 ac_cv_func___cxa_atexit
=no
13165 rm -f conftest.err conftest.
$ac_objext \
13166 conftest
$ac_exeext conftest.
$ac_ext
13168 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13169 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13170 if test $ac_cv_func___cxa_atexit = yes; then
13173 echo "__cxa_atexit can't be enabled on this target"
13179 # We can't check for __cxa_atexit when building a cross, so assume
13183 if test x
$use_cxa_atexit = xyes
; then
13185 cat >>confdefs.h
<<\_ACEOF
13186 #define DEFAULT_USE_CXA_ATEXIT 2
13193 if test x
$with_system_libunwind = xyes
; then
13194 if test x
$host = x
$target; then
13195 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13196 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13197 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 ac_func_search_save_LIBS
=$LIBS
13201 ac_cv_search__Unwind_GetIPInfo
=no
13202 cat >conftest.
$ac_ext <<_ACEOF
13205 cat confdefs.h
>>conftest.
$ac_ext
13206 cat >>conftest.
$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13209 /* Override any gcc2 internal prototype to avoid an error. */
13213 /* We use char because int might match the return type of a gcc2
13214 builtin and then its argument prototype would still apply. */
13215 char _Unwind_GetIPInfo ();
13219 _Unwind_GetIPInfo ();
13224 rm -f conftest.
$ac_objext conftest
$ac_exeext
13225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13226 (eval $ac_link) 2>conftest.er1
13228 grep -v '^ *+' conftest.er1
>conftest.err
13230 cat conftest.err
>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try
='test -z "$ac_c_werror_flag"
13234 || test ! -s conftest.err'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try
='test -s conftest$ac_exeext'
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; }; then
13246 ac_cv_search__Unwind_GetIPInfo
="none required"
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.
$ac_ext >&5
13252 rm -f conftest.err conftest.
$ac_objext \
13253 conftest
$ac_exeext conftest.
$ac_ext
13254 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
13255 for ac_lib
in unwind
; do
13256 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13257 cat >conftest.
$ac_ext <<_ACEOF
13260 cat confdefs.h
>>conftest.
$ac_ext
13261 cat >>conftest.
$ac_ext <<_ACEOF
13262 /* end confdefs.h. */
13264 /* Override any gcc2 internal prototype to avoid an error. */
13268 /* We use char because int might match the return type of a gcc2
13269 builtin and then its argument prototype would still apply. */
13270 char _Unwind_GetIPInfo ();
13274 _Unwind_GetIPInfo ();
13279 rm -f conftest.
$ac_objext conftest
$ac_exeext
13280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13281 (eval $ac_link) 2>conftest.er1
13283 grep -v '^ *+' conftest.er1
>conftest.err
13285 cat conftest.err
>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } &&
13288 { ac_try
='test -z "$ac_c_werror_flag"
13289 || test ! -s conftest.err'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; } &&
13295 { ac_try
='test -s conftest$ac_exeext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.
$ac_ext >&5
13308 rm -f conftest.err conftest.
$ac_objext \
13309 conftest
$ac_exeext conftest.
$ac_ext
13312 LIBS
=$ac_func_search_save_LIBS
13314 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13315 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13316 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
13317 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13326 if test x
$use_getipinfo = xyes
; then
13328 cat >>confdefs.h
<<\_ACEOF
13329 #define HAVE_GETIPINFO 1
13333 echo "The system unwind library does not support _Unwind_GetIPInfo."
13336 # Look for a file containing extra machine modes.
13337 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13338 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13341 cat >>confdefs.h
<<_ACEOF
13342 #define EXTRA_MODES_FILE "config/$extra_modes"
13347 # Convert extra_options into a form suitable for Makefile use.
13349 for f
in $extra_options; do
13350 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13354 # auto-host.h is the file containing items generated by autoconf and is
13355 # the first file included by config.h.
13356 # If host=build, it is correct to have bconfig include auto-host.h
13357 # as well. If host!=build, we are in error and need to do more
13358 # work to find out the build config parameters.
13359 if test x
$host = x
$build
13361 build_auto
=auto-host.h
13363 # We create a subdir, then run autoconf in the subdir.
13364 # To prevent recursion we set host and build for the new
13365 # invocation of configure to the build for this invocation
13372 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13373 *) realsrcdir
=..
/${srcdir};;
13375 saved_CFLAGS
="${CFLAGS}"
13376 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13377 ${realsrcdir}/configure \
13378 --enable-languages=${enable_languages-all} \
13379 --target=$target_alias --host=$build_alias --build=$build_alias
13380 CFLAGS
="${saved_CFLAGS}"
13382 # We just finished tests for the build machine, so rename
13383 # the file auto-build.h in the gcc directory.
13384 mv auto-host.h ..
/auto-build.h
13387 build_auto
=auto-build.h
13391 tm_file
="${tm_file} defaults.h"
13392 tm_p_file
="${tm_p_file} tm-preds.h"
13393 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13394 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13395 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13396 # put this back in temporarily.
13397 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13403 # Compile in configure arguments.
13404 if test -f configargs.h
; then
13405 # Being re-configured.
13406 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13407 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13409 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13412 # Double all backslashes and backslash all quotes to turn
13413 # gcc_config_arguments into a C string.
13414 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13415 $gcc_config_arguments
13417 gcc_config_arguments_str
=`cat conftest.out`
13420 cat > configargs.h
<<EOF
13421 /* Generated automatically. */
13422 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13423 static const char thread_model[] = "$thread_file";
13425 static const struct {
13426 const char *name, *value;
13427 } configure_default_options[] = $configure_default_options;
13430 # Internationalization
13431 # If we haven't got the data from the intl directory,
13432 # assume NLS is disabled.
13441 if test -f ..
/intl
/config.intl
; then
13442 . ..
/intl
/config.intl
13444 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13445 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13446 if test x
"$USE_NLS" != xyes
; then
13447 echo "$as_me:$LINENO: result: no" >&5
13448 echo "${ECHO_T}no" >&6
13450 echo "$as_me:$LINENO: result: yes" >&5
13451 echo "${ECHO_T}yes" >&6
13453 cat >>confdefs.h
<<\_ACEOF
13454 #define ENABLE_NLS 1
13458 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13459 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13460 # Look for .po and .gmo files in the source directory.
13463 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13464 # If there aren't any .gmo files the shell will give us the
13465 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13467 case "$cat" in *\
**)
13470 # The quadruple backslash is collapsed to a double backslash
13471 # by the backticks, then collapsed again by the double quotes,
13472 # leaving us with one backslash in the sed expression (right
13473 # before the dot that mustn't act as a wildcard).
13474 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13475 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13476 # The user is allowed to set LINGUAS to a list of languages to
13477 # install catalogs for. If it's empty that means "all of them."
13478 if test "x$LINGUAS" = x
; then
13479 CATALOGS
="$CATALOGS $cat"
13480 XLINGUAS
="$XLINGUAS $lang"
13482 case "$LINGUAS" in *$lang*)
13483 CATALOGS
="$CATALOGS $cat"
13484 XLINGUAS
="$XLINGUAS $lang"
13489 LINGUAS
="$XLINGUAS"
13490 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13491 echo "${ECHO_T}$LINGUAS" >&6
13504 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13505 # -liconv on the link line twice.
13506 case "$LIBINTL" in *$LIBICONV*)
13510 # Check whether --enable-secureplt or --disable-secureplt was given.
13511 if test "${enable_secureplt+set}" = set; then
13512 enableval
="$enable_secureplt"
13516 # Windows32 Registry support for specifying GCC installation paths.
13517 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13518 if test "${enable_win32_registry+set}" = set; then
13519 enableval
="$enable_win32_registry"
13524 win32 | pe | cygwin
* | mingw32
* | uwin
*)
13525 if test "x$enable_win32_registry" != xno
; then
13526 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13527 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13528 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 ac_func_search_save_LIBS
=$LIBS
13532 ac_cv_search_RegOpenKeyExA
=no
13533 cat >conftest.
$ac_ext <<_ACEOF
13536 cat confdefs.h
>>conftest.
$ac_ext
13537 cat >>conftest.
$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13540 /* Override any gcc2 internal prototype to avoid an error. */
13544 /* We use char because int might match the return type of a gcc2
13545 builtin and then its argument prototype would still apply. */
13546 char RegOpenKeyExA ();
13555 rm -f conftest.
$ac_objext conftest
$ac_exeext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557 (eval $ac_link) 2>conftest.er1
13559 grep -v '^ *+' conftest.er1
>conftest.err
13561 cat conftest.err
>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try
='test -z "$ac_c_werror_flag"
13565 || test ! -s conftest.err'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; } &&
13571 { ac_try
='test -s conftest$ac_exeext'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
13577 ac_cv_search_RegOpenKeyExA
="none required"
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.
$ac_ext >&5
13583 rm -f conftest.err conftest.
$ac_objext \
13584 conftest
$ac_exeext conftest.
$ac_ext
13585 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13586 for ac_lib
in advapi32
; do
13587 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13588 cat >conftest.
$ac_ext <<_ACEOF
13591 cat confdefs.h
>>conftest.
$ac_ext
13592 cat >>conftest.
$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13595 /* Override any gcc2 internal prototype to avoid an error. */
13599 /* We use char because int might match the return type of a gcc2
13600 builtin and then its argument prototype would still apply. */
13601 char RegOpenKeyExA ();
13610 rm -f conftest.
$ac_objext conftest
$ac_exeext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13612 (eval $ac_link) 2>conftest.er1
13614 grep -v '^ *+' conftest.er1
>conftest.err
13616 cat conftest.err
>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try
='test -z "$ac_c_werror_flag"
13620 || test ! -s conftest.err'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try
='test -s conftest$ac_exeext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.
$ac_ext >&5
13639 rm -f conftest.err conftest.
$ac_objext \
13640 conftest
$ac_exeext conftest.
$ac_ext
13643 LIBS
=$ac_func_search_save_LIBS
13645 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13646 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13647 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13648 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13651 enable_win32_registry
=no
13656 if test "x$enable_win32_registry" != xno
; then
13658 cat >>confdefs.h
<<\_ACEOF
13659 #define ENABLE_WIN32_REGISTRY 1
13663 if test "x$enable_win32_registry" != xyes \
13664 && test "x$enable_win32_registry" != x
; then
13666 cat >>confdefs.h
<<_ACEOF
13667 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13675 # Get an absolute path to the GCC top-level source directory
13676 holddir
=`${PWDCMD-pwd}`
13678 topdir
=`${PWDCMD-pwd}`
13681 # Conditionalize the makefile for this host machine.
13683 for f
in ${host_xmake_file}
13685 if test -f ${srcdir}/config
/$f
13687 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13691 # Conditionalize the makefile for this target machine.
13693 for f
in ${tmake_file}
13695 if test -f ${srcdir}/config
/$f
13697 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13700 tmake_file
="${tmake_file_}"
13702 # This is a terrible hack which will go away some day.
13703 host_cc_for_libada
=${CC}
13706 out_object_file
=`basename $out_file .c`.o
13708 tm_file_list
="options.h"
13709 tm_include_list
="options.h"
13710 for f
in $tm_file; do
13713 f
=`echo $f | sed 's/^..//'`
13714 tm_file_list
="${tm_file_list} $f"
13715 tm_include_list
="${tm_include_list} $f"
13718 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13719 tm_include_list
="${tm_include_list} $f"
13722 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13723 tm_include_list
="${tm_include_list} config/$f"
13730 for f
in $tm_p_file; do
13733 tm_p_file_list
="${tm_p_file_list} $f"
13734 tm_p_include_list
="${tm_p_include_list} $f"
13737 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13738 tm_p_include_list
="${tm_p_include_list} config/$f"
13744 for f
in $xm_file; do
13747 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13748 xm_include_list
="${xm_include_list} $f"
13751 xm_file_list
="${xm_file_list} $f"
13752 xm_include_list
="${xm_include_list} $f"
13755 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13756 xm_include_list
="${xm_include_list} config/$f"
13762 host_xm_include_list
=
13763 for f
in $host_xm_file; do
13766 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13767 host_xm_include_list
="${host_xm_include_list} $f"
13770 host_xm_file_list
="${host_xm_file_list} $f"
13771 host_xm_include_list
="${host_xm_include_list} $f"
13774 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13775 host_xm_include_list
="${host_xm_include_list} config/$f"
13780 build_xm_file_list
=
13781 for f
in $build_xm_file; do
13784 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13785 build_xm_include_list
="${build_xm_include_list} $f"
13787 auto-build.h | auto-host.h
)
13788 build_xm_file_list
="${build_xm_file_list} $f"
13789 build_xm_include_list
="${build_xm_include_list} $f"
13792 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13793 build_xm_include_list
="${build_xm_include_list} config/$f"
13798 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13799 # cross-compiler which does not use the native headers and libraries.
13800 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13803 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13805 if test "x$with_build_sysroot" != x
; then
13806 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13808 # This value is used, even on a native system, because
13809 # CROSS_SYSTEM_HEADER_DIR is just
13810 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13811 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13814 if test x
$host != x
$target
13816 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13818 SYSTEM_HEADER_DIR
=$build_system_header_dir
13819 case "$host","$target" in
13820 # Darwin crosses can use the host system's libraries and headers,
13821 # because of the fat library support. Of course, it must be the
13822 # same version of Darwin on both sides. Allow the user to
13823 # just say --target=foo-darwin without a version number to mean
13824 # "the version on this system".
13825 *-*-darwin*,*-*-darwin*)
13826 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13827 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13828 if test $hostos = $targetos -o $targetos = darwin
; then
13830 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13835 i?
86-*-*,x86_64-
*-* \
13836 | powerpc
*-*-*,powerpc64
*-*-*)
13837 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13839 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13840 SYSTEM_HEADER_DIR
=$build_system_header_dir
13843 # If this is a cross-compiler that does not
13844 # have its own set of headers then define
13847 # If this is using newlib, without having the headers available now,
13848 # then define inhibit_libc in LIBGCC2_CFLAGS.
13849 # This prevents libgcc2 from containing any code which requires libc
13851 : ${inhibit_libc=false}
13852 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13853 test x
$with_newlib = xyes
; } &&
13854 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13859 # When building gcc with a cross-compiler, we need to adjust things so
13860 # that the generator programs are still built with the native compiler.
13861 # Also, we cannot run fixincludes or fix-header.
13863 # These are the normal (build=host) settings:
13864 CC_FOR_BUILD
='$(CC)'
13865 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13866 STMP_FIXINC
=stmp-fixinc
13868 # Possibly disable fixproto, on a per-target basis.
13869 case ${use_fixproto} in
13874 STMP_FIXPROTO
=stmp-fixproto
13879 # And these apply if build != host, or we are generating coverage data
13880 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13882 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13884 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13885 if test "x$STMP_FIXPROTO" != x
; then
13886 STMP_FIXPROTO
=stmp-install-fixproto
13891 # Expand extra_headers to include complete path.
13892 # This substitutes for lots of t-* files.
13893 extra_headers_list
=
13894 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13895 for file in ${extra_headers} ; do
13896 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13899 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13900 if test x
"$use_gcc_tgmath" = xyes
13901 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13904 # Define collect2 in Makefile.
13905 case $host_can_use_collect2 in
13907 *) collect2
='collect2$(exeext)' ;;
13911 # Add a definition of USE_COLLECT2 if system wants one.
13912 case $use_collect2 in
13913 no
) use_collect2
= ;;
13916 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13917 xm_defines
="${xm_defines} USE_COLLECT2"
13918 case $host_can_use_collect2 in
13920 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13921 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13922 { (exit 1); exit 1; }; }
13928 # ---------------------------
13929 # Assembler & linker features
13930 # ---------------------------
13932 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13933 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13934 # However when ld-new is first executed from the build tree, libtool will
13935 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13936 # to the build tree. While doing this we need to use the previous-stage
13937 # linker, or we have an infinite loop. The presence of a shell script as
13938 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13939 # the gcc/collect-ld script. So we need to know how libtool works, or
13940 # exec-tool will fail.
13945 macro_version
='2.1a'
13946 macro_revision
='1.2435'
13959 ltmain
="$ac_aux_dir/ltmain.sh"
13966 enable_win32_dll
=no
13969 # Check whether --enable-shared or --disable-shared was given.
13970 if test "${enable_shared+set}" = set; then
13971 enableval
="$enable_shared"
13972 p
=${PACKAGE-default}
13974 yes) enable_shared
=yes ;;
13975 no
) enable_shared
=no
;;
13978 # Look at the argument we got. We use all the common list separators.
13979 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
13980 for pkg
in $enableval; do
13982 if test "X$pkg" = "X$p"; then
14000 # Check whether --enable-static or --disable-static was given.
14001 if test "${enable_static+set}" = set; then
14002 enableval
="$enable_static"
14003 p
=${PACKAGE-default}
14005 yes) enable_static
=yes ;;
14006 no
) enable_static
=no
;;
14009 # Look at the argument we got. We use all the common list separators.
14010 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14011 for pkg
in $enableval; do
14013 if test "X$pkg" = "X$p"; then
14032 # Check whether --with-pic or --without-pic was given.
14033 if test "${with_pic+set}" = set; then
14034 withval
="$with_pic"
14035 pic_mode
="$withval"
14040 test -z "$pic_mode" && pic_mode
=default
14048 # Check whether --enable-fast-install or --disable-fast-install was given.
14049 if test "${enable_fast_install+set}" = set; then
14050 enableval
="$enable_fast_install"
14051 p
=${PACKAGE-default}
14053 yes) enable_fast_install
=yes ;;
14054 no
) enable_fast_install
=no
;;
14056 enable_fast_install
=no
14057 # Look at the argument we got. We use all the common list separators.
14058 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14059 for pkg
in $enableval; do
14061 if test "X$pkg" = "X$p"; then
14062 enable_fast_install
=yes
14069 enable_fast_install
=yes
14079 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14080 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14081 if test "${lt_cv_path_SED+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 # Loop through the user's path and test for sed and gsed.
14085 # Then use that list of sed's as ones to test for truncation.
14086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14087 for as_dir
in $PATH
14090 test -z "$as_dir" && as_dir
=.
14091 for lt_ac_prog
in sed gsed
; do
14092 for ac_exec_ext
in '' $ac_executable_extensions; do
14093 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14094 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14102 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14103 # along with /bin/sed that truncates output.
14104 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
14105 test ! -f $lt_ac_sed && continue
14106 cat /dev
/null
> conftest.
in
14108 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
14109 # Check for GNU sed and select it if it is found.
14110 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
14111 lt_cv_path_SED
=$lt_ac_sed
14115 cat conftest.
in conftest.
in >conftest.tmp
14116 mv conftest.tmp conftest.
in
14117 cp conftest.
in conftest.
nl
14119 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
14120 cmp -s conftest.out conftest.
nl ||
break
14121 # 10000 chars as input seems more than enough
14122 test $lt_ac_count -gt 10 && break
14123 lt_ac_count
=`expr $lt_ac_count + 1`
14124 if test $lt_ac_count -gt $lt_ac_max; then
14125 lt_ac_max
=$lt_ac_count
14126 lt_cv_path_SED
=$lt_ac_sed
14133 SED
=$lt_cv_path_SED
14135 echo "$as_me:$LINENO: result: $SED" >&5
14136 echo "${ECHO_T}$SED" >&6
14138 test -z "$SED" && SED
=sed
14139 Xsed
="$SED -e 1s/^X//"
14151 echo "$as_me:$LINENO: checking for fgrep" >&5
14152 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14153 if test "${ac_cv_prog_fgrep+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
14157 then ac_cv_prog_fgrep
='grep -F'
14158 else ac_cv_prog_fgrep
='fgrep'
14161 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14162 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14163 FGREP
=$ac_cv_prog_fgrep
14166 test -z "$GREP" && GREP
=grep
14186 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14187 if test "${with_gnu_ld+set}" = set; then
14188 withval
="$with_gnu_ld"
14189 test "$withval" = no || with_gnu_ld
=yes
14194 if test "$GCC" = yes; then
14195 # Check if gcc -print-prog-name=ld gives a path.
14196 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14197 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14200 # gcc leaves a trailing carriage return which upsets mingw
14201 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14203 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14206 # Accept absolute paths.
14208 re_direlt
='/[^/][^/]*/\.\./'
14209 # Canonicalize the pathname of ld
14210 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14211 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14212 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14214 test -z "$LD" && LD
="$ac_prog"
14217 # If it fails, then pretend we aren't using GCC.
14221 # If it is relative, then search for the first ld in PATH.
14222 with_gnu_ld
=unknown
14225 elif test "$with_gnu_ld" = yes; then
14226 echo "$as_me:$LINENO: checking for GNU ld" >&5
14227 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14229 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14230 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14232 if test "${lt_cv_path_LD+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 if test -z "$LD"; then
14236 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14237 for ac_dir
in $PATH; do
14239 test -z "$ac_dir" && ac_dir
=.
14240 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14241 lt_cv_path_LD
="$ac_dir/$ac_prog"
14242 # Check to see if the program is GNU ld. I'd rather use --version,
14243 # but apparently some variants of GNU ld only accept -v.
14244 # Break only if it was the GNU/non-GNU ld that we prefer.
14245 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14246 *GNU
* |
*'with BFD'*)
14247 test "$with_gnu_ld" != no
&& break
14250 test "$with_gnu_ld" != yes && break
14257 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14261 LD
="$lt_cv_path_LD"
14262 if test -n "$LD"; then
14263 echo "$as_me:$LINENO: result: $LD" >&5
14264 echo "${ECHO_T}$LD" >&6
14266 echo "$as_me:$LINENO: result: no" >&5
14267 echo "${ECHO_T}no" >&6
14269 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14270 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14271 { (exit 1); exit 1; }; }
14272 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14273 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14274 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14278 case `$LD -v 2>&1 </dev/null` in
14279 *GNU
* |
*'with BFD'*)
14280 lt_cv_prog_gnu_ld
=yes
14283 lt_cv_prog_gnu_ld
=no
14287 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14288 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14289 with_gnu_ld
=$lt_cv_prog_gnu_ld
14300 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14301 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14302 if test "${lt_cv_path_NM+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 if test -n "$NM"; then
14306 # Let the user override the test.
14307 lt_cv_path_NM
="$NM"
14309 lt_nm_to_check
="${ac_tool_prefix}nm"
14310 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14311 lt_nm_to_check
="$lt_nm_to_check nm"
14313 for lt_tmp_nm
in $lt_nm_to_check; do
14314 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14315 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14317 test -z "$ac_dir" && ac_dir
=.
14318 tmp_nm
="$ac_dir/$lt_tmp_nm"
14319 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14320 # Check to see if the nm accepts a BSD-compat flag.
14321 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14322 # nm: unknown option "B" ignored
14323 # Tru64's nm complains that /dev/null is an invalid object file
14324 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14325 */dev
/null
* |
*'Invalid file or object type'*)
14326 lt_cv_path_NM
="$tmp_nm -B"
14330 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14332 lt_cv_path_NM
="$tmp_nm -p"
14336 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14337 continue # so that we can try to find one that supports BSD flags
14346 : ${lt_cv_path_NM=no}
14349 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14350 echo "${ECHO_T}$lt_cv_path_NM" >&6
14351 if test "$lt_cv_path_NM" != "no"; then
14352 NM
="$lt_cv_path_NM"
14354 # Didn't find any BSD compatible name lister, look for dumpbin.
14355 if test -n "$ac_tool_prefix"; then
14356 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14359 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14360 echo "$as_me:$LINENO: checking for $ac_word" >&5
14361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14362 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 if test -n "$DUMPBIN"; then
14366 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14369 for as_dir
in $PATH
14372 test -z "$as_dir" && as_dir
=.
14373 for ac_exec_ext
in '' $ac_executable_extensions; do
14374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14375 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14384 DUMPBIN
=$ac_cv_prog_DUMPBIN
14385 if test -n "$DUMPBIN"; then
14386 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14387 echo "${ECHO_T}$DUMPBIN" >&6
14389 echo "$as_me:$LINENO: result: no" >&5
14390 echo "${ECHO_T}no" >&6
14393 test -n "$DUMPBIN" && break
14396 if test -z "$DUMPBIN"; then
14397 ac_ct_DUMPBIN
=$DUMPBIN
14398 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14400 # Extract the first word of "$ac_prog", so it can be a program name with args.
14401 set dummy
$ac_prog; ac_word
=$2
14402 echo "$as_me:$LINENO: checking for $ac_word" >&5
14403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14404 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 if test -n "$ac_ct_DUMPBIN"; then
14408 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14411 for as_dir
in $PATH
14414 test -z "$as_dir" && as_dir
=.
14415 for ac_exec_ext
in '' $ac_executable_extensions; do
14416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14417 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14426 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14427 if test -n "$ac_ct_DUMPBIN"; then
14428 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14429 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14431 echo "$as_me:$LINENO: result: no" >&5
14432 echo "${ECHO_T}no" >&6
14435 test -n "$ac_ct_DUMPBIN" && break
14437 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
14439 DUMPBIN
=$ac_ct_DUMPBIN
14443 if test "$DUMPBIN" != ":"; then
14447 test -z "$NM" && NM
=nm
14454 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14455 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14456 if test "${lt_cv_nm_interface+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 lt_cv_nm_interface
="BSD nm"
14460 echo "int some_variable = 0;" > conftest.
$ac_ext
14461 (eval echo "\"\$as_me:14461: $ac_compile\"" >&5)
14462 (eval "$ac_compile" 2>conftest.err
)
14463 cat conftest.err
>&5
14464 (eval echo "\"\$as_me:14464: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14465 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14466 cat conftest.err
>&5
14467 (eval echo "\"\$as_me:14467: output\"" >&5)
14468 cat conftest.out
>&5
14469 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14470 lt_cv_nm_interface
="MS dumpbin"
14474 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14475 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14477 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14478 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14480 if test "$LN_S" = "ln -s"; then
14481 echo "$as_me:$LINENO: result: yes" >&5
14482 echo "${ECHO_T}yes" >&6
14484 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14485 echo "${ECHO_T}no, using $LN_S" >&6
14488 # find the maximum length of command line arguments
14489 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14490 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14491 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 # On DJGPP, this test can blow up pretty badly due to problems in libc
14500 # (any single argument exceeding 2000 bytes causes a buffer overrun
14501 # during glob expansion). Even if it were fixed, the result of this
14502 # check would be larger than it should be.
14503 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14507 # Under GNU Hurd, this test is not required because there is
14508 # no limit to the length of command line arguments.
14509 # Libtool will interpret -1 as no limit whatsoever
14510 lt_cv_sys_max_cmd_len
=-1;
14514 # On Win9x/ME, this test blows up -- it succeeds, but takes
14515 # about 5 minutes as the teststring grows exponentially.
14516 # Worse, since 9x/ME are not pre-emptively multitasking,
14517 # you end up with a "frozen" computer, even though with patience
14518 # the test eventually succeeds (with a max line length of 256k).
14519 # Instead, let's just punt: use the minimum linelength reported by
14520 # all of the supported platforms: 8192 (on NT/2K/XP).
14521 lt_cv_sys_max_cmd_len
=8192;
14525 # On AmigaOS with pdksh, this test takes hours, literally.
14526 # So we just punt and use a minimum line length of 8192.
14527 lt_cv_sys_max_cmd_len
=8192;
14530 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14531 # This has been around since 386BSD, at least. Likely further.
14532 if test -x /sbin
/sysctl
; then
14533 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14534 elif test -x /usr
/sbin
/sysctl
; then
14535 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14537 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14539 # And add a safety zone
14540 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14541 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14545 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14546 lt_cv_sys_max_cmd_len
=196608
14550 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14551 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14552 # nice to cause kernel panics so lets avoid the loop below.
14553 # First set a reasonable default.
14554 lt_cv_sys_max_cmd_len
=16384
14556 if test -x /sbin
/sysconfig
; then
14557 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14558 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14563 lt_cv_sys_max_cmd_len
=102400
14565 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14566 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14567 if test -n "$kargmax"; then
14568 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14570 lt_cv_sys_max_cmd_len
=32768
14574 lt_cv_sys_max_cmd_len
=`getconf ARG_MAX 2> /dev/null`
14575 if test -n $lt_cv_sys_max_cmd_len; then
14576 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14577 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14579 # Make teststring a little bigger before we do anything with it.
14580 # a 1K string should be a reasonable start.
14581 for i
in 1 2 3 4 5 6 7 8 ; do
14582 teststring
=$teststring$teststring
14584 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14585 # If test is not a shell built-in, we'll probably end up computing a
14586 # maximum length that is only half of the actual maximum length, but
14588 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14589 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
14590 test $i != 17 # 1/2 MB should be enough
14593 teststring
=$teststring$teststring
14595 # Only check the string length outside the loop.
14596 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14598 # Add a significant safety factor because C++ compilers can tack on
14599 # massive amounts of additional arguments before passing them to the
14600 # linker. It appears as though 1/2 is a usable value.
14601 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14608 if test -n $lt_cv_sys_max_cmd_len ; then
14609 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14610 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14612 echo "$as_me:$LINENO: result: none" >&5
14613 echo "${ECHO_T}none" >&6
14615 max_cmd_len
=$lt_cv_sys_max_cmd_len
14627 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14628 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14629 # Try some XSI features
14631 ( _lt_dummy
="a/b/c"
14632 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14633 = c,a/b,, ) >/dev/null 2>&1 \
14635 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
14636 echo "${ECHO_T}$xsi_shell" >&6
14639 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
14640 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
14642 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14644 && lt_shell_append=yes
14645 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
14646 echo "${ECHO_T}$lt_shell_append" >&6
14649 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14659 # test EBCDIC or ASCII
14660 case `echo X|tr X '\101'` in
14661 A) # ASCII based system
14662 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14663 lt_SP2NL='tr \040 \012'
14664 lt_NL2SP='tr \015\012 \040\040'
14666 *) # EBCDIC based system
14667 lt_SP2NL='tr \100 \n'
14668 lt_NL2SP='tr \r\n \100\100'
14680 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
14681 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
14682 if test "${lt_cv_ld_reload_flag+set}" = set; then
14683 echo $ECHO_N "(cached
) $ECHO_C" >&6
14685 lt_cv_ld_reload_flag='-r'
14687 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
14688 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14689 reload_flag=$lt_cv_ld_reload_flag
14690 case $reload_flag in
14692 *) reload_flag=" $reload_flag" ;;
14694 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14697 if test "$GCC" = yes; then
14698 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14700 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14714 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
14715 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
14716 if test "${lt_cv_deplibs_check_method+set}" = set; then
14717 echo $ECHO_N "(cached
) $ECHO_C" >&6
14719 lt_cv_file_magic_cmd='$MAGIC_CMD'
14720 lt_cv_file_magic_test_file=
14721 lt_cv_deplibs_check_method='unknown'
14722 # Need to set the preceding variable on all platforms that support
14723 # interlibrary dependencies.
14724 # 'none' -- dependencies not supported.
14725 # `unknown' -- same as none, but documents that we really don't know.
14726 # 'pass_all' -- all dependencies passed with no checks.
14727 # 'test_compile' -- check by making test program.
14728 # 'file_magic [[regex]]' -- check by looking for files in library path
14729 # which responds to the $file_magic_cmd with a given extended regex.
14730 # If you have `file' or equivalent on your system and you're not sure
14731 # whether `pass_all' will *always* work, you probably want this one.
14735 lt_cv_deplibs_check_method=pass_all
14739 lt_cv_deplibs_check_method=pass_all
14743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14744 lt_cv_file_magic_cmd='/usr/bin/file -L'
14745 lt_cv_file_magic_test_file=/shlib/libc.so
14749 # func_win32_libid is a shell function defined in ltmain.sh
14750 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14751 lt_cv_file_magic_cmd='func_win32_libid'
14755 # Base MSYS/MinGW do not provide the 'file' command needed by
14756 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14757 # unless we find 'file', for example because we are cross-compiling.
14758 if ( file / ) >/dev/null 2>&1; then
14759 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14760 lt_cv_file_magic_cmd='func_win32_libid'
14762 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14763 lt_cv_file_magic_cmd='$OBJDUMP -f'
14767 darwin* | rhapsody*)
14768 lt_cv_deplibs_check_method=pass_all
14771 freebsd* | dragonfly*)
14772 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14775 # Not sure whether the presence of OpenBSD here was a mistake.
14776 # Let's accept both of them until this is cleared up.
14777 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14778 lt_cv_file_magic_cmd=/usr/bin/file
14779 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14783 lt_cv_deplibs_check_method=pass_all
14788 lt_cv_deplibs_check_method=pass_all
14791 hpux10.20* | hpux11*)
14792 lt_cv_file_magic_cmd=/usr/bin/file
14795 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14796 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14799 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]'
14800 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14803 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14804 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14810 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14814 irix5* | irix6* | nonstopux*)
14816 *-32|*"-32 ") libmagic=32-bit;;
14817 *-n32|*"-n32 ") libmagic=N32;;
14818 *-64|*"-64 ") libmagic=64-bit;;
14819 *) libmagic=never-match;;
14821 lt_cv_deplibs_check_method=pass_all
14824 # This must be Linux ELF.
14825 linux* | k*bsd*-gnu)
14826 lt_cv_deplibs_check_method=pass_all
14830 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14839 lt_cv_file_magic_cmd=/usr/bin/file
14840 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14844 lt_cv_deplibs_check_method=pass_all
14848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14855 osf3* | osf4* | osf5*)
14856 lt_cv_deplibs_check_method=pass_all
14860 lt_cv_deplibs_check_method=pass_all
14864 lt_cv_deplibs_check_method=pass_all
14867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14868 lt_cv_deplibs_check_method=pass_all
14872 case $host_vendor in
14874 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]'
14875 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14878 lt_cv_deplibs_check_method=pass_all
14881 lt_cv_file_magic_cmd='/bin/file'
14882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14885 lt_cv_file_magic_cmd='/bin/file'
14886 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14887 lt_cv_file_magic_test_file=/lib/libc.so
14890 lt_cv_deplibs_check_method=pass_all
14893 lt_cv_deplibs_check_method=pass_all
14899 lt_cv_deplibs_check_method=pass_all
14904 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
14905 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14906 file_magic_cmd=$lt_cv_file_magic_cmd
14907 deplibs_check_method=$lt_cv_deplibs_check_method
14908 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14921 if test -n "$ac_tool_prefix"; then
14922 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14923 set dummy ${ac_tool_prefix}ar; ac_word=$2
14924 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14925 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14926 if test "${ac_cv_prog_AR+set}" = set; then
14927 echo $ECHO_N "(cached
) $ECHO_C" >&6
14929 if test -n "$AR"; then
14930 ac_cv_prog_AR="$AR" # Let the user override the test.
14932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14933 for as_dir in $PATH
14936 test -z "$as_dir" && as_dir=.
14937 for ac_exec_ext in '' $ac_executable_extensions; do
14938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14939 ac_cv_prog_AR="${ac_tool_prefix}ar"
14940 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14949 if test -n "$AR"; then
14950 echo "$as_me:$LINENO: result
: $AR" >&5
14951 echo "${ECHO_T}$AR" >&6
14953 echo "$as_me:$LINENO: result
: no
" >&5
14954 echo "${ECHO_T}no
" >&6
14958 if test -z "$ac_cv_prog_AR"; then
14960 # Extract the first word of "ar", so it can be a program name with args.
14961 set dummy ar; ac_word=$2
14962 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14963 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14964 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14965 echo $ECHO_N "(cached
) $ECHO_C" >&6
14967 if test -n "$ac_ct_AR"; then
14968 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14971 for as_dir in $PATH
14974 test -z "$as_dir" && as_dir=.
14975 for ac_exec_ext in '' $ac_executable_extensions; do
14976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14977 ac_cv_prog_ac_ct_AR="ar"
14978 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14984 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
14987 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14988 if test -n "$ac_ct_AR"; then
14989 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14990 echo "${ECHO_T}$ac_ct_AR" >&6
14992 echo "$as_me:$LINENO: result
: no
" >&5
14993 echo "${ECHO_T}no
" >&6
14998 AR="$ac_cv_prog_AR"
15001 test -z "$AR" && AR=ar
15002 test -z "$AR_FLAGS" && AR_FLAGS=cru
15014 if test -n "$ac_tool_prefix"; then
15015 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15016 set dummy ${ac_tool_prefix}strip; ac_word=$2
15017 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15018 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15019 if test "${ac_cv_prog_STRIP+set}" = set; then
15020 echo $ECHO_N "(cached
) $ECHO_C" >&6
15022 if test -n "$STRIP"; then
15023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $PATH
15029 test -z "$as_dir" && as_dir=.
15030 for ac_exec_ext in '' $ac_executable_extensions; do
15031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15033 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15041 STRIP=$ac_cv_prog_STRIP
15042 if test -n "$STRIP"; then
15043 echo "$as_me:$LINENO: result
: $STRIP" >&5
15044 echo "${ECHO_T}$STRIP" >&6
15046 echo "$as_me:$LINENO: result
: no
" >&5
15047 echo "${ECHO_T}no
" >&6
15051 if test -z "$ac_cv_prog_STRIP"; then
15053 # Extract the first word of "strip
", so it can be a program name with args.
15054 set dummy strip; ac_word=$2
15055 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15056 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15057 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15058 echo $ECHO_N "(cached
) $ECHO_C" >&6
15060 if test -n "$ac_ct_STRIP"; then
15061 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064 for as_dir in $PATH
15067 test -z "$as_dir" && as_dir=.
15068 for ac_exec_ext in '' $ac_executable_extensions; do
15069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15070 ac_cv_prog_ac_ct_STRIP="strip
"
15071 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15077 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15080 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15081 if test -n "$ac_ct_STRIP"; then
15082 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
15083 echo "${ECHO_T}$ac_ct_STRIP" >&6
15085 echo "$as_me:$LINENO: result
: no
" >&5
15086 echo "${ECHO_T}no
" >&6
15091 STRIP="$ac_cv_prog_STRIP"
15094 test -z "$STRIP" && STRIP=:
15101 if test -n "$ac_tool_prefix"; then
15102 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15104 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15105 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15106 if test "${ac_cv_prog_RANLIB+set}" = set; then
15107 echo $ECHO_N "(cached
) $ECHO_C" >&6
15109 if test -n "$RANLIB"; then
15110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15113 for as_dir in $PATH
15116 test -z "$as_dir" && as_dir=.
15117 for ac_exec_ext in '' $ac_executable_extensions; do
15118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15120 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15128 RANLIB=$ac_cv_prog_RANLIB
15129 if test -n "$RANLIB"; then
15130 echo "$as_me:$LINENO: result
: $RANLIB" >&5
15131 echo "${ECHO_T}$RANLIB" >&6
15133 echo "$as_me:$LINENO: result
: no
" >&5
15134 echo "${ECHO_T}no
" >&6
15138 if test -z "$ac_cv_prog_RANLIB"; then
15139 ac_ct_RANLIB=$RANLIB
15140 # Extract the first word of "ranlib
", so it can be a program name with args.
15141 set dummy ranlib; ac_word=$2
15142 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15143 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15144 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15145 echo $ECHO_N "(cached
) $ECHO_C" >&6
15147 if test -n "$ac_ct_RANLIB"; then
15148 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15154 test -z "$as_dir" && as_dir=.
15155 for ac_exec_ext in '' $ac_executable_extensions; do
15156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15158 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15164 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15167 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15168 if test -n "$ac_ct_RANLIB"; then
15169 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
15170 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15172 echo "$as_me:$LINENO: result
: no
" >&5
15173 echo "${ECHO_T}no
" >&6
15176 RANLIB=$ac_ct_RANLIB
15178 RANLIB="$ac_cv_prog_RANLIB"
15181 test -z "$RANLIB" && RANLIB=:
15188 # Determine commands to create old-style static archives.
15189 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15190 old_postinstall_cmds='chmod 644 $oldlib'
15191 old_postuninstall_cmds=
15193 if test -n "$RANLIB"; then
15196 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15199 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15202 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15238 # If no C compiler was specified, use CC.
15241 # If no C compiler flags were specified, use CFLAGS.
15242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15244 # Allow CC to be a program name with arguments.
15248 # Check for command to grab the raw symbol name followed by C symbol from nm.
15249 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
15250 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
15251 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15252 echo $ECHO_N "(cached
) $ECHO_C" >&6
15255 # These are sane defaults that work on at least a few old systems.
15256 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15258 # Character class describing NM global symbol codes.
15259 symcode='[BCDEGRST]'
15261 # Regexp to match symbols that can be accessed directly from C.
15262 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15264 # Define system-specific variables.
15269 cygwin* | mingw* | pw32*)
15270 symcode='[ABCDGISTW]'
15273 if test "$host_cpu" = ia64; then
15274 symcode='[ABCDEGRST]'
15277 irix* | nonstopux*)
15278 symcode='[BCDEGRST]'
15281 symcode='[BCDEGQRST]'
15292 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15300 # If we're using GNU nm, then use its standard symbol codes.
15301 case `$NM -V 2>&1` in
15302 *GNU* | *'with BFD'*)
15303 symcode='[ABCDGIRSTW]' ;;
15306 # Transform an extracted symbol line into a proper C declaration.
15307 # Some systems (esp. on ia64) link data and code symbols differently,
15308 # so use this general approach.
15309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15311 # Transform an extracted symbol line into symbol name and symbol address
15312 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15314 # Handle CRLF in mingw tool chain
15318 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15322 # Try without a prefix underscore, then with it.
15323 for ac_symprfx in "" "_
"; do
15325 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15326 symxfrm="\\1 $ac_symprfx\\2 \\2"
15328 # Write the raw and C identifiers.
15329 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15330 # Fake it for dumpbin and say T for any non-static function
15331 # and D for any global variable.
15332 # Also find C++ and __fastcall symbols from MSVC++,
15333 # which start with @ or ?.
15334 lt_cv_sys_global_symbol_pipe="$AWK '"\
15335 " {last_section=section; section=\$ 3};"\
15336 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15337 " \$ 0!~/External *\|/{next};"\
15338 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15339 " {if(hide[section]) next};"\
15340 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15341 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15342 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15343 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15344 " ' prfx
=^
$ac_symprfx"
15346 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15349 # Check to see that the pipe works correctly.
15353 cat > conftest.$ac_ext <<_LT_EOF
15358 void nm_test_func(void);
15359 void nm_test_func(void){}
15363 int main(){nm_test_var='a';nm_test_func();return(0);}
15366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367 (eval $ac_compile) 2>&5
15369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15370 (exit $ac_status); }; then
15371 # Now try to grab the symbols.
15373 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
15374 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15377 (exit $ac_status); } && test -s "$nlist"; then
15378 # Try sorting and uniquifying the output.
15379 if sort "$nlist" | uniq > "$nlist"T; then
15380 mv -f "$nlist"T "$nlist"
15385 # Make sure that we snagged all the symbols we need.
15386 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15387 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15388 cat <<_LT_EOF > conftest.$ac_ext
15394 # Now generate the symbol file.
15395 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15397 cat <<_LT_EOF >> conftest.$ac_ext
15399 /* The mapping between symbol names and symbols. */
15404 lt__PROGRAM__LTX_preloaded_symbols[] =
15406 { "@PROGRAM@
", (void *) 0 },
15408 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15409 cat <<\_LT_EOF >> conftest.$ac_ext
15413 /* This works around a problem in FreeBSD linker */
15414 #ifdef FREEBSD_WORKAROUND
15415 static const void *lt_preloaded_setup() {
15416 return lt__PROGRAM__LTX_preloaded_symbols;
15424 # Now try linking the two files.
15425 mv conftest.$ac_objext conftstm.$ac_objext
15426 lt_save_LIBS="$LIBS"
15427 lt_save_CFLAGS="$CFLAGS"
15428 LIBS="conftstm.
$ac_objext"
15429 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431 (eval $ac_link) 2>&5
15433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15434 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15437 LIBS="$lt_save_LIBS"
15438 CFLAGS="$lt_save_CFLAGS"
15440 echo "cannot
find nm_test_func
in $nlist" >&5
15443 echo "cannot
find nm_test_var
in $nlist" >&5
15446 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15449 echo "$progname: failed program was
:" >&5
15450 cat conftest.$ac_ext >&5
15452 rm -f conftest* conftst*
15454 # Do not use the global_symbol_pipe unless it works.
15455 if test "$pipe_works" = yes; then
15458 lt_cv_sys_global_symbol_pipe=
15464 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15465 lt_cv_sys_global_symbol_to_cdecl=
15467 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15468 echo "$as_me:$LINENO: result
: failed
" >&5
15469 echo "${ECHO_T}failed
" >&6
15471 echo "$as_me:$LINENO: result
: ok
" >&5
15472 echo "${ECHO_T}ok
" >&6
15491 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15492 if test "${enable_libtool_lock+set}" = set; then
15493 enableval="$enable_libtool_lock"
15496 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15498 # Some flags need to be propagated to the compiler or linker for good
15502 # Find out which ABI we are using.
15503 echo 'int i;' > conftest.$ac_ext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15505 (eval $ac_compile) 2>&5
15507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15508 (exit $ac_status); }; then
15509 case `/usr/bin/file conftest.$ac_objext` in
15511 HPUX_IA64_MODE="32"
15514 HPUX_IA64_MODE="64"
15521 # Find out which ABI we are using.
15522 echo '#line 15522 "configure
"' > conftest.$ac_ext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524 (eval $ac_compile) 2>&5
15526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15527 (exit $ac_status); }; then
15528 if test "$lt_cv_prog_gnu_ld" = yes; then
15529 case `/usr/bin/file conftest.$ac_objext` in
15531 LD="${LD-ld} -melf32bsmip"
15534 LD="${LD-ld} -melf32bmipn32"
15537 LD="${LD-ld} -melf64bmip"
15541 case `/usr/bin/file conftest.$ac_objext` in
15557 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15558 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15559 # Find out which ABI we are using.
15560 echo 'int i;' > conftest.$ac_ext
15561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15562 (eval $ac_compile) 2>&5
15564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15565 (exit $ac_status); }; then
15566 case `/usr/bin/file conftest.o` in
15569 x86_64-*kfreebsd*-gnu)
15570 LD="${LD-ld} -m elf_i386_fbsd
"
15573 LD="${LD-ld} -m elf_i386
"
15575 ppc64-*linux*|powerpc64-*linux*)
15576 LD="${LD-ld} -m elf32ppclinux
"
15579 LD="${LD-ld} -m elf_s390
"
15582 LD="${LD-ld} -m elf32_sparc
"
15588 x86_64-*kfreebsd*-gnu)
15589 LD="${LD-ld} -m elf_x86_64_fbsd
"
15592 LD="${LD-ld} -m elf_x86_64
"
15594 ppc*-*linux*|powerpc*-*linux*)
15595 LD="${LD-ld} -m elf64ppc
"
15597 s390*-*linux*|s390*-*tpf*)
15598 LD="${LD-ld} -m elf64_s390
"
15601 LD="${LD-ld} -m elf64_sparc
"
15611 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15612 SAVE_CFLAGS="$CFLAGS"
15613 CFLAGS="$CFLAGS -belf"
15614 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
15615 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
15616 if test "${lt_cv_cc_needs_belf+set}" = set; then
15617 echo $ECHO_N "(cached
) $ECHO_C" >&6
15620 ac_cpp='$CPP $CPPFLAGS'
15621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15625 cat >conftest.$ac_ext <<_ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15642 (eval $ac_link) 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try='test -z "$ac_c_werror_flag"
15650 || test ! -s conftest.err'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15655 (exit $ac_status); }; } &&
15656 { ac_try='test -s conftest$ac_exeext'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 lt_cv_cc_needs_belf=yes
15664 echo "$as_me: failed program was
:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15667 lt_cv_cc_needs_belf=no
15669 rm -f conftest.err conftest.$ac_objext \
15670 conftest$ac_exeext conftest.$ac_ext
15672 ac_cpp='$CPP $CPPFLAGS'
15673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15678 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
15679 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15680 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15681 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15682 CFLAGS="$SAVE_CFLAGS"
15686 # Find out which ABI we are using.
15687 echo 'int i;' > conftest.$ac_ext
15688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15689 (eval $ac_compile) 2>&5
15691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15692 (exit $ac_status); }; then
15693 case `/usr/bin/file conftest.o` in
15695 case $lt_cv_prog_gnu_ld in
15696 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15697 *) LD="${LD-ld} -64" ;;
15706 need_locks="$enable_libtool_lock"
15709 for ac_header in dlfcn.h
15711 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15712 echo "$as_me:$LINENO: checking
for $ac_header" >&5
15713 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
15714 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
15715 echo $ECHO_N "(cached
) $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 #include <$ac_header>
15725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
15726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15728 grep -v '^ *+' conftest.er1 >conftest.err
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15732 (exit $ac_status); } >/dev/null; then
15733 if test -s conftest.err; then
15734 ac_cpp_err=$ac_c_preproc_warn_flag
15735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15742 if test -z "$ac_cpp_err"; then
15743 eval "$as_ac_Header=yes"
15745 echo "$as_me: failed program was
:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 eval "$as_ac_Header=no
"
15750 rm -f conftest.err conftest.$ac_ext
15752 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
15753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15755 cat >>confdefs.h <<_ACEOF
15756 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15764 # This can be used to rebuild libtool when needed
15765 LIBTOOL_DEPS="$ltmain"
15767 # Always use our own libtool.
15768 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15794 test -z "$LN_S" && LN_S="ln -s"
15809 if test -n "${ZSH_VERSION+set}" ; then
15810 setopt NO_GLOB_SUBST
15813 echo "$as_me:$LINENO: checking
for objdir
" >&5
15814 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6
15815 if test "${lt_cv_objdir+set}" = set; then
15816 echo $ECHO_N "(cached
) $ECHO_C" >&6
15818 rm -f .libs 2>/dev/null
15819 mkdir .libs 2>/dev/null
15820 if test -d .libs; then
15823 # MS-DOS does not allow filenames that begin with a dot.
15826 rmdir .libs 2>/dev/null
15828 echo "$as_me:$LINENO: result
: $lt_cv_objdir" >&5
15829 echo "${ECHO_T}$lt_cv_objdir" >&6
15830 objdir=$lt_cv_objdir
15836 cat >>confdefs.h <<_ACEOF
15837 #define LT_OBJDIR "$lt_cv_objdir/"
15858 # AIX sometimes has problems with the GCC collect2 program. For some
15859 # reason, if we set the COLLECT_NAMES environment variable, the problems
15860 # vanish in a puff of smoke.
15861 if test "X
${COLLECT_NAMES+set}" != Xset; then
15863 export COLLECT_NAMES
15868 # Sed substitution that helps us do robust quoting. It backslashifies
15869 # metacharacters that are still active within double-quoted strings.
15870 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15872 # Same as above, but do not quote variable references.
15873 double_quote_subst='s/\(["`\\]\
)/\\\
1/g
'
15875 # Sed substitution to delay expansion of an escaped shell variable in a
15876 # double_quote_subst'ed string.
15877 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
15879 # Sed substitution to delay expansion of an escaped single quote.
15880 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
15882 # Sed substitution to avoid accidental globbing in evaled expressions
15883 no_glob_subst
='s/\*/\\\*/g'
15885 # Global variables:
15887 can_build_shared
=yes
15889 # All known linkers require a `.a' archive for static linking (except MSVC,
15890 # which needs '.lib').
15893 with_gnu_ld
="$lt_cv_prog_gnu_ld"
15896 old_CFLAGS
="$CFLAGS"
15898 # Set sane defaults for various variables
15899 test -z "$CC" && CC
=cc
15900 test -z "$LTCC" && LTCC
=$CC
15901 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
15902 test -z "$LD" && LD
=ld
15903 test -z "$ac_objext" && ac_objext
=o
15905 for cc_temp
in $compiler""; do
15907 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
15908 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
15913 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15916 # Only perform the check for file, if the check method requires it
15917 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
15918 case $deplibs_check_method in
15920 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15921 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
15922 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
15923 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
15931 lt_save_MAGIC_CMD
="$MAGIC_CMD"
15932 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15933 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
15934 for ac_dir
in $ac_dummy; do
15936 test -z "$ac_dir" && ac_dir
=.
15937 if test -f $ac_dir/${ac_tool_prefix}file; then
15938 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
15939 if test -n "$file_magic_test_file"; then
15940 case $deplibs_check_method in
15942 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15943 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
15944 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
15945 $EGREP "$file_magic_regex" > /dev
/null
; then
15950 *** Warning: the command libtool uses to detect shared libraries,
15951 *** $file_magic_cmd, produces output that libtool cannot recognize.
15952 *** The result is that libtool may fail to recognize shared libraries
15953 *** as such. This will affect the creation of libtool libraries that
15954 *** depend on shared libraries, but programs linked with such libtool
15955 *** libraries will work regardless of this problem. Nevertheless, you
15956 *** may want to report the problem to your system manager and/or to
15957 *** bug-libtool@gnu.org
15967 MAGIC_CMD
="$lt_save_MAGIC_CMD"
15972 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
15973 if test -n "$MAGIC_CMD"; then
15974 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15975 echo "${ECHO_T}$MAGIC_CMD" >&6
15977 echo "$as_me:$LINENO: result: no" >&5
15978 echo "${ECHO_T}no" >&6
15985 if test -z "$lt_cv_path_MAGIC_CMD"; then
15986 if test -n "$ac_tool_prefix"; then
15987 echo "$as_me:$LINENO: checking for file" >&5
15988 echo $ECHO_N "checking for file... $ECHO_C" >&6
15989 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
15997 lt_save_MAGIC_CMD
="$MAGIC_CMD"
15998 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15999 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16000 for ac_dir
in $ac_dummy; do
16002 test -z "$ac_dir" && ac_dir
=.
16003 if test -f $ac_dir/file; then
16004 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
16005 if test -n "$file_magic_test_file"; then
16006 case $deplibs_check_method in
16008 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16009 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16010 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16011 $EGREP "$file_magic_regex" > /dev
/null
; then
16016 *** Warning: the command libtool uses to detect shared libraries,
16017 *** $file_magic_cmd, produces output that libtool cannot recognize.
16018 *** The result is that libtool may fail to recognize shared libraries
16019 *** as such. This will affect the creation of libtool libraries that
16020 *** depend on shared libraries, but programs linked with such libtool
16021 *** libraries will work regardless of this problem. Nevertheless, you
16022 *** may want to report the problem to your system manager and/or to
16023 *** bug-libtool@gnu.org
16033 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16038 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16039 if test -n "$MAGIC_CMD"; then
16040 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16041 echo "${ECHO_T}$MAGIC_CMD" >&6
16043 echo "$as_me:$LINENO: result: no" >&5
16044 echo "${ECHO_T}no" >&6
16057 # Use C for the default configuration in the libtool script
16061 ac_cpp
='$CPP $CPPFLAGS'
16062 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16067 # Source file extension for C test sources.
16070 # Object file extension for compiled C test sources.
16074 # Code to be used in simple compile tests
16075 lt_simple_compile_test_code
="int some_variable = 0;"
16077 # Code to be used in simple link tests
16078 lt_simple_link_test_code
='int main(){return(0);}'
16086 # If no C compiler was specified, use CC.
16089 # If no C compiler flags were specified, use CFLAGS.
16090 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16092 # Allow CC to be a program name with arguments.
16095 # Save the default compiler, since it gets overwritten when the other
16096 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16097 compiler_DEFAULT
=$CC
16099 # save warnings/boilerplate of simple test code
16100 ac_outfile
=conftest.
$ac_objext
16101 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16102 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16103 _lt_compiler_boilerplate
=`cat conftest.err`
16106 ac_outfile
=conftest.
$ac_objext
16107 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16108 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16109 _lt_linker_boilerplate
=`cat conftest.err`
16114 ## There is no encapsulation within the following macros, do not change
16115 ## the running order or otherwise move them around unless you know exactly
16116 ## what you are doing...
16117 if test -n "$compiler"; then
16119 lt_prog_compiler_no_builtin_flag
=
16121 if test "$GCC" = yes; then
16122 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
16124 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16125 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16126 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 lt_cv_prog_compiler_rtti_exceptions
=no
16130 ac_outfile
=conftest.
$ac_objext
16131 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16132 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16133 # Insert the option either (1) after the last *FLAGS variable, or
16134 # (2) before a word containing "conftest.", or (3) at the end.
16135 # Note that $ac_compile itself does not contain backslashes and begins
16136 # with a dollar sign (not a hyphen), so the echo should work correctly.
16137 # The option is referenced via a variable to avoid confusing sed.
16138 lt_compile
=`echo "$ac_compile" | $SED \
16139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16141 -e 's:$: $lt_compiler_flag:'`
16142 (eval echo "\"\$as_me:16142: $lt_compile\"" >&5)
16143 (eval "$lt_compile" 2>conftest.err
)
16145 cat conftest.err
>&5
16146 echo "$as_me:16146: \$? = $ac_status" >&5
16147 if (exit $ac_status) && test -s "$ac_outfile"; then
16148 # The compiler can only warn and ignore the option if not recognized
16149 # So say no if there are warnings other than the usual output.
16150 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16151 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16152 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16153 lt_cv_prog_compiler_rtti_exceptions
=yes
16159 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16160 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16162 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16163 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16175 lt_prog_compiler_wl
=
16176 lt_prog_compiler_pic
=
16177 lt_prog_compiler_static
=
16179 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16180 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16182 if test "$GCC" = yes; then
16183 lt_prog_compiler_wl
='-Wl,'
16184 lt_prog_compiler_static
='-static'
16188 # All AIX code is PIC.
16189 if test "$host_cpu" = ia64
; then
16190 # AIX 5 now supports IA64 processor
16191 lt_prog_compiler_static
='-Bstatic'
16196 if test "$host_cpu" = m68k
; then
16197 # FIXME: we need at least 68020 code to build shared libraries, but
16198 # adding the `-m68020' flag to GCC prevents building anything better,
16200 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
16204 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16205 # PIC is the default for these OSes.
16208 mingw
* | cygwin
* | pw32
* | os2
*)
16209 # This hack is so that the source file can tell whether it is being
16210 # built for inclusion in a dll (and should export symbols for example).
16211 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16212 # (--disable-auto-import) libraries
16213 lt_prog_compiler_pic
='-DDLL_EXPORT'
16216 darwin
* | rhapsody
*)
16217 # PIC is the default on this platform
16218 # Common symbols not allowed in MH_DYLIB files
16219 lt_prog_compiler_pic
='-fno-common'
16223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16224 # not for PA HP-UX.
16230 lt_prog_compiler_pic
='-fPIC'
16236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16237 # Instead, we relocate shared libraries at runtime.
16241 # Just because we use GCC doesn't mean we suddenly get shared libraries
16242 # on systems that don't support them.
16243 lt_prog_compiler_can_build_shared
=no
16248 # QNX uses GNU C++, but need to define -shared option too, otherwise
16249 # it will coredump.
16250 lt_prog_compiler_pic
='-fPIC -shared'
16254 if test -d /usr
/nec
; then
16255 lt_prog_compiler_pic
=-Kconform_pic
16260 lt_prog_compiler_pic
='-fPIC'
16264 # PORTME Check for flag to pass linker flags through the system compiler.
16267 lt_prog_compiler_wl
='-Wl,'
16268 if test "$host_cpu" = ia64
; then
16269 # AIX 5 now supports IA64 processor
16270 lt_prog_compiler_static
='-Bstatic'
16272 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
16276 # PIC is the default on this platform
16277 # Common symbols not allowed in MH_DYLIB files
16278 case $cc_basename in
16280 lt_prog_compiler_pic
='-qnocommon'
16281 lt_prog_compiler_wl
='-Wl,'
16286 mingw
* | cygwin
* | pw32
* | os2
*)
16287 # This hack is so that the source file can tell whether it is being
16288 # built for inclusion in a dll (and should export symbols for example).
16289 lt_prog_compiler_pic
='-DDLL_EXPORT'
16292 hpux9
* | hpux10
* | hpux11
*)
16293 lt_prog_compiler_wl
='-Wl,'
16294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16295 # not for PA HP-UX.
16301 lt_prog_compiler_pic
='+Z'
16304 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16305 lt_prog_compiler_static
='${wl}-a ${wl}archive'
16308 irix5
* | irix6
* | nonstopux
*)
16309 lt_prog_compiler_wl
='-Wl,'
16310 # PIC (with -KPIC) is the default.
16311 lt_prog_compiler_static
='-non_shared'
16314 linux
* | k
*bsd
*-gnu)
16315 case $cc_basename in
16317 lt_prog_compiler_wl
='-Wl,'
16318 lt_prog_compiler_pic
='-KPIC'
16319 lt_prog_compiler_static
='-static'
16321 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16322 # Portland Group compilers (*not* the Pentium gcc compiler,
16323 # which looks to be a dead project)
16324 lt_prog_compiler_wl
='-Wl,'
16325 lt_prog_compiler_pic
='-fpic'
16326 lt_prog_compiler_static
='-Bstatic'
16329 lt_prog_compiler_wl
='-Wl,'
16330 # All Alpha code is PIC.
16331 lt_prog_compiler_static
='-non_shared'
16334 case `$CC -V 2>&1 | sed 5q` in
16337 lt_prog_compiler_pic
='-KPIC'
16338 lt_prog_compiler_static
='-Bstatic'
16339 lt_prog_compiler_wl
='-Wl,'
16342 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16343 lt_prog_compiler_pic
='-KPIC'
16344 lt_prog_compiler_static
='-Bstatic'
16345 lt_prog_compiler_wl
=''
16353 lt_prog_compiler_pic
='-KPIC'
16354 lt_prog_compiler_static
='-Bstatic'
16358 # QNX uses GNU C++, but need to define -shared option too, otherwise
16359 # it will coredump.
16360 lt_prog_compiler_pic
='-fPIC -shared'
16363 osf3
* | osf4
* | osf5
*)
16364 lt_prog_compiler_wl
='-Wl,'
16365 # All OSF/1 code is PIC.
16366 lt_prog_compiler_static
='-non_shared'
16370 lt_prog_compiler_static
='-non_shared'
16374 lt_prog_compiler_pic
='-KPIC'
16375 lt_prog_compiler_static
='-Bstatic'
16376 case $cc_basename in
16377 f77
* | f90
* | f95
*)
16378 lt_prog_compiler_wl
='-Qoption ld ';;
16380 lt_prog_compiler_wl
='-Wl,';;
16385 lt_prog_compiler_wl
='-Qoption ld '
16386 lt_prog_compiler_pic
='-PIC'
16387 lt_prog_compiler_static
='-Bstatic'
16390 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16391 lt_prog_compiler_wl
='-Wl,'
16392 lt_prog_compiler_pic
='-KPIC'
16393 lt_prog_compiler_static
='-Bstatic'
16397 if test -d /usr
/nec
;then
16398 lt_prog_compiler_pic
='-Kconform_pic'
16399 lt_prog_compiler_static
='-Bstatic'
16403 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16404 lt_prog_compiler_wl
='-Wl,'
16405 lt_prog_compiler_pic
='-KPIC'
16406 lt_prog_compiler_static
='-Bstatic'
16410 lt_prog_compiler_wl
='-Wl,'
16411 lt_prog_compiler_can_build_shared
=no
16415 lt_prog_compiler_pic
='-pic'
16416 lt_prog_compiler_static
='-Bstatic'
16420 lt_prog_compiler_can_build_shared
=no
16426 # For platforms which do not support PIC, -DPIC is meaningless:
16428 lt_prog_compiler_pic
=
16431 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
16434 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16435 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16443 # Check to make sure the PIC flag actually works.
16445 if test -n "$lt_prog_compiler_pic"; then
16446 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16447 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16448 if test "${lt_prog_compiler_pic_works+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 lt_prog_compiler_pic_works
=no
16452 ac_outfile
=conftest.
$ac_objext
16453 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16454 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
16455 # Insert the option either (1) after the last *FLAGS variable, or
16456 # (2) before a word containing "conftest.", or (3) at the end.
16457 # Note that $ac_compile itself does not contain backslashes and begins
16458 # with a dollar sign (not a hyphen), so the echo should work correctly.
16459 # The option is referenced via a variable to avoid confusing sed.
16460 lt_compile
=`echo "$ac_compile" | $SED \
16461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16463 -e 's:$: $lt_compiler_flag:'`
16464 (eval echo "\"\$as_me:16464: $lt_compile\"" >&5)
16465 (eval "$lt_compile" 2>conftest.err
)
16467 cat conftest.err
>&5
16468 echo "$as_me:16468: \$? = $ac_status" >&5
16469 if (exit $ac_status) && test -s "$ac_outfile"; then
16470 # The compiler can only warn and ignore the option if not recognized
16471 # So say no if there are warnings other than the usual output.
16472 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16473 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16474 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16475 lt_prog_compiler_pic_works
=yes
16481 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16482 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16484 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
16485 case $lt_prog_compiler_pic in
16487 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
16490 lt_prog_compiler_pic
=
16491 lt_prog_compiler_can_build_shared
=no
16502 # Check to make sure the static flag actually works.
16504 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
16505 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16506 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16507 if test "${lt_prog_compiler_static_works+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 lt_prog_compiler_static_works
=no
16511 save_LDFLAGS
="$LDFLAGS"
16512 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16513 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16514 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16515 # The linker can only warn and ignore the option if not recognized
16516 # So say no if there are warnings
16517 if test -s conftest.err
; then
16518 # Append any errors to the config.log.
16519 cat conftest.err
1>&5
16520 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16521 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16522 if diff conftest.exp conftest.er2
>/dev
/null
; then
16523 lt_prog_compiler_static_works
=yes
16526 lt_prog_compiler_static_works
=yes
16530 LDFLAGS
="$save_LDFLAGS"
16533 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16534 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16536 if test x
"$lt_prog_compiler_static_works" = xyes
; then
16539 lt_prog_compiler_static
=
16548 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16549 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16550 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 lt_cv_prog_compiler_c_o
=no
16554 $RM -r conftest
2>/dev
/null
16558 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16560 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16561 # Insert the option either (1) after the last *FLAGS variable, or
16562 # (2) before a word containing "conftest.", or (3) at the end.
16563 # Note that $ac_compile itself does not contain backslashes and begins
16564 # with a dollar sign (not a hyphen), so the echo should work correctly.
16565 lt_compile
=`echo "$ac_compile" | $SED \
16566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16568 -e 's:$: $lt_compiler_flag:'`
16569 (eval echo "\"\$as_me:16569: $lt_compile\"" >&5)
16570 (eval "$lt_compile" 2>out
/conftest.err
)
16572 cat out
/conftest.err
>&5
16573 echo "$as_me:16573: \$? = $ac_status" >&5
16574 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16576 # The compiler can only warn and ignore the option if not recognized
16577 # So say no if there are warnings
16578 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16579 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16580 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16581 lt_cv_prog_compiler_c_o
=yes
16586 # SGI C++ compiler will create directory out/ii_files/ for
16587 # template instantiation
16588 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
16589 $RM out
/* && rmdir out
16595 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16603 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16604 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16605 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 lt_cv_prog_compiler_c_o
=no
16609 $RM -r conftest
2>/dev
/null
16613 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16615 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16616 # Insert the option either (1) after the last *FLAGS variable, or
16617 # (2) before a word containing "conftest.", or (3) at the end.
16618 # Note that $ac_compile itself does not contain backslashes and begins
16619 # with a dollar sign (not a hyphen), so the echo should work correctly.
16620 lt_compile
=`echo "$ac_compile" | $SED \
16621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16623 -e 's:$: $lt_compiler_flag:'`
16624 (eval echo "\"\$as_me:16624: $lt_compile\"" >&5)
16625 (eval "$lt_compile" 2>out
/conftest.err
)
16627 cat out
/conftest.err
>&5
16628 echo "$as_me:16628: \$? = $ac_status" >&5
16629 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16631 # The compiler can only warn and ignore the option if not recognized
16632 # So say no if there are warnings
16633 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16634 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16635 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16636 lt_cv_prog_compiler_c_o
=yes
16641 # SGI C++ compiler will create directory out/ii_files/ for
16642 # template instantiation
16643 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
16644 $RM out
/* && rmdir out
16650 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16651 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16656 hard_links
="nottested"
16657 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
16658 # do not overwrite the value of need_locks provided by the user
16659 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16660 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16663 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16665 ln conftest.a conftest.b
2>&5 || hard_links
=no
16666 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16667 echo "$as_me:$LINENO: result: $hard_links" >&5
16668 echo "${ECHO_T}$hard_links" >&6
16669 if test "$hard_links" = no
; then
16670 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16671 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16683 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16684 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16687 allow_undefined_flag
=
16688 always_export_symbols
=no
16690 archive_expsym_cmds
=
16691 compiler_needs_object
=no
16692 enable_shared_with_static_runtimes
=no
16693 export_dynamic_flag_spec
=
16694 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16695 hardcode_automatic
=no
16697 hardcode_direct_absolute
=no
16698 hardcode_libdir_flag_spec
=
16699 hardcode_libdir_flag_spec_ld
=
16700 hardcode_libdir_separator
=
16701 hardcode_minus_L
=no
16702 hardcode_shlibpath_var
=unsupported
16704 link_all_deplibs
=unknown
16706 module_expsym_cmds
=
16707 old_archive_from_new_cmds
=
16708 old_archive_from_expsyms_cmds
=
16709 thread_safe_flag_spec
=
16710 whole_archive_flag_spec
=
16711 # include_expsyms should be a list of space-separated symbols to be *always*
16712 # included in the symbol list
16714 # exclude_expsyms can be an extended regexp of symbols to exclude
16715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16717 # as well as any symbol that contains `d'.
16718 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
16719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16720 # platforms (ab)use it in PIC code, but their linkers get confused if
16721 # the symbol is explicitly referenced. Since portable code cannot
16722 # rely on this symbol name, it's probably fine to never include it in
16723 # preloaded symbol tables.
16724 extract_expsyms_cmds
=
16727 cygwin
* | mingw
* | pw32
*)
16728 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16729 # When not using gcc, we currently assume that we are using
16730 # Microsoft Visual C++.
16731 if test "$GCC" != yes; then
16736 # we just hope/assume this is gcc and not c89 (= MSVC++)
16745 if test "$with_gnu_ld" = yes; then
16746 # If archive_cmds runs LD, not CC, wlarc should be empty
16749 # Set some defaults for GNU ld with shared library support. These
16750 # are reset later if shared libraries are not supported. Putting them
16751 # here allows them to be overridden if necessary.
16752 runpath_var
=LD_RUN_PATH
16753 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16754 export_dynamic_flag_spec
='${wl}--export-dynamic'
16755 # ancient GNU ld didn't support --whole-archive et. al.
16756 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
16757 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16759 whole_archive_flag_spec
=
16761 supports_anon_versioning
=no
16762 case `$LD -v 2>&1` in
16763 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16764 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16765 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16766 *\
2.11.
*) ;; # other 2.11 versions
16767 *) supports_anon_versioning
=yes ;;
16770 # See if GNU ld supports shared libraries.
16773 # On AIX/PPC, the GNU linker is very broken
16774 if test "$host_cpu" != ia64
; then
16778 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16779 *** to be unable to reliably create shared libraries on AIX.
16780 *** Therefore, libtool is disabling shared libraries support. If you
16781 *** really care for shared libraries, you may want to modify your PATH
16782 *** so that a non-GNU linker is found, and then restart.
16789 if test "$host_cpu" = m68k
; then
16790 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)'
16791 hardcode_libdir_flag_spec
='-L$libdir'
16792 hardcode_minus_L
=yes
16795 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16796 # that the semantics of dynamic libraries on AmigaOS, at least up
16797 # to version 4, is to share data among multiple programs linked
16798 # with the same dynamic library. Since this doesn't match the
16799 # behavior of shared libraries on other platforms, we can't use
16805 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16806 allow_undefined_flag
=unsupported
16807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16808 # support --undefined. This deserves some investigation. FIXME
16809 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16815 cygwin
* | mingw
* | pw32
*)
16816 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16817 # as there is no search path for DLLs.
16818 hardcode_libdir_flag_spec
='-L$libdir'
16819 allow_undefined_flag
=unsupported
16820 always_export_symbols
=no
16821 enable_shared_with_static_runtimes
=yes
16822 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16824 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16825 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16826 # If the export-symbols file already is a .def file (1st line
16827 # is EXPORTS), use it as is; otherwise, prepend...
16828 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16829 cp $export_symbols $output_objdir/$soname.def;
16831 echo EXPORTS > $output_objdir/$soname.def;
16832 cat $export_symbols >> $output_objdir/$soname.def;
16834 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16842 hardcode_shlibpath_var
=no
16843 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16844 export_dynamic_flag_spec
='${wl}-E'
16845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16846 # Instead, shared libraries are loaded at an image base (0x10000000 by
16847 # default) and relocated if they conflict, which is a slow very memory
16848 # consuming and fragmenting process. To avoid this, we pick a random,
16849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16850 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16851 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16852 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'
16855 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
16857 if test "$host_os" = linux-dietlibc
; then
16858 case $cc_basename in
16859 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16862 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16863 && test "$tmp_diet" = no
16866 case $cc_basename,$host_cpu in
16867 pgcc
*) # Portland Group C compiler
16868 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'
16869 tmp_addflag
=' $pic_flag'
16871 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16872 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'
16873 tmp_addflag
=' $pic_flag -Mnomain' ;;
16874 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16875 tmp_addflag
=' -i_dynamic' ;;
16876 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16877 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16878 ifc
* | ifort
*) # Intel Fortran compiler
16879 tmp_addflag
=' -nofor_main' ;;
16881 case `$CC -V 2>&1 | sed 5q` in
16882 *Sun\ C
*) # Sun C 5.9
16883 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'
16884 compiler_needs_object
=yes
16885 tmp_sharedflag
='-G' ;;
16886 *Sun\ F
*) # Sun Fortran 8.3
16887 tmp_sharedflag
='-G' ;;
16889 tmp_sharedflag
='-shared' ;;
16891 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16893 if test "x$supports_anon_versioning" = xyes
; then
16894 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16896 echo "local: *; };" >> $output_objdir/$libname.ver~
16897 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16905 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16906 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16909 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16910 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16915 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16920 *** create shared libraries on Solaris systems. Therefore, libtool
16921 *** is disabling shared libraries support. We urge you to upgrade GNU
16922 *** binutils to release 2.9.1 or newer. Another option is to modify
16923 *** your PATH or compiler configuration so that the native linker is
16924 *** used, and then restart.
16927 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16928 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16929 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16935 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16936 case `$LD -v 2>&1` in
16937 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16942 *** reliably create shared libraries on SCO systems. Therefore, libtool
16943 *** is disabling shared libraries support. We urge you to upgrade GNU
16944 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16945 *** your PATH or compiler configuration so that the native linker is
16946 *** used, and then restart.
16951 # For security reasons, it is highly recommended that you always
16952 # use absolute paths for naming shared libraries, and exclude the
16953 # DT_RUNPATH tag from executables and libraries. But doing so
16954 # requires that you compile everything twice, which is a pain.
16955 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16956 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16957 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16958 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16967 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16969 hardcode_direct
=yes
16970 hardcode_shlibpath_var
=no
16974 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16975 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16976 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16983 if test "$ld_shlibs" = no
; then
16985 hardcode_libdir_flag_spec
=
16986 export_dynamic_flag_spec
=
16987 whole_archive_flag_spec
=
16990 # PORTME fill in a description of your system's linker (not GNU ld)
16993 allow_undefined_flag
=unsupported
16994 always_export_symbols
=yes
16995 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'
16996 # Note: this linker hardcodes the directories in LIBPATH if there
16997 # are no directories specified by -L.
16998 hardcode_minus_L
=yes
16999 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17000 # Neither direct hardcoding nor static linking is supported with a
17002 hardcode_direct
=unsupported
17007 if test "$host_cpu" = ia64
; then
17008 # On IA64, the linker does run time linking by default, so we don't
17009 # have to do anything special.
17010 aix_use_runtimelinking
=no
17011 exp_sym_flag
='-Bexport'
17014 # If we're using GNU nm, then we don't want the "-C" option.
17015 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17016 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17017 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'
17019 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'
17021 aix_use_runtimelinking
=no
17023 # Test if we are trying to use run time linking or normal
17024 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17025 # need to do runtime linking.
17026 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17027 for ld_flag
in $LDFLAGS; do
17028 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17029 aix_use_runtimelinking
=yes
17036 exp_sym_flag
='-bexport'
17037 no_entry_flag
='-bnoentry'
17040 # When large executables or shared objects are built, AIX ld can
17041 # have problems creating the table of contents. If linking a library
17042 # or program results in "error TOC overflow" add -mminimal-toc to
17043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17047 hardcode_direct
=yes
17048 hardcode_direct_absolute
=yes
17049 hardcode_libdir_separator
=':'
17050 link_all_deplibs
=yes
17051 file_list_spec
='${wl}-f,'
17053 if test "$GCC" = yes; then
17054 case $host_os in aix4.
[012]|aix4.
[012].
*)
17055 # We only want to do this on AIX 4.2 and lower, the check
17056 # below for broken collect2 doesn't work under 4.3+
17057 collect2name
=`${CC} -print-prog-name=collect2`
17058 if test -f "$collect2name" &&
17059 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17061 # We have reworked collect2
17064 # We have old collect2
17065 hardcode_direct
=unsupported
17066 # It fails to find uninstalled libraries when the uninstalled
17067 # path is not listed in the libpath. Setting hardcode_minus_L
17068 # to unsupported forces relinking
17069 hardcode_minus_L
=yes
17070 hardcode_libdir_flag_spec
='-L$libdir'
17071 hardcode_libdir_separator
=
17075 shared_flag
='-shared'
17076 if test "$aix_use_runtimelinking" = yes; then
17077 shared_flag
="$shared_flag "'${wl}-G'
17081 if test "$host_cpu" = ia64
; then
17082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17083 # chokes on -Wl,-G. The following line is correct:
17086 if test "$aix_use_runtimelinking" = yes; then
17087 shared_flag
='${wl}-G'
17089 shared_flag
='${wl}-bM:SRE'
17094 # It seems that -bexpall does not export symbols beginning with
17095 # underscore (_), so it is better to generate a list of symbols to export.
17096 always_export_symbols
=yes
17097 if test "$aix_use_runtimelinking" = yes; then
17098 # Warning - without using the other runtime loading flags (-brtl),
17099 # -berok will link without error, but may produce a broken library.
17100 allow_undefined_flag
='-berok'
17101 # Determine the default libpath from the value encoded in an
17102 # empty executable.
17103 cat >conftest.
$ac_ext <<_ACEOF
17106 cat confdefs.h
>>conftest.
$ac_ext
17107 cat >>conftest.
$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17118 rm -f conftest.
$ac_objext conftest
$ac_exeext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17120 (eval $ac_link) 2>conftest.er1
17122 grep -v '^ *+' conftest.er1
>conftest.err
17124 cat conftest.err
>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try
='test -z "$ac_c_werror_flag"
17128 || test ! -s conftest.err'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; } &&
17134 { ac_try
='test -s conftest$ac_exeext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17141 lt_aix_libpath_sed
='
17142 /Import File Strings/,/^$/ {
17148 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17149 # Check for a 64-bit object if we didn't find anything.
17150 if test -z "$aix_libpath"; then
17151 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.
$ac_ext >&5
17158 rm -f conftest.err conftest.
$ac_objext \
17159 conftest
$ac_exeext conftest.
$ac_ext
17160 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17162 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17163 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"
17165 if test "$host_cpu" = ia64
; then
17166 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17167 allow_undefined_flag
="-z nodefs"
17168 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"
17170 # Determine the default libpath from the value encoded in an
17171 # empty executable.
17172 cat >conftest.
$ac_ext <<_ACEOF
17175 cat confdefs.h
>>conftest.
$ac_ext
17176 cat >>conftest.
$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17187 rm -f conftest.
$ac_objext conftest
$ac_exeext
17188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189 (eval $ac_link) 2>conftest.er1
17191 grep -v '^ *+' conftest.er1
>conftest.err
17193 cat conftest.err
>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
17196 { ac_try
='test -z "$ac_c_werror_flag"
17197 || test ! -s conftest.err'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try
='test -s conftest$ac_exeext'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17210 lt_aix_libpath_sed
='
17211 /Import File Strings/,/^$/ {
17217 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17218 # Check for a 64-bit object if we didn't find anything.
17219 if test -z "$aix_libpath"; then
17220 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.
$ac_ext >&5
17227 rm -f conftest.err conftest.
$ac_objext \
17228 conftest
$ac_exeext conftest.
$ac_ext
17229 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17231 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17232 # Warning - without using the other run time loading flags,
17233 # -berok will link without error, but may produce a broken library.
17234 no_undefined_flag
=' ${wl}-bernotok'
17235 allow_undefined_flag
=' ${wl}-berok'
17236 # Exported symbols can be pulled into shared objects from archives
17237 whole_archive_flag_spec
='$convenience'
17238 archive_cmds_need_lc
=yes
17239 # This is similar to how AIX traditionally builds its shared libraries.
17240 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'
17246 if test "$host_cpu" = m68k
; then
17247 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)'
17248 hardcode_libdir_flag_spec
='-L$libdir'
17249 hardcode_minus_L
=yes
17251 # see comment about different semantics on the GNU ld section
17256 export_dynamic_flag_spec
=-rdynamic
17259 cygwin
* | mingw
* | pw32
*)
17260 # When not using gcc, we currently assume that we are using
17261 # Microsoft Visual C++.
17262 # hardcode_libdir_flag_spec is actually meaningless, as there is
17263 # no search path for DLLs.
17264 hardcode_libdir_flag_spec
=' '
17265 allow_undefined_flag
=unsupported
17266 # Tell ltmain to make .lib files, not .a files.
17268 # Tell ltmain to make .dll files, not .so files.
17270 # FIXME: Setting linknames here is a bad hack.
17271 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17272 # The linker will automatically build a .lib file if we build a DLL.
17273 old_archive_from_new_cmds
='true'
17274 # FIXME: Should let the user specify the lib program.
17275 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17276 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17277 enable_shared_with_static_runtimes
=yes
17280 darwin
* | rhapsody
*)
17282 rhapsody
* | darwin1.
[012])
17283 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
17286 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17288 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17291 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
17296 archive_cmds_need_lc
=no
17298 hardcode_automatic
=yes
17299 hardcode_shlibpath_var
=unsupported
17300 whole_archive_flag_spec
=''
17301 link_all_deplibs
=yes
17302 if test "$GCC" = yes ; then
17303 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 lt_cv_apple_cc_single_mod
=no
17307 if test -z "${LT_MULTI_MODULE}"; then
17308 # By default we will add the -single_module flag. You can override
17309 # by either setting the environment variable LT_MULTI_MODULE
17310 # non-empty at configure time, or by adding -multi-module to the
17312 echo "int foo(void){return 1;}" > conftest.c
17313 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17314 -dynamiclib ${wl}-single_module conftest.c
17315 if test -f libconftest.dylib
; then
17316 lt_cv_apple_cc_single_mod
=yes
17317 rm libconftest.dylib
17319 rm conftest.
$ac_ext
17323 output_verbose_link_cmd
=echo
17324 if test "X$lt_cv_apple_cc_single_mod" = Xyes
; then
17325 archive_cmds
='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17326 archive_expsym_cmds
='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17328 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17329 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17331 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17332 module_expsym_cmds
='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17334 case $cc_basename in
17336 output_verbose_link_cmd
=echo
17337 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17338 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17339 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17340 archive_expsym_cmds
='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17341 module_expsym_cmds
='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17351 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17352 hardcode_libdir_flag_spec
='-L$libdir'
17353 hardcode_shlibpath_var
=no
17360 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17361 # support. Future versions do this automatically, but an explicit c++rt0.o
17362 # does not break anything, and helps significantly (at the cost of a little
17365 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17366 hardcode_libdir_flag_spec
='-R$libdir'
17367 hardcode_direct
=yes
17368 hardcode_shlibpath_var
=no
17371 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17373 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17374 hardcode_direct
=yes
17375 hardcode_minus_L
=yes
17376 hardcode_shlibpath_var
=no
17379 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17380 freebsd
* | dragonfly
*)
17381 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17382 hardcode_libdir_flag_spec
='-R$libdir'
17383 hardcode_direct
=yes
17384 hardcode_shlibpath_var
=no
17388 if test "$GCC" = yes; then
17389 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'
17391 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'
17393 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17394 hardcode_libdir_separator
=:
17395 hardcode_direct
=yes
17397 # hardcode_minus_L: Not really in the search PATH,
17398 # but as the default location of the library.
17399 hardcode_minus_L
=yes
17400 export_dynamic_flag_spec
='${wl}-E'
17404 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17405 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17407 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17409 if test "$with_gnu_ld" = no
; then
17410 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17411 hardcode_libdir_flag_spec_ld
='+b $libdir'
17412 hardcode_libdir_separator
=:
17413 hardcode_direct
=yes
17414 hardcode_direct_absolute
=yes
17415 export_dynamic_flag_spec
='${wl}-E'
17416 # hardcode_minus_L: Not really in the search PATH,
17417 # but as the default location of the library.
17418 hardcode_minus_L
=yes
17423 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17426 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17429 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17432 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17438 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17441 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17444 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17448 if test "$with_gnu_ld" = no
; then
17449 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17450 hardcode_libdir_separator
=:
17455 hardcode_shlibpath_var
=no
17458 hardcode_direct
=yes
17459 hardcode_direct_absolute
=yes
17460 export_dynamic_flag_spec
='${wl}-E'
17462 # hardcode_minus_L: Not really in the search PATH,
17463 # but as the default location of the library.
17464 hardcode_minus_L
=yes
17470 irix5
* | irix6
* | nonstopux
*)
17471 if test "$GCC" = yes; then
17472 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'
17473 # Try to use the -exported_symbol ld option, if it does not
17474 # work, assume that -exports_file does not work either and
17475 # implicitly export all symbols.
17476 save_LDFLAGS
="$LDFLAGS"
17477 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17478 cat >conftest.
$ac_ext <<_ACEOF
17481 rm -f conftest.
$ac_objext conftest
$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>conftest.er1
17485 grep -v '^ *+' conftest.er1
>conftest.err
17487 cat conftest.err
>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try
='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try
='test -s conftest$ac_exeext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 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'
17506 echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.
$ac_ext >&5
17510 rm -f conftest.err conftest.
$ac_objext \
17511 conftest
$ac_exeext conftest.
$ac_ext
17512 LDFLAGS
="$save_LDFLAGS"
17514 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'
17515 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'
17517 archive_cmds_need_lc
='no'
17518 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17519 hardcode_libdir_separator
=:
17521 link_all_deplibs
=yes
17525 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17526 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17528 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17530 hardcode_libdir_flag_spec
='-R$libdir'
17531 hardcode_direct
=yes
17532 hardcode_shlibpath_var
=no
17536 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17537 hardcode_direct
=yes
17538 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17539 hardcode_libdir_separator
=:
17540 hardcode_shlibpath_var
=no
17547 hardcode_direct
=yes
17548 hardcode_shlibpath_var
=no
17549 hardcode_direct_absolute
=yes
17550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17551 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17552 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17553 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17554 export_dynamic_flag_spec
='${wl}-E'
17557 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17558 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17559 hardcode_libdir_flag_spec
='-R$libdir'
17562 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17563 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17570 hardcode_libdir_flag_spec
='-L$libdir'
17571 hardcode_minus_L
=yes
17572 allow_undefined_flag
=unsupported
17573 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'
17574 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17578 if test "$GCC" = yes; then
17579 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17580 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'
17582 allow_undefined_flag
=' -expect_unresolved \*'
17583 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'
17585 archive_cmds_need_lc
='no'
17586 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17587 hardcode_libdir_separator
=:
17590 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17591 if test "$GCC" = yes; then
17592 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17593 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'
17594 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17596 allow_undefined_flag
=' -expect_unresolved \*'
17597 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'
17598 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~
17599 $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'
17601 # Both c and cxx compiler support -rpath directly
17602 hardcode_libdir_flag_spec
='-rpath $libdir'
17604 archive_cmds_need_lc
='no'
17605 hardcode_libdir_separator
=:
17609 no_undefined_flag
=' -z defs'
17610 if test "$GCC" = yes; then
17612 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17613 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17614 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17616 case `$CC -V 2>&1` in
17619 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17625 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17626 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17627 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17631 hardcode_libdir_flag_spec
='-R$libdir'
17632 hardcode_shlibpath_var
=no
17634 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17636 # The compiler driver will combine and reorder linker options,
17637 # but understands `-z linker_flag'. GCC discards it without `$wl',
17638 # but is careful enough not to reorder.
17639 # Supported since Solaris 2.6 (maybe 2.5.1?)
17640 if test "$GCC" = yes; then
17641 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17643 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17647 link_all_deplibs
=yes
17651 if test "x$host_vendor" = xsequent
; then
17652 # Use $CC to link under sequent, because it throws in some extra .o
17653 # files that make .init and .fini sections work.
17654 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17656 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17658 hardcode_libdir_flag_spec
='-L$libdir'
17659 hardcode_direct
=yes
17660 hardcode_minus_L
=yes
17661 hardcode_shlibpath_var
=no
17665 case $host_vendor in
17667 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17668 hardcode_direct
=yes # is this really true???
17671 ## LD is ld it makes a PLAMLIB
17672 ## CC just makes a GrossModule.
17673 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17674 reload_cmds
='$CC -r -o $output$reload_objs'
17678 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17682 runpath_var
='LD_RUN_PATH'
17683 hardcode_shlibpath_var
=no
17687 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17688 hardcode_shlibpath_var
=no
17689 export_dynamic_flag_spec
='-Bexport'
17693 if test -d /usr
/nec
; then
17694 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17695 hardcode_shlibpath_var
=no
17696 runpath_var
=LD_RUN_PATH
17697 hardcode_runpath_var
=yes
17702 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17703 no_undefined_flag
='${wl}-z,text'
17704 archive_cmds_need_lc
=no
17705 hardcode_shlibpath_var
=no
17706 runpath_var
='LD_RUN_PATH'
17708 if test "$GCC" = yes; then
17709 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17710 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17712 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17713 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17717 sysv5
* | sco3.2v5
* | sco5v6
*)
17718 # Note: We can NOT use -z defs as we might desire, because we do not
17719 # link with -lc, and that would cause any symbols used from libc to
17720 # always be unresolved, which means just about no library would
17721 # ever link correctly. If we're not using GNU ld we use -z text
17722 # though, which does catch some bad symbols but isn't as heavy-handed
17724 no_undefined_flag
='${wl}-z,text'
17725 allow_undefined_flag
='${wl}-z,nodefs'
17726 archive_cmds_need_lc
=no
17727 hardcode_shlibpath_var
=no
17728 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17729 hardcode_libdir_separator
=':'
17730 link_all_deplibs
=yes
17731 export_dynamic_flag_spec
='${wl}-Bexport'
17732 runpath_var
='LD_RUN_PATH'
17734 if test "$GCC" = yes; then
17735 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17736 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17738 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17739 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17744 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17745 hardcode_libdir_flag_spec
='-L$libdir'
17746 hardcode_shlibpath_var
=no
17754 if test x
$host_vendor = xsni
; then
17756 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17757 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17763 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
17764 echo "${ECHO_T}$ld_shlibs" >&6
17765 test "$ld_shlibs" = no
&& can_build_shared
=no
17767 with_gnu_ld
=$with_gnu_ld
17784 # Do we need to explicitly link libc?
17786 case "x$archive_cmds_need_lc" in
17788 # Assume -lc should be added
17789 archive_cmds_need_lc
=yes
17791 if test "$enable_shared" = yes && test "$GCC" = yes; then
17792 case $archive_cmds in
17794 # FIXME: we may have to deal with multi-command sequences.
17797 # Test whether the compiler implicitly links with -lc since on some
17798 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17799 # to ld, don't add -lc before -lgcc.
17800 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17801 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17803 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17806 (eval $ac_compile) 2>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } 2>conftest.err
; then
17812 libobjs
=conftest.
$ac_objext
17814 wl
=$lt_prog_compiler_wl
17815 pic_flag
=$lt_prog_compiler_pic
17821 lt_save_allow_undefined_flag
=$allow_undefined_flag
17822 allow_undefined_flag
=
17823 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17824 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }
17829 archive_cmds_need_lc
=no
17831 archive_cmds_need_lc
=yes
17833 allow_undefined_flag
=$lt_save_allow_undefined_flag
17835 cat conftest.err
1>&5
17838 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
17839 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18002 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18005 if test "$withGCC" = yes; then
18007 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18008 *) lt_awk_arg
="/^libraries:/" ;;
18010 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18011 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
18012 # if the path contains ";" then we assume it to be the separator
18013 # otherwise default to the standard path separator (i.e. ":") - it is
18014 # assumed that no part of a normal pathname contains ";" but that should
18015 # okay in the real world where ";" in dirpaths is itself problematic.
18016 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18018 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18020 # Ok, now we have the path, separated by spaces, we can step through it
18021 # and add multilib dir if necessary.
18022 lt_tmp_lt_search_path_spec
=
18023 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18024 for lt_sys_path
in $lt_search_path_spec; do
18025 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18026 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18028 test -d "$lt_sys_path" && \
18029 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18032 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18033 BEGIN {RS=" "; FS="/|\n";} {
18036 for (lt_i = NF; lt_i > 0; lt_i--) {
18037 if ($lt_i != "" && $lt_i != ".") {
18038 if ($lt_i == "..") {
18041 if (lt_count == 0) {
18042 lt_foo="/" $lt_i lt_foo;
18049 if (lt_foo != "") { lt_freq[lt_foo]++; }
18050 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18052 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
18054 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18056 library_names_spec
=
18057 libname_spec
='lib$name'
18061 postuninstall_cmds
=
18065 shlibpath_overrides_runpath
=unknown
18067 dynamic_linker
="$host_os ld.so"
18068 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18069 need_lib_prefix
=unknown
18070 hardcode_into_libs
=no
18072 # when you set need_version to no, make sure it does not cause -set_version
18073 # flags to be left without arguments
18074 need_version
=unknown
18079 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18080 shlibpath_var
=LIBPATH
18082 # AIX 3 has no versioning support, so we append a major version to the name.
18083 soname_spec
='${libname}${release}${shared_ext}$major'
18090 hardcode_into_libs
=yes
18091 if test "$host_cpu" = ia64
; then
18092 # AIX 5 supports IA64
18093 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18094 shlibpath_var
=LD_LIBRARY_PATH
18096 # With GCC up to 2.95.x, collect2 would create an import file
18097 # for dependence libraries. The import file would start with
18098 # the line `#! .'. This would cause the generated library to
18099 # depend on `.', always an invalid library. This was fixed in
18100 # development snapshots of GCC prior to 3.0.
18102 aix4 | aix4.
[01] | aix4.
[01].
*)
18103 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18105 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18108 can_build_shared
=no
18112 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18113 # soname into executable. Probably we can add versioning support to
18114 # collect2, so additional links can be useful in future.
18115 if test "$aix_use_runtimelinking" = yes; then
18116 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18117 # instead of lib<name>.a to let people know that these are not
18118 # typical AIX shared libraries.
18119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121 # We preserve .a as extension for shared libraries through AIX4.2
18122 # and later when we are not doing run time linking.
18123 library_names_spec
='${libname}${release}.a $libname.a'
18124 soname_spec
='${libname}${release}${shared_ext}$major'
18126 shlibpath_var
=LIBPATH
18131 if test "$host_cpu" = m68k
; then
18132 library_names_spec
='$libname.ixlibrary $libname.a'
18133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18134 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'
18141 library_names_spec
='${libname}${shared_ext}'
18142 dynamic_linker
="$host_os ld.so"
18143 shlibpath_var
=LIBRARY_PATH
18149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18150 soname_spec
='${libname}${release}${shared_ext}$major'
18151 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18152 shlibpath_var
=LD_LIBRARY_PATH
18153 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18154 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18155 # the default ld.so.conf also contains /usr/contrib/lib and
18156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18157 # libtool to hard-code these into programs
18160 cygwin
* | mingw
* | pw32
*)
18161 version_type
=windows
18166 case $withGCC,$host_os in
18167 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18168 library_names_spec
='$libname.dll.a'
18169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18170 postinstall_cmds
='base_file=`basename \${file}`~
18171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18172 dldir=$destdir/`dirname \$dlpath`~
18173 test -d \$dldir || mkdir -p \$dldir~
18174 $install_prog $dir/$dlname \$dldir/$dlname~
18175 chmod a+x \$dldir/$dlname~
18176 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18177 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18179 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18180 dlpath=$dir/\$dldll~
18182 shlibpath_overrides_runpath
=yes
18186 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18187 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18188 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18191 # MinGW DLLs use traditional 'lib' prefix
18192 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18193 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18194 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
18195 # It is most probably a Windows format PATH printed by
18196 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18197 # path with ; separators, and with drive letters. We can handle the
18198 # drive letters (cygwin fileutils understands them), so leave them,
18199 # especially as we might pass files found there to a mingw objdump,
18200 # which wouldn't understand a cygwinified path. Ahh.
18201 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18203 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18207 # pw32 DLLs use 'pw' prefix rather than 'lib'
18208 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18214 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18217 dynamic_linker
='Win32 ld.exe'
18218 # FIXME: first we should search . and the directory the executable is in
18222 darwin
* | rhapsody
*)
18223 dynamic_linker
="$host_os dyld"
18224 version_type
=darwin
18227 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18228 soname_spec
='${libname}${release}${major}$shared_ext'
18229 shlibpath_overrides_runpath
=yes
18230 shlibpath_var
=DYLD_LIBRARY_PATH
18231 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18233 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18234 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18241 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18242 soname_spec
='${libname}${release}${shared_ext}$major'
18243 shlibpath_var
=LD_LIBRARY_PATH
18250 freebsd
* | dragonfly
*)
18251 # DragonFly does not have aout. When/if they implement a new
18252 # versioning mechanism, adjust this.
18253 if test -x /usr
/bin
/objformat
; then
18254 objformat
=`/usr/bin/objformat`
18257 freebsd
[123]*) objformat
=aout
;;
18258 *) objformat
=elf
;;
18261 version_type
=freebsd-
$objformat
18262 case $version_type in
18264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18269 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18273 shlibpath_var
=LD_LIBRARY_PATH
18276 shlibpath_overrides_runpath
=yes
18278 freebsd3.
[01]* | freebsdelf3.
[01]*)
18279 shlibpath_overrides_runpath
=yes
18280 hardcode_into_libs
=yes
18282 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18283 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18284 shlibpath_overrides_runpath
=no
18285 hardcode_into_libs
=yes
18287 *) # from 4.6 on, and DragonFly
18288 shlibpath_overrides_runpath
=yes
18289 hardcode_into_libs
=yes
18298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18299 soname_spec
='${libname}${release}${shared_ext}$major'
18300 shlibpath_var
=LD_LIBRARY_PATH
18301 hardcode_into_libs
=yes
18304 hpux9
* | hpux10
* | hpux11
*)
18305 # Give a soname corresponding to the major version so that dld.sl refuses to
18306 # link against other versions.
18313 hardcode_into_libs
=yes
18314 dynamic_linker
="$host_os dld.so"
18315 shlibpath_var
=LD_LIBRARY_PATH
18316 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318 soname_spec
='${libname}${release}${shared_ext}$major'
18319 if test "X$HPUX_IA64_MODE" = X32
; then
18320 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18322 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18324 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18328 hardcode_into_libs
=yes
18329 dynamic_linker
="$host_os dld.sl"
18330 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18331 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333 soname_spec
='${libname}${release}${shared_ext}$major'
18334 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18335 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18339 dynamic_linker
="$host_os dld.sl"
18340 shlibpath_var
=SHLIB_PATH
18341 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343 soname_spec
='${libname}${release}${shared_ext}$major'
18346 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18347 postinstall_cmds
='chmod 555 $lib'
18354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18355 soname_spec
='${libname}${release}${shared_ext}$major'
18356 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18357 shlibpath_var
=LD_LIBRARY_PATH
18358 shlibpath_overrides_runpath
=no
18359 hardcode_into_libs
=yes
18362 irix5
* | irix6
* | nonstopux
*)
18364 nonstopux
*) version_type
=nonstopux
;;
18366 if test "$lt_cv_prog_gnu_ld" = yes; then
18374 soname_spec
='${libname}${release}${shared_ext}$major'
18375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18377 irix5
* | nonstopux
*)
18378 libsuff
= shlibsuff
=
18381 case $LD in # libtool.m4 will add one of these switches to LD
18382 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18383 libsuff
= shlibsuff
= libmagic
=32-bit;;
18384 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18385 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18386 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18387 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18388 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18392 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18393 shlibpath_overrides_runpath
=no
18394 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18395 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18396 hardcode_into_libs
=yes
18399 # No shared lib support for Linux oldld, aout, or coff.
18400 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18404 # This must be Linux ELF.
18405 linux
* | k
*bsd
*-gnu)
18409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18410 soname_spec
='${libname}${release}${shared_ext}$major'
18411 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18412 shlibpath_var
=LD_LIBRARY_PATH
18413 shlibpath_overrides_runpath
=no
18414 # Some binutils ld are patched to set DT_RUNPATH
18415 save_LDFLAGS
=$LDFLAGS
18416 save_libdir
=$libdir
18417 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18418 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18419 cat >conftest.
$ac_ext <<_ACEOF
18422 cat confdefs.h
>>conftest.
$ac_ext
18423 cat >>conftest.
$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18434 rm -f conftest.
$ac_objext conftest
$ac_exeext
18435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18436 (eval $ac_link) 2>conftest.er1
18438 grep -v '^ *+' conftest.er1
>conftest.err
18440 cat conftest.err
>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); } &&
18443 { ac_try
='test -z "$ac_c_werror_flag"
18444 || test ! -s conftest.err'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; } &&
18450 { ac_try
='test -s conftest$ac_exeext'
18451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452 (eval $ac_try) 2>&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; }; then
18456 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir"; then
18457 shlibpath_overrides_runpath
=yes
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.
$ac_ext >&5
18465 rm -f conftest.err conftest.
$ac_objext \
18466 conftest
$ac_exeext conftest.
$ac_ext
18467 LDFLAGS
=$save_LDFLAGS
18468 libdir
=$save_libdir
18470 # This implies no fast_install, which is unacceptable.
18471 # Some rework will be needed to allow for fast_install
18472 # before this can be enabled.
18473 hardcode_into_libs
=yes
18475 # Append ld.so.conf contents to the search path
18476 if test -f /etc
/ld.so.conf
; then
18477 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18478 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18481 # We used to test for /lib/ld.so.1 and disable shared libraries on
18482 # powerpc, because MkLinux only supported shared libraries with the
18483 # GNU dynamic linker. Since this was broken with cross compilers,
18484 # most powerpc-linux boxes support dynamic linking these days and
18485 # people can always --disable-shared, the test was removed, and we
18486 # assume the GNU/Linux dynamic linker is in use.
18487 dynamic_linker
='GNU/Linux ld.so'
18494 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18496 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18497 dynamic_linker
='NetBSD (a.out) ld.so'
18499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18500 soname_spec
='${libname}${release}${shared_ext}$major'
18501 dynamic_linker
='NetBSD ld.elf_so'
18503 shlibpath_var
=LD_LIBRARY_PATH
18504 shlibpath_overrides_runpath
=yes
18505 hardcode_into_libs
=yes
18510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18511 shlibpath_var
=LD_LIBRARY_PATH
18512 shlibpath_overrides_runpath
=yes
18519 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18520 soname_spec
='${libname}${release}${shared_ext}$major'
18521 shlibpath_var
=LD_LIBRARY_PATH
18522 shlibpath_overrides_runpath
=no
18523 hardcode_into_libs
=yes
18524 dynamic_linker
='ldqnx.so'
18529 sys_lib_dlsearch_path_spec
="/usr/lib"
18531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18533 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18534 *) need_version
=no
;;
18536 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18537 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18538 shlibpath_var
=LD_LIBRARY_PATH
18539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18541 openbsd2.
[89] | openbsd2.
[89].
*)
18542 shlibpath_overrides_runpath
=no
18545 shlibpath_overrides_runpath
=yes
18549 shlibpath_overrides_runpath
=yes
18554 libname_spec
='$name'
18557 library_names_spec
='$libname${shared_ext} $libname.a'
18558 dynamic_linker
='OS/2 ld.exe'
18559 shlibpath_var
=LIBPATH
18562 osf3
* | osf4
* | osf5
*)
18566 soname_spec
='${libname}${release}${shared_ext}$major'
18567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 shlibpath_var
=LD_LIBRARY_PATH
18569 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18570 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582 soname_spec
='${libname}${release}${shared_ext}$major'
18583 shlibpath_var
=LD_LIBRARY_PATH
18584 shlibpath_overrides_runpath
=yes
18585 hardcode_into_libs
=yes
18586 # ldd complains unless libraries are executable
18587 postinstall_cmds
='chmod +x $lib'
18592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18593 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18594 shlibpath_var
=LD_LIBRARY_PATH
18595 shlibpath_overrides_runpath
=yes
18596 if test "$with_gnu_ld" = yes; then
18604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18605 soname_spec
='${libname}${release}${shared_ext}$major'
18606 shlibpath_var
=LD_LIBRARY_PATH
18607 case $host_vendor in
18609 shlibpath_overrides_runpath
=no
18611 runpath_var
=LD_RUN_PATH
18619 shlibpath_overrides_runpath
=no
18620 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18626 if test -d /usr
/nec
;then
18628 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18629 soname_spec
='$libname${shared_ext}.$major'
18630 shlibpath_var
=LD_LIBRARY_PATH
18634 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18635 version_type
=freebsd-elf
18638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18639 soname_spec
='${libname}${release}${shared_ext}$major'
18640 shlibpath_var
=LD_LIBRARY_PATH
18641 shlibpath_overrides_runpath
=yes
18642 hardcode_into_libs
=yes
18643 if test "$with_gnu_ld" = yes; then
18644 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18646 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18649 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18653 sys_lib_dlsearch_path_spec
='/usr/lib'
18657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18661 library_name_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18662 shlibpath_var
=LD_LIBRARY_PATH
18663 shlibpath_overrides_runpath
=no
18664 hardcode_into_libs
=yes
18669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18670 soname_spec
='${libname}${release}${shared_ext}$major'
18671 shlibpath_var
=LD_LIBRARY_PATH
18678 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18679 echo "${ECHO_T}$dynamic_linker" >&6
18680 test "$dynamic_linker" = no
&& can_build_shared
=no
18682 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18683 if test "$GCC" = yes; then
18684 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18773 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18774 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18776 if test -n "$hardcode_libdir_flag_spec" ||
18777 test -n "$runpath_var" ||
18778 test "X$hardcode_automatic" = "Xyes" ; then
18780 # We can hardcode non-existent directories.
18781 if test "$hardcode_direct" != no
&&
18782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18783 # have to relink, otherwise we might link with an installed library
18784 # when we should be linking with a yet-to-be-installed one
18785 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18786 test "$hardcode_minus_L" != no
; then
18787 # Linking always hardcodes the temporary library directory.
18788 hardcode_action
=relink
18790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18791 hardcode_action
=immediate
18794 # We cannot hardcode anything, or else we can only hardcode existing
18796 hardcode_action
=unsupported
18798 echo "$as_me:$LINENO: result: $hardcode_action" >&5
18799 echo "${ECHO_T}$hardcode_action" >&6
18801 if test "$hardcode_action" = relink ||
18802 test "$inherit_rpath" = yes; then
18803 # Fast installation is not supported
18804 enable_fast_install
=no
18805 elif test "$shlibpath_overrides_runpath" = yes ||
18806 test "$enable_shared" = no
; then
18807 # Fast installation is not necessary
18808 enable_fast_install
=needless
18816 if test "x$enable_dlopen" != xyes
; then
18817 enable_dlopen
=unknown
18818 enable_dlopen_self
=unknown
18819 enable_dlopen_self_static
=unknown
18826 lt_cv_dlopen
="load_add_on"
18828 lt_cv_dlopen_self
=yes
18832 lt_cv_dlopen
="LoadLibrary"
18837 lt_cv_dlopen
="dlopen"
18842 # if libdl is installed we need to link against it
18843 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18844 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 ac_check_lib_save_LIBS
=$LIBS
18850 cat >conftest.
$ac_ext <<_ACEOF
18853 cat confdefs.h
>>conftest.
$ac_ext
18854 cat >>conftest.
$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18857 /* Override any gcc2 internal prototype to avoid an error. */
18861 /* We use char because int might match the return type of a gcc2
18862 builtin and then its argument prototype would still apply. */
18872 rm -f conftest.
$ac_objext conftest
$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874 (eval $ac_link) 2>conftest.er1
18876 grep -v '^ *+' conftest.er1
>conftest.err
18878 cat conftest.err
>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try
='test -z "$ac_c_werror_flag"
18882 || test ! -s conftest.err'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try
='test -s conftest$ac_exeext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_lib_dl_dlopen
=yes
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.
$ac_ext >&5
18899 ac_cv_lib_dl_dlopen
=no
18901 rm -f conftest.err conftest.
$ac_objext \
18902 conftest
$ac_exeext conftest.
$ac_ext
18903 LIBS
=$ac_check_lib_save_LIBS
18905 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18906 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18907 if test $ac_cv_lib_dl_dlopen = yes; then
18908 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18911 lt_cv_dlopen
="dyld"
18913 lt_cv_dlopen_self
=yes
18920 echo "$as_me:$LINENO: checking for shl_load" >&5
18921 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18922 if test "${ac_cv_func_shl_load+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 cat >conftest.
$ac_ext <<_ACEOF
18928 cat confdefs.h
>>conftest.
$ac_ext
18929 cat >>conftest.
$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18931 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18933 #define shl_load innocuous_shl_load
18935 /* System header to define __stub macros and hopefully few prototypes,
18936 which can conflict with char shl_load (); below.
18937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18938 <limits.h> exists even on freestanding compilers. */
18941 # include <limits.h>
18943 # include <assert.h>
18948 /* Override any gcc2 internal prototype to avoid an error. */
18953 /* We use char because int might match the return type of a gcc2
18954 builtin and then its argument prototype would still apply. */
18956 /* The GNU C library defines this for functions which it implements
18957 to always fail with ENOSYS. Some functions are actually named
18958 something starting with __ and the normal name is an alias. */
18959 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18962 char (*f) () = shl_load;
18971 return f != shl_load;
18976 rm -f conftest.
$ac_objext conftest
$ac_exeext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18978 (eval $ac_link) 2>conftest.er1
18980 grep -v '^ *+' conftest.er1
>conftest.err
18982 cat conftest.err
>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
18985 { ac_try
='test -z "$ac_c_werror_flag"
18986 || test ! -s conftest.err'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try
='test -s conftest$ac_exeext'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18998 ac_cv_func_shl_load
=yes
19000 echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.
$ac_ext >&5
19003 ac_cv_func_shl_load
=no
19005 rm -f conftest.err conftest.
$ac_objext \
19006 conftest
$ac_exeext conftest.
$ac_ext
19008 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19009 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19010 if test $ac_cv_func_shl_load = yes; then
19011 lt_cv_dlopen
="shl_load"
19013 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19014 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19015 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19018 ac_check_lib_save_LIBS
=$LIBS
19020 cat >conftest.
$ac_ext <<_ACEOF
19023 cat confdefs.h
>>conftest.
$ac_ext
19024 cat >>conftest.
$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19027 /* Override any gcc2 internal prototype to avoid an error. */
19031 /* We use char because int might match the return type of a gcc2
19032 builtin and then its argument prototype would still apply. */
19042 rm -f conftest.
$ac_objext conftest
$ac_exeext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19044 (eval $ac_link) 2>conftest.er1
19046 grep -v '^ *+' conftest.er1
>conftest.err
19048 cat conftest.err
>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } &&
19051 { ac_try
='test -z "$ac_c_werror_flag"
19052 || test ! -s conftest.err'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try
='test -s conftest$ac_exeext'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 ac_cv_lib_dld_shl_load
=yes
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.
$ac_ext >&5
19069 ac_cv_lib_dld_shl_load
=no
19071 rm -f conftest.err conftest.
$ac_objext \
19072 conftest
$ac_exeext conftest.
$ac_ext
19073 LIBS
=$ac_check_lib_save_LIBS
19075 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19076 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19077 if test $ac_cv_lib_dld_shl_load = yes; then
19078 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
19080 echo "$as_me:$LINENO: checking for dlopen" >&5
19081 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19082 if test "${ac_cv_func_dlopen+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19085 cat >conftest.
$ac_ext <<_ACEOF
19088 cat confdefs.h
>>conftest.
$ac_ext
19089 cat >>conftest.
$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19093 #define dlopen innocuous_dlopen
19095 /* System header to define __stub macros and hopefully few prototypes,
19096 which can conflict with char dlopen (); below.
19097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19098 <limits.h> exists even on freestanding compilers. */
19101 # include <limits.h>
19103 # include <assert.h>
19108 /* Override any gcc2 internal prototype to avoid an error. */
19113 /* We use char because int might match the return type of a gcc2
19114 builtin and then its argument prototype would still apply. */
19116 /* The GNU C library defines this for functions which it implements
19117 to always fail with ENOSYS. Some functions are actually named
19118 something starting with __ and the normal name is an alias. */
19119 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19122 char (*f) () = dlopen;
19131 return f != dlopen;
19136 rm -f conftest.
$ac_objext conftest
$ac_exeext
19137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19138 (eval $ac_link) 2>conftest.er1
19140 grep -v '^ *+' conftest.er1
>conftest.err
19142 cat conftest.err
>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
19145 { ac_try
='test -z "$ac_c_werror_flag"
19146 || test ! -s conftest.err'
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try
='test -s conftest$ac_exeext'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_cv_func_dlopen
=yes
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.
$ac_ext >&5
19163 ac_cv_func_dlopen
=no
19165 rm -f conftest.err conftest.
$ac_objext \
19166 conftest
$ac_exeext conftest.
$ac_ext
19168 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19169 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19170 if test $ac_cv_func_dlopen = yes; then
19171 lt_cv_dlopen
="dlopen"
19173 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19174 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 ac_check_lib_save_LIBS
=$LIBS
19180 cat >conftest.
$ac_ext <<_ACEOF
19183 cat confdefs.h
>>conftest.
$ac_ext
19184 cat >>conftest.
$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19187 /* Override any gcc2 internal prototype to avoid an error. */
19191 /* We use char because int might match the return type of a gcc2
19192 builtin and then its argument prototype would still apply. */
19202 rm -f conftest.
$ac_objext conftest
$ac_exeext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204 (eval $ac_link) 2>conftest.er1
19206 grep -v '^ *+' conftest.er1
>conftest.err
19208 cat conftest.err
>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } &&
19211 { ac_try
='test -z "$ac_c_werror_flag"
19212 || test ! -s conftest.err'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try
='test -s conftest$ac_exeext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_cv_lib_dl_dlopen
=yes
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.
$ac_ext >&5
19229 ac_cv_lib_dl_dlopen
=no
19231 rm -f conftest.err conftest.
$ac_objext \
19232 conftest
$ac_exeext conftest.
$ac_ext
19233 LIBS
=$ac_check_lib_save_LIBS
19235 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19236 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19237 if test $ac_cv_lib_dl_dlopen = yes; then
19238 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19240 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19241 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19242 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 ac_check_lib_save_LIBS
=$LIBS
19246 LIBS
="-lsvld $LIBS"
19247 cat >conftest.
$ac_ext <<_ACEOF
19250 cat confdefs.h
>>conftest.
$ac_ext
19251 cat >>conftest.
$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19254 /* Override any gcc2 internal prototype to avoid an error. */
19258 /* We use char because int might match the return type of a gcc2
19259 builtin and then its argument prototype would still apply. */
19269 rm -f conftest.
$ac_objext conftest
$ac_exeext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19271 (eval $ac_link) 2>conftest.er1
19273 grep -v '^ *+' conftest.er1
>conftest.err
19275 cat conftest.err
>&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try
='test -z "$ac_c_werror_flag"
19279 || test ! -s conftest.err'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try
='test -s conftest$ac_exeext'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291 ac_cv_lib_svld_dlopen
=yes
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.
$ac_ext >&5
19296 ac_cv_lib_svld_dlopen
=no
19298 rm -f conftest.err conftest.
$ac_objext \
19299 conftest
$ac_exeext conftest.
$ac_ext
19300 LIBS
=$ac_check_lib_save_LIBS
19302 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19303 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19304 if test $ac_cv_lib_svld_dlopen = yes; then
19305 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19307 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19308 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19309 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 ac_check_lib_save_LIBS
=$LIBS
19314 cat >conftest.
$ac_ext <<_ACEOF
19317 cat confdefs.h
>>conftest.
$ac_ext
19318 cat >>conftest.
$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19321 /* Override any gcc2 internal prototype to avoid an error. */
19325 /* We use char because int might match the return type of a gcc2
19326 builtin and then its argument prototype would still apply. */
19336 rm -f conftest.
$ac_objext conftest
$ac_exeext
19337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19338 (eval $ac_link) 2>conftest.er1
19340 grep -v '^ *+' conftest.er1
>conftest.err
19342 cat conftest.err
>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } &&
19345 { ac_try
='test -z "$ac_c_werror_flag"
19346 || test ! -s conftest.err'
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; } &&
19352 { ac_try
='test -s conftest$ac_exeext'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 ac_cv_lib_dld_dld_link
=yes
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.
$ac_ext >&5
19363 ac_cv_lib_dld_dld_link
=no
19365 rm -f conftest.err conftest.
$ac_objext \
19366 conftest
$ac_exeext conftest.
$ac_ext
19367 LIBS
=$ac_check_lib_save_LIBS
19369 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19370 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19371 if test $ac_cv_lib_dld_dld_link = yes; then
19372 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
19393 if test "x$lt_cv_dlopen" != xno
; then
19399 case $lt_cv_dlopen in
19401 save_CPPFLAGS
="$CPPFLAGS"
19402 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19404 save_LDFLAGS
="$LDFLAGS"
19405 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19408 LIBS
="$lt_cv_dlopen_libs $LIBS"
19410 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19411 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19412 if test "${lt_cv_dlopen_self+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 if test "$cross_compiling" = yes; then :
19416 lt_cv_dlopen_self
=cross
19418 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19419 lt_status
=$lt_dlunknown
19420 cat > conftest.
$ac_ext <<_LT_EOF
19421 #line 19421 "configure"
19422 #include "confdefs.h"
19431 # define LT_DLGLOBAL RTLD_GLOBAL
19434 # define LT_DLGLOBAL DL_GLOBAL
19436 # define LT_DLGLOBAL 0
19440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19441 find out it does not work in some platform. */
19442 #ifndef LT_DLLAZY_OR_NOW
19444 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19447 # define LT_DLLAZY_OR_NOW DL_LAZY
19450 # define LT_DLLAZY_OR_NOW RTLD_NOW
19453 # define LT_DLLAZY_OR_NOW DL_NOW
19455 # define LT_DLLAZY_OR_NOW 0
19463 extern "C" void exit (int);
19466 void fnord() { int i=42;}
19469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19470 int status = $lt_dlunknown;
19474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19475 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19476 /* dlclose (self); */
19484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19485 (eval $ac_link) 2>&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19489 (.
/conftest
; exit; ) >&5 2>/dev
/null
19491 case x
$lt_status in
19492 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19493 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19494 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19497 # compilation failed
19498 lt_cv_dlopen_self
=no
19505 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19506 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19508 if test "x$lt_cv_dlopen_self" = xyes
; then
19509 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19510 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19511 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19512 if test "${lt_cv_dlopen_self_static+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 if test "$cross_compiling" = yes; then :
19516 lt_cv_dlopen_self_static
=cross
19518 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19519 lt_status
=$lt_dlunknown
19520 cat > conftest.
$ac_ext <<_LT_EOF
19521 #line 19521 "configure"
19522 #include "confdefs.h"
19531 # define LT_DLGLOBAL RTLD_GLOBAL
19534 # define LT_DLGLOBAL DL_GLOBAL
19536 # define LT_DLGLOBAL 0
19540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19541 find out it does not work in some platform. */
19542 #ifndef LT_DLLAZY_OR_NOW
19544 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19547 # define LT_DLLAZY_OR_NOW DL_LAZY
19550 # define LT_DLLAZY_OR_NOW RTLD_NOW
19553 # define LT_DLLAZY_OR_NOW DL_NOW
19555 # define LT_DLLAZY_OR_NOW 0
19563 extern "C" void exit (int);
19566 void fnord() { int i=42;}
19569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19570 int status = $lt_dlunknown;
19574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19575 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19576 /* dlclose (self); */
19584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19585 (eval $ac_link) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19589 (.
/conftest
; exit; ) >&5 2>/dev
/null
19591 case x
$lt_status in
19592 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19593 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19594 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19597 # compilation failed
19598 lt_cv_dlopen_self_static
=no
19605 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19606 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19609 CPPFLAGS
="$save_CPPFLAGS"
19610 LDFLAGS
="$save_LDFLAGS"
19615 case $lt_cv_dlopen_self in
19616 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19617 *) enable_dlopen_self
=unknown
;;
19620 case $lt_cv_dlopen_self_static in
19621 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19622 *) enable_dlopen_self_static
=unknown
;;
19644 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19645 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19646 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19647 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19648 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19649 echo "$as_me:$LINENO: result: yes" >&5
19650 echo "${ECHO_T}yes" >&6
19652 # FIXME - insert some real tests, host_os isn't really good enough
19655 if test -n "$STRIP" ; then
19656 striplib
="$STRIP -x"
19657 old_striplib
="$STRIP -S"
19658 echo "$as_me:$LINENO: result: yes" >&5
19659 echo "${ECHO_T}yes" >&6
19661 echo "$as_me:$LINENO: result: no" >&5
19662 echo "${ECHO_T}no" >&6
19666 echo "$as_me:$LINENO: result: no" >&5
19667 echo "${ECHO_T}no" >&6
19683 # Report which library types will actually be built
19684 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19685 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19686 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19687 echo "${ECHO_T}$can_build_shared" >&6
19689 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19690 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19691 test "$can_build_shared" = "no" && enable_shared
=no
19693 # On AIX, shared libraries and static libraries use the same namespace, and
19694 # are all built from PIC.
19697 test "$enable_shared" = yes && enable_static
=no
19698 if test -n "$RANLIB"; then
19699 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19700 postinstall_cmds
='$RANLIB $lib'
19705 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19706 test "$enable_shared" = yes && enable_static
=no
19710 echo "$as_me:$LINENO: result: $enable_shared" >&5
19711 echo "${ECHO_T}$enable_shared" >&6
19713 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19714 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19715 # Make sure either enable_shared or enable_static is yes.
19716 test "$enable_shared" = yes || enable_static
=yes
19717 echo "$as_me:$LINENO: result: $enable_static" >&5
19718 echo "${ECHO_T}$enable_static" >&6
19725 ac_cpp
='$CPP $CPPFLAGS'
19726 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19747 # Only expand once:
19753 # Identify the assembler which will work hand-in-glove with the newly
19754 # built GCC, so that we can examine its features. This is the assembler
19755 # which will be driven by the driver program.
19757 # If build != host, and we aren't building gas in-tree, we identify a
19758 # build->target assembler and hope that it will have the same features
19759 # as the host->target assembler we'll be using.
19760 gcc_cv_gas_major_version
=
19761 gcc_cv_gas_minor_version
=
19762 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
19764 if test "${gcc_cv_as+set}" = set; then
19768 if test -x "$DEFAULT_ASSEMBLER"; then
19769 gcc_cv_as
="$DEFAULT_ASSEMBLER"
19770 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
19771 && test -f ..
/gas
/Makefile \
19772 && test x
$build = x
$host; then
19773 gcc_cv_as
=..
/gas
/as-new
$build_exeext
19774 elif test -x as
$build_exeext; then
19775 # Build using assembler in the current directory.
19776 gcc_cv_as
=.
/as
$build_exeext
19777 elif test -x $AS_FOR_TARGET; then
19778 gcc_cv_as
="$AS_FOR_TARGET"
19780 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
19781 set dummy
$AS_FOR_TARGET; ac_word
=$2
19782 echo "$as_me:$LINENO: checking for $ac_word" >&5
19783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19784 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
19792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19793 for as_dir
in $PATH
19796 test -z "$as_dir" && as_dir
=.
19797 for ac_exec_ext
in '' $ac_executable_extensions; do
19798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19799 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
19800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19809 gcc_cv_as
=$ac_cv_path_gcc_cv_as
19811 if test -n "$gcc_cv_as"; then
19812 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
19813 echo "${ECHO_T}$gcc_cv_as" >&6
19815 echo "$as_me:$LINENO: result: no" >&5
19816 echo "${ECHO_T}no" >&6
19823 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
19825 case "$ORIGINAL_AS_FOR_TARGET" in
19826 .
/as | .
/as
$build_exeext) ;;
19827 *) ac_config_files
="$ac_config_files as:exec-tool.in"
19831 echo "$as_me:$LINENO: checking what assembler to use" >&5
19832 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
19833 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
19834 # Single tree build which includes gas. We want to prefer it
19835 # over whatever linker top-level may have detected, since
19836 # we'll use what we're building after installation anyway.
19837 echo "$as_me:$LINENO: result: newly built gas" >&5
19838 echo "${ECHO_T}newly built gas" >&6
19840 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
19841 for f
in $gcc_cv_as_bfd_srcdir/configure \
19842 $gcc_cv_as_gas_srcdir/configure \
19843 $gcc_cv_as_gas_srcdir/configure.
in \
19844 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
19845 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
19846 if test x
$gcc_cv_gas_version != x
; then
19850 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
19851 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
19852 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
19853 case $gcc_cv_gas_patch_version in
19854 "") gcc_cv_gas_patch_version
="0" ;;
19856 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
19857 + $gcc_cv_gas_minor_version \) \* 1000 \
19858 + $gcc_cv_gas_patch_version`
19860 in_tree_gas_is_elf
=no
19861 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
19862 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
19863 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
19865 in_tree_gas_is_elf
=yes
19868 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
19869 echo "${ECHO_T}$gcc_cv_as" >&6
19873 # Identify the linker which will work hand-in-glove with the newly
19874 # built GCC, so that we can examine its features. This is the linker
19875 # which will be driven by the driver program.
19877 # If build != host, and we aren't building gas in-tree, we identify a
19878 # build->target linker and hope that it will have the same features
19879 # as the host->target linker we'll be using.
19880 gcc_cv_gld_major_version
=
19881 gcc_cv_gld_minor_version
=
19882 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
19883 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
19885 if test "${gcc_cv_ld+set}" = set; then
19889 if test -x "$DEFAULT_LINKER"; then
19890 gcc_cv_ld
="$DEFAULT_LINKER"
19891 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
19892 && test -f ..
/ld
/Makefile \
19893 && test x
$build = x
$host; then
19894 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
19895 elif test -x collect-ld
$build_exeext; then
19896 # Build using linker in the current directory.
19897 gcc_cv_ld
=.
/collect-ld
$build_exeext
19898 elif test -x $LD_FOR_TARGET; then
19899 gcc_cv_ld
="$LD_FOR_TARGET"
19901 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
19902 set dummy
$LD_FOR_TARGET; ac_word
=$2
19903 echo "$as_me:$LINENO: checking for $ac_word" >&5
19904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19905 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
19913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19914 for as_dir
in $PATH
19917 test -z "$as_dir" && as_dir
=.
19918 for ac_exec_ext
in '' $ac_executable_extensions; do
19919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19920 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
19921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19930 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
19932 if test -n "$gcc_cv_ld"; then
19933 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
19934 echo "${ECHO_T}$gcc_cv_ld" >&6
19936 echo "$as_me:$LINENO: result: no" >&5
19937 echo "${ECHO_T}no" >&6
19944 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
19946 case "$ORIGINAL_LD_FOR_TARGET" in
19947 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
19948 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
19952 echo "$as_me:$LINENO: checking what linker to use" >&5
19953 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
19954 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
19955 # Single tree build which includes ld. We want to prefer it
19956 # over whatever linker top-level may have detected, since
19957 # we'll use what we're building after installation anyway.
19958 echo "$as_me:$LINENO: result: newly built ld" >&5
19959 echo "${ECHO_T}newly built ld" >&6
19961 in_tree_ld_is_elf
=no
19962 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
19963 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
19964 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
19965 in_tree_ld_is_elf
=yes
19967 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
19969 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
19970 if test x
$gcc_cv_gld_version != x
; then
19974 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
19975 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
19977 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
19978 echo "${ECHO_T}$gcc_cv_ld" >&6
19982 # Figure out what nm we will be using.
19983 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
19984 if test "${gcc_cv_nm+set}" = set; then
19988 if test -f $gcc_cv_binutils_srcdir/configure.
in \
19989 && test -f ..
/binutils
/Makefile \
19990 && test x
$build = x
$host; then
19991 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
19992 elif test -x nm
$build_exeext; then
19993 gcc_cv_nm
=.
/nm
$build_exeext
19994 elif test -x $NM_FOR_TARGET; then
19995 gcc_cv_nm
="$NM_FOR_TARGET"
19997 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
19998 set dummy
$NM_FOR_TARGET; ac_word
=$2
19999 echo "$as_me:$LINENO: checking for $ac_word" >&5
20000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20001 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20010 for as_dir
in $PATH
20013 test -z "$as_dir" && as_dir
=.
20014 for ac_exec_ext
in '' $ac_executable_extensions; do
20015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20016 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20026 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20028 if test -n "$gcc_cv_nm"; then
20029 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20030 echo "${ECHO_T}$gcc_cv_nm" >&6
20032 echo "$as_me:$LINENO: result: no" >&5
20033 echo "${ECHO_T}no" >&6
20040 echo "$as_me:$LINENO: checking what nm to use" >&5
20041 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20042 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20043 # Single tree build which includes binutils.
20044 echo "$as_me:$LINENO: result: newly built nm" >&5
20045 echo "${ECHO_T}newly built nm" >&6
20048 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20049 echo "${ECHO_T}$gcc_cv_nm" >&6
20053 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20055 case "$ORIGINAL_NM_FOR_TARGET" in
20056 .
/nm | .
/nm
$build_exeext) ;;
20057 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20062 # Figure out what objdump we will be using.
20063 if test "${gcc_cv_objdump+set}" = set; then
20067 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20068 && test -f ..
/binutils
/Makefile \
20069 && test x
$build = x
$host; then
20070 # Single tree build which includes binutils.
20071 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20072 elif test -x objdump
$build_exeext; then
20073 gcc_cv_objdump
=.
/objdump
$build_exeext
20074 elif test -x $OBJDUMP_FOR_TARGET; then
20075 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20077 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20078 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20079 echo "$as_me:$LINENO: checking for $ac_word" >&5
20080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20081 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 case $gcc_cv_objdump in
20086 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20090 for as_dir
in $PATH
20093 test -z "$as_dir" && as_dir
=.
20094 for ac_exec_ext
in '' $ac_executable_extensions; do
20095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20096 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20106 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20108 if test -n "$gcc_cv_objdump"; then
20109 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20110 echo "${ECHO_T}$gcc_cv_objdump" >&6
20112 echo "$as_me:$LINENO: result: no" >&5
20113 echo "${ECHO_T}no" >&6
20120 echo "$as_me:$LINENO: checking what objdump to use" >&5
20121 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20122 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20123 # Single tree build which includes binutils.
20124 echo "$as_me:$LINENO: result: newly built objdump" >&5
20125 echo "${ECHO_T}newly built objdump" >&6
20126 elif test x
$gcc_cv_objdump = x
; then
20127 echo "$as_me:$LINENO: result: not found" >&5
20128 echo "${ECHO_T}not found" >&6
20130 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20131 echo "${ECHO_T}$gcc_cv_objdump" >&6
20134 # Figure out what assembler alignment features are present.
20135 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20136 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20137 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 gcc_cv_as_balign_and_p2align
=no
20141 if test $in_tree_gas = yes; then
20142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20143 then gcc_cv_as_balign_and_p2align
=yes
20145 elif test x
$gcc_cv_as != x
; then
20147 .p2align 2' > conftest.s
20148 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }
20155 gcc_cv_as_balign_and_p2align
=yes
20157 echo "configure: failed program was" >&5
20160 rm -f conftest.o conftest.s
20163 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20164 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20165 if test $gcc_cv_as_balign_and_p2align = yes; then
20167 cat >>confdefs.h
<<\_ACEOF
20168 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20173 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20174 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20175 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20176 echo $ECHO_N "(cached) $ECHO_C" >&6
20178 gcc_cv_as_max_skip_p2align
=no
20179 if test $in_tree_gas = yes; then
20180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20181 then gcc_cv_as_max_skip_p2align
=yes
20183 elif test x
$gcc_cv_as != x
; then
20184 echo '.p2align 4,,7' > conftest.s
20185 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }
20192 gcc_cv_as_max_skip_p2align
=yes
20194 echo "configure: failed program was" >&5
20197 rm -f conftest.o conftest.s
20200 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20201 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20202 if test $gcc_cv_as_max_skip_p2align = yes; then
20204 cat >>confdefs.h
<<\_ACEOF
20205 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20210 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20211 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20212 if test "${gcc_cv_as_literal16+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 gcc_cv_as_literal16
=no
20216 if test $in_tree_gas = yes; then
20217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20218 then gcc_cv_as_literal16
=yes
20220 elif test x
$gcc_cv_as != x
; then
20221 echo '.literal16' > conftest.s
20222 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }
20229 gcc_cv_as_literal16
=yes
20231 echo "configure: failed program was" >&5
20234 rm -f conftest.o conftest.s
20237 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20238 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20239 if test $gcc_cv_as_literal16 = yes; then
20241 cat >>confdefs.h
<<\_ACEOF
20242 #define HAVE_GAS_LITERAL16 1
20247 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20248 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20249 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 gcc_cv_as_subsection_m1
=no
20253 if test $in_tree_gas = yes; then
20254 if test $in_tree_gas_is_elf = yes \
20255 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20256 then gcc_cv_as_subsection_m1
=yes
20258 elif test x
$gcc_cv_as != x
; then
20259 echo 'conftest_label1: .word 0
20261 conftest_label2: .word 0
20262 .previous' > conftest.s
20263 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }
20270 if test x
$gcc_cv_nm != x
; then
20271 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
20272 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
20273 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
20275 else gcc_cv_as_subsection_m1
=yes
20277 rm -f conftest.nm1 conftest.nm2
20280 echo "configure: failed program was" >&5
20283 rm -f conftest.o conftest.s
20286 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20287 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20288 if test $gcc_cv_as_subsection_m1 = yes; then
20290 cat >>confdefs.h
<<\_ACEOF
20291 #define HAVE_GAS_SUBSECTION_ORDERING 1
20296 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20297 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20298 if test "${gcc_cv_as_weak+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20302 if test $in_tree_gas = yes; then
20303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20304 then gcc_cv_as_weak
=yes
20306 elif test x
$gcc_cv_as != x
; then
20307 echo ' .weak foobar' > conftest.s
20308 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }
20317 echo "configure: failed program was" >&5
20320 rm -f conftest.o conftest.s
20323 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20324 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20325 if test $gcc_cv_as_weak = yes; then
20327 cat >>confdefs.h
<<\_ACEOF
20328 #define HAVE_GAS_WEAK 1
20333 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20334 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20335 if test "${gcc_cv_as_weakref+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 gcc_cv_as_weakref
=no
20339 if test $in_tree_gas = yes; then
20340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20341 then gcc_cv_as_weakref
=yes
20343 elif test x
$gcc_cv_as != x
; then
20344 echo ' .weakref foobar, barfnot' > conftest.s
20345 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }
20352 gcc_cv_as_weakref
=yes
20354 echo "configure: failed program was" >&5
20357 rm -f conftest.o conftest.s
20360 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20361 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20362 if test $gcc_cv_as_weakref = yes; then
20364 cat >>confdefs.h
<<\_ACEOF
20365 #define HAVE_GAS_WEAKREF 1
20370 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20371 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20372 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20375 gcc_cv_as_nsubspa_comdat
=no
20376 if test $in_tree_gas = yes; then
20377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20378 then gcc_cv_as_nsubspa_comdat
=yes
20380 elif test x
$gcc_cv_as != x
; then
20381 echo ' .SPACE $TEXT$
20382 .NSUBSPA $CODE$,COMDAT' > conftest.s
20383 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }
20390 gcc_cv_as_nsubspa_comdat
=yes
20392 echo "configure: failed program was" >&5
20395 rm -f conftest.o conftest.s
20398 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20399 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20400 if test $gcc_cv_as_nsubspa_comdat = yes; then
20402 cat >>confdefs.h
<<\_ACEOF
20403 #define HAVE_GAS_NSUBSPA_COMDAT 1
20408 # .hidden needs to be supported in both the assembler and the linker,
20409 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20410 # This is irritatingly difficult to feature test for; we have to check the
20411 # date string after the version number. If we've got an in-tree
20412 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20414 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20415 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20416 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20417 if test "${gcc_cv_as_hidden+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 gcc_cv_as_hidden
=no
20421 if test $in_tree_gas = yes; then
20422 if test $in_tree_gas_is_elf = yes \
20423 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20424 then gcc_cv_as_hidden
=yes
20426 elif test x
$gcc_cv_as != x
; then
20427 echo ' .hidden foobar
20428 foobar:' > conftest.s
20429 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }
20436 gcc_cv_as_hidden
=yes
20438 echo "configure: failed program was" >&5
20441 rm -f conftest.o conftest.s
20444 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20445 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20448 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20449 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20450 if test "${gcc_cv_ld_hidden+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20453 if test $in_tree_ld = yes ; then
20454 gcc_cv_ld_hidden
=no
20455 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 \
20456 && test $in_tree_ld_is_elf = yes; then
20457 gcc_cv_ld_hidden
=yes
20460 gcc_cv_ld_hidden
=yes
20461 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20462 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
20463 ld_vers
=`echo $ld_ver | sed -n \
20464 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20465 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'`
20466 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
20467 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20468 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20469 if test 0"$ld_date" -lt 20020404; then
20470 if test -n "$ld_date"; then
20471 # If there was date string, but was earlier than 2002-04-04, fail
20472 gcc_cv_ld_hidden
=no
20473 elif test -z "$ld_vers"; then
20474 # If there was no date string nor ld version number, something is wrong
20475 gcc_cv_ld_hidden
=no
20477 test -z "$ld_vers_patch" && ld_vers_patch
=0
20478 if test "$ld_vers_major" -lt 2; then
20479 gcc_cv_ld_hidden
=no
20480 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20481 gcc_cv_ld_hidden
="no"
20482 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20483 gcc_cv_ld_hidden
=no
20488 case "${target}" in
20489 hppa64
*-*-hpux* | ia64
*-*-hpux*)
20490 gcc_cv_ld_hidden
=yes
20493 gcc_cv_ld_hidden
=no
20499 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20500 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20501 libgcc_visibility
=no
20504 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20505 libgcc_visibility
=yes
20507 cat >>confdefs.h
<<\_ACEOF
20508 #define HAVE_GAS_HIDDEN 1
20513 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20514 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20515 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20516 if test "${gcc_cv_as_leb128+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20519 gcc_cv_as_leb128
=no
20520 if test $in_tree_gas = yes; then
20521 if test $in_tree_gas_is_elf = yes \
20522 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20523 then gcc_cv_as_leb128
=yes
20525 elif test x
$gcc_cv_as != x
; then
20532 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }
20539 # GAS versions before 2.11 do not support uleb128,
20540 # despite appearing to.
20541 # ??? There exists an elf-specific test that will crash
20542 # the assembler. Perhaps it's better to figure out whether
20543 # arbitrary sections are supported and try the test.
20544 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20545 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
20546 as_vers
=`echo $as_ver | sed -n \
20547 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20548 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
20549 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20550 if test $as_major -eq 2 && test $as_minor -lt 11
20552 else gcc_cv_as_leb128
=yes
20556 echo "configure: failed program was" >&5
20559 rm -f conftest.o conftest.s
20562 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20563 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20564 if test $gcc_cv_as_leb128 = yes; then
20566 cat >>confdefs.h
<<\_ACEOF
20567 #define HAVE_AS_LEB128 1
20572 # GAS versions up to and including 2.11.0 may mis-optimize
20574 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20575 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20576 if test "${gcc_cv_as_eh_frame+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 gcc_cv_as_eh_frame
=no
20580 if test $in_tree_gas = yes; then
20581 if test $in_tree_gas_is_elf = yes \
20582 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20583 then gcc_cv_as_eh_frame
=yes
20585 elif test x
$gcc_cv_as != x
; then
20592 .section .eh_frame,"aw",@progbits
20594 .4byte .LECIE1-.LSCIE1
20608 .4byte .LEFDE1-.LASFDE1
20610 .4byte .LASFDE1-__FRAME_BEGIN__
20617 .LEFDE1:' > conftest.s
20618 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }
20625 cat > conftest.lit
<<EOF
20626 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20627 0010 01000000 12000000 18000000 00000000 ................
20628 0020 08000000 04080000 0044 .........D
20630 cat > conftest.big
<<EOF
20631 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20632 0010 00000001 00000012 00000018 00000000 ................
20633 0020 00000008 04000000 0844 .........D
20635 # If the assembler didn't choke, and we can objdump,
20636 # and we got the correct data, then succeed.
20637 # The text in the here-document typically retains its unix-style line
20638 # endings, while the output of objdump will use host line endings.
20639 # Therefore, use diff -b for the comparisons.
20640 if test x
$gcc_cv_objdump != x \
20641 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
20642 |
tail -3 > conftest.got \
20643 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
20644 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
20646 gcc_cv_as_eh_frame
=yes
20647 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649 (eval $ac_try) 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 gcc_cv_as_eh_frame
=buggy
20655 # Uh oh, what do we do now?
20656 gcc_cv_as_eh_frame
=no
20659 echo "configure: failed program was" >&5
20662 rm -f conftest.o conftest.s
20665 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20666 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20669 if test $gcc_cv_as_eh_frame = buggy
; then
20671 cat >>confdefs.h
<<\_ACEOF
20672 #define USE_AS_TRADITIONAL_FORMAT 1
20677 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20678 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20679 if test "${gcc_cv_as_shf_merge+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 gcc_cv_as_shf_merge
=no
20683 if test $in_tree_gas = yes; then
20684 if test $in_tree_gas_is_elf = yes \
20685 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20686 then gcc_cv_as_shf_merge
=yes
20688 elif test x
$gcc_cv_as != x
; then
20689 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20690 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }
20697 gcc_cv_as_shf_merge
=yes
20699 echo "configure: failed program was" >&5
20702 rm -f conftest.o conftest.s
20705 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20706 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20708 if test $gcc_cv_as_shf_merge = no
; then
20709 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20710 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20711 if test "${gcc_cv_as_shf_merge+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 gcc_cv_as_shf_merge
=no
20715 if test $in_tree_gas = yes; then
20716 if test $in_tree_gas_is_elf = yes \
20717 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20718 then gcc_cv_as_shf_merge
=yes
20720 elif test x
$gcc_cv_as != x
; then
20721 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20722 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }
20729 gcc_cv_as_shf_merge
=yes
20731 echo "configure: failed program was" >&5
20734 rm -f conftest.o conftest.s
20737 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20738 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20742 cat >>confdefs.h
<<_ACEOF
20743 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
20747 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20748 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20749 if test "${gcc_cv_as_comdat_group+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 gcc_cv_as_comdat_group
=no
20753 if test $in_tree_gas = yes; then
20754 if test $in_tree_gas_is_elf = yes \
20755 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20756 then gcc_cv_as_comdat_group
=yes
20758 elif test x
$gcc_cv_as != x
; then
20759 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
20760 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }
20767 gcc_cv_as_comdat_group
=yes
20769 echo "configure: failed program was" >&5
20772 rm -f conftest.o conftest.s
20775 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
20776 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
20778 if test $gcc_cv_as_comdat_group = yes; then
20779 gcc_cv_as_comdat_group_percent
=no
20781 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20782 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20783 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 gcc_cv_as_comdat_group_percent
=no
20787 if test $in_tree_gas = yes; then
20788 if test $in_tree_gas_is_elf = yes \
20789 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20790 then gcc_cv_as_comdat_group_percent
=yes
20792 elif test x
$gcc_cv_as != x
; then
20793 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
20794 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }
20801 gcc_cv_as_comdat_group_percent
=yes
20803 echo "configure: failed program was" >&5
20806 rm -f conftest.o conftest.s
20809 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
20810 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
20813 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
20815 if test 0"$ld_date" -lt 20050308; then
20816 if test -n "$ld_date"; then
20817 # If there was date string, but was earlier than 2005-03-08, fail
20819 elif test "$ld_vers_major" -lt 2; then
20821 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
20826 # assume linkers other than GNU ld don't support COMDAT group
20829 if test $comdat_group = no
; then
20830 gcc_cv_as_comdat_group
=no
20831 gcc_cv_as_comdat_group_percent
=no
20834 cat >>confdefs.h
<<_ACEOF
20835 #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`
20839 # Thread-local storage - the check is heavily parametrized.
20847 .section ".tdata","awT",@progbits
20850 ldq $27,__tls_get_addr($29) !literal!1
20851 lda $16,foo($29) !tlsgd!1
20852 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
20853 ldq $27,__tls_get_addr($29) !literal!2
20854 lda $16,foo($29) !tlsldm!2
20855 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
20856 ldq $1,foo($29) !gotdtprel
20857 ldah $2,foo($29) !dtprelhi
20858 lda $3,foo($2) !dtprello
20859 lda $4,foo($29) !dtprel
20860 ldq $1,foo($29) !gottprel
20861 ldah $2,foo($29) !tprelhi
20862 lda $3,foo($2) !tprello
20863 lda $4,foo($29) !tprel'
20866 tls_as_opt
=--fatal-warnings
20870 .section ".tdata","awT",@progbits
20873 call #gettlsoff(x)'
20882 .section ".tdata","awT",@progbits
20886 addil LT%foo-$tls_gdidx$,gp
20887 ldo RT%foo-$tls_gdidx$(%r1),%arg0
20890 addil LT%foo-$tls_ldidx$,gp
20892 ldo RT%foo-$tls_ldidx$(%r1),%arg0
20893 addil LR%foo-$tls_dtpoff$,%ret0
20894 ldo RR%foo-$tls_dtpoff$(%r1),%t1
20896 addil LT%foo-$tls_ieoff$,gp
20897 ldw RT%foo-$tls_ieoff$(%r1),%t2
20900 addil LR%foo-$tls_leoff$,%t1
20901 ldo RR%foo-$tls_leoff$(%r1),%t2'
20904 tls_as_opt
=--fatal-warnings
20908 .section ".tdata","awT",%progbits
20911 .word foo(gottpoff)
20921 .section ".tdata","awT",@progbits
20925 leal foo@TLSGD(,%ebx,1), %eax
20926 leal foo@TLSLDM(%ebx), %eax
20927 leal foo@DTPOFF(%eax), %edx
20928 movl foo@GOTTPOFF(%ebx), %eax
20929 subl foo@GOTTPOFF(%ebx), %eax
20930 addl foo@GOTNTPOFF(%ebx), %eax
20931 movl foo@INDNTPOFF, %eax
20932 movl $foo@TPOFF, %eax
20933 subl $foo@TPOFF, %eax
20934 leal foo@NTPOFF(%ecx), %eax'
20937 tls_as_opt
=--fatal-warnings
20941 .section ".tdata","awT",@progbits
20945 leaq foo@TLSGD(%rip), %rdi
20946 leaq foo@TLSLD(%rip), %rdi
20947 leaq foo@DTPOFF(%rax), %rdx
20948 movq foo@GOTTPOFF(%rip), %rax
20949 movq $foo@TPOFF, %rax'
20952 tls_as_opt
=--fatal-warnings
20956 .section ".tdata","awT",@progbits
20959 addl r16 = @ltoff(@dtpmod(foo#)), gp
20960 addl r17 = @ltoff(@dtprel(foo#)), gp
20961 addl r18 = @ltoff(@tprel(foo#)), gp
20962 addl r19 = @dtprel(foo#), gp
20963 adds r21 = @dtprel(foo#), r13
20964 movl r23 = @dtprel(foo#)
20965 addl r20 = @tprel(foo#), gp
20966 adds r22 = @tprel(foo#), r13
20967 movl r24 = @tprel(foo#)'
20970 tls_as_opt
=--fatal-warnings
20974 .section .tdata,"awT",@progbits
20978 addiu $4, $28, %tlsgd(x)
20979 addiu $4, $28, %tlsldm(x)
20980 lui $4, %dtprel_hi(x)
20981 addiu $4, $4, %dtprel_lo(x)
20982 lw $4, %gottprel(x)($28)
20983 lui $4, %tprel_hi(x)
20984 addiu $4, $4, %tprel_lo(x)'
20987 tls_as_opt
='-32 --fatal-warnings'
20991 .section ".tdata","awT",@progbits
20999 addi 3,31,ld0@got@tlsgd
21001 addi 3,31,x1@got@tlsld
21004 addis 9,3,x2@dtprel@ha
21005 addi 9,9,x2@dtprel@l
21006 lwz 9,x3@got@tprel(31)
21009 addis 9,2,x2@tprel@ha
21010 addi 9,9,x2@tprel@l'
21013 tls_as_opt
="-a32 --fatal-warnings"
21017 .section ".tdata","awT",@progbits
21025 addi 3,2,ld0@got@tlsgd
21031 addi 3,2,x1@got@tlsld
21037 addis 9,3,x2@dtprel@ha
21038 addi 9,9,x2@dtprel@l
21041 ld 9,x3@got@dtprel(2)
21047 tls_as_opt
="-a64 --fatal-warnings"
21051 .section ".tdata","awT",@progbits
21058 .long foo@GOTNTPOFF
21059 .long foo@INDNTPOFF
21060 l %r1,foo@GOTNTPOFF(%r12)
21061 l %r1,0(%r1):tls_load:foo
21062 bas %r14,0(%r1,%r13):tls_gdcall:foo
21063 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21066 tls_as_opt
="-m31 --fatal-warnings"
21070 .section ".tdata","awT",@progbits
21077 .quad foo@GOTNTPOFF
21078 lg %r1,foo@GOTNTPOFF(%r12)
21079 larl %r1,foo@INDNTPOFF
21080 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21081 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21084 tls_as_opt
="-m64 -Aesame --fatal-warnings"
21086 sh-
*-* | sh
[34]-*-*)
21088 .section ".tdata","awT",@progbits
21098 tls_as_opt
=--fatal-warnings
21102 sparc
*-sun-solaris2.
[56789]*)
21103 # TLS was introduced in the Solaris 9 4/04 release but
21104 # we do not enable it by default on Solaris 9 either.
21105 if test "x$enable_tls" = xyes
; then
21111 sparc
*-sun-solaris2.
*)
21118 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
21120 .section ".tdata",#alloc,#write,#tls
21123 sethi %tgd_hi22(foo), %o0
21124 add %o0, %tgd_lo10(foo), %o1
21125 add %l7, %o1, %o0, %tgd_add(foo)
21126 call __tls_get_addr, %tgd_call(foo)
21127 sethi %tldm_hi22(foo), %l1
21128 add %l1, %tldm_lo10(foo), %l2
21129 add %l7, %l2, %o0, %tldm_add(foo)
21130 call __tls_get_addr, %tldm_call(foo)
21131 sethi %tldo_hix22(foo), %l3
21132 xor %l3, %tldo_lox10(foo), %l4
21133 add %o0, %l4, %l5, %tldo_add(foo)
21134 sethi %tie_hi22(foo), %o3
21135 add %o3, %tie_lo10(foo), %o3
21136 ld [%l7 + %o3], %o2, %tie_ld(foo)
21137 add %g7, %o2, %o4, %tie_add(foo)
21138 sethi %tle_hix22(foo), %l1
21139 xor %l1, %tle_lox10(foo), %o5
21140 ld [%g7 + %o5], %o1'
21145 .section ".tdata","awT",@progbits
21148 sethi %tgd_hi22(foo), %o0
21149 add %o0, %tgd_lo10(foo), %o1
21150 add %l7, %o1, %o0, %tgd_add(foo)
21151 call __tls_get_addr, %tgd_call(foo)
21152 sethi %tldm_hi22(foo), %l1
21153 add %l1, %tldm_lo10(foo), %l2
21154 add %l7, %l2, %o0, %tldm_add(foo)
21155 call __tls_get_addr, %tldm_call(foo)
21156 sethi %tldo_hix22(foo), %l3
21157 xor %l3, %tldo_lox10(foo), %l4
21158 add %o0, %l4, %l5, %tldo_add(foo)
21159 sethi %tie_hi22(foo), %o3
21160 add %o3, %tie_lo10(foo), %o3
21161 ld [%l7 + %o3], %o2, %tie_ld(foo)
21162 add %g7, %o2, %o4, %tie_add(foo)
21163 sethi %tle_hix22(foo), %l1
21164 xor %l1, %tle_lox10(foo), %o5
21165 ld [%g7 + %o5], %o1'
21168 tls_as_opt
="-32 --fatal-warnings"
21173 if test "x$enable_tls" = xno
; then
21174 : # TLS explicitly disabled.
21175 elif test "x$enable_tls" = xyes
; then
21176 set_have_as_tls
=yes # TLS explicitly enabled.
21177 elif test -z "$tls_first_major"; then
21178 : # If we don't have a check, assume no support.
21180 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21181 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21182 if test "${gcc_cv_as_tls+set}" = set; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 if test $in_tree_gas = yes; then
21187 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21188 then gcc_cv_as_tls
=yes
21190 elif test x
$gcc_cv_as != x
; then
21191 echo "$conftest_s" > conftest.s
21192 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194 (eval $ac_try) 2>&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; }
21201 echo "configure: failed program was" >&5
21204 rm -f conftest.o conftest.s
21207 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21208 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21209 if test $gcc_cv_as_tls = yes; then
21210 set_have_as_tls
=yes
21213 if test $set_have_as_tls = yes ; then
21215 cat >>confdefs.h
<<\_ACEOF
21216 #define HAVE_AS_TLS 1
21221 # Target-specific assembler checks.
21223 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21224 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21225 gcc_cv_ld_static_dynamic
=no
21226 if test $in_tree_ld = yes ; then
21227 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21228 gcc_cv_ld_static_dynamic
=yes
21230 elif test x
$gcc_cv_ld != x
; then
21231 # Check if linker supports -Bstatic/-Bdynamic option
21232 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
21233 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
21234 gcc_cv_ld_static_dynamic
=yes
21237 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
21239 cat >>confdefs.h
<<\_ACEOF
21240 #define HAVE_LD_STATIC_DYNAMIC 1
21244 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21245 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21247 if test x
"$demangler_in_ld" = xyes
; then
21248 echo "$as_me:$LINENO: checking linker --demangle support" >&5
21249 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21250 gcc_cv_ld_demangle
=no
21251 if test $in_tree_ld = yes; then
21252 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 \
21253 gcc_cv_ld_demangle
=yes
21255 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
21256 # Check if the GNU linker supports --demangle option
21257 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
21258 gcc_cv_ld_demangle
=yes
21261 if test x
"$gcc_cv_ld_demangle" = xyes
; then
21263 cat >>confdefs.h
<<\_ACEOF
21264 #define HAVE_LD_DEMANGLE 1
21268 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21269 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21273 # All TARGET_ABI_OSF targets.
21274 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
21275 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21276 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21277 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 gcc_cv_as_alpha_explicit_relocs
=no
21281 if test $in_tree_gas = yes; then
21282 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21283 then gcc_cv_as_alpha_explicit_relocs
=yes
21285 elif test x
$gcc_cv_as != x
; then
21286 echo ' .set nomacro
21288 extbl $3, $2, $3 !lituse_bytoff!1
21289 ldq $2, a($29) !literal!1
21290 ldq $4, b($29) !literal!2
21291 ldq_u $3, 0($2) !lituse_base!1
21292 ldq $27, f($29) !literal!5
21293 jsr $26, ($27), f !lituse_jsr!5
21294 ldah $29, 0($26) !gpdisp!3
21295 lda $0, c($29) !gprel
21296 ldah $1, d($29) !gprelhigh
21297 lda $1, d($1) !gprellow
21298 lda $29, 0($29) !gpdisp!3' > conftest.s
21299 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }
21306 gcc_cv_as_alpha_explicit_relocs
=yes
21308 echo "configure: failed program was" >&5
21311 rm -f conftest.o conftest.s
21314 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21315 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21316 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21318 cat >>confdefs.h
<<\_ACEOF
21319 #define HAVE_AS_EXPLICIT_RELOCS 1
21323 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21324 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21325 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 gcc_cv_as_alpha_jsrdirect_relocs
=no
21329 if test $in_tree_gas = yes; then
21330 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21331 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
21333 elif test x
$gcc_cv_as != x
; then
21334 echo ' .set nomacro
21336 ldq $27, a($29) !literal!1
21337 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21338 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }
21345 gcc_cv_as_alpha_jsrdirect_relocs
=yes
21347 echo "configure: failed program was" >&5
21350 rm -f conftest.o conftest.s
21353 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21354 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21355 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21357 cat >>confdefs.h
<<\_ACEOF
21358 #define HAVE_AS_JSRDIRECT_RELOCS 1
21365 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21366 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21367 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 gcc_cv_as_cris_no_mul_bug
=no
21371 if test $in_tree_gas = yes; then
21372 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21373 then gcc_cv_as_cris_no_mul_bug
=yes
21375 elif test x
$gcc_cv_as != x
; then
21376 echo '.text' > conftest.s
21377 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379 (eval $ac_try) 2>&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); }; }
21384 gcc_cv_as_cris_no_mul_bug
=yes
21386 echo "configure: failed program was" >&5
21389 rm -f conftest.o conftest.s
21392 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21393 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21394 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21396 cat >>confdefs.h
<<\_ACEOF
21397 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21404 echo "$as_me:$LINENO: checking assembler for .register" >&5
21405 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21406 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21409 gcc_cv_as_sparc_register_op
=no
21410 if test x
$gcc_cv_as != x
; then
21411 echo '.register %g2, #scratch' > conftest.s
21412 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414 (eval $ac_try) 2>&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); }; }
21419 gcc_cv_as_sparc_register_op
=yes
21421 echo "configure: failed program was" >&5
21424 rm -f conftest.o conftest.s
21427 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21428 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21429 if test $gcc_cv_as_sparc_register_op = yes; then
21431 cat >>confdefs.h
<<\_ACEOF
21432 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21437 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21438 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21439 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21442 gcc_cv_as_sparc_relax
=no
21443 if test x
$gcc_cv_as != x
; then
21444 echo '.text' > conftest.s
21445 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }
21452 gcc_cv_as_sparc_relax
=yes
21454 echo "configure: failed program was" >&5
21457 rm -f conftest.o conftest.s
21460 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21461 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21462 if test $gcc_cv_as_sparc_relax = yes; then
21464 cat >>confdefs.h
<<\_ACEOF
21465 #define HAVE_AS_RELAX_OPTION 1
21470 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21471 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21472 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21475 gcc_cv_as_sparc_ua_pcrel
=no
21476 if test x
$gcc_cv_as != x
; then
21483 .uaword %r_disp32(foo)' > conftest.s
21484 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; }
21491 if test x
$gcc_cv_ld != x \
21492 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
21493 gcc_cv_as_sparc_ua_pcrel
=yes
21497 echo "configure: failed program was" >&5
21500 rm -f conftest.o conftest.s
21503 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21504 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21505 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21507 cat >>confdefs.h
<<\_ACEOF
21508 #define HAVE_AS_SPARC_UA_PCREL 1
21512 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21513 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21514 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 gcc_cv_as_sparc_ua_pcrel_hidden
=no
21518 if test x
$gcc_cv_as != x
; then
21522 .uaword %r_disp32(foo)
21523 .byte 0x32, 0x33, 0x34
21527 .skip 4' > conftest.s
21528 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530 (eval $ac_try) 2>&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; }
21535 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
21536 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
21537 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
21538 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
21539 if $gcc_cv_objdump -R conftest
2> /dev
/null \
21540 |
grep 'DISP32' > /dev
/null
2>&1; then
21543 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
21548 echo "configure: failed program was" >&5
21551 rm -f conftest.o conftest.s
21554 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21555 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21556 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21558 cat >>confdefs.h
<<\_ACEOF
21559 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21564 fi # unaligned pcrel relocs
21566 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21567 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21568 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 gcc_cv_as_sparc_offsetable_lo10
=no
21572 if test x
$gcc_cv_as != x
; then
21574 or %g1, %lo(ab) + 12, %g1
21575 or %g1, %lo(ab + 12), %g1' > conftest.s
21576 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; }
21583 if test x
$gcc_cv_objdump != x \
21584 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
21585 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
21586 gcc_cv_as_sparc_offsetable_lo10
=yes
21589 echo "configure: failed program was" >&5
21592 rm -f conftest.o conftest.s
21595 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21596 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21597 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21599 cat >>confdefs.h
<<\_ACEOF
21600 #define HAVE_AS_OFFSETABLE_LO10 1
21606 i
[34567]86-*-* | x86_64-
*-*)
21608 cygwin
* | pe | mingw32
*)
21609 # Used for DWARF 2 in PE
21610 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21611 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21612 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21613 echo $ECHO_N "(cached) $ECHO_C" >&6
21615 gcc_cv_as_ix86_pe_secrel32
=no
21616 if test $in_tree_gas = yes; then
21617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21618 then gcc_cv_as_ix86_pe_secrel32
=yes
21620 elif test x
$gcc_cv_as != x
; then
21624 .secrel32 foo' > conftest.s
21625 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627 (eval $ac_try) 2>&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; }
21632 if test x
$gcc_cv_ld != x \
21633 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
21634 gcc_cv_as_ix86_pe_secrel32
=yes
21638 echo "configure: failed program was" >&5
21641 rm -f conftest.o conftest.s
21644 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21645 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21646 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21648 cat >>confdefs.h
<<\_ACEOF
21649 #define HAVE_GAS_PE_SECREL32_RELOC 1
21656 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21657 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21658 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 gcc_cv_as_ix86_filds_fists
=no
21662 if test $in_tree_gas = yes; then
21663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21664 then gcc_cv_as_ix86_filds_fists
=yes
21666 elif test x
$gcc_cv_as != x
; then
21667 echo 'filds mem; fists mem' > conftest.s
21668 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }
21675 gcc_cv_as_ix86_filds_fists
=yes
21677 echo "configure: failed program was" >&5
21680 rm -f conftest.o conftest.s
21683 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21684 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21685 if test $gcc_cv_as_ix86_filds_fists = yes; then
21687 cat >>confdefs.h
<<\_ACEOF
21688 #define HAVE_GAS_FILDS_FISTS 1
21693 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21694 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21695 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21698 gcc_cv_as_ix86_cmov_sun_syntax
=no
21699 if test x
$gcc_cv_as != x
; then
21700 echo 'cmovl.l %edx, %eax' > conftest.s
21701 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }
21708 gcc_cv_as_ix86_cmov_sun_syntax
=yes
21710 echo "configure: failed program was" >&5
21713 rm -f conftest.o conftest.s
21716 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21717 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21718 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21720 cat >>confdefs.h
<<\_ACEOF
21721 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21726 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21727 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21728 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 gcc_cv_as_ix86_ffreep
=no
21732 if test x
$gcc_cv_as != x
; then
21733 echo 'ffreep %st(1)' > conftest.s
21734 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }
21741 gcc_cv_as_ix86_ffreep
=yes
21743 echo "configure: failed program was" >&5
21746 rm -f conftest.o conftest.s
21749 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
21750 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
21751 if test $gcc_cv_as_ix86_ffreep = yes; then
21753 cat >>confdefs.h
<<\_ACEOF
21754 #define HAVE_AS_IX86_FFREEP 1
21759 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
21760 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
21761 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 gcc_cv_as_ix86_sahf
=no
21765 if test x
$gcc_cv_as != x
; then
21766 echo 'sahf' > conftest.s
21767 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }
21774 gcc_cv_as_ix86_sahf
=yes
21776 echo "configure: failed program was" >&5
21779 rm -f conftest.o conftest.s
21782 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
21783 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
21784 if test $gcc_cv_as_ix86_sahf = yes; then
21786 cat >>confdefs.h
<<\_ACEOF
21787 #define HAVE_AS_IX86_SAHF 1
21792 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
21793 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
21794 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21797 gcc_cv_as_ix86_diff_sect_delta
=no
21798 if test x
$gcc_cv_as != x
; then
21799 echo '.section .rodata
21805 .L2: nop' > conftest.s
21806 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; }
21813 gcc_cv_as_ix86_diff_sect_delta
=yes
21815 echo "configure: failed program was" >&5
21818 rm -f conftest.o conftest.s
21821 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
21822 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
21823 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
21825 cat >>confdefs.h
<<\_ACEOF
21826 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
21831 # This one is used unconditionally by i386.[ch]; it is to be defined
21832 # to 1 if the feature is present, 0 otherwise.
21833 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
21834 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
21835 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 gcc_cv_as_ix86_gotoff_in_data
=no
21839 if test $in_tree_gas = yes; then
21840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21841 then gcc_cv_as_ix86_gotoff_in_data
=yes
21843 elif test x
$gcc_cv_as != x
; then
21848 .long .L0@GOTOFF' > conftest.s
21849 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851 (eval $ac_try) 2>&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; }
21856 gcc_cv_as_ix86_gotoff_in_data
=yes
21858 echo "configure: failed program was" >&5
21861 rm -f conftest.o conftest.s
21864 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
21865 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
21868 cat >>confdefs.h
<<_ACEOF
21869 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
21875 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
21876 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
21877 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
21880 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
21881 if test $in_tree_gas = yes; then
21882 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
21883 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
21885 elif test x
$gcc_cv_as != x
; then
21887 addl r15 = @ltoffx(x#), gp
21889 ld8.mov r16 = [r15], x#' > conftest.s
21890 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }
21897 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
21899 echo "configure: failed program was" >&5
21902 rm -f conftest.o conftest.s
21905 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
21906 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
21907 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
21909 cat >>confdefs.h
<<\_ACEOF
21910 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
21919 *-*-aix*) conftest_s
=' .machine "pwr5"
21923 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
21924 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
21925 if test "${gcc_cv_as_machine_directive+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 gcc_cv_as_machine_directive
=no
21929 if test x
$gcc_cv_as != x
; then
21930 echo ' .machine ppc7400' > conftest.s
21931 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; }
21938 gcc_cv_as_machine_directive
=yes
21940 echo "configure: failed program was" >&5
21943 rm -f conftest.o conftest.s
21946 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
21947 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
21949 if test x
$gcc_cv_as_machine_directive != xyes
; then
21950 echo "*** This target requires an assembler supporting \".machine\"" >&2
21951 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
21952 test x
$build = x
$target && exit 1
21956 *) conftest_s
=' .machine power4
21961 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
21962 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
21963 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21966 gcc_cv_as_powerpc_mfcrf
=no
21967 if test $in_tree_gas = yes; then
21968 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
21969 then gcc_cv_as_powerpc_mfcrf
=yes
21971 elif test x
$gcc_cv_as != x
; then
21972 echo "$conftest_s" > conftest.s
21973 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }
21980 gcc_cv_as_powerpc_mfcrf
=yes
21982 echo "configure: failed program was" >&5
21985 rm -f conftest.o conftest.s
21988 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
21989 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
21990 if test $gcc_cv_as_powerpc_mfcrf = yes; then
21992 cat >>confdefs.h
<<\_ACEOF
21993 #define HAVE_AS_MFCRF 1
21999 *-*-aix*) conftest_s
=' .machine "pwr5"
22002 *) conftest_s
=' .machine power5
22007 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22008 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22009 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22010 echo $ECHO_N "(cached) $ECHO_C" >&6
22012 gcc_cv_as_powerpc_popcntb
=no
22013 if test $in_tree_gas = yes; then
22014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22015 then gcc_cv_as_powerpc_popcntb
=yes
22017 elif test x
$gcc_cv_as != x
; then
22018 echo "$conftest_s" > conftest.s
22019 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021 (eval $ac_try) 2>&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; }
22026 gcc_cv_as_powerpc_popcntb
=yes
22028 echo "configure: failed program was" >&5
22031 rm -f conftest.o conftest.s
22034 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22035 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22036 if test $gcc_cv_as_powerpc_popcntb = yes; then
22038 cat >>confdefs.h
<<\_ACEOF
22039 #define HAVE_AS_POPCNTB 1
22045 *-*-aix*) conftest_s
=' .machine "pwr5x"
22048 *) conftest_s
=' .machine power5
22053 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22054 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22055 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22056 echo $ECHO_N "(cached) $ECHO_C" >&6
22058 gcc_cv_as_powerpc_fprnd
=no
22059 if test $in_tree_gas = yes; then
22060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22061 then gcc_cv_as_powerpc_fprnd
=yes
22063 elif test x
$gcc_cv_as != x
; then
22064 echo "$conftest_s" > conftest.s
22065 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067 (eval $ac_try) 2>&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; }
22072 gcc_cv_as_powerpc_fprnd
=yes
22074 echo "configure: failed program was" >&5
22077 rm -f conftest.o conftest.s
22080 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22081 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22082 if test $gcc_cv_as_powerpc_fprnd = yes; then
22084 cat >>confdefs.h
<<\_ACEOF
22085 #define HAVE_AS_FPRND 1
22091 *-*-aix*) conftest_s
=' .machine "pwr6"
22094 *) conftest_s
=' .machine power6
22099 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22100 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22101 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22104 gcc_cv_as_powerpc_mfpgpr
=no
22105 if test $in_tree_gas = yes; then
22106 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22107 then gcc_cv_as_powerpc_mfpgpr
=yes
22109 elif test x
$gcc_cv_as != x
; then
22110 echo "$conftest_s" > conftest.s
22111 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; }
22118 gcc_cv_as_powerpc_mfpgpr
=yes
22120 echo "configure: failed program was" >&5
22123 rm -f conftest.o conftest.s
22126 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22127 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22128 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22130 cat >>confdefs.h
<<\_ACEOF
22131 #define HAVE_AS_MFPGPR 1
22137 *-*-aix*) conftest_s
=' .csect .text[PR]
22139 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22143 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22144 *) conftest_s
=' .text
22146 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22149 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22150 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22151 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 gcc_cv_as_powerpc_rel16
=no
22155 if test $in_tree_gas = yes; then
22156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22157 then gcc_cv_as_powerpc_rel16
=yes
22159 elif test x
$gcc_cv_as != x
; then
22160 echo "$conftest_s" > conftest.s
22161 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; }
22168 gcc_cv_as_powerpc_rel16
=yes
22170 echo "configure: failed program was" >&5
22173 rm -f conftest.o conftest.s
22176 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22177 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22178 if test $gcc_cv_as_powerpc_rel16 = yes; then
22180 cat >>confdefs.h
<<\_ACEOF
22181 #define HAVE_AS_REL16 1
22187 *-*-aix*) conftest_s
=' .machine "pwr6"
22190 *) conftest_s
=' .machine power6
22195 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22196 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22197 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 gcc_cv_as_powerpc_cmpb
=no
22201 if test $in_tree_gas = yes; then
22202 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22203 then gcc_cv_as_powerpc_cmpb
=yes
22205 elif test x
$gcc_cv_as != x
; then
22206 echo "$conftest_s" > conftest.s
22207 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209 (eval $ac_try) 2>&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); }; }
22214 gcc_cv_as_powerpc_cmpb
=yes
22216 echo "configure: failed program was" >&5
22219 rm -f conftest.o conftest.s
22222 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22223 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22224 if test $gcc_cv_as_powerpc_cmpb = yes; then
22226 cat >>confdefs.h
<<\_ACEOF
22227 #define HAVE_AS_CMPB 1
22233 *-*-aix*) conftest_s
=' .machine "pwr6"
22236 *) conftest_s
=' .machine power6
22241 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22242 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22243 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22244 echo $ECHO_N "(cached) $ECHO_C" >&6
22246 gcc_cv_as_powerpc_dfp
=no
22247 if test $in_tree_gas = yes; then
22248 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22249 then gcc_cv_as_powerpc_dfp
=yes
22251 elif test x
$gcc_cv_as != x
; then
22252 echo "$conftest_s" > conftest.s
22253 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; }
22260 gcc_cv_as_powerpc_dfp
=yes
22262 echo "configure: failed program was" >&5
22265 rm -f conftest.o conftest.s
22268 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22269 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22270 if test $gcc_cv_as_powerpc_dfp = yes; then
22272 cat >>confdefs.h
<<\_ACEOF
22273 #define HAVE_AS_DFP 1
22278 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22279 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22280 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22283 gcc_cv_as_powerpc_gnu_attribute
=no
22284 if test $in_tree_gas = yes; then
22285 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22286 then gcc_cv_as_powerpc_gnu_attribute
=yes
22288 elif test x
$gcc_cv_as != x
; then
22289 echo '.gnu_attribute 4,1' > conftest.s
22290 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }
22297 gcc_cv_as_powerpc_gnu_attribute
=yes
22299 echo "configure: failed program was" >&5
22302 rm -f conftest.o conftest.s
22305 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22306 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22307 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22309 cat >>confdefs.h
<<\_ACEOF
22310 #define HAVE_AS_GNU_ATTRIBUTE 1
22317 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22318 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22319 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22322 gcc_cv_as_mips_explicit_relocs
=no
22323 if test $in_tree_gas = yes; then
22324 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22325 then gcc_cv_as_mips_explicit_relocs
=yes
22327 elif test x
$gcc_cv_as != x
; then
22328 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
22329 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22331 (eval $ac_try) 2>&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); }; }
22336 gcc_cv_as_mips_explicit_relocs
=yes
22338 echo "configure: failed program was" >&5
22341 rm -f conftest.o conftest.s
22344 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22345 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22346 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22347 if test x
$target_cpu_default = x
22348 then target_cpu_default
=MASK_EXPLICIT_RELOCS
22349 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22352 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22353 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22354 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 gcc_cv_as_mips_no_shared
=no
22358 if test $in_tree_gas = yes; then
22359 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22360 then gcc_cv_as_mips_no_shared
=yes
22362 elif test x
$gcc_cv_as != x
; then
22363 echo 'nop' > conftest.s
22364 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366 (eval $ac_try) 2>&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }
22371 gcc_cv_as_mips_no_shared
=yes
22373 echo "configure: failed program was" >&5
22376 rm -f conftest.o conftest.s
22379 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22380 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22381 if test $gcc_cv_as_mips_no_shared = yes; then
22383 cat >>confdefs.h
<<\_ACEOF
22384 #define HAVE_AS_NO_SHARED 1
22389 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22390 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22391 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22394 gcc_cv_as_mips_gnu_attribute
=no
22395 if test $in_tree_gas = yes; then
22396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22397 then gcc_cv_as_mips_gnu_attribute
=yes
22399 elif test x
$gcc_cv_as != x
; then
22400 echo '.gnu_attribute 4,1' > conftest.s
22401 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }
22408 gcc_cv_as_mips_gnu_attribute
=yes
22410 echo "configure: failed program was" >&5
22413 rm -f conftest.o conftest.s
22416 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22417 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22418 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22420 cat >>confdefs.h
<<\_ACEOF
22421 #define HAVE_AS_GNU_ATTRIBUTE 1
22426 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22427 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22428 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22431 gcc_cv_as_mips_dtprelword
=no
22432 if test $in_tree_gas = yes; then
22433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22434 then gcc_cv_as_mips_dtprelword
=yes
22436 elif test x
$gcc_cv_as != x
; then
22437 echo '.section .tdata,"awT",@progbits
22441 .dtprelword x+0x8000' > conftest.s
22442 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }
22449 gcc_cv_as_mips_dtprelword
=yes
22451 echo "configure: failed program was" >&5
22454 rm -f conftest.o conftest.s
22457 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22458 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22459 if test $gcc_cv_as_mips_dtprelword = yes; then
22461 cat >>confdefs.h
<<\_ACEOF
22462 #define HAVE_AS_DTPRELWORD 1
22469 # Mips and HP-UX need the GNU assembler.
22470 # Linux on IA64 might be able to use the Intel assembler.
22473 mips
*-*-* |
*-*-hpux* )
22474 if test x
$gas_flag = xyes \
22475 ||
test x
"$host" != x
"$build" \
22476 ||
test ! -x "$gcc_cv_as" \
22477 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
22480 echo "*** This configuration requires the GNU assembler" >&2
22486 # ??? Not all targets support dwarf2 debug_line, even within a version
22487 # of gas. Moreover, we need to emit a valid instruction to trigger any
22488 # info to the output file. So, as supported targets are added to gas 2.11,
22489 # add some instruction here to (also) show we expect this might work.
22490 # ??? Once 2.11 is released, probably need to add first known working
22491 # version to the per-target configury.
22493 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
22494 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
22495 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* | spu-
*-*)
22498 ia64
*-*-* | s390
*-*-*)
22505 if test x
"$insn" != x
; then
22507 .file 1 \"conftest.s\"
22510 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22511 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22512 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22515 gcc_cv_as_dwarf2_debug_line
=no
22516 if test $in_tree_gas = yes; then
22517 if test $in_tree_gas_is_elf = yes \
22518 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22519 then gcc_cv_as_dwarf2_debug_line
=yes
22521 elif test x
$gcc_cv_as != x
; then
22522 echo "$conftest_s" > conftest.s
22523 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525 (eval $ac_try) 2>&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); }; }
22530 if test x
$gcc_cv_objdump != x \
22531 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
22532 |
grep debug_line
> /dev
/null
2>&1; then
22533 gcc_cv_as_dwarf2_debug_line
=yes
22536 echo "configure: failed program was" >&5
22539 rm -f conftest.o conftest.s
22542 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22543 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22546 # The .debug_line file table must be in the exact order that
22547 # we specified the files, since these indices are also used
22548 # by DW_AT_decl_file. Approximate this test by testing if
22549 # the assembler bitches if the same index is assigned twice.
22550 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22551 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22552 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22555 gcc_cv_as_dwarf2_file_buggy
=no
22556 if test x
$gcc_cv_as != x
; then
22557 echo ' .file 1 "foo.s"
22558 .file 1 "bar.s"' > conftest.s
22559 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561 (eval $ac_try) 2>&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }
22566 gcc_cv_as_dwarf2_file_buggy
=yes
22568 echo "configure: failed program was" >&5
22571 rm -f conftest.o conftest.s
22574 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22575 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22578 if test $gcc_cv_as_dwarf2_debug_line = yes \
22579 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
22581 cat >>confdefs.h
<<\_ACEOF
22582 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22587 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22588 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22589 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 gcc_cv_as_gdwarf2_flag
=no
22593 if test $in_tree_gas = yes; then
22594 if test $in_tree_gas_is_elf = yes \
22595 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22596 then gcc_cv_as_gdwarf2_flag
=yes
22598 elif test x
$gcc_cv_as != x
; then
22599 echo "$insn" > conftest.s
22600 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602 (eval $ac_try) 2>&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); }; }
22607 gcc_cv_as_gdwarf2_flag
=yes
22609 echo "configure: failed program was" >&5
22612 rm -f conftest.o conftest.s
22615 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22616 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22617 if test $gcc_cv_as_gdwarf2_flag = yes; then
22619 cat >>confdefs.h
<<\_ACEOF
22620 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22625 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22626 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22627 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22630 gcc_cv_as_gstabs_flag
=no
22631 if test $in_tree_gas = yes; then
22632 if test $in_tree_gas_is_elf = yes \
22633 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22634 then gcc_cv_as_gstabs_flag
=yes
22636 elif test x
$gcc_cv_as != x
; then
22637 echo "$insn" > conftest.s
22638 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }
22645 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22646 # and warns about it, but still exits successfully. So check for
22648 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650 (eval $ac_try) 2>&5
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); }; }
22655 else gcc_cv_as_gstabs_flag
=yes
22658 echo "configure: failed program was" >&5
22661 rm -f conftest.o conftest.s
22664 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22665 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22666 if test $gcc_cv_as_gstabs_flag = yes; then
22668 cat >>confdefs.h
<<\_ACEOF
22669 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22674 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22675 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22676 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22679 gcc_cv_as_debug_prefix_map_flag
=no
22680 if test $in_tree_gas = yes; then
22681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22682 then gcc_cv_as_debug_prefix_map_flag
=yes
22684 elif test x
$gcc_cv_as != x
; then
22685 echo "$insn" > conftest.s
22686 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }
22693 gcc_cv_as_debug_prefix_map_flag
=yes
22695 echo "configure: failed program was" >&5
22698 rm -f conftest.o conftest.s
22701 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22702 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22703 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22705 cat >>confdefs.h
<<\_ACEOF
22706 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22712 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22713 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22714 if test "${gcc_cv_as_line_zero+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22717 gcc_cv_as_line_zero
=no
22718 if test $in_tree_gas = yes; then
22719 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22720 then gcc_cv_as_line_zero
=yes
22722 elif test "x$gcc_cv_as" != x
; then
22723 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22724 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; } &&
22730 test "x`cat conftest.out`" = x
22732 gcc_cv_as_line_zero
=yes
22734 echo "configure: failed program was" >&5
22736 echo "configure: error output was" >&5
22737 cat conftest.out
>&5
22739 rm -f conftest.o conftest.s conftest.out
22742 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
22743 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
22744 if test "x$gcc_cv_as_line_zero" = xyes
; then
22746 cat >>confdefs.h
<<\_ACEOF
22747 #define HAVE_AS_LINE_ZERO 1
22752 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
22753 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
22754 gcc_cv_ld_ro_rw_mix
=unknown
22755 if test $in_tree_ld = yes ; then
22756 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 \
22757 && test $in_tree_ld_is_elf = yes; then
22758 gcc_cv_ld_ro_rw_mix
=read-write
22760 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22761 echo '.section myfoosect, "a"' > conftest1.s
22762 echo '.section myfoosect, "aw"' > conftest2.s
22763 echo '.byte 1' >> conftest2.s
22764 echo '.section myfoosect, "a"' > conftest3.s
22765 echo '.byte 0' >> conftest3.s
22766 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22767 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22768 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22769 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22770 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22771 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22772 | sed -e '/myfoosect/!d' -e N`
22773 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22774 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22775 gcc_cv_ld_ro_rw_mix
=read-only
22777 gcc_cv_ld_ro_rw_mix
=read-write
22781 rm -f conftest.
* conftest
[123].
*
22783 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22785 cat >>confdefs.h
<<\_ACEOF
22786 #define HAVE_LD_RO_RW_SECTION_MIXING 1
22790 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
22791 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
22793 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
22794 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
22795 gcc_cv_ld_eh_frame_hdr
=no
22796 if test $in_tree_ld = yes ; then
22797 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 \
22798 && test $in_tree_ld_is_elf = yes; then
22799 gcc_cv_ld_eh_frame_hdr
=yes
22801 elif test x
$gcc_cv_ld != x
; then
22802 # Check if linker supports --eh-frame-hdr option
22803 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
22804 gcc_cv_ld_eh_frame_hdr
=yes
22808 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
22810 cat >>confdefs.h
<<\_ACEOF
22811 #define HAVE_LD_EH_FRAME_HDR 1
22815 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
22816 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
22818 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
22819 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
22821 if test $in_tree_ld = yes ; then
22822 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 \
22823 && test $in_tree_ld_is_elf = yes; then
22826 elif test x
$gcc_cv_ld != x
; then
22827 # Check if linker supports -pie option
22828 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
22832 if test x
"$gcc_cv_ld_pie" = xyes
; then
22834 cat >>confdefs.h
<<\_ACEOF
22835 #define HAVE_LD_PIE 1
22839 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
22840 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
22842 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
22843 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
22844 gcc_cv_ld_eh_gc_sections
=no
22845 if test $in_tree_ld = yes ; then
22846 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 \
22847 && test $in_tree_ld_is_elf = yes; then
22848 gcc_cv_ld_eh_gc_sections
=yes
22850 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22851 cat > conftest.s
<<EOF
22854 .type _start, @function
22857 .size _start, .-_start
22858 .section .text.foo,"ax",@progbits
22859 .type foo, @function
22863 .section .gcc_except_table.foo,"a",@progbits
22866 .section .eh_frame,"a",@progbits
22869 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
22870 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
22871 |
grep "gc-sections option ignored" > /dev
/null
; then
22872 gcc_cv_ld_eh_gc_sections
=no
22873 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
22874 gcc_cv_ld_eh_gc_sections
=yes
22875 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
22876 if test x
$gcc_cv_as_comdat_group != xyes
; then
22877 gcc_cv_ld_eh_gc_sections
=no
22878 cat > conftest.s
<<EOF
22881 .type _start, @function
22884 .size _start, .-_start
22885 .section .gnu.linkonce.t.foo,"ax",@progbits
22886 .type foo, @function
22890 .section .gcc_except_table.foo,"a",@progbits
22893 .section .eh_frame,"a",@progbits
22896 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
22897 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
22898 |
grep "gc-sections option ignored" > /dev
/null
; then
22899 gcc_cv_ld_eh_gc_sections
=no
22900 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
22901 gcc_cv_ld_eh_gc_sections
=yes
22907 rm -f conftest.s conftest.o conftest
22911 # ??? This apparently exposes a binutils bug with PC-relative relocations.
22912 gcc_cv_ld_eh_gc_sections
=no
22915 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
22917 cat >>confdefs.h
<<\_ACEOF
22918 #define HAVE_LD_EH_GC_SECTIONS 1
22922 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
22923 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
22929 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
22930 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
22931 if test "${gcc_cv_ld_as_needed+set}" = set; then
22932 echo $ECHO_N "(cached) $ECHO_C" >&6
22934 gcc_cv_ld_as_needed
=no
22935 if test $in_tree_ld = yes ; then
22936 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 \
22937 && test $in_tree_ld_is_elf = yes; then
22938 gcc_cv_ld_as_needed
=yes
22940 elif test x
$gcc_cv_ld != x
; then
22941 # Check if linker supports --as-needed and --no-as-needed options
22942 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
22943 gcc_cv_ld_as_needed
=yes
22948 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
22949 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
22950 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
22952 cat >>confdefs.h
<<\_ACEOF
22953 #define HAVE_LD_AS_NEEDED 1
22958 case "$target:$tm_file" in
22959 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
22960 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
22961 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
22962 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 gcc_cv_ld_no_dot_syms
=no
22966 if test $in_tree_ld = yes ; then
22967 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
22968 gcc_cv_ld_no_dot_syms
=yes
22970 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
22971 cat > conftest1.s
<<EOF
22975 cat > conftest2.s
<<EOF
22976 .section ".opd","aw"
22979 .type foo,@function
22981 .quad .LEfoo,.TOC.@tocbase,0
22987 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22988 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22989 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
22990 gcc_cv_ld_no_dot_syms
=yes
22992 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
22996 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
22997 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
22998 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
23000 cat >>confdefs.h
<<\_ACEOF
23001 #define HAVE_LD_NO_DOT_SYMS 1
23008 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23009 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23010 if test "${gcc_cv_ld_sysroot+set}" = set; then
23011 echo $ECHO_N "(cached) $ECHO_C" >&6
23013 gcc_cv_ld_sysroot
=no
23014 if test $in_tree_ld = yes ; then
23015 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
23016 gcc_cv_ld_sysroot
=yes
23018 elif test x
$gcc_cv_ld != x
; then
23019 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
23020 gcc_cv_ld_sysroot
=yes
23024 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23025 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23026 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
23028 cat >>confdefs.h
<<\_ACEOF
23029 #define HAVE_LD_SYSROOT 1
23034 if test x
$with_sysroot = x
&& test x
$host = x
$target \
23035 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23036 && test "$prefix" != "NONE"; then
23038 cat >>confdefs.h
<<_ACEOF
23039 #define PREFIX_INCLUDE_DIR "$prefix/include"
23044 # Test for stack protector support in target C library.
23045 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23046 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23047 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 gcc_cv_libc_provides_ssp
=no
23053 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
23054 if test "x$with_sysroot" = x
; then
23055 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
23056 elif test "x$with_build_sysroot" != "x"; then
23057 glibc_header_dir
="${with_build_sysroot}/usr/include"
23058 elif test "x$with_sysroot" = xyes
; then
23059 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23061 glibc_header_dir
="${with_sysroot}/usr/include"
23064 glibc_header_dir
=/usr
/include
23066 # glibc 2.4 and later provides __stack_chk_fail and
23067 # either __stack_chk_guard, or TLS access to stack guard canary.
23068 if test -f $glibc_header_dir/features.h \
23069 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23070 $glibc_header_dir/features.h
> /dev
/null
; then
23071 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23072 $glibc_header_dir/features.h
> /dev
/null
; then
23073 gcc_cv_libc_provides_ssp
=yes
23074 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23075 $glibc_header_dir/features.h
> /dev
/null \
23076 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23077 $glibc_header_dir/features.h
> /dev
/null
; then
23078 gcc_cv_libc_provides_ssp
=yes
23079 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23080 $glibc_header_dir/features.h
> /dev
/null
&& \
23081 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
23082 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23083 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
23084 gcc_cv_libc_provides_ssp
=yes
23089 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23090 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23091 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23092 echo $ECHO_N "(cached) $ECHO_C" >&6
23094 cat >conftest.
$ac_ext <<_ACEOF
23097 cat confdefs.h
>>conftest.
$ac_ext
23098 cat >>conftest.
$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23100 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23102 #define __stack_chk_fail innocuous___stack_chk_fail
23104 /* System header to define __stub macros and hopefully few prototypes,
23105 which can conflict with char __stack_chk_fail (); below.
23106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23107 <limits.h> exists even on freestanding compilers. */
23110 # include <limits.h>
23112 # include <assert.h>
23115 #undef __stack_chk_fail
23117 /* Override any gcc2 internal prototype to avoid an error. */
23122 /* We use char because int might match the return type of a gcc2
23123 builtin and then its argument prototype would still apply. */
23124 char __stack_chk_fail ();
23125 /* The GNU C library defines this for functions which it implements
23126 to always fail with ENOSYS. Some functions are actually named
23127 something starting with __ and the normal name is an alias. */
23128 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23131 char (*f) () = __stack_chk_fail;
23140 return f != __stack_chk_fail;
23145 rm -f conftest.
$ac_objext conftest
$ac_exeext
23146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23147 (eval $ac_link) 2>conftest.er1
23149 grep -v '^ *+' conftest.er1
>conftest.err
23151 cat conftest.err
>&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
23154 { ac_try
='test -z "$ac_c_werror_flag"
23155 || test ! -s conftest.err'
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; } &&
23161 { ac_try
='test -s conftest$ac_exeext'
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
23167 ac_cv_func___stack_chk_fail
=yes
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.
$ac_ext >&5
23172 ac_cv_func___stack_chk_fail
=no
23174 rm -f conftest.err conftest.
$ac_objext \
23175 conftest
$ac_exeext conftest.
$ac_ext
23177 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23178 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23179 if test $ac_cv_func___stack_chk_fail = yes; then
23180 gcc_cv_libc_provides_ssp
=yes
23182 echo "no __stack_chk_fail on this target"
23186 *) gcc_cv_libc_provides_ssp
=no
;;
23189 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23190 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23192 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
23194 cat >>confdefs.h
<<\_ACEOF
23195 #define TARGET_LIBC_PROVIDES_SSP 1
23200 # Check if TFmode long double should be used by default or not.
23201 # Some glibc targets used DFmode long double, but with glibc 2.4
23202 # and later they can use TFmode.
23204 powerpc
*-*-linux* | \
23205 powerpc
*-*-gnu* | \
23206 sparc
*-*-linux* | \
23210 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23211 if test "${with_long_double_128+set}" = set; then
23212 withval
="$with_long_double_128"
23213 gcc_cv_target_ldbl128
="$with_long_double_128"
23215 gcc_cv_target_ldbl128
=no
23216 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
23217 if test "x$with_sysroot" = x
; then
23218 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
23219 elif test "x$with_build_sysroot" != "x"; then
23220 glibc_header_dir
="${with_build_sysroot}/usr/include"
23221 elif test "x$with_sysroot" = xyes
; then
23222 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23224 glibc_header_dir
="${with_sysroot}/usr/include"
23227 glibc_header_dir
=/usr
/include
23229 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23230 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
23231 && gcc_cv_target_ldbl128
=yes
23236 if test x
$gcc_cv_target_ldbl128 = xyes
; then
23238 cat >>confdefs.h
<<\_ACEOF
23239 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23244 # Find out what GC implementation we want, or may, use.
23246 # Check whether --with-gc or --without-gc was given.
23247 if test "${with_gc+set}" = set; then
23256 cat >>confdefs.h
<<\_ACEOF
23262 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23263 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23264 { (exit 1); exit 1; }; }
23271 echo "Using $GGC for garbage collection."
23273 # Use the system's zlib library.
23275 zlibinc
="-I\$(srcdir)/../zlib"
23277 # Check whether --with-system-zlib or --without-system-zlib was given.
23278 if test "${with_system_zlib+set}" = set; then
23279 withval
="$with_system_zlib"
23288 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23289 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23290 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23291 if test "${enable_maintainer_mode+set}" = set; then
23292 enableval
="$enable_maintainer_mode"
23293 maintainer_mode
=$enableval
23298 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23299 echo "${ECHO_T}$maintainer_mode" >&6
23301 if test "$maintainer_mode" = "yes"; then
23311 # Make empty files to contain the specs and options for each language.
23312 # Then add #include lines to for a compiler that has specs and/or options.
23318 # These (without "all_") are set in each config-lang.in.
23319 # `language' must be a single word so is spelled singularly.
23322 all_outputs
='Makefile gccbug libada-mk'
23323 # List of language makefile fragments.
23324 all_lang_makefrags
=
23325 # List of language subdirectory makefiles. Deprecated.
23326 all_lang_makefiles
=
23327 # Additional files for gengtype
23328 all_gtfiles
="$target_gtfiles"
23330 # These are the languages that are set in --enable-languages,
23331 # and are available in the GCC tree.
23332 all_selected_languages
=
23334 # Add the language fragments.
23335 # Languages are added via two mechanisms. Some information must be
23336 # recorded in makefile variables, these are defined in config-lang.in.
23337 # We accumulate them and plug them into the main Makefile.
23338 # The other mechanism is a set of hooks for each of the main targets
23339 # like `clean', `install', etc.
23341 language_hooks
="Make-hooks"
23343 for lang
in ${srcdir}/*/config-lang.
in
23345 test "$lang" = "${srcdir}/*/config-lang.in" && continue
23347 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
23348 if test "x$lang_alias" = x
23350 echo "$lang doesn't set \$language." 1>&2
23353 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23354 subdirs
="$subdirs $subdir"
23355 case ",$enable_languages," in
23357 all_selected_languages
="$all_selected_languages $lang_alias"
23358 if test -f $srcdir/$subdir/lang-specs.h
; then
23359 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
23370 .
${srcdir}/$subdir/config-lang.
in
23371 if test "x$language" = x
23373 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
23378 case ",$enable_languages," in
23379 *,$lang_alias,*) ;;
23381 for i
in $subdir_requires; do
23382 test -f "${srcdir}/$i/config-lang.in" && continue
23390 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
23391 if test -f $srcdir/$subdir/lang.opt
; then
23392 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
23394 if test -f $srcdir/$subdir/$subdir-tree.def
; then
23395 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
23397 if test -f ${srcdir}/$subdir/Makefile.
in
23398 then all_lang_makefiles
="$subdir/Makefile"
23400 all_languages
="$all_languages $language"
23401 all_compilers
="$all_compilers $compilers"
23402 all_outputs
="$all_outputs $outputs"
23403 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
23406 # Pick up gtfiles for c
23408 .
${srcdir}/c-config-lang.
in
23409 all_gtfiles
="$all_gtfiles [c] $gtfiles"
23412 for language
in $all_selected_languages
23414 check_languages
="$check_languages check-$language"
23417 # We link each language in with a set of hooks, reached indirectly via
23418 # lang.${target}. Only do so for selected languages.
23422 target_list
="all.cross start.encap rest.encap tags \
23423 install-common install-man install-info install-pdf dvi pdf \
23424 html uninstall info man srcextra srcman srcinfo \
23425 mostlyclean clean distclean maintainer-clean"
23427 for t
in $target_list
23430 for lang
in $all_selected_languages
23434 echo "lang.$t: $x" >> Make-hooks
23443 echo "dir ." > .gdbinit
23444 echo "dir ${srcdir}" >> .gdbinit
23445 if test x
$gdb_needs_out_file_path = xyes
23447 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23449 if test "x$subdirs" != x
; then
23452 echo "dir ${srcdir}/$s" >> .gdbinit
23455 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23457 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23461 # Find a directory in which to install a shared libgcc.
23463 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23464 if test "${enable_version_specific_runtime_libs+set}" = set; then
23465 enableval
="$enable_version_specific_runtime_libs"
23470 # Check whether --with-slibdir or --without-slibdir was given.
23471 if test "${with_slibdir+set}" = set; then
23472 withval
="$with_slibdir"
23473 slibdir
="$with_slibdir"
23475 if test "${enable_version_specific_runtime_libs+set}" = set; then
23476 slibdir
='$(libsubdir)'
23477 elif test "$host" != "$target"; then
23478 slibdir
='$(build_tooldir)/lib'
23480 slibdir
='$(libdir)'
23486 # Check whether --with-datarootdir or --without-datarootdir was given.
23487 if test "${with_datarootdir+set}" = set; then
23488 withval
="$with_datarootdir"
23489 datarootdir
="\${prefix}/$with_datarootdir"
23491 datarootdir
='$(prefix)/share'
23496 # Check whether --with-docdir or --without-docdir was given.
23497 if test "${with_docdir+set}" = set; then
23498 withval
="$with_docdir"
23499 docdir
="\${prefix}/$with_docdir"
23501 docdir
='$(datarootdir)'
23506 # Check whether --with-htmldir or --without-htmldir was given.
23507 if test "${with_htmldir+set}" = set; then
23508 withval
="$with_htmldir"
23509 htmldir
="\${prefix}/$with_htmldir"
23511 htmldir
='$(docdir)'
23515 # Substitute configuration variables
23573 if test x
${build} = x
${host} ; then
23574 if test x
${host} = x
${target} ; then
23575 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23577 echo "Links are now set up to build a cross-compiler" 1>&2
23578 echo " from ${host} to ${target}." 1>&2
23581 if test x
${host} = x
${target} ; then
23582 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23583 echo " for ${target}." 1>&2
23585 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23586 echo " from ${host} to ${target}." 1>&2
23593 # Configure the subdirectories
23594 # AC_CONFIG_SUBDIRS($subdirs)
23596 # Create the Makefile
23597 # and configure language subdirectories
23598 ac_config_files
="$ac_config_files $all_outputs"
23601 ac_config_commands
="$ac_config_commands default"
23603 cat >confcache
<<\_ACEOF
23604 # This file is a shell script that caches the results of configure
23605 # tests run on this system so they can be shared between configure
23606 # scripts and configure runs, see configure's option --config-cache.
23607 # It is not useful on other systems. If it contains results you don't
23608 # want to keep, you may remove or edit it.
23610 # config.status only pays attention to the cache file if you give it
23611 # the --recheck option to rerun configure.
23613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23615 # following values.
23619 # The following way of writing the cache mishandles newlines in values,
23620 # but we know of no workaround that is simple, portable, and efficient.
23621 # So, don't put newlines in cache variables' values.
23622 # Ultrix sh set writes to stderr and can't be redirected directly,
23623 # and sets the high bit in the cache file unless we assign to the vars.
23626 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23628 # `set' does not quote correctly, so add quotes (double-quote
23629 # substitution turns \\\\ into \\, and sed turns \\ into \).
23632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23635 # `set' quotes correctly as required by POSIX, so do not add quotes.
23637 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23644 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23646 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23648 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23649 if test -w $cache_file; then
23650 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23651 cat confcache
>$cache_file
23653 echo "not updating unwritable cache $cache_file"
23658 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23659 # Let make expand exec_prefix.
23660 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23662 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23663 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23664 # trailing colons and then remove the whole line if VPATH becomes empty
23665 # (actually we leave an empty line to preserve line numbers).
23666 if test "x$srcdir" = x.
; then
23667 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23668 s/:*\$(srcdir):*/:/;
23669 s/:*\${srcdir}:*/:/;
23671 s/^\([^=]*=[ ]*\):*/\1/;
23677 DEFS
=-DHAVE_CONFIG_H
23681 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23682 # 1. Remove the extension, and $U if already installed.
23683 ac_i
=`echo "$ac_i" |
23684 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23686 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23687 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23689 LIBOBJS
=$ac_libobjs
23691 LTLIBOBJS
=$ac_ltlibobjs
23695 : ${CONFIG_STATUS=./config.status}
23696 ac_clean_files_save
=$ac_clean_files
23697 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23698 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23699 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23700 cat >$CONFIG_STATUS <<_ACEOF
23702 # Generated by $as_me.
23703 # Run this file to recreate the current configuration.
23704 # Compiler output produced by configure, useful for debugging
23705 # configure, is in config.log if it exists.
23708 ac_cs_recheck=false
23710 SHELL=\${CONFIG_SHELL-$SHELL}
23713 cat >>$CONFIG_STATUS <<\_ACEOF
23714 ## --------------------- ##
23715 ## M4sh Initialization. ##
23716 ## --------------------- ##
23718 # Be Bourne compatible
23719 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23722 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23723 # is contrary to our usage. Disable this feature.
23724 alias -g '${1+"$@"}'='"$@"'
23725 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23728 DUALCASE
=1; export DUALCASE
# for MKS sh
23730 # Support unset when possible.
23731 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23738 # Work around bugs in pre-3.0 UWIN ksh.
23739 $as_unset ENV MAIL MAILPATH
23746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23748 LC_TELEPHONE LC_TIME
23750 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23751 eval $as_var=C
; export $as_var
23757 # Required to use basename.
23758 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23764 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23765 as_basename
=basename
23771 # Name of the executable.
23772 as_me
=`$as_basename "$0" ||
23773 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23774 X"$0" : 'X\(//\)$' \| \
23775 X"$0" : 'X\(/\)$' \| \
23776 . : '\(.\)' 2>/dev/null ||
23778 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23779 /^X\/\(\/\/\)$/{ s//\1/; q; }
23780 /^X\/\(\/\).*/{ s//\1/; q; }
23784 # PATH needs CR, and LINENO needs CR and PATH.
23785 # Avoid depending upon Character Ranges.
23786 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23787 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23788 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23789 as_cr_digits
='0123456789'
23790 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23792 # The user is always right.
23793 if test "${PATH_SEPARATOR+set}" != set; then
23794 echo "#! /bin/sh" >conf$$.sh
23795 echo "exit 0" >>conf$$.sh
23797 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23806 as_lineno_1
=$LINENO
23807 as_lineno_2
=$LINENO
23808 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23809 test "x$as_lineno_1" != "x$as_lineno_2" &&
23810 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23811 # Find who we are. Look in the path if we contain no path at all
23814 *[\\/]* ) as_myself
=$0 ;;
23815 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23816 for as_dir
in $PATH
23819 test -z "$as_dir" && as_dir
=.
23820 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23825 # We did not find ourselves, most probably we were run as `sh COMMAND'
23826 # in which case we are not to be found in the path.
23827 if test "x$as_myself" = x
; then
23830 if test ! -f "$as_myself"; then
23831 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23832 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23833 { (exit 1); exit 1; }; }
23835 case $CONFIG_SHELL in
23837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23838 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23841 test -z "$as_dir" && as_dir
=.
23842 for as_base
in sh bash ksh sh5
; do
23845 if ("$as_dir/$as_base" -c '
23846 as_lineno_1=$LINENO
23847 as_lineno_2=$LINENO
23848 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23849 test "x$as_lineno_1" != "x$as_lineno_2" &&
23850 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23851 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23852 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23853 CONFIG_SHELL
=$as_dir/$as_base
23854 export CONFIG_SHELL
23855 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23863 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23864 # uniformly replaced by the line number. The first 'sed' inserts a
23865 # line-number line before each line; the second 'sed' does the real
23866 # work. The second script uses 'N' to pair each line-number line
23867 # with the numbered line, and appends trailing '-' during
23868 # substitution so that $LINENO is not a special case at line end.
23869 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23870 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23871 sed '=' <$as_myself |
23876 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23879 s,^['$as_cr_digits']*\n,,
23880 ' >$as_me.lineno
&&
23881 chmod +x
$as_me.lineno ||
23882 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23883 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23884 { (exit 1); exit 1; }; }
23886 # Don't try to exec as it changes $[0], causing all sort of problems
23887 # (the dirname of $[0] is not the place where we might find the
23888 # original and so on. Autoconf is especially sensible to this).
23890 # Exit status is that of the last command.
23895 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23896 *c
*,-n*) ECHO_N
= ECHO_C
='
23898 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23899 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23902 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23908 rm -f conf$$ conf$$.exe conf$$.
file
23910 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23911 # We could just check for DJGPP; but this test a) works b) is more generic
23912 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23913 if test -f conf$$.exe
; then
23914 # Don't use ln at all; we don't have any links
23919 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23924 rm -f conf$$ conf$$.exe conf$$.
file
23926 if mkdir
-p .
2>/dev
/null
; then
23929 test -d .
/-p && rmdir .
/-p
23933 as_executable_p
="test -f"
23935 # Sed expression to map a string onto a valid CPP name.
23936 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23938 # Sed expression to map a string onto a valid variable name.
23939 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23943 # We need space, tab and new line, in precisely that order.
23953 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23954 # report actual input values of CONFIG_FILES etc. instead of their
23955 # values after options handling. Logging --version etc. is OK.
23959 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23960 ## Running $as_me. ##
23965 This file was extended by $as_me, which was
23966 generated by GNU Autoconf 2.59. Invocation command line was
23968 CONFIG_FILES = $CONFIG_FILES
23969 CONFIG_HEADERS = $CONFIG_HEADERS
23970 CONFIG_LINKS = $CONFIG_LINKS
23971 CONFIG_COMMANDS = $CONFIG_COMMANDS
23975 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23979 # Files that config.status was made for.
23980 if test -n "$ac_config_files"; then
23981 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23984 if test -n "$ac_config_headers"; then
23985 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23988 if test -n "$ac_config_links"; then
23989 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23992 if test -n "$ac_config_commands"; then
23993 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23996 cat >>$CONFIG_STATUS <<\_ACEOF
23999 \`$as_me' instantiates files from templates according to the
24000 current configuration.
24002 Usage: $0 [OPTIONS] [FILE]...
24004 -h, --help print this help, then exit
24005 -V, --version print version number, then exit
24006 -q, --quiet do not print progress messages
24007 -d, --debug don't remove temporary files
24008 --recheck update $as_me by reconfiguring in the same conditions
24009 --file=FILE[:TEMPLATE]
24010 instantiate the configuration file FILE
24011 --header=FILE[:TEMPLATE]
24012 instantiate the configuration header FILE
24014 Configuration files:
24017 Configuration headers:
24020 Configuration commands:
24023 Report bugs to <bug-autoconf@gnu.org>."
24026 cat >>$CONFIG_STATUS <<_ACEOF
24029 configured by $0, generated by GNU Autoconf 2.59,
24030 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24032 Copyright (C) 2003 Free Software Foundation, Inc.
24033 This config.status script is free software; the Free Software Foundation
24034 gives unlimited permission to copy, distribute and modify it."
24038 cat >>$CONFIG_STATUS <<\_ACEOF
24039 # If no file are specified by the user, then we need to provide default
24040 # value. By we need to know if files were specified by the user.
24046 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
24047 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
24055 *) # This is not an option, so the user has probably given explicit
24058 ac_need_defaults
=false
;;
24062 # Handling of the options.
24064 cat >>$CONFIG_STATUS <<\_ACEOF
24065 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24067 --version |
--vers* |
-V )
24068 echo "$ac_cs_version"; exit 0 ;;
24070 # Conflict between --help and --header
24071 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24072 Try \`$0 --help' for more information." >&5
24073 echo "$as_me: error: ambiguous option: $1
24074 Try \`$0 --help' for more information." >&2;}
24075 { (exit 1); exit 1; }; };;
24076 --help |
--hel |
-h )
24077 echo "$ac_cs_usage"; exit 0 ;;
24078 --debug |
--d* |
-d )
24080 --file |
--fil |
--fi |
--f )
24082 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24083 ac_need_defaults
=false
;;
24084 --header |
--heade |
--head |
--hea )
24086 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24087 ac_need_defaults
=false
;;
24088 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24089 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24092 # This is an error.
24093 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24094 Try \`$0 --help' for more information." >&5
24095 echo "$as_me: error: unrecognized option: $1
24096 Try \`$0 --help' for more information." >&2;}
24097 { (exit 1); exit 1; }; } ;;
24099 *) ac_config_targets
="$ac_config_targets $1" ;;
24105 ac_configure_extra_args
=
24107 if $ac_cs_silent; then
24109 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24113 cat >>$CONFIG_STATUS <<_ACEOF
24114 if \$ac_cs_recheck; then
24115 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24116 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24121 cat >>$CONFIG_STATUS <<_ACEOF
24123 # INIT-COMMANDS section.
24132 cat >>$CONFIG_STATUS <<\_ACEOF
24133 for ac_config_target
in $ac_config_targets
24135 case "$ac_config_target" in
24136 # Handling of arguments.
24137 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
24138 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24139 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
24140 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
24141 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24142 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
24143 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24144 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24145 { (exit 1); exit 1; }; };;
24149 # If the user did not use the arguments to specify the items to instantiate,
24150 # then the envvar interface is used. Set only those that are not.
24151 # We use the long form for the default assignment because of an extremely
24152 # bizarre bug on SunOS 4.1.3.
24153 if $ac_need_defaults; then
24154 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24155 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24156 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24159 # Have a temporary directory for convenience. Make it in the build tree
24160 # simply because there is no reason to put it here, and in addition,
24161 # creating and moving files from /tmp can sometimes cause problems.
24162 # Create a temporary directory, and hook for its removal unless debugging.
24165 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24166 trap '{ (exit 1); exit 1; }' 1 2 13 15
24169 # Create a (secure) tmp directory for tmp files.
24172 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24173 test -n "$tmp" && test -d "$tmp"
24176 tmp
=.
/confstat$$
-$RANDOM
24177 (umask 077 && mkdir
$tmp)
24180 echo "$me: cannot create a temporary directory in ." >&2
24181 { (exit 1); exit 1; }
24186 cat >>$CONFIG_STATUS <<_ACEOF
24189 # CONFIG_FILES section.
24192 # No need to generate the scripts if there are no CONFIG_FILES.
24193 # This happens for instance when ./config.status config.h
24194 if test -n "\$CONFIG_FILES"; then
24195 # Protect against being on the right side of a sed subst in config.status.
24196 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24197 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24198 s,@SHELL@,$SHELL,;t t
24199 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24200 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24201 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24202 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24203 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24204 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24205 s,@exec_prefix@,$exec_prefix,;t t
24206 s,@prefix@,$prefix,;t t
24207 s,@program_transform_name@,$program_transform_name,;t t
24208 s,@bindir@,$bindir,;t t
24209 s,@sbindir@,$sbindir,;t t
24210 s,@libexecdir@,$libexecdir,;t t
24211 s,@datadir@,$datadir,;t t
24212 s,@sysconfdir@,$sysconfdir,;t t
24213 s,@sharedstatedir@,$sharedstatedir,;t t
24214 s,@localstatedir@,$localstatedir,;t t
24215 s,@libdir@,$libdir,;t t
24216 s,@includedir@,$includedir,;t t
24217 s,@oldincludedir@,$oldincludedir,;t t
24218 s,@infodir@,$infodir,;t t
24219 s,@mandir@,$mandir,;t t
24220 s,@build_alias@,$build_alias,;t t
24221 s,@host_alias@,$host_alias,;t t
24222 s,@target_alias@,$target_alias,;t t
24223 s,@DEFS@,$DEFS,;t t
24224 s,@ECHO_C@,$ECHO_C,;t t
24225 s,@ECHO_N@,$ECHO_N,;t t
24226 s,@ECHO_T@,$ECHO_T,;t t
24227 s,@LIBS@,$LIBS,;t t
24228 s,@build@,$build,;t t
24229 s,@build_cpu@,$build_cpu,;t t
24230 s,@build_vendor@,$build_vendor,;t t
24231 s,@build_os@,$build_os,;t t
24232 s,@host@,$host,;t t
24233 s,@host_cpu@,$host_cpu,;t t
24234 s,@host_vendor@,$host_vendor,;t t
24235 s,@host_os@,$host_os,;t t
24236 s,@target@,$target,;t t
24237 s,@target_cpu@,$target_cpu,;t t
24238 s,@target_vendor@,$target_vendor,;t t
24239 s,@target_os@,$target_os,;t t
24240 s,@target_noncanonical@,$target_noncanonical,;t t
24241 s,@build_libsubdir@,$build_libsubdir,;t t
24242 s,@build_subdir@,$build_subdir,;t t
24243 s,@host_subdir@,$host_subdir,;t t
24244 s,@target_subdir@,$target_subdir,;t t
24245 s,@GENINSRC@,$GENINSRC,;t t
24247 s,@CFLAGS@,$CFLAGS,;t t
24248 s,@LDFLAGS@,$LDFLAGS,;t t
24249 s,@CPPFLAGS@,$CPPFLAGS,;t t
24250 s,@ac_ct_CC@,$ac_ct_CC,;t t
24251 s,@EXEEXT@,$EXEEXT,;t t
24252 s,@OBJEXT@,$OBJEXT,;t t
24253 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24254 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24256 s,@EGREP@,$EGREP,;t t
24257 s,@loose_warn@,$loose_warn,;t t
24258 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
24259 s,@strict_warn@,$strict_warn,;t t
24260 s,@warn_cflags@,$warn_cflags,;t t
24261 s,@nocommon_flag@,$nocommon_flag,;t t
24262 s,@TREEBROWSER@,$TREEBROWSER,;t t
24263 s,@valgrind_path@,$valgrind_path,;t t
24264 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24265 s,@valgrind_command@,$valgrind_command,;t t
24266 s,@coverage_flags@,$coverage_flags,;t t
24267 s,@enable_multilib@,$enable_multilib,;t t
24268 s,@enable_decimal_float@,$enable_decimal_float,;t t
24269 s,@enable_fixed_point@,$enable_fixed_point,;t t
24270 s,@enable_shared@,$enable_shared,;t t
24271 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24272 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24273 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24274 s,@onestep@,$onestep,;t t
24275 s,@PKGVERSION@,$PKGVERSION,;t t
24276 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24277 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24278 s,@datarootdir@,$datarootdir,;t t
24279 s,@docdir@,$docdir,;t t
24280 s,@htmldir@,$htmldir,;t t
24281 s,@SET_MAKE@,$SET_MAKE,;t t
24283 s,@LN_S@,$LN_S,;t t
24285 s,@RANLIB@,$RANLIB,;t t
24286 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24287 s,@ranlib_flags@,$ranlib_flags,;t t
24288 s,@INSTALL@,$INSTALL,;t t
24289 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24290 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24291 s,@make_compare_target@,$make_compare_target,;t t
24292 s,@have_mktemp_command@,$have_mktemp_command,;t t
24293 s,@MAKEINFO@,$MAKEINFO,;t t
24294 s,@BUILD_INFO@,$BUILD_INFO,;t t
24295 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24296 s,@FLEX@,$FLEX,;t t
24297 s,@BISON@,$BISON,;t t
24300 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24301 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24302 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24303 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24304 s,@LIBICONV@,$LIBICONV,;t t
24305 s,@LTLIBICONV@,$LTLIBICONV,;t t
24306 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24307 s,@manext@,$manext,;t t
24308 s,@objext@,$objext,;t t
24309 s,@gthread_flags@,$gthread_flags,;t t
24310 s,@extra_modes_file@,$extra_modes_file,;t t
24311 s,@extra_opt_files@,$extra_opt_files,;t t
24312 s,@USE_NLS@,$USE_NLS,;t t
24313 s,@LIBINTL@,$LIBINTL,;t t
24314 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24315 s,@INCINTL@,$INCINTL,;t t
24316 s,@XGETTEXT@,$XGETTEXT,;t t
24317 s,@GMSGFMT@,$GMSGFMT,;t t
24318 s,@POSUB@,$POSUB,;t t
24319 s,@CATALOGS@,$CATALOGS,;t t
24320 s,@DATADIRNAME@,$DATADIRNAME,;t t
24321 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24322 s,@GENCAT@,$GENCAT,;t t
24323 s,@CATOBJEXT@,$CATOBJEXT,;t t
24324 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24325 s,@CROSS@,$CROSS,;t t
24327 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24328 s,@inhibit_libc@,$inhibit_libc,;t t
24329 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24330 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24331 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24332 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24333 s,@collect2@,$collect2,;t t
24334 s,@LIBTOOL@,$LIBTOOL,;t t
24336 s,@FGREP@,$FGREP,;t t
24337 s,@GREP@,$GREP,;t t
24339 s,@DUMPBIN@,$DUMPBIN,;t t
24340 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24341 s,@ac_ct_AR@,$ac_ct_AR,;t t
24342 s,@STRIP@,$STRIP,;t t
24343 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24344 s,@lt_ECHO@,$lt_ECHO,;t t
24345 s,@objdir@,$objdir,;t t
24346 s,@enable_fast_install@,$enable_fast_install,;t t
24347 s,@gcc_cv_as@,$gcc_cv_as,;t t
24348 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24349 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24350 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24351 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24352 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24353 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24354 s,@libgcc_visibility@,$libgcc_visibility,;t t
24356 s,@zlibdir@,$zlibdir,;t t
24357 s,@zlibinc@,$zlibinc,;t t
24358 s,@MAINT@,$MAINT,;t t
24359 s,@gcc_tooldir@,$gcc_tooldir,;t t
24360 s,@dollar@,$dollar,;t t
24361 s,@slibdir@,$slibdir,;t t
24362 s,@subdirs@,$subdirs,;t t
24363 s,@srcdir@,$srcdir,;t t
24364 s,@all_compilers@,$all_compilers,;t t
24365 s,@all_gtfiles@,$all_gtfiles,;t t
24366 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24367 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24368 s,@all_languages@,$all_languages,;t t
24369 s,@all_selected_languages@,$all_selected_languages,;t t
24370 s,@build_exeext@,$build_exeext,;t t
24371 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24372 s,@build_xm_file_list@,$build_xm_file_list,;t t
24373 s,@build_xm_include_list@,$build_xm_include_list,;t t
24374 s,@build_xm_defines@,$build_xm_defines,;t t
24375 s,@build_file_translate@,$build_file_translate,;t t
24376 s,@check_languages@,$check_languages,;t t
24377 s,@cpp_install_dir@,$cpp_install_dir,;t t
24378 s,@xmake_file@,$xmake_file,;t t
24379 s,@tmake_file@,$tmake_file,;t t
24380 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24381 s,@extra_headers_list@,$extra_headers_list,;t t
24382 s,@extra_objs@,$extra_objs,;t t
24383 s,@extra_parts@,$extra_parts,;t t
24384 s,@extra_passes@,$extra_passes,;t t
24385 s,@extra_programs@,$extra_programs,;t t
24386 s,@float_h_file@,$float_h_file,;t t
24387 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24388 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24389 s,@host_exeext@,$host_exeext,;t t
24390 s,@host_xm_file_list@,$host_xm_file_list,;t t
24391 s,@host_xm_include_list@,$host_xm_include_list,;t t
24392 s,@host_xm_defines@,$host_xm_defines,;t t
24393 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24394 s,@install@,$install,;t t
24395 s,@lang_opt_files@,$lang_opt_files,;t t
24396 s,@lang_specs_files@,$lang_specs_files,;t t
24397 s,@lang_tree_files@,$lang_tree_files,;t t
24398 s,@local_prefix@,$local_prefix,;t t
24399 s,@md_file@,$md_file,;t t
24400 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24401 s,@out_file@,$out_file,;t t
24402 s,@out_object_file@,$out_object_file,;t t
24403 s,@thread_file@,$thread_file,;t t
24404 s,@tm_file_list@,$tm_file_list,;t t
24405 s,@tm_include_list@,$tm_include_list,;t t
24406 s,@tm_defines@,$tm_defines,;t t
24407 s,@tm_p_file_list@,$tm_p_file_list,;t t
24408 s,@tm_p_include_list@,$tm_p_include_list,;t t
24409 s,@xm_file_list@,$xm_file_list,;t t
24410 s,@xm_include_list@,$xm_include_list,;t t
24411 s,@xm_defines@,$xm_defines,;t t
24412 s,@c_target_objs@,$c_target_objs,;t t
24413 s,@cxx_target_objs@,$cxx_target_objs,;t t
24414 s,@target_cpu_default@,$target_cpu_default,;t t
24415 s,@GMPLIBS@,$GMPLIBS,;t t
24416 s,@GMPINC@,$GMPINC,;t t
24417 s,@LIBOBJS@,$LIBOBJS,;t t
24418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24419 /@language_hooks@/r $language_hooks
24420 s,@language_hooks@,,;t t
24425 cat >>$CONFIG_STATUS <<\_ACEOF
24426 # Split the substitutions into bite-sized pieces for seds with
24427 # small command number limits, like on Digital OSF/1 and HP-UX.
24428 ac_max_sed_lines
=48
24429 ac_sed_frag
=1 # Number of current file.
24430 ac_beg
=1 # First line for current file.
24431 ac_end
=$ac_max_sed_lines # Line after last line for current file.
24434 while $ac_more_lines; do
24435 if test $ac_beg -gt 1; then
24436 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24438 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24440 if test ! -s $tmp/subs.frag
; then
24441 ac_more_lines
=false
24443 # The purpose of the label and of the branching condition is to
24444 # speed up the sed processing (if there are no `@' at all, there
24445 # is no need to browse any of the substitutions).
24446 # These are the two extra sed commands mentioned above.
24448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
24449 if test -z "$ac_sed_cmds"; then
24450 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
24452 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24454 ac_sed_frag
=`expr $ac_sed_frag + 1`
24456 ac_end
=`expr $ac_end + $ac_max_sed_lines`
24459 if test -z "$ac_sed_cmds"; then
24462 fi # test -n "$CONFIG_FILES"
24465 cat >>$CONFIG_STATUS <<\_ACEOF
24466 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
24467 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24469 - |
*:- |
*:-:* ) # input from stdin
24471 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24472 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24473 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24474 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24475 * ) ac_file_in
=$ac_file.
in ;;
24478 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24479 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24481 X"$ac_file" : 'X\(//\)[^/]' \| \
24482 X"$ac_file" : 'X\(//\)$' \| \
24483 X"$ac_file" : 'X\(/\)' \| \
24484 . : '\(.\)' 2>/dev/null ||
24486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24488 /^X\(\/\/\)$/{ s//\1/; q; }
24489 /^X\(\/\).*/{ s//\1/; q; }
24491 { if $as_mkdir_p; then
24496 while test ! -d "$as_dir"; do
24497 as_dirs
="$as_dir $as_dirs"
24498 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24500 X"$as_dir" : 'X\(//\)[^/]' \| \
24501 X"$as_dir" : 'X\(//\)$' \| \
24502 X"$as_dir" : 'X\(/\)' \| \
24503 . : '\(.\)' 2>/dev/null ||
24505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24507 /^X\(\/\/\)$/{ s//\1/; q; }
24508 /^X\(\/\).*/{ s//\1/; q; }
24511 test ! -n "$as_dirs" || mkdir
$as_dirs
24512 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24513 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24514 { (exit 1); exit 1; }; }; }
24518 if test "$ac_dir" != .
; then
24519 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24520 # A "../" for each directory in $ac_dir_suffix.
24521 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24523 ac_dir_suffix
= ac_top_builddir
=
24527 .
) # No --srcdir option. We are building in place.
24529 if test -z "$ac_top_builddir"; then
24532 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24534 [\\/]* | ?
:[\\/]* ) # Absolute path.
24535 ac_srcdir
=$srcdir$ac_dir_suffix;
24536 ac_top_srcdir
=$srcdir ;;
24537 *) # Relative path.
24538 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24539 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24542 # Do not use `cd foo && pwd` to compute absolute paths, because
24543 # the directories may not exist.
24545 .
) ac_abs_builddir
="$ac_dir";;
24548 .
) ac_abs_builddir
=`pwd`;;
24549 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24550 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24553 case $ac_abs_builddir in
24554 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24556 case ${ac_top_builddir}.
in
24557 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24558 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24559 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24562 case $ac_abs_builddir in
24563 .
) ac_abs_srcdir
=$ac_srcdir;;
24566 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24567 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24568 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24571 case $ac_abs_builddir in
24572 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24574 case $ac_top_srcdir in
24575 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24576 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24577 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24583 if test x
"$ac_file" != x-
; then
24584 { echo "$as_me:$LINENO: creating $ac_file" >&5
24585 echo "$as_me: creating $ac_file" >&6;}
24588 # Let's still pretend it is `configure' which instantiates (i.e., don't
24589 # use $as_me), people would be surprised to read:
24590 # /* config.h. Generated by config.status. */
24591 if test x
"$ac_file" = x-
; then
24594 configure_input
="$ac_file. "
24596 configure_input
=$configure_input"Generated from `echo $ac_file_in |
24597 sed 's,.*/,,'` by configure."
24599 # First look for the input files in the build tree, otherwise in the
24601 ac_file_inputs
=`IFS=:
24602 for f in $ac_file_in; do
24604 -) echo $tmp/stdin ;;
24606 # Absolute (can't be DOS-style, as IFS=:)
24607 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24608 echo "$as_me: error: cannot find input file: $f" >&2;}
24609 { (exit 1); exit 1; }; }
24612 if test -f "$f"; then
24615 elif test -f "$srcdir/$f"; then
24620 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24621 echo "$as_me: error: cannot find input file: $f" >&2;}
24622 { (exit 1); exit 1; }; }
24625 done` ||
{ (exit 1); exit 1; }
24627 cat >>$CONFIG_STATUS <<_ACEOF
24631 cat >>$CONFIG_STATUS <<\_ACEOF
24633 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24634 s
,@configure_input@
,$configure_input,;t t
24635 s
,@srcdir@
,$ac_srcdir,;t t
24636 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24637 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24638 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24639 s
,@builddir@
,$ac_builddir,;t t
24640 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24641 s
,@top_builddir@
,$ac_top_builddir,;t t
24642 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24643 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24645 if test x"$ac_file" != x-; then
24646 mv $tmp/out $ac_file
24652 # Run the commands associated with the file.
24654 as ) chmod +x as ;;
24655 collect-ld ) chmod +x collect-ld ;;
24656 nm ) chmod +x nm ;;
24660 cat >>$CONFIG_STATUS <<\_ACEOF
24663 # CONFIG_HEADER section.
24666 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24667 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24669 # ac_d sets the value in "#define NAME VALUE" lines.
24670 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24671 ac_dB
='[ ].*$,\1#\2'
24674 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24675 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24676 ac_uB
='$,\1#\2define\3'
24680 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24681 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24683 - |
*:- |
*:-:* ) # input from stdin
24685 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24686 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24687 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24688 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24689 * ) ac_file_in
=$ac_file.
in ;;
24692 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24693 echo "$as_me: creating $ac_file" >&6;}
24695 # First look for the input files in the build tree, otherwise in the
24697 ac_file_inputs
=`IFS=:
24698 for f in $ac_file_in; do
24700 -) echo $tmp/stdin ;;
24702 # Absolute (can't be DOS-style, as IFS=:)
24703 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24704 echo "$as_me: error: cannot find input file: $f" >&2;}
24705 { (exit 1); exit 1; }; }
24706 # Do quote $f, to prevent DOS paths from being IFS'd.
24709 if test -f "$f"; then
24712 elif test -f "$srcdir/$f"; then
24717 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24718 echo "$as_me: error: cannot find input file: $f" >&2;}
24719 { (exit 1); exit 1; }; }
24722 done` ||
{ (exit 1); exit 1; }
24723 # Remove the trailing spaces.
24724 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24728 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24729 # `conftest.undefs', that substitutes the proper values into
24730 # config.h.in to produce config.h. The first handles `#define'
24731 # templates, and the second `#undef' templates.
24732 # And first: Protect against being on the right side of a sed subst in
24733 # config.status. Protect against being in an unquoted here document
24734 # in config.status.
24735 rm -f conftest.defines conftest.undefs
24736 # Using a here document instead of a string reduces the quoting nightmare.
24737 # Putting comments in sed scripts is not portable.
24739 # `end' is used to avoid that the second main sed command (meant for
24740 # 0-ary CPP macros) applies to n-ary macro definitions.
24741 # See the Autoconf documentation for `clear'.
24742 cat >confdef2sed.
sed <<\_ACEOF
24747 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24749 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24752 # If some macros were called several times there might be several times
24753 # the same #defines, which is useless. Nevertheless, we may not want to
24754 # sort them, since we want the *last* AC-DEFINE to be honored.
24755 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24756 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24757 rm -f confdef2sed.sed
24759 # This sed command replaces #undef with comments. This is necessary, for
24760 # example, in the case of _POSIX_SOURCE, which is predefined and required
24761 # on some systems where configure will not decide to define it.
24762 cat >>conftest.undefs <<\_ACEOF
24763 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24766 # Break up conftest.defines because some shells have a limit on the size
24767 # of here documents, and old seds have small limits too (100 cmds).
24768 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24769 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24770 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24771 echo ' :' >>$CONFIG_STATUS
24772 rm -f conftest.tail
24773 while grep . conftest.defines >/dev/null
24775 # Write a limited-size here document to $tmp/defines.sed.
24776 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24777 # Speed up: don't consider the non `#define' lines.
24778 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24779 # Work around the forget-to-reset-the-flag bug.
24780 echo 't clr' >>$CONFIG_STATUS
24781 echo ': clr' >>$CONFIG_STATUS
24782 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24784 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24786 mv $tmp/out $tmp/in
24788 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24789 rm -f conftest.defines
24790 mv conftest.
tail conftest.defines
24792 rm -f conftest.defines
24793 echo ' fi # grep' >>$CONFIG_STATUS
24794 echo >>$CONFIG_STATUS
24796 # Break up conftest.undefs because some shells have a limit on the size
24797 # of here documents, and old seds have small limits too (100 cmds).
24798 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24799 rm -f conftest.
tail
24800 while grep . conftest.undefs
>/dev
/null
24802 # Write a limited-size here document to $tmp/undefs.sed.
24803 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24804 # Speed up: don't consider the non
`#undef'
24805 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24806 # Work around the forget-to-reset-the-flag bug.
24807 echo 't clr' >>$CONFIG_STATUS
24808 echo ': clr' >>$CONFIG_STATUS
24809 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24811 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24813 mv $tmp/out $tmp/in
24815 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24816 rm -f conftest.undefs
24817 mv conftest.tail conftest.undefs
24819 rm -f conftest.undefs
24821 cat >>$CONFIG_STATUS <<\_ACEOF
24822 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24823 # use $as_me), people would be surprised to read:
24824 # /* config.h. Generated by config.status. */
24825 if test x
"$ac_file" = x-
; then
24826 echo "/* Generated by configure. */" >$tmp/config.h
24828 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24830 cat $tmp/in >>$tmp/config.h
24832 if test x
"$ac_file" != x-
; then
24833 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24834 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24835 echo "$as_me: $ac_file is unchanged" >&6;}
24837 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24839 X"$ac_file" : 'X\(//\)[^/]' \| \
24840 X"$ac_file" : 'X\(//\)$' \| \
24841 X"$ac_file" : 'X\(/\)' \| \
24842 . : '\(.\)' 2>/dev/null ||
24844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24846 /^X\(\/\/\)$/{ s//\1/; q; }
24847 /^X\(\/\).*/{ s//\1/; q; }
24849 { if $as_mkdir_p; then
24854 while test ! -d "$as_dir"; do
24855 as_dirs
="$as_dir $as_dirs"
24856 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24858 X"$as_dir" : 'X\(//\)[^/]' \| \
24859 X"$as_dir" : 'X\(//\)$' \| \
24860 X"$as_dir" : 'X\(/\)' \| \
24861 . : '\(.\)' 2>/dev/null ||
24863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24865 /^X\(\/\/\)$/{ s//\1/; q; }
24866 /^X\(\/\).*/{ s//\1/; q; }
24869 test ! -n "$as_dirs" || mkdir
$as_dirs
24870 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24871 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24872 { (exit 1); exit 1; }; }; }
24875 mv $tmp/config.h
$ac_file
24879 rm -f $tmp/config.h
24883 cat >>$CONFIG_STATUS <<\_ACEOF
24886 # CONFIG_COMMANDS section.
24888 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24889 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24890 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24891 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24892 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24893 X"$ac_dest" : 'X\(//\)[^/]' \| \
24894 X"$ac_dest" : 'X\(//\)$' \| \
24895 X"$ac_dest" : 'X\(/\)' \| \
24896 . : '\(.\)' 2>/dev/null ||
24898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24900 /^X\(\/\/\)$/{ s//\1/; q; }
24901 /^X\(\/\).*/{ s//\1/; q; }
24903 { if $as_mkdir_p; then
24908 while test ! -d "$as_dir"; do
24909 as_dirs
="$as_dir $as_dirs"
24910 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24912 X"$as_dir" : 'X\(//\)[^/]' \| \
24913 X"$as_dir" : 'X\(//\)$' \| \
24914 X"$as_dir" : 'X\(/\)' \| \
24915 . : '\(.\)' 2>/dev/null ||
24917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24919 /^X\(\/\/\)$/{ s//\1/; q; }
24920 /^X\(\/\).*/{ s//\1/; q; }
24923 test ! -n "$as_dirs" || mkdir
$as_dirs
24924 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24926 { (exit 1); exit 1; }; }; }
24930 if test "$ac_dir" != .
; then
24931 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24932 # A "../" for each directory in $ac_dir_suffix.
24933 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24935 ac_dir_suffix
= ac_top_builddir
=
24939 .
) # No --srcdir option. We are building in place.
24941 if test -z "$ac_top_builddir"; then
24944 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24946 [\\/]* | ?
:[\\/]* ) # Absolute path.
24947 ac_srcdir
=$srcdir$ac_dir_suffix;
24948 ac_top_srcdir
=$srcdir ;;
24949 *) # Relative path.
24950 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24951 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24954 # Do not use `cd foo && pwd` to compute absolute paths, because
24955 # the directories may not exist.
24957 .
) ac_abs_builddir
="$ac_dir";;
24960 .
) ac_abs_builddir
=`pwd`;;
24961 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24962 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24965 case $ac_abs_builddir in
24966 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24968 case ${ac_top_builddir}.
in
24969 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24970 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24971 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24974 case $ac_abs_builddir in
24975 .
) ac_abs_srcdir
=$ac_srcdir;;
24978 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24979 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24980 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24983 case $ac_abs_builddir in
24984 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24986 case $ac_top_srcdir in
24987 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24988 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24989 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24994 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24995 echo "$as_me: executing $ac_dest commands" >&6;}
24998 case ${CONFIG_HEADERS} in
24999 *auto-host.h
:config.
in*)
25002 # Make sure all the subdirs exist.
25003 for d
in $subdirs doc build
25005 test -d $d || mkdir
$d
25012 cat >>$CONFIG_STATUS <<\_ACEOF
25014 { (exit 0); exit 0; }
25016 chmod +x
$CONFIG_STATUS
25017 ac_clean_files
=$ac_clean_files_save
25020 # configure is writing to config.log, and then calls config.status.
25021 # config.status does its own redirection, appending to config.log.
25022 # Unfortunately, on DOS this fails, as config.log is still kept open
25023 # by configure, so config.status won't be able to write to it; its
25024 # output is simply discarded. So we exec the FD to /dev/null,
25025 # effectively closing config.log, so it can be properly (re)opened and
25026 # appended to by config.status. When coming back to configure, we
25027 # need to make the FD available again.
25028 if test "$no_create" != yes; then
25030 ac_config_status_args
=
25031 test "$silent" = yes &&
25032 ac_config_status_args
="$ac_config_status_args --quiet"
25034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25037 # would make configure fail if this is the last instruction.
25038 $ac_cs_success ||
{ (exit 1); exit 1; }